[go: up one dir, main page]

CN110347356B - Image local area printing method, device and storage medium - Google Patents

Image local area printing method, device and storage medium Download PDF

Info

Publication number
CN110347356B
CN110347356B CN201910632135.2A CN201910632135A CN110347356B CN 110347356 B CN110347356 B CN 110347356B CN 201910632135 A CN201910632135 A CN 201910632135A CN 110347356 B CN110347356 B CN 110347356B
Authority
CN
China
Prior art keywords
printed
image
area
printing
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910632135.2A
Other languages
Chinese (zh)
Other versions
CN110347356A (en
Inventor
梅�明
黄中琨
陈艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Senda Shenzhen Technology Co Ltd
Original Assignee
Senda Shenzhen Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Senda Shenzhen Technology Co Ltd filed Critical Senda Shenzhen Technology Co Ltd
Priority to CN201910632135.2A priority Critical patent/CN110347356B/en
Publication of CN110347356A publication Critical patent/CN110347356A/en
Application granted granted Critical
Publication of CN110347356B publication Critical patent/CN110347356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1241Dividing a job according to job requirements, e.g. black/white and colour pages, covers and body of books, tabs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention discloses a method and a device for printing local areas of images and a computer readable storage medium, and relates to the technical field of printing, wherein the method comprises the following steps: acquiring the initial position of an image of an area to be printed and the physical position of a medium to be printed; reading target data to be printed by taking a logic channel as a unit; and printing the target data to be printed to the physical position of the medium to be printed. According to the method and the device, the initial position of the image of the area to be printed and the physical position of the medium to be printed are selected, the target data to be printed is read by taking the logic channel as a unit, the target area to be printed can be accurately and rapidly selected, and the accurate printing of the image of any area in the whole image is realized.

Description

Image local area printing method, device and storage medium
Technical Field
The present invention relates to the field of printing technologies, and in particular, to a method and apparatus for printing a local area of an image, and a computer readable storage medium.
Background
With the development of printing technology, not only color printing is applied more and more widely, but also printing speed is faster and more printing demands are increased.
Region printing is a common printing requirement, and is to select a small region from a complete large image for printing. However, how to precisely select the area to obtain the ideal printing area is a problem that is annoyed to those skilled in the printing art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for printing local areas of an image and a computer readable storage medium, and aims to solve the technical problem that the area to be printed is difficult to accurately select in the prior art.
To achieve the above object, an aspect of the present invention provides a local area printing method of an image, the method being applied to print an area image in one image, the method comprising:
acquiring the initial position of an image of an area to be printed and the physical position of a medium to be printed;
reading target data to be printed by taking a logic channel as a unit;
printing the target data to be printed to the physical position of the medium to be printed to generate an area image;
the logic channels are in one-to-one correspondence with the physical channels, and the physical positions of the media to be printed are actual physical positions of the area images to be printed.
Further, before the acquiring the starting position of the image data of the area to be printed and the physical position of the medium to be printed, the method further includes:
separating the whole image according to a logic channel and storing the whole image data;
and acquiring the starting address of the whole image data.
Further, the acquiring the start address of the image of the area to be printed includes:
determining an X-direction pixel offset and a Y-direction pixel offset of an area image to be printed relative to the starting address of the whole image, and printing a range;
wherein the printing range comprises a length and a width of printing.
Further, the reading the target data to be printed in units of logical channels includes:
reading the printing data in each logic channel address;
the address di=d+l+a (py+j) +px+p of each logical channel;
where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
Further, the printing the target data to be printed to the physical location of the medium to be printed includes:
printing the target data to be printed in units of pixels;
the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
Further, after the target data to be printed is read in units of logical channels, the method further includes:
judging whether the target data to be printed is invalid data or not;
and when the target data to be printed is invalid data, shielding the invalid data.
Further, the determining whether the target data to be printed is invalid data includes:
and when the target data to be printed read by the logic channel is located outside the printing range, the target data to be printed located outside the printing range is invalid data.
Further, the logic channel corresponds to at least one row of nozzles or one spray head.
In another aspect, the present invention provides an image partial area printing apparatus for printing an area image in an image, the apparatus comprising:
the acquisition module is used for acquiring the initial position of the image of the area to be printed and the physical position of the medium to be printed;
the data extraction module is used for reading target data to be printed by taking the logic channel as a unit;
the printing module is used for printing the target data to be printed to the physical position of the medium to be printed to generate an area image;
the logic channels are in one-to-one correspondence with the physical channels, and the physical positions of the media to be printed are actual physical positions of the area images to be printed.
In another aspect, the present invention also provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of any of the above-described image local area printing methods.
According to the image local area printing method, the device and the computer readable storage medium, the target data to be printed is read by taking the logic channel as a unit by selecting the initial position of the image of the area to be printed and the physical position of the medium to be printed, so that the target area to be printed can be accurately and rapidly selected, and the accurate printing of any area image in the whole image can be realized.
Drawings
FIG. 1 is a schematic diagram of an entire image including two region images according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for printing a local area of an image according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an entire image including two region images according to a second embodiment of the present invention;
fig. 4 is a flowchart of a method for printing a local area of an image according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an image local area printing device according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an image local area printing apparatus according to a fourth embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
Example 1
An embodiment of the present invention provides a method for printing local area of an image, where the method is applied to printing area images in one image, for example, in fig. 1, a is an entire image, B, C is two area images in the entire image a, in one printing requirement, an area image B needs to be printed, and in another printing requirement, an area image C needs to be printed. The area image B or C may be an image or text such as a merchandise tag or a brand mark. As shown in fig. 2, the method includes:
s1, acquiring a starting position of an image of an area to be printed and a physical position of a medium to be printed;
wherein the physical position of the medium to be printed is the actual physical position where the area image to be printed is to be printed.
In the embodiment of the invention, the initial position of the to-be-printed area image can be determined by taking the initial position of the whole image as an original point according to the X-direction pixel offset and the Y-direction pixel offset of the to-be-printed area image relative to the initial position of the whole image; the starting position of the area image to be printed can also be determined by taking the default marking position of the system as an origin and according to the X-direction pixel offset and the Y-direction pixel offset of the area image to be printed relative to the default marking position of the system.
S2, reading target data to be printed by taking a logic channel as a unit;
the logic channels are in one-to-one correspondence with the physical channels, and the logic channels can correspond to at least one row of nozzles or one spray head. In this embodiment, each row of spray holes corresponds to a logic channel, the physical range that each logic channel can spray is preset, and target data of an area to be printed is read by taking the channel as a unit; the total range of the areas to be printed is less than or equal to the sum of the physical ranges each logical channel can eject.
The method specifically comprises the steps of obtaining target data to be printed by reading print data in each logical channel address;
in a specific embodiment, the address of each logical channel is:
di=D+L*a*(Py+j)+Px+P;
where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
S3, printing the target data to be printed to the physical position of the medium to be printed to generate an area image;
specifically, the target data to be printed may be printed in units of pixels; the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
According to the image local area printing method, the initial position of the image of the area to be printed and the physical position of the medium to be printed are selected, and the target data to be printed is read by taking the logic channel as a unit, so that the target area to be printed can be accurately and rapidly selected, and the accurate printing of any area image in the whole image can be realized.
Example two
In a second embodiment of the present invention, a method for printing a local area of an image is provided, where the method is applied to printing an area image in one image, for example, in fig. 3, a is an entire image, B, C is two area images in the entire image a, where the area image B, C has an overlapping area O, in one printing requirement, an area image B needs to be printed, in one printing requirement, an area image C needs to be printed, and in another printing requirement, an area image O needs to be printed. The area image B, C or O may be an image or text such as a merchandise tag or a brand mark. The method comprises the following steps:
s11, acquiring a starting position of an image of an area to be printed and a physical position of a medium to be printed;
wherein the physical position of the medium to be printed is the actual physical position where the area image to be printed is to be printed.
In the embodiment of the invention, the initial position of the to-be-printed area image can be determined by taking the initial position of the whole image as an original point according to the X-direction pixel offset and the Y-direction pixel offset of the to-be-printed area image relative to the initial position of the whole image; the starting position of the area image to be printed can also be determined by taking the default marking position of the system as an origin and according to the X-direction pixel offset and the Y-direction pixel offset of the area image to be printed relative to the default marking position of the system.
S12, reading target data to be printed by taking a logic channel as a unit;
the logic channels are in one-to-one correspondence with the physical channels, and the logic channels can correspond to a row of nozzles or a spray head. In this embodiment, each row of spray holes corresponds to a logic channel, the physical range that each logic channel can spray is preset, and target data of an area to be printed is read by taking the channel as a unit; the total range of the areas to be printed is less than or equal to the sum of the physical ranges each logical channel can eject.
The method specifically comprises the steps of obtaining target data to be printed by reading print data in each logical channel address;
in a specific embodiment, the address of each logical channel is:
di=D+L*a*(Py+j)+Px+P;
where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
S13, printing the target data to be printed to the physical position of the medium to be printed to generate an area image;
specifically, the target data to be printed may be printed in units of pixels; the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
Example III
An embodiment of the present invention provides a method for printing a local area of an image, where the method is applied to printing an area image in an image, as shown in fig. 4, and the method includes:
s301, separating the whole image according to a logic channel and storing the whole image data;
wherein, each row of spray holes corresponds to a logic channel, and the range of each logic channel capable of being sprayed is preset. The whole image can be separated and stored according to the injection range of each logic channel; the data of each pixel of the image can be separated according to the color and the insertion point.
S302, acquiring a starting address of the whole image data.
Specifically, the recording step S301 may store the start address of the entire image data.
S303, acquiring a starting position of an image of an area to be printed and a physical position of a medium to be printed;
specifically, determining an X-direction pixel offset, a Y-direction pixel offset and a printing range of an area image to be printed relative to a starting address of the whole image;
wherein the printing range comprises a length and a width of printing.
S304, reading target data to be printed by taking a logic channel as a unit;
wherein, each row of spray holes corresponds to a logic channel, the physical range of each logic channel capable of being sprayed is preset, and the target data of the area to be printed is read by taking the channel as a unit; the total range of the areas to be printed is less than or equal to the sum of the physical ranges each logical channel can eject.
In one embodiment, this step reads the print data in each logical channel address;
the address di=d+l+a (py+j) +px+p of each logical channel;
where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
In another embodiment, the step comprises:
s3041, determining a mapping relation between a logic channel and a storage address of the image data of the area to be printed in a memory according to the initial position of the image of the area to be printed;
specifically, the method comprises the following steps:
s21, establishing an XY coordinate system taking pixels as basic units according to the number of the logic channels and the length of the logic channels, wherein the direction of the arrangement of the logic channels is taken as an X axis, and the direction perpendicular to the arrangement of the logic channels is taken as a Y axis;
s22, determining the initial pixel point coordinates of each logic channel by taking the initial position of the area image to be printed as the origin of the coordinate system;
s23, acquiring a start storage address of the image data of the area to be printed, and fitting to obtain a mapping relation between the logic channel and the storage address of the image data to be printed according to the start pixel point coordinates of each logic channel, the width of the image of the area to be printed along the arrangement direction of the logic channels, the start storage address of the image data to be printed and the printing times.
In this embodiment, one pixel corresponds to one nozzle, and the X-axis of the print coordinate system corresponds to the logical channel.
Preferably, the mapping relation includes:
C address =O address +O pixels +P width *P times
wherein C is addres s represents the storage address corresponding to the logic channel, O address A start memory address representing image data of an area to be printed, O pixels Representing the initial pixel point coordinates, P, of each logic channel width Representing a zone to be printedWidth of domain image along logic channel arrangement direction, P times Indicating the number of ink discharge from the nozzle.
S3042, extracting printing target data corresponding to each logic channel according to the mapping relation;
s305, judging whether the target data to be printed is invalid data or not;
and when the target data to be printed read by the logic channel is located outside the printing range, the target data to be printed located outside the printing range is invalid data.
The print range is the print length and width determined in step S303.
S306, when the target data to be printed is invalid data, shielding the invalid data.
Through the step, the target data to be printed are all effective data.
S307, printing the target data to be printed to the physical position of the medium to be printed.
Specifically, in this step, the target data to be printed is printed in units of pixels; the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
Based on the above-described method embodiments, the following device embodiments are presented.
Example IV
A fourth embodiment of the present invention provides an image partial region printing apparatus 4, the image partial region printing apparatus 4 being configured to print a region image in an image, as shown in fig. 5, the image partial region printing apparatus 4 including:
a storage module 40 for separating the whole image according to a logic channel and storing the whole image data; and acquiring the starting address of the whole image data.
An acquiring module 41, configured to acquire a start position of an image of an area to be printed and a physical position of a medium to be printed;
a data extraction module 42 for reading target data to be printed in units of logical channels;
a judging and masking module 43, configured to judge whether the target data to be printed is invalid data; and when the target data to be printed is invalid data, shielding the invalid data.
And a printing module 44, configured to print the target data to be printed to a physical location of the medium to be printed.
In one embodiment, the obtaining module 41 is specifically configured to determine an X-direction pixel offset, a Y-direction pixel offset, and a printing range of the image of the area to be printed relative to a start address of the entire image;
wherein the printing range comprises a length and a width of printing.
The data extraction module 42 is specifically configured to read the print data in each logical channel address;
the address di=d+l+a (py+j) +px+p of each logical channel;
where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
The judgment mask module 43 is specifically configured to determine, when the target data to be printed read by the logic channel is located outside the printing range, the target data to be printed located outside the printing range as invalid data, and mask the invalid data.
The printing module 44 is specifically configured to print the target data to be printed in units of pixels; the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
In addition, the image partial region printing method of the embodiment of the present invention described in connection with fig. 2 may be implemented by an image partial region printing apparatus. Fig. 6 shows a schematic hardware configuration of an image local area printing apparatus according to an embodiment of the present invention.
The image local area printing apparatus may comprise a processor 401 and a memory 402 storing computer program instructions.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to realize any one of the image partial area printing methods of the above embodiments.
In one example, the image local area printing device may also include a communication interface 403 and a bus 410. As shown in fig. 6, the processor 401, the memory 402, and the communication interface 403 are connected by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 410 includes hardware, software, or both, that couple components of the image local area printing device to one another. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
Example five
A fifth embodiment of the present invention provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of:
acquiring the initial position of an image of an area to be printed and the physical position of a medium to be printed;
reading target data to be printed by taking a logic channel as a unit;
and printing the target data to be printed to the physical position of the medium to be printed.
In one embodiment, before the step of acquiring the start position of the image data of the area to be printed and the physical position of the medium to be printed, the one or more programs may be executed by one or more processors to implement the following steps:
separating the whole image according to a logic channel and storing the whole image data;
and acquiring the starting address of the whole image data.
In a specific embodiment, in the step of acquiring the start address of the image of the area to be printed, the one or more programs may be executed by one or more processors to implement the following steps:
determining an X-direction pixel offset and a Y-direction pixel offset of an area image to be printed relative to the starting address of the whole image, and printing a range;
wherein the printing range comprises a length and a width of printing.
In a specific embodiment, in the step of reading the target data to be printed in units of logical channels, the one or more programs may be executed by one or more processors to implement the following steps:
reading the printing data in each logic channel address;
the address di=d+l+a (py+j) +px+p of each logical channel;
where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
In a specific embodiment, in the step of printing the target data to be printed to the physical location of the medium to be printed, the one or more programs may be executed by one or more processors to implement the following steps:
printing the target data to be printed in units of pixels;
the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
In one embodiment, after the step of reading the target data to be printed in units of logical channels, the one or more programs may be executed by one or more processors to implement the steps of:
judging whether the target data to be printed is invalid data or not;
and when the target data to be printed is invalid data, shielding the invalid data.
In a specific embodiment, in the step of determining whether the target data to be printed is invalid data, the one or more programs may be executed by one or more processors to implement the following steps:
and when the target data to be printed read by the logic channel is located outside the printing range, the target data to be printed located outside the printing range is invalid data.
According to the image local area printing method, the device and the computer readable storage medium, the target data to be printed is read by taking the logic channel as a unit by selecting the initial position of the image of the area to be printed and the physical position of the medium to be printed, so that the target area to be printed can be accurately and rapidly selected, and the accurate printing of any area image in the whole image can be realized.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal comprising the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (9)

1. A method of printing a partial area of an image, the method being applied to print an area image in an entire image, the method comprising: separating the whole image according to a logic channel and storing the whole image data; acquiring a starting address of the whole image data; acquiring the initial position of an image of an area to be printed and the physical position of a medium to be printed; reading target data to be printed by taking a logic channel as a unit; printing the target data to be printed to the physical position of the medium to be printed to generate an area image; the logic channels are in one-to-one correspondence with the physical channels, and the physical positions of the media to be printed are actual physical positions of the area images to be printed; wherein, the reading the target data to be printed by taking the logic channel as a unit includes:
determining a mapping relationship between a logic channel and a storage address of the image data of the area to be printed in a memory according to the starting position of the image of the area to be printed, including:
establishing an XY coordinate system taking pixels as basic units according to the number of the logic channels and the length of the logic channels, wherein the direction of the arrangement of the logic channels is taken as an X axis, and the direction perpendicular to the arrangement of the logic channels is taken as a Y axis;
determining the initial pixel point coordinates of each logic channel by taking the initial position of the area image to be printed as the origin of the coordinate system;
acquiring a starting storage address of the image data of the area to be printed, and fitting to obtain a mapping relation between the logic channel and the storage address of the image data of the area to be printed according to the starting pixel point coordinates of each logic channel, the width of the image of the area to be printed along the arrangement direction of the logic channels, the starting storage address of the image data of the area to be printed and the printing times;
and extracting the printing target data corresponding to each logic channel according to the mapping relation.
2. The image partial area printing method according to claim 1, wherein the acquiring the start address of the image of the area to be printed comprises: determining an X-direction pixel offset and a Y-direction pixel offset of an area image to be printed relative to the starting address of the whole image, and printing a range; wherein the printing range comprises a length and a width of printing.
3. The image partial area printing method according to claim 2, wherein the reading the target data to be printed in units of logical channels includes: reading the printing data in each logic channel address; the address di=d+l+a (py+j) +px+p of each logical channel; where di is the address of each logical channel, D is the start address of the whole image data, L is the number of data bytes of the channel of the data of a row of pixels after the channel separation is realized according to the color and the insertion point, a is the number of channels of the data of a row after the channel separation is realized according to the color and the insertion point, py is the offset of the pixels of the region image to be printed in the Y direction relative to the start address of the whole image, j is the count value of the row counter, px is the offset of the pixels of the region image to be printed in the X direction relative to the start address of the whole image, and P is the offset of each logical channel.
4. The image partial region printing method according to claim 3, wherein the printing the target data to be printed to the physical location of the medium to be printed comprises: printing the target data to be printed in units of pixels; the counter value of the pixel row of each printing row is increased by one until the image of the area to be printed is printed.
5. The image partial area printing method according to any one of claims 2 to 4, wherein after the target data to be printed is read in units of logical channels, the method further comprises: judging whether the target data to be printed is invalid data or not; and when the target data to be printed is invalid data, shielding the invalid data.
6. The image partial region printing method according to claim 5, wherein the judging whether the target data to be printed is invalid data comprises: and when the target data to be printed read by the logic channel is located outside the printing range, the target data to be printed located outside the printing range is invalid data.
7. The method of claim 6, wherein the logical channels correspond to at least one row of nozzles or one nozzle head.
8. An image partial area printing apparatus for printing an area image in an image, the apparatus comprising: a module for separating the whole image according to a logic channel and storing the whole image data; a module for acquiring a start address of the whole image data; the acquisition module is used for acquiring the initial position of the image of the area to be printed and the physical position of the medium to be printed; the data extraction module is used for reading target data to be printed by taking the logic channel as a unit; the printing module is used for printing the target data to be printed to the physical position of the medium to be printed to generate an area image; the logic channels are in one-to-one correspondence with the physical channels, and the physical position of the medium to be printed is the actual physical position of the area image to be printed, wherein the data extraction module is further configured to:
determining a mapping relationship between a logic channel and a storage address of the image data of the area to be printed in a memory according to the starting position of the image of the area to be printed, including:
establishing an XY coordinate system taking pixels as basic units according to the number of the logic channels and the length of the logic channels, wherein the direction of the arrangement of the logic channels is taken as an X axis, and the direction perpendicular to the arrangement of the logic channels is taken as a Y axis;
determining the initial pixel point coordinates of each logic channel by taking the initial position of the area image to be printed as the origin of the coordinate system;
acquiring a starting storage address of the image data of the area to be printed, and fitting to obtain a mapping relation between the logic channel and the storage address of the image data of the area to be printed according to the starting pixel point coordinates of each logic channel, the width of the image of the area to be printed along the arrangement direction of the logic channels, the starting storage address of the image data of the area to be printed and the printing times;
and extracting the printing target data corresponding to each logic channel according to the mapping relation.
9. A computer-readable storage medium storing one or more programs executable by one or more processors to perform the steps of the image local area printing method of any of claims 1-7.
CN201910632135.2A 2019-07-13 2019-07-13 Image local area printing method, device and storage medium Active CN110347356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910632135.2A CN110347356B (en) 2019-07-13 2019-07-13 Image local area printing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910632135.2A CN110347356B (en) 2019-07-13 2019-07-13 Image local area printing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110347356A CN110347356A (en) 2019-10-18
CN110347356B true CN110347356B (en) 2024-01-26

Family

ID=68175517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910632135.2A Active CN110347356B (en) 2019-07-13 2019-07-13 Image local area printing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110347356B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928503B (en) * 2019-10-26 2024-03-22 森大(深圳)技术有限公司 Data addressing method, device, equipment and storage medium for regional random printing
CN112074394A (en) * 2019-12-18 2020-12-11 清锋(北京)科技有限公司 Printed matter processing system and method
CN113829626B (en) * 2021-09-28 2023-06-16 珠海赛纳三维科技有限公司 Multi-job three-dimensional printing method, apparatus, storage medium, and software program product
CN113844034B (en) * 2021-09-30 2024-01-05 深圳市纵维立方科技有限公司 Three-dimensional model punching processing method, printing method, related equipment and storage medium
CN115891473B (en) * 2022-09-01 2024-11-26 康泰医学系统(秦皇岛)股份有限公司 Electrocardiogram printing method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010027068A (en) * 2003-12-09 2010-02-04 Canon Inc System, printer, printing method and program
JP2016076158A (en) * 2014-10-08 2016-05-12 セイコーエプソン株式会社 Information processing apparatus, accounting system, and recording apparatus
CN109263280A (en) * 2018-10-12 2019-01-25 森大(深圳)技术有限公司 Onepass inkjet printing methods, device, equipment and storage medium
CN109605954A (en) * 2018-12-29 2019-04-12 森大(深圳)技术有限公司 Onepass print control program, device, equipment and medium
CN109664620A (en) * 2018-12-07 2019-04-23 森大(深圳)技术有限公司 Print data processing method, device and equipment
CN109669647A (en) * 2018-11-30 2019-04-23 森大(深圳)技术有限公司 Print image data processing method, device, equipment and storage medium
CN109710198A (en) * 2018-12-29 2019-05-03 森大(深圳)技术有限公司 Method of printing, device and the equipment of local dynamic station variable image
CN109760431A (en) * 2018-12-29 2019-05-17 森大(深圳)技术有限公司 Print data processing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010027068A (en) * 2003-12-09 2010-02-04 Canon Inc System, printer, printing method and program
JP2016076158A (en) * 2014-10-08 2016-05-12 セイコーエプソン株式会社 Information processing apparatus, accounting system, and recording apparatus
CN109263280A (en) * 2018-10-12 2019-01-25 森大(深圳)技术有限公司 Onepass inkjet printing methods, device, equipment and storage medium
CN109669647A (en) * 2018-11-30 2019-04-23 森大(深圳)技术有限公司 Print image data processing method, device, equipment and storage medium
CN109664620A (en) * 2018-12-07 2019-04-23 森大(深圳)技术有限公司 Print data processing method, device and equipment
CN109605954A (en) * 2018-12-29 2019-04-12 森大(深圳)技术有限公司 Onepass print control program, device, equipment and medium
CN109710198A (en) * 2018-12-29 2019-05-03 森大(深圳)技术有限公司 Method of printing, device and the equipment of local dynamic station variable image
CN109760431A (en) * 2018-12-29 2019-05-17 森大(深圳)技术有限公司 Print data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110347356A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110347356B (en) Image local area printing method, device and storage medium
CN109760431B (en) Print data processing method, device, equipment and storage medium
CN111047536B (en) CCD image correction method, device, equipment and storage medium
CN109471602B (en) Printing data splitting processing method and device and printing equipment
CN110039901B (en) Oneepass inkjet printing control method, device, equipment and medium
US11580758B2 (en) Method for processing image, electronic device, and storage medium
CN114697464B (en) Image partition processing method, device, equipment and storage medium
CN118097577A (en) License plate correction method, ETC antenna device and computer readable storage medium
CN114889329A (en) Printer ink amount adjusting method, device, equipment and storage medium
CN106156691B (en) method and device for processing complex background image
CN112085707B (en) Printed matter color detection method, device, equipment and medium
US20160044196A1 (en) Image processing apparatus
CN110163307B (en) Printing method, device, equipment and medium capable of adjusting label position in real time
CN110605917B (en) Printing control method, device and equipment for PCB characters and storage medium
CN116521100A (en) Region printing method, device, equipment and storage medium
CN110333832B (en) Typesetting spacing adjustment method, device and equipment for multiple printed images and storage medium
CN112060786A (en) Control method, device, equipment and storage medium for seamless continuous printing of repeated images
CN111179379A (en) General bullet train data set generation method and device, computer device and computer readable storage medium
CN113515241B (en) Printing method, device, equipment and storage medium for printing multiple images
CN113139394A (en) Code reading method, electronic device and storage medium
CN110852994B (en) Visual detection method and system for jet printing card
US20220237931A1 (en) Systems and methods for printed code inspection
CN108776146B (en) Method and device for detecting silk-screen lines
CN110209366A (en) Print control program, device, equipment and the medium of image layout can be adjusted in real time
CN105718933B (en) A kind of method and device of edge detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant