Răsfoiți Sursa

klein foutje in indent :((

Fabien 14 ani în urmă
părinte
comite
a68fe0cdbd
2 a modificat fișierele cu 2 adăugiri și 36 ștergeri
  1. 2 2
      src/LicensePlate.py
  2. 0 34
      src/license_xml_tester.py

+ 2 - 2
src/LicensePlate.py

@@ -46,8 +46,8 @@ class LicensePlate:
         for i in range(0, M):
             for j in range(0, N):
                 or_coor   = dot(P, ([[i],[j],[1]]))
-                or_coor_h = or_coor[1][0] / or_coor[2][0], 
-                            or_coor[0][0] / or_coor[2][0]
+                or_coor_h = (or_coor[1][0] / or_coor[2][0],
+                             or_coor[0][0] / or_coor[2][0])
                 
                 data[j][i] = self.pV(or_coor_h[0], or_coor_h[1])
 

+ 0 - 34
src/license_xml_tester.py

@@ -1,34 +0,0 @@
-from LicensePlate import LicensePlate
-
-'''
- create new LicensePlate object:
-
- i.e you can do 
-
- plate = LicensePlate("../XML/test.info") # some xml file from rein
-
- now available:
-
- plate.image
- plate.width
- plate.height
-
- Are the entire image widht / height and image is the corresponding image file
- provided by rein (i.e other folder somewhere)
-
- plate.corners
- 
- plate.license_full  # the entire license plate as a string so 2334AB
- plate.characters    # for each character from license_full a Character object
-                       exists, kinda same as the license plate. You have a value
-                       = the character / number
-
-                       a corners -> i.e list of points (Point objects)
-
-  TODO had to go so this text is full of crap maybe, anyway enjoy
- 
-'''
-
-plate = LicensePlate("../XML/0000/00991_000000.info") # some xml file from rein
-
-plate.characters[0].image.show()