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

control label formatting for detected objects #39

Closed
steveneighbour opened this issue Jun 6, 2019 · 3 comments · Fixed by #51
Closed

control label formatting for detected objects #39

steveneighbour opened this issue Jun 6, 2019 · 3 comments · Fixed by #51

Comments

@steveneighbour
Copy link

Noticed this today on a successful object scan, a person is picked up a decent distance from the camera (so they are pretty small) but the label drawn obscures the person.

small_person

Is it possible/feasible to control the label (eg remove the red background), in an effort to not obscure the detected object?

@blakeblackshear
Copy link
Owner

Looks like you are using 0.2.0-pre, right? What camera are you using? I need to tweak the position of the label a bit.

@steveneighbour
Copy link
Author

i've been messing with the ffmpeg hardware decoding, so am using the latest git version from ffmpeg-subprocess branch.

These are from Hikvision cameras, at a pretty low res (width 640, height 360), 10fps

I'll have a quick play with util.py to alter the box, see if i can make it look cleaner

@steveneighbour
Copy link
Author

i've added a car endpoint (just by copy/pasting your people endpoint), as that generates a lot more images than people in my street

Here are a few examples using different fonts/thickness/colours etc (i don't like any of them!)

car1
car2
car3
car4
car5

I think perhaps stick with how you had it but, as you said, alter the positioning a bit so that small objects are not obscured so much?

Here is a car with the title removed entirely, i actually quite like that. I'm only really caring about cars and people, so including the label doesn't really add value for me.

car6

Might try with a 1080p version as well, see if it looks better

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 a pull request may close this issue.

2 participants