mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Fix spelling typos
This commit is contained in:
@@ -61,13 +61,13 @@ cv::Size cv::gapi::wip::draw::FTTextRender::Priv::getTextSize(const std::wstring
|
||||
// or decrement (for right-to-left writing) the pen position after a
|
||||
// glyph has been rendered when processing text
|
||||
//
|
||||
// widht (bitmap->width) - The width of glyph
|
||||
// width (bitmap->width) - The width of glyph
|
||||
//
|
||||
//
|
||||
// Algorihm to compute size of the text bounding box:
|
||||
// Algorithm to compute size of the text bounding box:
|
||||
//
|
||||
// 1) Go through all symbols and shift pen position and save glyph parameters (left, advance, width)
|
||||
// If left + pen postion < 0 set left to 0. For example it's maybe happened
|
||||
// If left + pen position < 0 set left to 0. For example it's maybe happened
|
||||
// if we print first letter 'J' or any other letter with negative 'left'
|
||||
// We want to render glyph in pen position + left, so we must't allow it to be negative
|
||||
//
|
||||
|
||||
@@ -184,7 +184,7 @@ void drawPrimitivesOCV(cv::Mat& in,
|
||||
cv::Point org(0, mask.rows - baseline);
|
||||
cv::putText(mask, tp.text, org, tp.ff, tp.fs, 255, tp.thick);
|
||||
|
||||
// Org is bottom left point, trasform it to top left point for blendImage
|
||||
// Org is bottom left point, transform it to top left point for blendImage
|
||||
cv::Point tl(tp.org.x, tp.org.y - mask.size().height + baseline);
|
||||
|
||||
blendTextMask(in, mask, tl, tp.color);
|
||||
@@ -208,7 +208,7 @@ void drawPrimitivesOCV(cv::Mat& in,
|
||||
cv::Point org(0, mask.rows - baseline);
|
||||
ftpr->putText(mask, ftp.text, org, ftp.fh);
|
||||
|
||||
// Org is bottom left point, trasform it to top left point for blendImage
|
||||
// Org is bottom left point, transform it to top left point for blendImage
|
||||
cv::Point tl(ftp.org.x, ftp.org.y - mask.size().height + baseline);
|
||||
|
||||
blendTextMask(in, mask, tl, color);
|
||||
|
||||
Reference in New Issue
Block a user