You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

batch.py 426 B

7 years ago
1234567891011121314151617
  1. #coding=utf-8
  2. import os
  3. from hyperlpr import pipline as pp
  4. import cv2
  5. parent= "/Users/yujinke/车牌图片/收费站_完成标注"
  6. for filename in os.listdir(parent):
  7. path = os.path.join(parent,filename)
  8. print path
  9. if path.endswith(".jpg") or path.endswith(".png"):
  10. image = cv2.imread(path)
  11. image,res = pp.SimpleRecognizePlate(image)
  12. cv2.imshow("image",image)
  13. cv2.waitKey(0)

高性能开源中文车牌识别框架