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

Convert GrabImage to be used with OpenCV #2

Closed
LucasVandroux opened this issue May 31, 2018 · 3 comments
Closed

Convert GrabImage to be used with OpenCV #2

LucasVandroux opened this issue May 31, 2018 · 3 comments

Comments

@LucasVandroux
Copy link

Hello,

I am trying to capture color images from my acA1920-40gc and to process them using OpenCV. According to #1 this ability should be soon implemented. Am I correct? Moreover, will the procedure be somehow similar to the one describe in Getting Started with pylon and OpenCV?

Thanks a lot for your time.

Have a good day,

@basler-oss
Copy link
Collaborator

Hi Lucas,

the mentioned document refers to our C++ API. On our community platform ImagingHub you'll find a few examples which explains how to use pypylon along with opencv. I hope thi helps.

All best

@LucasVandroux
Copy link
Author

I love your documentation! But I have two problems that I think are kinda related. First, theinstant_camera.PixelFormat = "RGB8" doesn't work with my Ace acA1920-40gc. I guess it doesn't support this PixelFormat but I have no idea where to find the precise list of the PixelFormat supported by the camera.

Then actually when I manage to save a picture, the picture is looking weird and I don't know how to change this:
weird_image

However when I upload it to GitHub, it looks perfectly normal:
0018

@LucasVandroux
Copy link
Author

I managed to solve my problem in the issue #3

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