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

TWAIN on Linux #2

Open
maashroom opened this issue Sep 29, 2020 · 6 comments
Open

TWAIN on Linux #2

maashroom opened this issue Sep 29, 2020 · 6 comments

Comments

@maashroom
Copy link

Hi

Really cool project. I've got the same scanner, and I am trying to get this to work on a computer running Ubuntu 18.04, but when I set it up, I get the following error:

Traceback (most recent call last): File "./http_server.py", line 27, in do_CGI web_app.run(**dic) File "/home/owen/repos/RackScanner/web_app.py", line 63, in run scanner_controller.scan(filename) File "/home/owen/repos/RackScanner/scanner_controller.py", line 26, in scan sm, scanner = open_scanner() File "/home/owen/repos/RackScanner/scanner_controller.py", line 55, in open_scanner sm = twain.SourceManager(0) NameError: name 'twain' is not defined

A bit of digging and I find that scanner_controller.py accesses the scanner through TWAIN. However, the pytwain module can only be called on Windows machines.

How did you get this to work on Linux?

@michalkahle
Copy link
Owner

Hi,
I'm glad you find RackScanner useful. :) The problem with AVA6 scanner is there are drivers only for Windows and worse - only for 32 bit Windows. I tried to make it work on Linux (there are some drivers here:http://www.sane-project.org/sane-mfgs.html#Z-AVISION or you can try https://www.hamrick.com/) but I did not try very hard because my colleagues prefer to run it on Windows anyway and AVA6 is not manufactured anymore. You can try to make AVA6 Twain work on Linux or install 32 bit Windows in a VM (easier in my opinion).

By the way, I'm planning a new version of RackScanner that will use CCD camera and CNN to detect barcodes this winter so stay tuned if you are interested in this.
Michal.

@maashroom
Copy link
Author

I've tried the VM approach -- didn't work unfortunately.

That's exciting! I've been looking into camera-based alternatives. I know there's lots of small, cheap, camera-based box scanners out there for scanning QR codes (mostly for payment systems, here's an example). I wonder if they could be repurposed for scanning racks. At the very least, they could probably be used for single-tube decoding.

@michalkahle
Copy link
Owner

michalkahle commented Oct 1, 2020 via email

@michalkahle
Copy link
Owner

michalkahle commented Oct 1, 2020 via email

@AndriusMas
Copy link

Hi Michal,

Great work. Just wondering if there are any good camera-based open source solutions out there. Are you still working on one? We are transitioning to barcoded tubes/racks but they are asking 15k for their scanner and software.

Thanks,

Andrius

@michalkahle
Copy link
Owner

michalkahle commented Dec 11, 2022 via email

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