QRCode reading application for IP cameras with ALLWINNER processor and SP2305 MIPI-CSI Sensor
Demonstration: https://youtu.be/o10Hf9vFvKs
Stage: BETA
Currently this project tested only in the following cameras:
Camera | Remarks |
---|---|
Yi 1080p Home Y20GA | y20ga |
- Detect the qrcode on mobile screens
- Detect the qrcode on paper
- Good capture angle
- Good capture range (Needs manual changes in the lens focus)
- Readings at night using Night Vision (needs more tests)
- Change Led on Detect
- PlaySound on Detect (need aplay) #1
- Write detected qrcode to FIFO file (see example)
- Fix audio setup #1
- Create an example that reads the QRCode and send an HTTP request
- Create the script to restart the application if it fails
- Create demonstration video
The detection of QR Code is done in about 15ms
- Preliminary tests point to a 45% use of CPU.
- The system was executed for 10 consecutive hours without presenting outofmemory
You can use the pre-compilated version !
Before run, you need copy libraries in /libs to SD, and set PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/sd/my/lib
./yicam_qrcode
Enable sounds
yicam_qrcode -s
Configure settings
See file src/app_settings.h
You can enable snapshots in case of QRCODE recognition failures
#define SNAPSHOT_ON_ERROR 1
To integrate other applications you can read the data created in a special FIFO file:
/tmp/qrcode_read
TODO / draft
Use toolchain:
Edit paths in: env
file
Run: ./build.sh
NOBODY BUT YOU IS RESPONSIBLE FOR ANY USE OR DAMAGE THIS SOFTWARE MAY CAUSE. THIS IS INTENDED FOR EDUCATIONAL PURPOSES ONLY. USE AT YOUR OWN RISK.
https://github.com/roleoroleo/yi-hack-Allwinner (Custom firmware for Yi 1080p)