![]() camera specific code.įollowing code snippet makes a setting of the parameters. This code selects first device from the device list and runs the scanner resp. handle a transfered image or an exceptionįollowing code initialize the WIA/ICA manager and retrieves the list of actually connected devices.acquiring an image (scan document, transfer image from camera, etc.).selecting a source (scanner, camera etc.).initialization of image acquisition manager (WIA or ICA) and retrieving a list of connected devices.In this example we'll make an overview how to acquire a single image using Morena7 library. Native components stored in morena_win.jar or morena_osx.jarĪre copied automatically into TMP_DIR folder. Morena_osx.jar has to be in the CLASSPATH. Following Java archives morena7.jar, morena_license.jar and morena_win.jar or There is no extra installation necessary. and appropriate device driver installed (WIA on MS Windows and ICA driver for MacOS X platform).some image acquisition hardware like scanner or camera.Following components are necessary for its use: Morena7 acts as Java wrapper for WIA and ICA API. The image is obtained in callback method TransferDone(File file) Technical requirements Difference can be found also when acquiring an image since in Morena7 The list of currently installed drivers is returned (no mater if the device is connecter or not). It is an oposite to Morena6 (TWAIN/SANE) where This difference appears when obtaining available sources where only actually connected devices are listed. The most notable change that result from asynchronous nature of both native interfaces (WIA and ICA) is that provided Morena7 API is alsoĪsynchronous. Most established commercial desktop operating systems such as MS Windows and Mac OS X. ![]() It brings a new common Java API for WIA and ICA (Image Capture) interface that opens the door to the native image acquisition API for the Morena 7 is not a direct successor but rather an evolution of the Morena 6 (TWAIN/SANE implementation) concept. Image Capture is an application program as well as the architecture that enables users to transfer images from camera or scanner on Mac OS X platform. WIA Windows Image Acquisition (WIA) is the still image acquisition platform in the Windowsįamily of operating systems starting with Windows Me and Windows XP and continuing to the most recent Windows 7. Morena 7 - image acquision framework tutorial Commonly used terms
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |