Codecore Logo
Quick Search
»
Advanced Search »

Scanner And Camera Driver

RSS
You can use the Scanner and Camera Driver to download and save pictures from a scanner, digital still camera, digital video camera, and other image-capturing devices, to a folder you specify. You can then for example use the web browser touch screen control to show the picture. This driver requires Windows XP SP1 or newer.

To show your saved images in a touch screen, see the Touch Screen Web Cam Tutorial.

Manufacturer: N/A


Configuration Settings

  • Destination Path : The file path of where to save each captured image.
  • Diff Destination Path : (optional) The file path of where to save the difference from the previous image. This image file will show all differences from the previously captured image as white.
  • Imaging Device : The WIA Device ID of the imaging device. A list of imaging devices will be shown, you must choose one.
  • Capture Image Interval : (optional) The time duration between capturing images. Format: [days.]hours:minutes[:seconds] Days and seconds are optional, denoted by the square brackets. Example: 00:01:30 represents 1 minute and 30 seconds. Defaults to 30 seconds.
  • File Format : (optional) The image file format to use when saving the image. One of JPEG, PNG, GIF, BMP. Defaults to JPEG.
  • ColorBalance Tolerance : (optional) Many image devices (such as web cameras) tend to fluctuate the color balance from image to image which can cause false positives during motion detection. This setting comensates for this fluctuation by allowing you to enter the percent color balance tolerance to ignore between captured images when detecting motion. Defaults to 20%. (Enter a value from 0 to 100).
  • Image Difference Tolerance : (optional) The percent difference consecutive captured images can be vary before they are considered to be different for motion detection. Defaults to 0.3%. (Enter a value from 0 to 100).

Events

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:

  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Image Captured

Occurs after an image is captured and saved.

Whenever Filter:

none

EventArgs:

  • String FilePath : The location where the file was saved.

Motion Detected

Occurs when motion has been detected.

Whenever Filter:

none

EventArgs:

  • String PercentDifference : The percent difference between the current and previous image capture.

Instance Properties

CapturedFrameCount

Gets the number of frames that have been captured since the driver was last started.

Accessibility : Read Only

Type: Number

DetectedMotionCount

Gets the number of times motion has been detected since the driver was last started.

Accessibility : Read Only

Type: Number

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

CaptureNow

Forces the driver to capture and save an image now.

Syntax

void CaptureNow( )

Parameters

none

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.