Skip to content

aribornstein/CoronaFaceMaskDetectionTFJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TFJS Corona FaceMask Detector

Corona Face Mask Detection with Custom Vision and Tensorflow.js

Training

This model was trained using the Azure Custom Vision Service. For more details check out the associated blog post!

Usage

This Tensorflow.js model for Corona Face Mask Detection can be evaluated using the Custom Vision Tensorflow.js API

Object Detection

import * as cvstfjs from '@microsoft/customvision-tfjs';

let model = new cvstfjs.ObjectDetectionModel();
await model.loadModelAsync('model.json');
const image = document.getElementById('image');
const result = await model.executeAsync(image);

The result has 3 arrays.

[
	[[0.1, 0.3, 0.4, 0.3], [0.2, 0.4, 0.8, 0.9]], // bounding boxes (x1, y1, x2, y2)
	[0.2, 0.3], // probabilities
	[1, 4] // class ids
]

About

Corona Face Mask Detection with Custom Vision and Tensorflow.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published