danhtran2mind commited on
Commit
0050c07
·
verified ·
1 Parent(s): b2a3988

Update docs/inference/inference_doc.md

Browse files
Files changed (1) hide show
  1. docs/inference/inference_doc.md +9 -6
docs/inference/inference_doc.md CHANGED
@@ -80,11 +80,14 @@ This script integrates YOLO-based license plate detection with OCR to process im
80
 
81
  #### Command-Line Arguments
82
  The script supports command-line execution with the following arguments:
83
- - `--input_path` (`str`, required): Path to the input image or video file.
84
- - Example: `--input_path <path_to_plate_image_1>` or `--input_path video.mp4`
85
- - `--output_path` (`str`, optional): Path to save the processed output file.
86
- - Example: `--output_path output/plate_output.jpg`
87
- - If not specified, defaults to the input path with `_output` appended.
 
 
 
88
 
89
  #### Example Command-Line Usage
90
  ```bash
@@ -124,4 +127,4 @@ python infer.py --input_path video.mp4 --output_path output/video_output.mp4
124
  - The YOLO model and PaddleOCR are configured for English license plates. Modify `lang` or model names in `paddleocr_infer.py` for other languages.
125
  - Ensure the model weights file exists at the specified path.
126
  - Output directories are created automatically if they do not exist.
127
- - For videos, frames without detected plates are included in the output to maintain continuity.
 
80
 
81
  #### Command-Line Arguments
82
  The script supports command-line execution with the following arguments:
83
+ ## Command-Line Arguments
84
+ The script supports command-line execution with the following arguments:
85
+
86
+ | Argument | Type | Required | Default | Description | Example |
87
+ |-----------------|------|----------|---------|-----------------------------------------------------------------------------|-------------------------------------------|
88
+ | `--model_path` | `str` | None| `ckpts/yolo/finetune/runs/license_plate_detector/weights/best.pt`| Path to the model file. | `--model_path <path_to_model_path>` or `--model_path best.pt` |
89
+ | `--input_path` | `str` | Yes | None | Path to the input image or video file. | `--input_path <path_to_plate_image_1>` or `--input_path video.mp4` |
90
+ | `--output_path` | `str` | No | Input path with `_output` appended | Path to save the processed output file. | `--output_path output/plate_output.jpg` |
91
 
92
  #### Example Command-Line Usage
93
  ```bash
 
127
  - The YOLO model and PaddleOCR are configured for English license plates. Modify `lang` or model names in `paddleocr_infer.py` for other languages.
128
  - Ensure the model weights file exists at the specified path.
129
  - Output directories are created automatically if they do not exist.
130
+ - For videos, frames without detected plates are included in the output to maintain continuity.