Facial recognition SDK environment construction

  1. Baidu Smart Cloud Account->Manage Application->HTTP SDK->Face Recognition->Download SDK
    Insert picture description here
    Insert picture description here

  2. Unzip into Ubuntu

  3. sudo apt-get install libcurl4-openssl-dev
    Insert picture description here

  4. == sudo apt-get install openssl==

  5. sudo apt-get install libjsoncpp-dev
    Insert picture description here

  6. dpkg -s libjsoncpp-dev
    Check if it is installed
    Insert picture description here

  7. g++ main.cpp -o main -lopencv_highgui -l opencv_core -lopencv_imgproc -lopencv_objdetect -std=c++11 -lcurl -lcrypto -ljsoncpp, Compile
    Insert picture description here

  8. Compilation error, why does json/json.h error: base/http.h:23:23: fatal error: json/json.h: No such file or directory
    Insert picture description here
    Insert picture description here

  9. json.h comes from the jsoncpp library
    Insert picture description here

  10. base.h has the same problem: base/base.h:21:23: fatal error: json/json.h: No such file or directory

Insert picture description here
11. One more library needs to be installed: ssl.sudo apt-get install libssl-devQuestion: base/utils.h:21:25: fatal error: openssl/evp.h: No such file or directory
Insert picture description here
12. Now you can use some of the ready-made methods provided by Baidu aip
Insert picture description here
13. Detailed steps, official website
Baidu official website Tutorials

Guess you like

Origin blog.csdn.net/weixin_43722052/article/details/114085913