This is a label recognition code run on Raspberry Pi 3B+.
- python 3.9.2
- cv2
- pytesseract
- picamera2
- re
- requests
This code is based on self-trained data which located in /traineddata
.
- Find text in specific format. (refer to
TEXT_PATTERN
inapp.py
) - Send a request to specific url. (refer to
SERVER_URL
,PARAM_NAME
inapp.py
)
You can also try to change CONF_THRESHOLD
if you encounter some problem in recognition.
python app.py
Press Q
to exit.