pageauc / speed-camera

A Unix, Windows, Raspberry Pi Object Speed Camera using python, opencv, video streaming, motion tracking. Includes a Standalone Web Server Interface, Image Search using opencv template match and a whiptail Admin Menu Interface Includes picam and webcam Plugins for motion track security camera configuration including rclone sync script. watch-app allows remotely controller camera configuration from a remote storage service name. Uses sqlite3 and gnuplot for reporting. Recently added openalpr license plate reader support.
Apache License 2.0
960 stars 169 forks source link

Add a function to send data elsewhere, API, MQTT, etc. #170

Open UnderpantsGnome opened 3 months ago

UnderpantsGnome commented 3 months ago

This is similar to the userMotionCode functionality, but passes different data.

The user_reporting_code.userReportingCode function is called, passing in a hash of the same data that is being persisted in the database, along with the video_stream, and the filename that was created.

From there the user can do whatever they wish with the data.

user_reporting_code.userReportingCode(reporting_fields, vs, filename)

The sample in user_reporting_code.py can be used to send the data to an external API.