Printing method, device, printer and storage medium
By configuring consumables transmission components and photoelectric sensors on the printer, collecting light transmittance data and combining it with stepper motor parameters, the problem of high consumables model identification cost in the existing technology is solved, and accurate and economical consumables model identification is achieved.
Patent Information
- Application Number
- CN202211550429.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2042-12-05
AI Technical Summary
Existing printers have high costs when identifying consumable models. A method that can reduce industrial costs and accurately identify consumable models is needed.
By configuring the consumables transmission component and photoelectric sensor on the printer, the light transmittance data of the consumables to be printed is collected, and the model of the consumables is determined by combining the operating parameters and transmission speed of the stepper motor.
This reduces industrial costs while improving the accuracy of consumables model identification.
Smart Images

Figure CN116061580B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printing technology, and in particular to a printing method, device, printer and storage medium. Background Art
[0002] When printing on consumables, printers need to be able to accurately identify the consumable model. Existing printers typically use image recognition devices to identify the consumable model, but this method is costly. Therefore, a printing method that can reduce costs while accurately identifying consumable models is urgently needed. Summary of the Invention
[0003] The present application provides a printing method, device, printer and storage medium, which can reduce industrial costs and improve the accuracy of consumables model identification.
[0004] In a first aspect, the present application provides a printing method, which is applied to a printer, wherein the printer is equipped with a consumable material transmission component and a photoelectric sensor, and the method comprises:
[0005] When the consumable material transport component transports the consumable material to be printed, light transmittance data of a target position in the consumable material to be printed is collected by the photoelectric sensor;
[0006] Determining the model of the consumable material to be printed based on the light transmittance data;
[0007] The printing information of the consumable material to be printed is determined based on the model, and printing is performed on the consumable material to be printed of the model based on the printing information.
[0008] The embodiment of the present application provides a printing method, including: when the consumable material transmission component transmits the consumable material to be printed, collecting the light transmittance data of the target position in the consumable material to be printed through a photoelectric sensor; determining the printing information of the consumable material to be printed based on the model, and printing the consumable material to be printed based on the printing information. The present application identifies the model of the consumable material by configuring the consumable material transmission component and the photoelectric sensor on the printer. The solution is simple and easy to implement, and can also reduce industrial costs. In the present application, when the light source detection hole on the consumable material transmission component and the hole on the consumable material overlap, the number of steps of the stepper motor is collected by the photoelectric sensor, and then the length of all the holes at the target position is determined in combination with the operating parameters of the stepper motor. Finally, based on the length of all the holes at the target position, the model of the consumable material to be printed can be accurately determined, which can improve the accuracy of consumable model recognition.
[0009] Furthermore, determining the model of the consumables to be printed based on the light transmittance data includes: obtaining a transmission speed of the consumables to be printed by the consumables transmission component; and determining the model of the consumables to be printed based on the transmission speed and the light transmittance data.
[0010] Furthermore, the target position in the consumable material to be printed includes at least two holes, and the light transmission data includes the light transmission time of each hole in the target position and / or the light-proof time between every two holes.
[0011] Furthermore, determining the model of the consumables to be printed based on the transmission speed and the light transmittance data includes: determining sequence information of the holes in the target position based on the transmission speed and the light transmittance data; and determining the model of the consumables to be printed based on the sequence information.
[0012] Furthermore, the determining of the sequence information of the holes in the target position based on the transmission speed and the light transmission data includes: determining the length of each hole based on the transmission speed and the light transmission time of each hole; determining the interval length between each two holes based on the transmission speed and the light-impermeable time between each two holes; and determining the sequence information of the holes in the target position based on the length of each hole and the interval length between each two holes.
[0013] Furthermore, determining the model of the consumables to be printed based on the light transmittance data includes: obtaining operating parameters of a motor that drives the consumables transmission component; and determining the model of the consumables to be printed based on the operating parameters and the light transmittance data.
[0014] Furthermore, the photoelectric sensor includes a light source assembly and a light sensor, and the light source assembly and the light sensor are respectively located on both sides of the consumable material transmission assembly. The consumable material transmission assembly includes a light source detection hole corresponding to the target position, and the number of the light source detection hole is one.
[0015] In a second aspect, the present application provides a printing device integrated in a printer, wherein the printer is equipped with a consumable material transmission component and a photoelectric sensor, and the device includes:
[0016] a data acquisition module, configured to acquire light transmittance data of a target position in the consumable material to be printed through the photoelectric sensor when the consumable material transport component transports the consumable material to be printed;
[0017] A model identification module, configured to determine the model of the consumable material to be printed based on the light transmission data;
[0018] The consumables printing module is used to determine the printing information of the consumables to be printed based on the model, and print the consumables to be printed of the model based on the printing information.
[0019] In a third aspect, the present application provides a printer, comprising:
[0020] at least one processor; and
[0021] a memory communicatively connected to the at least one processor; wherein,
[0022] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the printing method described in any embodiment of the present application.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the printing method described in any embodiment of the present application when executed.
[0024] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the printing device or separately from the processor of the printing device, which is not limited in this application.
[0025] The description of the second, third and fourth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third and fourth aspects can refer to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0026] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description.
[0027] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, and usage scenarios of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0029] Figure 1 A first flow chart of a printing method provided in an embodiment of the present application;
[0030] Figure 2a A schematic diagram of a portion of a printer provided in an embodiment of the present application;
[0031] Figure 2bA schematic diagram of a consumable material transport assembly provided in an embodiment of the present application;
[0032] Figure 3 A second flow chart of a printing method provided in an embodiment of the present application;
[0033] Figure 4 A schematic structural diagram of a printing device provided in an embodiment of the present application;
[0034] Figure 5 4 is a block diagram of a printer used to implement a printing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0036] It should be noted that the terms "first", "second", "target" and "original" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than that illustrated or described herein. In addition, the terms "including", "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] Figure 1 This is a schematic diagram of the first process flow of a printing method provided in an embodiment of the present application. This embodiment is applicable to situations where a printer first identifies the model of a consumable and then prints the consumable. The printing method provided in this embodiment can be performed by a printing device provided in an embodiment of the present application. The device can be implemented in software and / or hardware and integrated into an electronic device that performs the method. Preferably, the printer in the embodiment of the present application is equipped with a consumable transport component and a photoelectric sensor.
[0038] See also Figure 1 The method of this embodiment includes but is not limited to the following steps:
[0039] S110 , when the consumable material transport component transports the consumable material to be printed, light transmittance data of a target position in the consumable material to be printed is collected by a photoelectric sensor.
[0040] The consumable transport assembly is located outside the printer and is used to carry the consumables to be printed through the printer's print area to print the desired graphics or text on the consumables. The consumables to be printed can be items that are difficult to transport directly, such as PCB panels, signage, and bank cards. This application does not limit the connection method and configuration location of the consumable transport assembly. The consumable transport assembly can be a base plate made of any material.
[0041] In the embodiment of the present application, after the consumables transport assembly carries the consumables to be printed into the printer, it is driven by the printer's transport mechanism to move toward the printer's printing area. The printer's transport mechanism includes a motor as a power source and a transmission mechanism for converting the motor's rotational motion into linear motion. The motor is preferably a stepper motor, and the transmission mechanism can be a screw drive mechanism, a belt drive mechanism, or a chain drive mechanism.
[0042] Photoelectric sensors include a light source component and a light sensor, such as Figure 2a The figure shows a schematic diagram of a part of the printer. The light source assembly and the light sensor are located on both sides of the consumables transmission assembly. The consumables transmission assembly includes a light source detection hole corresponding to the target position. The light sensor is used to receive the light emitted by the light source assembly. The light source assembly and the light sensor are used to detect the light penetration between the consumables transmission assembly and the consumables. There are multiple holes arranged in an orderly manner at the target position of the consumables (such as Figure 2a The holes S1 and S2 are preferably arranged in a longitudinal direction and are larger than their width directions, and the holes can be relatively large. This allows for a larger hole-drilling process error and reduces the precision requirements for the hollowing process. This avoids the problem of being unable to identify the consumable model due to the inability to ensure high hole precision in step S120. Different consumable models have holes at their target locations that differ in at least one of length, number, and order. That is, different consumable models are represented by permutations and combinations of holes of different lengths.
[0043] The number of light source detection holes in the consumables transmission component is one, such as Figure 2b The diagram shows a schematic diagram of the consumables transport assembly, with the white area representing the light source detection hole. This arrangement has the advantage of allowing for a relatively large hole size, since there is only one hole, allowing for a larger hole-drilling error. This reduces the precision requirements for the hollowing process, thus avoiding the problem of being unable to identify the consumable model due to a lack of high hole precision in step S120.
[0044] The consumables transmission component transmits consumables. When the light source detection hole on the consumables transmission component and the hole on the consumables overlap, the light emitted by the light source component can pass through and then be received by the light sensor. Through this method, in the process of the consumables transmission component carrying the consumables to be printed for transmission, the light transmittance data of the target position in the consumables to be printed can be collected. The present application does not limit the size and shape of the light source detection hole. Optionally, the size of the light source detection hole is larger than the size of the target position on the printing consumables, so that when the printing consumables are placed on the consumables transmission component, the holes on the printing consumables are all within the range of the light source detection hole. The present application does not limit the shape of the hole at the target position of the consumables.
[0045] S120: Determine the model of the consumables to be printed based on the light transmittance data.
[0046] In the embodiment of the present application, since the arrangement and combination of different hole lengths in the consumables to be printed represents the model of the consumables to be printed, the model of the consumables to be printed can be determined based on the light transmittance data.
[0047] Optionally, the light transmission data includes the number of steps of the stepper motor corresponding to when the light source detection hole on the consumable material transmission component overlaps with the hole on the consumable material.
[0048] Specifically, the model of the consumables to be printed is determined based on the light transmission data, including: the consumables transmission component transmits the consumables to be printed by driving a stepper motor, and the operating parameters of the stepper motor, such as the step length or step angle, can be obtained; based on the operating parameters (i.e., the step length or step angle) and the light transmission data (i.e., the number of steps of the stepper motor), the length of the corresponding hole can be determined, that is: the length of the hole = F (step length or step angle, number of steps), where F is a preset function. Through this method, the length of all holes at the target position is further determined. A database table of different models and hole lengths is pre-constructed, and the model of the consumables to be printed can be determined by searching the database table based on the lengths of all holes.
[0049] S130 : Determine printing information of the consumables to be printed based on the model, and print on the consumables to be printed of the model based on the printing information.
[0050] In the embodiment of the present application, the model of the consumable to be printed is obtained through the above steps, and then the consumable model is compared with the stored consumable information to call out the printing information (such as a pattern) corresponding to the consumable model. Finally, the consumable model to be printed is printed based on the printing information. By detecting and analyzing the holes at the target position of the consumable to be printed, the model of the consumable to be printed is accurately obtained, thereby ensuring accurate printing of the consumable to be printed.
[0051] The technical solution provided by this embodiment is that when the consumables transmission component transmits the consumables to be printed, the light transmittance data of the target position in the consumables to be printed is collected by the photoelectric sensor; the printing information of the consumables to be printed is determined based on the model, and the consumables to be printed of the model are printed based on the printing information. This application identifies the model of the consumables by configuring the consumables transmission component and the photoelectric sensor on the printer. The solution is simple and easy to implement, and can also reduce industrial costs. In this application, when the light source detection hole on the consumables transmission component and the hole on the consumables overlap, the number of steps of the stepper motor is collected by the photoelectric sensor, and the length of all holes at the target position is determined in combination with the operating parameters of the stepper motor. Finally, based on the length of all holes at the target position, the model of the consumables to be printed can be accurately determined, which can improve the accuracy of consumables model recognition.
[0052] The printing method provided by the embodiment of the present application is further described below. Figure 3 This is a second flow chart of a printing method provided in an embodiment of the present application. The embodiment of the present application is optimized based on the above embodiment, specifically: this embodiment determines the model of the consumables to be printed based on the light transmittance data (that is, Figure 1 A detailed explanation is given for step S120 in the corresponding embodiment.
[0053] See also Figure 3 The method of this embodiment includes but is not limited to the following steps:
[0054] S210: Acquire a transmission speed of the consumables to be printed by the consumables transmission component.
[0055] The target location in the filament to be printed includes at least two holes, each of which can have a different length. Different types of filament can be represented by permutations of holes of different lengths and spacing. Optionally, a minimum hole length and a minimum hole spacing between two holes can be set. The better the filament's hole-drilling process, the smaller the hole length error, the smaller the minimum hole length can be, and of course, the smaller the minimum hole spacing can be.
[0056] In the embodiments of this application, Figure 2a As shown, the consumable material transport assembly carries the consumable material to be printed and moves from left to right, and the transport speed of the consumable material transport assembly in transporting the consumable material to be printed can be obtained.
[0057] S220 , determining sequence information of the holes in the target position based on the transmission speed and the light transmission data.
[0058] like Figure 2aAs shown, the light source assembly and the light sensor are respectively located on the upper and lower sides of the consumables transmission assembly. The consumables transmission assembly carries the consumables to be printed from left to right. When the area without holes passes directly under the light source assembly, the light sensor has no signal. When the area with holes passes directly under the light source assembly, the light can pass through the holes and the light source detection holes to illuminate the light sensor. The duration of the light sensor's induction is the time required for the corresponding hole to pass through the light source, so that the light transmittance data of the target position in the consumables to be printed can be collected.
[0059] In an optional embodiment, the light transmission data includes the light transmission time of each hole in the target position and the light-proof time between every two holes.
[0060] During the process of the consumables transport assembly transporting the consumables to be printed, the sequence of the holes at the target location is simultaneously recorded, using the light transmission time of each hole and the dark transmission time between each two holes. Further, based on the transport speed and the light transmission data, the sequence information of the holes at the target location is determined, including: determining the length of each hole based on the transport speed and the light transmission time of each hole; determining the length of the interval between each two holes based on the transport speed and the dark transmission time between each two holes; and determining the sequence information of the holes at the target location based on the length of each hole and the length of the interval between each two holes.
[0061] For example, if the light transmission time of hole S1 is t1 and the transmission speed of the consumable transmission component is v, then the length of hole S1 is L1=v*t1. Therefore, the length of each hole can be calculated by the signal duration of the light sensor (i.e., the light transmission time of each hole) and the transmission speed of the consumable transmission component. If the opaque time between hole S1 and hole S2 is t12 and the transmission speed of the consumable transmission component is v, then the length of the interval between hole S1 and hole S2 is L12=v*t12. Therefore, the length of the interval between the two holes can be calculated by the no-signal duration of the light sensor (i.e., the opaque time between each two holes) and the transmission speed of the consumable transmission component. Finally, the length of each hole in the target position and the length of the interval between each two holes are recorded in sequence according to a preset order (such as the order of the consumable transmission direction), thereby obtaining the sequence information of the holes in the target position.
[0062] In an alternative embodiment, the light transmission data only includes the light transmission duration of each hole in the target location. The length of each hole is calculated based on the transport speed of the consumable transport assembly and the light transmission duration of each hole. The length of each hole is recorded in a predetermined order and determined as the sequence information of the holes in the target location.
[0063] In an alternative embodiment, the light transmission data only includes the duration of opacity between each pair of wells. The interval length between each pair of wells is calculated based on the transport speed of the consumable transport assembly and the duration of opacity between each pair of wells. The interval lengths between each pair of wells are recorded sequentially in a predetermined order and determined as the sequence information for the wells in the target position.
[0064] S230 : Determine the model of the consumable material to be printed based on the sequence information of the holes.
[0065] In an embodiment of the present application, the sequence information of the holes in the target position is calculated through the light transmission time of each hole and the light-proof time between each two holes through the above steps, and a database table between different models and the sequence information of the holes is pre-constructed. The model of the consumables to be printed can be determined by searching the database table based on the sequence information of the holes.
[0066] The technical solution provided in this embodiment is to obtain the transmission speed of the consumables to be printed by the consumables transmission component; determine the sequence information of the holes in the target position based on the transmission speed and the light transmittance data; and determine the model of the consumables to be printed based on the sequence information of the holes. This application identifies the model of the consumables by configuring a consumables transmission component and a photoelectric sensor on the printer. The solution is simple and easy to implement, and can also reduce industrial costs. When the light source detection hole on the consumables transmission component and the hole on the consumable overlap, this application uses a photoelectric sensor to collect the light transmittance time of each hole and the light-proof time between each two holes, and then combines the transmission speed of the consumables transmission component to determine the sequence information of the holes on the target position. Finally, based on the sequence information of the holes, the model of the consumables to be printed can be accurately determined, which can improve the accuracy of consumables model recognition.
[0067] Figure 4 This is a schematic diagram of the structure of a printing device provided in an embodiment of the present application. The device is integrated into a printer, and the printer is equipped with a consumable material transmission component and a photoelectric sensor, such as Figure 4 As shown, the apparatus 400 may include:
[0068] The data acquisition module 410 is configured to acquire light transmittance data of a target position in the consumable material to be printed by the photoelectric sensor when the consumable material transport assembly transports the consumable material to be printed;
[0069] A model identification module 420, configured to determine the model of the consumable material to be printed based on the light transmission data;
[0070] The consumables printing module 430 is configured to determine printing information of the consumables to be printed based on the model, and print on the consumables to be printed of the model based on the printing information.
[0071] Furthermore, the model identification module 420 may be specifically configured to: obtain a transmission speed of the consumables to be printed by the consumables transmission component; and determine a model of the consumables to be printed based on the transmission speed and the light transmittance data.
[0072] Optionally, the target position in the consumable material to be printed includes at least two holes, and the light transmission data includes the light transmission time of each hole in the target position and / or the light-proof time between every two holes.
[0073] Furthermore, the model identification module 420 may be specifically configured to: determine sequence information of the holes in the target position based on the transmission speed and the light transmittance data; and determine the model of the consumable material to be printed based on the sequence information.
[0074] Furthermore, the above-mentioned model identification module 420 can also be specifically used to: determine the length of each hole based on the transmission speed and the light transmission time of each hole; determine the interval length between each two holes based on the transmission speed and the light-proof time between each two holes; determine the sequence information of the holes in the target position based on the length of each hole and the interval length between each two holes.
[0075] Furthermore, the model identification module 420 may be specifically configured to: obtain operating parameters of a motor driving the consumable transport assembly; and determine the model of the consumable to be printed based on the operating parameters and the light transmittance data.
[0076] Optionally, the photoelectric sensor includes a light source assembly and a light sensor, and the light source assembly and the light sensor are respectively located on both sides of the consumable material transmission assembly, and the consumable material transmission assembly includes a light source detection hole corresponding to the target position, and the number of the light source detection hole is one.
[0077] The printing device provided in this embodiment can be applied to the printing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0078] Figure 5 1 is a block diagram of a printer for implementing a printing method of an embodiment of the present application. The printer 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The printer can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0079] like Figure 5 As shown, printer 10 includes at least one processor 11 and memory, such as read-only memory (ROM) 12 and random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. Processor 11 can perform various appropriate actions and processes based on the computer programs stored in ROM 12 or loaded from storage unit 18 into RAM 13. RAM 13 can also store various programs and data required for the operation of printer 10. Processor 11, ROM 12, and RAM 13 are interconnected via bus 14. An input / output (I / O) interface 15 is also connected to bus 14.
[0080] Various components in the printer 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard and a mouse; an output unit 17, such as various types of displays and speakers; a storage unit 18, such as a magnetic disk and an optical disk; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the printer 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0081] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the printing method.
[0082] In some embodiments, the printing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on printer 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the printing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the printing method in any other suitable manner (e.g., via firmware).
[0083] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0084] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0085] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0086] To provide interaction with a user, the systems and techniques described herein can be implemented on a printer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the printer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0087] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0088] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0089] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved. This is not limited herein.
[0090] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A printing method, characterized in that: Applied to a printer equipped with a consumable material transmission component and a photoelectric sensor, the method includes: When the consumable material transport component transports the consumable material to be printed, light transmittance data of a target position in the consumable material to be printed is collected by the photoelectric sensor; Determining the model of the consumable material to be printed based on the light transmittance data includes: obtaining a transmission speed of the consumable material to be printed by the consumable material transmission component; determining the model of the consumable material to be printed based on the transmission speed and the light transmittance data, wherein the target position in the consumable material to be printed includes at least two holes, and the light transmittance data includes a light transmittance time of each hole in the target position and / or a light-proof time between each two holes; Determining printing information of the consumable material to be printed based on the model, and printing on the consumable material to be printed of the model based on the printing information; Wherein, determining the model of the consumable material to be printed based on the transmission speed and the light transmittance data includes: determining sequence information of the holes in the target position based on the transmission speed and the light transmittance data; determining the model of the consumable material to be printed based on the sequence information; The method of determining the sequence information of the holes in the target position based on the transmission speed and the light transmission data includes: determining the length of each hole based on the transmission speed and the light transmission time of each hole; determining the interval length between each two holes based on the transmission speed and the light-proof time between each two holes; and determining the sequence information of the holes in the target position based on the length of each hole and the interval length between each two holes.
2. The printing method according to claim 1, wherein: The determining the model of the consumable material to be printed based on the light transmittance data includes: Obtaining operating parameters of a motor that drives the consumable material transport assembly; The model of the consumable material to be printed is determined based on the operating parameters and the light transmittance data.
3. The printing method according to claim 1, wherein: The photoelectric sensor includes a light source assembly and a light sensor, and the light source assembly and the light sensor are respectively located on both sides of the consumable material transmission assembly. The consumable material transmission assembly includes a light source detection hole corresponding to the target position, and the number of the light source detection hole is one.
4. A printing device, characterized in that: Integrated in a printer, the printer is equipped with a consumable material transmission component and a photoelectric sensor, and the device includes: a data acquisition module, configured to acquire light transmittance data of a target position in the consumable material to be printed through the photoelectric sensor when the consumable material transport component transports the consumable material to be printed; A model identification module, configured to determine the model of the consumable material to be printed based on the light transmission data; a consumables printing module, configured to determine printing information of the consumables to be printed based on the model, and print on the consumables to be printed of the model based on the printing information; The model identification module is specifically configured to obtain a transmission speed of the consumable material to be printed by the consumable material transmission assembly; determine the model of the consumable material to be printed based on the transmission speed and the light transmittance data, wherein the target position in the consumable material to be printed includes at least two holes, and the light transmittance data includes a light transmittance duration of each hole in the target position and / or a light-blocking duration between each two holes; The model identification module is further specifically configured to determine sequence information of the holes in the target position based on the transmission speed and the light transmittance data; and determine the model of the consumable material to be printed based on the sequence information; The model identification module is further specifically used to determine the length of each hole based on the transmission speed and the light transmission time of each hole; determine the interval length between each two holes based on the transmission speed and the light-proof time between each two holes; and determine the sequence information of the holes in the target position based on the length of each hole and the interval length between each two holes.
5. A printer, characterized in that: The printer comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the printing method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the printing method according to any one of claims 1 to 3 when executed.
Citation Information
Patent Citations
Paper leaves identification device and paper leaves processing device and paper leaves identification method
CN101647046A
Automatic paper discriminator and discrimination
CN1896721A