-
Notifications
You must be signed in to change notification settings - Fork 314
/
Copy pathDetectPlates.py
47 lines (22 loc) · 911 Bytes
/
DetectPlates.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# DetectPlates.py
import cv2
import numpy as np
import math
# module level variables ##########################################################################
PLATE_WIDTH_PADDING_FACTOR = 1.3
PLATE_HEIGHT_PADDING_FACTOR = 1.5
###################################################################################################
def detectPlatesInScene(imgOriginalScene):
listOfPossiblePlates = []
return listOfPossiblePlates
# end function
###################################################################################################
def findPossibleCharsInScene(imgThresh):
listOfPossibleChars
return listOfPossibleChars
# end function
###################################################################################################
def extractPlate(imgOriginal, listOfMatchingChars):
possiblePlate = PossiblePlate()
return possiblePlate
# end function