Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
481fdbf3
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "36158026de052bd7a50d69d7ae1a030e9cce5e4c"
Unverified
Commit
481fdbf3
authored
Jul 10, 2020
by
shilong
Committed by
GitHub
Jul 10, 2020
Browse files
fix a bug in some opencv version (#407)
parent
2b876bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/visualization/image.py
mmcv/visualization/image.py
+1
-1
No files found.
mmcv/visualization/image.py
View file @
481fdbf3
...
@@ -122,7 +122,7 @@ def imshow_det_bboxes(img,
...
@@ -122,7 +122,7 @@ def imshow_det_bboxes(img,
bbox_color
=
color_val
(
bbox_color
)
bbox_color
=
color_val
(
bbox_color
)
text_color
=
color_val
(
text_color
)
text_color
=
color_val
(
text_color
)
img
=
np
.
ascontiguousarray
(
img
)
for
bbox
,
label
in
zip
(
bboxes
,
labels
):
for
bbox
,
label
in
zip
(
bboxes
,
labels
):
bbox_int
=
bbox
.
astype
(
np
.
int32
)
bbox_int
=
bbox
.
astype
(
np
.
int32
)
left_top
=
(
bbox_int
[
0
],
bbox_int
[
1
])
left_top
=
(
bbox_int
[
0
],
bbox_int
[
1
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment