OPENCV Programming-> Windows7 lowered with Iphnoe camera

Source: Internet
Author: User

Fingertip Heat original, reproduced please specify from Http://blog.csdn.net/sunboyiris/// //////////////////////////////////////////////////

First install the Webcamera software on the iphone, Windows7 the Webcamera software on the system.

On the Webcamera on the WINDOWS7 system, such as the following:

Click Enter settings such as the following:

Open the Webcamera software on your iphone:

Set in connection settings: ipport:192.168.23.1 port:800

Click Connect, the computer shows a demo sample such as the following:


Test success.


The next step is to start programming, which will stream the video into the program.

First look at the Device Manager:


See here is very clear, write code without calling Ipport, directly with the device number can read the video stream.

Add code to the main function:

Declares the iplimage pointer  iplimage* pframe = NULL;  Get camera  cvcapture* pcapture = cvcreatecameracapture (0);  Create form  Cvnamedwindow ("video", 1);  Display the video screen  while (1)  {  pframe=cvqueryframe (pcapture);  if (!pframe) break;  Cvshowimage ("video", pframe);  Char C=cvwaitkey (+);  if (c==27) break;  }  Cvreleasecapture (&pcapture);  Cvdestroywindow ("video");  System ("pause"); return 0;
Perform such as the following:

Holding a mobile phone is only able to be monitored within the range of WiFi.

Get the camera data, you can plan the next ....

Fingertip Heat original, reproduced please specify from Http://blog.csdn.net/sunboyiris/// //////////////////////////////////////////////////



OPENCV Programming-> Windows7 lowered with Iphnoe camera

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.