How do I trigger a JSON or pd Dataframe report from each Object detected by a TensorFlow/OpenCV object detection
You could make a pandas dataframe with two columns: Name and isWearingMask, and append that dataframe with a new row every time a person is detected. Then use the time module to know to save the pandas database as a .CSV file at the end of a day. The next day, clear the pandas dataframe and repeat the process.
I'm building a python application that uses AI to scan a live feed with OpenCV and tracks people with or without masks.
I wanted to ask if there was a good way to send a unique dataframe for every unique entity tracked in the feed in order to create a procedural entry on a database of each person tracked as they entered the frame and whether they were wearing a mask.
Any advice?