Ask Your Question

tracek's profile - activity

2017-10-14 17:41:29 -0600 received badge  Student (source)
2014-10-26 06:20:09 -0600 commented question Bird camera: detect (rapid) camera movement

Thanks for the suggestion! Indeed "optical flow" looks like a good place to start. And you are right that colour of the sea is not always the same. I am more of a mountain person, which is why my definition of ocean is big blue water reservoir :).

2014-10-25 15:34:35 -0600 asked a question Bird camera: detect (rapid) camera movement

Hi,

I am just starting Computer Vision, which is why my question will not be very specific. We have at our disposal a set of videos that were recorded from birds' necks; the point is to learn more about behaviour of a certain species. There are in principle three actions to classify:

  1. Bird is flapping its wings, which characterised by rapid camera movement: flapping example
  2. Bird is gliding, the camera moves relatively steadily: gliding example
  3. Bird is in a colony, again no rapid movement, but also amount of blue is much less than in the point above: colony example

On top of that there are also videos that are just messy due to a camera that was fogged up or moved to a position that limits field of view to the bird's feathers (example).

Can you give me some ideas what algorithms from OpenCV I could use to discriminate flapping (1) from gliding (2)? Since we are talking about birds that spend their day at the see, I guess distinction between gliding (2) and colony (3) should be simple by checking histogram content, right?

Any thoughts about finding the instances in which camera was fogged? Histogram again perhaps? Gray tends to dominate there.

2014-10-19 10:50:04 -0600 commented question Incorrect Assert information? Assertion failed (scn == 3 || scn == 4) in cv::cvtColor

Not only I did not include full code, but also missed something embarassingly obvious... image name was different. Please save my honour and delete this post.

2014-10-19 10:26:43 -0600 asked a question Incorrect Assert information? Assertion failed (scn == 3 || scn == 4) in cv::cvtColor

When I try to convert Lena from colour to gry, I get the following assertion error:

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file C:\builds\2_4_PackSlave-win64-vc12-shared\opencv\modules\imgproc\src\color.cpp, line 3739

According to what I read from other posts, it indicated that number of channels is different than 3 or 4. Here it is not the case. My code:

Mat im = imread("c:\\lena.jpg", CV_LOAD_IMAGE_COLOR);
cout << im.empty() << endl; // returns 0 - image loaded

namedWindow("Lena", WINDOW_AUTOSIZE);
imshow("Lena", im); // shows image
Mat img_converted;

cout << "Channels: " << im.channels() << endl; // returns 3

I am working in Visual Studio 2013, 64bit build.