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

Mismatching color channel order in Hailo detect example #1148

Open
matusmisiak opened this issue Oct 30, 2024 · 1 comment
Open

Mismatching color channel order in Hailo detect example #1148

matusmisiak opened this issue Oct 30, 2024 · 1 comment

Comments

@matusmisiak
Copy link

While running object detection example for Hailo (examples/hailo/detect.py) with the image of an orange, it detects it somewhat poorly, detecting only a vase sometimes:

20241030_19h56m55s_grim

When I changed the format in lores to BGR888 instead of RGB888, it detects an orange very nicely (which it wouldn't if the BGR format was incorrect, because the orange would be blue):

20241030_19h57m43s_grim

I can only conclude that hailo.run() or models themselves expect the image in the BGR888 format instead of RGB888. Is that correct?

Hardware :
Raspberry Pi 5 8GB with Arducam IMX708 B0310

@davidplowman
Copy link
Collaborator

Yes, I think that's usually the case. Of course it could vary with the model, but I think pixels in R, G, B order in memory (which libcamera slightly strangely refers to as BGR888) is most common.

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