Open qillbel opened 4 years ago
Similar problems here. I got around it by using the -json_port 8070 flag, saving the output to a txt file then reading it in as a pandas dataframe and filtering on rows with detections. This gives frame number and detection so yes I suppose we can just divide frame number by fps to get timestamp.
Hi @sambo55 , Do you mean you put -json_port 8070 flag on video detection? like
!./darknet detector demo obj.data yolov3-tiny-obj.cfg yolov3-tiny-obj_last.weights -dont_show -json_port 8070 video.mp4 -i 0.6 -out_filename video.avi
?
Thanks
Yes
Thanks @sambo55 , I tried the flag, but the output txt only printed JSON-stream sent, without frame number. Can I have it on txt output instead?
Thanks
Hi @qillbel, you can access frame numbers from the JSON Stream at localhost:8070 using chrome (or another browser). If this is a one-off and you don't want to consume you could even convert this to CSV using a simple JSON to CSV converter.
Hi all,
I was searching for hours without success. Does anyone know how to store the timestamp of the identified objects in the video?
Or perhapshow do we derive the timestamps from the fps identified?
Thank you so much all