Impact Acquire SDK Java
|
The ContinuousCapture program is a simple example for a continuous acquisition.
[0]: BF000306 (mvBlueFOX-202C, Family: mvBlueFOX, interface layout: DeviceSpecific) Please enter the number in front of the listed device followed by [ENTER] to open it: 0 Using device number 0. Press [ENTER] to end the application Initialising the device. This might take some time... Info from BF000306: FramesPerSecond: 28.655660, ErrorCount: 0, CaptureTime_s: 0.104195 Info from BF000306: FramesPerSecond: 28.655636, ErrorCount: 0, CaptureTime_s: 0.104017 Info from BF000306: FramesPerSecond: 28.655659, ErrorCount: 0, CaptureTime_s: 0.104153 Info from BF000306: FramesPerSecond: 28.655636, ErrorCount: 0, CaptureTime_s: 0.104072 Info from BF000306: FramesPerSecond: 28.655660, ErrorCount: 0, CaptureTime_s: 0.104234
The continuous acquisition starts a separate thread (CaptureThread.java) that continuously requests images from the device.
First of all the user is prompted to select the device he wants to use for this sample:
Then after the device has been initialized successfully a continuous acquisition is started in CaptureThread.java.
Accessing the pRequest object can be done after it has been checked using the mvIMPACT.acquire.Request.isOK() function. The image attached to the request can then be processed and/or displayed if the request does not report an error.