Skip to content

Commit 52260bd

Browse files
authored
Merge pull request #19 from exadel-inc/sdk-0.6.x
Sdk 0.6.x
2 parents 03fac79 + 7502e49 commit 52260bd

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

face_founder_demo/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@exadel/compreface-js-sdk": "^0.5.2",
6+
"@exadel/compreface-js-sdk": "^0.6.0",
77
"@testing-library/jest-dom": "^5.11.4",
88
"@testing-library/react": "^11.1.0",
99
"@testing-library/user-event": "^12.1.10",
1010
"bootstrap": "^4.6.0",
11-
"compreface-javascript-sdk": "^2.3.2",
12-
"compreface-sdk": "^1.2.0",
1311
"react": "^17.0.2",
1412
"react-bootstrap": "^1.6.1",
1513
"react-confirm-alert": "^2.7.0",

face_founder_demo/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CompreFace } from 'compreface-sdk';
1+
import { CompreFace } from '@exadel/compreface-js-sdk';
22
import './custom.css';
33
import { useState, useRef } from 'react';
44
import { Container, Row, Form, Col, Button, ProgressBar, Spinner } from 'react-bootstrap';

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exadel/compreface-js-sdk",
3-
"version": "0.5.2",
3+
"version": "0.6.0",
44
"license": "Apache-2.0",
55
"description": "JavaScript SDK for CompreFace - free and open-source face recognition system from Exadel",
66
"main": "index.js",
@@ -18,6 +18,9 @@
1818
"Face Detection",
1919
"Face Verification",
2020
"Face Identification",
21+
"Age Recognition",
22+
"Gender Recognition",
23+
"Mask Detection",
2124
"Computer Vision",
2225
"SDK"
2326
],

webcam_demo/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@exadel/compreface-js-sdk": "^0.5.0",
6+
"@exadel/compreface-js-sdk": "^0.6.0",
77
"@testing-library/jest-dom": "^5.11.4",
88
"@testing-library/react": "^11.1.0",
99
"@testing-library/user-event": "^12.1.10",
10-
"compreface-javascript-sdk": "^1.0.1",
1110
"react": "^17.0.2",
1211
"react-dom": "^17.0.2",
1312
"react-scripts": "4.0.3",

webcam_demo/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useRef } from 'react'
2-
import { CompreFace } from 'compreface-javascript-sdk';
2+
import { CompreFace } from '@exadel/compreface-js-sdk';
33
import './App.css';
44

55
function App() {
@@ -24,7 +24,7 @@ function App() {
2424
canvasElement.lineWidth = 5;
2525

2626
canvasElement.strokeRect(box.x_min, box.y_min, box.x_max - box.x_min, box.y_max - box.y_min);
27-
extraCanvas.fillText( Number.parseFloat(box.probability).toPrecision(5) + ' ' + faceData.result[0].gender + ' ' + faceData.result[0].age[0] + '-' + faceData.result[0].age[1], box.x_min, box.y_min - 10)
27+
extraCanvas.fillText( Number.parseFloat(box.probability).toPrecision(5) + ' ' + faceData.result[0].gender.value + ' ' + faceData.result[0].age.low + '-' + faceData.result[0].age.high, box.x_min, box.y_min - 10)
2828

2929
}
3030

0 commit comments

Comments
 (0)