You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -266,11 +266,11 @@ In conjunction with the `onDetectFaces` property the properties `faceClassifier`
266
266
267
267
Only the classifiers in the CvFaceDetection sample app have currently been tested.
268
268
269
-
The `landmarksModel` property should be used for the 68 face landmarks in conjunction with a face classifier. Currently it can only be set to `lbfmodel` because there is only one landmarks data file supported `lbfmodel.yaml`. As for face boxes, face landmarks should also be used in conjunction with the same `onFacesDetected` callback. As for face detection For the json format of the landmarks data returned to the callback method see below.
269
+
The `landmarksModel` property should be used for the 68 face landmarks in conjunction with a face classifier. Currently it can only be set to `lbfmodel` because there is only one landmarks data file supported `lbfmodel.yaml`. As for face boxes, face landmarks should also be used in conjunction with the same `onFacesDetectedCv` callback. As for face detection For the json format of the landmarks data returned to the callback method see below.
270
270
271
271
Face Detection Example:
272
272
```javascript
273
-
onFacesDetected= (e) => {
273
+
onFacesDetectedCv= (e) => {
274
274
//alert('payload: ' + JSON.stringify(e.payload))
275
275
if (Platform.OS==='ios') {
276
276
if ((!e.nativeEvent.payload&&this.state.faces) || (e.nativeEvent.payload&&!this.state.faces) || (e.nativeEvent.payload&&this.state.faces)) {
@@ -292,13 +292,13 @@ Face Detection Example:
292
292
eyesClassifier='haarcascade_eye_tree_eyeglasses'
293
293
noseClassifier='nose'
294
294
mouthClassifier='mouth'
295
-
onFacesDetected={this.onFacesDetected}
295
+
onFacesDetectedCv={this.onFacesDetectedCv}
296
296
/>
297
297
```
298
298
299
299
Face Landmarks Example:
300
300
```javascript
301
-
onFacesDetected= (e) => {
301
+
onFacesDetectedCv= (e) => {
302
302
//alert('payload: ' + JSON.stringify(e.payload))
303
303
if (Platform.OS==='ios') {
304
304
if ((!e.nativeEvent.payload&&this.state.faces) || (e.nativeEvent.payload&&!this.state.faces) || (e.nativeEvent.payload&&this.state.faces)) {
@@ -318,15 +318,15 @@ Face Landmarks Example:
318
318
facing='back'
319
319
faceClassifier='haarcascade_frontalface_alt2'
320
320
landmarksModel='lbfmodel'
321
-
onFacesDetected={this.onFacesDetected}
321
+
onFacesDetectedCv={this.onFacesDetectedCv}
322
322
/>
323
323
```
324
324
325
325
Including facing='back' sets the camera view towards the user so you can test it using your own face. To specify the other direction set facing='front' or leave out the facing property.
326
326
327
327
#### Face detection data format
328
328
329
-
The data returned to the callback method `onFacesDetected` will have the json dictionary format:
329
+
The data returned to the callback method `onFacesDetectedCv` will have the json dictionary format:
0 commit comments