Ask Your Question

Naval's profile - activity

2017-11-04 09:31:00 -0600 received badge  Student (source)
2017-10-13 11:49:30 -0600 received badge  Famous Question (source)
2015-09-11 14:12:08 -0600 received badge  Notable Question (source)
2015-03-10 13:05:03 -0600 received badge  Popular Question (source)
2013-10-01 00:23:02 -0600 answered a question How to set image(jpg or png) on camera?

Hi,

I am not sure what you want to ask...

You want to pull out an eye/face region in jpg/png format from the source image? or You want to put a particular jpg/png image on eye/face region on source image?

Naval Kishore

image description

http://paxcel.net/blog/

2013-10-01 00:16:07 -0600 asked a question Need help with OpenCV and Surf

Hi,

I am new to OpenCV and trying to get SURF working with Opencv in Java but as far now I am not able to find any tutorial where i can see how it can be done.

My motive is detect a vehicle with a particular license plate number where it is assumed that all the vehicle will have a exactly same style of number plate(Font, Color and Size).

Please help with some sample code from where i can start with...

Naval Kishore

image description

paxcel.net/blog

2013-09-26 03:03:51 -0600 received badge  Editor (source)
2013-09-26 02:45:31 -0600 asked a question Motion detection using Java

Hi, I am new to OpenCV and as a first target application, i have decided to get motion detection working.

I have an another application which keep on capturing images from a fixed source in half second and stores it on file system. So I am passing two images to the opencv application and it will process them to detect motion between two frames.

I am performing the following steps to detect motion:-

  1. Subtract Image1 from Image2 using Core.subtract(Image1, Image2, diffFrame);
  2. The diffFrame[x][y] will be have a zero value if Image1[x][y] - Image2[x][y] = 0, i.e. no difference at this pixel.
  3. Then I calculate the number of nonZeroValue of diffFrame using Core.countNonZero(diffFrame);
  4. Then I calculate percent of changedPixels i.e. nonZeroValue(diffFrame) by applying this formula

     float motionPercent = (nonZeroValue(diffFrame)/nonZeroValue(Image1)) X 100;
    
  5. And If this motionPercent is more than some certain value, i consider it as motion.

But the problem with this way of solving is that it fails if object is moving too slow as the diff in not more than my threshold values.

Is there any better way of doing this?

Regards,

Naval Gandhi

image description

http://paxcel.net/blog/