Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 2088 articles
Browse latest View live
↧

Brox Optical Flow - Python Binding

Is there any Python binding available for Brox Optical Flow in OpenCV 4? Thanks

View Article


findChessboardCornersSB irregular behavior

I am testing **findChessboardCornersSB** as an alternative to **findChessboardCorners', mainly to be able to use a calibration target which may overlap the image boundaries. While it works like...

View Article


can't find QuasiDenseStereo in opencv_contrib_python

Hi everyone, It's very possible I'm overlooking something, but I can't seem to find the Quasi Dense Stereo implementation in opencv_contrib for python. It's part of the `stereo` module in contrib....

View Article

detect pixel difference in gray scale image

![image description](/upfiles/16009410253523529.png) I have convert image to gray scale image and the result in shown below. is there a way to detect the difference between the tow sections, or...

View Article

how to solve (-215:Assertion failed) !empty() in function...

please help me i got this error. --------------------------------------------------------------------------- error Traceback (most recent call last) in 19 20 rerect_size = cv2.resize(im, (im.shape[1]...

View Article


What is the length of the tape/strip from the image?

Problem explanation: 1. tape can be in any position of the image 2. Position can vertical / horizontal for tape Condition: Is to do without using a deep learning model only with help of OpenCV my...

View Article

Fastest way to convert BGR RGB! Aka: Do NOT use Numpy magic "tricks".

---------- **IMPORTANT:** This article is **very** long. Remember to click the `(more)` at the bottom of this post to read the whole article! ---------- *I was reading this question:...

View Article

How to color the pixels in an image depending on whether they are...

I am converting an input ROS image to OpenCV, drawing a circle on the image, and removing points outside the circle. I want to be able to color the pixels in the image depending on whether they fall...

View Article


Why is a contour from cv2.findContours() in a shape like [N,1,2]?

Hi, guys, I am a learner of OpenCV, and I found the returned contours from cv2.findContours() are in a a shape like [N,1,2]? And I want to know why not using the shape as [N,2]? What is the reason for...

View Article


unwrapPhaseMap() does not take ndarray in Python

Hi there, I'm doing some structured light and fringe analysis work and am trying to use the phase unwrapping function cv.phase_unwrapping_PhaseUnwrapping.unwrapPhaseMap in OpenCV (4.4.0) with Python...

View Article

how to create an image box in python using tkinter

Hi guys, I was developing an application, i was to create a desktop based application, it is about face recognition, i have a problem that i still can not solved , i was newby in python , I want to...

View Article

Is multithreading handled differently in Python and C++?

Hi there! I recently built a simple OpenCV-application in Python, that uses ORB and a BruteForce-Matcher to compare image-pairs that live in two separate datasets. The code for that was as follows: def...

View Article

Image frame saving from Video without losing resolution and quality

I want to save the images extracted from the video without losing any information, resolution and quality. I have saved using OpenCV in four formats `png, bmp, jpg, tif` The code is as below file =...

View Article


python: How to Crop White region from Number Plate image??

Hey I want to crop white region from image and show the characters written in white region on screen. Here is my code import cv2 import imutils # Read input image img = cv2.imread(r'111.jpg') hsv =...

View Article

VideoWriter not working on MacOS

Installed opencv from PIP (python 3.8) and just cant write any video properly. Using this general constructor pattern: ```writer =...

View Article


GMS-matcher doesn't write to Output-Vector

Hi there! I have two databases containing image-pairs and try to find the corresponding image for the image in the first directory by iterating over the second directory and comparing local...

View Article

How can I get just one rgb value in a video from ROI's center

I'm processing a video and I want the ROI's center rgb value . But, because it's a video there too many rgb values coming out from the roi's center. what should i do to get the most accurate or...

View Article


Fisheye --> Undistorted --> Fisheye

Hi all, this is my first question on this forum! I calculated the intrinsic and extrinsic parameters for my fisheye camera by the calibration script found...

View Article

OpenCV solvePnPRansac() function

I am working on a 3D model reconstruction form multiple images project. I have the camera matrix as well as 2D-3D point correspondence. I want to compute the projection matrix. I used...

View Article

How to solve TypeError: Expected Ptr for argument 'src'?

I'm trying to highlight faces in a video with face_cascade. My code: import cv2 face_cascade = cv2.CascadeClassifier('D:/Anaconda/Lib/site-packages/cv2/data/haarcascade_frontalface_default.xml')...

View Article
Browsing all 2088 articles
Browse latest View live