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

Error with SDK v3.12 python 2.7 #4

Open
BuuP opened this issue Aug 6, 2018 · 3 comments
Open

Error with SDK v3.12 python 2.7 #4

BuuP opened this issue Aug 6, 2018 · 3 comments

Comments

@BuuP
Copy link

BuuP commented Aug 6, 2018

Hi,
I tried to save an image using the SDK v3.12
I can read camera settings. But when I tried to save a frame as an image it gives me the following error:

 File "...\pysentech\frame.py", line 120, in to_file
    0):
 WindowsError: exception: access violation reading  0x00000000106DB000

Also I tried converting a frame to a numpy array, and got this error:

File "...\pysentech\frame.py", line 83, in as_array
  return (c_ubyte * int(self.height*self.bpi) *

AttributeError: class must define a '_length_' attribute, which must be a positive integer

Please let know if there is a way to fix this.

@derricw
Copy link
Owner

derricw commented Aug 6, 2018

Could you let me know a few things: Specifically, your camera model and pixel format?

@BuuP
Copy link
Author

BuuP commented Aug 7, 2018

Camera model : STC-MCCM200U3V
Pixel format : 4 (got this by reading camera settings) For more info, below is the product link

http://www.sentechamerica.com/En/Cameras/USB/STC-MCCM200U3V

@derricw
Copy link
Owner

derricw commented Aug 7, 2018

Thanks I'll try to take a look tonight. I have really only tested this package with SDK 3.08. I'll see if I can get 3.12 to work.

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