An open API service indexing awesome lists of open source software.

https://github.com/arsho/face_detection

Detect human and cat faces of an image
https://github.com/arsho/face_detection

Last synced: 3 months ago
JSON representation

Detect human and cat faces of an image

Awesome Lists containing this project

README

          

# Face Detection (Human and Cat faces)

Detect human and cat faces in images. You can test on multiple images
by keeping them inside ```input_test``` folder.

## Packages Used
The program is coded using Windows 10 (64 bit) operating system with Python version 3.5.2.

The following packages are necessary to run the program:

Package | Version | Installation
--- | --- | ---
**OpenCV** | 3.2.0 | `pip install opencv-python`
**Numpy** | 1.11.3 | `pip install numpy`
**Matplotlib** | 1.5.3 | `pip install matplotlib`

## Running the program
Open cat_human.py and click on Run > Run Module.
The test images should be in input_test folder.

## Test Images

![alt ch2.jpg](https://raw.githubusercontent.com/arsho/face_detection/master/input_test/ch2.jpg)

![alt ch3.jpg](https://raw.githubusercontent.com/arsho/face_detection/master/input_test/ch3.jpg)

![alt ch6.jpg](https://raw.githubusercontent.com/arsho/face_detection/master/input_test/ch6.jpg)

### Output Images
The output images consist of human and cat faces marked by color boxes.

![alt ch2.jpg](https://raw.githubusercontent.com/arsho/face_detection/master/output_test/out_ch2.jpg)

![alt ch3.jpg](https://raw.githubusercontent.com/arsho/face_detection/master/output_test/out_ch3.jpg)

![alt ch6.jpg](https://raw.githubusercontent.com/arsho/face_detection/master/output_test/out_ch6.jpg)

### References
* [Detecting cats in image with opencv](http://www.pyimagesearch.com/2016/06/20/detecting-cats-in-images-with-opencv/)
* [OpenCV data](https://github.com/opencv/opencv/tree/master/data/haarcascades)
* [Basic Image Manipulations in Python and OpenCV](http://www.pyimagesearch.com/2014/01/20/basic-image-manipulations-in-python-and-opencv-resizing-scaling-rotating-and-cropping/)

***

### Feel free to contribute for improvement.