First, download and install MySQL from the MySQL's official MySQL Server. You need to install the MySQL server to follow this tutorial.
Next, you have to install mysql.connector for Python. We need mysql.connector to connect Python Script to the MySQL database. Use the package manager pip to install MySQL-connector-python
pip install MySQL-connector-python
Also, you need to install Ocrspace's SDK and requests package to use Ocrspace API .
pip install ocrspace
pip install requests
After you install this packages, yuo will need to genatrate OCI API KEY From ocrspace website.
Insert your user data of MySQLServer (user and password) and API KEY that you genarate to config.properties
The program get as an argument path to directory which contains images for decoding. I added images as an example in resource directory. Assuming that each license plate's vehicles enters once. I didn't support delete from database. license_plate
Run in Shell:
python main.py <path to directory>