Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 508d053

Browse files
committed
Update README.md
Updated with new info and steps to use in a project
1 parent b6abf87 commit 508d053

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,25 @@ phonegap plugin to detect faces on pictures
55

66
sample phonegap project with the face detect iOS plugin.
77

8-
if it detects faces return a string with this format {{x1,y1},{widht1,height1}}{{x2,y2}{width2,height2}...{{xn,yn},{widthn,heightn}}
8+
if it detects faces return an array with the faces.
9+
Each face have the face rectangle and the eyes and mouth points (see the index.html example for more info)
910

10-
each {{x,y}{width,height}} is a rectangle or square
11-
x is the x point on the original image where the square start
12-
y is the y point on the original image where the square start
11+
The face is a rectangle or square whit this format {{x,y},{widht,height}} (default rectangle to string conversion, contact me if you want another format)
12+
The eyes and mouth poinths have this format {x,y} (default point to string conversion, contact me if you want another format)
13+
14+
x is the x coordinate on the original image
15+
y is the y coordinate on the original image
1316
width is the width of the face on the original image
1417
height is the height of the face on the original image
18+
As I've said, the sizes and points are for the original image, if you resize the image you have to recalculate the coordinates for your size.
1519

16-
if it doesn't detect a face alerts 'No faces.'
20+
if it doesn't detect a face it retunr 'No faces.'
1721

1822
The sample project uses the camera sample code
1923
It uses the camera function with destinationType.FILE_URI (IMPORTANT!!!)
24+
25+
Steps to use in your own project:
26+
1.- You have to include the QuarzCore and CoreImage frameworks to your project
27+
2.- Put this line in your plugins section inside config.xml <plugin name="FaceDetect" value="FaceDetect" />
28+
3.- Drag FaceDetec.h and FaceDetect.m to your project
29+
4.- Put the FaceDetect.js inside your www folder and link it in your index.html

0 commit comments

Comments
 (0)