be based on AI Video surveillance technology has become the development trend of security surveillance market ,TSINGSEE Qingxi video began to deploy its video platform last year AI Algorithm , Such as EasyCVR Video convergence cloud service , At present, face recognition is available 、 License plate recognition AI Intelligent detection capability , And start the landing application in the offline scene .
In today's article , Let's share with you AI Technical problems and solutions encountered in the research and development of face recognition .
In development , We met AI Face recognition Python When the service is always loaded .
Multiple access AI Face recognition web pages , The title goes round and round , The web page has not been loaded into , Finally, the web page failed to load . At this time, calling the interface of face recognition and contrast recognition will also display failure .
If you keep visiting the page and interface, you will always be loading , This indicates that this is a server-side problem . The server uses Python Third party Library flask.
Start service troubleshooting :
Because when starting the service, the default is single thread , therefore , If only one interface is slow , Then you will always wait for the response of this interface , The open web page will also be displayed in the loading , Finally, there is no response .
Since the above situation is caused by the server-side single threaded interface , Then you only need to modify the server to be multithreaded .
The modification method is as follows :
Or modify it to app.run(processes=10).
threaded Indicates support for multithreading , The server does not enable multithreading by default , So we need to add .processes Indicates the number of threads . If exceeded 10 A thread will also appear waiting to load . The best option is to add threaded=True, Let the server decide for itself .
Face recognition is widely used and developed in the field of video surveillance 、 Target recognition and other algorithms , With the expansion of video surveillance scale , More and more users begin to pay attention to the intelligent construction and application of video surveillance system .TSINGSEE Qingxi video is committed to AI+ Research and development of video technology , Intelligent video solutions have been launched to meet the needs of multi industry scenes , Welcome to follow us .