For each lion's class, extract samples, build a dataset and train a convnet. Then search and count each lion's class findings on target images using a sliding window.
Steps
Explore and validate dataset (dotted samples vs csv counting)
Export lion samples to dataset
For each image on training folder:
Find dots by class (through dot color)
Filter out animals near than 50px from each other (try to avoid noisy images due to overlapping)
Export 124x124 images centered on dots to a dataset, labeled with lion's class (1-5) in one hot encoding
Ideas: ignore lions that are too near each other to minimize data noise?
Adjust lion classes distribution on dataset
Train dataset to classify lion classes
Test: Find and count lion classes on train images and compare to csv class count
Generate object candidates (lets avoid a full sliding window for search)
For each object candidate, predict for a lion class. If good, count class match. Avoid recount overlappings.