<jupyter_start><jupyter_text>Moving away from the notebookThese Jupyter notebooks provide a nice code playground for looking at Python and testing individual ideas one by one but it is time to move away from this notebook and into an "*actual program*". You may have already been doing this with play.py file as we go along, but if not, it's time to open up a real program. What we're going to do is video, and we're going to do it with face detection to start off with. Open up (in a text editor or code editor...) the file ```start.py```This has the following code at the top of it (should look familiar...)<jupyter_code># these imports let you use opencv
import cv2 #opencv itself
import common #some useful opencv functions
import video # some video stuff
import numpy as np # matrix manipulations<jupyter_output><empty_output><jupyter_text>For the purposes of the notebook (this page that you're reading now) we're going to have to do some notebook code in order to view images here<jupyter_code>#the following are to do with this interactive notebook code
%matplotlib inline 
from matplotlib import pyplot as plt # this lets you draw inline pictures in the notebooks
import pylab # this allows you to control figure size 
pylab.rcParams['figure.figsize'] = (10.0, 8.0) # this controls figure size in the notebook<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.055637982195845696, 'fraction_numerical': 0.004451038575667656, 'mean_word_length': 4.916666666666667, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '402036', 'license': 'MIT', 'n_tokens_mistral': 365, 'n_tokens_neox': 353, 'n_words': 205, 'path': '6 Moving away from the notebook.ipynb', 'repo_name': 'Bpowers4/opencv-gettingstarted', 'size': '1348'}