The console is still open, but nothing happens after that point. The memory goes up slowly, about one MB for two or three hours. But I found, the function 'read(InputArrray Image)' cause the memory leak. It has no problem to capture and read the stream. There is no thumbnail on the file either.Ģ) The process stops after adding image 725. The following is the code I am using to capture the video from rtsp stream and then save some frames every several minutes. Is there a way to make a video from images saved in RAM, as this would be much faster? Or write the video file as I go, providing one image after the other from RAM? Thanks in advance!ĮDIT: I have tried to do the example posted with the imageio library, but I'm facing two problems:ġ) The. png images, which took about 12~ minutes and used a total of 28Mb~ (storage).Īrg = ffmpeg -framerate 30 -i img%00d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 When I saved an image of every step, it created 4840. Here's the problem: My last test used a 100x100 maze, it went trough 4840 steps(loops) and executed in 0.0019 seconds. When the process is over, I use FFMPEG to convert the images(png) to video(mp4). While not beeing able to see the actual process from start to finish, I desided to create a picture of the original maze with the current progress, every step. I'm using PIL to open an image of a maze and when the process is finished, it creates a new image and adds color to the correct path. I challenged myself in making my own pathfinding algorithm in python and succeeded.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |