Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/197.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java OpenCV putText面向Android_Java_Android_Opencv_Text_Fonts - Fatal编程技术网

Java OpenCV putText面向Android

Java OpenCV putText面向Android,java,android,opencv,text,fonts,Java,Android,Opencv,Text,Fonts,下面的函数以水平方式打印文本。我想以垂直方式打印文本。我不想使用rotate函数,因为它会增加处理时间。我怎样才能做到这一点 void org.opencv.core.Core.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness) Draws a text string. The function putText renders the spe

下面的函数以水平方式打印文本。我想以垂直方式打印文本。我不想使用rotate函数,因为它会增加处理时间。我怎样才能做到这一点

void org.opencv.core.Core.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness)

Draws a text string.

The function putText renders the specified text string in the image. Symbols that cannot be rendered using the specified font are replaced by question marks. See "getTextSize" for a text rendering code example.

Parameters:
img Image.
text Text string to be drawn.
org Bottom-left corner of the text string in the image.
fontFace Font type. One of FONT_HERSHEY_SIMPLEX, FONT_HERSHEY_PLAIN, FONT_HERSHEY_DUPLEX, FONT_HERSHEY_COMPLEX, FONT_HERSHEY_TRIPLEX, FONT_HERSHEY_COMPLEX_SMALL, FONT_HERSHEY_SCRIPT_SIMPLEX, or FONT_HERSHEY_SCRIPT_COMPLEX, where each of the font ID's can be combined with FONT_HERSHEY_ITALIC to get the slanted letters.
fontScale Font scale factor that is multiplied by the font-specific base size.
color Text color.
thickness Thickness of the lines used to draw a text.
另见:
org.opencv.core.core.putText()

opencv的putText不支持此功能。