grab frames from camera buffer and display them in an image view using...
Hi, I am trying to make an app that shows camera preview, And i want to take frames of the shown preview and do on it processing. What is working is the camera preview,but I don't find any solution...
View ArticleWrite a text in dlib image
i'm using dlib for face detection and i would like to write a text in the image. Can you please help me.
View ArticleOpenCV4Android - Erode a Contour? Or some form of a distance transform?
So let's say that I have the contour of an object but I want to shave off the outer 5 pixels from the contour what would be the best way to do that? Some form of erosion? A distance transform? or...
View ArticleAttributeError: 'module' object has no attribute 'face' OS X
I'm trying to build opencv with opencv_contrib on OS X. I will explain step-by-step what I did: 1. I downloaded the OpenCV 3.1 from: http://opencv.org/downloads.html 2. I also downloaded the...
View ArticleHow to use Opencv 3 particle filter api
I have built the opencv_contirb for opencv 3.1, and I got the tracking module. The document : http://docs.opencv.org/trunk/dc/d75/classcv_1_1TrackerSamplerAlgorithm.html#gsc.tab=0 The 3.0 doc also...
View ArticleFisheye has been not declared in this scope error
I am trying to call cv::fisheye::undistortImage for removing distortion from image but in the compilation time its showing fisheye not declared in this scope . How to resolve this error? #include...
View Articlepossible to convert value of a Point to string? opencv c++
i want to convert a value of a Point to string, so that i could print the location of that Point on an image. i am suppose to use this putText(image, to_string("this is string"),...
View ArticleMLP Train iteration limit - bug?
I am trying to learn my neural network to classify images. The whole learning data preparing and other stuffs work ok, the NN can learn recognizing 5 images (1 per class). But when I get it 2 images...
View ArticleFace swap of images
Hi, I want to program a tool which swaps the faces of two images. The problem is to adjust/blend the layers of the "new" face and the target face. For example see this video - it is exactly what I want...
View ArticleSynchronize web cam and laser scan data
I need to synchronise the data from laser scan that gives me 2D data (distance measurements for each angle) and on top of the laser scan I have a web cam. I would like to synchronise these two data...
View ArticlePrunning skeletons
Hello, I have a mask image (binary mask) and I want to skeletonize it. I have some solutions for it, but all of them return some features I'd like to remove, namely small branches and circles (see the...
View Articletotal number of white pixels in contour using opencv c++
I have find all the contours using find contour opencv function. Now i want to calculate the total number of white pixels in each contour of an image using opencv c++.
View ArticleSaving Image in new folder created during runtime.
I am creating a new folder with user defined name to it and I want to store image in that folder I tried this string foldername; Mat frame = imread("D:\\Sample\\ag.jpg", 1); cout << "Enter Name...
View ArticleCan I port python opencv project to android?
I want to work on an open cv project to be used on android but I have never built for android before, so this got me wondering if I can build the opencv project in python then port the project to...
View Articlecv2.imshow is working with a jpg file but not with an array
HI, I am using python and try to use cv2.impshow : img = cv2.imread('messi5.jpg',0) cv2.imshow('image',im[index]) cv2.waitKey(0) cv2.destroyAllWindows() and it is working fine. But when I try to...
View ArticleOpenCV 3.1 build from source - core test fails for 3 tests
Hi! I've just finished compiling OpenCV 3.1 on my 64bit Debian Jessie with a lot of features enabled (Qt, OpenGL, Matlab (I have R2014), Python2 and 3, Tesseract, Ceres etc.). Now I've started running...
View ArticleOptical Flow Farneback - doubt in tutorial
So i was trying to understand the python code for optical flow using Farneback method. But I had a doubt about expressions like this- 1.hsv[...,1] = 255 2.hsv[...,0] = ang*180/np.pi/2 I do not...
View Articleminimum value per pixel (w.r.t channel) in a 3 channel image
Hi everyone, Is there any function in openCV which can return the minimum/maximum value of a pixel w.r.t channel in a 3 channel image (e.g. a BGR image) like the following available in MATLAB: temp =...
View ArticleTool for evaluating general local descriptors?
I found [this code][1] for evaluating the SIFT descriptor w.r.t. viewpoint changes using the graffiti data set (present in OpenCV too). I have two questions: 1. Supposing that I want to test the...
View Article