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
ModelZoo
ResNet50_onnxruntime
Commits
f1f70dc9
Commit
f1f70dc9
authored
Nov 07, 2023
by
yangql
Browse files
Update Python/Classifier.py
parent
4d30cab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Python/Classifier.py
Python/Classifier.py
+2
-2
No files found.
Python/Classifier.py
View file @
f1f70dc9
...
@@ -80,9 +80,9 @@ def saveimage(pathOfImage,text):
...
@@ -80,9 +80,9 @@ def saveimage(pathOfImage,text):
iimage
=
cv2
.
imread
(
pathOfImage
,
cv2
.
IMREAD_COLOR
)
iimage
=
cv2
.
imread
(
pathOfImage
,
cv2
.
IMREAD_COLOR
)
font
=
cv2
.
FONT_HERSHEY_SIMPLEX
font
=
cv2
.
FONT_HERSHEY_SIMPLEX
font_scale
=
0.5
font_scale
=
0.5
font_color
=
(
255
,
0
,
0
)
font_color
=
(
0
,
0
,
255
)
font_thickness
=
1
font_thickness
=
1
text_position
=
(
5
,
1
0
)
text_position
=
(
5
,
2
0
)
cv2
.
putText
(
iimage
,
text
,
text_position
,
font
,
font_scale
,
font_color
,
font_thickness
)
cv2
.
putText
(
iimage
,
text
,
text_position
,
font
,
font_scale
,
font_color
,
font_thickness
)
cv2
.
imwrite
(
"./output_image.jpg"
,
iimage
)
cv2
.
imwrite
(
"./output_image.jpg"
,
iimage
)
cv2
.
destroyAllWindows
()
cv2
.
destroyAllWindows
()
...
...
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