What is the best algorithm to process video images and display the video flawlessly [closed]
Hello there, I had been searching around the method of processing the video images but yet do not successful. I saw example from the internet shows that, when they process a video image, the final output also looks smoothly display at the monitor even after the extensive frame by frame of image processing. While the amateur like me, it looks like that, when i'm processing the image frame by frame, the final output of my video looks like the is pending the process one by one and not smoothly.
anyone can give me key point for me to look on? Currently Im looking on the multicore processing but I think the output still do not smooth as per normal video without processing..
TQ in advance
Can you show something from your processing? or at least list the steps... maybe some steps are way to slow for that to work in real time... And what is the resolution you work on, too?
Since the code is mix up if I put it here.. ok here is the step that I had work on
90 fps and dimension is 1920 X 1080
Loop 1) Open video files 2) Show the ori video in the window 3) Processing - Color Conversion, thresholding, eroding, canny detection, hough transform, frame by frame 4) Show the final result on the new window
The process will have to extensively process the frame by frame and causing the delay on the output thus the video will be not smoothly play on both original and final output windows.
I saw a lot of example in the youtube showing that their output result does not really got impacted and I wonder how the process is done.
So your problem is that your output does not have the same FPS? Your FPS is varying in time?
yes, I mean, due to the processing, the both ori and output delay like showing frame by frame.. I understand that the processing cause it, but anyway is there any rules or method that I can make sure that the process is still working in the background and the output is still display smoothly to the user.
If you really want to do that, I think you can create a function for displaying the frames slower or as fast as the slowest process, but you'll have to stock the frames already processed, and that is going to grow a lot if you have a long video... Maybe it is better to save the processed video on disk and then play it at a fixed speed... Can you post a link from youtube where the displaying fps is not varying, maybe it is because it is playing the processed video?
this one quite flawlessly
https://www.youtube.com/watch?v=ipXQF...
wonder how the algorithm make it so fast ...
The video you mentioned, I think it is done as I have said: processed and saved as processed_video and it is uploaded on youtube, so it is always running at the same frame rate.
owhh, I see, ok if it is the case, I'll use your keyword to do the same :) thanks!! appreciate it.
Rgds Zamani
Had worked on the processed video and it worked!! thanks thdrksdfthmn ...
refer to this youtube on how to save the processed video https://www.youtube.com/watch?v=OjNCl...