You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use your package to get a image from Olympus sc180 camera.
I could find the device but cannot get the image.
Whenever I call
source.RequestAcquire(0,0)
it returns "Unexpected result: 2"
I tried with your demo code--simple_base.py
I added following four lines on to our code:
asdf = TwainBase()
asdf.Initialise()
asdf.OpenScanner()
dd = asdf.AcquireNatively()
still it returns same error as following:
Exception has occurred: Exception
Unexpected result: 2
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 86, in _Acquire
self.SD.RequestAcquire(0, 0) # 1,1 to show scanner user interface
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 95, in AcquireNatively
return self._Acquire()
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 191, in
dd = asdf.AcquireNatively()
is there any way to overcome?
The text was updated successfully, but these errors were encountered:
Hi @denisenkom
I am trying to use your package to get a image from Olympus sc180 camera.
I could find the device but cannot get the image.
Whenever I call
source.RequestAcquire(0,0)
it returns "Unexpected result: 2"
I tried with your demo code--simple_base.py
I added following four lines on to our code:
asdf = TwainBase()
asdf.Initialise()
asdf.OpenScanner()
dd = asdf.AcquireNatively()
still it returns same error as following:
Exception has occurred: Exception
Unexpected result: 2
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 86, in _Acquire
self.SD.RequestAcquire(0, 0) # 1,1 to show scanner user interface
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 95, in AcquireNatively
return self._Acquire()
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 191, in
dd = asdf.AcquireNatively()
is there any way to overcome?
The text was updated successfully, but these errors were encountered: