程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

The tsingsee green rhino video platform AI face recognition Python service has been loaded. What should I do?

編輯:Python

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 .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved