Giter VIP home page Giter VIP logo

delphi-twain's Introduction

delphi-twain

Twain features for Delphi

Installation

DelphiTwain is a runtime library. There are no visual components that have to be installed. Just add the source code directory to your library path and start using DelphiTwain.

The library is initially created by © Gustavo Daud and modified by Nemeth Peter and vcldeveloper.

Library design

  • Full html help for the component classes. The library is able to fully access Twain capabilities.
  • VCL, LCL and FireMonkey support (Windows-only).
  • TDelphiTwain 1.4 is not a TComponent descendand any more - you can't install it into the Delphi pallete and use it as a non-visual component any more. You have to use it from code only and free it by yourself (see the DEMO). For VCL add DelphiTwain and DelphiTwain_VCL to the uses clause. For FireMonkey add DelphiTwain and DelphiTwain_FMX units to the uses clause.
  • Acquiring images is easy as a few line codes.
  • Direct access to various twain features.
  • Showcases making it easy to learn.
  • Supported Delphi versions: VCL: Delphi 6 and newer FireMonkey: Delphi XE2 and newer.
  • Supported Lazarus versions: 1.0.0 and newer.

Kluug.net modifications

  • Version 1.4: FireMonkey support (XE2+) - thanks to Frediano Palazzi for financially supporting this modification. TDelphiTwain is not a TComponent descendand any more - you have to use it from code only and free it by yourself. For FireMonkey add DelphiTwain and DelphiTwain_FMX units to the uses clause. For VCL add DelphiTwain and DelphiTwain_VCL to the uses clause.
  • Version 1.3: New method OnTransferComplete: fired when all documents are scanned or the scan is canceled. Thanks to Andrei Galatyn. Fixed function FloatToFix32 - thanks to Chad Berchek.
  • Version 1.2: bug fixies: Color problems solved (thanks to Marco & Christian). All modes are supported again.
  • Version 1.1: bug fixies: TWAIN drivers did not respond - now both WIA and TWAIN can be used. Only native mode is supported!
  • Version 1.0: Lazarus support
  • Version 1.0: experimental 64bit compiler support (you need 64bit scanner and TWAIN drivers: http://sourceforge.net/projects/twain-dsm/ and tweak the line 778 in DelphiTwain.pas:
fHandle := Windows.LoadLibrary(PChar(TwainDirectory + TWAINLIBRARY));

to the new DLL). 64bit code has not been thoroughly tested. If your 64bit application does not show any TWAIN sources, you are probably missing a 64bit TWAIN driver for your scanner.

Original versions

Original code: delphitwain.sourceforge.net Unicode modifications: stackoverflow.com/questions/2059343/twain-scanning-components-for-delphi Additional modifications: kluug.net/delphitwain.php

delphi-twain's People

Contributors

tiagoefmoraes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delphi-twain's Issues

Access violation ShowUI=False

Hi,

Please note that when executing the DelphiTwainDemo2 with the option Scan Without Dialog an access violation exception raised.

Best regards.

new feature plea from visually impaired user

Dear experts. I do not see at all and I have A big dream. Does somebody of us think, that it would be possible to add new procedure or function, which would allow to scan image by using USB flatbed scanner by using Black and whyte paper type and procedure should use autobrightness and autocontrast while scanning in real time at The same time? FInereader, Complex C app calls Twain to automatically adjust brightness when scanning by using black and whyte. But what about if somebody very advanced of us would try to invent new revolutionar routine, which would allow to scan by using auto brightness and auto contrast at The same time? HDoes somebody of us think, that it is technically possible to use automatic solution which would change brightness and contrast values when scanner head flow from up to down under The scanning glass? Or only brightness can be controlled and contrast and brightness can not be automatically controlled to get The optimal result? Where I could find some mathematical formulas, which could be used to automatically adapt contrast and brightness values while scanning to get very smart input picture quality from The scanner?
It would be a big revolution when converting paper document to textual form by using OCR software.
What do you think about my dream?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.