2019-09-22 06:02:24 -0600 | received badge | ● Notable Question (source) |
2017-11-27 13:32:23 -0600 | received badge | ● Popular Question (source) |
2015-01-21 03:19:36 -0600 | received badge | ● Student (source) |
2015-01-21 01:38:11 -0600 | asked a question | Canny edge detection applying to video, but converted video is not saving Hi, The purpose of this code is to find a RAW video, run a canny edge detection conversion on it, and then save the converted video as output.avi to the designated target directory. For the most part, it runs fine - it finds the video, runs the canny edge detection just fine, and outputs to the correct directory. The issue is every time the code outputs just a 5.5kb file (which I think is just the avi header). The strange thing is that if out.write(edges) is replaced with out.write(frame), the video outputs correctly, having converted from the RAW file to an avi. This leads me to believe there is some issue with the edges output, but I have no idea what it is, as both frame and edges have the exact same type. Note: using Python 2.7.3 and OpenCV 3.0 If anyone has any idea of how to fix this issue, please let me know. Thanks for your time. |