Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
559b538b
Commit
559b538b
authored
9 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5458 from berak:fix_putText
parents
6025738b
f2decec3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drawing.cpp
modules/imgproc/src/drawing.cpp
+2
-2
No files found.
modules/imgproc/src/drawing.cpp
View file @
559b538b
...
...
@@ -2111,7 +2111,7 @@ void putText( InputOutputArray _img, const String& text, Point org,
pts
.
reserve
(
1
<<
10
);
const
char
**
faces
=
cv
::
g_HersheyGlyphs
;
for
(
int
i
=
0
;
text
[
i
]
!=
'\0'
;
i
++
)
for
(
int
i
=
0
;
i
<
(
int
)
text
.
size
()
;
i
++
)
{
int
c
=
(
uchar
)
text
[
i
];
Point
p
;
...
...
@@ -2158,7 +2158,7 @@ Size getTextSize( const String& text, int fontFace, double fontScale, int thickn
int
cap_line
=
(
ascii
[
0
]
>>
4
)
&
15
;
size
.
height
=
cvRound
((
cap_line
+
base_line
)
*
fontScale
+
(
thickness
+
1
)
/
2
);
for
(
int
i
=
0
;
text
[
i
]
!=
'\0'
;
i
++
)
for
(
int
i
=
0
;
i
<
(
int
)
text
.
size
()
;
i
++
)
{
int
c
=
(
uchar
)
text
[
i
];
Point
p
;
...
...
This diff is collapsed.
Click to expand it.
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