File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
exercises/55 - Face Detection Censorship Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 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+
15const faceDetector = new window . FaceDetector ( ) ;
26const video = document . querySelector ( 'video.webcam' ) ;
37const canvas = document . querySelector ( 'canvas.video' ) ;
Original file line number Diff line number Diff line change 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+
15const video = document . querySelector ( '.webcam' ) ;
26const canvas = document . querySelector ( '.video' ) ;
37const ctx = canvas . getContext ( '2d' ) ;
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments