const initializeMBS = () => {
const mbsElement = document.getElementsByClassName('mbs')[0];
const mbsBounds = mbsElement.getBoundingClientRect();
const onClassification = (classifiedObjects) => classifiedObjects.forEach((classifiedObject) => {
handleObjectClassified(classifiedObject, '#FFFFFF');
const onLocation = (locatedObjects) => {
// This step fires before onClassification!
console.log(locatedObjects);
const mbsFruitsWatcher = {
name: 'MovementBasedSegmenter',
shape: lampix.helpers.rectangle(
neural_network_name: 'fruits'
lampix.watchers.add(mbsFruitsWatcher);