<commit_before>
Face detection jquery plugin
============================

A jQuery plugin which detects faces in pictures and returns theirs coords.
This plugin uses an algorithm by <NAME>.

Demo here:
[http://facedetection.jaysalvat.com/](http://facedetection.jaysalvat.com/)

Html & Scripts
--------------

**Includes**

	<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script> 
	<script src="js/facedetection/ccv.js"></script> 
	<script src="js/facedetection/face.js"></script>
	<script src="js/jquery.facedetection.js"></script> 

**Image**

	<img id="myPicture" src="img/face.jpg">

**Script**

	<script>
		$(function() {
   			var coords = $('#myPicture').faceDetection();
			console.log(coords);    
		});
	</script> 

Results
-------

Returns an array with found faces object:

**x**

Y coord of the face

**y**

Y coord of the face

**width**

Width of the face

**height**

Height of the face

**positionX**

X position relative to the document

**positionY**

Y position relative to the document

**offsetX**

X position relative to the offset parent

**offsetY**

Y position relative to the offset parent

**confidence**

Level of confidence

Settings
--------

**confidence

Minimum level of confidence

**start**

Callback function trigged just before the process starts. **DOES'NT WORK PROPERLY**

	start:function(img) {
		// ...
	}

**complete**

Callback function trigged after the detection is completed

	complete:function(img, coords) {
		// ...
	}

**error**

Callback function trigged on errors

	error:function(img, code, message) {
		// ...
	}<commit_msg>Fix README.md<commit_after>
Face detection jquery plugin
============================

A jQuery plugin which detects faces in pictures and returns theirs coords.
This plugin uses an algorithm by <NAME>.

Demo here:
[http://facedetection.jaysalvat.com/](http://facedetection.jaysalvat.com/)

Html & Scripts
--------------

**Includes**

	<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script> 
	<script src="js/facedetection/ccv.js"></script> 
	<script src="js/facedetection/face.js"></script>
	<script src="js/jquery.facedetection.js"></script> 

**Image**

	<img id="myPicture" src="img/face.jpg">

**Script**

	<script>
		$(function() {
   			var coords = $('#myPicture').faceDetection();
			console.log(coords);    
		});
	</script> 

Results
-------

Returns an array with found faces object:

**x:** Y coord of the face

**y:** Y coord of the face

**width:** Width of the face

**height:** Height of the face

**positionX:** X position relative to the document

**positionY:** Y position relative to the document

**offsetX:** X position relative to the offset parent

**offsetY:** Y position relative to the offset parent

**confidence:** Level of confidence

Settings
--------

**confidence:** Minimum level of confidence

**start:** Callback function trigged just before the process starts. **DOES'NT WORK PROPERLY**

	start:function(img) {
		// ...
	}

**complete:** Callback function trigged after the detection is completed

	complete:function(img, coords) {
		// ...
	}

**error:** Callback function trigged on errors

	error:function(img, code, message) {
		// ...
	}
{'fraction_non_alphanumeric': 0.1771356783919598, 'fraction_numerical': 0.0018844221105527637, 'mean_word_length': 3.7822822822822824, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '548739', 'n_tokens_mistral': 1043, 'n_tokens_neox': 979, 'n_words': 307}