Archive for 'Tutorials'

CvFileStorage. How to save our custom structures with OpenCV functions

In this tutorial we go to show how to save our custom structures with opencv functions.
We go to imagine we have this structure in our program.

Pseudocolor implementation with OpenCV.

In Computer Vision works in a lot of cases with gray images because there are a lot of motives. But human vision don’t perceives the gray levels so well as color levels.
Then if we need show a image to a person, we can color it. But, how is the best way to coloring gray image?
There [...]

Neuroph, Java/Netbeans tutorial.

Neuroph is a Neural network for image recognition in java. In netbeans dzone are a netbeans/java tutorial for image recognition with neuroph library.

Segmentation & object detection by color.

In this tutorial i go to explain how to image segmentation or detect objects byred color, in this case by red color.
This task is simple, but there are some things we must known.
Now i go to explain and get a demo code for segmentation, how to determine if each image pixel is red or no, [...]

VIM how to remove ^M at the end of lines

In unix the end of line is different than other systems. More times we edit windows files and when open in VI/VIM we see the ^M character at end of lines.
We can remove this characters with a simply search and replace of vim with this command:
:%s/^M//g
The ^M character is not valid write first ^ character [...]

Exuberant CTags and OpenCV with Vim. Thanks Piponazo!!

Piponazo have a wonderful spanish tutorial explianing how use Exuberant CTags in vim with a opencv as example and some tips for correct import ctags of opencv.
Exuberant Ctags tutorial. “La plaga Tux”

Thanks Piponazo.

The basics of background substraction

This tutorial explain the basics of background substraction. First of all we need define what is a background and what is a foreground.
We consider a background the pixels of image without motion. And a foreground the pixels with motion. Then the simplest background model assume each background pixel his brightness varies independently with normal distribution. [...]

BlenderOcv, “blender” can be good and powerful tool for computer vision with OpenCV

This is the question: can be Blender a powerful tool for computer vision with OpenCv.
Blender is now a powerful suite of 3d content creation, where have a various characteristich as animation, composit, shade, model, texture, interactive … And OpenCV is ga powerful realtime library for computer Vision.
Then my goal is provide a new and powerfull [...]

Basic OCR in OpenCV

Update!. Demo is now with CMake, the cross-platform, open-source build system.
Download Now!

In this tutorial we go to create a basic number OCR. It consist to classify a handwrite number into his class.
To do it, we go to use all we learn in before tutorials, we go to use a simple basic painter and the basic [...]

The basic patter recognition and classification with openCV

In this tutorial we go to introduce to the pattern recognitions basics in openCV.
In pattern recognitions before we can classificate an element we need train our system. We go to train with 3 class with 100 samples each one.
Then we create 2 matrix trainData and traninClasses with 300 samples:
int train_sample_count = 300;
CvRNG rng_state = cvRNG(-1);
CvMat* [...]