Plate Recognizer Client in C++
Step 1
Get your API key from Plate Recognizer. Replace MY_API_KEY with your API key in the file numberPlate.cpp if you are using Linux
or in the file ConsoleApplication2.cpp if you are on Windows
.
Step 2
On Windows
Using the Command line
Install MinGW-x64 via MSYS2 https://www.msys2.org/
Add the MinGW compiler to your path https://code.visualstudio.com/docs/languages/cpp#_add-the-mingw-compiler-to-your-path
Install libcurl
Build and Run. Open CMD in the location of this file ConsoleApplication2.cpp Run this command to build
Run the build program by running this command
Uisng Visual Studio IDE
Open ConsoleApplication2.sln with Visual Studio and click compile.
Execute the program from the terminal (
program.exe car.jpg
)Having trouble with libcurl? Try this guide or this [SA question](maybe have a look at https://stackoverflow.com/questions/53861300/how-do-you-properly-install-libcurl-for-use-in-visual-studio-2017).
On Linux
Install Libcurl:
sudo apt-get install libcurl3-dev libcurl4-gnutls-dev
Compile:
gcc -Wall -g -o output numberPlate.cpp -lcurl -lstdc++
Run:
./output car.jpg