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
.
-
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
pacman -S mingw-w64-x86_64-curl
-
Build and Run. Open CMD in the location of this file ConsoleApplication2.cpp Run this command to build
g++ ConsoleApplication2.cpp -o app.exe -lcurl
Run the build program by running this command
.\app.exe
- 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).
- 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