Ask Your Question

Loyd's profile - activity

2020-09-18 07:34:46 -0600 received badge  Student (source)
2018-10-01 11:38:53 -0600 received badge  Famous Question (source)
2018-04-24 05:35:19 -0600 received badge  Notable Question (source)
2018-03-02 17:07:55 -0600 received badge  Popular Question (source)
2017-09-15 13:10:19 -0600 answered a question opencv3.3.0 undefined reference to cv::String::deallocate() (in cvstd.hpp)

Well, I left this problem to stew for a while and worked on other things with the Raspberry Pi. I did a lot of trial an

2017-09-07 15:48:03 -0600 commented question opencv3.3.0 undefined reference to cv::String::deallocate() (in cvstd.hpp)

Incidentally this is the code that is being compiled: include <cstdio> include <opencv2 opencv.hpp=""> us

2017-09-07 15:33:01 -0600 asked a question opencv3.3.0 undefined reference to cv::String::deallocate() (in cvstd.hpp)

opencv3.3.0 undefined reference to cv::String::deallocate() (in cvstd.hpp) I am using Visual Studio 2017 Community editi

2017-08-24 14:13:30 -0600 commented question Use OpenCV to obtain PiCar MJPG-streamer video

Dumb, dumb, dumb me!!! Can you believe it was a typo!! The IP address should have been 192.168.1.81:8080 not 192,168.0.81:8080. I must have looked at that line a hundred times and never saw the error!! As a newbie, I can't answer my own question for another 23 hrs but thought I should do something to not waste people's time. Thanks all for your time.

2017-08-23 14:05:27 -0600 asked a question Use OpenCV to obtain PiCar MJPG-streamer video

I have built a SunFounder PiCar-V (Raspberry Pi 3 running Raspbian) which uses a Python server "running a software written for the MJPG-streamer project". I wish to capture the video stream with OpenCV 3.30 x64 in C++. Below is my test program which shows the result occurring.

// ============================================================================
// PiCarVideoTest - Testing how to use OpenCV to open PiCar video stream.
// Debug x64 version with property sheet: 
//    C++ - Additional Include Directories: $(OPENCV_BUILD)\include
//    Linker - Additional Library Directories: $(OPENCV_BUILD)\x64\vc14\lib
//    Linker - Additional Dependencies: opencv_world330d.lib;...
// Result of program - vcap.open fails:
//   warning: Error opening file(/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:792)
//   warning: http://192.168.0.81:8080/?action=stream;dummy=param.mjpg (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:793)
// ============================================================================

#include <opencv2\opencv.hpp>
#include <opencv2\highgui.hpp>

using namespace cv;

int main(int, char**) {
    VideoCapture vcap;
    Mat image;

    // Setup video stream location per internet research results.
    const std::string videoStreamAddress = "http://192.168.0.81:8080/?action=stream;dummy=param.mjpg";

    // Open the video stream and check that open was successful.
    if (!vcap.open(videoStreamAddress)) {
        std::cout << "Error opening video stream or file" << std::endl;
        return -1;
    }
...

It appears OpenCV is attempting to treat the internet address as a file name. I have fought this problem for two days and have not been successful at solving it. Any help would be greatly appreciated!!