Just draw a box and track it as it moves across the video, no training required.
npm install @cloud-annotations/object-trackingimportobjectTrackerfrom'@cloud-annotations/object-tracking'constframe1=document.getElementById('img1')constframe2=document.getElementById('img2')constframe3=document.getElementById('img3')// ...constframeN=document.getElementById('imgN')consttracker=objectTracker.init(frame1,[x,y,width,height])constbox2=awaittracker.next(frame2)constbox3=awaittracker.next(frame3)// ...constboxN=awaittracker.next(frameN)// box =>[x,y,width,height]<scriptsrc="https://cdn.jsdelivr.net/npm/@cloud-annotations/object-tracking"></script>