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

Image may be NSFW.
Clik here to view.

Is there an ellipse detection algorithm that is robust to partially occluded...

I would like to use OpenCV to track an animal's pupil in a video recording of a mouse viewing naturalistic visual scenes. Here is an example of what a given image might look like under the best of...

View Article


Videocapture using HDMI camera as HDMI input

Hi everyone, I want to ask you using `cap = cv2.VideoCapture(0)` in Python or in C++, can I get the video frames of HDMI camera giving stream in HDMI. i.e. input to our system will be HDMI. Help will...

View Article


I'm getting the following error while using OpenCV

My code is as below: # It helps in identifying the faces import cv2, sys, numpy, os size = 4 haar_file = 'haarcascade_frontalface_default.xml' datasets = 'datasets' # Part 1: Create fisherRecognizer...

View Article

Thonny doesn't see opencv-python package on my Jetson Nano

I'm using a Jetson Nano, which has a arm64 architecture. The Python IDE I'm using is Thonny. I wasn't able to install the opencv-python package on Thonny directly because of the architecture of the...

View Article

OpenCV detector is missing, how can I get it?

I am just trying out qr codes for the first time, using Python3. I am following the instructions from this [webpage:](https://www.thepythoncode.com/article/generate-read-qr-code-python) When I get to...

View Article


Different output from Python and C++ in CalibrateHandEye()

Hi, We have tried to translate a C++ project into Python. The problem is that we get different outputs from the calibrateHandEye() function in the two versions. Even though the input is the same of...

View Article

How to show the confidence level of detectMultiScale "in python"

Hello! I was working on my research and I got a problem, I'm trying to show the confidence level, and I've googled for billion times, I've tried billions of codes, does anyone know how to show it?...

View Article

Camera freezes after few frames

When I run the code the camera only shows the first frames and then it freezes, how can I make the code faster? I think the main problem is the "for" loop because it iterates over a hundred "cnt"....

View Article


Camera only shows first frame, then it becomes slow and then it completely...

Camera only shows first frame, then it becomes slow and then it completely freezes. How can I optimize my code so that camera is fast? import cv2 import numpy as np from serial.tools import list_ports...

View Article


opencv-python:how to extract max black part from image.

I want to save max black part from this image just like the required output.Kindly guide me how can i solve this problem. ![inputimage](/upfiles/16028470056358282.jpg)...

View Article

Convert Python Into Java / Kotlin using these operations

I'm totally new in OpenCV. Does anyone knows how to convert below Python into Java/Kotlin? Only these a bit tricky to translate it. diff=cv2.subtract(img1, img2) diff[abs(diff)<30]=0 gray =...

View Article

Clicking contours with mouse but only 1 contour can be found?

I need the user to select inside the contours with a mouse, in a given image, in a specific order (this is to do with another part of the overall code). The code (below) correctly identifies 9...

View Article

How to find the location of a point in an image in millimeters using camera...

I am using a standard 640x480 webcam. I have done Camera calibration in OpenCV in Python 3. This the Code I am using. The code is working and giving me the **Camera Matrix** and **Distortion...

View Article


Foot Measurement [Python]

Hi Everyone, I have to find the length and the width of a foot placed on a A4 Sheet. First i tried with some object, like a business card or flyer then it works. I detect the contours of the A4 sheet...

View Article

assert failed

I am trying to solve this issue: https://github.com/microsoft/ailab/issues/127#issue-725554407 I think OpenCV guru might know what's that about at a blink of an eye. I am guessing cv2 module for...

View Article


How to remove black stamp from an image

I have some stamped images (black) and I want to remove these stamps to get better similarity scores when comparing a non-stamped and stamped images. ![With Stamp](/upfiles/16036155031371815.jpg)...

View Article

opencv on python, laplacian and sobel filter not working at all

I tried both my local python env and google colab. opencv version is 3.4.2 and 4.1.2 each... import cv2 import numpy as np from matplotlib import pyplot as plt img =...

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

Insanely high cpu usage for simple videocapture (50% cpu usage)

**System information (version)** - OpenCV => 4.4.0.44 (opencv-contrib-python) - Operating System / Platform => Windows 10 Pro 64 Bit - Compiler => Visual Studio Build Tools 2019 (MSVC VS2019,...

View Article

Saving video from frames in with fourcc codec h264 and h265 with opencv

I am saving frames from live stream to a video with h264 codec. I tried this with openCV (versions 3.4 and 4.4) in python but I am not able to save it. I can save video in XVID and many other codecs...

View Article
Browsing all 2088 articles
Browse latest View live