usage: sftp_processor.py [-h] [-a API_TOKEN] [-r REGIONS] [-s SDK_URL] [--camera-id CAMERA_ID] -H HOST -U USER [-p PORT] [-P PASSWORD] [--pkey PKEY] [-f FOLDER] [--mmc]
Read license plates from the images on an SFTP server and output the result as JSON or CSV.
options:
-h, --help show this help message and exit
-a API_TOKEN, --api-token API_TOKEN
Cloud API Token.
-r REGIONS, --regions REGIONS
Match the license plate pattern fo specific region
-s SDK_URL, --sdk-url SDK_URL
Url to self hosted sdk For example, http://localhost:8080
--camera-id CAMERA_ID
Name of the source camera.
-H HOST, --host HOST SFTP host
-U USER, --user USER SFTP user
-p PORT, --port PORT SFTP port
-P PASSWORD, --password PASSWORD
SFTP password
--pkey PKEY SFTP Private Key Path
-f FOLDER, --folder FOLDER
Specify folder with images on the SFTP server.
--mmc Predict vehicle make and model (SDK only). It has to be enabled.
-i INTERVAL, --interval INTERVAL
Periodically fetch new images from the server every interval seconds.
Examples:
Password login, Process images in /tmp/images: ./sftp_processor.py -U usr1 -P pass -H 192.168.100.21 -f /tmp/images -a 4805bee#########
Private Key login, Process images in /tmp/images: ./sftp_processor.py -U usr1 --pkey '/home/danleyb2/.ssh/id_rsa' -H 192.168.100.21 -f /tmp/images -a 4805bee#########
Password login, Process images in /tmp/images using Snapshot SDK: ./sftp_processor.py -U usr1 -P pass -H 192.168.100.21 -f /tmp/images -s http://localhost:8080
Process images in /tmp/images Periodically every 5 seconds: ./sftp_processor.py -U usr1 -P pass -H 192.168.100.21 -f /tmp/images -a 4805bee######### -i 5
Process images from an SFTP Server using Snapshot