Skip to content

Commit

Permalink
Merge pull request #19 from exadel-inc/sdk-0.6.x
Browse files Browse the repository at this point in the history
Sdk 0.6.x
  • Loading branch information
pospielov authored Sep 19, 2021
2 parents 03fac79 + 7502e49 commit 52260bd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 1 addition & 3 deletions face_founder_demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@exadel/compreface-js-sdk": "^0.5.2",
"@exadel/compreface-js-sdk": "^0.6.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"bootstrap": "^4.6.0",
"compreface-javascript-sdk": "^2.3.2",
"compreface-sdk": "^1.2.0",
"react": "^17.0.2",
"react-bootstrap": "^1.6.1",
"react-confirm-alert": "^2.7.0",
Expand Down
2 changes: 1 addition & 1 deletion face_founder_demo/src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CompreFace } from 'compreface-sdk';
import { CompreFace } from '@exadel/compreface-js-sdk';
import './custom.css';
import { useState, useRef } from 'react';
import { Container, Row, Form, Col, Button, ProgressBar, Spinner } from 'react-bootstrap';
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@exadel/compreface-js-sdk",
"version": "0.5.2",
"version": "0.6.0",
"license": "Apache-2.0",
"description": "JavaScript SDK for CompreFace - free and open-source face recognition system from Exadel",
"main": "index.js",
Expand All @@ -18,6 +18,9 @@
"Face Detection",
"Face Verification",
"Face Identification",
"Age Recognition",
"Gender Recognition",
"Mask Detection",
"Computer Vision",
"SDK"
],
Expand Down
3 changes: 1 addition & 2 deletions webcam_demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@exadel/compreface-js-sdk": "^0.5.0",
"@exadel/compreface-js-sdk": "^0.6.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"compreface-javascript-sdk": "^1.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
Expand Down
4 changes: 2 additions & 2 deletions webcam_demo/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRef } from 'react'
import { CompreFace } from 'compreface-javascript-sdk';
import { CompreFace } from '@exadel/compreface-js-sdk';
import './App.css';

function App() {
Expand All @@ -24,7 +24,7 @@ function App() {
canvasElement.lineWidth = 5;

canvasElement.strokeRect(box.x_min, box.y_min, box.x_max - box.x_min, box.y_max - box.y_min);
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)
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)

}

Expand Down

0 comments on commit 52260bd

Please sign in to comment.