Slow video motion

my code is executed and it was comparatively slow in video what should i do

Hey avanish,
That is completely depends on system to system.
Since in each frame the image is going to knn algorithm and it finds the distance with all the dimensions of all the images, so it becomes quite slow while calculating the distancing, therefore affecting in the video stream. One alternative is to use some other algorithm rather than knn that would work fine.

Thanks :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.