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 ArticleAttributeError: 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 ArticleHow 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 ArticleLogistic 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 Articlecan 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 ArticleDetect 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 ArticleWhy 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 ArticleOpenCv 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 ArticleCode 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 ArticleLaplacian 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 Articlepython 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 ArticleBasic 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 Articlesyntax 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 ArticleI 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 ArticleHow 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 Articleyolo 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 ArticleCan 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 ArticleAlgorithm 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 ArticleCalculate 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