MCPcopy Create free account
hub / github.com/RustCV/RustCV / get_font

Function get_font

rustcv/src/imgproc/drawing.rs:118–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116static FONT: OnceLock<Font> = OnceLock::new();
117
118fn get_font() -> &'static Font<'static> {
119 FONT.get_or_init(|| Font::try_from_bytes(FONT_DATA).expect("Error constructing Font"))
120}
121
122/// 在图像上绘制文字
123pub fn put_text(mat: &mut Mat, text: &str, org: Point, font_scale: f32, color: Scalar) {

Callers 1

put_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected