Android programs will flash after running for a period of time

We have currently developed a face-scanning access control system, which started with Baidu face recognition SDK. Later, due to the performance problems of the Android machine and the lack of high requirements for the living part, we changed the face-scanning recognition part to the face recognition part that comes with Android"s underlying layer.
there are some problems at present:
1, the program flashes after running for a period of time (sometimes after scanning the face and then after recognition). I asked Android developers that they were killed by the system because they kept the camera on (the program has been running on the face-scanning recognition interface) and may not be optimized elsewhere, resulting in excessive memory consumption.
2 the facial recognition that comes with Android sometimes shows people standing at great distances and being recognized as valid faces.

found a lot of information, which doesn"t seem to be of much help. Do you have any good solutions or suggestions ~ 3Q


what you said is too ambiguous. Since android personnel have answered you that it is not optimized, it must be self-checked by Android developers to optimize it. Originally, there is a memory release problem, such as taking photos and turning on the camera all the time. If you do not handle it properly, the flashback may exist, and it will also cost electricity.

Android's underlying facial recognition is not perfect, API and functional level are very general, if there is a problem, it is difficult to modify if the ability is limited.

the so-called solution should be carried out by android practitioners, and it is not clear why other developers need to ask questions.


can't find a good solution for the time being, so we can only optimize it step by step.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4623f-438c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4623f-438c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?