The hb_eval_preprocess tool is used for preprocessing image data on x86 system.
Preprocessing refers to certain image data operations before being fed into the model, e.g., image resizing, image cropping, image padding, etc.
| PARAMETER | DESCRIPTION |
-h, --help | Displays help information and exits. |
--version | Displays version information and exits. |
-m, --model_name | Specifies the model name. You can use the hb_eval_preprocess --help command to see supported models. |
-i, --image_dir | Specifies the path of input images. |
-o, --output_dir | Specifies the output path. |
-v, --val_txt | Specifies the name of the image file required by the evaluation. The preprocessing will use these names to generate images. |
The hb_eval_preprocess tool will generate binary image files in the directory specified by the --output_dir parameter.
More application samples of the hb_eval_preprocess tool in the accuracy evaluations of on-board models can be found in Data Pre-process.