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

Windows Error 0xe06d7363 (WinError -529697949) when setting gain (Python sample code on Windows) #34

Closed
gwappa opened this issue Jul 16, 2021 · 5 comments

Comments

@gwappa
Copy link

gwappa commented Jul 16, 2021

Hi,

Thanks for providing the sample code like this!
I am trying to run tis-OpenCV.py, but the script keeps shutting down at line 79 (Python raises an OSError, with the error code as shown above):

Camera.SetPropertyValue("Gain", "Value", 1)

When I comment the line out, everything else works out as expected, up to the point when I hit Ctrl-C.

Do you have any idea about what is going on?

In case, below is the description of my environment:

  • Windows 10 (probably the latest build as of July 2021)
  • Anaconda
    • Python 3.8.10
    • NumPy 1.20.3
    • OpenCV 4.0.1
  • IC-Imaging-Control-Samples bb2368
  • Camera: DMK 33UP1300 (Driver version: 5.0.1.1607), through a USB3 cable

EDITED: forgot to mention about the acquisition configs. I tried several grayscale settings (Y16, full HD or 640p) with some frame rates (~30 fps, ~50 fps or ~60 fps), and obtained the same results.

Thanks,
Keisuke

@TIS-Stefan
Copy link
Collaborator

The gain minimum value of the DMK 33UP1300 is 144. Not 1.
Please try 144.

@gwappa
Copy link
Author

gwappa commented Jul 16, 2021

Oh, I see. The line worked after I change the value to 144.
Is there a way to check the valid range of values, either programmatically or on the manual?

Thanks a lot!

@TIS-Stefan
Copy link
Collaborator

Yes, there should be a range or a minimum function.
At least, it is in the DLL. I am not sure, whether it is imported in Pyhton. (That is always double work,)

@TIS-Stefan
Copy link
Collaborator

I see, there are no property range / min / max functions imported in tisgrabber. py.
The function to be imported from the DLL is IC_GetPropertyValueRange. See "tisgrabber.h" for a short documentation of this function.

@gwappa
Copy link
Author

gwappa commented Jul 16, 2021

Yeah, now I see it myself. Well, it seems anyway doable to export it to python for my own purpose anyway.

Everything becomes clear by now. Thanks again for your response!

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