Project Proposal: https://docs.google.com/document/d/1T6QMVbyBl44PJMI9eJxfjmTCRJyJYyRVZcWjArm8Il4/edit?usp=sharing
GSoC Project Link: https://summerofcode.withgoogle.com/projects/#6722924292079616
''' | |
Using OpenCV takes a mp4 video and produces a number of images. | |
Requirements | |
---- | |
You require OpenCV 3.2 to be installed. | |
Run | |
---- | |
Open the main.py and edit the path to the video. Then run: |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
import xlwt | |
import StringIO | |
import mimetypes | |
from flask import Response | |
from werkzeug.datastructures import Headers | |
#... code for setting up Flask | |
@app.route('/export/') | |
def export_view(): |