T
T
TerryBear2022-02-22 17:03:19
Images
TerryBear, 2022-02-22 17:03:19

The program that converts physical. digital images?

Good afternoon, I am writing with a request to suggest how you can implement a program that will convert physical. digital image using a scanner. This is a term paper assignment, and, as for me, quite useless in our time), so I did not find any intelligible information on this topic. In principle, any language will do, but preferably python/c#. By the way, if someone has a ready-made program, then I will be very grateful to the one who throws it off, since there is absolutely no desire to implement it from scratch :(. OS: windows

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vindicar, 2022-02-22
@Vindicar

If someone has a ready-made program, I will be very grateful

For this, they send you to freelance with the wording "a task, not a question", because ...
to implement it from scratch, well, there is absolutely no desire

...there is no desire to do work for others for free.
Further, C# implies that the work with the scanner is carried out under Windows, right? You can look towards Windows Image Acquisition (WIA), this is not the best way, but moderately complex and versatile. I can suggest classes that you should pay attention to:
  • WIA.DeviceManager and WIA.DeviceInfo to list available input devices
  • WIA.Device to represent a single device
  • WIA.Item to represent a separate device component, images are taken from it
  • WIA.IProperties and WIA.Property for specifying scan settings
  • WIA.CommonDialog to show "scanning in progress" dialog box, ShowTransfer() method
  • You will get the result as WIA.ImageFile, look towards the get_BinaryData() method to get the contents of the image file in the given format . Then you either dump this file to disk, or write it to a MemoryStream and load it from there into System.Drawing.Bitmap.

At least that's what I did when I needed to solve this problem.

A
AVKor, 2022-02-22
@AVKor

By the way, if someone has a ready-made program, I will be very grateful.

SANE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question