Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evo: add output to a json file option when running on a video #3723

Merged
merged 6 commits into from
Sep 21, 2023

Conversation

tdurand
Copy link

@tdurand tdurand commented Aug 7, 2019

Based on the detector.c code that does the same for a single image

This add an option when running on a video to output all results in a JSON file

./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights file.mp4 -dont_show -json_file_output result.json

Not sure if you want to merge this, but at least I have it shared with people that would want such feature

I updated the README also

@tdurand tdurand closed this Aug 7, 2019
@tdurand tdurand reopened this Aug 7, 2019
@tdurand tdurand changed the title Evo: add output json file when running on a video to darknet Evo: add output json file when running on a video Aug 7, 2019
@tdurand tdurand changed the title Evo: add output json file when running on a video Evo: add output to a json file option when running on a video Aug 7, 2019
@haviduck
Copy link

haviduck commented Sep 8, 2019

This works as described and have helped tremendously in my work, the stored json has all detected objects. but somehow neither my console or my preview window show objects. Is this just me messing up the build?

@tdurand
Copy link
Author

tdurand commented Sep 18, 2019

Yes, you should uncomment the line:

//draw_detections_cv_v3(show_img, local_dets, local_nboxes, demo_thresh, demo_names, demo_alphabet, demo_classes, demo_ext_output);

And run the command without the flag -dontshow

@cenit
Copy link
Collaborator

cenit commented Aug 28, 2023

looks like i don't have permission to update PR to latest master.
opendatacam#22 should do the trick

@vsaw vsaw deleted the evo-outputjsonfile branch September 20, 2023 13:37
@vsaw vsaw restored the evo-outputjsonfile branch September 20, 2023 15:59
update PR to latest master
src/coco.c Outdated Show resolved Hide resolved
@cenit cenit merged commit 4da0cd6 into AlexeyAB:master Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants