<jupyter_start><jupyter_text>Import Libraries<jupyter_code>import cv2
import numpy as np<jupyter_output><empty_output><jupyter_text>Create Classifier<jupyter_code>car_classifier=cv2.CascadeClassifier('Haarcascades/haarcascade_car.xml')<jupyter_output><empty_output><jupyter_text>Capture Video<jupyter_code>cap=cv2.VideoCapture('Video/Vehicles.mp4')<jupyter_output><empty_output><jupyter_text>It's a Kind of Magic<jupyter_code>while cap.isOpened():
    ret, frame =cap.read()
    cars = car_classifier.detectMultiScale(frame,1.4,2)
    for (x,y,w,h) in cars:
        cv2.rectangle(frame,(x,y),(x+w,y+h),(0,255,225),2)
        cv2.imshow('Cars',frame)
    if cv2.waitKey(1) & 0xFF == 27:
        break
cap.release()
cv2.destroyAllWindows()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14471968709256844, 'fraction_numerical': 0.02998696219035202, 'mean_word_length': 7.533333333333333, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '495725', 'license': 'MIT', 'n_tokens_mistral': 321, 'n_tokens_neox': 310, 'n_words': 32, 'path': 'Projects/05_Car_Detection.ipynb', 'repo_name': 'samlaubscher/HacktoberFest2020-Contributions', 'size': '767'}