2019-03-25 08:22:47 -0600 | received badge | ● Popular Question (source) |
2018-02-21 12:04:03 -0600 | answered a question | How can i fill the gaps in the foreground and improve foreground extraction? A morphological open with a small kernel to remove all small speckles Find the largest closed contour and fit a convex |
2018-02-21 11:54:35 -0600 | commented question | Obtain continuous closed contour Apply edge sharpening as pre processing using Filter2D. Then many edges become visible. Then find the contours and fit |
2018-02-21 11:45:14 -0600 | commented question | Extracting Contours from Image - Python Since it is a closed one, finding the largest contour will get you the box |
2018-02-21 11:35:55 -0600 | answered a question | how can I align Face Images I have implemented it using DLib and OpenCV https://github.com/ManuBN786/Face-Alignment-using-Dlib-OpenCV It corrects a |
2017-06-24 02:03:12 -0600 | commented question | MSER Non Maxima Suppression is not supressing all the regions I tried various ways and put a break statement also. But its not working. What is the correct way of doing it ?? |
2017-06-15 01:50:09 -0600 | asked a question | MSER Non Maxima Suppression is not supressing all the regions I have removed non maxima regions from the vector "bbox" . But when I plot it shows the regions which still contain non maxima regions. If I measure the bbox.size() before & after non max suppression it says 4677 & 3582 respectively.Why its not able to remove all the non maximas ?? I have taken area and the start and end x & y co ordinates as the criterion. Complete code is here: https://stackoverflow.com/questions/4... Note: The same method in python yields much lesser regions and suppresses it all. Is there a difference between detectRegions in python & c++ ?? C++ : } |
2017-04-12 15:04:16 -0600 | commented question | TLD tracking too slow Thanks for the code. I used the selectROI for manual selection. After that there is no tracking. What am I missing here ?? Someone plz tell |
2017-04-12 15:01:49 -0600 | answered a question | How to count the number of faces detected in live video by openCV using python? For that you need to track all the detected faces in each frame and add new ones that are found. Then you need an efficient counting algorithm to count the tracked vectors. Not an easy thing which can be done if few days |
2017-04-12 14:46:55 -0600 | asked a question | Multiple tracking of people detected is not working. How to use MultiTracker?? I dont understand how to use the MultiTracker class in Opencv. I followed the example in MultiTracker documentation of OpenCV 3.2 Its not able to track at all. Here is the code : vector<rect> found, found_filtered; |
2017-04-12 14:30:45 -0600 | answered a question | How not to detect a face from others Set aspect ratio as the criterion. Set a range for height and width. Make sure height is say thrice more than width so that the pushing person is always upright and standing and gets bounded in a rectangle( with h = 3* width) |
2017-04-12 14:24:33 -0600 | answered a question | How to separate objects wich have the same color Once you have detected both, check for aspect ratio. If its more then divide the detected image into half. |
2017-04-12 10:09:03 -0600 | commented answer | How can I crop a projected image from the camera view? selectROI can help. Plz search in the documentation |
2017-04-12 08:06:27 -0600 | commented question | Unable to track faces. How to update trackers ??? Thanks. I already tried MultiTracking for people tracking a while ago. No good results. Can u please help where i'm going wrong here?? The code is in the link: http://answers.opencv.org/question/124457/why-this-code-is-not-able-to-track-people/ (http://answers.opencv.org/question/12...) |
2017-04-12 07:24:31 -0600 | commented question | Track only 1 target among multiple targets Since u say MultiTracking is very easy. Can u please help me do it for tracking multiple faces: http://answers.opencv.org/question/139492/unable-to-track-faces-how-to-update-trackers/ (http://answers.opencv.org/question/13...) Thanks in advance |
2017-04-12 07:21:56 -0600 | asked a question | Unable to track faces. How to update trackers ??? I am doing a multiple faces detection & tracking. But the trackers are not updating properly. The code runs without errors when compiling. During runtime I get the below message (not error tho) ''Trackers are initialized correctly. unable to track" Here is the code: |
2017-04-09 12:23:52 -0600 | answered a question | How to install Opencv_contrib for opencv 3.1? |
2017-04-09 12:21:12 -0600 | answered a question | Building OpenCV 3.2 with opencv_contrib for Python 3.6 on Window |
2017-04-09 12:15:29 -0600 | answered a question | Face Tracking, pupils detection, Face rotation |
2017-04-09 12:13:45 -0600 | answered a question | how do we know whether opencv_contrib is successfully installed or not? #include <opencv2 tracking.hpp=""> try initializing the tracker with Ptr<tracker> tracker = Tracker::create( "MEDIANFLOW" ); if the error is : tracker was not defined in this scope. Then your contrib files are not installed |
2017-04-09 12:11:28 -0600 | answered a question | Object tracking while moving https://www.youtube.com/watch?v=pj-Qu... The code is in the description of the video |
2017-04-09 12:09:53 -0600 | answered a question | How can I crop a projected image from the camera view? Create an ROI around the object and crop the ROI out of it |
2017-04-01 15:35:35 -0600 | marked best answer | How to do multi object tracking with Kalman ?? I have used kalman.cpp in the openCV 3.1 inbuilt to successfully track a single object. But how to do the same for multiple objects any idea ?? If necessary I will post the code here. Thanks in advance. |
2017-04-01 15:34:16 -0600 | commented question | OpenCV Error: Assertion failed in matrix.cpp line 522, /matrix.cpp:522: error: (-215) I figured out the solution by plotting each of the corner points in rectangular ROI, one such point was outside the dimensions of the image. So it crashed |
2017-04-01 15:32:26 -0600 | received badge | ● Supporter (source) |
2017-04-01 15:32:03 -0600 | received badge | ● Scholar (source) |
2017-04-01 15:25:07 -0600 | asked a question | OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' I have tried to create an ROI above the detected face to place a hat over there. Where face is the detected face from webcam feed Part of the code looks like this: Mat mask; mask = imread("Hat.jpeg"); // Create an ROI above the head. Rec is the co ordinates of the rectangle created above the head Rect Rec(abs(face.x-face.width0.08),abs(face.y face.height0.29),abs(face.width0.08+face.width+face.width0.08),abs(face.height*0.29)); rectangle(image,Rec,Scalar(255,255,0),1,8); // To Place the hat first find the center Point center(Rec.x +Rec.width0.5,Rec.y +Rec.height0.5 ); circle(image,center, 3, Scalar(255, 255,0), -1, 8); // Now replace the ROI with the hat image i.e mask image = putMask(image,center,Size(Rec.width,Rec.height)); imshow( "window1",image ); // The putMask function is like this: Mat putMask(Mat src,Point center,Size face_size) { } It compiles without errors. But when i execute it crashes with error: OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array') in binary_op, file /home/user/OpenCV_Installed/opencv-3.2.0/modules/core/src/arithm.cpp, line 225 terminate called after throwing an instance of 'cv::Exception' what(): /home/user/OpenCV_Installed/opencv-3.2.0/modules/core/src/arithm.cpp:225: error: (-209) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function binary_op until I call putMask functions, the code has no errors. After putMask, the error shows up Someone plz help, I have been stuck here for days !! plz |
2017-03-31 08:39:10 -0600 | received badge | ● Editor (source) |
2017-03-31 08:37:30 -0600 | asked a question | OpenCV Error: Assertion failed in matrix.cpp line 522, /matrix.cpp:522: error: (-215) I am trying to create an ROI above the face detected to place a hat like shown in the image, click here to see the image: I have made sure that the ROI created is withing the bounds of the image. It looks like this: There are no negative values and for every frame it says ROI is withing the bounds. But I still get assertion error: Can someone please help me ?? |
2017-03-09 04:40:14 -0600 | commented question | Why this code is not able to track people ?? it would be very nice if you give me an idea of how to display the tracked onjects |
2017-01-31 00:39:18 -0600 | asked a question | Why this code is not able to track people ?? Dear All, I have used HOG SVM for people detection and and KCF filter for multitracking (inbuilt OpenCV 3.1 MultiTracker API). The code runs without any errors but is unable to track. If I check the output to see if the trackers are initialized i.e " ok = 1 " . It shows 1 all the time, meaning the trackers are initialized for the detected objects Any help in this will be greatly useful. the code is posted below : using namespace cv; using namespace std; int main(int argc, const char** argv) { // Create empty input img, foreground and background image and foreground mask. Mat img, foregroundMask, backgroundImage, foregroundImg, original; } |
2017-01-10 08:39:55 -0600 | commented answer | Why does the foreground image from background subtraction look transparent? I faced a similar situation i.e multiple blobs for same person, one above waist and another below. Use of morphological operations and filling with holes solved the problem. |
2017-01-10 08:29:26 -0600 | commented answer | MultiTracker's trackers initialization for first frame Thanks for the reply. I did the same and every time it shows same error as Multitracker has no member objects. If I check the cout<<ok <="" p=""> The output is always 1 means trackers are initialized. Plz tell me where I am going wrong |
2017-01-06 03:38:51 -0600 | commented answer | MultiTracker's trackers initialization for first frame thanks berak. Now how to draw rectangles around tracked objects ?? if I use the below for (unsigned i = 0; i < trackers.v2.size(); i++) { rectangle(img,trackers.v2[i], Scalar(255, 0, 0), 2, 1);} the error show is MultiTracker has no member named v2. How to resolve this and draw rectangles around tracked objects ?? } |
2016-11-24 05:20:13 -0600 | asked a question | MultiTracker's trackers initialization for first frame I followed the example mentioned in link of Opencv 3.1 How to initialize the trackers for the first frame ??? i mean in the example in the link they have used selectRoi for selection of objects befor the for loop. How to do the same with HOG SVM ??? someone plz help |