Webusb to scan documents

后端 未结 3 1403
攒了一身酷
攒了一身酷 2021-01-13 17:20

Anybody had successfully configured webusb to scan a document ? I am able to connect to the usb scanner but wasn\'t able to find any documentation on commands to scan docume

3条回答
  •  隐瞒了意图╮
    2021-01-13 17:46

    I'm hoping this will be helpful, though it's not a direct answer to the question.

    After spending a lot of time trying to get WebUSB to work try researching other options, I found a solution that works well for my web app. Simply use scanimage to scan to the server. The client sends and AJAX request, the server builds a command string to run with shell_exec in PHP, then use file_get_contents or whatever with the scanned image. In my situation, there's no reason for the scanner to talk to the client, since the image is going to end up in a database on the server anyway.

    See also: Browser based document scanning

提交回复
热议问题