AI -Intelligent-Recognition is a practical small program. It can take photos to recognize objects intelligently, and can identify landmarks, car models, flowers, plants, animals, fruits and vegetables, currency, red wine, food ingredients, etc. The AI intelligent technology has high recognition accuracy.
Installation method of AI intelligent object recognition 1. PHP side:
Open the PHP backend directory /PHP/, find config.php, modify it to your API information, and upload the PHP code to your website space or server. Get a URL: http://xxxxx/AccessToken_get.php
2. Mini program:
(1) Open the WeChat mini program directory/wechat_mini_program/, find app.js, and find the code:
url:"https://caozha.com/xxxxx/AccessToken_get.php",
Replace the URL of the code above with the URL of your website.
(2) In the cloud_function directory, there is a cloud function caozha_ai_shiwu. In WeChat Developer Tools, right-click on the folder caozha_ai_shiwu, upload and deploy this cloud function to your mini program cloud.
If you have not enabled cloud development for WeChat mini programs, click "Cloud Development" to enable it. About cloud functions: https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions.html
Special note: The combination of PHP + applet is used because the AccessToken obtained by Baidu API is valid for 1 month, which is long enough. This AccessToken can be reused with your own server to avoid frequent requests to Baidu API when the number of visits is large. reject.
Screenshot of AI intelligent object recognition