Ask Your Question

风飞向何处's profile - activity

2016-10-04 22:38:36 -0600 received badge  Nice Question (source)
2015-04-22 23:26:20 -0600 received badge  Famous Question (source)
2014-11-04 17:53:54 -0600 received badge  Notable Question (source)
2014-08-04 05:10:32 -0600 received badge  Popular Question (source)
2014-06-19 17:32:07 -0600 received badge  Student (source)
2013-12-24 03:24:35 -0600 commented answer how to using OpenCv API get web video stream!

thank you very mach! I have get webcam .I'm using ubuntu os . the ffmpeg is a encoding lib . it is using for linux not windows , so I think there is some error with my vs 2010 not ffmpeg

2013-12-23 23:45:02 -0600 commented answer how to using OpenCv API get web video stream!

Mat grains(480,640,CV_8UC3,Scalar::all(0)); const string videoStreamAddress1 = "http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8?dummy=param.mjpg"; //From mjpeg streamer const string videoStreamAddress2 = "http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8?dummy=param.mjpg"; //From mjpeg streamer

if(!vcap1.open(videoStreamAddress1)) { cout << "Error opening video stream1" <<endl; }
after execute this cord the screen print Error opening video stream1 , if i'm using browser I can capture webcam. but can't capture using vs2010

2013-12-23 22:07:48 -0600 commented answer how to using OpenCv API get web video stream!

thanks! I'm using your cord: cap.open("http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8dummy=param.mjpg"); the URL can open in browser,but can not open in vs2010 use you code :cap.open(URL); whether should I do some setting with my vs2010 ? or the version problem of my opencv . my opencv version is 2.3.0

2013-12-23 21:26:33 -0600 asked a question is there a method to get a picture from web ?

is there have a OpenCV API to get picture from web?the URL is http://192.168.1.200:8080/action=snapshot

2013-12-18 03:33:21 -0600 commented answer how to using OpenCv API get web video stream!

thinks for your replay! my compiler is vs2010 , I used your method! but I can't succeed. whether should i do some setting?

2013-12-06 01:27:00 -0600 asked a question how should I do, if I using the Compiler vs2010 read web camera?

how should I do, if I using the Compiler vs2010 read web camera? the web IP is 192.168.1.180/?action=stream . I can see the picture from IE. whether should set vs2010?

2013-11-20 01:30:53 -0600 asked a question how to using OpenCv API get web video stream!

Is there have a API we can use to get video stream from web. For example from 192.168.1.180/?action=stream.

2013-11-13 22:15:04 -0600 commented question which version have stitcher class!

I have found the answer. in the version 2.4.0 have the class stitcher.

2013-11-13 21:05:06 -0600 commented question about use Mat to make binary image

thank you for you help!!!

2013-11-13 20:42:18 -0600 asked a question which version have stitcher class!

who can tell me which version have stitcher class. the version 2.4.0 have it ?

2013-10-23 02:17:57 -0600 asked a question about use Mat to make binary image

I want make a binary image . the code is the following:

#include<opencv\cv.h>
#include<stdlib.h>
#include<opencv2\opencv.hpp>
#include<opencv\highgui.h>
using namespace cv;
int main()
{
    int i=0,j=0;
    Mat img = imread("hh.jpg");
    if(img.empty())
    {
        printf("无法打开\n");
        return 0;
    }
    for(i=0;i<img.rows;++i)
        for(j=0;j<img.cols;++j)
        {
            if(img.at<uchar>(i,j)>=230)
                img.at<uchar>(i,j)=255;
            else
                img.at<uchar>(i,j)=0;
        }

    imshow("图片浏览",img);
    waitKey();
    return 0;
}