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

Don't set format to RASPICAM_FORMAT_BGR #13

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

mikeymclellan
Copy link
Contributor

When using Kerberos.io with my Raspicam, red and blue were switched in all captures. I'm probably missing something but changing the format fixed it for me.

… RASPICAM_FORMAT_BGR, so changed to RASPICAM_FORMAT_RGB
@cedricve
Copy link
Owner

cedricve commented Oct 5, 2016

Interesting, and great fix! Do you have screenshot of "before" and "after". I would like to see the results. Thank you mike.

@cedricve cedricve merged commit a82bbfa into cedricve:master Oct 5, 2016
@mikeymclellan
Copy link
Contributor Author

mikeymclellan commented Oct 5, 2016

Thanks for merging. These are before and after screenshots:

screen shot 2016-10-05 at 4 22 11 pm
screen shot 2016-10-05 at 4 44 56 pm

@6by9
Copy link

6by9 commented Oct 19, 2016

Your change will have fixed things for newer firmwares, but broken it for old ones. See https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=148432 for details of why things changed and how to support either.

By the looks of it you've forked the raspicam-0.1.3 project to make this one, in which case there is a clean patch available at https://github.com/6by9/raspicam-0.1.3.

@cedricve
Copy link
Owner

Thanks for letting us know @6by9 ! I'll add the patch 👍

@mikeymclellan mikeymclellan mentioned this pull request Dec 2, 2016
cedricve pushed a commit that referenced this pull request Dec 3, 2016
* raspicam sensor_mode support. (#11)

* Sensor mode setting implemented for private_impl, CV_CAP_PROP_MODE support added for raspicam_cv.

* fixed default value for sensor_mode.

* build fix (#12)

* Sensor mode setting implemented for private_impl, CV_CAP_PROP_MODE support added for raspicam_cv.

* fixed default value for sensor_mode.

* fixed duplicates case values.

* My Raspberry Pi Camera has red and blue swaped when setting format to RASPICAM_FORMAT_BGR, so changed to RASPICAM_FORMAT_RGB (#13)

* Fix bgr/rgb inversion (#17)

* fix RGB and BGR inversion

* Revert previous change due to RGB/BGR inversion

Opencv uses BGR color space

* added number of camera to open

Signed-off-by: root <root@ubuntu.ubuntu-domain>

* implemented getter and setter (for sake of implemention i guess)

Signed-off-by: root <bspecjalny@gmail.com>
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.

None yet

3 participants