Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nenadmarkus/pico
A minimalistic framework for real-time object detection (with a pre-trained face detector)
https://github.com/nenadmarkus/pico
decision detection face trees
Last synced: 30 days ago
JSON representation
A minimalistic framework for real-time object detection (with a pre-trained face detector)
- Host: GitHub
- URL: https://github.com/nenadmarkus/pico
- Owner: nenadmarkus
- License: mit
- Created: 2013-06-17T11:37:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T09:15:19.000Z (over 4 years ago)
- Last Synced: 2024-08-04T01:12:27.723Z (4 months ago)
- Topics: decision, detection, face, trees
- Language: C
- Homepage: https://arxiv.org/abs/1305.4537
- Size: 2.49 MB
- Stars: 641
- Watchers: 59
- Forks: 207
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- StarryDivineSky - nenadmarkus/pico - Jones 方法的修改。基本思想是在所有合理的位置和尺度上用级联的二元分类器扫描图像。如果图像区域成功通过级联的所有成员,则将其分类为感兴趣对象。每个二元分类器由一组决策树组成,其中像素强度比较作为其内部节点中的二元测试。这使检测器能够以非常高的速度处理图像区域。 (人像\姿势\3D人脸 / 网络服务_其他)
README
# Pixel Intensity Comparison-based Object detection (pico)
This repository contains the code for real-time face detection.
Check out a demo video at to get the better idea.The **pico** framework is a modifcation of the standard Viola-Jones method.
The basic idea is to scan the image with a cascade of binary classifers at all reasonable positions and scales.
An image region is classifed as an object of interest if it successfully passes all the members of the cascade.
Each binary classifier consists of an ensemble of decision trees with pixel intensity comparisons as binary tests in their internal nodes.
This enables the detector to process image regions at very high speed.
The details are given in .Some highlights of **pico** are:
* high processing speed;
* there is no need for image preprocessing prior to detection;
* there is no need for the computation of integral images, image pyramid, HOG pyramid or any other similar data structure;
* all binary tests in internal nodes of the trees are based on the same feature type (not the case in the V-J framework);
* the method can easily be modified for fast detection of in-plane rotated objects.It can be said that the main limitation of **pico** is also its simplicity:
**pico** should be avoided when there is a large variation in appearance of the object class.
This means, for example, that **pico** should not be used for detecting pedestrians.
Large, modern convolutional neural networks are suitable for such cases.However, **pico** can be used for simple object classes (e.g., faces or templates) when real-time performance is desired.
## Detecting objects in images and videos
The folder **rnt/** contains all the needed resources to perform object detection in images and video streams with pre-trained classification cascades.
Specifically, sample applications that perform face detection can be found in the folder **rnt/samples/**.Note that the library also enables the detection of rotated objects without the need of image resampling or classification cascade retraining.
This is achieved by rotating the binary tests in internal tree nodes, as described in the paper.### Embedding the runtime within your application
To use the runtime in your own application, you have to:
* Include a prototype of `find_objects(...)` in your code (for example, by adding `#include picornt.h`)
* Compile `picornt.c` with your code
* Load/include a classification cascade generated with `picolrn` (e.g., `rnt/cascades/facefinder`)
* Invoke `find_objects(...)` with appropriate parametersNotice that there are no specific library dependencies, i.e., the code can be compiled out-of-the-box with a standard C compiler.
To get a feel for how the library works, we recommend that you look at `rnt/samples/native/sample.c` as is was specifically written to be used as documentation.
## Learning custom object detectors
The program `picolrn.c` (available in the folder **gen/**) enables you to learn your own (custom) object detectors.
The training data has to be provided in a specific format.
The details are printed to the standard output when `picolrn` is invoked without parameters.
It is often convenient to pipe this information into a text file:$ ./picolrn > howto.txt
A tutorial that guides you through the process of learning a face detector can be found in the folder **gen/sample/**.
## Citation
If you use the provided code/binaries for your work, please cite the following paper:
> N. Markus, M. Frljak, I. S. Pandzic, J. Ahlberg and R. Forchheimer, "Object Detection with Pixel Intensity Comparisons Organized in Decision Trees",## Contact
For any additional information contact me at .
Copyright (c) 2013, Nenad Markus.
All rights reserved.