Skip to content

Commit 764f0d5

Browse files
authored
Merge pull request wesbos#38 from Asjas/add-note-face-detection
add a note about face detection not working on all systems
2 parents 957861b + 40366f5 commit 764f0d5

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

exercises/55 - Face Detection Censorship/pixelated-face-DEMO.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// The face detection does not work on all browsers and operating systems.
2+
// If you are getting a `Face detection service unavailable` error or similar,
3+
// it's possible that it won't work for you at the moment.
4+
15
const faceDetector = new window.FaceDetector();
26
const video = document.querySelector('video.webcam');
37
const canvas = document.querySelector('canvas.video');

exercises/55 - Face Detection Censorship/pixelated-face-FINISHED.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// The face detection does not work on all browsers and operating systems.
2+
// If you are getting a `Face detection service unavailable` error or similar,
3+
// it's possible that it won't work for you at the moment.
4+
15
const video = document.querySelector('.webcam');
26
const canvas = document.querySelector('.video');
37
const ctx = canvas.getContext('2d');
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// The face detection does not work on all browsers and operating systems.
2+
// If you are getting a `Face detection service unavailable` error or similar,
3+
// it's possible that it won't work for you at the moment.

0 commit comments

Comments
 (0)