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

I am getting line an error-215 while training an SVM with OpenCV-Python

In line 100, in svm.train(train_data,cv.ml.ROW_SAMPLE,train_labels) cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\ml\src\data.cpp:259: error: (-215) samples.type() == 5 || samples.type() == 4 in...

View Article


Is it possible to give form/shape to human stickman with 2D points (coordinates)

I'm able to create a stickman with 2D coordinate json file using Python OpenCV. And also able to create video with multiple position of 2D coordinates files. Generated Stickman example Image as...

View Article


Hand recognition and tracking question.

My project needs hand recognition and tracking. I understand the difficulties of hand recognition and I would like some solutions and papers that deal with this complex problem. But what I currently...

View Article

How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

I want to explicitly specify the output size of the image when applying cv2.pyrDown() on images. def gaussian_pyramid(image, scale=1.5, minSize=(30, 30)): yield image while True: w =...

View Article

Zoom lens Calibration

Maybe, this is a silly question, currently I have a len (AF-S DX NIKKOR 18-55mm f/3.5-5.6G) with this features: - 18-55mm lens with f3.5-5.6 maximum aperture for Nikon DSLR cameras . - Focal length...

View Article


Orthogonal projection of images using camera calibration parameters

I am trying to get a perfect birds eye view of a component using camera calibration using opencv and python. The image I have is already a bird's eye view of the component. I am just trying to align...

View Article

How exactly does BoVW work for Python-3 Open cv3?

So, I wrote a code for a SIFT/SURF+BOVW+SVM Classifier for 20 kinds of texture in Python. In method train(), I extract SIFT/SURF feature descriptors for every image in my training set, and I have...

View Article

VideoCapture so slow in reading video file.

Why is it if i read a video file using cv2.VideoCapture('video.avi') the fps is very very very low? I want the fps to be the same as when i play the video using a video player(30fps). What changes...

View Article


Keeping count of duration a specific contour is identified in OpenCV

I am currently working on a shape identification snippet and need to keep track of the duration of which the particular shape is identified on my screen - i.e. a pseudo confidence level of an object...

View Article


Assigning unique identifier to shapes in real-time

Dear all, Suppose I wish to keep track of multiple shapes that is detected via approxPolyDP in **real-time** (example: there are 3 individual triangles). How could I go about naming those triangles 1,...

View Article

Find semicircle of a ball

I am capturing a high speed moving ball. As I have shown in picture its getting blur because its speed. I need to find its radius. Now am finding radius using enclosing circle of contours . But...

View Article

Three questions about HOG detector

have following code and I have some questions about it: 1. What is detection window size for HOG detector and how does it change within program run? 2. What classificators are being used in OpenCV HOG...

View Article

Viz alternative for python

Does anyone know of an alternative for using Viz under python? My initial searches led me to conclude Viz is not available.

View Article


Birds eye view perspectivetransform from camera calibration

I am trying to get the bird's eye view perspective transform from camera intrinsic, extrinsic matrices and distortion coefficients. I tried using the answer from [this][1] question. The image used is...

View Article

Class bgsegm question

Hi everybody, I am only able to call the following methods with Python 3.5 + OpenCv 3.1.0 class cv::bgsegm::BackgroundSubtractorGMG class cv::bgsegm::BackgroundSubtractorMOG via...

View Article


Silent failure when multiprocessing and OpenCL used on MacOS

I have been running a long OpenCV pipeline and, in attempt to reduce dropped frames, I decided to implement it with multiprocessing. The reason I chose multiprocessing over Python threads is because...

View Article

what is conterpart of Mat frame_gray in python?

i tried to convert these opencv code to python,but never worked_(:3 」∠)_ please help std::vector faces; Mat frame_gray; cvtColor( frame, frame_gray, CV_BGR2GRAY ); equalizeHist( frame_gray, frame_gray...

View Article


horizontal line/break/image shift in video from webcam

Hello, when I move with my webcam quickly, I see these artefacts/image breaks/shifts. I am using vlc v4l2 with /dev/video0 via vlc command line to preview live webcam video. Please, What should I set...

View Article

Shadow Removal in Traffic Lane Lines

I am working on lane lines detection. My current working strategy is: 1. defining a region of interest where lane lines could be 2. Warping the image to get a bird eye view 3. Converting the image to...

View Article

how to extract text from very small image using python opencv

Hi All, I'm new bee for python openCV, can you help me to extract text from small image.Can you check my uploaded image. i have tried Below code, But i'm not getting expected result. import sys import...

View Article
Browsing all 2088 articles
Browse latest View live