parkpow / deep-license-plate-recognition

Automatic License Plate Recognition (ALPR) or Automatic Number Plate Recognition (ANPR) software that works with any camera.
https://platerecognizer.com/
MIT License
523 stars 122 forks source link

SFTP Processor #94

Closed danleyb2 closed 2 years ago

danleyb2 commented 2 years ago

Process images from an SFTP Server using Snapshot

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