How can I do a program to recognize objects?

edited August 2017 in How To...

What OpenCV functions can I use to recognize objects? I have the code below where I get the Kinect video and load it with OpenCV. I did a test using face detection and it worked, now I want to do with objects and recognize them.

import gab.opencv.*;
import java.awt.*;
import processing.video.*;
import org.openkinect.processing.*;

OpenCV opencv;
Kinect kinect;

void setup() 
{
  size(640, 480);
  opencv = new OpenCV(this, 640, 480);
  kinect = new Kinect(this);
  kinect.initVideo();
}

void draw()
{
  PImage video = kinect.getVideoImage();
  opencv.loadImage(video);
  image(video, 0, 0);
}

Just to know if I'm right: The program has to compare the current video with saved images of objects and if the video is within the limit of similarity of one of the images the object of the current video will be classified as the object of the image and for that the program will use format, size and color of the object as a comparison reference?

Tagged:
Sign In or Register to comment.