Rhonda Software

Highest quality full cycle software development.

Expert in areas of Computer Vision, Multimedia, Messaging, Networking and others. Focused on embedded software development. Competent in building cross-platform solutions and distributed SW systems.

Offer standalone custom solutions as well as integration of existing products. Opened for outsourcing services.

Visit us at: http://www.rhondasoftware.com

Fast & Furious face detection with OpenCV

Posted on : 18-06-2009 | By : rhondasw | In : OpenCV

31

In OpenCV/Samples there is  facedetect program.  This program can detect  faces on images and video.  It’s very fun, but its speed leaves much to be desired =(.  Of course  with OpenMP,  it works  faster; on Intel Core Duo 2.7GHZ, it works fast;  but will it work fast on ARM? I have big doubts.  I compiled facedetect without OpenMP and on average it takes 600 ms for 640×480 resolution to find one face.   I wanted to find out, if it’s possible to improve this time by software means or not…  After some investigations, code refactoring and improvements, facedetect started to work 2.5 time faster, even on ARM.  Of course, without big quality loss =)

Parallel world of OpenCV (HaarTraining)

Posted on : 03-06-2009 | By : rhondasw | In : OpenCV

26

If you want to generate cascade with OpenCV training tools, you should be ready for waiting plenty of time. For example, on training set: 3000 positive / 5000 negative, it takes about 6 days! to get cascade for face detection.  I wanted to generate many cascades with different training sets, also I added my own features to standart OpenCV’s ones  and refactor algorithms a little bit.  So waiting for 6 days to understand, that your cascade does nothing good =) was really anoying.  To reduce time, I chose paralleling methods.

OpenCV Haartraining: Detect objects using Haar-like features

Posted on : 02-06-2009 | By : rhondasw | In : OpenCV

293

OpenCV’s standart cascades allow to detect faces and eyes.  I wanted to create cascade in similar way to detect another objects:  pringles or plate for example.  I found some material in Net how to use OpenCV training tools, also I investigated training tool’s source  code myself  to found out, what training parameters can be tuned.

Prepare images.

For training, I needed thousands of images, containing my object with different lightning conditions and perspectives. After trying to find required number of pictures with Google ,  I understood, that it’s really difficult task =).  So I decided to take video with my object,  then I wrote simple program to crop object from video, frame by frame.  In such way,  I generated about 3000 positive samples (cropped images  with my object).  Resolution varied from 50×50 to 100×100.  The advantage of this method – you  get many samples with different reflections, illuminations and backgrounds.  It’s very important, that all these images “features” are various!

Tracking people with a moving PTZ camera

Posted on : 01-06-2009 | By : Aleksey Kodubets | In : Demo, Demo video, PTZ, YouTube

4

PTZ-3_sonicfire.avi

Description

On this demo CV system tracks moving people using single PTZ (pan/tilt/zoom) camera (AXIS 214) and tries to positioning it to always keep first entered person in the camera sight. When PTZ stops in new position, the system filters out still objects from those that actually moving, assigns unique IDs (and color frames) to them and measures proximity of these objects to the original one using color-histogram-based algorithm. The object with highest proximity will be treated as a target. System will turn camera in the direction where targeting object moves, when it is approach to the border of camera sight (the red rectangle on the border indicates direction of next movement of PTZ cam).

Tracking overlapping objects

Posted on : 13-05-2009 | By : Aleksey Kodubets | In : Demo, Demo video, Demo videos, YouTube

20

overlapped_sonicfire.avi

Description

This video demo illustrates color-histogram-based object tracker in action. CV system tracks people as moving blobs (“clouds” of moving pixels) identifies them and distinct one from another in case of occlusions. When two (or more) blobs are intersected, system merges them in one combined object and marks it by IDs of all those source-objects that currently included in the combination. When one of objects separates from the combination CV system recognize which one is out and re-arrange ID appropriately. This approach works pretty well in case of characteristic histograms.

Object detection (barcode)

Posted on : 28-04-2009 | By : Aleksey Kodubets | In : Demo, Demo video, Demo videos, YouTube

2

barcodes.avi

Description

Here is a demo of the jerry-built algorithm that finds barcode plates using Hough transform. Actually the video is mostly speaking for itself. Two points to comment:

  • The frames of barcodes are a bit long, since with given approach there is distinct difficulty in precise identification of barcode beginning and ending, so borders where widened to not miss the useful part, which is not really critical since extracted region of interest is still quite small.
  • The task was to detect only one barcode, so when there are several of them in the camera sight, CV system selects the best one (those with the most distinct lines). Since conditions of lighting and sharpness are always floating in video, system jumps from one barcode to another.

Taking snapshots with a moving PTZ camera

Posted on : 18-04-2009 | By : Aleksey Kodubets | In : Demo, Demo video, Demo videos, PTZ, YouTube

2

PTZ_800x600_sonicfire.avi

Description

This demo video demonstrates ability of CV system to take snapshots of several moving people by means of two digital cameras: static (QuickCam Pro 9000) and moving (AXIS 214) PTZ (pan/tilt/zoom). CV system tracks moving people (using color-histogram-based tracker) on the video taken by the static camera and targeting PTZ cam to one of people, negotiating the number of already captured snapshots per person and distance to peoples on scene. Since PTZ cam positioning takes some time, the predicting algorithm is used to forecast future position of the person, which allows targeting PTZ cam more accurately.

Object recognition (playing card & $10 bill)

Posted on : 18-04-2009 | By : Aleksey Kodubets | In : Demo, Demo video, Demo videos, YouTube

6

cards_800x600_sonicfire.avi

Description

This is a demo of object recognition technique based on extraction and matching of characteristic points on objects with evident texture. This technique allows recognizing object by various angles and in case of partial occlusions. The demo clip is self-explanatory – obviously it works just fine.

“Fixing” the OpenCV’s implementation of Viola-Jones algorithm

Posted on : 10-04-2009 | By : rhondasw | In : OpenCV

10

Today’s story is about improving performance of OpenCV library on the ARM-based platforms.

As you already know (from here or from here or may be even from here), face detection algorithm implemented by OpenCV library doesn’t work perfectly on ARM processors. Science doesn’t know for certain why this happens. There might be several possible reasons. One of our assumption was missing of hardware support for floating point operations. So we tried to translate Viola-Jones algorithm from floating point to fixed point. And that’s how we did this…

Getting MJPEG stream from Axis Ip-camera (Axis 211M and Axis 214 PTZ) as a camera device in OpenCV with DirectShow

Posted on : 09-04-2009 | By : Aleksey Kodubets | In : OpenCV

47

By default OpenCV 1.1 don’t support AXIS ip-cameras. So, this paper describes approach for getting camera interface (cvCaptureFromCAM) from OpenCV when you are using an Axis Ip camera.