Ask Your Question

mvuori's profile - activity

2020-11-12 08:16:40 -0600 commented question Imwrite format output filename

You have a generic, very basic string building question that has nothing to do with OpenCV and has no place here.

2020-11-11 12:10:07 -0600 commented question ai that analyses live video footage and can calculates the distance between 2 or more people

You must have read the FAQ and noticed that e.g.the following questions are not allowed: "Questions about your homework

2020-11-10 14:14:14 -0600 commented question OpenCV Video Capture nonfunctional as class member (C++)

(Here your code is completely illegibly formatted and impossible to even try to understand.)

2020-11-10 00:56:35 -0600 answered a question findcontours mystery unsupported format

Well, you are passing that function a 16 bit image, while it tells you that it only accepts 8 or 32 bits. So, after lapl

2020-11-03 03:21:25 -0600 answered a question I want get image with my device

This is because an YUVY image height and width must be a multiple of 4.

2020-10-31 09:41:31 -0600 commented question How can I get this code working in case of video having colored background?

You can't make it work for anything as long as you use single backslashes in file paths

2020-10-17 01:33:43 -0600 answered a question Camera only shows first frame, then it becomes slow and then it completely freezes

Impossible to say, as FileVideoStream is not an OpenCv class (but at least you need to check what read() returns)

2020-10-11 03:27:21 -0600 commented question How to solve TypeError: Expected Ptr<cv::UMat> for argument 'src'?

...Your code doesn't output the "Found 3 faces in Input image #2!" message so it comes from another piece of code... B

2020-10-10 08:55:59 -0600 commented question Compilation error while building from source

I think you have installed hdf5 runtime, but lack the development package libhdf5-dev

2020-10-02 07:24:22 -0600 commented question Measuring the diameter of circles

(I can't see any circles in the image, do it might be hard for OpenCv too...)

2020-09-24 05:12:14 -0600 answered a question cv:imwrite Python error with Windows: can't open file for writing: permission denied

That's because you lack permissions in that special template folder. You are running into Windows' features, not OpenCv'

2020-09-16 12:36:10 -0600 commented question OpenCV image display

I guess you should forget samples.findFile and just call imread with your own path to any file you wish to open, unless

2020-09-12 08:52:51 -0600 commented question Chessboard Calibration DBL_EPSILON error

Guessing what is wrong would be easier if there was code to guess from... but the error implies that something is too cl

2020-09-11 07:48:36 -0600 commented question cap_msmf.cpp (435) [ WARN:0] on cv2.VideoCapture break

When you googled the warning message, you must have noticed that LOTS of people have encountered that warning and discus

2020-09-10 00:20:06 -0600 commented question Opencv multiple circle detection in a image

... and mark the circles that aren't detected...

2020-08-21 04:14:06 -0600 commented question Connect several cameras openCV python

(Of course, a program should not crash just due to delays or number of threads. Delays can be handled and threads orhest

2020-08-19 06:01:23 -0600 commented question OpenCV Net from ONNX not works

Your code doesn't do any checking whether the function calls succeed and what the variables contain... Start with that.

2020-08-19 03:01:40 -0600 commented question Webcam image distorted

You might want to remove the "a few libraries", then add them one at the time and identify any changes in your program's

2020-08-15 03:08:49 -0600 commented question Hi . I'm new to openCV .Probably this is my first one. What is a mask and why is it used ?

That is not "a mask", but a variable named mask. What it represents and what it is used for, and how, depends on the pro

2020-08-07 14:23:48 -0600 commented question Disable file system cache during imwrite

If the system has a cache, the problem is that your hard drive becomes the bottleneck aften the cache fills up. Obviousl

2020-08-07 12:24:02 -0600 commented question How do you identify if the image is cut at the edges using OpenCV?

I don't understand what the code tries to do - which is the first thing to describe and for others to understand.. The

2020-08-06 15:09:32 -0600 answered a question createVideoReader > 4096 px

I guess there are 2 alternatives: 1) modifying the software and hoping it works... 2) as only some videos are too large,

2020-08-06 00:43:21 -0600 commented question Capture Video from Camera using cv2.VideoCapture(0) not working

First two advices are about asking help: 1) If "it says some VideoCodec_RGB24 error", report what the error exactly is,

2020-07-28 10:04:17 -0600 answered a question Need explanation for the following! thanks in advance.

8S is really a char, but you are feeding the Mat a buffer of ints - which in 32 bit program are 32Ss...

2020-07-24 11:04:58 -0600 answered a question Block until window closed

A minute of googling could have made you find out that you can use getWindowProperty() to check whether the window is ok

2020-07-23 07:52:46 -0600 commented question Conversion JPEG to raw image

If by "raw" you mean a bayer "image", you can't, and that would be a silly thing to do

2020-07-17 03:38:44 -0600 commented question cv2.imread() gives None, but the path/cwd is correct

If it worked a couple of hours ago, but not now, something has changed - perhaps crashed. It is not uncommon to debug a

2020-07-15 08:46:19 -0600 commented question VideoCapture.read() freezing when reading from gstreamer

I don't know, but while it freezes on that line, things may have failed elsewhere. I'd try without the yield command

2020-07-10 10:18:03 -0600 commented question Ideal Pinhole Camera consistency

I _think_ that is expected, especially if the pinhole is an attachment over the device's autofocus optics. The device's

2020-07-09 13:26:54 -0600 commented question Why are the coordinates of each crack not steady

One possibility is that it has something to do with your code - which you don't show

2020-07-03 01:09:50 -0600 commented question i am doing a project to predict age and gender using tensorflow and opencv. and how to add path for xml file.

You don't even test that videcapture. read() succeeds... that's what ret is for. Likely your videocaoture is not even op

2020-06-30 16:11:07 -0600 commented question Which version of OpenCV is suitable for android 3.6.1 and greater visions?

There has never been. version 3.6.1 of Android.

2020-06-19 20:40:25 -0600 answered a question Flipping image to create canvas with simmetry

The problem is in the code that you, for some reason, don't show: your function getOrderedPoints gets the points wrong.

2020-06-19 11:06:48 -0600 commented question Unhandled exception (msvcr120.dll) using imwrite()

Googling shows that the code might imply stack overflow, but also pethaps running out of consecutive memory. So the prob

2020-06-08 07:19:44 -0600 answered a question find corners coordinates of a circle grid

The corner blobs are the ones whose distance from the corner is smallest. Calculate that for each blob, for each corner.

2020-06-07 13:38:23 -0600 answered a question convert Lab to one dimension

If by intensity you mean luminance / lightness, you can split() a Lab image into its components and thus get the L compo

2020-06-05 16:10:09 -0600 commented question get position of objects using ir

"The good people of arduino" don't seem to have much to do with OpenCV...

2020-06-01 14:14:02 -0600 answered a question Difference between two captures

Did you test the images in an image editor that they really are the same? You could compare an image with itself. Two ca

2020-05-23 16:09:00 -0600 answered a question How to detect face from 5 meters ?

Nobody can help you here, as your code doesn't use OpenCV for the detection - just like it is explained in the code. You

2020-05-22 13:25:21 -0600 answered a question How to save a previous video frame in a live video clip

Just put your current frame into a variable named "previous_frame" and once you read the next frame, you have it there

2020-05-19 06:14:31 -0600 commented question How can I delete Red channel from image and use only Green merged to blue?

It would be easier to see what you do wrong if you tell what happens wrong...

2020-05-17 14:14:31 -0600 commented question segmentation fault (core dumped)

You should learn about debugging, that's the thing programmers do to find where and why code crashes with the data they

2020-05-10 18:54:49 -0600 commented answer OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

No known OS uses double forward slashes as path separator.

2020-05-08 07:31:21 -0600 commented question Face swaping for video

Anything that is done to a still image is trivial to do to every video frame, for anyone that can program and has spent

2020-05-05 14:36:48 -0600 answered a question Create mock OpenCV camera on Python

Don't worry about VideoCapture. What you seem to need is jut a read() that return an image by some logic. Perhaps just g

2020-05-04 01:41:36 -0600 commented question Segmentation fault when cv::Mat is constructed by Image buffer and not by VideoCapture::retreive

The "sometimes" errors are a clue. Your code fails sometimes because there are errors somewhere. I'd start putting check

2020-05-01 04:35:46 -0600 commented question Memory leak with openCV on android

... Just remove things until the leak stops (don't care about how it works when hunting the bug). (Note that it is a g

2020-04-28 15:10:35 -0600 commented question Drawing a rectangle around the red color region

"it doesn't work" doesn't explain anything about the problem. You need to tell in detail how it doesn't work: what you e

2020-04-28 11:52:45 -0600 answered a question Help with latency in video

Measuring: you could shoot something that shows an exact time and compare that to the time you retrieve a frame that sho

2020-04-28 06:01:55 -0600 commented question How to count if circle (cv2.circle) cross the line (cv2.line)

In case OpenCV doesn't offer a function for this, justt use basic trigonometric calculation to find out if distance from