The Camera Application allows you to capture images and save as .JPEG format. The SDK automatically detects webcams attached to the system and gives the option for users to choose if there are multiple webcams attached. If there is no webcam attached to the system, the SDK chooses predefined camera simulation.
Prerequisites
Webcams:
Webcams need to be attached to the system.
You need to install drivers for all webcams.
If there are multiple web cams attached to the system, you need to choose by pressing CTRL+W when the emulator window displays.
Multiple instances can support camera simulation, but only one real webcam device can be used by one instance at a time.
Simulation of camera using set of predefined images:
SDK simulates the camera using set of continuous frame of images to make the camera viewfinder.
Captured image would be one among the frame of images.
Note: Captured images are shown in landscape mode only. Portrait mode option is disabled.
How to start the Camera
Press CTRL + W
Choose the desired option from the drop-down list of available cameras in the system. During the webcam selection, if at times there exist any problem in communicating with the webcam, then the predefined camera simulation frames gets rendered on the viewfinder window.
Figure: Select the Camera
Go to Menu -> Photos -> Camera.
A message appears as “CAMERA: There is webcam attached to your system. If you want to capture the images from webcam press CTRL+W” in the diagnostic and console. The “WebCam(Instance number)” window displays the viewfinder of webcam. The emulator also displays the viewfinder of camera and also to capture images.
Note: To view the images from the Camera capture, the webcam window should always be shown completely on the PC screen, else only whatever portion of image is visible on the PC screen will be visible on the emulator.
Figure: Camera Simulation