You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
426 B
Python
17 lines
426 B
Python
![]()
8 years ago
|
#coding=utf-8
|
||
|
import os
|
||
|
from hyperlpr import pipline as pp
|
||
|
|
||
|
import cv2
|
||
|
|
||
|
parent= "/Users/yujinke/车牌图片/收费站_完成标注"
|
||
|
|
||
|
for filename in os.listdir(parent):
|
||
|
path = os.path.join(parent,filename)
|
||
|
print path
|
||
|
if path.endswith(".jpg") or path.endswith(".png"):
|
||
|
image = cv2.imread(path)
|
||
|
|
||
|
image,res = pp.SimpleRecognizePlate(image)
|
||
|
cv2.imshow("image",image)
|
||
|
cv2.waitKey(0)
|