Implement USB-based camera under WinCE

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.