Call opencv library programming to display pictures and student ID names under Ubuntu

Article directory 1. Principle of Chinese character dot matrix font library (1), Chinese character encoding 1. Location code 2. Internal code (2) Dot matrix font structure 1. Bitmap font storage 2. 16*16 dot matrix font library 3. 1414 and 1212 dot matrix fonts (3). Acquisition of Chinese character lattice 1. Use location code to obtain […]

Call opencv library programming under Ubuntu to display a picture and display characters

? 1. Internal code, location code encoding rules and glyph data storage format of Chinese characters The in-machine code, location code encoding rules and glyph data storage format of Chinese characters are concepts related to Chinese character information processing. Here is a brief description: 1. Internal code: Internal code is the binary encoding used internally […]

Use opencv to correct image distortion

1 Affine transformation 1.1 What is affine transformation In image processing, it is often necessary to perform various operations on images, such as translation, scaling, rotation, flipping, etc., which are all affine transformations of images. Image affine transformation, also known as image affine mapping, means that in geometry, a vector space is transformed into another […]

Qt + OpenCV + Halcon + QScintilla implement Halcon’s script engine function (source code)

Foreword In the industrial field, the application of functions such as defect detection and target counting is basically a matter of trial and error. There is no specific standard. Standard modules for the functions can be realized by standardizing the input and output interfaces and replacing the process with a script engine. 1. Qt + […]

java opencv4.8.0 text recognition

Tools import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import org.opencv.core.Mat; import org.opencv.core.MatOfPoint; import org.opencv.core.MatOfPoint2f; import org.opencv.core.Point; import org.opencv.core.Scalar; import org.opencv.core.Size; import org.opencv.dnn.TextDetectionModel_DB; import org.opencv.dnn.TextRecognitionModel; import org.opencv.highgui.HighGui; import org.opencv.highgui.ImageWindow; import org.opencv.imgproc.Imgproc; public class OpencvUtil {<!– –> \t static String textRecognition(Mat mat, Size inputSize1) {<!– –> Path path = Paths.get(“src”,”main”,”resources”,”text_recognition_CRNN_CH_2023feb_fp16.onnx”); System.out.println(path.toAbsolutePath()); TextRecognitionModel […]

Call opencv library programming to display pictures and student ID names under Ubuntu

Article directory 1. Principle of Chinese character dot matrix font library (1), Chinese character encoding 1. Location code 2. Internal code (2) Dot matrix font structure 1. Bitmap font storage 2. 16*16 dot matrix font library 3. 14*14 and 12*12 dot matrix fonts (3). Acquisition of Chinese character lattice 1. Use location code to obtain […]

I am learning OpenCV color space conversion in Vscode

Article directory color 【1】Color space (color gamut) (1) **RGB color space** Conversion to xyz color space Convert RGB color space to XYZ color space Convert XYZ color space to RGB color space (2) **CMYK color space** (3) **HSV** (**Hue, Saturation, Value**) color space (4) **YUV and YCbCr color space** 【2】Color space conversion 2.1 GRAY color […]

C# OpenCvSharp corn kernel counting

Effect Project Code using OpenCvSharp; using System; using System.Drawing; using System.Text; using System.Windows.Forms; namespace OpenCvSharp_Demo { public partial class frmMain : Form { public frmMain() { InitializeComponent(); } string fileFilter = “*.*|*.bmp;*.jpg;*.jpeg;*.tiff;*.tiff;*.png”; string image_path = “”; DateTime dt1 = DateTime.Now; DateTime dt2 = DateTime.Now; Mat image; Mat result_image; StringBuilder sb = new StringBuilder(); private void […]