Ask Your Question

peak@opencv's profile - activity

2019-04-05 00:32:55 -0600 received badge  Notable Question (source)
2018-11-27 04:32:30 -0600 received badge  Popular Question (source)
2018-01-22 00:24:04 -0600 commented question Normalize light

Using this: https://github.com/vascozzz/AugmentedCards

2018-01-21 09:44:24 -0600 commented question Normalize light

Thanks for your answer. I understand your point. I trained the system with a well-lit photo of all playing cards. Of cou

2018-01-21 08:38:10 -0600 received badge  Student (source)
2018-01-21 08:25:50 -0600 edited question Normalize light

Normalize light Using a webcam. With optimized light (by trial and error) for OpenCV it recognize what it should, in thi

2018-01-21 08:25:31 -0600 received badge  Editor (source)
2018-01-21 08:25:31 -0600 edited question Normalize light

Normalize light Using a camera. With optimized light (by trial and error) for OpenCV it recognize what it should, in thi

2018-01-21 08:24:09 -0600 asked a question Normalize light

Normalize light With optimized light (by trial and error) for OpenCV it recognize what it should, in this case playing c

2016-06-20 06:53:44 -0600 commented question Load a jpg image from memory

I did that (you see the old code) and it's working now. Thank You!

2016-06-20 05:54:22 -0600 commented question Load a jpg image from memory


    BYTE *g_image; // byte array for the jpg picture from the camera
    // <allocate g_image, read from camera to g_image>
    // g_image now contains a jpg image of approx 40 000 bytes and displays ok if saved to file
    //
    Mat image;
    image = imdecode((InputArray)g_image, CV_LOAD_IMAGE_UNCHANGED); // Error here, unhandled exeption from OpenCV
    imshow("video", image);


2016-06-20 05:53:44 -0600 commented question Load a jpg image from memory

I did that

2016-06-20 05:41:20 -0600 commented question Load a jpg image from memory

Cannot paste code. Formats ugly regardless of code window or not

2016-06-20 05:16:25 -0600 commented question Load a jpg image from memory

Well, as I said, casting the (byte) buffer to InputArray throws an error: OpenCV Error: Assertion failed (0 <= i && i < (int)v.size()) in cv::_InputArray

2016-06-20 04:50:31 -0600 asked a question Load a jpg image from memory

From an IP camera I've read in a jpg image to a buffer in memory. If I write this buffer to a file "picture.jpg", I can open it directly in Windows. I can also open the file with OpenCV: Mat image; image = imread("picture.jpg"); imshow("video", image);

Is there a way to directly pass the memory buffer to OpenCV? Casting it to InputArray ends in error.

Best regards, Peak