Adding modules such as MCU,camera,the gear motor and stepper motor to the traditional Michelson interferometer to improve it,the improved Michelson interferometer is used to measure the refractive index of ethanol solution at different temperatures.Based on Open CV image recognition technology,the number of fringes is identified and the relationship is obtained by the least squares fitting.Experimental results show that the improved device is easy to use and accurate in measurement.After data fitting,the relationship between the temperature and refractive index of ethanol solution is obtained,providing reference data for science,industry and other fields.