Skip to content

Getting detection output frame by frame #9

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

Open
Terrance-Whitehurst opened this issue May 4, 2020 · 7 comments
Open

Getting detection output frame by frame #9

Terrance-Whitehurst opened this issue May 4, 2020 · 7 comments

Comments

@Terrance-Whitehurst
Copy link

Hi,

Does anyone know of a way to get the detection information from the model frame by frame and then save that information to a file? I have been trying to figure this out but have not found a good solution yet. Would love to hear your ideas.

Warm Regards

@robisen1
Copy link

robisen1 commented Jun 6, 2020

If your still interested let me know and I can share some code

@Terrance-Whitehurst
Copy link
Author

Terrance-Whitehurst commented Jun 6, 2020 via email

@robisen1
Copy link

robisen1 commented Jun 6, 2020

Do you want a webcam example or read video from file?

@Terrance-Whitehurst
Copy link
Author

Terrance-Whitehurst commented Jun 6, 2020 via email

@robisen1
Copy link

robisen1 commented Jun 6, 2020

Video from file would be great

On Sat, Jun 6, 2020 at 4:36 PM robisen1 @.***> wrote: Do you want a webcam example or read video from file? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCBTU6EPEC5VAEHBTVFOE3RVKSE3ANCNFSM4MZEBXNQ .

ill post later tonight or early tomorrow

@Terrance-Whitehurst
Copy link
Author

Terrance-Whitehurst commented Jun 6, 2020 via email

@robisen1
Copy link

robisen1 commented Jun 7, 2020

Terrance,

This file works. It ingests a video, reads it, performs detections, writes boxes on any detections, displays the frames (video) as it is processing, the writes to disk. The code has some notes all in the main function. Please read them since video writing with opencv is pretty fickle. Also, I ran this on Windows 10 and if you are using OSX or Ubuntu you will want to change fourcc. I hope this helps you.

https://gist.github.com/robisen1/616a2a1be498741d5d3ca65967de06e7

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

No branches or pull requests

2 participants