//Redirect serial port one int fputc(int ch,FILE *stream) { HAL_UART_Transmit( & amp;huart1,( uint8_t *) & amp;ch,1,0xFFFF); return ch; } //typedef struct __FILE FILE; When using printf, add #include<stdio.h>; 2. Serial port interrupt callback function uint8_t g_ucUsart3ReceiveData; //Save the data received by serial port 3 main.c HAL_UART_Receive_IT( & amp;huart3, & amp;g_ucUsart3ReceiveData,1); //Serial port three receives data […]
Tag: measure
[Monocular Ranging] How to measure distance when the slope of the ground is known
Article directory I. Introduction 2. Ranging code 2.1. The ground has a slope 2.2. python code 2.2.1. Rotation matrix rotation angle 2.2.2. Angle to rotation matrix 2.2.3. Three-dimensional rotation principle (Rotation principle) 2.2.4. Complete code 2.3, c++ code 1. Preface The previous blog [Monocular Ranging] How to measure distance when the camera angle is known […]
Actual measurement: Oracle 19C hot cloning application pitfall avoidance guide
1. Background As Oracle 11g enters the extended support stage, Oracle 19C, as the final stable version of the 12C family, has been well known and used in production by most companies. My company is also trying to deploy, test, upgrade, and migrate 19C, so I took this opportunity to test the hot cloning feature. […]
C# combined with Halcon template matching + measurement (1)
Table of Contents 1. Halcon implementation 2. vs implementation 2.1 Interface settings 2.2 Preparation panel control object 2.3 Implement the function of loading images 1. Halcon implementation Feel free to use the relevant template matching + measurement cases in the halcon case. The following code is for reference only. ************1..Create a positioning template************ dev_set_draw (‘margin’) […]
[Image Segmentation] Image detection (segmentation, feature extraction), measurement and filtering of various features (area, etc.) (Matlab code implementation)
Welcome to this blog Advantages of bloggers:Blog content should be as thoughtful and logical as possible for the convenience of readers. Motto:He who travels a hundred miles is half as good as ninety. The directory of this article is as follows: Table of Contents 1 Overview 2 Operation results ? 3 References 4 Matlab code […]
stm32 input capture measures the frequency of pwm wave
1. The concept of input capture In STM32 microcontrollers, input capture is a function used to measure external signal parameters. It is implemented through the timer module and can measure the frequency, duty cycle, pulse width, etc. of the signal. Input capture timer based counter and capture compare unit. When the capture trigger condition is […]
Design and production of temperature measurement alarm system based on 51 microcontroller
Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Article directory Preface 1. Purpose of internship 2. Internship tasks 2.1 Design the hardware circuit of the temperature measurement alarm system 2.2 Temperature measurement and alarm system […]
Citrus color range size measurement system based on OpenCV
1. Research background and significance Project ReferenceAAAI Association for the Advancement of Artificial Intelligence research background and meaning Citrus is an important fruit with rich nutritional value and wide market demand. Accurately measuring the color range and size of citrus is very important during the growing and selling of citrus. Traditional methods of measuring citrus […]
Application Utility – Video Input using OpenCV and Similarity Measurement OpenCV v4.8.0
Previous tutorial: Reading geospatial raster files using GDAL Next tutorial: Creating a video using OpenCV Original author Bernát Gábor Compatibility OpenCV >= 3.0 Goals Today, owning a digital video recording system has become a common phenomenon. So what you end up dealing with is no longer a batch of images, but a stream of video. […]
OpenCV implements object size measurement
One, project analysis The idea of object size measurement is to find an object with a certain size as a reference and calculate the size of the unknown object based on the known ones. As shown in the picture below, the size of the green board is 220*300 (unit: mm), and the length of the […]