Printing method and system for a selected area of monochromatic light
By using monochrome lights and camera technology on the printer, the problem of difficulty in distinguishing the target area from the background in the prior art is solved, and the precise detection of the target area and the accuracy of the color printing mode is achieved.
Patent Information
- Application Number
- CN202510544147.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-06-27
- 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 external object is irradiated by a monochrome lamp arranged on the printer, a monochromatic aperture area is formed, and the area is photographed using a camera to determine the target image, and the target area is determined based on the detection of the target image. In color printing, 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.
Accurate detection and distinction of the target area is achieved, the accuracy of the color printing mode is ensured, and compatible with the overall considerations of the area size of each color area, the color difference range of the target area and the printer's color printing level.
Smart Images

Figure CN120056623B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printing methods for printers, and particularly 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 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, and 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 above-mentioned printing method for a selected area of monochromatic light. The printing system for a selected area of monochromatic light includes:
[0006] 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;
[0007] 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;
[0008] 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;
[0009] The color difference module is used to determine multiple color regions according to the target region during color printing of a printer, and determine the color difference range of the target region based on the comparison of the color coefficients of the multiple color regions;
[0010] The color printing module 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.
[0011] Compared with the prior art, the beneficial effects of the present invention are:
[0012] In the embodiment of the present invention, by the method in the embodiment of the present invention, the 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; the 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 the target image, and the 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.
[0013] Therefore, during 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; 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 consideration 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a schematic flowchart of the printing method for the region selected by the monochromatic light in the embodiment of the present invention;
[0015] Figure 2 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;
[0016] Figure 3 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;
[0017] Figure 4 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;
[0018] Figure 5It is a schematic flowchart of step S14 in the printing method for the selected area of monochromatic light in an embodiment of the present invention;
[0019] Figure 6 It is a schematic flowchart of step S15 in the printing method for the selected area of monochromatic light in an embodiment of the present invention;
[0020] Figure 7 It is a schematic diagram of the structural composition of the printing system for the selected area of monochromatic light in an embodiment of the present invention. Detailed implementation manners
[0021] 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.
[0022] Please refer to Figures 1 to 7 , a printing method for the selected area of monochromatic light includes:
[0023] Step S11: The monochromatic lamp configured in the printer irradiates an external object, and a corresponding monochromatic light circle area is presented on the surface of the external object;
[0024] Step S12: Determine the shooting area according to the current position of the camera of the printer and the shooting range of the camera;
[0025] Step S13: If the external object and the monochromatic light circle area are within the shooting area, the camera shoots the surface of the external object where the monochromatic light circle area exists to determine the target image, and determines the target area based on the detection of the target image;
[0026] 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;
[0027] 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;
[0028] Refer to Figure 2 , in step S11, the monochromatic lamp configured in the printer irradiates an external object, and a corresponding monochromatic light circle area is presented on the surface of the external object;
[0029] In the specific implementation process of the present invention, the specific steps are as follows:
[0030] S111: The printer is configured with a monochromatic lamp, and the monochromatic lamp 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 lamp, the light output by the monochromatic lamp is presented on the surface of the external object;
[0031] S112: Determine multiple line segments of the same color based on the color detection of the surface of an external object, and determine the corresponding monochromatic aperture region based on the combination of the multiple line segments of the same color. At this time, the monochromatic aperture region is a continuous annular region, and the color presented by the monochromatic aperture region is different from the color of the surface of the external object.
[0032] In an embodiment 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 externally. When the external object is within the illumination 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.
[0033] 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 light is precisely installed at a specific position of the printer to ensure that the light emitted by it can evenly illuminate the surface of the external object; the monochromatic light is usually connected to the control circuit board of the printer and receives instructions from the printer to control the switch and brightness; optionally, assume that 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 aperture on the surface of the artwork.
[0034] 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 a transformer, a rectifier, a filter, and a voltage regulator 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 power cord of the printer; when the printer is turned on, the power supply system starts to work and provides stable 12V DC power for the monochromatic LED light.
[0035] 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 drive 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 aperture, which is convenient for camera positioning and image recognition in subsequent steps.
[0036] 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 to the object; to obtain the best illumination effect, it is usually necessary to set appropriate reflectors or lenses inside the printer to focus and adjust the light; optionally, in the case of a printer, when the monochromatic LED light is on, the blue light it emits completely covers the surface of the artwork, forming a clear blue light ring.
[0037] Further, multiple line segments of the same color are determined based on the color detection of the surface of the external object, and the corresponding monochromatic light ring area is determined based on the synthesis of the multiple line segments of the same color. At this time, the monochromatic light ring area is a coherent annular area, and the color presented by the monochromatic light ring area is different from the color of the surface of the external object, and the monochromatic light ring area is introduced.
[0038] At this time, use the integrated camera or color sensor of the printer to scan or photograph the surface of the external object; analyze the captured image through an image processing algorithm to identify the line segments that are different from the color of the surface of the external object; these line segments are usually the edges or contours formed after the monochromatic light irradiates the surface of the object; the identified line segments need to have the same color characteristics, which is usually achieved through the conversion of the color space and the setting of the color threshold.
[0039] Optionally, assume that an inkjet printer capable of printing photos is being used and a color photo needs to be partially colored; above the photo, a red monochromatic light is configured; when the monochromatic light is on and irradiates the photo, the irradiated part of the photo will show a red contour; the integrated camera of the printer captures this photo and identifies all the red line segments through an image processing algorithm, and these line segments represent the area of the photo irradiated by the monochromatic light.
[0040] Perform a synthesis process on the identified multiple line segments of the same color to form a coherent area; this area is usually an annular or approximately annular area, which represents the complete light ring formed by the monochromatic light on the surface of the object; the synthesis process involves algorithms such as line segment connection, smoothing processing, and edge detection to ensure that the formed area is accurate and coherent; the formed monochromatic light ring area should have an obvious difference from the color of the surface of the external object for subsequent image processing and printing operations.
[0041] Optionally, the printer performs a synthesis process on the identified red line segments through an image processing algorithm to form a coherent red light ring area; this area precisely covers the part of the photo that needs to be colored and forms an obvious contrast with the background color of the external photo.
[0042] The finally formed monochromatic aperture region should be a continuous circular or approximately circular region, which should completely enclose a certain part or feature of the external object; the color of the monochromatic aperture region should have an obvious difference from the surface color of the external object, and this difference is usually achieved by comparing the color of the monochromatic light with 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 to be printed or processed.
[0043] Optionally, in the example of photo coloring, the finally formed red aperture region is a continuous circular region, which precisely covers the part of the photo that needs to be colored; since there is an obvious difference between the red aperture region and the background color of the photo (such as blue, green or white, etc.), the printer can easily identify the target area to be colored and perform precise printing processing on it.
[0044] Reference Figure 3 , in step S12, determine the shooting area according to the current position of the camera of the printer and the shooting range of the camera;
[0045] In the specific implementation process of the present invention, the specific steps are as follows:
[0046] S121: The printer is equipped with a camera, and the camera is powered by the internal power supply of the printer. Based on the printer, a corresponding coordinate system is constructed. According to this coordinate system and the spatial position of the camera relative to the printer, the position coordinates of the camera are determined, and the position coordinates of this camera represent the current position of the camera;
[0047] S122: Collect the model of the camera, determine multiple shooting levels of the camera according to the model of the camera and the shooting database, and determine the corresponding shooting range according to the detection of multiple shooting levels. Determine the shooting range of the camera according to the synthesis of the shooting ranges of multiple shooting levels;
[0048] S123: Collect the orientation of the camera, and determine the shooting area according to the orientation of the camera, the current position of the camera, and the shooting range of the camera;
[0049] 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. Based on the printer, a corresponding coordinate system is constructed. According to this coordinate system and the spatial position of the camera relative to the printer, the position coordinates of the camera are determined, and 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.
[0050] 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, which 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 on / off of the camera and the adjustment of the focal length.
[0051] Specifically, assume that a printer is in use, and this printer is configured 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.
[0052] 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.
[0053] Optionally, in the above example of the 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 stable 24V DC power for the camera module; the power management circuit inside the camera module converts this voltage into 5V DC power required by the camera sensor.
[0054] During the design and manufacturing process of the printer, a three-dimensional coordinate system is constructed. This coordinate system takes a 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 position relationship between 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.
[0055] Optionally, in the example of the printer, assume 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 upward; this coordinate system is used to precisely describe the position of any point on the printing platform and the relative position relationship between the camera and the printing platform.
[0056] The position coordinates of the camera are determined by measuring the distances of the camera relative to the origin of the printer coordinate system in various directions; this process involves physical measurements using measuring tools (such as laser rangefinders, vernier calipers, etc.) or image processing and calculations using machine vision algorithms; 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.
[0057] Optionally, in the example of a printer, assume that through physical measurement, the distance of the camera relative to the origin of the printer coordinate system on the X-axis is 150 mm, on the Y-axis is 200 mm, and on the Z-axis is 300 mm; 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.
[0058] Furthermore, the model of the camera is collected, multiple camera levels of the camera are determined according to the model of the camera and the camera database, the corresponding camera ranges are determined according to the detection of the multiple camera levels, the shooting range of the camera is determined according to the synthesis of the camera ranges of the multiple camera levels, 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.
[0059] 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 information on the label, barcode or chip on the camera module; the model information contains key data such as the manufacturer, model name, serial number of the camera, etc., and this information is crucial for subsequent determination of the camera levels and shooting ranges; 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.
[0060] 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.
[0061] There is a camera database maintained inside or outside the printer, which 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 camera levels of the camera; these levels are usually divided based on parameters such as the resolution, field of view, focal length, aperture size of the camera, etc.; the higher the camera level, the better the performance of the camera, the more image details it can capture, and the wider the field of view.
[0062] Optionally, the printer finds the corresponding record in the camera database through the model information "XYZ-HD1200"; according to the record, the cameras of this model are 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 range 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.
[0063] 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 range of the camera, the imaging ranges 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.
[0064] 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 range and clear imaging ability; according to the records in the camera database, the printer estimates the imaging ranges 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.
[0065] The camera has multiple imaging levels, and each level corresponds to a different imaging range; to determine the final shooting range of the camera, the printer needs to synthesize these imaging ranges of different levels; the synthesis process involves operations such as intersection, union or other geometric operations on the imaging ranges to ensure that the obtained shooting range is both accurate and complete.
[0066] Optionally, in the printer example, although the camera is only classified as one "high-definition level", assume that in some advanced printers, the camera has multiple imaging levels (such as "standard level", "high-definition level" and "ultra-high-definition level"); in this case, the printer needs to synthesize these imaging ranges of different levels to determine the final shooting range of the camera; for example, it will combine the field of view range of the "standard level" with the imaging details of the "high-definition level" to obtain a shooting range that has both a large field of view range and clear imaging ability; however, in the specific example, since the camera only has one imaging level, the shooting range is the imaging range corresponding to this level.
[0067] Therefore, by 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, it takes into account the overall consideration of the orientation of the camera, the current position of the camera, and the shooting range, ensuring the accuracy of the shooting area.
[0068] 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 acquires this orientation information through built-in sensors or algorithms, and this information is crucial for determining the shooting area of the camera.
[0069] 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 acquires 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).
[0070] 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 space 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.
[0071] 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 determined by the horizontal and vertical fields of view of the camera respectively, and due to the influence of the pitch angle, this elliptical area will be tilted down 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.
[0072] 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 as follows:
[0073] Table 1 Shooting Area Matching Table
[0074]
[0075] 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, the corresponding shooting area description is directly found as "tilted elliptical area, covering part of the printing table".
[0076] 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 determines the target area based on the detection of the target image;
[0077] In the specific implementation process of the present invention, the specific steps are as follows:
[0078] 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;
[0079] 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;
[0080] S133: The camera shoots the external object again and shoots the surface of the external object where the monochromatic aperture area exists to output the 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.
[0081] 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.
[0082] At this time, the system continuously monitors the shooting area of the camera, which usually involves real-time capture and processing of video streams; the camera is configured to capture images of a specific area, and the system is responsible for analyzing these images to detect whether there are external objects entering this area; real-time monitoring ensures that the system can quickly respond to changes in external objects, and then 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 regularly or continuously captures image frames of the camera and stores them in memory for subsequent processing.
[0083] 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 with the boundary of the shooting area or significant changes of the object in the image; once the initial image is captured, the system processes it to extract useful information. Optionally, the entry of external objects is detected by background subtraction, motion detection, or object recognition algorithms; when an object is detected, the system immediately captures a frame from the camera's video stream as the initial image.
[0084] After capturing the initial image, the system performs image processing on it to detect monochromatic aperture regions; a 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 the object; the system uses color detection algorithms to identify 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, threshold processing is used to identify monochromatic regions with a specific color range; finally, contour detection algorithms (such as Canny edge detection) are used to determine the boundaries of monochromatic regions.
[0085] Furthermore, the turning information of the external object is determined based on the endpoint positions of the partial monochromatic aperture region 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 region is within the shooting area, taking into account the overall consideration of the endpoint positions of the monochromatic aperture region of the ABC part and the orientation of the external object relative to the camera, ensuring the accuracy of the turning information of the external object.
[0086] 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 steering information of the external object. Optionally, the boundary of the monochromatic aperture region is 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.
[0087] To determine the steering 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, an attempt is also made to estimate the orientation through other clues in the image (such as the shadow of the object, background information, etc.).
[0088] 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.
[0089] After obtaining the endpoint positions of the monochromatic aperture region and the orientation information of the object, calculate the angle or direction that 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 position of the endpoint positions and the boundary of the shooting area, and determining the turning direction according to the orientation information; optionally, determine the turning angle by calculating the angle between the line connecting the endpoint positions and the center of the shooting area and the line of sight of the camera; then, according to the orientation information of the object, determine whether to turn the object to the left or right (or up or down).
[0090] Once the steering information is determined, the system needs to trigger the steering operation of the external object; this is achieved by sending a control signal to the drive system of the object (such as a motor, servo, etc.); the steering 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 steering information to the control system of the object; after receiving the signal, the control system will start the corresponding drive mechanism to perform the steering operation.
[0091] Therefore, the camera takes another picture of the external object and takes the surface of the external object where there is a monochromatic aperture region to output the corresponding target image; the monochromatic aperture region is determined according to the monochromatic detection of the target image, and the region surrounded by the monochromatic aperture region is used 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.
[0092] 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 shoot the external object with the adjusted position again; Optionally, the camera captures a new image frame, which usually involves real-time capture and processing of the video stream; The system ensures that the shooting is performed after the object position is stable to avoid blurring or ghosting.
[0093] In the image taken again, the system needs to ensure that the object surface 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 an autofocus function or a preset focal length to ensure the clarity of the monochromatic aperture region; In addition, the success of capturing the required surface is verified by analyzing the contrast or edge sharpness in the image.
[0094] Once a clear image containing the 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 region 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.
[0095] 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.
[0096] 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 achieved 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.
[0097] 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 according to the comparison of the color coefficients of the multiple color regions;
[0098] In the specific implementation process of the present invention, the specific steps are as follows:
[0099] S141: The printer performs color printing on the target area corresponding to the external object. At this time, the target area is collected, and the 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;
[0100] S142: 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;
[0101] S143: The multiple color areas 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 areas, and the color difference range of the target area is determined according to the maximum and minimum values of the color coefficients.
[0102] In the embodiment of the present application, the printer performs color printing on the target area corresponding to the external object. At this time, the target area is collected, and the 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 color difference boundary line is introduced to facilitate further control of the color difference boundary line.
[0103] 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 spray volume, and color mixing, etc.
[0104] 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.
[0105] After collecting the image of the target area, the system needs to traverse the entire image and 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.
[0106] Furthermore, multiple color regions are determined based on the segmentation of the target region by the color difference boundary line, and color detection is performed on the multiple color regions to output corresponding color coefficients, and the color coefficients of the multiple color regions are introduced.
[0107] At this time, the system uses the color difference boundary line determined in step S141 to divide the target region into multiple independent color regions; these color regions are enclosed by the color difference boundary line, the color within each region is relatively uniform, and there are significant differences in color between adjacent regions; optionally, the system uses image processing algorithms, such as region growing, flood filling, etc., to segment the target region according to the color difference boundary line; these algorithms can start from the color difference boundary line and gradually expand or fill the color region until another color difference boundary line or the image boundary is encountered.
[0108] After dividing the 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 region 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; the 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.
[0109] 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 areas. For example, there is a red circular area, a green rectangular area, and a blue triangular area on the paper, which are separated by the color difference boundary line. The system has performed color detection on each segmented color area. For the red circular area, the system has calculated its average RGB color value as (255, 0, 0). For the green rectangular area, the average RGB color value is (0, 255, 0). For the blue triangular area, the average RGB color value is (0, 0, 255). In addition, the system has also converted these color areas to the HSV color space and calculated the hue, saturation, and value of each area. For example, the HSV value of the red area is (0°, 100%, 100%). The HSV value of the green area is (120°, 100%, 100%). The HSV value of the blue area is (240°, 100%, 100%). Finally, the system outputs the color detection results of each color area in the form of color coefficients. For example, for the red circular area, the output color coefficient is RGB(255, 0, 0) or HSV(0°, 100%, 100%). For the green rectangular area and the blue triangular area, the corresponding color coefficients are also output. Through this process, the system can accurately segment multiple color areas in the target area and perform color detection on each area to output the corresponding color coefficients. This helps to automatically evaluate the printing quality and ensure the accuracy and consistency of the printing results.
[0110] Therefore, sort the multiple color areas in sequence, determine the maximum and minimum values of the color coefficients based on the comparison of the color coefficients of the multiple color areas, and determine the color difference range of the target area according to the maximum and minimum values of the color coefficients, which 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.
[0111] At this time, arrange the multiple color areas in the image or visual input in a certain order for subsequent analysis and comparison. Optionally, the sorting is based on the area of the color area, a certain dimension of the color coefficient (such as brightness, saturation, hue, etc.), or other relevant features. The sorting algorithm can be a simple ascending or descending order, or a more complex sorting logic, such as weighted sorting based on multiple features. Output an ordered list of color areas, and each color area is arranged in the specified order.
[0112] In the sorted color regions, find the maximum and minimum values of the color coefficients, which will be used to determine the color difference range of the target region subsequently; optionally, for each color region, calculate the specific values of its color coefficients (this involves the combination of one or more color features); then, find the maximum and minimum values among these values; if the color coefficients are 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 coefficients, which reflect the extreme performance of the color regions in terms of color features.
[0113] Use the maximum and minimum values of the color coefficients 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).
[0114] 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 highest, and the blue region has the lowest brightness; 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.
[0115] 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 the color regions is 150 units.
[0116] In an embodiment of the present application, collect a color difference level matching table for mapping the color coefficients to specific color difference levels: The color difference level matching table is shown in Table 2:
[0117] Table 2 Shooting Area Matching Table
[0118]
[0119] According to the color coefficients, determine: Region C: High; Region E: Medium - high; Region A: Medium - high; Region D: Medium; Region B: Medium; The color difference level range of the target region is from "Medium" to "High".
[0120] Reference Figure 6, in 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;
[0121] In the specific implementation process of the present invention, the specific steps are as follows:
[0122] S151: Collect each color area, detect the size of each color area, and determine the area size of each color area; Mark the corresponding area size and color coefficient in each color area;
[0123] 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;
[0124] 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.
[0125] In the embodiment of the present application, each color area is collected, the size of each color area is detected, 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.
[0126] 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, each area contains a set of pixels, and these pixels are relatively consistent in color characteristics.
[0127] 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 region boundary; The aspect ratio is obtained by calculating the length and width of the minimum bounding rectangle of the region; Output the size information of each color area, and this information is usually represented in numerical form and associated with the identifier of the color area.
[0128] Integrate the size information of the color regions and the previously calculated color coefficients (such as brightness, saturation, hue, etc.), and create a label 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 labeling process involves drawing visual indicators such as bounding boxes, labels, or color bars on the image; Each color region is labeled with its size and color coefficients, and this information is used for subsequent analysis, processing, or visualization.
[0129] 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.
[0130] At this time, through a series of performance detections, collect the color printing ability data of the printer for establishing the 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 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.
[0131] 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.
[0132] Specifically, assume there is an inkjet printer and we want to determine its color printing level. A series of performance tests are carried out, 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 the color printing database of the printer.
[0133] The data in the color printing database are normalized to the 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 as "Intermediate".
[0134] 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.
[0135] 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 resolution, richer color levels, and more refined color management, while low - level printers are limited in these aspects. Large - size color areas require more ink or toner to ensure uniform coverage, while small - size areas require higher precision to avoid blurring or overflowing, 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.
[0136] 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 restoration 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 needs to adopt a more refined color correction algorithm or increase color management steps, and 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.
[0137] Combine the first color printing parameter, the second color printing parameter determined in the previous two steps and the printing 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 printing mode matching table is a preset lookup table or algorithm that matches the most suitable printing 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 printing 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.
[0138] Specifically, assume 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.
[0139] Considering that the color difference range in 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.
[0140] 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:
[0141] 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;
[0142] A shooting area module 22, configured to determine the shooting area according to the current position of the camera of the printer and the shooting range of the camera;
[0143] 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 the target image, and determine the target area based on the detection of the target image;
[0144] A color difference module 24, configured to, 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;
[0145] 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.
[0146] For any combination of the technical features of the above embodiments, 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 described in this specification.
Claims
1. A method for printing an area selected by monochromatic light, characterized in that: include: A monochrome lamp configured in a printer illuminates an external object, and a corresponding monochrome aperture area is presented on the surface of the external object, including: the printer is configured with a monochrome lamp, the monochrome lamp is powered by an internal power supply of the printer, and outputs monochrome light to the outside, and when the external object is within the illumination range of the monochrome lamp, the light output by the monochrome lamp is presented on the surface of the external object; a plurality of line segments of the same color are determined according to color detection of the surface of the external object, and a corresponding monochrome aperture area is determined based on the synthesis of the plurality of line segments of the same color, at this time, the monochrome aperture area is a continuous annular area, and the color presented by the monochrome aperture area is different from the color of 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, including: the printer is equipped with a camera, the camera is powered by an 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, and the position coordinates of the camera present the current position of the camera; collecting the model of the camera, determining multiple camera levels of the camera according to the model of the camera and a camera database, and determining the corresponding camera range according to the detection of multiple camera levels, and determining the shooting range of the camera according to the synthesis of the camera ranges of the multiple camera levels; collecting the direction of the camera, and determining the shooting area according to the direction of the camera, the current position of the camera 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: 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.
3. The method for printing a region selected by monochromatic light according to claim 2, 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.
4. The method for printing a region selected by monochromatic light according to claim 3, 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.
5. The method for printing a region selected by monochromatic light according to claim 4, 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.
6. 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.
7. The method for printing a region selected by monochromatic light according to claim 6, 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.
8. 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 7, and the printing system for the area selected by the monochromatic light comprises: A monochrome lamp module, used for a monochrome lamp configured in a printer to illuminate an external object, and present a corresponding monochrome aperture area on the surface of the external object, comprising: the printer is configured with a monochrome lamp, the monochrome lamp is powered by an internal power supply of the printer, and outputs monochrome light to the outside, when the external object is within the irradiation range of the monochrome lamp, the light output by the monochrome lamp is presented on the surface of the external object; a plurality of line segments of the same color are determined according to color detection of the surface of the external object, and a corresponding monochrome aperture area is determined based on the synthesis of the plurality of line segments of the same color, at this time, the monochrome aperture area is a continuous annular area, and the color presented by the monochrome aperture area is different from the color of the surface of the external object; The shooting area module is used to determine the shooting area according to the current position of the camera of the printer and the shooting range of the camera, including: the printer is equipped with a camera, the camera is powered by the internal power supply of the printer, a corresponding coordinate system is constructed based on the printer, the position coordinates of the camera are determined according to the coordinate system and the spatial position of the camera relative to the printer, and the position coordinates of the camera present the current position of the camera; the model of the camera is collected, and multiple camera levels of the camera are determined according to the model of the camera and the camera database, and the corresponding camera range is determined according to the detection of multiple camera levels, and the shooting range of the camera is determined according to the synthesis of the camera ranges of 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; 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
Low-color-difference invisible printing process and glass thereof
CN117227340A