Ask Your Question

Nbb's profile - activity

2021-03-05 05:45:57 -0500 received badge  Notable Question (source)
2020-11-16 15:21:24 -0500 marked best answer Mouse cursor disappears

Hello,

I am reading in a video of size 1280 x 780 and then I copy it over to a newly created Mat of 1920 x 1080 filled with the value 127. Why is it that the mouse cursor disappears when I move it out of the video region ? The cursor disappears when I move it into the gray region (picture below). The black region is the video. image description

2020-11-16 14:54:54 -0500 marked best answer ROI out of bounds issue

Hello forum,

I would like to crop out a part of my image using

Mat crop = frame(_rectangle);

The problem is, I get an error when _rectangle is out of bounds of my 1920 x 1080 frame. Is there a simple function that I could use to just crop out the section where the Rect and the Mat intersects ? I could write my own function for it but it would be simpler if opencv has a built-in function to resolve the out of bounds issue.

2020-11-16 14:54:51 -0500 received badge  Nice Question (source)
2020-11-13 13:23:27 -0500 received badge  Popular Question (source)
2020-11-10 21:24:53 -0500 received badge  Notable Question (source)
2020-10-29 01:33:21 -0500 received badge  Notable Question (source)
2020-10-28 02:55:41 -0500 received badge  Nice Question (source)
2020-10-28 02:55:39 -0500 marked best answer How to find if 2 rectangles are overlapping each other

Hello Forum,

For the following image below, how do i determine if the smaller rectangle is overlapped / partially overlapped with the larger one ? I have their coordinates in frame i.e. rect.x and rect.y.

Should I just use FLANN or Nearest Neighbour or is there a better way ? http://docs.opencv.org/modules/flann/...

image description

2020-10-19 15:58:49 -0500 received badge  Popular Question (source)
2020-09-28 21:49:43 -0500 received badge  Popular Question (source)
2020-08-05 10:46:28 -0500 marked best answer How to read gif in python ?

How do I read a gif in opencv python ? I tried imread but it is reading nothing. It is in the same directory as my code.

2020-07-14 05:12:11 -0500 received badge  Famous Question (source)
2020-05-18 01:18:40 -0500 marked best answer How to use DualTLV1Optical Flow in python ?

I have OpenCV installed but can't seem to import the DualTLV1OpticalFlow https://docs.opencv.org/3.3.0/dc/d47/...

import cv2
optical_flow = cv2.DualTVL1OpticalFlow_create()

Gives me the error message

AttributeError: module 'cv2' has no attribute 'DualTVL1OpticalFlow_create'

Is there a way to install it if i already have OpenCV installed ? I got an error message

conda install -c michael_wild opencv-contrib

Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict: - opencv-contrib -> python[version='>=3.6,<3.7.0a0'] - python=3.5 Use "conda info <package>" to see the dependencies for each package.

2020-05-17 13:58:18 -0500 asked a question segmentation fault (core dumped)

segmentation fault (core dumped) this code gives me a segmentation fault (core dumped). can anyone tell me why ? //***

2020-05-15 02:39:16 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:16 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:16 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:11 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:11 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:11 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:10 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:10 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:10 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:10 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-15 02:39:10 -0500 asked a question cannot install this code

cannot install this code i am trying to run this code https://github.com/Katou2/Optical_Flow_GPU_Opencv3. I can run cmak

2020-05-14 12:43:39 -0500 asked a question Make does not detect opencv_contrib even though I have it installed

Make does not detect opencv_contrib even though I have it installed I am trying to get this running https://github.com/K

2020-05-14 12:43:37 -0500 asked a question Make does not detect opencv_contrib even though I have it installed

Make does not detect opencv_contrib even though I have it installed I am trying to get this running https://github.com/K

2020-05-11 01:04:57 -0500 received badge  Notable Question (source)
2020-03-25 02:51:00 -0500 received badge  Notable Question (source)
2020-03-03 12:00:06 -0500 received badge  Famous Question (source)
2020-02-20 10:33:14 -0500 received badge  Famous Question (source)
2020-02-13 02:36:32 -0500 received badge  Famous Question (source)
2020-02-02 17:16:47 -0500 received badge  Popular Question (source)
2020-01-13 21:01:09 -0500 received badge  Notable Question (source)
2020-01-13 12:42:06 -0500 received badge  Famous Question (source)
2019-11-07 02:37:29 -0500 asked a question Give random color to each intensity

Give random color to each intensity I have a 2D 100x100 image with intensity in the range [0,36]. How can I assign a ran

2019-10-29 15:41:24 -0500 received badge  Popular Question (source)
2019-10-22 12:48:11 -0500 received badge  Notable Question (source)
2019-10-21 09:36:12 -0500 received badge  Famous Question (source)
2019-10-13 06:15:42 -0500 marked best answer Read from folder

Hello,

I am trying to read a sequence of files from a folder. I am using glob but the problem is that it is not reading 1, 2, 3, 4 etc. It is reading 1, 101, 102... 108, 11, 111, 112....

Can someone help me fix this please

2019-10-10 09:12:47 -0500 received badge  Notable Question (source)
2019-10-01 11:44:41 -0500 received badge  Famous Question (source)
2019-09-24 17:09:22 -0500 received badge  Popular Question (source)
2019-09-22 11:13:04 -0500 received badge  Popular Question (source)
2019-09-04 18:08:54 -0500 received badge  Popular Question (source)
2019-08-22 11:16:06 -0500 received badge  Popular Question (source)
2019-07-10 15:46:15 -0500 received badge  Famous Question (source)
2019-06-27 10:13:14 -0500 marked best answer How to set number of channels for Mat using a variable ?

I know I can initialize a Mat this way

cv::Mat image(cv::Size(480,640), CV_32FC1);

But is there a way I can initialize it using a variable ?

auto type = image.type();
cv::Mat image2(cv::Size(480,640), type);