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

Added guide examples & override for regions param #204

Closed dibonjohnseron closed 5 months ago

github-actions[bot] commented 5 months ago

Risk Level 2 - /home/runner/work/deep-license-plate-recognition/deep-license-plate-recognition/blur/main.py

The changes include adding new command-line arguments and handling them within the code. The risk is moderate due to potential issues with argument parsing and the interaction with external services.

  1. Ensure that the --regions argument is properly documented and tested, as it is appended to a list and may affect the behavior of the program significantly if not handled correctly.

  2. The process function now includes a new regions field in the data payload. Verify that the receiving endpoint of the requests.post call supports this new field and handles it as expected.

  3. The logging.basicConfig call has been modified without a clear change. If this is unintentional, it should be reverted to avoid potential logging misconfigurations.

Example for item 1:

parser.add_argument(
    \"-r\",
    \"--regions\",
    help=\"Append one or more regions to match license plate patterns, e.g., -r us-ca -r th-37\",
    action=\"append\",
    required=False
)

📝🔍🚧


Powered by Code Review GPT