| In recent years,the incidence and mortality rate of gastrointestinal disease has increased year by year,which causes serious damage to people’s health and safety.Early diagnosis and treatment of gastrointestinal cancer can greatly reduce the mortality rate,so it is very important to run some tests of early cancer and take treatment measures.Endoscopy is a traditional way to perform the detection of the gastrointestinal tract disease,but it is invasive,it may cause substantial damage to the patient’s body and mind.Capsule endoscopy gets rid of the defects of traditional endoscopy,but it is unable to find small lesions,as a result,there will be a misdiagnosis or missed diagnosis.In order to increase the success rate of tissue lesion detection,some new detection technologies have been developed to cooperate with traditional endoscopy.Auto-fluorescence imaging technology has become a hotspot because it can effectively diagnose early cancer.Most of the existing auto fluorescence imaging systems are short-cavity detection devices.they are used to examine short cavity,such as oral,cervix,etc.Gastrointestinal auto fluorescence imaging system is difficult to develop because it’s long cavity detection device,which has high requirements for signal transmission quality and the size of detection equipment entering the human gastrointestinal tract.At present,auto-fluorescence detection device for precancerous lesions has problems of large volume and complex structure,thus restricting the development and promotion of auto fluorescence detection technology;In addition,to obtain auto-fluorescence image,image interpolation algorithm is critical to image restoration,but it’s difficult for most of the existing algorithms to have both image recovery efficiency and recovery effectiveness,causing the algorithms too complex to implement,or causing image distortion.In order to solve these problems,the hardware and software optimization of auto-fluorescence detection system in this paper can effectively simplify hardware structure and improve interpolation algorithm.The system uses new special medical CMOS image sensor to collect image data,selects special high-power UV LED as excitation light,and applies FPGA to configure image sensor and implement image enhancement.Compared to other systems,this system can reduce the hardware,and simplify the structure.The system only puts the image sensor and light source in the front end,while the others are placed at the back end,which can effectively reduce the size of the detection equipment entering the human gastrointestinal tract.The improved interpolation algorithm is based on bilinear interpolation algorithm and edge oriented interpolation algorithm,and it applies gradient method and chromatic aberration rule to restore R,G,B channels.In view of the shortcomings of the existing auto-fluorescence detection system for gastrointestinal precancerous lesions,the software and hardware optimization design of the front end size,system structure and interpolation algorithm is carried out in this paper.The minimum size of the front end of the system can reach 6 mm,the hardware structure of the system is simplified,the volume is reduced,PSNR of the three channels of the image can reach about 38. |