The invention discloses a
metal content detection device and method based on an
infrared spectrum technology in the field of
metal detection.The
metal content detection device comprises a handheld part, a detection box is fixedly connected to the handheld part, an opening is formed in the side, away from the handheld part, of the detection box, and a
light beam receiver and a
light beam emitter are arranged on the side, close to the handheld part, of the detection box; the
light beam emitter is provided with a
universal joint used for adjusting the emitting direction, a controller is fixedly connected to the detection box, and a contour
scanner is arranged in the detection box. The controller is used for acquiring information of the to-be-detected surface scanned by the contour
scanner and generating a
surface contour diagram of the to-be-detected surface,
point location feature information meeting the requirement that the light beam is reflected to the light beam
receiver is preset in the controller,
point location features at least comprise the
point location size, the inclination angle and coordinates, and point locations meeting the requirement of light beam reflection on the
surface contour diagram of the to-be-detected surface are captured; and the
universal joint is controlled to adjust the emitting direction of the light beam emitter to face a
single point. By adopting the technical scheme of the invention, the metal piece with an uneven surface can be detected.