Typically, if your application interacts with scanners, TWAIN is recommended. While for cameras, WIA offers better support.
So, for the solution of document scanning, I would recommend TWAIN.
The TWAIN.H file is the C / C ++ header file. If you want to copy it to .NET yourself, you can refer to this post to get some resources: Using TWAIN in .NET - finding resources
Or you can use the commercial .NET TWAIN component.
source share