This paper describes an indoor location recognition device and method based on an indoor robot. The device includes a computer Raspberry Pi, a lidar, a CMOS camera, an ultrasonic sensor, a first microcontroller, and a servo motor; the lidar is connected to the computer Raspberry Pi. Pie, the lidar is driven by a servo motor, the ultrasonic sensor is connected to the computer Raspberry Pi through the first microcontroller, and the computer Raspberry Pi controls the lidar to scan the location to measure the width and length of the current location, and controls the ultrasonic sensor to the location. Perform up and down scanning to measure the distance between the ultrasonic sensor and the ground and the ceiling respectively, and obtain the height of the room; the CMOS camera is connected to the computer Raspberry Pi, and the computer Raspberry Pi sends an instruction to control the CMOS camera to take pictures of objects and places and use them Opencv and other related technologies achieve the purpose of identification. The device and method can continuously identify indoor locations under various complex conditions, and at the same time improve the accuracy and reliability of location recognition.