Browse Source

pip 一键安装

pull/1/MERGE
lisiyuan 6 years ago
parent
commit
83ea7bfa0c
48 changed files with 0 additions and 75 deletions
  1. BIN
      Prj-Linux/lpr/res/0_rough.jpg
  2. BIN
      Prj-Linux/lpr/res/2.png
  3. BIN
      Prj-Linux/lpr/res/3.png
  4. BIN
      Prj-Linux/lpr/res/4.png
  5. BIN
      Prj-Linux/lpr/res/5.png
  6. BIN
      Prj-Linux/lpr/res/6.png
  7. BIN
      Prj-Linux/lpr/res/7.png
  8. BIN
      Prj-Linux/lpr/res/8.png
  9. BIN
      Prj-Linux/lpr/res/9.png
  10. BIN
      Prj-Linux/lpr/res/A.jpg
  11. BIN
      Prj-Linux/lpr/res/cache/2.png
  12. BIN
      Prj-Linux/lpr/res/cache/chars_segment.jpg
  13. BIN
      Prj-Linux/lpr/res/cache/finemapping.jpg
  14. BIN
      Prj-Linux/lpr/res/cache/finemappingres.png
  15. BIN
      Prj-Linux/lpr/res/cache/test.png
  16. BIN
      Prj-Linux/lpr/res/char1.png
  17. BIN
      Prj-Linux/lpr/res/char2.png
  18. BIN
      Prj-Linux/lpr/res/char3.png
  19. BIN
      Prj-Linux/lpr/res/char4.png
  20. BIN
      Prj-Linux/lpr/res/char5.png
  21. BIN
      Prj-Linux/lpr/res/char6.png
  22. BIN
      Prj-Linux/lpr/res/char7.png
  23. BIN
      Prj-Linux/lpr/res/demo.png
  24. BIN
      Prj-Linux/lpr/res/test1.jpg
  25. BIN
      Prj-Win/.vs/Prj-Win/v14/.suo
  26. BIN
      Prj-Win/6.jpg
  27. BIN
      Prj-Win/Build/Prj-Win.exe
  28. BIN
      dataset/0.jpg
  29. BIN
      dataset/1.jpg
  30. BIN
      dataset/10.jpg
  31. BIN
      dataset/12.JPG
  32. BIN
      dataset/14.JPG
  33. BIN
      dataset/2.jpg
  34. BIN
      dataset/24.jpg
  35. BIN
      dataset/3144391.png
  36. BIN
      dataset/4.jpg
  37. BIN
      dataset/5.jpg
  38. BIN
      dataset/6.jpg
  39. BIN
      dataset/7.jpg
  40. BIN
      dataset/8.jpg
  41. BIN
      dataset/9.jpg
  42. +0
    -0
      demo_images/demo1.png
  43. +0
    -0
      demo_images/demo2.jpg
  44. +0
    -0
      demo_images/logo.png
  45. +0
    -17
      hyperlpr_test/color_detection.py
  46. +0
    -58
      hyperlpr_test/detect_test.py
  47. +0
    -0
      images_rec/1.jpg
  48. +0
    -0
      images_rec/2.jpg

BIN
Prj-Linux/lpr/res/0_rough.jpg View File

Before After
Width: 509  |  Height: 212  |  Size: 45 kB

BIN
Prj-Linux/lpr/res/2.png View File

Before After
Width: 360  |  Height: 640  |  Size: 496 kB

BIN
Prj-Linux/lpr/res/3.png View File

Before After
Width: 479  |  Height: 78  |  Size: 86 kB

BIN
Prj-Linux/lpr/res/4.png View File

Before After
Width: 404  |  Height: 78  |  Size: 20 kB

BIN
Prj-Linux/lpr/res/5.png View File

Before After
Width: 315  |  Height: 78  |  Size: 71 kB

BIN
Prj-Linux/lpr/res/6.png View File

Before After
Width: 281  |  Height: 90  |  Size: 23 kB

BIN
Prj-Linux/lpr/res/7.png View File

Before After
Width: 281  |  Height: 90  |  Size: 37 kB

BIN
Prj-Linux/lpr/res/8.png View File

Before After
Width: 479  |  Height: 78  |  Size: 86 kB

BIN
Prj-Linux/lpr/res/9.png View File

Before After
Width: 262  |  Height: 67  |  Size: 54 kB

BIN
Prj-Linux/lpr/res/A.jpg View File

Before After
Width: 1600  |  Height: 1200  |  Size: 146 kB

BIN
Prj-Linux/lpr/res/cache/2.png View File

Before After
Width: 40  |  Height: 160  |  Size: 14 kB

BIN
Prj-Linux/lpr/res/cache/chars_segment.jpg View File

Before After
Width: 136  |  Height: 36  |  Size: 3.3 kB

BIN
Prj-Linux/lpr/res/cache/finemapping.jpg View File

Before After
Width: 140  |  Height: 60  |  Size: 5.2 kB

BIN
Prj-Linux/lpr/res/cache/finemappingres.png View File

Before After
Width: 99  |  Height: 36  |  Size: 7.6 kB

BIN
Prj-Linux/lpr/res/cache/test.png View File

Before After
Width: 120  |  Height: 52  |  Size: 3.7 kB

BIN
Prj-Linux/lpr/res/char1.png View File

Before After
Width: 17  |  Height: 35  |  Size: 1.1 kB

BIN
Prj-Linux/lpr/res/char2.png View File

Before After
Width: 16  |  Height: 27  |  Size: 1.0 kB

BIN
Prj-Linux/lpr/res/char3.png View File

Before After
Width: 16  |  Height: 30  |  Size: 1.2 kB

BIN
Prj-Linux/lpr/res/char4.png View File

Before After
Width: 16  |  Height: 26  |  Size: 1.0 kB

BIN
Prj-Linux/lpr/res/char5.png View File

Before After
Width: 16  |  Height: 26  |  Size: 944 B

BIN
Prj-Linux/lpr/res/char6.png View File

Before After
Width: 16  |  Height: 29  |  Size: 1.1 kB

BIN
Prj-Linux/lpr/res/char7.png View File

Before After
Width: 14  |  Height: 25  |  Size: 892 B

BIN
Prj-Linux/lpr/res/demo.png View File

Before After
Width: 720  |  Height: 682  |  Size: 830 kB

BIN
Prj-Linux/lpr/res/test1.jpg View File

Before After
Width: 1280  |  Height: 720  |  Size: 204 kB

BIN
Prj-Win/.vs/Prj-Win/v14/.suo View File


BIN
Prj-Win/6.jpg View File

Before After
Width: 793  |  Height: 353  |  Size: 69 kB

BIN
Prj-Win/Build/Prj-Win.exe View File


BIN
dataset/0.jpg View File

Before After
Width: 640  |  Height: 480  |  Size: 36 kB

BIN
dataset/1.jpg View File

Before After
Width: 640  |  Height: 480  |  Size: 38 kB

BIN
dataset/10.jpg View File

Before After
Width: 3264  |  Height: 2448  |  Size: 2.6 MB

BIN
dataset/12.JPG View File

Before After
Width: 3264  |  Height: 2448  |  Size: 2.5 MB

BIN
dataset/14.JPG View File

Before After
Width: 3264  |  Height: 2448  |  Size: 2.6 MB

BIN
dataset/2.jpg View File

Before After
Width: 640  |  Height: 480  |  Size: 39 kB

BIN
dataset/24.jpg View File

Before After
Width: 1584  |  Height: 1170  |  Size: 280 kB

BIN
dataset/3144391.png View File

Before After
Width: 649  |  Height: 284  |  Size: 397 kB

BIN
dataset/4.jpg View File

Before After
Width: 1280  |  Height: 720  |  Size: 359 kB

BIN
dataset/5.jpg View File

Before After
Width: 775  |  Height: 345  |  Size: 66 kB

BIN
dataset/6.jpg View File

Before After
Width: 793  |  Height: 353  |  Size: 69 kB

BIN
dataset/7.jpg View File

Before After
Width: 610  |  Height: 270  |  Size: 46 kB

BIN
dataset/8.jpg View File

Before After
Width: 544  |  Height: 241  |  Size: 46 kB

BIN
dataset/9.jpg View File

Before After
Width: 877  |  Height: 390  |  Size: 74 kB

demo_images/test.png → demo_images/demo1.png View File


demo_images/15.jpg → demo_images/demo2.jpg View File


demo_images/logo_t.png → demo_images/logo.png View File


+ 0
- 17
hyperlpr_test/color_detection.py View File

@@ -1,17 +0,0 @@
# -- coding: UTF-8

import cv2
import os
import hyperlpr.colourDetection as hc
import hyperlpr.config as hconfig

filepath = hconfig.configuration["colorTest"]["colorPath"]
for filename in os.listdir(filepath):
if filename.endswith(".jpg") or filename.endswith(".png") or filename.endswith(".bmp"):
fileFullPath = os.path.join(filepath,filename)
img = cv2.imread(fileFullPath.encode('utf-8'))
color,rgb = hc.judge_plate_color(img)
if color != None:
print filename,"->",color,"->",rgb
else:
print filename,"->","unknown->",rgb

+ 0
- 58
hyperlpr_test/detect_test.py View File

@@ -1,58 +0,0 @@
import os
import hyperlpr.detect as hyperDetect
import hyperlpr.config as hyperConfig
import cv2
import argparse
import sys

parser = argparse.ArgumentParser()

debugInfo = hyperConfig.configuration["global"]["debug"]
testPath = hyperConfig.configuration["detectTest"]["detectPath"]
outPath = hyperConfig.configuration["detectTest"]["outputPath"]

def drawBoundingBox(originImage,rect):
cv2.rectangle(originImage, (int(rect[0]), int(rect[1])), (int(rect[0] + rect[2]), int(rect[1] + rect[3])), (0, 0, 255), 2,
cv2.LINE_AA)
return originImage


#detect Plate in image batch
def detectPlateBatchTest(filepath):
for filename in os.listdir(filepath):
if filename.endswith(".jpg") or filename.endswith(".png"):
fileFullPath = os.path.join(filepath,filename)
image = cv2.imread(fileFullPath)
image_c = image.copy()
Plates = hyperDetect.detectPlateRough(image_c, image_c.shape[0], top_bottom_padding_rate=0.1)
pathName = filename.split('.')[0]
if debugInfo:
if len(Plates) != 0:
if os.path.exists(os.path.join(outPath,pathName)) == False:
os.mkdir(os.path.join(outPath,pathName))
for i,plate in enumerate(Plates):
rect = plate[1]
region = plate[2]
if debugInfo:
cv2.imwrite(os.path.join(outPath,pathName,"region_"+str(i)+"_"+pathName+".png"),region)
drawBoundingBox(image_c,rect)
if debugInfo:
cv2.imwrite(os.path.join(outPath,pathName,"out_"+pathName+".png"),image_c)


def main(args):
if args.type == 'batch':
detectPlateBatchTest(testPath)
else:
print "type: "+args.type+" not found!\n"
print parser.print_help()


def parse_arguments(argv):
parser.add_argument('--type',type=str,help='detect Plate type{batch},default is batch',default='batch')
return parser.parse_args(argv)

if __name__ == "__main__":
main(parse_arguments(sys.argv[1:]))

#detectPlateBatchTest(testPath)

images_rec/006vT0dkzy73eTACbIh15.jpg → images_rec/1.jpg View File


images_rec/2_.jpg → images_rec/2.jpg View File


Loading…
Cancel
Save