<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Openface%3A_contoh_face_detection_system</id>
	<title>Openface: contoh face detection system - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Openface%3A_contoh_face_detection_system"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Openface:_contoh_face_detection_system&amp;action=history"/>
	<updated>2026-04-25T19:24:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Openface:_contoh_face_detection_system&amp;diff=51027&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: https://gist.github.com/ageitgey/63304fce6963cddec800afac5e3b065e     Step 1  Make a folder called ./training-images/ inside the openface folder.   mkdir training-imag...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Openface:_contoh_face_detection_system&amp;diff=51027&amp;oldid=prev"/>
		<updated>2018-05-22T03:26:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: https://gist.github.com/ageitgey/63304fce6963cddec800afac5e3b065e     Step 1  Make a folder called ./training-images/ inside the openface folder.   mkdir training-imag...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: https://gist.github.com/ageitgey/63304fce6963cddec800afac5e3b065e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1&lt;br /&gt;
&lt;br /&gt;
Make a folder called ./training-images/ inside the openface folder.&lt;br /&gt;
&lt;br /&gt;
 mkdir training-images&lt;br /&gt;
&lt;br /&gt;
Step 2&lt;br /&gt;
&lt;br /&gt;
Make a subfolder for each person you want to recognize. For example:&lt;br /&gt;
&lt;br /&gt;
 mkdir ./training-images/will-ferrell/&lt;br /&gt;
 mkdir ./training-images/chad-smith/&lt;br /&gt;
 mkdir ./training-images/jimmy-fallon/&lt;br /&gt;
&lt;br /&gt;
Step 3&lt;br /&gt;
&lt;br /&gt;
Copy all your images of each person into the correct sub-folders. Make sure only one face appears in each image. There&amp;#039;s no need to crop the image around the face. OpenFace will do that automatically.&lt;br /&gt;
&lt;br /&gt;
Step 4&lt;br /&gt;
&lt;br /&gt;
Run the openface scripts from inside the openface root directory:&lt;br /&gt;
&lt;br /&gt;
First, do pose detection and alignment:&lt;br /&gt;
&lt;br /&gt;
 ./util/align-dlib.py ./training-images/ align outerEyesAndNose ./aligned-images/ --size 96&lt;br /&gt;
&lt;br /&gt;
This will create a new ./aligned-images/ subfolder with a cropped and aligned version of each of your test images.&lt;br /&gt;
&lt;br /&gt;
Second, generate the representations from the aligned images:&lt;br /&gt;
&lt;br /&gt;
 ./batch-represent/main.lua -outDir ./generated-embeddings/ -data ./aligned-images/&lt;br /&gt;
&lt;br /&gt;
After you run this, the ./generated-embeddings/ sub-folder will contain a csv file with the embeddings for each image.&lt;br /&gt;
&lt;br /&gt;
Third, train your face detection model:&lt;br /&gt;
&lt;br /&gt;
 ./demos/classifier.py train ./generated-embeddings/&lt;br /&gt;
&lt;br /&gt;
This will generate a new file called ./generated-embeddings/classifier.pkl. This file has the SVM model you&amp;#039;ll use to recognize new faces.&lt;br /&gt;
&lt;br /&gt;
At this point, you should have a working face recognizer!&lt;br /&gt;
&lt;br /&gt;
Step 5: Recognize faces!&lt;br /&gt;
&lt;br /&gt;
Get a new picture with an unknown face. Pass it to the classifier script like this:&lt;br /&gt;
&lt;br /&gt;
 ./demos/classifier.py infer ./generated-embeddings/classifier.pkl your_test_image.jpg&lt;br /&gt;
&lt;br /&gt;
You should get a prediction that looks like this:&lt;br /&gt;
&lt;br /&gt;
 === /test-images/will-ferrel-1.jpg ===&lt;br /&gt;
 Predict will-ferrell with 0.73 confidence.&lt;br /&gt;
&lt;br /&gt;
From here it&amp;#039;s up to you to adapt the ./demos/classifier.py python script to work however you want.&lt;br /&gt;
&lt;br /&gt;
Important notes:&lt;br /&gt;
&lt;br /&gt;
* If you get bad results, try adding a few more pictures of each person in Step 3 (especially picures in different poses).&lt;br /&gt;
* This script will always make a prediction even if the face isn&amp;#039;t one it knows. In a real application, you would look at the confidence score and throw away predictions with a low confidence since they are most likely wrong.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://gist.github.com/ageitgey/63304fce6963cddec800afac5e3b065e&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>