This service demo is based on paddle-lite object detection. Drogon is used as the web application framework.
You can try using drogon on Mac OS. The following commands are for drogon installation on OSX.
brew install cmake
brew install c-ares
brew install jsoncpp
brew install ossp-uuid
git clone https://github.com/an-tao/drogon
cd drogon
./build.sh
The installation of drogon on Raspberry Pi or other ARMLiux devices are as follows
apt-get update
apt-get -y install sudo
sudo apt-get -y install g++
sudo apt-get -y install cmake
sudo apt-get -y install libssl-dev
sudo apt-get -y install libc-ares-dev
sudo apt-get -y install libjsoncpp-dev
sudo apt-get -y install uuid-dev
sudo apt-get -y install zlib1g-dev
sudo apt-get -y install libgmp3-dev
sudo apt-get -y isntall libcurl4-gnutls-dev
sudo apt-get -y install git
git clone https://github.com/an-tao/drogon.git
cd drogon
sudo ./build.sh
Server installation
cd service-demo
mkdir build && cd build
cmake ..
make
./demo
Client test
curl -H "Content-Type: application/json" -X POST -d '{"url": "xxxx"}' http://0.0.0.0:8080