Get Photo Counts

Autor: rubens
Data: 08/11/2012

ialprGetCounts

This functions returns the number of photos in each group. The photos are grouped by the type and place of acquisition.

1 import iaLPR
2 
3 ng = iaLPR.lprGetCounts()
4 for i, nb in enumerate(ng):
5     print 'Group %2d has %4d images' % (i+1, nb)
6 
7 print
8 print 'Total:       %4d images' % sum(ng)
Group  1 has  197 images
Group  2 has   58 images
Group  3 has 2470 images
Group  4 has   65 images
Group  5 has  125 images
Group  6 has   24 images
Group  7 has  503 images
Group  8 has 1113 images
Group  9 has 1460 images
Group 10 has  252 images
Group 11 has  645 images
Group 12 has   40 images

Total:       6952 images