license_xml_tester.py 930 B

1234567891011121314151617181920212223242526272829303132333435
  1. from LicensePlate import LicensePlate
  2. '''
  3. create new LicensePlate object:
  4. i.e you can do
  5. plate = LicensePlate("../XML/test.info") # some xml file from rein
  6. now available:
  7. plate.image
  8. plate.width
  9. plate.height
  10. Are the entire image widht / height and image is the corresponding image file
  11. provided by rein (i.e other folder somewhere)
  12. plate.corners
  13. plate.license_full # the entire license plate as a string so 2334AB
  14. plate.characters # for each character from license_full a Character object
  15. exists, kinda same as the license plate. You have a value
  16. = the character / number
  17. a corners -> i.e list of points (Point objects)
  18. TODO had to go so this text is full of crap maybe, anyway enjoy
  19. '''
  20. plate = LicensePlate("../XML/0000/00991_000000.info") # some xml file from rein
  21. print plate.characters[0].value
  22. #plate.characters[0].show()