Programmatically controlling the camera

January 2013

There are several methods in the Microsoft Windows Embedded Handheld (formerly Windows Mobile) operating system to programmatically control the built-in camera. The following web pages describe some of the various methods, in order of recommendation highest (top) to least (bottom).

 

 

Official sample code from Microsoft is provided at the following web page and sub-links.

 

 

The resolution of the built-in camera on some of our newer rugged handheld computer products may cause "out of memory" issues when trying to programmatically capture camera images. Information in regards to the cause of such an issue as well as the best methods to work around the issue are described in the following article.

 

Program memory (RAM) limitations and management

 

Using the OpenNETCF SDF image functions has been known to at least allow 1600 x 1200 image captures without encountering out of memory errors.

 

Another method to work around such an issue is to reduce the resolution of the images being captured. Refer to the following Windows registry key settings for how this could be done.

 

[HKEY_LOCAL_MACHINE\Software\Microsoft\Pictures\Camera\OEM\PictureResolution]
"OptionNum"=dword:5
***This would be how you would tell what the max resolution is. It is zero-indexed so (OptionNum – 1) is max for the “Resolution” value.

 

RegistryKey rKey = Registry.CurrentUser;
rKey = rKey.OpenSubKey("Software\\Microsoft\\Pictures\\Camera\\User", true);
rKey.SetValue("Resolution", 1);
rKey.SetValue("QualitySetting", 0);
rKey.Close()

 

Additional ideas and information may be provided at the following web pages.

 

 

Alternative camera options for use with our rugged handheld computers are listed at this web page.

 

http://www.junipersys.com/Juniper-Systems-Rugged-Handheld-Computers/support/Knowledge-Base/Support-Knowledge-Base-Topics/Accessories/Camera-options-for-the-rugged-handheld

SNOWGAGE

HARVESTMASTER

JUNIPER SYSTEMS

CEDAR PRODUCTS

JUNIPER ASPECT

DIVISIONS

Juniper Systems &

HarvestMaster Main Office
_____

1132 W 1700 N

Logan, UT 84321 U.S.A.

Tel: 435.753.1881

Fax: 435.753.1896

Juniper Systems, EMEA

Main Office
_____

1st Floor

4 The Courtyard

Buntsford Gate, Bromsgrove

B60 3DJ, UK

Tel: +44 (0) 1527 870773

HarvestMaster Europe

Main Office
_____

Bauernstrasse 9, 4600

Wels, Austria

Tel: +43 7242219333

Email: office@harvestmaster.eu

SOCIAL

juniper blog

linkedin

youtube

facebook

twitter

SITE MAP

Copyright © 2018 Juniper Systems Inc. All rights reserved.