-
Baidu Smart Cloud Account->Manage Application->HTTP SDK->Face Recognition->Download SDK
-
Unzip into Ubuntu
-
sudo apt-get install libcurl4-openssl-dev
-
== sudo apt-get install openssl==
-
sudo apt-get install libjsoncpp-dev
-
dpkg -s libjsoncpp-dev
Check if it is installed
-
g++ main.cpp -o main -lopencv_highgui -l opencv_core -lopencv_imgproc -lopencv_objdetect -std=c++11 -lcurl -lcrypto -ljsoncpp, Compile
-
Compilation error, why does json/json.h error: base/http.h:23:23: fatal error: json/json.h: No such file or directory
-
json.h comes from the jsoncpp library
-
base.h has the same problem: base/base.h:21:23: fatal error: json/json.h: No such file or directory
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
12. Now you can use some of the ready-made methods provided by Baidu aip
13. Detailed steps, official website
Baidu official website Tutorials