当前位置:网站首页>FPGA based: moving target detection (supplementary simulation results, available)
FPGA based: moving target detection (supplementary simulation results, available)
2022-07-29 06:15:00 【A thousand songs sigh and hold the summer】
One 、 Connected to a
See this article directly for development and design : be based on FPGA: Moving target detection ( Schematic diagram + Source code + Hardware options , Available design ) Here is the simulation result , Many friends reacted , It's not easy to do the paper without simulation results .
The complete source code project is downloaded here : be based on FPGA Moving target detection ( Hardware + Schematic diagram + Source code + Simulation + Design document ) Again , I can pay half price for private messages , Because you can get rid of the platform fees .
Two 、 To enter the body ( Frame difference method Modelsim Simulation )
Build a video stream Modelsim Simulation , Need to simulate a video sequence , Used to verify the algorithm , And make effective use of Matlab Tools put static pictures “ Break up ” Save to txt In the text , for Modesim Read , And then through Matalb“ Reappear ” Processed text .
Test0.bmp The test image ,matlab Produced rgb txt Data text ,
image_r_data.txt image_g_data.txt image_b_data.txt
Test1.bmp The test image
image_r_data_o.txt image_g_data_o.txt image_b_data_o.txt
Verilog Realize the investigation law , after modelsim The simulation results show that , function smy_image_show.m
data_r_out.txt data_g_out.txt data_b_out.txt
Rgb2yuv Simulation waveform , Don't talk much , Look at the formula

Diff_frame Module simulation waveform :data_next - data_cur The results obtained are as follows post_img_Bit When 8’d130-8’D16
Greater than Set threshold 15 The target area , Set to 255

Corrosion and expansion simulation waveform , The following is *p11,p12 9 Pixel data is 3x3 Image template , Through row cache design ( Cached 2 Row image data ), The second after the yellow line 3 That's ok , Get complete 3x3 Image template 
Find_box Module simulation waveform , Gray frame difference method to get binary image , Then design the bounding box to get up, down, left and right 4 Point pixel coordinates , Frame the target area .
Data acquisition module :

In order to visually see the line field signal , Simulate camera timing , One frame of data is reduced to 4 Row data , As shown in the figure below :
As shown in the figure below , Achieve output RGB565 When the format , Two pixel clocks in succession 8bit The splicing of data into 16bit The data of 
I2C Control timing module :


I2C Timing simulation diagram
The use of I2C The system clock is 100MHz, By dividing the frequency of the system clock, we can get i2c_sclk The clock is 100KHz, But it cannot be directly used Verilog Designed drive clock , So here we use enable clock to realize .i2c_capture_en Sample at the middle point of high level ,i2c_transfer_en Transmit data at the low-level intermediate point ,I2C The configured data is written in the first byte 8’H42 Camera for writing timing ID Address , The register address data will be written in the second byte , Then the register data is written in the third byte . Due to the response bit ACK The existence of , It takes 9 Clock cycles .
Two 、VGA modular :


chart 2.17 I2C Timing simulation diagram
Pictured 2.17 Shown ,I2C sequential Modelsim Simulation results . This article is designed to use I2C The system clock is 100MHz, By dividing the frequency of the system clock, we can get i2c_sclk The clock is 100KHz, But it cannot be directly used Verilog Designed drive clock , So here we use enable clock to realize .i2c_capture_en Sample at the middle point of high level ,i2c_transfer_en Transmit data at the low-level intermediate point ,I2C The configured data is written in the first byte 8’H42 Camera for writing timing ID Address , The register address data will be written in the second byte , Then the register data is written in the third byte . Due to the response bit ACK The existence of , It takes 9 Clock cycles .
notes : You can confide in me if you need a watermark free picture .
边栏推荐
- Power electronics: single inverter design (matlab program +ad schematic diagram)
- 1、 Usage of common loss function
- Pytorch's data reading mechanism
- Hal library learning notes-12 SPI
- HAL库学习笔记-13 I2C和SPI的应用
- ML15 neural network (1)
- 华为云14天鸿蒙设备开发-Day1源码获取
- 基于STM32:情侣互动玩偶(设计方案+源码+3D图纸+AD电路)
- 2、 During OCR training, txt files and picture data are converted to LMDB file format
- AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
猜你喜欢

HAL库学习笔记-11 I2C

arduino uno错误分析avrdude: stk500_recv(): programmer is not responding

2022春招——禾赛科技FPGA技术岗(一、二面,收集于:数字IC打工人及FPGA探索者)

Transfer feature learning with joint distribution adaptation

Huawei cloud 14 day Hongmeng device development -day1 source code acquisition

DP1332E多协议高度集成非接触式读写芯片

Power electronics: single inverter design (matlab program +ad schematic diagram)

基于FPGA:运动目标检测(补充仿真结果,可用毕设)

ArduinoIDE + STM32Link烧录调试

How to use the pre training language model
随机推荐
Hal learning notes - Basic timer of 7 timer
基于DAC0832的直流电机控制系统
HAL学习笔记 - 7 定时器之高级定时器
【软件工程之美 - 专栏笔记】26 | 持续交付:如何做到随时发布新版本到生产环境?
ML8自学笔记
2.4G频段的无线收发芯片 SI24R1 问题汇总解答
Based on STM32: couple interactive doll (design scheme + source code +3d drawing +ad circuit)
DP1332E 多协议高度集成非接触式读写芯片
零基础学FPGA(五):时序逻辑电路设计之计数器(附有呼吸灯实验、简单组合逻辑设计介绍)
QT学习笔记-Qt Model/View
京微齐力:基于HMEP060的心率血氧模块开发(1:FPGA发送多位指令)
CV520国产替代Ci521 13.56MHz 非接触式读写器芯片
1、 Combine multiple txt files into one TXT file
STM32 串口乱码
Fasttext learning - text classification
SimpleFOC+PlatformIO踩坑之路
HAL库学习笔记- 8 串口通信之使用
STM32 printf问题总结 semihosting microLIB理解
智能货架安全监测系统
逻辑回归-项目实战-信用卡检测任务(下)