Disclosed is an application of an automatic inflation/deflation device in an OCT endoscopic scanning and imaging system; the automatic inflation/deflation device comprising a control and display module, an air pump (101), an inflation solenoid valve (102), a deflation solenoid valve (107), pressure sensors (103, 105), an explosion-proof pressure sensor (106) and a mechanical pressure switch (108). By using the automatic inflation/deflation device in an OCT endoscopic scanning and imaging system, the manual operation of a doctor inflating/deflating a balloon (10) can be omitted, thereby shortening the doctor's inflation/deflation time to improve the safety and avoiding the risk of explosion caused by over-inflation of the balloon (10).