A python program to scan items in a market.
The program requires opencv, tkinter, pyzbar and numpy 1.x to work. First, you need to install those libraries:
pip install opencv-python tk pyzbar numpy==1.26.4
! The program requires numpy's version to be 1.x and doesn't work with version 2.0 or higher.
Next, you can clone pyscanner:
git clone github.com/GrgBls/pyscanner.git
Finally, you are able to run the program:
cd pyscanner && ./main.py
By clicking the Database button, you will be able to search, insert and remove items, as well as update their prices and how much stock there is left.
To perform any action, first input the product's barcode and then click on the specific action. The program will guide you for the next steps.
After importing your products into the database, you can begin scanning them. The program supports two types of scanning, both through camera and manually.
To scan using your camera, just click the scan button and put the product's barcode in front of the camera. When the camera detects the barcode, it will close and you will be able to click Enter.
To scan manually, just insert the barcode into the text box and press Enter.
All scanned items will appear at the right side of the screen. You may edit the products, if you have made a mistake by clicking the Edit Button.
After you have finished scanning all your items, you can click End and the total amount of money will be shown to you.