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 […]

[Moore Thread] Magic Pen Ma Liang U disk Ubuntu system deployment

MobiMaliang Deploy on Ubuntu20.04 [Moore Thread] Magic Pen Ma Liang U disk Ubuntu system deployment PDF document and automatic installation script link, Lanzouyun: https://wwft.lanzoul.com/b052nz4rc Password: 95s7 The script needs to change the txt suffix to sh. and add execution permissions. sudo chmod + x ./UbuntuDeploy.sh 0. Preset 0. Please first apply for a developer account […]

With pictures and texts, we will teach you step by step how to use the OpenAI interface based on React+md to achieve the ChatGPT typewriter effect.

Preliminary preparation Front-end project Backend interface (OpenAI interface is enough) Start a new React project If you have existing projects, you can skip this step and go directly to the next step~ Next.js is a full-stack React framework. It’s versatile and allows you to create React apps of any size – from static blogs to […]

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 […]

OpenMMlab exports the yolov3 model and uses onnxruntime and tensorrt for inference

Export onnx file Use script directly import torch from mmdet.apis import init_detector, inference_detector config_file = ‘./configs/yolo/yolov3_mobilenetv2_8xb24-ms-416-300e_coco.py’ checkpoint_file = ‘yolov3_mobilenetv2_mstrain-416_300e_coco_20210718_010823-f68a07b3.pth’ model = init_detector(config_file, checkpoint_file, device=’cpu’) # or device=’cuda:0′ torch.onnx.export(model, (torch.zeros(1, 3, 416, 416),), “yolov3.onnx”, opset_version=11) The exported onnx structure is as follows: The output is the output of three different levels of detection heads. If you […]

06-Solving circular dependency issues in Spirng

Bean circular dependency problem Circular dependency: A object has B attribute, and B object has A attribute (the husband class Husband has a reference to Wife, and the wife class Wife has a reference to Husband) When the toString() method is overridden and directly outputs wife/husband, a stack memory overflow error caused by recursion will […]

[Open Source] Design and implementation of domestic waste recycling system based on Vue.js

Directory 1. Abstract 1.1 Project introduction 1.2 Project detailed screen recording 2. Research content 3. Interface display 3.1 Log in and register 3.2 Resource Type & Resource Category Module 3.3 Recycling mechanism module 3.4 Resource purchase/sale/transaction order module 3.5 Customer service consultation module 4. Disclaimer 1. Summary 1.1 Project Introduction The domestic waste recycling system […]