[−][src]Function opencv::imgproc::get_font_scale_from_height
pub fn get_font_scale_from_height(
font_face: i32,
pixel_height: i32,
thickness: i32
) -> Result<f64>
Calculates the font-specific size to use to achieve a given height in pixels.
Parameters
- fontFace: Font to use, see cv::HersheyFonts.
- pixelHeight: Pixel height to compute the fontScale for
- thickness: Thickness of lines used to render the text.See putText for details.
Returns
The fontSize to use for cv::putText
@see cv::putText
C++ default parameters
- thickness: 1