Method and system for printing area selected by monochromatic light
By using a monochrome lamp on the printer to form a monochrome aperture area and a camera to capture the target image, combined with the setting of the color printing mode, the problem of insufficient accuracy in target area recognition in the prior art is solved, and high-precision printing of complex background images is achieved.
Patent Information
- Application Number
- CN202510544147.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-04-28
AI Technical Summary
When processing complex background or low-contrast images, it is difficult to accurately distinguish the target area from the background, resulting in the accuracy of the target area being unable to be guaranteed.
The monochrome lamp arranged on the printer irradiates external objects to form a monochromatic aperture area, and a target image is captured using a camera, and the target area is determined based on the detection of the target image. Then, in the color printing of the printer, multiple color areas are determined according to the target area, the color difference range of the target area is determined by comparing the color coefficients, and finally the color printing mode is determined based on the area size, color difference range and printing level.
It realizes accurate target area recognition and color printing mode for complex backgrounds or low-contrast images, ensuring the accuracy of printing results.
Smart Images

Figure CN120056623A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printing methods for printers, and in particular, to a printing method and system for a selected area of monochromatic light. Background Art
[0002] With the development of technology, printers are applied in office places and print on external objects. In the prior art, traditional image area selection methods usually rely on software tools for manual bounding box selection or cropping, or distinguish image areas through simple light intensity comparison. However, when dealing with complex backgrounds or low-contrast images, these methods often have difficulty accurately distinguishing the target area from the background, and cannot guarantee the accuracy of the target area. Summary of the Invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a printing method and system for a selected area of monochromatic light.
[0004] An embodiment of the present invention provides a printing method for a selected area of monochromatic light, including: irradiating an external object with a monochromatic lamp configured on a printer, and presenting a corresponding monochromatic aperture area on the surface of the external object; determining a shooting area according to the current position of a camera of the printer and the shooting range of the camera; if the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine a target image, and determines a target area based on the detection of the target image; in the color printing of the printer, determining a plurality of color areas according to the target area, and determining the color difference range of the target area according to the comparison of the color coefficients of the plurality of color areas; determining the color printing mode of the printer according to the area size of each color area, the color difference range of the target area, and the color printing level of the printer.
[0005] An embodiment of the present invention provides a printing system for a selected area of monochromatic light. The printing system for a selected area of monochromatic light is applied to the printing method for a selected area of monochromatic light described above. The printing system for a selected area of monochromatic light includes: A monochromatic lamp module for irradiating an external object with a monochromatic lamp configured on a printer and presenting a corresponding monochromatic aperture area on the surface of the external object; A shooting area module for determining a shooting area according to the current position of a camera of the printer and the shooting range of the camera; A target area module for, if the external object and the monochromatic aperture area are within the shooting area, the camera shooting the surface of the external object where the monochromatic aperture area exists to determine a target image, and determining a target area based on the detection of the target image; A color difference module, which is used in color printing of a printer to determine multiple color regions according to a target region, and determine the color difference range of the target region according to the comparison of the color coefficients of the multiple color regions; A color printing module, which is used to determine the color printing mode of the printer according to the region size of each color region, the color difference range of the target region, and the color printing level of the printer.
[0006] Compared with the prior art, the beneficial effects of the present invention are as follows: In the embodiment of the present invention, by means of the method in the embodiment of the present invention, a monochromatic light configured in the printer irradiates an external object, and a corresponding monochromatic light aperture region is presented on the surface of the external object; a shooting region is determined according to the current position of the camera of the printer and the shooting range of the camera; if the external object and the monochromatic light aperture region are within the shooting region, the camera shoots the surface of the external object where the monochromatic light aperture region exists to determine a target image, and a target region is determined based on the detection of the target image, ensuring the detection of the monochromatic light aperture region in the target image and further ensuring the accuracy of the target region.
[0007] Therefore, in the color printing of the printer, multiple color regions are determined according to the target region, and the color difference range of the target region is determined according to the comparison of the color coefficients of the multiple color regions; the color printing mode of the printer is determined according to the region size of each color region, the color difference range of the target region, and the color printing level of the printer, taking into account the overall situation of the region size of each color region, the color difference range of the target region, and the color printing level of the printer, and ensuring the accuracy of the color printing mode of the printer. Description of the Drawings
[0008] Figure 1 It is a schematic flowchart of the printing method for the region selected by the monochromatic light in the embodiment of the present invention; Figure 2 It is a schematic flowchart of step S11 in the printing method for the region selected by the monochromatic light in the embodiment of the present invention; Figure 3 It is a schematic flowchart of step S12 in the printing method for the region selected by the monochromatic light in the embodiment of the present invention; Figure 4 It is a schematic flowchart of step S13 in the printing method for the region selected by the monochromatic light in the embodiment of the present invention; Figure 5 It is a schematic flowchart of step S14 in the printing method for the region selected by the monochromatic light in the embodiment of the present invention; Figure 6 It is a schematic flowchart of step S15 in the printing method for the region selected by the monochromatic light in the embodiment of the present invention; Figure 7It is a schematic structural diagram of a printing system in the selected area of monochromatic light in an embodiment of the present invention. Detailed implementation manners
[0009] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention.
[0010] Please refer to Figures 1 to 7 , a printing method for a selected area of monochromatic light includes: Step S11: The monochromatic light configured in the printer irradiates an external object, and a corresponding monochromatic light aperture area is presented on the surface of the external object; Step S12: Determine the shooting area according to the current position of the camera of the printer and the shooting range of the camera; Step S13: If the external object and the monochromatic light aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic light aperture area exists to determine the target image, and determines the target area based on the detection of the target image; Step S14: In the color printing of the printer, determine multiple color areas according to the target area, and determine the color difference range of the target area according to the comparison of the color coefficients of the multiple color areas; Step S15: Determine the color printing mode of the printer according to the area size of each color area, the color difference range of the target area, and the color printing level of the printer; Refer to Figure 2 , in step S11, the monochromatic light configured in the printer irradiates an external object, and a corresponding monochromatic light aperture area is presented on the surface of the external object; In the specific implementation process of the present invention, the specific steps are as follows: S111: The printer is configured with a monochromatic light, and the monochromatic light is powered by the internal power supply of the printer and outputs monochromatic light. When the external object is within the irradiation range of the monochromatic light, the light output by the monochromatic light is presented on the surface of the external object; S112: Determine multiple line segments of the same color according to the color detection of the surface of the external object, and determine the corresponding monochromatic light aperture area based on the synthesis of the multiple line segments of the same color. At this time, the monochromatic light aperture area is a continuous annular area, and the color presented by the monochromatic light aperture area is different from the color of the surface of the external object.
[0011] In the embodiments of the present application, the printer is configured with a monochromatic light, and the monochromatic light is powered by the internal power supply of the printer and outputs monochromatic light. When the external object is within the irradiation range of the monochromatic light, the light output by the monochromatic light is presented on the surface of the external object. The monochromatic light is various monochromatic lights such as yellow light, blue light, green light, or red light.
[0012] At this time, a monochromatic light component is integrated inside the printer. This component is one or more monochromatic LED lights, laser diodes, or other devices capable of emitting monochromatic light; the monochromatic lights are precisely installed at specific positions in the printer to ensure that the light they emit can evenly illuminate the surface of an external object; the monochromatic lights are usually connected to the printer's control circuit board and receive instructions from the printer to control the switch and brightness; optionally, assume a printer is being used; this printer is configured with a blue monochromatic LED light above the printing platform; this LED light is designed to automatically turn on before printing starts to form a clear blue light circle on the surface of the artwork.
[0013] The internal power supply system of the printer provides stable direct current or alternating current for the monochromatic light; the power supply system includes components such as transformers, rectifiers, filters, and voltage regulators to ensure that the monochromatic light obtains the correct voltage and current; the power supply system usually has overload protection and short - circuit protection functions to prevent the monochromatic light from being damaged due to excessive current; optionally, in the printer, the internal power supply system is a 12V DC power supply, which is connected to the mains through the printer's power cord; when the printer is turned on, the power supply system starts working to provide stable 12V DC power for the monochromatic LED light.
[0014] When the monochromatic light receives an instruction from the printer, it starts to emit light and outputs monochromatic light of a specific wavelength; the color of the monochromatic light depends on the physical characteristics of the monochromatic light, such as the material, doping concentration, and packaging method of the LED chip, etc.; the intensity and distribution of the monochromatic light are controlled by adjusting the driving current and optical design of the monochromatic light; optionally, in the example of the printer, when the artwork is placed in position, the monochromatic LED light starts to emit bright blue light; this blue light evenly illuminates the surface of the artwork, forming a clear blue light circle, which is convenient for camera positioning and image recognition in subsequent steps.
[0015] The external object needs to be placed within the illumination range of the monochromatic light to ensure that the monochromatic light can completely cover the surface of the object; the size of the illumination range depends on factors such as the beam angle, power of the monochromatic light, and the distance of the object, etc.; to obtain the best illumination effect, appropriate reflectors or lenses are usually set inside the printer to focus and adjust the light; optionally, in the example of the printer, when the monochromatic LED light is turned on, the blue light it emits completely covers the surface of the artwork, forming a clear blue light circle.
[0016] Furthermore, multiple line segments of the same color are determined according to the color detection of the surface of the external object, and the corresponding monochromatic light circle area is determined based on the synthesis of the multiple line segments of the same color. At this time, the monochromatic light circle area is a continuous circular area, and the color presented by the monochromatic light circle area is different from the color of the surface of the external object, and the monochromatic light circle area is introduced.
[0017] At this time, the surface of the external object is scanned or photographed using a camera or color sensor integrated into the printer. The captured image is analyzed using an image processing algorithm to identify line segments that are different in color from the surface of the external object. These line segments are usually edges or contours formed when monochromatic light is irradiated onto the surface of the object. The identified line segments need to have the same color characteristics, which is usually achieved through color space conversion and color threshold setting.
[0018] Optionally, suppose you are using an inkjet printer that can print photos, and you want to partially color a color photo; above the photo, there is a red monochrome light; when the monochrome light is turned on and shines on the photo, the illuminated part of the photo will show a red outline; the camera integrated in the printer captures the photo and identifies all the red line segments through an image processing algorithm, which represent the areas on the photo that are illuminated by the monochrome light.
[0019] The identified multiple line segments of the same color are synthesized to form a coherent area; this area is usually a ring-shaped or quasi-ring-shaped area, which represents the complete aperture formed by monochromatic light on the surface of the object; the synthesis process involves algorithms such as line segment connection, smoothing and edge detection to ensure that the formed area is accurate and coherent; the formed monochromatic aperture area should be significantly different from the surface color of the external object to facilitate subsequent image processing and printing operations.
[0020] Optionally, the printer synthesizes the identified red line segments through an image processing algorithm to form a continuous red aperture area; this area accurately covers the portion of the photo that needs to be colored and forms a clear contrast with the background color of the external photo.
[0021] The resulting monochrome aperture area should be a continuous annular or quasi-annular area, which should completely surround a certain part or feature of the external object; the color of the monochrome aperture area should be significantly different from the surface color of the external object, and this difference is usually achieved through the contrast between the color of the monochromatic light and the surface color of the object; this color difference is crucial for subsequent image processing and printing operations because it helps the printer accurately identify the target area that needs to be printed or processed.
[0022] Optionally, in the example of photo coloring, the final red aperture area is a continuous annular area that accurately covers the portion of the photo that needs to be colored; since there is an obvious difference between the red aperture area and the background color of the photo (such as blue, green or white, etc.), the printer can easily identify the target area that needs to be colored and print it accurately.
[0023] refer toFigure 3 In step S12, the shooting area is determined according to the current position of the camera of the printer and the shooting range of the camera. In the specific implementation process of the present invention, the specific steps are as follows: S121: The printer is equipped with a camera, and the camera is powered by the internal power supply of the printer. A corresponding coordinate system is constructed based on the printer, and the position coordinates of the camera are determined according to this coordinate system and the spatial position of the camera relative to the printer. The position coordinates of this camera represent the current position of the camera. S122: The model of the camera is collected, and multiple shooting levels of the camera are determined according to the model of the camera and the shooting database. The corresponding shooting range is determined according to the detection of multiple shooting levels, and the shooting range of the camera is determined according to the synthesis of the shooting ranges of multiple shooting levels. S123: The orientation of the camera is collected, and the shooting area is determined according to the orientation of the camera, the current position of the camera, and the shooting range of the camera. In the embodiment of the present application, the printer is equipped with a camera, and the camera is powered by the internal power supply of the printer. A corresponding coordinate system is constructed based on the printer, and the position coordinates of the camera are determined according to this coordinate system and the spatial position of the camera relative to the printer. The position coordinates of this camera represent the current position of the camera, which takes into account the overall consideration of the coordinate system and the spatial position of the camera relative to the printer, and ensures the accuracy of the position coordinates of the camera.
[0024] At this time, a camera module is integrated inside the printer. This module usually includes a camera sensor, a lens, a circuit board, and necessary connecting wires; the camera module is precisely installed at a fixed position of the printer, and this position is usually carefully designed to ensure that the camera can capture the target object within the working area of the printer; the camera module is connected to the control circuit board of the printer, powered by the internal power supply, and receives instructions from the printer to control functions such as the switch and focal length adjustment of the camera.
[0025] Specifically, assume that a printer is in use, and this printer is equipped with a high-definition camera; this camera is installed at the top of the printer and is connected to the control circuit board of the printer through an internal USB interface; when the printer is turned on, the camera will also be automatically activated and ready to capture the target object.
[0026] The internal power supply system of the printer provides stable power supply for the camera module; the power supply system includes components such as a transformer, a rectifier, a filter, and a voltage regulator to ensure that the camera obtains the correct voltage and current; the camera module usually contains a power management circuit inside to convert the input power into the voltage and current required by the camera sensor and other components.
[0027] Optionally, in the example of the above printer, the internal power supply system of the printer is a 24V DC power supply, which is connected to the mains through the power cord of the printer; when the printer is turned on, the power supply system starts to work and provides a stable 24V DC power for the camera module; the power management circuit inside the camera module converts this voltage into the 5V DC power required by the camera sensor.
[0028] During the design and manufacturing process of the printer, a three-dimensional coordinate system is constructed. This coordinate system takes a certain fixed point of the printer as the origin and, based on the physical structure of the printer, defines three directions: X, Y, and Z. This coordinate system is usually used to describe the position of any point within the working area of the printer and the relative positional relationship between the various components of the printer. The process of constructing the coordinate system involves precise physical measurements and calibrations to ensure the accuracy and stability of the coordinate system.
[0029] Optionally, in the example of the printer, it is assumed that the origin of the printer is located at the lower left corner of the printing platform, the X-axis is along the width direction of the printing platform, the Y-axis is along the length direction of the printing platform, and the Z-axis is perpendicular to the printing platform and points upward. This coordinate system is used to accurately describe the position of any point on the printing platform and the relative positional relationship between the camera and the printing platform.
[0030] By measuring the distances of the camera relative to the origin of the printer coordinate system in various directions, the position coordinates of the camera are determined. This process involves using measuring tools (such as laser rangefinders, vernier calipers, etc.) for physical measurements or using machine vision algorithms for image processing and calculations. Once the position coordinates of the camera are determined, the current position of the camera is presented through a software interface or the display system of the printer itself.
[0031] Optionally, in the example of the printer, it is assumed that through physical measurement, the distance of the camera relative to the origin of the printer coordinate system on the X-axis is 150mm, on the Y-axis is 200mm, and on the Z-axis is 300mm. Therefore, the position coordinates of the camera are determined as (X: 150, Y: 200, Z: 300). This coordinate is viewed and verified through the software interface of the printer.
[0032] Furthermore, the model of the camera is collected. According to the model of the camera and the camera database, multiple camera levels of the camera are determined. And based on the detection of the multiple camera levels, the corresponding camera ranges are determined. According to the synthesis of the camera ranges of the multiple camera levels, the shooting range of the camera is determined, taking into account the overall synthesis of the camera ranges of the multiple camera levels, ensuring the accuracy of the shooting range of the camera.
[0033] At this time, the printer first needs to obtain the model information of the camera in some way; this is usually achieved by reading the label, barcode or information in the chip on the camera module; the model information contains key data such as the manufacturer, model name, and serial number of the camera, and this information is crucial for subsequently determining the imaging level and imaging range of the camera; once the model information of the camera is obtained, the printer compares it with the internal database or connects to an external database through the network.
[0034] Optionally, assume that a printer integrated with a high-definition camera is being used; when the printer starts, it communicates with the camera module through the internal communication protocol and reads the model information on the camera; in this example, the model of the camera is "XYZ-HD1200", which is a high-resolution camera suitable for capturing details on the printing platform.
[0035] There is a camera database maintained inside or outside the printer, and this database contains the detailed specifications and performance parameters of various models of cameras; by comparing the model information of the camera with the records in the camera database, the printer determines multiple imaging levels of the camera; these levels are usually divided based on parameters such as the resolution, field of view, focal length, and aperture size of the camera; the higher the imaging level, the better the performance of the camera, the more image details it can capture, and the wider the field of view.
[0036] Optionally, the printer finds the corresponding record in the camera database through the model information "XYZ-HD1200"; according to the record, this model of camera is classified as "high-definition level" because it has a resolution of 12 million pixels and can capture very clear images; in addition, its field of view is also recorded in the database, for example, the horizontal field of view is 60 degrees and the vertical field of view is 45 degrees.
[0037] Once the imaging level of the camera is determined, the printer estimates the imaging range of the camera based on this level; the imaging range usually includes the field of view of the camera, the imaging range at the minimum and maximum focal lengths, etc.; this information is crucial for determining the image area that the camera can capture, especially in applications such as 3D printing that require precise capture of the shape and size of the target object.
[0038] Optionally, in the printer example, since the camera is classified as "high-definition level", the printer knows that it has a large field of view and clear imaging ability; according to the records in the camera database, the printer estimates the imaging range of the camera at the minimum and maximum focal lengths; for example, at the minimum focal length, the camera can capture an image of the entire printing platform; while at the maximum focal length, it can only capture a small area on the printing platform but can capture more details.
[0039] The camera has multiple shooting levels, and each level corresponds to a different shooting range; in order to determine the final shooting range of the camera, the printer needs to synthesize these shooting ranges at different levels; the synthesis process involves operations such as intersection, union or other geometric operations of the shooting ranges to ensure that the obtained shooting range is both accurate and complete.
[0040] Optionally, in the example of the printer, although the camera is only divided into one "high-definition level", it is assumed that in some high-end printers, the camera has multiple shooting levels (such as "standard level", "high-definition level" and "ultra-high-definition level"); in this case, the printer needs to synthesize these shooting ranges at different levels to determine the final shooting range of the camera; for example, it will combine the field of view of the "standard level" with the imaging details of the "high-definition level" to obtain a shooting range with both a large field of view and clear imaging ability; however, in a specific example, since the camera only has one shooting level, the shooting range is the shooting range corresponding to that level.
[0041] Therefore, collecting the orientation of the camera and determining the shooting area based on the orientation of the camera, the current position of the camera and the shooting range of the camera takes into account the overall considerations of the orientation of the camera, the current position of the camera and the shooting range, ensuring the accuracy of the shooting area.
[0042] At this time, the orientation of the camera refers to the direction of the camera relative to its installation position, usually including three parameters: pitch angle, yaw angle and roll angle; the pitch angle is the angle at which the camera rotates around its horizontal axis, determining the degree to which the camera tilts up or down; the yaw angle is the angle at which the camera rotates around its vertical axis, determining the degree to which the camera rotates left or right; the roll angle is the angle at which the camera rotates around its lens axis, usually used to correct the horizontal position of the camera; the printer collects this orientation information through built-in sensors or algorithms, and this information is crucial for determining the shooting area of the camera.
[0043] Optionally, assume that a printer integrated with a high-definition camera is being used, and the camera is installed on the top of the printer to capture objects on the printing platform; the control system of the printer collects the orientation information of the camera through built-in gyroscopes or acceleration sensors; for example, assume that the current pitch angle of the camera is 30 degrees (tilted down 30 degrees), the yaw angle is 0 degrees (no left or right rotation), and the roll angle is also 0 degrees (horizontal position).
[0044] Once the orientation, current position, and shooting range information of the camera are obtained, the printer determines the shooting area of the camera through geometric calculations. The shooting area is a three-dimensional space volume that describes the spatial range that the camera can capture. This range is usually a part of a sphere or ellipsoid centered on the camera with its shooting range as the radius, and the specific shape depends on the orientation and field of view of the camera. To determine the shooting area, the printer needs to consider the pitch angle and yaw angle of the camera to adjust the spatial direction of the shooting range, and at the same time consider the current position of the camera to determine the central position of the shooting area. The roll angle usually has less impact on the shooting area, unless the camera needs to precisely correct the horizontal position.
[0045] Optionally, assume that the current position coordinates of the camera are (X: 150, Y: 200, Z: 300), that is, the camera is located at this position in the printer coordinate system. The shooting range of the camera is a cone centered on the camera with a horizontal field of view of 60 degrees and a vertical field of view of 45 degrees. Since the pitch angle of the camera is 30 degrees, the yaw angle is 0 degrees, and the roll angle is 0 degrees, the specific shape and position of the shooting area are determined through geometric calculations. The bottom of the shooting area will be an elliptical area, and its major axis and minor axis are respectively determined by the horizontal and vertical fields of view of the camera. And due to the influence of the pitch angle, this elliptical area will be inclined downward by 30 degrees relative to the printing platform. The height of the shooting area will be jointly determined by the current position Z coordinate of the camera and the height of the cone of the shooting range. Therefore, in the example, the shooting area will be an inclined elliptical space volume that covers a part of the printing platform and can capture the object images within this area.
[0046] In an embodiment of the present application, a shooting area matching table is collected, and the shooting area matching table is shown in Table 1: Table 1 Shooting Area Matching Table
[0047] Now, assume that the collected camera orientation is (30°, 0°, 0°), the current position is (150, 200, 300), and the shooting range is 60°x45°. According to the shooting area matching table, directly find the corresponding shooting area description as "inclined elliptical area, covering a part of the printing table".
[0048] Reference Figure 4 , in step S13, if the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine the target image, and the target area is determined based on the detection of the target image; In the specific implementation process of the present invention, the specific steps are as follows: S131: Monitor the shooting area in real time. When an external object enters the shooting area, determine the initial image based on the initial shooting of the external object by the camera, and determine a partial monochromatic aperture area according to the detection of the initial image; S132: Determine the turning information of the external object according to the endpoint positions of the partial monochromatic aperture area and the orientation of the external object relative to the camera, and trigger the turning of the external object according to the turning information of the external object, so that the entire monochromatic aperture area is within the shooting area; S133: The camera shoots the external object again, and shoots the surface of the external object where there is a monochromatic aperture area to output a corresponding target image; determine the monochromatic aperture area according to the monochromatic detection of the target image, and use the area surrounded by the monochromatic aperture area as the target area.
[0049] In the embodiment of the present application, the shooting area is monitored in real time. When an external object enters the shooting area, the initial image is determined based on the initial shooting of the external object by the camera, and a partial monochromatic aperture area is determined according to the detection of the initial image, and a partial monochromatic aperture area is introduced.
[0050] At this time, the system continuously monitors the shooting area of the camera, which usually involves the real-time capture and processing of the video stream; the camera is configured to capture images of a specific area, and the system is responsible for analyzing these images to detect whether an external object enters the area; real-time monitoring ensures that the system can quickly respond to changes in external objects, so as to perform subsequent image processing and recognition. Optionally, real-time monitoring is achieved by using a video capture card, camera driver, and image processing library (such as OpenCV); the system captures the image frames of the camera regularly or continuously and stores them in memory for subsequent processing.
[0051] When the system detects that an external object enters the shooting area of the camera, it immediately captures an image of the object, which is called the initial image; the capture of the initial image is usually based on the crossing of the object and the boundary of the shooting area or the significant change of the object in the image; once the initial image is captured, the system will process it to extract useful information. Optionally, the entry of the external object is detected by background subtraction, motion detection, or object recognition algorithms; when an object is detected, the system immediately captures a frame from the video stream of the camera as the initial image.
[0052] After capturing the initial image, the system performs image processing on it to detect the monochromatic aperture region; the monochromatic aperture region refers to a specific region in the image with consistent color and clear boundaries, which is usually used to identify or highlight a certain part of an object; the system uses a color detection algorithm to identify the monochromatic regions in the image and determine their boundaries and positions. Optionally, color space conversion (such as from RGB to HSV) is used to separate color components; then, thresholding is performed to identify monochromatic regions with specific color ranges; finally, a contour detection algorithm (such as Canny edge detection) is used to determine the boundaries of the monochromatic regions.
[0053] Furthermore, based on the endpoint positions of the monochromatic aperture region of the part and the orientation of the external object relative to the camera, the turning information of the external object is determined, and the turning of the external object is triggered according to the turning information of the external object, so that the entire monochromatic aperture region is within the shooting area, taking into account the endpoint positions of the monochromatic aperture region of the ABC part and the orientation of the external object relative to the camera as a whole, ensuring the accuracy of the turning information of the external object.
[0054] At this time, in step S131, the monochromatic aperture region has been determined through image processing; in this step, it is necessary to further determine the endpoint positions of this monochromatic aperture region, that is, its uppermost and lowermost (or leftmost and rightmost, depending on the direction of the aperture) boundary points in the image; these endpoint positions will be used for subsequent calculation of the turning information of the external object. Optionally, the boundaries of the monochromatic aperture region are obtained through a contour detection algorithm (such as using the findContours function after Canny edge detection); then, the endpoint positions are determined by traversing the boundary points or using other geometric algorithms.
[0055] To determine the turning information of the external object, it is necessary to know the orientation of the object relative to the camera; this is achieved by analyzing the shape, texture, or feature points of the object, but in this scenario, it is assumed that there is an additional sensor (such as a gyroscope or accelerometer) providing the orientation information of the object; if there is no such sensor, attempts are also made to estimate the orientation through other clues in the image (such as the shadow of the object, background information, etc.).
[0056] Optionally, if a sensor is used, directly read the orientation information it provides; if the orientation is estimated through image analysis, more complex computer vision algorithms such as feature matching and shape analysis need to be used.
[0057] After obtaining the endpoint positions of the monochromatic aperture region and the orientation information of the object, calculate the angle or direction by which the object needs to turn so that the entire monochromatic aperture region is within the shooting area; this usually involves some geometric calculations, such as calculating the relative positions of the endpoint positions and the boundaries of the shooting area, and determining the turning direction based on the orientation information; optionally, determine the turning angle by calculating the angle between the line connecting the endpoint position and the center of the shooting area and the line of sight of the camera; then, based on the orientation information of the object, determine whether to turn the object to the left or right (or up or down).
[0058] Once the turning information is determined, the system needs to trigger the turning operation of the external object; this is achieved by sending control signals to the driving system of the object (such as motors, servos, etc.); the turning operation needs to last for a period of time until the object is adjusted to the correct position; optionally, use a communication protocol (such as serial communication, network communication, etc.) to send the turning information to the control system of the object; after receiving the signal, the control system will start the corresponding driving mechanism to perform the turning operation.
[0059] Therefore, the camera takes another picture of the external object and captures the surface of the external object where the monochromatic aperture region exists to output the corresponding target image; determine the monochromatic aperture region based on the monochromatic detection of the target image, and take the region surrounded by the monochromatic aperture region as the target region, ensuring the accuracy of the target region, ensuring the detection of the monochromatic aperture region in the target image, and further ensuring the accuracy of the target region.
[0060] At this time, in step S132, the position of the object has been adjusted according to the endpoint positions of the monochromatic aperture region and the orientation information of the object, so that the entire monochromatic aperture region is within the shooting area of the camera; next, the camera will take another picture of the external object after adjusting its position; optionally, the camera captures a new image frame, which usually involves the real-time capture and processing of the video stream; the system ensures that the picture is taken after the position of the object is stable to avoid blurring or ghosting.
[0061] In the image taken again, the system needs to ensure that the surface of the object containing the monochromatic aperture region is captured; this usually means that the camera needs to focus on this region and ensure its clarity; optionally, the system uses the autofocus function or a preset focal length to ensure the clarity of the monochromatic aperture region; in addition, analyze the contrast or edge sharpness in the image to verify whether the required surface has been successfully captured.
[0062] Once a clear image containing a monochromatic aperture region is captured, the system saves or transmits it as the target image; this image will be used for subsequent monochromatic detection and target area determination; optionally, the target image is saved as a file (such as JPEG, PNG, etc.) or stored in memory for subsequent processing; the system also provides a user interface or API to access and view these images.
[0063] In the target image, the system needs to use the same or similar monochromatic detection algorithm as in step S131 to determine the monochromatic aperture region; this step is to verify and adjust the position and size of the monochromatic aperture region obtained in step S132; optionally, algorithms such as color space conversion, threshold processing, and contour detection are used to determine the monochromatic aperture region in the target image; these algorithms need to be adjusted and optimized according to the actual image conditions and the characteristics of the monochromatic aperture.
[0064] Once the monochromatic aperture region is determined, the system regards the region surrounded by it as the target region; this target region contains important information or features and is needed for subsequent identification, analysis, or processing tasks; optionally, the system determines the region surrounded by the monochromatic aperture region by calculating its boundary; this is done by using morphological operations (such as dilation, erosion, etc.) to expand or contract the boundary of the monochromatic aperture region, thereby precisely defining the target region; then, the system crops the target region from the original image or performs other processing.
[0065] Reference Figure 5 , in step S14, in the color printing of the printer, multiple color regions are determined according to the target region, and the color difference range of the target region is determined based on the comparison of the color coefficients of the multiple color regions; In the specific implementation process of the present invention, the specific steps are as follows: S141: The printer performs color printing on the target region corresponding to the external object. At this time, the target region is collected, and the color difference boundary line is determined according to the traversal of the target region. The color difference boundary line is between two adjacent regions of different colors; S142: Multiple color regions are determined according to the segmentation of the target region by the color difference boundary line, and color detection is performed on the multiple color regions to output the corresponding color coefficients; S143: The multiple color regions are sorted in sequence. The maximum and minimum values of the color coefficients are determined based on the comparison of the color coefficients of the multiple color regions, and the color difference range of the target region is determined according to the maximum and minimum values of the color coefficients.
[0066] In an embodiment of the present application, the printer performs color printing with respect to a target area corresponding to an external object. At this time, the target area is collected, and a color difference boundary line is determined according to the traversal of the target area. The color difference boundary line is between two adjacent areas of different colors. The introduction of the color difference boundary line facilitates further control of the color difference boundary line.
[0067] At this time, the printer performs color printing on the target area of the external object according to a preset color pattern or instruction; this target area is a specific part of the object surface that has been determined previously through image processing or other methods; optionally, the printer sprays ink or pigment onto the target area through a nozzle to form a preset color pattern; this process involves precise movement of the nozzle, control of the ink ejection volume, and mixing of colors, etc.
[0068] After printing is completed, the system needs to collect an image of the target area for subsequent determination of the color difference boundary line; this collection process involves using a camera or other image collection devices; optionally, the camera is placed at an appropriate position to ensure that the target area can be clearly photographed; the system also needs to adjust parameters such as the focal length and exposure of the camera to obtain the best image quality.
[0069] After collecting the image of the target area, the system needs to traverse the entire image to determine the color difference boundary line by comparing the color differences of adjacent pixels; the color difference boundary line is the dividing line between two adjacent areas of different colors; optionally, the system uses image processing algorithms such as edge detection and color space conversion to identify color changes in the image; these algorithms can capture subtle differences in color changes and draw the color difference boundary line. The determination of the color difference boundary line involves threshold setting; the system will judge whether the color difference is large enough to form a color difference boundary line according to a preset threshold; the setting of the threshold needs to be adjusted according to the actual printing quality and color requirements.
[0070] Furthermore, multiple color areas are determined according to the segmentation of the target area by the color difference boundary line, and color detection is performed on the multiple color areas to output corresponding color coefficients, and the color coefficients of the multiple color areas are introduced.
[0071] At this time, the system uses the color difference boundary line determined in step S141 to divide the target area into multiple independent color areas; these color areas are surrounded by the color difference boundary line, the color within each area is relatively uniform, and there are significant differences in color between adjacent areas; optionally, the system uses image processing algorithms such as region growing and flood filling to segment the target area according to the color difference boundary line; these algorithms can start from the color difference boundary line and gradually expand or fill the color area until another color difference boundary line or the image boundary is encountered.
[0072] After dividing into multiple color regions, the system needs to perform color detection on each region to determine its main color components; this process involves color space conversion, color statistics, etc.; optionally, the system calculates statistical information such as the average color value and color histogram within each color region to reflect the main color characteristics of the region; in addition, the system also converts the color regions to different color spaces (such as RGB, HSV, Lab, etc.) for more accurate color analysis and comparison. At the same time, the results of color detection are usually output in the form of color coefficients; color coefficients are specific color values (such as RGB coordinates), coordinate values in the color space (such as hue, saturation, and lightness in HSV), or other numerical values that can describe color characteristics.
[0073] Specifically, assume there is a printer system that is detecting a piece of paper printed with a color test pattern; in step S141, the system has determined the color difference boundary line and divided the target area (i.e., the area of the paper printed with the test pattern) into multiple color regions; for example, there is a red circular region, a green rectangular region, and a blue triangular region on the paper, separated by the color difference boundary line; the system performs color detection on each divided color region; for the red circular region, the system calculates its average RGB color value as (255, 0, 0); for the green rectangular region, the average RGB color value is (0, 255, 0); for the blue triangular region, the average RGB color value is (0, 0, 255); in addition, the system also converts these color regions to the HSV color space and calculates the hue, saturation, and lightness values of each region; for example, the HSV value of the red region is (0°, 100%, 100%); the HSV value of the green region is (120°, 100%, 100%); the HSV value of the blue region is (240°, 100%, 100%); finally, the system outputs the color detection results of each color region in the form of color coefficients; for example, for the red circular region, the output color coefficient is RGB(255, 0, 0) or HSV(0°, 100%, 100%); for the green rectangular region and the blue triangular region, the corresponding color coefficients are also output; through this process, the system can accurately divide multiple color regions in the target area and perform color detection on each region to output the corresponding color coefficients; this helps to automatically evaluate the printing quality and ensure the accuracy and consistency of the printing results.
[0074] Therefore, sorting multiple color regions in sequence, determining the maximum and minimum values of the color coefficients based on the comparison of the color coefficients of multiple color regions, and determining the color difference range of the target area according to the maximum and minimum values of the color coefficients takes into account the overall consideration of the maximum and minimum values of the color coefficients and ensures the accuracy of the color difference range of the target area.
[0075] At this time, multiple color regions in the image or visual input are arranged in a certain order for subsequent analysis and comparison; optionally, the sorting is based on the area of the color region, a certain dimension of the color coefficient (such as brightness, saturation, hue, etc.), or according to other relevant features; the sorting algorithm is a simple ascending or descending order, or a more complex sorting logic, such as weighted sorting based on multiple features; an ordered list of color regions is output, and each color region is arranged in the specified order.
[0076] In the sorted color regions, find the maximum and minimum values of the color coefficient, which will be used to determine the color difference range of the target region subsequently; optionally, for each color region, calculate the specific value of its color coefficient (this involves the combination of one or more color features); then, find the maximum and minimum values among these values; if the color coefficient is multi-dimensional (such as including multiple components like brightness, saturation, hue, etc.), then each component needs to be processed separately first, and then the overall maximum and minimum values are obtained comprehensively; output the maximum and minimum values of the color coefficient, which reflect the extreme performance of the color region in terms of color features.
[0077] Use the maximum and minimum values of the color coefficient to define a color difference range, which will be used to evaluate the difference between the target region and the reference color or standard color; optionally, the color difference range is determined by calculating the difference between the maximum and minimum values, or is calculated based on a certain color difference formula (such as ΔE).
[0078] Specifically, assume there is an image containing three colors: red, green, and blue, and it is necessary to determine the color difference range between these color regions; first, identify the red, green, and blue color regions in the image; then, sort them based on the brightness of the color regions; assume the red region has the highest brightness, the green region is the second, and the blue region is the lowest; therefore, the sorted list of color regions is: red, green, blue; calculate the brightness value of each color region as the color coefficient; the brightness value of the red region is 250 (assuming the brightness value range is between 0 - 255); the brightness value of the green region is 180; the brightness value of the blue region is 100; therefore, the maximum value of the brightness coefficient is 250, and the minimum value is 100.
[0079] Calculate the difference between the maximum and minimum values of the brightness coefficient to determine the color difference range; the color difference range is 250 - 100 = 150; this means that in terms of the brightness feature, the acceptable change interval between color regions is 150 units.
[0080] In an embodiment of the present application, a color difference level matching table is collected for mapping the color coefficient to a specific color difference level: the color difference level matching table is shown in Table II: Table 2 Shooting Area Matching Table
[0081] According to the color coefficient, it is determined that: Area C: high; Area E: medium-high; Area A: medium-high; Area D: medium; Area B: medium; the color difference level range of the target area is from "medium" to "high".
[0082] Reference Figure 6 , in step S15, according to the area size of each color area, the color difference range of the target area, and the color printing level of the printer, determine the color printing mode of the printer; In the specific implementation process of the present invention, the specific steps are as follows: S151: Collect each color area, perform size detection on each color area, and determine the area size of each color area; mark the corresponding area size and color coefficient in each color area; S152: Determine the color printing database of the printer based on the performance detection of the printer, and determine the color printing level of the printer according to the traversal of the color printing database of the printer; S153: Determine the first color printing parameter according to the color printing level of the printer and the area size of each color area, determine the second color printing parameter according to the color printing level of the printer and the color difference range of the target area, and determine the color printing mode of the printer based on the first color printing parameter, the second color printing parameter, and the printing mode matching table of the printer.
[0083] In the embodiment of the present application, each color area is collected, size detection is performed on each color area, and the area size of each color area is determined; the corresponding area size and color coefficient are marked in each color area, and the corresponding area size and color coefficient are introduced.
[0084] At this time, each color area is accurately identified and separated from the image or visual input; optionally, image segmentation techniques such as threshold segmentation, edge detection, region growing, or clustering algorithms are usually used; these techniques divide the image into different regions based on features such as color, brightness, and texture; a series of segmented color areas are obtained, and each area contains a set of pixels that are relatively consistent in color characteristics.
[0085] Measure the geometric size of each color area, such as area, perimeter, aspect ratio, etc.; optionally, for a two-dimensional image, pixel counting is used to calculate the area, and the perimeter is calculated by traversing the area boundary; the aspect ratio is obtained by calculating the length and width of the minimum bounding rectangle of the area; output the size information of each color area, which is usually represented in numerical form and is associated with the identifier of the color area.
[0086] Integrate the size information of the color regions and the previously calculated color coefficients (such as brightness, saturation, hue, etc.), and create a tag for each color region that contains this information; Optionally, associate the size information and color coefficients with the identifier of the color region, and use a data structure (such as a dictionary, list, or object) to store this information; The tagging process involves drawing visual indicators such as bounding boxes, labels, or color bars on the image; Each color region is tagged with its size and color coefficients, and this information is used for subsequent analysis, processing, or visualization.
[0087] Furthermore, determine the color printing database of the printer based on the performance detection of the printer, and determine the color printing level of the printer according to the traversal of the color printing database of the printer. Considering the overall traversal of the color printing database of the printer, it ensures the accuracy of the color printing level of the printer.
[0088] At this time, through a series of performance detections, collect the color printing ability data of the printer for establishing a color printing database; Optionally, color accuracy test: Use a standard color card or color test pattern, print and measure the difference between the colors output by the printer and the standard colors to evaluate color accuracy; Gamut coverage test: Print a gamut map and observe the color range that the printer can cover, and compare it with the standard gamut (such as sRGB, Adobe RGB, CMYK, etc.); Resolution test: Print a high-resolution test pattern to evaluate the printing clarity of the printer; Gray balance and color transition test: Print a gray scale ladder and color transition pattern to check the gray balance and color smooth transition ability of the printer; According to the test results, establish the color printing database of the printer, including color accuracy data, gamut coverage data, resolution data, etc.
[0089] Based on the data in the color printing database, evaluate the color printing ability of the printer and assign a color printing level to it; Optionally, normalize the data in the color printing database to a unified scale for comparison; According to the requirements of the application scenario, assign different weights to indicators such as color accuracy, gamut coverage, and resolution; According to the weights and the normalized data, calculate the comprehensive score of the printer; According to the comprehensive score, divide the printer into different color printing levels, such as "advanced", "intermediate", or "basic level", and output the color printing level of the printer, which reflects the comprehensive ability of the printer in color printing.
[0090] Specifically, assume there is an inkjet printer and we want to determine its color printing level. A series of performance tests are conducted, including color accuracy test, gamut coverage test, resolution test, and gray balance and color transition test. Through these tests, color accuracy data (such as ΔE value), gamut coverage data (such as sRGB coverage percentage), resolution data (such as DPI value), etc. of the printer are collected. These data are organized into a color printing database of the printer.
[0091] The data in the color printing database are normalized to a scale of 0 - 1. According to the requirements of the application scenario, different weights are assigned to color accuracy, gamut coverage, and resolution. For example, color accuracy is 0.5, gamut coverage is 0.3, and resolution is 0.2. Based on the weights and the normalized data, the comprehensive score of the printer is calculated. Assuming the range of the comprehensive score is 0 - 1, the score is divided into three levels: "Advanced" (0.8 - 1.0), "Intermediate" (0.5 - 0.79), and "Basic" (0 - 0.49). According to the comprehensive score, the color printing level of this inkjet printer is determined to be "Intermediate".
[0092] Therefore, the first color printing parameter is determined according to the color printing level of the printer and the area size of each color area, the second color printing parameter is determined according to the color printing level of the printer and the color difference range of the target area, and the color printing mode of the printer is determined based on the first color printing parameter, the second color printing parameter, and the printing mode matching table of the printer. Considering the overall situation of the first color printing parameter, the second color printing parameter, and the printing mode matching table of the printer, the accuracy of the color printing mode of the printer is ensured. At the same time, considering the overall situation of the area size of each color area, the color difference range of the target area, and the color printing level of the printer, the accuracy of the color printing mode of the printer is ensured.
[0093] At this time, combining the color printing level of the printer and the size information of the color area, the preliminary parameters affecting printing quality and efficiency are determined. Optionally, high - level printers support higher resolutions, richer color levels, and more refined color management, while low - level printers are limited in these aspects. Larger color areas require more ink or toner to ensure uniform coverage, while smaller areas require higher precision to avoid blurring or overflow, and the first color printing parameter is output. The first color printing parameter includes ink / toner usage, printing speed, resolution adjustment, etc., aiming to optimize printing quality and efficiency.
[0094] For the second color printing parameter, determine the second color printing parameter according to the color printing level of the printer and the color difference range of the target area; at this time, combine the color printing level of the printer and the color difference requirement of the target area to determine the parameter for further adjusting the printing color accuracy; optionally, a high-level printer has a wider color gamut and more accurate color reproduction ability, and can better meet strict color difference requirements; the color difference range of the target area defines the acceptable degree of color deviation; a smaller color difference range requires higher color accuracy, and more refined color correction algorithms or additional color management steps need to be adopted to output the second color printing parameter, which involves color correction curves, gamut mapping strategies, color management configurations, etc., aiming to ensure the color consistency between the print output and the target area.
[0095] Combine the first color printing parameter, the second color printing parameter determined in the previous two steps, and the print mode matching table of the printer to select the most suitable color printing mode for the current printing task; at this time, integrate the first color printing parameter and the second color printing parameter to form a comprehensive set of printing parameters; the print mode matching table is a preset lookup table or algorithm that matches the most suitable print mode according to the set of printing parameters (such as ink / toner usage, printing speed, resolution, color accuracy requirements, etc.); according to the matching result, select an optimal mode from the available print modes of the printer; output the color printing mode of the printer, and this color printing mode will guide the printer on how to execute the current printing task to ensure that the printing quality and efficiency meet the requirements.
[0096] Specifically, suppose there is an intermediate color inkjet printer that needs to print an image containing multiple color areas, and some of these areas have strict requirements for color accuracy; determine the first color printing parameter. Considering that the color printing level of the printer is intermediate, set a moderate resolution (such as 300 DPI) and ink usage to ensure a balance between printing quality and efficiency; for large-sized color areas, increase the ink usage to ensure uniform coverage; for small-sized areas, maintain a high resolution to avoid blurring.
[0097] Considering that the color difference range of the target area is small (e.g., ΔE < 2), a more refined color correction algorithm is adopted, and the gamut mapping strategy is adjusted to ensure color accuracy; the color management settings of the printer are also configured to match the color space of the target area; at the same time, the first color printing parameters and the second color printing parameters are integrated to form a comprehensive set of printing parameters; using the printing mode matching table of the printer, a color printing mode most suitable for the current printing task is found, which combines a moderate resolution, precise color correction and gamut mapping strategy, and optimized ink usage; finally, the "high-quality color correction mode" of the printer is selected as the color printing mode to ensure that the print output meets the requirements of color accuracy and quality.
[0098] Please refer to Figure 7 , Figure 7 which is a schematic structural diagram of the printing system in the area selected by the monochromatic light in the embodiment of the present invention; the printing system in the area selected by the monochromatic light includes: A monochromatic lamp module 21, configured to be arranged on the monochromatic lamp of the printer to irradiate an external object, and present a corresponding monochromatic aperture area on the surface of the external object; A shooting area module 22, configured to determine a shooting area according to the current position of the camera of the printer and the shooting range of the camera; A target area module 23, configured to, if the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine a target image, and determine a target area based on the detection of the target image; A color difference module 24, configured to, in the color printing of the printer, determine a plurality of color areas according to the target area, and determine the color difference range of the target area according to the comparison of the color coefficients of the plurality of color areas; A color printing module 25, configured to determine the color printing mode of the printer according to the area size of each color area, the color difference range of the target area, and the color printing level of the printer.
[0099] Arbitrary combinations of the technical features of the above embodiments are made. For the sake of brevity of description, not all combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
Claims
1. A method for printing an area selected by monochromatic light, characterized in that: include: A monochromatic lamp configured in the printer illuminates the external object and presents a corresponding monochromatic aperture area on the surface of the external object; Determine the shooting area according to the current position of the camera of the printer and the shooting range of the camera; If the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine the target image, and determines the target area based on the detection of the target image; In color printing of the printer, multiple color areas are determined according to the target area, and the color difference range of the target area is determined according to the comparison of color coefficients of the multiple color areas; The color printing mode of the printer is determined according to the area size of each color area, the color difference range of the target area and the color printing level of the printer.
2. The method for printing a region selected by monochromatic light according to claim 1, characterized in that: The monochromatic lamp configured in the printer illuminates the external object and presents a corresponding monochromatic aperture area on the surface of the external object, including: The printer is equipped with a monochromatic lamp, which is powered by the printer's internal power supply and outputs monochromatic light to the outside. When an external object is within the irradiation range of the monochromatic lamp, the light output by the monochromatic lamp appears on the surface of the external object. Based on the color detection of the surface of the external object, multiple line segments of the same color are determined, and the corresponding monochromatic aperture area is determined based on the synthesis of the multiple line segments of the same color. At this time, the monochromatic aperture area is a continuous annular area, and the color presented by the monochromatic aperture area is different from the color of the surface of the external object.
3. The method for printing a region selected by monochromatic light according to claim 1, characterized in that: Determining the shooting area according to the current position of the camera of the printer and the shooting range of the camera includes: The printer is equipped with a camera, which is powered by the internal power supply of the printer. A corresponding coordinate system is constructed based on the printer, and the position coordinates of the camera are determined according to the coordinate system and the spatial position of the camera relative to the printer. The position coordinates of the camera present the current position of the camera. Collect the camera model, determine multiple camera levels of the camera according to the camera model and the camera database, determine the corresponding camera range according to the detection of the multiple camera levels, and determine the camera shooting range according to the synthesis of the camera ranges of the multiple camera levels; The direction of the camera is collected, and the shooting area is determined according to the direction of the camera, the current position of the camera, and the shooting range of the camera.
4. The method for printing a region selected by monochromatic light according to claim 1, characterized in that: If the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine the target image, and the target area is determined based on the detection of the target image, including: Real-time monitoring of the shooting area, when an external object enters the shooting area, a primary image is determined based on the initial shooting of the external object by the camera, and a partial monochrome aperture area is determined based on the detection of the primary image; The turning information of the external object is determined according to the endpoint position of the partial monochromatic aperture area and the orientation of the external object relative to the camera, and the turning of the external object is triggered according to the turning information of the external object, so that the entire monochromatic aperture area is within the shooting area.
5. The method for printing a region selected by monochromatic light according to claim 4, characterized in that: If the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine the target image, and the target area is determined based on the detection of the target image, further comprising: The camera takes another photo of the external object and the surface of the external object where the monochrome aperture area exists to output a corresponding target image; the monochrome aperture area is determined according to the monochrome detection of the target image, and the area surrounded by the monochrome aperture area is used as the target area.
6. The method for printing a region selected by monochromatic light according to claim 5, characterized in that: In the color printing of the printer, a plurality of color areas are determined according to a target area, and a color difference range of the target area is determined according to a comparison of color coefficients of the plurality of color areas, including: The printer performs color printing relative to the target area corresponding to the external object. At this time, the target area is collected, and a color difference boundary line is determined according to the traversal of the target area. The color difference boundary line is between two adjacent areas of different colors.
7. The method for printing a region selected by monochromatic light according to claim 6, characterized in that: In the color printing of the printer, a plurality of color areas are determined according to the target area, and the color difference range of the target area is determined according to the comparison of the color coefficients of the plurality of color areas, and further includes: Determine a plurality of color regions according to the segmentation of the target region by the color difference boundary line, and perform color detection on the plurality of color regions to output corresponding color coefficients; The plurality of color regions are sequentially sorted, the maximum and minimum values of the color coefficients are determined based on the comparison of the color coefficients of the plurality of color regions, and the color difference range of the target region is determined according to the maximum and minimum values of the color coefficients.
8. The method for printing a region selected by monochromatic light according to claim 1, characterized in that: Determining the color printing mode of the printer according to the area size of each color area, the color difference range of the target area and the color printing level of the printer includes: Collect each color area, perform size detection on each color area, and determine the area size of each color area; mark the corresponding area size and color coefficient in each color area; The color printing database of the printer is determined based on the performance detection of the printer, and the color printing level of the printer is determined according to the traversal of the color printing database of the printer.
9. The method for printing a region selected by monochromatic light according to claim 8, characterized in that: The method of determining the color printing mode of the printer according to the area size of each color area, the color difference range of the target area and the color printing level of the printer also includes: The first color printing parameter is determined according to the color printing level of the printer and the area size of each color area, the second color printing parameter is determined according to the color printing level of the printer and the color difference range of the target area, and the color printing mode of the printer is determined based on the first color printing parameter, the second color printing parameter and the printing mode matching table of the printer.
10. A system for printing a selected area of monochromatic light, characterized in that: The printing system for the area selected by the monochromatic light is applied to the printing method for the area selected by the monochromatic light as claimed in any one of claims 1 to 9, and the printing system for the area selected by the monochromatic light comprises: A monochrome lamp module, configured to illuminate an external object with a monochrome lamp of the printer, and present a corresponding monochrome aperture area on the surface of the external object; A shooting area module, used to determine a shooting area according to the current position of the camera of the printer and the shooting range of the camera; A target area module, which is used for, if the external object and the monochromatic aperture area are within the shooting area, the camera shoots the surface of the external object where the monochromatic aperture area exists to determine the target image, and determines the target area based on the detection of the target image; A color difference module is used to determine multiple color areas according to a target area during color printing of the printer, and to determine a color difference range of the target area according to a comparison of color coefficients of the multiple color areas; The color printing module is used to determine the color printing mode of the printer according to the area size of each color area, the color difference range of the target area and the color printing level of the printer.
Citation Information
Patent Citations
Plate digital printing system
CN110126481A
Illumination for additive manufacturing
CN114474725A
Low-color-difference invisible printing process and glass thereof
CN117227340A