| As the head-mounted display becomes more and more integrated and functional,it can be regarded as a small video processing platform,and one of its cores is micro-display technology.As the mainstream video processing chip at present,FPGA can process data in parallel,its internal circuit can be reconstructed as needed at any time,and it has strong generality,so it is very suitable as the core of small-scale video processing system.This article introduces a complete video image processing system based on FPGA.which can independently complete all the work from video capture to real-time processing and video display,and it supports the output of LCOS micro display.When the hardware design of system platform was finished,the top-down design concept is used to complete system softwar design.The system was divided into clock module,image acquisition module,image processing module,and image display module according to functions.The working process of the system is as follows:First,after power on,OV5640 is initialized through SCCB bus to obtain standard video image data.Next,in the image processing module,the video data has gone through grayscale conversion,fast median filtering,edge detection,morphology processing,image superposition and other processing.Then through the design of SDRAM control module,the problem of data interaction across the clock domain is solved,and the storage and reading of video data are also completed;Finally,a complete display sequence is constructed in the image display module,which can drive different display devices.The whole system is implemented based on the hardware description language Verilog HDL.The realization of image algorithm on FPGA is also one of the emphases o f this paper.In this paper,on the premise of reasonable allocation of hardware re sources,the computing efficiency is improved by means of optimization algorith m and pipelining technology,which gives full play to the advantages of FPGA in parallel data processing,and finally improves the processing speed of image a lgorithm module.In the process of system design,the author used Modelsim to perform timing simulation on the functional modules to verify the rationality of the design logic.When the system design was completed,this paper tests and analyzes the system,which proves that the real-time display effect of the system is good,and it can process the video in real time. |