Skip to content

Commit fa1467d

Browse files
authored
Update README.md
1 parent af3ddad commit fa1467d

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

README.md

+31-3
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ This project uses KBY-AI's Face Recognition Server SDK, which requires a license
100100
```
101101
- Send us the machine code and replace the license.txt file you received. Then, run the Docker container again.
102102
103-
![image](https://github.com/kby-ai/FaceLivenessDetection-Docker/assets/125717930/216f1306-a758-4e47-a8fe-159f3c84f53b)
103+
![image](https://github.com/kby-ai/FaceRecognition-Docker/assets/125717930/d7e84054-e4da-42c4-a88f-e74d50387d92)
104104
105-
![image](https://github.com/kby-ai/FaceLivenessDetection-Docker/assets/125717930/2eff3496-abc2-4e70-bee1-4195375f42e6)
106-
105+
![image](https://github.com/kby-ai/FaceRecognition-Docker/assets/125717930/7988b167-17dd-4501-8168-871954a1c8ec)
107106
108107
- To test the API, you can use Postman. Here are the endpoints for testing:
109108
@@ -199,3 +198,32 @@ This project uses KBY-AI's Face Recognition Server SDK, which requires a license
199198
* The fifth parameter: the count allocated for the maximum 'FaceBox' objects.
200199
201200
The function returns the count of the detected face.
201+
202+
- Create Template
203+
204+
The SDK provides a function that enables the generation of templates from RGB data. These templates can be used for face verification between two faces.
205+
206+
The function can be used as follows:
207+
208+
```
209+
templateExtraction(image_np1, image_np1.shape[1], image_np1.shape[0], faceBoxes1[0])
210+
```
211+
212+
This function requires 4 parameters.
213+
* The first parameter: the byte array of the RGB image buffer.
214+
* The second parameter: the width of the image.
215+
* The third parameter: the height of the image.
216+
* The fourth parameter: the 'FaceBox' object obtained from the 'faceDetection' function.
217+
218+
If the template extraction is successful, the function will return 0. Otherwise, it will return -1.
219+
220+
- Calculation similiarity
221+
222+
The 'similarityCalculation' function takes a byte array of two templates as a parameter.
223+
224+
```
225+
similarity = similarityCalculation(faceBoxes1[0].templates, faceBoxes2[0].templates)
226+
```
227+
228+
It returns the similarity value between the two templates, which can be used to determine the level of likeness between the two individuals.
229+

0 commit comments

Comments
 (0)