S
S
slmuim2022-01-04 08:04:35
Django
slmuim, 2022-01-04 08:04:35

Is it possible to interact with the user's scanner from a Django web application?

There is a Django application in which the processing of documents is as follows:

A user scans a document using a scanner connected to his/her computer.
The scanned image is saved locally on the user's computer as a file.
The user clicks the "Browse..." file upload button in the web application.
The user is presented with a file dialog which he/she uses to search for the scanned image.
The user clicks "Upload Image" and the scanned image is uploaded to the server where it is stored.
This process is quite complex and I would like to reduce the number of steps to make it more user friendly and reliable. Under ideal circumstances, the above steps should be replaced with only one step, where the procedure initiates the scanning of the document, the full scan of the document and the download of the resulting image is automatically launched from the web application when the "Scan and Download" button is clicked.

Are there ways to reduce the number of steps in the described use case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2022-01-04
@firedragon

Since the browser runs with severe restrictions on the system, it does not have access.
The only way out is to write an application.
I will write about C#
1. add WIA form to it https://docs.microsoft.com/ru-ru/windows/win32/wia...
2. scan protocol handler

< a href="scan:http://youserver/api/uploaddocument">Быстро сканировать</a>

description of handlers
https://docs.microsoft.com/en-us/windows/win32/sea...
That's all. Just keep in mind that external users are unlikely to use it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question