Sfoglia il codice sorgente

Merge branch 'master' of http://github.com/taddeus/licenseplates

Gijs van der Voort 14 anni fa
parent
commit
7bc52ab87f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/LBP.py

+ 2 - 2
src/LBP.py

@@ -45,9 +45,9 @@ def features(image):
     for y, x in domain_iterator(features.shape):
         p = image[y, x]
 
-        # Walk around the pixel in counter-clokwise order, shifting 1 but less
+        # Walk around the pixel in counter-clokwise order, shifting 1 bit less
         # at each neighbour starting at 7 in the top-left corner. This gives a
-        # 8-bitmap
+        # 8-bit feature number of a pixel
         features[y, x] = byte(cmp_pixels(y - 1, x - 1, p)) << 7 \
                          | byte(cmp_pixels(y - 1, x, p)) << 6 \
                          | byte(cmp_pixels(y - 1, x + 1, p)) << 5 \