DoubangoTelecom / ultimateALPR-SDK

World's fastest ANPR / ALPR implementation for CPUs, GPUs, VPUs and NPUs using deep learning (Tensorflow, Tensorflow lite, TensorRT, OpenVX, OpenVINO). Multi-Charset (Latin, Korean, Chinese) & Multi-OS (Jetson, Android, Raspberry Pi, Linux, Windows) & Multi-Arch (ARM, x86).
https://www.doubango.org/webapps/alpr/
Other
617 stars 158 forks source link

Error while compiling C++ code with VS2019 #137

Closed scizors closed 3 years ago

scizors commented 3 years ago

Hi, I am using windows PC (C++ code with VS2019) As per the documentation: https://github.com/DoubangoTelecom/ultimateALPR-SDK/tree/master/samples/c%2B%2B/recognizer

I have set: You'll need Visual Studio to build the code. The VS project is at recognizer.vcxproj. Open it.

You will need to change the "Command Arguments" like the below image. Default value: --image $(ProjectDir)......\assets\images\lic_us_1280x720.jpg --charset latin --assets $(ProjectDir)......\assets You will need to change the "Environment" variable like the below image. Default value: PATH=$(VCRedistPaths)%PATH%;$(ProjectDir)......\binaries\windows\x86_64

Error:

**[ULTALPR_SDK ERROR]: function: "alprParseArgs()" file: "C:\Users\Downloads\ultimateALPR-SDK-master\samples\c++\alpr_utils.h" line: "103" message: Number of args must be even [ULTALPR_SDK INFO]:


recognizer --image [--assets ] [--charset <recognition-charset:latin/korean/chinese>] [--car_noplate_detect_enabled <whether-to-enable-detecting-cars-with-no-plate:true/false>] [--ienv_enabled <whether-to-enable-IENV:true/false>] [--openvino_enabled <whether-to-enable-OpenVINO:true/false>] [--openvino_device ] [--klass_lpci_enabled <whether-to-enable-LPCI:true/false>] [--klass_vcr_enabled <whether-to-enable-VCR:true/false>] [--klass_vmmr_enabled <whether-to-enable-VMMR:true/false>] [--klass_vbsr_enabled <whether-to-enable-VBSR:true/false>] [--parallel <whether-to-enable-parallel-mode:true / false>] [--rectify <whether-to-enable-rectification-layer:true / false>] [--tokenfile ] [--tokendata ]

Options surrounded with [] are optional.

--image: Path to the image(JPEG/PNG/BMP) to process. You can use default image at ../../../assets/images/lic_us_1280x720.jpg.

--assets: Path to the assets folder containing the configuration files and models. Default value is the current folder.

--charset: Defines the recognition charset (a.k.a alphabet) value (latin, korean, chinese...). Default: latin.

--charset: Defines the recognition charset value (latin, korean, chinese...). Default: latin.

--car_noplate_detect_enabled: Whether to detect and return cars with no plate. Default: false.

--ienv_enabled: Whether to enable Image Enhancement for Night-Vision (IENV). More info about IENV at https://www.doubango.org/SDKs/anpr/docs/Features.html#image-enhancement-for-night-vision-ienv. Default: true for x86-64 and false for ARM.

--openvino_enabled: Whether to enable OpenVINO. Tensorflow will be used when OpenVINO is disabled. Default: true.

--openvino_device: Defines the OpenVINO device to use (CPU, GPU, FPGA...). More info at https://www.doubango.org/SDKs/anpr/docs/Configuration_options.html#openvino_device. Default: CPU.

--klass_lpci_enabled: Whether to enable License Plate Country Identification (LPCI). More info at https://www.doubango.org/SDKs/anpr/docs/Features.html#license-plate-country-identification-lpci. Default: false.

--klass_vcr_enabled: Whether to enable Vehicle Color Recognition (VCR). More info at https://www.doubango.org/SDKs/anpr/docs/Features.html#vehicle-color-recognition-vcr. Default: false.

--klass_vmmr_enabled: Whether to enable Vehicle Make Model Recognition (VMMR). More info at https://www.doubango.org/SDKs/anpr/docs/Features.html#vehicle-make-model-recognition-vmmr. Default: false.

--klass_vbsr_enabled: Whether to enable Vehicle Body Style Recognition (VBSR). More info at https://www.doubango.org/SDKs/anpr/docs/Features.html#vehicle-make-model-recognition-vbsr. Default: false.

--parallel: Whether to enabled the parallel mode.More info about the parallel mode at https://www.doubango.org/SDKs/anpr/docs/Parallel_versus_sequential_processing.html. Default: true.

--rectify: Whether to enable the rectification layer. More info about the rectification layer at https ://www.doubango.org/SDKs/anpr/docs/Rectification_layer.html. Default: false.

--tokenfile: Path to the file containing the base64 license token if you have one. If not provided then, the application will act like a trial version. Default: null.

--tokendata: Base64 license token if you have one. If not provided then, the application will act like a trial version. Default: null.


Thanks in advance

scizors commented 3 years ago

Its a typo I forgot to add

--image

as mentioned the "Command Arguments" like the below image. Default value: --image $(ProjectDir)......\assets\images\lic_us_1280x720.jpg --charset latin --assets $(ProjectDir)......\assets