diff --git a/modules/imgproc/src/drawing.cpp b/modules/imgproc/src/drawing.cpp index c422b1d10f060e3756825cf806819070cdbd2e63..f9d8bb0d38a550b248211974f71ae003b6281622 100644 --- a/modules/imgproc/src/drawing.cpp +++ b/modules/imgproc/src/drawing.cpp @@ -2090,6 +2090,10 @@ void putText( InputOutputArray _img, const String& text, Point org, int thickness, int line_type, bool bottomLeftOrigin ) { + if ( text.empty() ) + { + return; + } Mat img = _img.getMat(); const int* ascii = getFontData(fontFace);