Image recognition calculation.