How to insert smaller images over bigger (webcam frames, realtime stream)?
For example, fake mustache, glasses, funny hats... I can detect faces and eyes etc in the frame and figure out location for placement, scaling etc, but how to actually 'draw', or put it on the frame?
View Articlewateshed not working
I am trying to use watershed given in python example ,i am able to select the marker but it is not painting i.e when i am trying to drag on image no region is getting selected.I have not made any...
View ArticleHow to clear frames from buffer with USB webcam?
Hi everyone, I'm new to Python and OpenCV, using versions 3.4 and 3.0 respectively. I'm trying to use two USB webcams to grab 2 sets of frames each and then retrieve the frames. In this code the first...
View ArticleModulo cv2 has no attribute cv
Hello, I installed opencv-python using the answer given by @user3731622 in the following post: https://stackoverflow.com/questions/20953273/install-opencv-for-python-3-3 I can import cv2 but when I...
View ArticleExplanation for the cv2.HoughCircles function parameters
Hello, I searched a lot but I couldn't find the documentation of this function(in **Python**). So could someone explain the meaning of the parameters we pass to this function or give a link to the...
View ArticleHow to get Y, U, V from image
I use OpenCV 3.0 in Python3.4. I have **BGR** image converted to **YUV420**: out_image = cv2.cvtColor(in_image, cv2.COLOR_BGR2YUV_I420) How to get Y, U, V values from out_image?
View ArticleChange 0,0 image point
Is it possible to change the 0,0 image point? I know it is located at the top left corner of the image and because of the fact that the axes continue with positive values downwards it makes it a little...
View ArticleStereo Camera Calibration/Rectification with Zed Camera (python)
**Goal:** I want to calibrate and rectify my Zed camera. The input video feed leads to some complications. However, this method produces fewer headaches than buying a new computer which contains an...
View Articleerror(-215)
I've got this "error: (-215) _samples.type() == CV_32F in function cv::ml::SVMImpl::do_train",even if there is no data of the type of CV_32F import numpy as np import cv2 as cv #preliminary of datas...
View ArticleOpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file...
Stumbled on this problem the embedded camera works fine but when I try to make this work on the remote it throws "OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file...
View Articlehow to use python to detect ellipse
I want to detect the simple shapes in an image. I use cv2.approxPolyDP to detect vertices, but the result of ellipse is 4, same as square, how to differ them? Or, how to detect an ellipse, given the...
View ArticleWhat is the cv2.stereoCalibrate: "imageSize" variable format? [Python]
What is the cv2.stereoCalibrate: "imageSize" variable format? I've tried numpy arrays, defining the variable plainly, pixel count (720 x 1280 x 3), etc. but I'm still getting the below error. I can't...
View ArticleHow to you OpenCV draw functions on the GPU?
I want to draw a bezier curve ( which is piece-wise drawn through a set of points ) on an empty canvas using OpenCV and Python. I then want to get the resultant image in matrix form. To do this I used...
View ArticlePR Curve for Cascade w/ detectMultiScale3: Never Completes
I have a custom trained cascade and using detectMultiScale I am able to sweep over my test set (128 images) for the best performing scale and neighborhood parameters in a minute or two. I am getting a...
View Articlei want to change the black pixels in the image to Red
i faced a problem with this i want to write this line in python img_rgb .setTo(cv::Scalar(0,0,255), mask); this the input image : http://i.stack.imgur.com/FjEXu.jpg this is the masking image :...
View ArticleVideo Streaming from webcam and image processing with Python
I'm using the multiprocessing module in python to help speed up my main program. However I believe I might be doing something incorrectly, as I don't think the computations are happening quite in...
View Articledtection the black objects
now im working on object black detection project with opencv using python and the pixels of the black is very small snd do noisy to detect and i had tried to Convert the black color to red but no...
View ArticleMove SVM between python and cpp ?
I have trained an OpenCV SVM using the python API but would like to run it in a cpp program. Is there a way to save and import it between the two languages, or would I need to retrain it in cpp ?
View Articleoutput.avi file created but its size is 0k
import numpy import cv2 cap = cv2.VideoCapture(0) fourcc = cv2.cv.CV_FOURCC(*'MJPG') out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480)) while(cap.isOpened()): ret, frame = cap.read() if...
View Article