The invention relates to a handheld thermal infrared imager. The handheld thermal infrared image comprises infrared imaging sensors, a visible light camera, a laser range finder, a Bluetooth module, a magnetic compass module, an MEMS micro gyroscope, a GPS module, a wireless transmission module, a Linux system embedded signal control panel and an LED display screen. Data of the multiple sensors can be integrated, resources can be reasonably allocated, complex algorithms can be achieved, the performance of handheld equipment can be improved, and the systematization of single machines can be improved. The invention further discloses a Linux-system-based algorithm for the handheld thermal infrared to carry out quick locking and ranging on a small target. According the principle of the MEMS micro gyroscope and the image processing algorithm, the target can be quickly and accurately locked and traced through digital images of infrared light and visible light, and the quick locking and ranging functions are effectively achieved through the laser range finder. The handheld thermal infrared can eliminate video jitters in real time, improve the video quality, lock the target quickly, recognize and detect the target distance automatically and improve the functionality of the handheld equipment.