Tag Archives: OpenCV

OpenCV 3.3 Java Build

The new release of OpenCV 3.3 is out now. I again prepare the Java build for the CVImage Processing library use. It also includes the optflow extra module for motion history applications. Here is the list of the 3 OpenCV releases. CVImage with OpenCV 3.1 CVImage with OpenCV 3.2 CVImage with OpenCV 3.3 The book […]

Posted in Books, Software | Also tagged | Leave a comment

OpenCV 3.2 Java Build

In preparing for the forthcoming book in Processing and OpenCV, I have tried to build the Java binding in OpenCV 3.2. It worked easily for the basic components. Nevertheless, when I included the contribution module – optflow, it failed. After a number of attempts in various platforms, I found it was due to the gen_java.py […]

Posted in Books, Research, Software | Also tagged | Comments closed

Artificial Neural Network in OpenCV with Processing

This is the first trial of the Machine Learning module, artificial neural network in OpenCV with Processing. I used the same OpenCV 3.1.0 Java built files. The program took the live stream video (PImage) from webcam and down-sampled to a grid of just 8 x 6 pixels of greyscale. It started by default in the […]

Posted in Research, Software, Testing | Also tagged , | Comments closed

OpenCV 3.1 release Java build

It is the Java build of the new OpenCV 3.1 release. The zipped file contains the Java build for the 64 bit versions of Linux, Mac OSX and Windows. It is available for download at OpenCV 3.1.0 Java build (64 bit) Again, you can copy the individual files to your Processing code folder to play […]

Posted in Research, Software | Also tagged , | Comments closed

OpenCV and Processing 20

It is a little side tracked from the previous posts. The example demonstrated the use of Kalman Filter in OpenCV with Processing.

Posted in Research, Software | Also tagged , | Comments closed

OpenCV and Processing 18

In addition to the Hough circle detection, this example works on the Hough line segment detection. It inputs the live webcam image; converts it into greyscale; applies a medianBlur filter; processes the Canny edge detection. The Imgproc.HoughLinesP() function will finally single out the line segments into a Mat – lines in our example codes.

Posted in Research, Software | Also tagged , | Comments closed

OpenCV and Processing 17

The example explores the Hough Circle detection in the Imgproc module. It starts with a greyscale copy of the live webcam image with an application of a blur filter, in this case, a medianBlur.

Posted in Research, Software | Also tagged , | Comments closed

OpenCV and Processing 16

This example continues from the last post to compute the optical flow between 2 greyscale images by using the calcOpticalFlowPyrLK() function in the Video module. The new position of the pixels tracked will be delivered in a MatOfPoint2f object. By using the last and current position of the feature points, we can plot the path […]

Posted in Research, Software | Also tagged , | Comments closed

OpenCV and Processing 15

The coming example will be the sparse optical flow. Before that, we first work on the 2D feature points tracking. The function goodFeaturesToTrack() belongs to the Imgproc module. It takes in a greyscale image and identifies the feature points (corners) as a matrix of point, MatOfPoint. The sample code here uses the feature points to […]

Posted in Research, Software | Also tagged , | Comments closed

OpenCV and Processing 14

This example continues to explore the Video module in OpenCV. It uses one of the BackgroundSubtractors, the BackgroundSubtractorKNN. It learns the motion in front of the camera and treats the stationary scene as background. In the code, the important command is bkg.apply(frame, fgmask);bkg.apply(frame, fgmask); The subtractor object bkg takes in the latest frame and generates […]

Posted in Research, Software | Also tagged , | Comments closed