Skip to content

career-tokens/OpenCVMeetsHTMLCanvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solving a major problem : OpenCV takes a heck lot of time for marking videos with detected objects !

The Approach:

i)create a react frontend for accepting video and a python backend (I have used Flask ) where OpenCV(which required python) will run. ii)break the video into frames and each frame would be an image whose base64 format would be pushed into an array iii)now we would be iterating over the array and every image data would be sent to the backend where OpenCV would JUST return the array of pair of coordinates for the boxes for that image iv)for each image , we would receive the coordinates back and on html canvas we would produce the image with the boxes (using the coordinates) v)now since we are continuing to iterate over the array the image would keep on changing and hence on the canvas a video like effect would be produced

Testing

First we would send a single image which we would take from the user , receive the coordinates and display the image with bounding boxes on html canvas .

How did it go:

f9a9dc13-d615-485d-9f64-0a21352ba0cd.mp4

Now lets use a video this time

We are taking a video from the user and breaking it into 30 frames for now . This step takes the longest time and is the Rate-determining step of the project . After we get the frames array , we simply do as planned in our initial approach .

How did it go ?

7d2a51e1-054a-403d-8481-edf38d6bb704.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published