Confirmed users
770
edits
| Line 298: | Line 298: | ||
http://people.mozilla.org/~tkuo/foxeye-demo/ | http://people.mozilla.org/~tkuo/foxeye-demo/ | ||
===Monitor=== | ===Monitor=== | ||
Monitor is design for just send the event to the Web Worker and no modification. | Monitor is design for just send the event to the Web Worker and no modification. The left one is from getUserMedia. The right one is using addWorkerMonitor to dispatch the input frame from the left one to a worker. The worker will detect the face and pass the face position and the input frame to main thread. Then the script in main thread use both information to draw the input frame via CanvasRenderingContext2D. | ||
*Case 1: Face detection | *Case 1: Face detection | ||
This demo shows how to use |addWorkerMonitor| and CanvasRenderingContext2D to overlay a hat on someone's head. | This demo shows how to use |addWorkerMonitor| and CanvasRenderingContext2D to overlay a hat on someone's head. | ||
| Line 304: | Line 304: | ||
[[File:Monitor face.png|1080px]] | [[File:Monitor face.png|1080px]] | ||
<br> | <br> | ||
*Case 2: QRCode | |||
[[File:Monitor qrcode.png|1080px]] | [[File:Monitor qrcode.png|1080px]] | ||
<br> | <br> | ||