diff --git a/modules/imgproc/src/drawing.cpp b/modules/imgproc/src/drawing.cpp index c422b1d10f..f9d8bb0d38 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);