Install pyzbar to image (#225)

* Install pyzbar to image

I suggest installing pyzbar to RPi image for making barcodes scanning easier during different competitions.

* pyzbar: Add libzbar0 install

* pyzbar: Add simple tests

* pyzbar: Update docs
This commit is contained in:
Arthur Golubtsov
2020-04-09 04:16:05 +03:00
committed by GitHub
parent b043737e91
commit 2a62891d60
5 changed files with 9 additions and 14 deletions

View File

@@ -94,13 +94,7 @@ The obtained images can be viewed using [web_video_server](web_video_server.md).
> **Hint** For high-speed recognition and positioning, it is better to use [ArUco markers](aruco.md).
To program actions of the copter upon detection of [QR codes](https://en.wikipedia.org/wiki/QR_code) you can use the [pyZBar](https://pypi.org/project/pyzbar/). It should be installed using pip:
```bash
sudo apt update
sudo apt install libzbar0
sudo pip install pyzbar
```
To program actions of the copter for the detection of [QR codes](https://en.wikipedia.org/wiki/QR_code) you can use the [pyZBar](https://pypi.org/project/pyzbar/). This lib is installed in the last image for Raspberry Pi.
QR codes recognition in Python:

View File

@@ -98,13 +98,7 @@ image_pub.publish(bridge.cv2_to_imgmsg(cv_image, 'bgr8'))
> **Hint** Для высокоскоростного распознавания и позиционирования лучше использовать [ArUco-маркеры](aruco.md).
Для программирования различных действий коптера при детектировании нужных [QR-кодов](https://ru.wikipedia.org/wiki/QR-код) можно использовать библиотеку [pyZBar](https://pypi.org/project/pyzbar/). Ее нужно установить в помощью pip:
```bash
sudo apt update
sudo apt install libzbar0
sudo pip install pyzbar
```
Для программирования различных действий коптера при детектировании нужных [QR-кодов](https://ru.wikipedia.org/wiki/QR-код) можно использовать библиотеку [pyZBar](https://pypi.org/project/pyzbar/). Она уже установлена в последнем образе для Raspberry Pi.
Распознавание QR-кодов на Python: