Search

CN-121994125-A - Positioning method, device, equipment and medium based on infrared backlight

CN121994125ACN 121994125 ACN121994125 ACN 121994125ACN-121994125-A

Abstract

The invention relates to the technical field of visual positioning, solves the problem that the positioning information of a target is inaccurate due to uneven lighting and light and shade change of light in the prior art, and provides a positioning method, device, equipment and medium based on infrared backlight. The method comprises the steps of controlling an infrared light source to emit infrared light to penetrate through a supporting plate and irradiate towards the back of an object, controlling visual detection equipment to obtain an image of the front of the object and record the image as an initial surface image, performing image processing on the initial surface image to obtain outline characteristics of the object, and obtaining positioning characteristic information of the object according to the outline characteristics. According to the invention, the infrared light source is utilized to irradiate the printing target from the back, the outline of the printing target is highlighted, and the texture information of the cloth piece or the textile is filtered, so that stable and accurate positioning characteristic information can be extracted, and the printing positioning precision is improved.

Inventors

  • ZHANG XIAOFENG
  • XU GUOMIN

Assignees

  • 深圳市汉森软件股份有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (10)

  1. 1. A positioning method based on infrared backlight, the method comprising: controlling an infrared light source to emit infrared light to penetrate through the supporting plate and irradiate towards the back of the object; Controlling a visual detection device to acquire an image of the front surface of the object, and recording the image as an initial surface image; Performing image processing on the initial surface image to obtain the outline characteristics of the object; And according to the outline characteristics, positioning characteristic information of the object is obtained.
  2. 2. The method of claim 1, wherein the image processing the initial surface image to obtain the contour features of the object comprises: Gray processing is carried out on the initial surface image to obtain a first surface image; Performing median filtering treatment on the first surface image to obtain a second surface image; performing edge detection on the second surface image to obtain contour edge information of the second surface image; and carrying out contour tracking on the object according to the contour edge information to obtain the contour characteristics of the object.
  3. 3. The method of claim 2, wherein obtaining positioning feature information of the object according to the profile feature comprises: acquiring image coordinates of the object according to the outline characteristics; Converting the coordinates of the image of the object to obtain the actual physical coordinates of the object; and calculating the positioning characteristic information of the object according to the actual physical coordinates of the object.
  4. 4. The method of claim 3, wherein calculating positioning feature information of the object according to actual physical coordinates of the object comprises: Calculating according to the actual physical coordinates of the object and the theoretical physical coordinates of the object to obtain offset data of the object; calibrating the printing image corresponding to the object according to the offset data; and printing the calibrated printed image on the object.
  5. 5. The method of claim 4, wherein calibrating the print image corresponding to the object according to the offset data comprises: obtaining the offset and the offset angle of the object according to the offset data; and performing geometric transformation on the printing image corresponding to the object according to the offset and the offset angle of the object.
  6. 6. The positioning method based on infrared backlight according to claim 2, wherein the image processing is performed on the surface image, and further comprising, after obtaining the contour feature of the object: According to the contour features, continuously detecting the edges of the surface image; If the continuity of the edge of the surface image accords with the threshold range, judging that no foreign matter exists on the object, and if the continuity of the edge of the surface image does not accord with the threshold range, judging that the foreign matter exists on the object.
  7. 7. The method of any one of claims 1-6, wherein the method is implemented by an infrared backlight-based detection device, the device comprising: a visual inspection device; A hollow frame including a frame body and an opening surrounded by the frame body; an infrared light source disposed in the frame; A light-transmitting support plate disposed in the opening and having a plate surface for supporting an object, the visual inspection apparatus being disposed so as to be located directly above the object and having a photographing range covering the entire plate surface, the infrared light emitted from the infrared light source being transmitted through the support plate and irradiated toward the back of the object so as to highlight a contour of the object, the visual inspection apparatus extracting positioning feature information or/and foreign matter presence information according to the contour; a back adhesive is arranged on the surface of the plate, the back adhesive allows the infrared light to pass through, and the object is stuck on the supporting plate by the back adhesive; The frame body comprises a rectangular bottom plate and vertical plates fixed with the side faces of the bottom plate, the upper ends of the vertical plates jointly enclose a rectangular opening, and the infrared light source is embedded in the bottom plate.
  8. 8. An infrared backlight-based positioning device, the device comprising: The infrared light source module is used for controlling the infrared light source to emit infrared light to penetrate through the supporting plate and irradiate towards the back of the object; The image acquisition module is used for controlling the visual detection equipment to acquire an image of the front surface of the object and recording the image as an initial surface image; the contour feature acquisition module is used for carrying out image processing on the initial surface image to obtain contour features of the object; and the positioning information acquisition module is used for acquiring positioning characteristic information of the object according to the contour characteristics.
  9. 9. A printing device comprising a printer, at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any one of claims 1-6.
  10. 10. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-6.

Description

Positioning method, device, equipment and medium based on infrared backlight Technical Field The present invention relates to the field of visual positioning technologies, and in particular, to a positioning method, apparatus, device, and medium based on infrared backlight. Background Badge type in the field of industrial printing generally requires knitting a badge pattern on a textile or cloth cover and then printing the badge pattern to enhance the visual effect of the badge, and the process visual positioning technology of printing is a key element for ensuring high-quality printing effect. The prior vision positioning system has the advantages that the whole workbench surface is vertically shot from the right above to be positioned by the area array camera, the light source adopts the perforated backlight to shine from the right above or two strip lights from two sides, the position of a pattern to be printed is adjusted according to offset and angle data after badge positioning is finished, and finally the pattern to be printed is output to a printer to be printed, but the prior art has certain limitations, and the positioning of the vision positioning system is inaccurate due to the fact that the shining is uneven or is easily influenced by ambient light. Disclosure of Invention In view of the above, the present invention provides a positioning method, device, apparatus and medium based on infrared backlight, which are used for solving the problem in the prior art that the positioning information of the target is not accurate due to uneven lighting and the brightness variation of the light. The technical scheme adopted by the invention is as follows: in a first aspect, the present invention provides a positioning method based on infrared backlight, including: controlling an infrared light source to emit infrared light to penetrate through the supporting plate and irradiate towards the back of the object; Controlling a visual detection device to acquire an image of the front surface of the object, and recording the image as an initial surface image; Performing image processing on the initial surface image to obtain the outline characteristics of the object; And according to the outline characteristics, positioning characteristic information of the object is obtained. Preferably, the image processing the initial surface image to obtain the outline feature of the object includes: Gray processing is carried out on the initial surface image to obtain a first surface image; Performing median filtering treatment on the first surface image to obtain a second surface image; performing edge detection on the second surface image to obtain contour edge information of the second surface image; and carrying out contour tracking on the object according to the contour edge information to obtain the contour characteristics of the object. Preferably, the acquiring positioning feature information of the object according to the contour feature includes: acquiring image coordinates of the object according to the outline characteristics; Converting the coordinates of the image of the object to obtain the actual physical coordinates of the object; and calculating the positioning characteristic information of the object according to the actual physical coordinates of the object. Preferably, the calculating the positioning characteristic information of the object according to the actual physical coordinates of the object includes: Calculating according to the actual physical coordinates of the object and the theoretical physical coordinates of the object to obtain offset data of the object; calibrating the printing image corresponding to the object according to the offset data; and printing the calibrated printed image on the object. Preferably, the calibrating the print image corresponding to the object according to the offset data includes: obtaining the offset and the offset angle of the object according to the offset data; and performing geometric transformation on the printing image corresponding to the object according to the offset and the offset angle of the object. Preferably, the image processing of the surface image to obtain the outline feature of the object further includes: According to the contour features, continuously detecting the edges of the surface image; If the continuity of the edge of the surface image accords with the threshold range, judging that no foreign matter exists on the object, and if the continuity of the edge of the surface image does not accord with the threshold range, judging that the foreign matter exists on the object. Preferably, the method is implemented by an infrared backlight-based detection device, the device comprising: a visual inspection device; A hollow frame including a frame body and an opening surrounded by the frame body; an infrared light source disposed in the frame; A light-transmitting support plate disposed in the opening and having a plate surface for supporting an