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

How to capture 60 FPS at normal speed on Logitech c922x

The code below writes a .avi file and displays the FPS in the terminal. However, the terminal only outputs the FPS as 30 FPS. Also, the video playback is too fast. What am I doing wrong? Any...

View Article


AttributeError: module 'cv2.cv2' has no attribute 'fillpoly'

Iam trying to do lane detection in opencv python I installed opencv using pip install opencv-python and pip install opencv-contrib-python I tried several ways but am getting this error please help me...

View Article


How can I define "scopesToKeep" and "scopesToIgnore" nodes of a frozen model?

I run successfully the following files for the model, which was created using TensorFlow API with Inception v2 for MaskRCNN:...

View Article

Logistic Regression doesnt learn anything

I train binary LR in python (opencv 3.1 and 4.1) and get always prediction = 1. When I try it on sklearn it works. OpenCV DT and ANN work too. I tried to train LR with different parametres. Actual...

View Article

can we create a 5*5 kernel np array in c++

I have made a 5*5 kernel using np array in python. how should I create it in c++? kernel_sharpen_3 = np.array([[-1, -1, -1, -1, -1], [-1, 2, 2, 2, -1], [-1, 2, 2, 2, -1], [-1, 2, 2, 2, -1], [-1, -1,...

View Article


Detect ellipses, ovals in images with OpenCV python

Hello everyone, I am using opencv to detect shapes that look like circles, my script reads a png image (center_cut.png) and perfectly detects the circles with their centroids, however when I pass...

View Article

Why SURF_CUDA does not bind to python?

I compiled opencv and bound it to python3. Now in python I can find all functions I need but SURF_CUDA.

View Article

OpenCv on windows server

Hello , i have script for licence plate recognition using opencv and openalpr , then i converted the script into exe file , got all libraries and uploaded them to windows server , and when i try to run...

View Article


Code won't run Atom/opencv AttributeError:'cv2.cv2' win 10

Trying to run this simple code in atom to display image via opencv but the window is not popping up. i'm getting File import cv2 image = cv2.imread('test_image.jpg') cv2.imshow('result',image)...

View Article


Laplacian Pyramid not matching

Hi, I try to adapt this code [here](https://pysource.com/2018/03/16/image-pyramids-blending-and-reconstruction-opencv-3-4-with-python-3-tutorial-24/) but I get this error, when I try to reconstruct the...

View Article

python liveliness detection

hello i am develop a model for face detection for attendance system. so i will try to detect a person is live or not in front of camera. so anybody suggest mode best method for liveliness detection in...

View Article

cv2.error:...

how to overcome this error

View Article

Basic openCV contour questions

Hi, May I ask that what is the meaning of this line of code: "key=cv2.contourArea" Thank you for reading this post, and answer the questions.

View Article


syntax error for cv2.inRange

Hi, May I ask that why I get a syntax error for the line output = cv.inRange(hsv, lower_blue, upper_blue). The code is shown below: import numpy as np import cv2 as cv con=[] image = cv.imread('2.jpg')...

View Article

I dont understand this error while using template.shape?

Code: img = cv.imread('C:\\Users\\user\\Desktop\\download.jpg',0) img2 = img.copy() template = cv.imread('C:\\Users\\user\\Desktop\\download1.jpg',0) w, h = template.shape[::-1] error is : w, h =...

View Article


How to remove shadows from foreground after segmentation?

I am developing an algorithm in Python, which is supposed to identify the area of a leaf that contains spots to report the severity of a disease. Therefore to be able to achieve the goal, I need to...

View Article

yolo with opencv error

I am trying to yolo in opencv but getting the error CODE IS BELOW import cv2 import numpy as np import time # Load Yolo net = cv2.dnn.readNet("weights/yolov3-tiny.weights", "cfg/yolov3-tiny.cfg")...

View Article


Can i find if a line connected component is strongly connected or not?

Hello all, I have an image of a number (zero), and I am trying to detect it. First i did some filtering to create a binary image (mask) and then edge detection to findthe edges: ![image...

View Article

Algorithm suggestion for texture image matching

Hello, I am trying to **match texture images**. what i tried, - **Feature detectors** like sift, surf, orb,akage. (they could not found feature points for some images of my image DB) - **LBP** (It kind...

View Article

Calculate hue distance from hue histogram?

I'm currently making an object model by using HSV color histogram. As visually similar colors may have very different hue values (eg. 1 degree and 359 degree are similar red hues), Hue Distance is...

View Article
Browsing all 2088 articles
Browse latest View live