Skip to main content

Process Bulk Images

We provide scripts that you can use to process images in a local folder or from an FTP server. The scripts require Python 3 to work. Check here for the Python installation guide.

Images are in a Local Folder

  1. Download plate_recognition.py into a folder
  2. Install dependencies by running this command pip install requests==2.27.1 Pillow==8.3.2
  3. Run script plate_recognition.py -a MY_API_KEY /path/to/vehicle-*.jpg
  4. For additional run examples, view the documentation by running this command python plate_recognition.py --help

Images are on an FTP or SFTP Server

This script connects to an FTP or SFTP Server and periodically downloads the images. They are then processed by Snapshot. Both Snapshot on premise and Snapshot cloud are supported.

note

MMC feature results are only available when using an on-premise Snapshot url.

  1. Download plate_recognition.py and ftp_and_sftp_processor.py into a folder.
  2. Install dependencies by running this command pip install requests==2.27.1 Pillow==8.3.2 paramiko==3.3.1.
  3. Run script python ftp_and_sftp_processor.py --api-key MY_API_KEY --hostname FTP_HOST_NAME --ftp-user FTP_USER --ftp-password FTP_USER_PASSWORD --folder /path/to/server_folder.
  4. For additional run examples, view the documentation by running this command python ftp_and_sftp_processor.py --help.

By default the script is prepared to process images in FTP servers, if you want to process images in an SFTP server, add the argument --protocol sftp.

Sending Images to our FTP Server

If you are using Snapshot cloud, you can upload images directly to our FTP server. They will automatically be processed. To enable this service, visit our start page.

Floating button icon
CTRL + .