Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCV image preprocessing for object detection

I would like to know about some preprocessing practices recommended for applying to images before their features are computed, in order to increase the efficiency of the process as much as possible. (e.g. Croping, changing format, etc...)

Thanks in advance :)

like image 842
Str1101 Avatar asked Jun 30 '13 09:06

Str1101


People also ask

Is OpenCV good for object detection?

OpenCV has a bunch of pre-trained classifiers that can be used to identify objects such as trees, number plates, faces, eyes, etc. We can use any of these classifiers to detect the object as per our need.

Can OpenCV do image processing?

OpenCV is a pre-built, open-source CPU-only library (package) that is widely used for computer vision, machine learning, and image processing applications. It supports a good variety of programming languages including Python.

Is OpenCV best for image processing?

OpenCV – Open Source Computer Vision. It is one of the most widely used tools for computer vision and image processing tasks.

What does OpenCV use for object detection?

Haar cascade: Basically, the Haar cascade technique is an approach based on machine learning where we use a lot of positive and negative images to train the classifier to classify between the images. Haar cascade classifiers are considered as the effective way to do object detection with the OpenCV library.


1 Answers

Preprocessing is heavily dependent on feature extraction method and input image type. Some common methods are:

  1. Denoising: applying a Gaussian or simple box filter for denoising.

  2. Contrast Enhancement: If gray level image is too dark or too bright, this may be applied.

  3. Downsampling to increase speed.

  4. Morphological operations for binary images.

like image 138
fatihk Avatar answered Sep 18 '22 17:09

fatihk