NMGRL / toupcam

Python interface to ToupCam Cameras
http://www.touptek.com/product/showproduct.php?lang=en&id=108
Apache License 2.0
26 stars 15 forks source link

camera error #9

Open areebakq opened 3 years ago

areebakq commented 3 years ago

Hi, I keep getting the following error when trying to run camera.py:

Traceback (most recent call last): File "c:\Users\akq190000\Downloads\toupcam-20210804T155303Z-001\toupcam\camera.py", line 279, in cam.save('foo.jpg') File "c:\Users\akq190000\Downloads\toupcam-20210804T155303Z-001\toupcam\camera.py", line 55, in save image = self.get_pil_image() File "c:\Users\akq190000\Downloads\toupcam-20210804T155303Z-001\toupcam\camera.py", line 82, in get_pil_image raw = data.view(uint8).reshape(data.shape + (-1,)) AttributeError: 'NoneType' object has no attribute 'view'

I have 2 cameras connected to my computer that work fine with other code and I'm not sure where this error is coming from. I am sort of a beginner in Python so apologies if it's an obvious thing I missed. Any help is appreciated!

milkyyyyyyyy commented 2 years ago

Hi there! HAS ANYONE solved this problem? I have just the same trouble. Think just than toupcam are rudimentary for modern development of software solutions for digital microscopes.