Abstract This thesis focuses on two important objectives. Firstly, construct an easy, low-cost and high performance respiratory sound capturing system in accordance with CORSA standard. Then, develop a high performance record-position-independent and system-easy-to-transplant wheeze episode detecting algorithm based on spectrogram image processing of respiratory sounds. The analog circuit design process is followed by direct PC soundcard digitalization for sound capturing. Spectrogram images generated from recorded sounds are passed through a 2D bilateral filter to do edge-preserving smoothing. Then the processed data go through edge detecting procedures, wheeze-with or -without sounds are elaborately recognized. The result shows both high sensibility of 0.946 and specificity of 0.92 in qualitative analysis of wheezes from different recording locations. Due to its high efficiency, great performance and easy-to-implement characteristics, 2-D bilateral filtering can be perfectly adapted for real-time monitoring of respiratory sounds for wheezes detection.