WO2012100688A1 - 打印介质标记的判断方法及装置、打印装置 - Google Patents

打印介质标记的判断方法及装置、打印装置 Download PDF

Info

Publication number
WO2012100688A1
WO2012100688A1 PCT/CN2012/070339 CN2012070339W WO2012100688A1 WO 2012100688 A1 WO2012100688 A1 WO 2012100688A1 CN 2012070339 W CN2012070339 W CN 2012070339W WO 2012100688 A1 WO2012100688 A1 WO 2012100688A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection data
mark
printing
medium
detection
Prior art date
Application number
PCT/CN2012/070339
Other languages
English (en)
French (fr)
Inventor
邢月启
李宏源
王春涛
谷长刚
王鑫
Original Assignee
山东新北洋信息技术股份有限公司
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 山东新北洋信息技术股份有限公司 filed Critical 山东新北洋信息技术股份有限公司
Publication of WO2012100688A1 publication Critical patent/WO2012100688A1/zh

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/36Blanking or long feeds; Feeding to a particular line, e.g. by rotation of platen or feed roller
    • B41J11/42Controlling printing material conveyance for accurate alignment of the printing material with the printhead; Print registering
    • B41J11/46Controlling printing material conveyance for accurate alignment of the printing material with the printhead; Print registering by marks or formations on the paper being fed

Definitions

  • a commonly used print medium having a fixed length includes a label paper having a binder and a label paper without a binder.
  • Figure la shows a label paper pattern. As shown in the figure, a label a of fixed length h is adhered to the continuous liner A by an adhesive, and a gap d is fixed between adjacent labels. The gap d serves as a mark for distinguishing adjacent two labels.
  • Figure lb illustrates a marking paper pattern, as shown, with a regularly defined black area m on the surface of the printing medium, the black area m being used as a mark to distinguish adjacent adjacent fixed lengths h'.
  • Figure lc illustrates another type of marking paper, as shown, with a blank gap e between adjacent two ticket faces of fixed length h, which is used as a marker to distinguish adjacent two tickets. Since the photosensitive characteristics of the marked portion and the non-marked portion of the non-continuous printing medium are different, for example, the reflective property and the light transmittance between the label and the liner are different, and the reflective property and the light transmittance between the printing paper and the black mark are different. The light reflection between the medium and the blank gap is different.
  • the output value of the photoelectric sensor is compared with the reference threshold to determine the position of the mark on the printing medium, thereby Position the print media. Since the photosensitive characteristics of the medium are closely related to the material and thickness of the medium, the threshold values of the different types of print medium judgment marks are different.
  • the label paper is taken as an example to illustrate the influence of the difference in light transmittance of different media on the reference threshold. As shown in FIG.
  • the horizontal axis is the detection position
  • the vertical axis is the amplitude of the detection signal
  • the first waveform 70 is the signal waveform when the sensor detects the first label paper
  • the area BC is the signal waveform at the label
  • the area AB is the signal waveform at the backing paper.
  • the first straight line 74 can be used as the boundary line between the area AB and the area BC in the first waveform 70. Therefore, the amplitude of the first straight line 74 is used as a reference.
  • the threshold value is determined by comparing the signal amplitude of each detection point in the waveform, that is, the photoelectric sensor output value of the detection point (hereinafter referred to as detection data) with the reference threshold value, thereby determining the liner paper and the label of the label paper.
  • the second waveform 60 is a signal waveform when the sensor detects a second label paper whose transmittance is significantly stronger than that of the first label paper, wherein the area BC is a signal waveform at the label, and the area AB is a signal waveform at the backing paper, but The amplitude of the detection signal of the second label paper is higher than the detection signal amplitude of the first label paper as a whole, because the original first straight line 74 is used as the second label.
  • the label area BC of the second waveform 60 may be mistaken. It is judged as the backing area, which causes the wrong positioning of the label paper.
  • the second line 64 is more suitable as the boundary line between the area AB and the area BC in the second waveform 60. Therefore, the amplitude of the second line 64 is used as a reference threshold, and the detection data of each detection point in the waveform is compared with it. , can accurately determine the liner and label of the label paper.
  • the conventional print medium mark detection method performs threshold check after replacing the medium, and updates the reference threshold. Specifically, after replacing the medium, the printer needs to advance at least one ticket length before performing printing, so that the photoelectric sensor detects the marked portion and the non-marked portion of the medium during the advancement of the printing medium, and the photoelectric sensor performs the test signal obtained. Calculate, get a new threshold and save. Since the threshold check is required to be started each time the print medium is replaced, not only a certain length of the print medium is wasted, but also the use efficiency of the printing apparatus is affected. In the prior art, when the printing medium is replaced, the determination of the printing medium mark requires frequent threshold checking, and no effective solution has been proposed yet.
  • the present invention has been made in view of the problem of judging the need to frequently perform threshold verification when replacing a print medium in the prior art. Therefore, the main object of the present invention is to provide a judgment of a print medium mark.
  • the method and device, and the printing device solve the above problems.
  • a method of judging a print medium mark is provided.
  • the method for determining the marking of the printing medium comprises: acquiring detection data, wherein the detection data comprises first detection data and second detection data, and the first detection data and the second detection data are detection data corresponding to different printing positions of the printing medium; And determining a mark on the print medium according to the relationship between the first test data and the second test data.
  • a judging device for printing a medium mark comprises: an obtaining module, configured to acquire the detection data, wherein the detection data comprises the first detection data and the second detection data and the first detection data and the second detection data are different printings corresponding to the printing medium The detection data of the location; the determining module, configured to determine the mark on the printing medium according to the relationship between the first detection data and the second detection data.
  • a printing apparatus is provided.
  • the printing device includes: a printing mechanism for performing a printing operation on the printing medium; a detecting device, configured to detect the printing medium, to obtain detection data, wherein the detection data includes the first detection data and the second detection data and the first detection The data and the second detection data are detection data corresponding to different printing positions of the printing medium; the printing medium marking determining means is configured to determine the marking on the printing medium based on the relationship between the first detection data and the second detection data.
  • the acquisition detection data is employed, wherein the detection data includes first detection data and second detection data and the first detection data and the second detection data are detection data corresponding to different print positions of the print medium; and according to the first The relationship between the detection data and the second detection data determines the marking on the printing medium.
  • FIG. 1a is a schematic view of a common label paper pattern
  • FIG. 1b is a schematic diagram of a common label paper pattern
  • FIG. 1c is another common pattern of label paper
  • FIG. 2 is a prior art FIG.
  • FIG. 3 is a schematic diagram of a module composition of a printing apparatus according to an embodiment of the present invention
  • FIG. 3b is a schematic diagram of a module composition of a printing apparatus according to another embodiment of the present invention
  • FIG. 5a is a schematic diagram of a first embodiment of a photoelectric sensor of a printing apparatus according to an embodiment of the present invention
  • FIG. 5b is a schematic view of a printing apparatus according to an embodiment of the present invention
  • FIG. 6a is a block diagram showing the composition of a judging device for printing a medium mark according to an embodiment of the present invention
  • FIG. 6b is a block diagram of a judging device for printing a medium mark according to a preferred embodiment of the present invention
  • Figure 7 is a flow chart of a method for judging a print medium mark according to a first embodiment of the present invention
  • Example embodiments of the present invention for detecting a marker flowchart
  • FIG. 9 is a flowchart of a second method of determining marking printing medium of the present embodiment of the invention
  • 10 is a flowchart of a method of determining a print medium mark according to a third embodiment of the present invention
  • FIG. 11 is a flowchart of a method for determining a peak and a valley of a print medium mark detecting method according to an embodiment of the present invention
  • FIG. 3a is a block diagram showing the composition of a printing apparatus according to an embodiment of the invention. As shown in Fig. 3a, the printing apparatus includes a printing mechanism 12, a detecting device 10, and a judging device (referred to as a mark judging device) 22 for printing a medium mark.
  • a printing mechanism 12 As shown in Fig. 3a, the printing apparatus includes a printing mechanism 12, a detecting device 10, and a judging device (referred to as a mark judging device) 22 for printing a medium mark.
  • the printing mechanism 12 is configured to perform a printing operation on the printing medium; the detecting device 10 is configured to detect the printing medium to obtain the detection data, wherein the detection data includes the first detection data and the second detection data, and the first detection data and the first The second detection data is detection data corresponding to different printing positions of the printing medium; the printing medium marking determining means 22 is for determining the marking on the printing medium based on the relationship between the first detection data and the second detection data.
  • the above printing apparatus further includes a controller 21, wherein the detection data obtained by the detecting means 10 can be transmitted to the mark judging means 22 via the controller 21, or the detection data can be directly sent to the mark judging means 22.
  • the printing apparatus since the printing apparatus detects different print positions during the printing process and determines the marks on the print medium according to the relationship of the detected data of the different print positions, it is not necessary to separately and preset for each of the detected data.
  • the thresholds are compared to determine the mark on the print medium, thereby avoiding the waiting process caused by the mark check when the user replaces the medium, saving the user time, and improving the use efficiency of the printing device while facilitating the user's use.
  • the printing apparatus described above may further include: a memory 23 for storing a determination result of the determination means for detecting the data and/or the printing medium mark.
  • FIG. 3b is a schematic diagram of a module of a printing apparatus according to another embodiment of the present invention.
  • the detecting device is a photoelectric sensor 11, as shown in FIG.
  • the printing device includes: a controller 21, a photoelectric sensor 11, Marking device 22, memory 23, printing mechanism 12 and medium conveying mechanism 13, wherein controller 21 controls the operation of each component module; photosensor 11 is connected to the controller for detecting the reflective property or light transmittance of the printing medium And detecting the detection data; the mark judging means 22 processes the detection data output from the photosensor 11, and determines whether the detection position is a mark of the printing medium; the memory 23 stores the detection data of the photosensor 11 and the mark determination result of the mark judging means 22. And a medium conveying mechanism 13 for conveying the movement of the printing medium; and a printing mechanism 12 for printing the printing data on the medium.
  • FIG. 4 is a schematic view showing the layout of each module of the printing apparatus in the paper path according to an embodiment of the invention.
  • a photosensor 11, a printing mechanism 12, a medium conveying mechanism 13, and the like are arranged in the paper path 14, wherein the photosensor 11 is located upstream of the printing mechanism 12 in the medium conveying direction 19.
  • the printing mechanism 12 includes a print head 121 and a platen roller 122.
  • the print medium passes between the print head 121 and the platen roller 122. Under the support of the platen roller 122, the print head 121 can print an image or text on the surface of the print medium.
  • the platen roller 122 is a rotatable transport roller that is in tangential contact with the print head 121 and has a function of transporting the medium.
  • the photosensor 11 includes a light emitter 11A and a light receiver 11B.
  • the light emitter 11 A and the light receiver 11B are disposed on both sides of the paper path and are disposed opposite to each other.
  • the light emitter 11A and the light receiver 11B are mounted on the channel upper side 14A and the channel lower side 14B, respectively, and are disposed opposite each other.
  • the working principle of the photoelectric sensor will be described below by taking the medium 18 as a label paper as an example.
  • the light emitter 11A emits light to the label paper 18, and the light receiver 11B detects the transmitted light transmitted through the label paper 18. Since the paper-backing area of the label paper is highly transmissive and the label area is weak, the label paper 18 When advancing in the paper path along the direction of the arrow 19, when the label area reaches the light emitter 11A, the light receiver 11B receives less light, and the value of the output detection data is small, that is, the valley of the detection signal waveform. Referring to the wave trough; the label paper 18 continues to advance, as the backing paper area is constantly approaching the light emitter 11A, the light received by the light receiver 11B becomes stronger and stronger, and the value of the outputted detection data becomes larger and larger, when the backing paper area is completely reached.
  • the light received by the light receiver 11B is the strongest, and the value of the detected data is the largest, that is, the peak of the detected signal waveform, which is simply referred to as a peak.
  • the peak is the maximum of the adjacent plurality of detected data, for example, the maximum of the three adjacent detected data.
  • the working principle of the photoelectric sensor will be described below by taking the medium 18 as a marking paper as an example.
  • the light emitter 11A illuminates the marking paper, and the light receiver 11B receives the light reflected by the surface of the marking paper. Since the non-black marking area of the marking paper is highly reflective and the black marking area is weak, the marking paper 18 is along the arrow 19 When the direction advances in the channel, when the black mark area When the domain arrives at the light emitter 11A, the light receiver 11B receives less reflected light, and the value of the detected data is the smallest, which is a trough. It should be noted that the valleys mentioned in the embodiment of the present invention are adjacent to each other.
  • the minimum value among the detected data for example, the minimum value among the adjacent three detected data; the marking paper 18 continues to advance, and when the non-black mark area continuously approaches the light emitter 11A, the reflected light received by the light receiver 11B comes The stronger the output detection data is, the larger the value is.
  • the non-black mark area reaches the light emitter 11A completely, the light received by the light receiver 11B is the strongest, and the value of the output detection data is the largest, that is, the peak. Therefore, the position of the mark on the print medium can be determined by judging the wave crest, so that the printing apparatus can position the print medium 18 in accordance with the mark position to cause the print head 12 to print from the set position.
  • the judging means of the print medium mark includes an acquisition module 222 and a determination module 224.
  • the obtaining module 222 is configured to acquire the detection data, where the detection data includes the first detection data and the second detection data, and the first detection data and the second detection data are detection data corresponding to different print positions of the print medium; 224 is configured to determine a mark on the print medium according to the relationship between the first detected data and the second detected data.
  • the obtaining module 222 includes: a first acquiring submodule, acquiring a plurality of adjacent detecting data corresponding to different print positions; and a determining submodule, configured to determine adjacent maximum and minimum values of the plurality of adjacent detected data And the maximum value and the minimum value are taken as the first detection data and the second detection data, respectively.
  • Figure 6b is a block diagram showing the composition of a preferred embodiment of a judging device for printing a medium mark according to the present invention. As shown in the figure, the judging means of the print medium mark according to the embodiment further includes a numbering module 226, a saving module 227, and an output module 228 in addition to the obtaining module 222 and the determining module 224 of the above embodiment.
  • the numbering module 226 is configured to number different printing positions to obtain a plurality of detecting position numbers; the saving module 227 is configured to save a plurality of adjacent detection data, a plurality of detection position numbers, and a plurality of adjacent detection data and multiple detections. Corresponding relationship between the position numbers; and the output module 228 is configured to output a flag detecting the mark when it is determined that the mark on the print medium is detected.
  • each module may be a software module or a hardware device.
  • the printing apparatus may include the judging means of the printing medium mark provided by any of the embodiments of the present invention. Fig.
  • Step S10 Acquire detection data, where the detection data includes first detection data and second detection data, and the first detection data and the second detection data are different corresponding to the print medium.
  • the first detection data may be first acquired, and after the printing medium advances by a certain distance, the second detection data is acquired.
  • Step S12 determining a mark on the print medium according to the relationship between the first detection data and the second detection data.
  • acquiring the detection data comprises: acquiring a plurality of adjacent detection data corresponding to different print positions; determining adjacent maximum and minimum values among the plurality of adjacent detection data; and taking the maximum value and the minimum value as the first Detection data and second detection data.
  • acquiring the plurality of adjacent detection data corresponding to the different print positions comprises: acquiring, by the print medium, one of the plurality of adjacent detection data for each preset unit distance.
  • the method may include: numbering different print positions to obtain a plurality of detection position numbers; and storing a plurality of adjacent detection data, a plurality of detection position numbers, and a plurality of adjacent detection data and a plurality of detection position numbers.
  • determining, according to the relationship between the first detection data and the second detection data, the marking on the printing medium comprises: determining whether a difference between the first detection data and the second detection data is greater than a preset difference value and/or a first detection data and Whether the rate of change of the second detection data is greater than a preset rate of change threshold; and the difference between the first detection data and the second detection data is greater than a preset difference and/or the rate of change of the first detection data and the second detection data is greater than
  • the rate of change threshold is preset, it is determined that the mark on the print medium is detected and the mark on the print medium is between the detected positions of the first test data and the second test data.
  • Step S20 the medium advances by one unit distance.
  • the media transporter 13 transports the print medium 18 a unit distance in the paper feed path 14, the minimum of which is the minimum transfer unit distance of the media transport mechanism 13, such as a step of a stepper motor.
  • the unit distance is the distance of a pixel row in the direction of media transport, such as a resolution of 200 dpi (dot per inch).
  • the printer has a pixel line distance of 1/8 mm. The smaller the unit distance is, the more data is detected, and the smaller the detection error of the mark.
  • Each unit of the medium advances corresponds to a detection position.
  • step S21 the detection data is output.
  • the light emitter 11A always emits detection light to the print medium
  • the light receiver 11B receives the light signal if the light emitter and the light receiver are mounted on the same side of the paper path And receiving the reflected light reflected by the surface of the medium. If the light emitter and the light receiver are mounted on different sides of the paper path, the transmitted light transmitted through the medium is received, and a detection data is output according to the intensity of the light.
  • the optical receiver outputs detection data corresponding to a certain detection position on the medium, and numbers the detection position, and generates a detection position number according to the number of each unit distance of the medium being incremented by one. .
  • the detection data and the detected position number are recorded in the memory 23 for the determination of the print medium mark.
  • step S22 it is determined whether it is a mark of the print medium.
  • the detection data it is judged whether the detection position is a mark of the printing medium, such as a gap between consecutive labels on the label paper, or a black mark on the label paper. If yes, go to step S23, otherwise, go to step S20 to advance the print medium.
  • step S23 the feedback is detected. When the mark is detected, the flag of the detected mark is fed back to the controller. After the printer controller receives the mark, the printing device positions the medium.
  • FIG. 9 is a flow chart showing a method of judging a print medium mark according to a second embodiment of the present invention. As shown in Fig. 9, the detailed processing flow is as follows: Step S41, it is determined whether or not a peak or a trough is detected.
  • the determination unit 22 processes the detection data outputted by the optical receiver 11B, and determines whether the peaks, troughs, peaks, and troughs are detected in detail. See FIG. 11 for details; if the valley is detected, go to step S42; When the peak is detected, the processing is continued from step S43; if neither the peak nor the trough is detected, then go to step S45.
  • step S42 the trough information is recorded. When a trough is detected, information related to the trough, such as the magnitude of the trough, is recorded to prepare for the next mark determination.
  • step S43 it is determined whether the amplitude difference between adjacent peaks and valleys is greater than the amplitude difference threshold.
  • Dt represents the amplitude of the peak
  • Db represents the amplitude of the valley
  • the amplitude difference threshold value indicates a difference in light transmittance between the label and the backing paper, which is expressed as a difference in amplitude of the transmitted light detection signal between the label area and the backing paper area when printing the label paper;
  • the amplitude difference threshold indicates the difference in reflectivity between the black mark and the print area, which is represented by the difference in amplitude of the reflected light detection signal between the black mark area and the print area;
  • the amplitude difference threshold indicates a difference in light transmittance between the printing area and the blank gap, which is expressed as a difference in amplitude of the transmitted light detection signal between the printing area and the blank gap.
  • the third waveform 40 is the transmitted light detection signal waveform of the label paper 30, wherein the waveform area 41-43 is when the printing medium moves in the direction of the arrow 36.
  • the signal waveform between the detection position 35 of the label 31 and the trailing edge 33 of the label, the waveform area 43-48 is the signal waveform of the label trailing edge 33, the backing edge 34 of the label leading edge area 32, and the first peak of the waveform area 41-43. 42.
  • Df (mxD + nxDfiy(m+n), m, n are positive integers, when Df is close to Dfl, n>m; when Df is close to D£2, m>n; Df is the amplitude Difference threshold.
  • step S44 the peaks of the valleys are marked.
  • the signal change between the peaks of the trough is caused by the light transmission mutation of the label paper, that is, the detection position between the peaks of the trough is the phase of the label paper.
  • Step S45 The adjacent label gap, that is, the mark is detected.
  • step S45 no flag is detected. If neither a peak nor a trough is detected, or the amplitude difference between adjacent peak troughs is not greater than the amplitude difference threshold, no mark is detected.
  • Figure 10 is a flow chart showing a method of judging a print medium mark according to a third embodiment of the present invention. The details will be described below with reference to Fig. 10: Step S51, it is determined whether or not a peak or a trough is detected.
  • the determination unit 22 processes the detection data outputted by the optical receiver 11B, and determines whether the peaks, troughs, peaks, and troughs are detected in detail. See FIG.
  • step S52 the trough information is recorded.
  • the related information of the last detected data is recorded as the trough information, such as the amplitude of the detected data, the serial number of the detected data, and the like, in preparation for the mark determination.
  • step S53 it is determined whether the amplitude difference between adjacent peaks and valleys is greater than the amplitude difference threshold.
  • Dt represents the amplitude of the peak
  • Db represents the amplitude of the valley
  • the rate of change of the amplitude between the peaks of the valleys indicates the rate of change of the amplitude of the signal between the adjacent valley detection point and the peak detection point, that is, the slope of the connection line between the adjacent valley detection point and the peak detection point, as shown in FIG.
  • the signal amplitude change rate between the first trough 41 and the first peak 42 is the slope of the first oblique line 45
  • the signal amplitude change rate between the second trough 43 and the second peak 44 is the second oblique line.
  • the slope of 47 Step S55, determining whether the amplitude change rate is greater than the change rate threshold. The signal amplitude change rate between adjacent wave peaks is judged.
  • the rate of change of the signal amplitude between adjacent wave peaks indicates the rising speed of the signal amplitude between adjacent wave peaks, that is, the steepness of the signal waveform between adjacent wave peaks.
  • Figure 12 is an example to illustrate how to determine the rate of change threshold.
  • the slope of the first oblique line 45 is the rate of change of the signal amplitude between the first valley 41 and the first peak 42
  • the slope of the second oblique line 47 is the rate of change of the signal amplitude between the second valley 43 and the second peak 44.
  • the slope of the first oblique line 45 is different from the slope of the second oblique line 47, and can be distinguished by the third oblique line 46 therebetween, that is, the third oblique line 46 is utilized.
  • the slope of the slope distinguishes the rate of change of amplitude between two adjacent valley peaks to determine whether the signal change between the peaks of the valley is caused by the mark. If the rate of change of the amplitude is greater than the threshold of the rate of change, the signal change is caused by the mark. Otherwise, it indicates that the signal change is not caused by the mark, such as an interference signal, etc., therefore, the slope of the third oblique line 46 can be used as the change rate threshold of the amplitude change between adjacent wave peaks.
  • step S56 the peaks of the troughs are marked.
  • the valley peak The signal change between the two is caused by the light transmission mutation of the label paper, that is, the detection position between the peaks of the trough is the adjacent label gap of the label paper, that is, the mark is detected.
  • step S57 no flag is detected.
  • FIG. 11 is a flow chart of a peak and trough determination method of a print medium mark detecting method according to an embodiment of the present invention. As shown in FIG. 11, the detailed processing flow is as follows: This determination flow determines the most recent three adjacent detection data, and determines whether the intermediate detection data is a peak or a trough.
  • the so-called three adjacent detection data are the current detection data, the last detection data, and the next detection data, wherein the current detection data is the intermediate detection data among the three detection data, and the detection data of the three detection data.
  • the measurement position numbers are connected; according to the detection order, the last three adjacent detection data are the last detection data in turn! ⁇ -, the current detection data DP next detection data D n+1 , using the magnitude relationship between D n and Dn - D n+1 determines whether the detection data D n is a trough or a peak, that is, determines a peak trough.
  • step S410 is D n smaller than and not greater than D n+1 ? Determining the magnitude relationship between D n and Dn- D n+1 if D n is both less than Dn-i and not greater than
  • step S411 is D n greater than and not less than D n+1 ? Determining the magnitude relationship between D n and Dn- D n+1 if D n is greater than Dn-i and not less than
  • D n+1 that is, D ⁇ Dn DnW, when the detection data D n is a local maximum value, then 1 is a peak corresponding to the detection signal, that is, a peak is detected, wherein the value of 0 nie is the amplitude of the peak, D n
  • the detection position number is the detection position number of the peak; otherwise, it indicates that D n is neither a local small value nor a local large value, that is, neither the trough nor the peak is detected.
  • the reliability of the mark detection is improved, and the problem of mark misjudgment caused by using the amplitude of the detection signal instead of the amplitude difference as the threshold value when replacing the medium is also solved.
  • the applicability of the detection method to different printing media is improved; not only the waste of media caused by the verification of the threshold is saved, but also the usability of the printing device is improved, and the user is convenient to use.

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

本发明公开了一种打印介质标记的判断方法及装置、打印装置。其中,该打印介质标记的判断方法包括:获取检测数据,其中,检测数据包括第一检测数据和第二检测数据并且第一检测数据和第二检测数据为对应于打印介质的不同打印位置的检测数据;以及根据第一检测数据和第二检测数据的关系确定打印介质上的标记。通过本发明,能够解决现有技术中在更换打印介质时,对打印介质标记进行判断需要频繁地进行阈值校验的问题,进而能够提高打印介质标记的判断效率。

Description

打印介质标记的判断方法及装置、 打印装置 技术领域 本发明涉及打印领域, 具体而言, 涉及一种打印介质标记的判断方法及装置、 打 印装置。 背景技术 常用的具有固定长度的打印介质包括有黏合剂的标签纸和无黏合剂的标记纸。 图 la示意出了一种标签纸样式, 如图所示, 固定长度为 h的标签 a通过黏合剂粘贴在连 续的衬纸 A上, 相邻两标签之间设有一距离固定的间隙 d, 该间隙 d作为区分相邻两 标签的标记。 图 lb示意出了一种标记纸样式, 如图所示, 在打印介质表面有规律的设 置黑色区域 m, 该黑色区域 m作为区分相邻的固定长度为 h'的票面的标记。 图 lc示 意出了另一种标记纸样式, 如图所示, 在固定长度为 h 的相邻两票面之间设置空白 间隙 e, 该空白间隙 e作为区分相邻两票面的标记。 由于上述非连续型打印介质的标 记部分与非标记部分的感光特性存在差异, 比如, 标签与衬纸之间反光性和透光性不 同, 打印纸与黑色标记之间反光性和透光性不同, 介质与空白间隙之间的反光性和透 光性不同, 因此, 通过在打印机的走纸通道中设置光电传感器, 利用光电传感器的输 出值与参考阈值对比, 判断打印介质上的标记位置, 从而对打印介质定位。 由于介质的感光特性与介质的材质、 厚度等参数密切相关, 因此, 不同类型的打 印介质判断标记的阈值不同。 下面以标签纸为例说明不同介质的透光性差异对参考阈 值的影响。 如图 2所示, 横轴为检测位置, 纵轴为检测信号的幅值, 第一波形 70为传 感器对第一标签纸进行检测时的信号波形, 其中区域 B-C为标签处的信号波形, 区域 A-B为衬纸处的信号波形, 从图中可以看出, 第一直线 74可以作为第一波形 70中区 域 A-B和区域 B-C的分界线, 因此, 将第一直线 74的幅值作为参考阈值, 通过对波 形中每个检测点的信号幅值, 即该检测点的光电传感器输出值 (以下简称检测数据) 与参考阈值对比, 从而判定出标签纸的衬纸和标签。第二波形 60为传感器对透光性明 显比第一标签纸强的第二标签纸进行检测时的信号波形, 其中区域 B-C为标签处的信 号波形, 区域 A-B为衬纸处的信号波形, 但是, 由于衬纸透光性的增强, 使第二标签 纸的检测信号幅值整体上高于第一标签纸的检测信号幅值, 因此, 当还使用原来的第 一直线 74作为第二标签纸信号波形的区域 A-B和区域 B-C的分界线时, 由于第一直 线 74的幅值与第二标签纸的标签区域的幅值十分接近, 因此第二波形 60的标签区域 B-C可能会被误判为衬纸区域, 从而引起标签纸的错误定位。 对于第二标签纸来说, 第二直线 64作为第二波形 60中的区域 A-B和区域 B-C的分界线更加合适, 因此, 将 第二直线 64的幅值作为参考阈值,通过对波形中每个检测点的检测数据与之对比, 就 能准确判定出标签纸的衬纸和标签。 因此, 为了保证打印介质标记检测的可靠性, 传统的打印介质标记检测方法是在 更换介质后进行阈值校验, 更新参考阈值。 具体是, 更换介质后, 在执行打印前, 打 印机需要前进至少一张票面长度, 使光电传感器在打印介质前进过程中对介质的标记 部分和非标记部分进行检测, 光电传感器对获得的测试信号进行计算, 得到新的阈值 并保存。 由于每次更换打印介质时, 都需要启动阈值检验, 因此不仅浪费了一定长度 的打印介质, 还影响了打印装置的使用效率。 针对现有技术中在更换打印介质时, 对打印介质标记进行判断需要频繁地进行阈 值校验的问题, 目前尚未提出有效的解决方案。 发明内容 针对现有技术中在更换打印介质时, 对打印介质标记进行判断需要频繁地进行阈 值校验的问题而提出本发明, 为此, 本发明的主要目的在于提供一种打印介质标记的 判断方法及装置、 打印装置, 以解决上述问题。 为了实现上述目的, 根据本发明的一个方面, 提供了一种打印介质标记的判断方 法。 该打印介质标记的判断方法包括: 获取检测数据, 其中, 检测数据包括第一检测 数据和第二检测数据并且第一检测数据和第二检测数据为对应于打印介质的不同打印 位置的检测数据; 以及根据第一检测数据和第二检测数据的关系确定打印介质上的标 记。 为了实现上述目的, 根据本发明的另一方面, 提供了一种打印介质标记的判断装 置。 该打印介质标记的判断装置包括: 获取模块, 用于获取检测数据, 其中, 检测数 据包括第一检测数据和第二检测数据并且第一检测数据和第二检测数据为对应于打印 介质的不同打印位置的检测数据; 确定模块, 用于根据第一检测数据和第二检测数据 的关系确定打印介质上的标记。 为了实现上述目的, 根据本发明的又一方面, 提供了一种打印装置。 该打印装置 包括: 打印机构, 用于对打印介质执行打印操作; 检测装置, 用于对打印介质进行检 测, 得到检测数据, 其中, 检测数据包括第一检测数据和第二检测数据并且第一检测 数据和第二检测数据为对应于打印介质的不同打印位置的检测数据; 打印介质标记的 判断装置, 用于根据第一检测数据和第二检测数据的关系确定打印介质上的标记。 通过本发明, 采用获取检测数据, 其中, 检测数据包括第一检测数据和第二检测 数据并且第一检测数据和第二检测数据为对应于打印介质的不同打印位置的检测数 据; 以及根据第一检测数据和第二检测数据的关系确定打印介质上的标记的方法, 由 于根据不同打印位置的检测数据的关系来确定打印介质上的标记, 不需要在更换介质 后进行阈值校验并更新参考阈值, 从而解决了现有技术中在更换打印介质时, 对打印 介质标记进行判断需要频繁地进行阈值校验的问题, 进而达到了提高标记判断效率的 效果。 附图说明 构成本申请的一部分的附图用来提供对本发明的进一步理解, 本发明的示意性实 施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图中: 图 la是一种常见的标签纸样式示意图; 图 lb是一种常见的标记纸样式示意图; 图 lc是另一种常见的标记纸样式示意图; 图 2是现有技术的具有标记的打印介质的检测信号波形图; 图 3a是根据本发明一实施例的打印装置的模块组成示意图; 图 3b是根据本发明另一实施例的打印装置的模块组成示意图; 图 4是根据本发明一实施例的打印装置的各模块在走纸通道的布局示意图; 图 5a是根据本发明实施例的打印装置的光电传感器的第一实施例的示意图; 图 5b是根据本发明实施例的打印装置的光电传感器的第二实施例的示意图; 图 6a是根据本发明实施例的打印介质标记的判断装置的模块组成示意图; 图 6b是根据本发明优选实施例的打印介质标记的判断装置的模块组成示意图; 图 7是根据本发明第一实施例的打印介质标记判断方法的流程图; 图 8是根据本发明实施例的对标记进行检测的流程图; 图 9是根据本发明的第二实施例的打印介质标记判断方法的流程图; 图 10是根据本发明的第三实施例的打印介质标记判断方法的流程图; 图 11 是根据本发明实施例的打印介质标记检测方法的波峰及波谷判断方法的流 程图; 以及 图 12是根据本发明实施例的打印介质的检测信号波形图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互组合。 下面将参考附图并结合实施例来详细说明本发明。 图 3a是根据本发明一实施例的打印装置的模块组成示意图。 如图 3a所示, 该打印装置包括打印机构 12、 检测装置 10和打印介质标记的判断 装置 (简称为标记判断装置) 22。 其中, 打印机构 12用于对打印介质执行打印操作; 检测装置 10用于对打印介质 进行检测, 得到检测数据, 其中, 检测数据包括第一检测数据和第二检测数据并且第 一检测数据和第二检测数据为对应于打印介质的不同打印位置的检测数据; 打印介质 标记的判断装置 22 用于根据第一检测数据和第二检测数据的关系确定打印介质上的 标记。 上述的打印装置还包括控制器 21, 其中, 检测装置 10得到的检测数据可以经由 控制器 21发送给标记判断装置 22, 也可以直接将检测数据发送给标记判断装置 22。 在该实施例中, 由于打印装置在打印过程中对不同的打印位置进行检测, 并且根 据不同打印位置的检测数据的关系来确定打印介质上的标记, 可以无需针对每个检测 数据分别和预设的阈值进行比较来确定打印介质上的标记, 从而避免了用户更换介质 时因标记校验引起的等待过程, 节省了用户时间, 在方便用户使用的同时, 还提高了 打印装置的使用效率。 优选地, 上述的打印装置还可以包括: 存储器 23, 用于存储检测数据和 /或打印介 质标记的判断装置的判定结果。其中, 在存储器 23用于存储检测数据时, 标记判断装 置 22可以从该存储器 23中直接获取检测数据,在存储器 23用于存储打印介质标记的 判断装置的判定结果时, 标记判断装置 22可以直接将判定结果直接发送至存储器 23。 图 3b是根据本发明另一实施例的打印装置的模块组成示意图,在该实施例中,检 测装置为光电传感器 11, 如图 3b所示, 该打印装置包括: 控制器 21, 光电传感器 11, 标记判断装置 22, 存储器 23, 打印机构 12和介质输送机构 13, 其中, 控制器 21控 制各组成模块的工作; 光电传感器 11, 与控制器连接, 用于检测打印介质的反光性或 透光性, 并输出检测数据; 标记判断装置 22, 对光电传感器 11输出的检测数据进行 处理, 判定检测位置是否为打印介质的标记; 存储器 23存储光电传感器 11的检测数 据及标记判断装置 22的标记判定结果等; 介质输送机构 13, 用于输送打印介质运动; 打印机构 12, 用于把打印数据打印在介质上。 图 4是根据本发明一实施例的打印装置的各模块在走纸通道的布局示意图。 如图 所示, 在走纸通道 14中排列着光电传感器 11、 打印机构 12、 介质输送机构 13等, 其 中, 沿介质输送方向 19, 光电传感器 11位于打印机构 12的上游。 打印机构 12包括 打印头 121和压纸滚筒 122, 打印介质从打印头 121和压纸滚筒 122之间通过, 在压 纸辊 122的支撑下, 打印头 121可以在打印介质表面打印图像或文字。 当打印头 121 为热敏打印头时, 压纸滚筒 122为可以转动的输送辊, 与打印头 121相切接触, 同时 具有输送介质的作用。光电传感器 11包括光发射器 11A和光接收器 11B。当检测打印 介质的透光性时, 将光发射器 11 A和光接收器 11B设置在走纸通道两侧且相对设置。 如图 5a所示, 光发射器 11A和光接收器 11B分别安装在通道上侧 14A和通道下 侧 14B上, 并且相对设置。 下面以介质 18为标签纸为例说明光电传感器的工作原理。 光发射器 11A向标签纸 18发射光线, 光接收器 11B检测透过标签纸 18的透射光, 由 于标签纸的衬纸区域透光性强、 标签区域透光性弱, 因此, 当标签纸 18沿着箭头 19 方向在走纸通道中前进时, 当标签区域到达光发射器 11A时, 光接收器 11B接收的光 线较少, 输出的检测数据的值很小, 即为检测信号波形的波谷, 简称波谷; 标签纸 18 继续前进, 当衬纸区域不断接近光发射器 11A,光接收器 11B接收到的光线越来越强, 输出的检测数据的值越来越大, 当衬纸区域完全到达光发射器 11A时, 光接收器 11B 接收到的光线最强, 输出的检测数据的值最大, 即为检测信号波形的波峰, 简称波峰, 需要说明的是,本发明实施例中所提到的波峰为相邻多个检测数据中的最大值,例如, 相邻三个检测数据中的最大值。 当检测打印介质的反光性时,将光发射器 11 A和光接收器 11B安装在走纸通道的 同一侧, 如图 5b所示, 光发射器 11A和光接收器 11B相邻排列在走纸通道的同一侧。 下面以介质 18为标记纸为例说明光电传感器的工作原理。 光发射器 11A照射标记纸, 光接收器 11B接收通过标记纸表面反射的光线, 由于标记纸的非黑标区域反光性强、 黑标区域反光性弱, 因此, 当标记纸 18沿着箭头 19方向在通道中前进时, 当黑标区 域到达光发射器 11A时, 光接收器 11B接收的反射光线较少, 输出的检测数据的值最 小, 即为波谷, 需要说明的是, 本发明实施例中所提到的波谷为相邻多个检测数据中 的最小值, 例如, 相邻三个检测数据中的最小值; 标记纸 18继续前进, 当非黑标区域 不断接近光发射器 11A, 光接收器 11B接收到的反射光线越来越强, 输出的检测数据 的值越来越大, 当非黑标区域完全到达光发射器 11A时, 光接收器 11B接收到的光线 最强, 输出的检测数据的值最大, 即为波峰。 因此, 通过判断波谷波峰可以确定标记 在打印介质上的位置, 从而打印装置可以根据标记位置对打印介质 18进行定位, 使打 印头 12从设定位置进行打印。 图 6a是根据本发明实施例的打印介质标记的判断装置的模块组成示意图。 如图所示, 根据该实施例的打印介质标记的判断装置包括获取模块 222和确定模 块 224。 其中, 获取模块 222用于获取检测数据, 其中, 检测数据包括第一检测数据和第 二检测数据并且第一检测数据和第二检测数据为对应于打印介质的不同打印位置的检 测数据; 确定模块 224用于根据第一检测数据和第二检测数据的关系确定打印介质上 的标记。 优选地, 获取模块 222包括: 第一获取子模块, 获取对应于不同打印位置的多个 相邻检测数据; 确定子模块, 用于确定多个相邻检测数据中相邻的最大值和最小值以 及将最大值和最小值分别作为第一检测数据和第二检测数据。 图 6b是根据本发明的打印介质标记的判断装置的优选实施例的模块组成示意图。 如图所示, 根据该实施例的打印介质标记的判断装置除了包括上述实施例的获取 模块 222和确定模块 224之外, 还包括编号模块 226、 保存模块 227和输出模块 228。 其中, 编号模块 226用于对不同打印位置进行编号, 得到多个检测位置序号; 保 存模块 227用于保存多个相邻检测数据、 多个检测位置序号以及多个相邻检测数据和 多个检测位置序号之间的对应关系; 以及输出模块 228用于在确定检测到打印介质上 的标记时, 输出检测到标记的标志。 需要说明的是, 在上述打印介质标记的判断装置的实施例中, 各个模块可以是软 件模块, 也可以是硬件装置。 根据本发明实施例的打印装置可以包括本发明任意实施 例所提供的打印介质标记的判断装置。 图 7是根据本发明第一实施例的打印介质标记判断方法的流程图。 如图所示, 该 方法包括以下步骤: 步骤 S10, 获取检测数据, 其中, 检测数据包括第一检测数据和第二检测数据, 并且第一检测数据和第二检测数据为对应于打印介质的不同打印位置的检测数据。 在该步骤中, 可以首先获取第一检测数据, 在打印介质前进一定距离之后, 再获 取第二检测数据。 步骤 S12, 根据第一检测数据和第二检测数据的关系确定打印介质上的标记。 优选地, 获取检测数据包括: 获取对应于不同打印位置的多个相邻检测数据; 确 定多个相邻检测数据中相邻的最大值和最小值; 以及将最大值和最小值分别作为第一 检测数据和第二检测数据。 进一步优选地, 获取对应于不同打印位置的多个相邻检测 数据包括: 打印介质每前进预设单位距离, 获取多个相邻检测数据中的一个检测数据。 优选地, 上述方法可以包括: 对不同打印位置进行编号, 得到多个检测位置序号; 以及保存多个相邻检测数据、 多个检测位置序号以及多个相邻检测数据和多个检测位 置序号之间的对应关系; 其中, 在确定检测到打印介质上的标记时, 输出检测到标记 的标志。 优选地, 根据第一检测数据和第二检测数据的关系确定打印介质上的标记包括: 判断第一检测数据和第二检测数据的差值是否大于预设差值和 /或第一检测数据和第 二检测数据的变化率是否大于预设变化率阈值; 以及在第一检测数据和第二检测数据 的差值大于预设差值和 /或第一检测数据和第二检测数据的变化率大于预设变化率阈 值时, 确定检测到打印介质上的标记且打印介质上的标记位于第一检测数据和第二检 测数据的检测位置之间。 图 8是根据本发明实施例的对标记进行检测的流程图。 如图 8所示, 详细的处理流程如下: 步骤 S20, 介质前进一单位距离。 介质输送器 13输送打印介质 18在走纸通道 14中前进一单位距离,该单位距离的 最小值为介质输送机构 13的最小传送单位距离, 如步进电机的一步等。 通常情况下, 该单位距离为一像素行在介质输送方向上的距离, 如分辨率为 200dpi (dot per inch) 的打印机, 一像素行的距离为 1/8毫米。 该单位距离越小, 检测的数据就越多, 标记 的检测误差也就越小。 介质每前进一个单位距离就对应一个检测位置。 步骤 S21, 输出检测数据。 当打印介质 18在走纸通道 14中前进时, 光发射器 11 A就一直向打印介质发射检 测光,光接收器 11B接收光信号,如果光发射器和光接收器安装在走纸通道的同一侧, 则接收通过介质表面反射的反射光, 如果光发射器和光接收器安装在走纸通道的不同 侧, 则接收透过介质的透射光, 根据光线的强弱, 输出一检测数据。 介质每前进一单 位距离, 光接收器就输出与介质上的某一检测位置相对应的检测数据, 并对检测位置 进行编号, 按照介质每前进一单位距离编号加一的方式, 生成检测位置序号。 把检测 数据和检测位置序号记录在存储器 23中, 用于打印介质标记的判定。 步骤 S22, 判断是否为打印介质的标记。 根据检测数据判断检测位置是否为打印介质的标记, 如标签纸上连续标签间的间 隙, 或标记纸上的黑标等。 如果是, 执行步骤 S23, 否则, 执行步骤 S20, 使打印介 质继续前进。 步骤 S23, 反馈检测到标记。 当检测到标记时, 向控制器反馈检测到标记的标志。 打印机控制器接收到该标志 后, 打印装置对介质进行定位, 如根据光电传感器 11和打印头 12之间的距离, 通过 标记对下一个要打印票面的打印位置进行定位, 当使用带有黑标的连续纸时, 通过黑 标前沿或后沿与打印起始位置的关系对打印票面的打印位置进行定位; 当使用标签纸 时, 通过标签前沿或后沿对打印位置进行定位等。 图 9是根据本发明的第二实施例的打印介质标记判断方法的流程图。 如图 9所示, 详细的处理流程如下: 步骤 S41, 判定是否检测到波峰、 波谷。 由判定部 22对光接收器 11B输出的检测数据进行处理, 判定是否检测到波峰、 波谷, 波峰、 波谷的详细判断过程见图 11的具体说明; 如果检测到波谷, 则转到步骤 S42; 如果检测到波峰, 则由步骤 S43 继续处理; 如果既未检测到波峰又未检测到波 谷, 则转到步骤 S45。 步骤 S42, 记录波谷信息。 当检测到波谷时, 记录与波谷相关的信息, 如波谷的幅值等, 为下一次的标记判 定做准备。 步骤 S43, 判断相邻波峰波谷间的幅值差是否大于幅值差阈值。 以 Dt表示波峰的幅值、 Db表示波谷的幅值,对相邻波峰波谷间的幅值差, 即(Dt - Db) 是否大于幅值差阈值进行判定, 如果大于幅值差阈值, 转到步骤 S44; 否则, 转到步骤 S45。 当打印介质为标签纸时, 该幅值差阈值表示标签和衬纸之间的透光性差异, 表现 为标签纸时标签区域和衬纸区域之间透射光检测信号的幅值差异; 当打印介质为带黑 标的标记纸时, 该幅值差阈值表示黑标和打印区域之间的反光性差异, 表现为黑标区 域和打印区域之间反射光检测信号的幅值差异;当打印介质为带空白间隙的标记纸时, 该幅值差阈值表示打印区域和空白间隙之间的透光性差异, 表现为打印区域和空白间 隙之间透射光检测信号的幅值差异。以图 12为例说明如何确定幅值差阈值,如图所示, 第三波形 40为标签纸 30的透射光检测信号波形, 其中, 波形区域 41-43为打印介质 沿着箭头 36方向运动时标签 31的检测位置 35和标签后沿 33之间的信号波形, 波形 区域 43-48为标签后沿 33、标签前沿 34之间衬纸区域 32的信号波形,波形区域 41-43 的第一波峰 42、 第一波谷 41之间的第一幅值差 Dfl= (Dtl-Dbl ), 波形区域 43-48的 第二波峰 44、 第二波谷 43之间的第二幅值差 D£2= (Dt2-Db2), 从图中可以看出 D£2 明显大于 Dfl,取二者中间的数值 Df就可以从幅值差大小判定该波峰波谷是否由标签 间隙引起的; 如果 (Dt-Db) >Df, 则波峰波谷间的信号波动是由标签间隙引起的; 如果 (Dt - Db)≤Df, 则波峰波谷间的信号波动不是由标签间隙引起的, 如由标签纸在走 纸通道中的抖动引起的。 通常情况下, Df=(mxD + nxDfiy(m+n), m、 n为正整数, 当 Df接近 Dfl时, n>m; 当 Df接近 D£2时, m>n; Df即为幅值差阈值。 通过对相邻波峰波谷间的幅值差进行判断, 而不是通过对检测信号的幅值进行判 断, 可以有效克服在打印介质检测信号整体变大、 变小情况下使用幅值阈值进行判定 时的误判问题,如图 1所示, 当使用幅值差阈值 Df对相邻波峰波谷间的幅值差进行判 定时, 不仅能够可靠地判定出第一波形 70的区域 A-B为衬纸区域, 也能够可靠地判 定出第二波形 60的区域 A-B同样为衬纸区域, 即可以可靠地判定出不同标签纸的标 记。 步骤 S44, 波谷波峰间为标记。 当相邻波峰与波谷间的幅值差大于幅值差阈值时, 则该波谷波峰间的信号变化是 由标签纸的透光性突变引起的, 即波谷波峰间的检测位置为标签纸的相邻标签间隙, 即检测到标记。 步骤 S45, 未检测到标记。 如果既未检测到波峰又未检测到波谷, 或者相邻波峰波谷间的幅值差不大于幅值 差阈值, 说明未检测到标记。 图 10是根据本发明的第三实施例的打印介质标记判断方法的流程图。 下面结合图 10所示详细说明如下: 步骤 S51, 判定是否检测到波峰、 波谷。 由判定部 22对光接收器 11B输出的检测数据进行处理, 判定是否检测到波峰、 波谷, 波峰、 波谷的详细判断过程见图 11的具体说明; 如果检测到波谷, 则转到步骤 S52; 如果检测到波峰, 则由步骤 S53 继续处理; 如果既未检测到波峰又未检测到波 谷, 则转到步骤 S57。 步骤 S52, 记录波谷信息。 当检测到上次检测数据为波谷时, 把上次检测数据的相关信息记录为波谷信息, 如检测数据的幅值、 检测数据的序号等, 为标记判定做准备。 步骤 S53, 判断相邻波峰波谷间的幅值差是否大于幅值差阈值。 以 Dt表示波峰的幅值、 Db表示波谷的幅值,对相邻波峰波谷间的幅值差, 即(Dt - Db) 是否大于幅值差阈值进行判断, 如果大于幅值差阈值, 转到步骤 S54; 否则, 转到步骤 S57。 步骤 S54, 计算相邻波谷波峰间的幅值变化率。 以下列公式计算相邻波谷波峰间的幅值变化率: 幅值变化率 = (Dt - Db)/ ((Nt - b)*U) 其中, Nt为波峰的检测位置序号, b为波谷的检测位置序号, U为单位距离。 波谷波峰间的幅值变化率, 说明在相邻波谷检测点和波峰检测点之间信号幅值的 变化速度, 即相邻波谷检测点与波峰检测点之间连接线的斜率, 如图 12所示, 第一波 谷 41、第一波峰 42之间的信号幅值变化率为第一斜线 45的斜率, 第二波谷 43、第二 波峰 44之间的信号幅值变化率为第二斜线 47的斜率。 步骤 S55, 判断幅值变化率是否大于变化率阈值。 对相邻波谷波峰间的信号幅值变化率进行判断,如果幅值变化率大于变化率阈值, 转到步骤 S56; 如果幅值变化率不大于变化率阈值, 则转到步骤 S57。 相邻波谷波峰间的信号幅值变化率说明相邻波谷波峰间信号幅值的上升速度, 即 相邻波谷波峰间信号波形的陡峭程度, 以图 12为例说明如何确定变化率阈值, 其中, 第一斜线 45的斜率为第一波谷 41与第一波峰 42间的信号幅值变化率, 第二斜线 47 的斜率为第二波谷 43与第二波峰 44之间的信号幅值变化率, 从图中可以看出, 第一 斜线 45的斜率与第二斜线 47的斜率相差较大,可以利用二者之间第三斜线 46对其进 行区分, 即利用第三斜线 46的斜率区分两个相邻波谷波峰间的幅值变化率, 从而确定 该波谷波峰间的信号变化是否由标记引起的, 如果幅值变化率大于变化率阈值, 说明 该信号变化是由标记引起的, 否则, 说明该信号变化不是由标记引起的, 如干扰信号 等, 因此, 可以把第三斜线 46的斜率作为相邻波谷波峰间幅值变化的变化率阈值。 步骤 S56, 波谷波峰间为标记。 当相邻波谷波峰检测点间的信号变化, 既符合波峰波谷间的信号幅值差大于幅值 阈值的要求, 又满足波谷波峰间信号幅值变化率大于变化率阈值的要求, 则该波谷波 峰间的信号变化是由标签纸的透光性突变引起的, 即波谷波峰间的检测位置为标签纸 的相邻标签间隙, 即检测到标记。 步骤 S57, 未检测到标记。 如果既未检测到波峰又未检测到波谷, 或者相邻波峰波谷间的幅值差不大于幅值 差阈值, 或者相邻波谷波峰间的幅值变化率不大于变化率阈值,均说明未检测到标记。 图 11 是根据本发明实施例的打印介质标记检测方法的波峰及波谷判断方法的流 程图。 如图 11所示, 详细的处理流程如下: 本判定流程对最近的 3个相邻检测数据进行判定, 判定中间的检测数据是否为波 峰或波谷。 所谓最近的 3个相邻检测数据, 为当前检测数据、 上次检测数据和下次检 测数据, 其中, 当前检测数据为 3个检测数据中的中间检测数据, 3个检测数据的检 测位置序号相连;按照检测顺序,最近的 3个相邻检测数据依次为上次检测数据!^-、 当前检测数据 D P下次检测数据 Dn+1, 利用 Dn与 Dn— Dn+1之间的大小关系对检测 数据 Dn是否为波谷、 波峰进行判定, 即判定波峰波谷。 步骤 S410, Dn是否既小于 而又不大于 Dn+1? 对 Dn与 Dn- Dn+1之间的大小关系进行判定, 如果 Dn既小于 Dn- i而又不大于
Dn+1, 即 Dn1 > Dn≤Dn+1, 说明检测数据 1 为局部最小值, 则1 对应检测信号的波 谷, 即检测到波谷, 其中, 0„的数值为波谷的幅值、 0„的检测位置序号为波谷的检测 位置序号; 否则, 转到步骤 S411进行继续判定。 步骤 S411, Dn是否既大于 而又不小于 Dn+1? 对 Dn与 Dn- Dn+1之间的大小关系进行判定, 如果 Dn既大于 Dn- i而又不小于
Dn+1, 即 D^ Dn DnW, 说明检测数据 Dn为局部最大值时, 则 1 为对应检测信号 的波峰, 即检测到波峰, 其中, 0„的数值为波峰的幅值、 Dn的检测位置序号为波峰的 检测位置序号; 否则, 说明 Dn既不是局部较小值又不是局部较大值, 即既未检测到波 谷又未检测到波峰。 通过判定检测信号的波谷波峰, 使用波峰波谷间的信号幅值差而不是利用信号幅 值对标记进行判别, 充分利用了打印介质上标记和非标记处的透光性或反光性差异而 不是利用了打印介质的透光性或反光性强度, 可以有效克服使用信号幅值作为阈值检 测信号幅值整体变大、 变小时需要频繁进行阈值校验的问题; 通过对波谷波峰间的信 号幅值变化率进行判断,能够消除因介质抖动引起检测信号变劣造成的标记误判问题。 通过对波峰波谷间的信号幅值差和信号幅值变化率的判定, 不仅可以有效克服介质抖 动对标记判定的影响, 提高了标记检测的可靠性, 还解决了在更换介质时, 因使用检 测信号的幅值而不是幅值差作为阈值进行判定时造成的标记误判问题, 提高了检测方 法对不同打印介质的适用性; 不仅节省了因对阈值进行校验而造成的介质浪费, 还提 高了打印装置的易用性, 方便用户使用。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种打印介质标记的判断方法, 其特征在于包括:
获取检测数据, 其中, 所述检测数据包括第一检测数据和第二检测数据, 并且所述第一检测数据和所述第二检测数据为对应于所述打印介质的不同打印 位置的检测数据; 以及
根据所述第一检测数据和所述第二检测数据的关系确定所述打印介质上的 标记。
2. 根据权利要求 1所述的打印介质标记的判断方法, 其特征在于, 根据所述第一 检测数据和所述第二检测数据的关系确定所述打印介质上的标记包括:
判断所述第一检测数据和所述第二检测数据的差值是否大于预设差值,和 / 或所述第一检测数据和所述第二检测数据的变化率是否大于预设变化率阈值; 以及
在所述第一检测数据和所述第二检测数据的差值大于所述预设差值, 和 / 或所述第一检测数据和所述第二检测数据的变化率大于所述预设变化率阈值 时, 确定检测到所述打印介质上的标记且所述打印介质上的标记位于所述第一 检测数据和所述第二检测数据的检测位置之间。
3. 根据权利要求 1所述的打印介质标记的判断方法, 其特征在于, 获取检测数据 包括:
获取对应于不同打印位置的多个相邻检测数据;
确定所述多个相邻检测数据中相邻的最大值和最小值; 以及
将所述最大值和所述最小值分别作为所述第一检测数据和所述第二检测数 据。
4. 根据权利要求 3所述的打印介质标记的判断方法, 其特征在于, 获取对应于不 同打印位置的多个相邻检测数据包括:
所述打印介质每前进预设单位距离, 获取所述多个相邻检测数据中的一个 检测数据。
5. 根据权利要求 3所述的打印介质标记的判断方法, 其特征在于, 所述方法还包 括:
对所述不同打印位置进行编号, 得到多个检测位置序号; 以及 保存所述多个相邻检测数据、 所述多个检测位置序号以及所述多个相邻检 测数据和所述多个检测位置序号之间的对应关系;
其中, 在确定检测到所述打印介质上的标记时, 输出检测到标记的标志。
6. 一种打印介质标记的判断装置, 其特征在于包括:
获取模块, 用于获取检测数据, 其中, 所述检测数据包括第一检测数据和 第二检测数据, 并且所述第一检测数据和所述第二检测数据为对应于所述打印 介质的不同打印位置的检测数据; 以及
确定模块, 用于根据所述第一检测数据和所述第二检测数据的关系确定所 述打印介质上的标记。
7. 根据权利要求 6所述的打印介质标记的判断装置, 其特征在于, 所述获取模块 包括:
第一获取子模块, 获取对应于不同打印位置的多个相邻检测数据; 确定子模块, 用于确定所述多个相邻检测数据中相邻的最大值和最小值以 及将所述最大值和所述最小值分别作为所述第一检测数据和所述第二检测数 据。
8. 根据权利要求 7所述的打印介质标记的判断装置, 其特征在于, 还包括: 编号模块, 用于对所述不同打印位置进行编号, 得到多个检测位置序号; 保存模块, 用于保存所述多个相邻检测数据、 所述多个检测位置序号以及 所述多个相邻检测数据和所述多个检测位置序号之间的对应关系; 以及
输出模块, 用于在确定检测到所述打印介质上的标记时, 输出检测到标记 的标志。
9. 一种打印装置, 其特征在于包括:
打印机构, 用于对打印介质执行打印操作; 检测装置, 用于对所述打印介质进行检测, 得到检测数据, 其中, 所述检 测数据包括第一检测数据和第二检测数据, 并且所述第一检测数据和所述第二 检测数据为对应于所述打印介质的不同打印位置的检测数据; 以及
打印介质标记的判断装置, 用于根据所述第一检测数据和所述第二检测数 据的关系确定所述打印介质上的标记。
10. 根据权利要求 9所述的打印装置, 其特征在于还包括: 存储器, 用于存储所述 检测数据和 /或所述打印介质标记的判断装置的确定结果。
PCT/CN2012/070339 2011-01-26 2012-01-13 打印介质标记的判断方法及装置、打印装置 WO2012100688A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110028715.4A CN102616021B (zh) 2011-01-26 2011-01-26 打印介质标记的判断方法及装置、打印装置
CN201110028715.4 2011-01-26

Publications (1)

Publication Number Publication Date
WO2012100688A1 true WO2012100688A1 (zh) 2012-08-02

Family

ID=46556374

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070339 WO2012100688A1 (zh) 2011-01-26 2012-01-13 打印介质标记的判断方法及装置、打印装置

Country Status (2)

Country Link
CN (1) CN102616021B (zh)
WO (1) WO2012100688A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105093353B (zh) * 2014-05-04 2018-02-02 山东新北洋信息技术股份有限公司 介质处理设备中传感器的校正方法及介质处理设备
CN106626847B (zh) * 2015-11-03 2020-08-21 山东新北洋信息技术股份有限公司 打印方法及打印机
JP2017196741A (ja) * 2016-04-25 2017-11-02 株式会社沖データ 画像形成装置
JP7024390B2 (ja) * 2017-12-25 2022-02-24 富士フイルムビジネスイノベーション株式会社 印刷装置、印刷システムおよびプログラム
CN109895392A (zh) * 2019-02-15 2019-06-18 上海幂方电子科技有限公司 一种在设备工作区域标记和精确定位工作坐标的方法
JP2020157522A (ja) * 2019-03-25 2020-10-01 サトーホールディングス株式会社 プリンタ、プリンタの制御方法及びプログラム
CN111516397B (zh) * 2020-04-30 2022-04-29 厦门汉印电子技术有限公司 一种标签纸识别方法、装置、设备及可读存储介质
CN113022151B (zh) * 2021-03-03 2022-03-08 厦门喵宝科技有限公司 自动识别热敏打印机机芯dpi的方法、打印机及存储介质
CN115157885B (zh) * 2022-07-06 2023-12-29 上海商米科技集团股份有限公司 基于学习的打印纸定位方法及系统
CN115157886B (zh) * 2022-07-06 2023-12-29 上海商米科技集团股份有限公司 标签纸的打印方法及其应用的标签打印机

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63189274A (ja) * 1987-02-02 1988-08-04 Tokyo Electric Co Ltd ラベルプリンタのラベル検出方法
JPH05147310A (ja) * 1991-11-30 1993-06-15 Nec Corp 印字媒体位置決め制御装置
JPH0699638A (ja) * 1992-09-18 1994-04-12 Fujitsu Ltd 位置出しマークの検出方法
JP2000141775A (ja) * 1998-11-04 2000-05-23 Sato Corp ラベル用紙及びラベルプリンタ
CN1704249A (zh) * 2004-06-02 2005-12-07 三星电子株式会社 区分热敏纸类型的方法
CN1891488A (zh) * 2005-07-06 2007-01-10 上海寺冈电子有限公司 标签纸及其打印该标签纸的装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005279958A (ja) * 2004-03-26 2005-10-13 Fuji Photo Film Co Ltd 印字状態検出装置及びその方法
JP2006297798A (ja) * 2005-04-21 2006-11-02 Seiko Epson Corp しきい値設定方法及び情報処理装置
JP4216316B2 (ja) * 2007-03-26 2009-01-28 シチズンホールディングス株式会社 プリンタ

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63189274A (ja) * 1987-02-02 1988-08-04 Tokyo Electric Co Ltd ラベルプリンタのラベル検出方法
JPH05147310A (ja) * 1991-11-30 1993-06-15 Nec Corp 印字媒体位置決め制御装置
JPH0699638A (ja) * 1992-09-18 1994-04-12 Fujitsu Ltd 位置出しマークの検出方法
JP2000141775A (ja) * 1998-11-04 2000-05-23 Sato Corp ラベル用紙及びラベルプリンタ
CN1704249A (zh) * 2004-06-02 2005-12-07 三星电子株式会社 区分热敏纸类型的方法
CN1891488A (zh) * 2005-07-06 2007-01-10 上海寺冈电子有限公司 标签纸及其打印该标签纸的装置

Also Published As

Publication number Publication date
CN102616021A (zh) 2012-08-01
CN102616021B (zh) 2015-05-20

Similar Documents

Publication Publication Date Title
WO2012100688A1 (zh) 打印介质标记的判断方法及装置、打印装置
JP4804579B2 (ja) 記録装置およびシート処理方法
US8474814B2 (en) Sheet supplying unit and sheet width detecting unit
US8672439B2 (en) Printing apparatus
JP5082755B2 (ja) 記録媒体検出方法およびラベルプリンタ
JP2004009474A (ja) ラインインクジェットプリンタ
JP4398797B2 (ja) 媒体幅検出装置
JP2010064271A (ja) サーマルプリンタおよびその制御方法
JP4850557B2 (ja) 記録装置
JPH08142433A (ja) 印字方法およびその方法を用いたプリンタ
JP5419205B2 (ja) ラベル検出装置
JP2002331648A (ja) 画像記録装置
US20150146222A1 (en) Apparatus, system, and method for calibration of a media processing device
JP7325342B2 (ja) サーマルプリンタ、およびプログラム
JPH08331327A (ja) 原稿読取り装置
EP1647411A3 (en) Method of printing thermal media by aligning image
JP2000289908A (ja) 画像形成装置
JP2002127521A (ja) エッジ検出装置およびプリンタ装置
JP3928584B2 (ja) プリント処理装置
JP6989110B2 (ja) 印刷制御装置、位置合わせ制御装置、位置合わせ制御方法及び位置合わせ制御プログラム
JP4100139B2 (ja) 画像形成装置
JP2010017995A (ja) インクジェットプリンタ
JP2002127574A (ja) インクシート式印刷装置
JP2006044101A (ja) 画像形成装置及び画像形成媒体の左右端部位置検出方法
JP4152220B2 (ja) データ記録装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12739706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12739706

Country of ref document: EP

Kind code of ref document: A1