Ask Your Question

prakharmohan's profile - activity

2017-01-26 14:40:22 -0600 received badge  Teacher (source)
2014-03-14 00:05:25 -0600 commented question How can I extract metadata from video?

@Ana M. Were you able to solve this?

2014-03-13 23:50:40 -0600 commented answer How to extract Frames from AVI video

How to do that same thing using Python and OpenCV?

2014-03-07 03:37:35 -0600 commented question Opencv cant access camera connected through video capture device

@Andries it might be that OpenCV is not compatible, you might want to ping the contributors, ask on the irc channel and visit the mailing list. Tell me if it helps.

2014-02-21 01:17:08 -0600 commented question i want to ask about this problem in OpenCV ?

I can retag it but this is a suggestion, please retag this question with the proper tags. It'll help you, you know? And PLEASE go through the FAQ before randomly posting the questions.

2014-02-20 21:56:01 -0600 commented answer Reading a video in streaming (from youtube or dailymotion,...) using its URL or id

Accept my answer if it helped you. You can do that by clicking the tick mark below my answer.

2014-02-20 20:23:02 -0600 commented question VideoCapture Slows Down OpenGL Program

Yes try that. If not tell me, I'll try looking at it over the weekend.

2014-02-20 07:03:53 -0600 commented question How to stream live video on html page (web server)

The tick near the answer?

2014-02-20 05:58:46 -0600 commented question How were the stock face detectors trained/tested?
2014-02-20 05:54:36 -0600 answered a question How to determine if image contains object of certain color

The link provided here might help you. Note that you can also edit the threshold according tot he shade of green and the "purity" according to your use.

2014-02-20 05:44:01 -0600 commented question How to stream live video on html page (web server)

Accept the answer if it helps :)

2014-02-19 22:27:11 -0600 answered a question How to stream live video on html page (web server)

Okay. This is completely new. I have never attempted this. So you can follow the guide here and see is that works out for you.

If it is too complicated a crude algorithm will be to:

  1. Get images from the web cam instead of the video.
  2. Apply face detection algorithm to the image.
  3. Stream the video.

For face detection on images follow this guide.

For streaming you can use the SO question here.

Hope this helps. :)

Anything else, feel free to comment!

2014-02-19 21:37:35 -0600 commented question How to stream live video on html page (web server)

What do you want to do with the video? I mean, what processing?

2014-02-19 21:34:42 -0600 commented answer Reading a video in streaming (from youtube or dailymotion,...) using its URL or id

Yup, that is ffmpeg problem. Are you using Linux for development? Because in that case you can specify at the time of compilation that you want to use ffmpeg. If you are on Linux, give it a try.

2014-02-19 05:56:05 -0600 commented answer Reading a video in streaming (from youtube or dailymotion,...) using its URL or id
2014-02-19 05:26:42 -0600 commented answer Reading a video in streaming (from youtube or dailymotion,...) using its URL or id

You are using C++? You can always open the exe files using the system() method. And if you just want to open the stream you can use cvCaptureFromFile() as I have mentioned in my answer. It works provided you provide the correct link and have all the codecs. :)

2014-02-18 05:03:02 -0600 answered a question ear pre-processing

Some preprocessing techniques are:

  1. Normalization of the images. You can read more about it here.
  2. Also, you can read about smoothing the images and averaging.
  3. After this you can also look up noise reduction.

All of these methods will help in the recognition process. Hope this helps :)

2014-02-18 04:55:05 -0600 commented answer Reading a video in streaming (from youtube or dailymotion,...) using its URL or id

Well in that case you can use VLC to store the stream and then use VideoCapture::Open() to open the video. Tell me if this helps then I can edit my answer and you can accept it. :)

2014-02-18 03:54:48 -0600 commented question cv2.VideoCapture: Cannot read from file

There might be a problem with the ffmpeg dll that is being used. Which build are you following? x86 or x86_64?

2014-02-18 03:50:42 -0600 answered a question openvc and android
2014-02-18 01:13:35 -0600 answered a question need help for object tracking.

The link given here explains color detection and object tracking. The thing is, for object tracking the most basic algorithm is to compare two successive frames and on the basis of the comparison, find the difference in the position of the object, Now that you know the difference in the position you can track the object.

Hope this helps. :)

2014-02-17 22:53:50 -0600 commented question How can i activate my web cam ?

Add the code please.

2014-02-17 22:48:25 -0600 answered a question quantifying "similarity" of colors

Considering the question regarding identification of the ball, have you thought of edge detection as a possible way of detecting the ball?

Also, as your background is completely white, why not go for contour detection? It might pose a problem because you are using a basketball and it has dots on the surface for gripping the ball, but I think you can decide the size of the contours too, in that case you can use Contour detection as another method for detecting the ball. (Not too sure about this)

And Lastly, color detection, since your ball is orange and the color is not similar to any other color in the image you can use color detection, and once you have detected/identified the color you can apply edge detection for better detection of the ball. I came up with these three methods. Please not that the methods are computationally expensive.

Hope this helps :)

2014-02-17 22:29:09 -0600 answered a question opencv on 64 windows system with python 2.7??

Okay, assuming that you have nothing currently on your system I am giving you the installation steps. Also not that the IDE that I use is eclipse, thus I am including the installation of eclipse in the procedure. Just follow the steps below and it should work.

  1. Download python.
  2. Download eclipse.
  3. In eclipse go to Help->Install New Software.
  4. There click on Add. The link that you are to provide is http://pydev.org/updates and the Name should be PyDev (I named it that, you can name it whatever you want to).
  5. Select ONLY PyDev and install it.

Now follow the guide given here. It should work.

2014-02-17 21:57:05 -0600 answered a question How can I use OpenCV in windows phone 8?

OpenCV team is working on a port for WindowsRT. It can be found here. Also, more details and info can be found here.

Hope this helps :)

2014-02-17 21:49:49 -0600 commented question Opencv cant access camera connected through video capture device

Can you post your code please?

2014-02-17 21:48:53 -0600 answered a question Reading a video in streaming (from youtube or dailymotion,...) using its URL or id

I have never done this but I think the function cvCaptureFromFile() can be used to do it. Don't know its current equivalent according to the newer documentation but you can use this. It works with some Network camera so ideally it should work.

Also, you can use VLC to stream and capture a stream too. Hope this helps :)

2014-02-17 21:41:15 -0600 commented answer Signature Verification

If you think the answer helps you then please accept it too :)

2014-02-17 21:40:55 -0600 commented answer Color and Shape tracking question, please help.

If you think the answer helps you then please accept it too :)

2014-02-17 21:34:29 -0600 commented question opencv on 64 windows system with python 2.7??

Which IDE are you using? And have you installed Python already?

2014-02-17 02:54:06 -0600 answered a question Color and Shape tracking question, please help.

Here is a blog post on that which might help you.

For shape detection you can use simple things like extracting features like edges, regions, textures, contours etc.

For color detection you can access the Scalar information of the image and then use it to detect whichever color you want and even decide the threshold.

And yes, as far as I know, both can be one simultaneously although the final program might be computationally expensive. Hope this helps :)

2014-02-17 02:05:17 -0600 answered a question Signature Verification

First of all:

Matching signatures is one of THE most difficult tasks. Why? Because each signature is different. Even if you compare the same signatures, the probability of them being the same is very less. So in your case, you will have to decide the threshold value.

About the method:

A very simple and crude algorithm might comprise of the following steps:

1.Divide the image into strips. Both the images, i.e. both the inputs.

2.Match the corresponding strips and find the similarity.

On the basis of the threshold decide if the images are same or not.

2014-02-17 01:39:11 -0600 commented question Getting images from Camera Link / FLIR IR camera

How does the camera send images? Do you have any idea about that?

2014-02-17 01:34:55 -0600 received badge  Critic (source)
2014-02-17 01:28:48 -0600 answered a question please help me warning: Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553)

You need to install the ffmpeg codec on your system. You can find it here

On installation and inclusion it should work.

2014-02-17 01:23:59 -0600 answered a question To reduce yellow component in image?

You can apply a filter and use the RGB values to detect the level of the primary colors that are present in an image. After that you can edit the levels so as to reduce the yellow component in the image.

You can get the scalar values using cvGet2D (don't know what the name is in the current documentation) and use this to find out the levels. Then you can create your own Scalar from this and convert it into an image using cvSet2D (again check documentation for current name).

Hope this helps :)

2014-02-17 01:06:51 -0600 commented question VideoCapture Slows Down OpenGL Program

Have you checked your CPU and RAM usage during the execution of the program? If so then what is the output? How busy is your system? Both of the above will give you some idea about what you are doing and where you are going wrong.

2014-02-17 01:02:55 -0600 commented answer Is there any official IRC for OpenCV?

+1 Official IRC Channel NEEDED!

2014-02-17 01:02:37 -0600 received badge  Supporter (source)
2014-01-24 04:17:51 -0600 received badge  Editor (source)
2014-01-24 04:17:04 -0600 asked a question IP Camera Codec error

Given below is the code for accessing an IP camera using OpenCV. On running the program I get the error

Camera not found.

Error in opening cap_ffmpeg_impl.hpp

#include <opencv\cv.h>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\imgproc\imgproc.hpp>
#include <iostream>
#include <stdio.h>

using namespace std;
using namespace cv;

int main()
{
    Mat frame;
    VideoCapture cap("http://169.254.159.110/mjpg/1/video.mjpg");
    if(!cap.isOpened())
    {
        cout<<"Camera not found"<<endl;
        getchar();
        return -1;
    }
    namedWindow("video", 1);
    while (cap.isOpened())
    {
        cap >> frame;
        if(frame.empty()) break;
        imshow("video", frame);
        if(waitKey(30) >= 0) break;
    }
    return 0;
}

I have installed the ffmpeg codec using this guide.

I have also used iSpy software to check the correct link for connecting to the ip camera. It is still not working. I am using VS 2012 and Opencv 2.4.6.

Where am I going wrong?

2014-01-15 04:11:11 -0600 asked a question OpenCV for Android-Install

I have downloaded the ANdroid SDK and Eclipse (ADT Bundle) from

http://developer.android.com/

Now I want to create an android app that uses OpenCV. I want to complete the setup so that I can use OpenCV functions in ANdroid apps. What do I do now?