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
983 stars 172 forks source link

Duplicate File Error and SQL Error #32

Closed BigDuke6nc closed 6 years ago

BigDuke6nc commented 6 years ago

Application is crashing when there is a duplicate track at the same time. Unable to write the record in the database and to the file system. Log link below.

https://pastebin.com/33hWPpQd

pageauc commented 6 years ago

Must be a very fast capture or very low timeout. I will add hundredths of a second to file naming. Makes it longer but will be unique.

Let you know when changes are done

BigDuke6nc commented 6 years ago

No worries. I thought I had changed those values as well but when I looked they were default with the deployment. I can probably tweak those values.

pageauc commented 6 years ago

I have added tenth of second to file naming. I think this should be good enough but it could be easily changed to hundredths if needed. This should not happen with normal reset times but this should solve your problem and not make naming too long.

I have tested bu Let me know result Claude ...

BigDuke6nc commented 6 years ago

Seems to have fixed the issue.