Commit 26c7fb41 by vincent

adjust readme, net.forward has to be awaited

parent 391caaba
...@@ -171,7 +171,7 @@ faceapi.drawDetection(canvas, detectionsForSize, { withScore: false }) ...@@ -171,7 +171,7 @@ faceapi.drawDetection(canvas, detectionsForSize, { withScore: false })
You can also obtain the tensors of the unfiltered bounding boxes and scores for each image in the batch (tensors have to be disposed manually): You can also obtain the tensors of the unfiltered bounding boxes and scores for each image in the batch (tensors have to be disposed manually):
``` javascript ``` javascript
const { boxes, scores } = net.forward('myImg') const { boxes, scores } = await net.forward('myImg')
``` ```
<a name="usage-face-recognition"></a> <a name="usage-face-recognition"></a>
...@@ -195,7 +195,7 @@ else ...@@ -195,7 +195,7 @@ else
Or simply obtain the tensor (tensor has to be disposed manually): Or simply obtain the tensor (tensor has to be disposed manually):
``` javascript ``` javascript
const t = net.forward('myImg') const t = await net.forward('myImg')
``` ```
<a name="usage-face-landmark-detection"></a> <a name="usage-face-landmark-detection"></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment