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

Image Conversion Error #34

Closed
glin123 opened this issue Aug 17, 2018 · 4 comments
Closed

Image Conversion Error #34

glin123 opened this issue Aug 17, 2018 · 4 comments

Comments

@glin123
Copy link

glin123 commented Aug 17, 2018

Hello, I'm working on a project where we are taking images and converting them to be saved. However, every once and a while the camera will throw the error: "Pylon Error: Cannot convert image. The passed source image is invalid. : InvalidArgumentException thrown (file 'ImageFormatConverter.cpp', line 77)". When this error happens the camera does not save the taken image and I'm not to sure on why this is happening and also how to fix it. I talked to Basler and they thought it might be a bandwidth issue however that is not the case. I optimized the bandwidth on the camera and it is still throwing this error. If anyone could give me some insight on this issue that would be great, thanks.

@thiesmoeller
Copy link
Collaborator

you should call .GrabSucceeded() on your retrieved/grabbed result object:
is it True?
check this before calling the ImageConverter to check if the data you want to send to the converter is valid.

@glin123
Copy link
Author

glin123 commented Aug 20, 2018

So, I added the .GrabSucceeded() check and I figured out that I needed to change the packet size to jumbo, and change the inter packet delay. This made the error show up way less often however, now when this error shows up, every 100 or so images it also throws a different error right after. "Pylon Error: cameras have been physically removed..." and then terminates my program. @thiesmoeller

@thiesmoeller
Copy link
Collaborator

You have to look at you system.
Check if your converting and saving is real-time. Log timestamps during the convert/save process.
Are you faster than frametime ?

And follow the guidelines from the manuals and camera docs. E.g. as gigevision is a nearly 100% Rx load on your system. Enlarge the receive descriptor count on the driver.
Enlarge buffer count in pylon

Make measurements and try to find the source of "trouble"

@stefanklug
Copy link
Contributor

I close this, as there was no activity in the last year.

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

3 participants