Skip to content

Commit d6740f2

Browse files
committed
fix doc
1 parent 53a455f commit d6740f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Possible arguments of the ```visualize_results``` function:
162162
| show_class | bool | True | Whether to show class labels. |
163163
| fill_mask | bool | False | Whether to fill the segmented regions with color. |
164164
| alpha | float | 0.3 | The transparency of filled masks. |
165-
| color_class_background | tuple | (0, 0, 255) | The background BGR color for class labels. |
165+
| color_class_background | tuple / list | (0, 0, 255) | The background BGR color for class labels. If you pass a list of tuples, then each class will have its own color. |
166166
| color_class_text | tuple |(255, 255, 255)| The text color for class labels. |
167167
| thickness | int | 4 | The thickness of bounding box and text. |
168168
| font | cv2.font |cv2.FONT_HERSHEY_SIMPLEX | The font type for class labels. |

patched_yolo_infer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Visualizes custom results of object detection or segmentation on an image.
130130
- **show_class** (*bool*): Whether to show class labels. Default is True.
131131
- **fill_mask** (*bool*): Whether to fill the segmented regions with color. Default is False.
132132
- **alpha** (*float*): The transparency of filled masks. Default is 0.3.
133-
- **color_class_background** (*tuple*): The background BGR color for class labels. Default is (0, 0, 255) (red).
133+
- **color_class_background** (*tuple/list*): The background BGR color for class labels. If you pass a list of tuples, then each class will have its own color. Default is (0, 0, 255) (red).
134134
- **color_class_text** (*tuple*): The text color for class labels. Default is (255, 255, 255) (white).
135135
- **thickness** (*int*): The thickness of bounding box and text. Default is 4.
136136
- **font**: The font type for class labels. Default is cv2.FONT_HERSHEY_SIMPLEX.

0 commit comments

Comments
 (0)