This notebook contains an interactive session which walks through the pertinent operations required for the project. It is useful for experimenting with and documenting snippets/recipes and the behaviour of OpenCV functions, in addition to prototyping implementation to be incorporated in and/or ported to C++ in the final stage.
In [1]:
%matplotlib inline
In [2]:
import matplotlib.pyplot as plt
import numpy as np
import cv2
We are given the following sample video:
In [42]:
from IPython.display import HTML
from base64 import b64encode
video = open("../inputs/clip_test.m4v", "rb").read()
video_encoded = b64encode(video).decode('ascii')
video_tag = '<video controls alt="test" src="data:video/x-m4v;base64,{0}">'.format(video_encoded)
HTML(data=video_tag)
Out[42]: