We are a GPS product based on WinCE, and customers need the camera function. Our product integrates the camera function of two solutions: USB camera and camera based on tvp5150 video codec (camera sensor, only the USB camera is introduced here.
To implement this function, we need to do the following work.
1. there should be many USB cameras that support wicne, and drivers should not be shared. Therefore, we need to select a USB camera based on project requirements (such as pixel requirements, we need to find the driver under wince provided by the company selling USB camera converter. Here we adopt the USB camera solution vc301s, and the corresponding driver is webcam. DLL.
2. Copy the webcam. DLL driver to the Files folder of the BSP package.
3. Add the following content under platform. bib.
Add the following content to the wince5.0 system:
Webcam. dll $ (_ flatreleasedir)/webcam. dll NK sh
Add the following content to the wince6.0 system:
Webcam. dll $ (_ flatreleasedir)/webcam. dll NK Shk
4. Add the following registry information to platform. Reg:
;;;;;;;;;;;;;;;;;;;;;;;; Add fro USB camera ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[HKEY_LOCAL_MACHINE/Drivers/USB/clientdrivers/video_class]
"Prefix" = "Cam"
"DLL" = "webcam. dll"
[HKEY_LOCAL_MACHINE/Drivers/USB/loadclients/1133_2241/default/video_class]
"DLL" = "webcam. dll"
[HKEY_LOCAL_MACHINE/Drivers/USB/loadclients/1133_2242/default/video_class]
"DLL" = "webcam. dll"
[HKEY_LOCAL_MACHINE/Drivers/USB/loadclients/1133_2243/default/video_class]
"DLL" = "webcam. dll"
[HKEY_LOCAL_MACHINE/Drivers/USB/loadclients/1133_2245/default/video_class]
"DLL" = "webcam. dll"
[HKEY_LOCAL_MACHINE/Drivers/USB/loadclients/default/14/video_class]
"DLL" = "webcam. dll"