Header

Examples
[Image handling]

Table of contents:

pr_capture_simple - Simple Capture example

Show how to capture image.

The needed gxsdldr.c loader file is included directly:

The __lib__.h file contains some library functions used only in the sample programs, such as the lib_function_start and lib_function_end functions that implement the simple command line interface and measures the elapsed time between the two function calls.

The main function:

Opening the Passport Reader system:

Connecting to the first device. If no device is connected then the pr_usedevicen() function returns false and the program ends:

The main loop begins:

Capturing images:

Saving the white image:

The main loop ends:

Closing the device:

Closing the Passport Reader system:

The sample program ends printing some statistic information:

The complete source code:

pr_capture_adv - Advanced Capture example

Show how to capture image using advanced features

The needed gxsdldr.c loader file is included directly:

The __lib__.h file contains some library functions used only in the sample programs, such as the lib_function_start and lib_function_end functions that implement the simple command line interface and measures the elapsed time between the two function calls.

The callback event function. When an event signals, its name is displayed:

The main function:

Opening the Passport Reader system:

Get the device list. If no device is found, the program ends.

Connecting to the first device. If no device is connected then the pr_usedevicen() function returns false and the program ends:

Warming UV tubes:

Setting all the lights for the first page:

Setting the event callback function:

The main loop begins:

Capturing images:

Saving the original image:

Saving the document image:

The main loop ends:

Turning off the lights:

Closing the device:

Closing the Passport Reader system:

The sample program ends printing some statistic information:

The complete source code:


Generated  for Passport Reader
(c) ADAPTIVE RECOGNITION