import lampix from '@lampix/core';
const draw = (recognizedObject) => {
// Drawing amazing effects
shape: lampix.helpers.rectangle(0, 0, window.innerWidth, window.innerHeight),
onClassification: (recognizedObjects) => {
recognizedObjects.forEach(draw);
lampix.watchers.add(watcher, otherWatchers)
.then((registeredWatchers) => {
console.log(registeredWatchers.length); // 3
console.log(registeredWatchers); // registered watchers corresponding to watcher, otherWatchers[0] and otherWatchers[1], in this order