If you want to build a mobile application to detect and count faces in a picture, you will need to learn at least a bit of Artificial Intelligence and then code to do all the requirement. This will be quite a bit of work to do.
But, there is another way - an easy way.
Whether it is Android, iOS or even desktop, you do not need to learn any AI. Using one of the Sulata.Net's APIs, you can do it in four simple steps.
For instance, you need to detect faces in the following picture.
You just need to send an API request to a URL like this.
https://www.sulata.net/api/face/5d7e45b153b125d7e42b153a1b/?data=http://path/to/image/file.ext
You will get a JSON response like this.
{"error":"0","errorno":"0","output":"https://www.sulata.net/output/2019/09/25/c186a30b-6632-4399-b312-da2d2c00f14e.jpg","count":"3"}
The above JSON response says that there are three faces in the picture and they have been marked with rectangles in output URL.
When you call the output URL, you see the following picture.
With this little line of code, you can make quite a lot of applications, like a People Counter.
There are many other, ready-to-use APIs available at www.sulata.net. You can just grab the idea and launch your own app or use it for any of your requirements.