All Projects → lessthanoptimal → PyBoof

lessthanoptimal / PyBoof

Licence: Apache-2.0 license
Python wrapper around the BoofCV Computer Vision Library

Programming Languages

python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to PyBoof

Qrencode Go
QR encoder in Go
Stars: ✭ 99 (+125%)
Mutual labels:  qr-code
Segno
Python QR Code and Micro QR Code encoder
Stars: ✭ 144 (+227.27%)
Mutual labels:  qr-code
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+5938.64%)
Mutual labels:  qr-code
Qr Code With Logo
带头像(logo)的二维码(qrcode)生成工具,无jQuery依赖,自由调整大小
Stars: ✭ 104 (+136.36%)
Mutual labels:  qr-code
Barcode
barcode.php - Generate barcodes from a single PHP file. MIT license.
Stars: ✭ 141 (+220.45%)
Mutual labels:  qr-code
React Qr Code
A QR code generator for React and React Native.
Stars: ✭ 153 (+247.73%)
Mutual labels:  qr-code
Vue Qrcode Reader
A set of Vue.js components for detecting and decoding QR codes.
Stars: ✭ 1,240 (+2718.18%)
Mutual labels:  qr-code
QR-secret-sharing
🔒 Create QR codes to secret-share a message. Ideal for cryptocurrency wallet recovery keys and passwords.
Stars: ✭ 94 (+113.64%)
Mutual labels:  qr-code
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+4711.36%)
Mutual labels:  qr-code
Jsqr
A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
Stars: ✭ 2,722 (+6086.36%)
Mutual labels:  qr-code
Awesomeqrcode
An awesome QR code generator for Android.
Stars: ✭ 1,718 (+3804.55%)
Mutual labels:  qr-code
React Qr Svg
React component for rendering SVG QR codes
Stars: ✭ 134 (+204.55%)
Mutual labels:  qr-code
Qr Code Generator
High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, Rust, C++, C.
Stars: ✭ 2,363 (+5270.45%)
Mutual labels:  qr-code
Qrbtf
An art QR code (qrcode) beautifier. 艺术二维码生成器。https://qrbtf.com
Stars: ✭ 1,391 (+3061.36%)
Mutual labels:  qr-code
qr-pirate
crawl QR-codes from search engines and look for bitcoin private keys
Stars: ✭ 58 (+31.82%)
Mutual labels:  qr-code
Awesome Qr.js
An awesome QR code generator written in JavaScript.
Stars: ✭ 1,247 (+2734.09%)
Mutual labels:  qr-code
Bardecoder
Detect and decode QR Codes, written in 100% Rust.
Stars: ✭ 145 (+229.55%)
Mutual labels:  qr-code
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (+106.82%)
Mutual labels:  qr-code
kanban-board-app
Kanban style task management board app
Stars: ✭ 118 (+168.18%)
Mutual labels:  qr-code
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (+338.64%)
Mutual labels:  qr-code

PyBoof is Python wrapper for the computer vision library BoofCV. Since this is a Java library you will need to have java and javac installed. The former is the Java compiler. In the future the requirement for javac will be removed since a pre-compiled version of the Java code will be made available and automatically downloaded. Installing the Java JDK is platform specific, so a quick search online should tell you how to do it.

To start using the library simply install the latest stable version using pip

pip3 install pyboof

Examples

Examples are included with the source code. You can obtain them by either checkout the source code, as described above, or browsing github here. If you don't check out the source code you won't have example data and not all of the examples will work.

To run any of the examples simply invoke python on the script

  1. cd PyBoof/examples
  2. python example_blur_image.py

Code for applying a Gaussian and mean spatial filter to an image and displays the results.

import numpy as np
import pyboof as pb

original = pb.load_single_band('../data/example/outdoors01.jpg', np.uint8)

gaussian = original.createSameShape() # useful function which creates a new image of the
mean = original.createSameShape()     # same type and shape as the original

# Apply different types of blur to the image
pb.blur_gaussian(original, gaussian, radius=3)
pb.blur_mean(original, mean, radius=3)

# display the results in a single window as a list
image_list = [(original, "original"), (gaussian, "gaussian"), (mean, "mean")]
pb.swing.show_list(image_list, title="Outputs")

input("Press any key to exit")

Installing From Source

One advantage for checking out the source code and installing from source is that you also get all the example code and the example datasets.

git clone --recursive https://github.com/lessthanoptimal/PyBoof.git

If you forgot --recursive then you can checkout the data directory with the following command.

git submodule update --init --recursive

After you have the source code on your local machine you can install it and its dependencies with the following commands:

  1. cd PyBoof
  2. python3 -m venv venv
  3. source venv/bin/activate
  4. pip3 install -r requirements.txt
  5. ./setup.py build
  6. ./setup.py install

Yes you do need to do the build first. This will automatically build the Java jar and put it into the correct place. Creating a virtual environment isn't required but recommended as you can only do so much damage with it.

Supported Platforms

The code has been developed and tested on Ubuntu Linux 20.04. Should work on any other Linux variant. Might work on Mac OS and a slim chance of working on Windows.

Dependencies

PyBoof depends on the following python packages. They should be automatically installed

  • py4j
  • numpy
  • transforms3d
  • opencv (optional and for IO only)

Optional

  • opencv_python (for IO only)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].