-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaptureFrame_Process.py
More file actions
21 lines (19 loc) · 882 Bytes
/
Copy pathCaptureFrame_Process.py
File metadata and controls
21 lines (19 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import cv2
import os
import pandas as pd
import Localization
import Recognize
"""
In this file, you will define your own CaptureFrame_Process function. In this function,
you need three arguments: file_path(str type, the video file), sample_frequency(second), save_path(final results saving path).
To do:
1. Capture the frames for the whole video by your sample_frequency, record the frame number and timestamp(seconds).
2. Localize and recognize the plates in the frame.(Hints: need to use 'Localization.plate_detection' and 'Recognize.segmetn_and_recognize' functions)
3. If recognizing any plates, save them into a .csv file.(Hints: may need to use 'pandas' package)
Inputs:(three)
1. file_path: video path
2. sample_frequency: second
3. save_path: final .csv file path
Output: None
"""
def CaptureFrame_Process(file_path, sample_frequency, save_path):