Scanning method of image forming apparatus, image forming apparatus, and storage medium

By receiving the line head signal within the effective time period and completing the scan data acquisition, the color data disorder caused by electrostatic interference is solved, and the scanning quality and reliability of the image forming device are improved.

CN120378543APending Publication Date: 2025-07-25ZHUHAI PANTUM ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510443782.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-09
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, the image forming device causes the line head signal to be over-received or lost due to electrostatic interference during scanning, which affects the order of receiving color data, resulting in poor presentation of the scanned image.

Method used

A line head signal is received within the effective time of the received signal, and the acquisition of at least one set of scan data is completed based on the line head signal, each set of scan data includes all color data, reducing the influence of the interference signal by setting the effective time.

Benefits of technology

It improves the orderliness of color data reception, enhances the imaging quality of the scanned image and the reliability of image scanning, and reduces color data disorders caused by interfering signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378543A_ABST
    Figure CN120378543A_ABST
Patent Text Reader

Abstract

The invention provides a scanning method of an image forming apparatus, the image forming apparatus and a storage medium. The method comprises the following steps: receiving a row head signal within an effective duration of receiving a signal, so as to start to complete the acquisition of at least one group of scanning data based on the row head signal. And each group of scanning data comprises all color data forming the colors of the pixel points in the corresponding row on the scanning portrait obtained by scanning output. Therefore, according to the embodiment of the invention, one row head signal can be received based on the effective duration, so that the acquisition of each group of scanning data is completed. In this way, the situation that interference signals are taken as line head signals or the line head signals are lost due to interference can be reduced, and then color data receiving orderliness can be guaranteed, so that the imaging quality of scanned portraits and the reliability of image scanning are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of image formation, and particularly to a scanning method for an image forming apparatus, an image forming apparatus, and a storage medium Background Art

[0002] When an image forming apparatus performs a scanning process on an image, it usually needs to use an Analog Front End (AFE) to capture scanning data; then the scanning data is transmitted to the CPU for generating a scanned image and performing related operations. Among them, the scanning data is transmitted between the AFE and the CPU based on a line head signal

[0003] Specifically, in the related art, some AFEs can only send a line head signal before sending each color data obtained by the scanning sensor for each scanned line; and in most cases, only when the CPU receives the line head signal corresponding to each scanned line, the CPU will receive and process one color data of each line of the scanned image in the order in which the scanning sensor sends color data to the AFE

[0004] However, due to the influence of electrostatic interference, if one color's line head signal is received erroneously or lost, it is likely to cause the subsequent color data received by the CPU to be out of order, thereby affecting the acquisition of scanning data and ultimately affecting the presentation effect of the scanned image

[0005] It should be noted that the information disclosed in the background art part of this application is only intended to deepen the understanding of the general background art of this application, and should not be regarded as an admission or any form of implication that this information constitutes the prior art known to those skilled in the art Summary of the Invention

[0006] In view of this, this application provides a scanning method for an image forming apparatus, an image forming apparatus, and a storage medium to reduce signal interference and help improve the presentation effect of the scanned image

[0007] In a first aspect, an embodiment of this application provides a scanning method for an image forming apparatus, including: Obtaining the effective duration of the received signal; Receiving one of a plurality of line head signals within the effective duration; Based on the received one of the line head signals, starting to complete the acquisition of at least one set of scanning data; where each set of scanning data includes all color data that constitutes the colors of the corresponding row of pixel points on the scanned image obtained by the scanning output

[0008] In a possible implementation, obtaining the effective duration of the received signal includes: Periodically obtain the effective duration; where obtaining at least one set of scan data is one period.

[0009] In a possible implementation, before obtaining the effective duration of the received signal, it includes: Determine the generation time of the received signal according to the start time of each time sending a start signal for scanning the Mth color data to the AFE and the arrival time of the line head signal corresponding to the start signal returned by the AFE; Generate the effective duration of the received signal when the generation time arrives; Wherein, the effective duration is used to receive the line head signal of the Mth color data; all the color data constituting the colors of the pixel points on the corresponding line include N color data; the scanning sensor sends the corresponding color data among the N color data in the scanning order each time, 1 ≤ M ≤ N.

[0010] In a possible implementation, after receiving one of the multiple line head signals within the effective duration, it includes: Outside the effective duration range, do not receive other line head signals.

[0011] In a possible implementation, the length of the effective duration is greater than or equal to the length of the duration of one line head signal, and the difference from the sum of the durations of one line head signal and the start signal is within an allowable range.

[0012] In a possible implementation, based on the received one of the line head signals, starting to complete the acquisition of at least one set of scan data includes: Based on the received one of the line head signals, start to sequentially obtain each color data in at least one set of scan data in the order of the AFE sending color data; Process each color data in each set of scan data in the order of the AFE sending color data.

[0013] In a possible implementation, obtaining the effective duration of the received signal further includes: Use the duration of the generated specified level signal as the effective duration.

[0014] In a possible implementation, based on the received one of the line head signals, start to complete the acquisition of one set of scan data; Wherein, all the color data constituting the color of any pixel point on the corresponding line are RGB color data.

[0015] In a second aspect, an embodiment of the present application provides an image forming apparatus, including: A processor; A memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions that, when executed by the processor, cause the processor to execute the method described in any one of the first aspects.

[0016] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein when the program runs, it controls the device where the computer-readable storage medium is located to execute the method described in any one of the first aspects.

[0017] A method for an image forming device, an image forming device, and a storage medium provided by the present application at least have the following technical effects: Receive a line head signal within the effective duration of the received signal, and start to complete the acquisition of at least one set of scan data based on the line head signal. And each set of scan data includes all color data corresponding to the row pixel points on the scanned portrait obtained by the scan output. Therefore, in each embodiment of the present application, it is possible to receive a line head signal based on the effective duration, thereby completing the acquisition of each set of scan data. This can reduce the situation of taking interference signals as line head signals or losing line head signals due to interference, and further help ensure the orderliness of color data reception, so as to improve the imaging quality of the scanned portrait and the reliability of image scanning. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0019] Figure 1 FIG. is a schematic diagram of an application scenario provided by an embodiment of the present application.

[0020] Figure 2 FIG. is a schematic structural diagram of an image scanning device provided by the related art.

[0021] Figure 3 FIG. is a signal diagram of a CPU receiving information provided by the related art.

[0022] Figure 4 FIG. is a schematic diagram of the principle of a scanned image provided by the related art.

[0023] Figure 5 FIG. is a schematic flowchart of a scanning method for an image forming device provided by an embodiment of the present application.

[0024] Figure 6 It is a signal schematic diagram of a CPU receiving information provided by an embodiment of the present application.

[0025] Figure 7 It is a scanning decomposition schematic diagram of a color image provided by an embodiment of the present application.

[0026] Figure 8 It is a structural schematic diagram of an image forming apparatus provided by an embodiment of the present application. Detailed implementation manners

[0027] For a better understanding of the technical solution of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0028] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application.

[0029] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0030] It should be understood that the term " / and" used herein is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, a and / or b can represent: a exists alone, a and b exist simultaneously, and b exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0031] For the convenience of understanding, the following first gives an exemplary description of a specific application scenario. Refer to Figure 1 , which is an application scenario schematic diagram provided by an embodiment of the present application. As Figure 1 shown, this application scenario includes: an image forming apparatus 101. Specifically, the image forming apparatus 101 is used to form an image on an imaging medium by an imaging principle.

[0032] It should be noted that Figure 1 the image forming apparatus 101 shown in

[0033] In practical applications, an image forming apparatus usually scans a to-be-scanned image line by line, and generally processes the scanned image according to RGB three-color data. Specifically, when an image sensor in the image forming apparatus scans an image, it usually needs to use an analog front-end chip to capture scanned data, and then transmits the scanned data to the CPU for generating a scanned image and performing related operations. Among them, the scanned data is transmitted between the AFE and the CPU based on a line head signal.

[0034] It should be noted that the above-mentioned RGB three-color data is used to represent all color data of each pixel color in each line. Specifically, the R data is all color data of the pixel color being red and based on red in the corresponding line of the to-be-scanned image; the B data is all color data of the pixel color being blue and based on blue in the corresponding line of the to-be-scanned image; the G data is all color data of the pixel color being green and based on green in the corresponding line of the to-be-scanned image. It can be understood that the reference color is the color component that makes up the pixel color. For example, the reference colors of a pixel color being purple are red and blue.

[0035] Among them, the RGB three-color data is only an exemplary illustration. According to the different colors of the to-be-scanned image or different scanning imaging principles, the color data obtained after scanning can also be other data, and the present application does not make specific limitations on this.

[0036] For ease of understanding, refer to Figure 2 , which is a schematic structural diagram of an image scanning device provided by the related art. As shown in the figure, a contact image sensor (CIS) 201, an AFE 202, and a CPU 203 are shown. Among them, the CIS is communicatively connected to the AFE; the AFE is communicatively connected to the CPU. Among them, the CIS is used to collect scanned data, and then sends the collected scanned data to the AFE for preprocessing; finally, the AFE sends the preprocessed scanned data to the CPU.

[0037] In some application scenarios, regarding the information transmission between the AFE and the CPU, usually the AFE first sends a line head signal to the CPU. When the CPU receives the line head signal, the CPU will then enable the function of receiving scanned data.

[0038] Specifically, taking the CPU color processing order being RGB as an example, when receiving the line head signal, the CPU first receives the R data correspondingly; when receiving the line head signal again, the CPU receives the G data; when receiving the line head signal again, the CPU receives the B data. For further understanding, refer to Figure 3, A signal schematic diagram of a CPU receiving information provided by related technologies. As shown in the figure, four signals received by the CPU are shown in the figure, namely S1 - S4. Among them, S1 is the line head signal received by the CPU; S2 - S4 are the scan data corresponding to three colors, namely R data, B data, and G data. Specifically, when the CPU receives the S1 signal, the CPU first enables the receiving function of the S2 scan data; when the CPU receives the S1 signal again, the CPU then enables the receiving function of the S3 scan data; when the CPU receives the S1 signal again, the CPU finally enables the receiving function of the S4 scan data.

[0039] It can be understood that in the acquisition of R data, B data, and G data, after the first line head signal arrives, the CPU will first capture the R data of this line; after completion, when the second line head signal arrives, the CPU will first capture the G data of this line; after completion, when the third line head signal arrives, the CPU will first capture the B data of this line, and thus capture the R, G, and B data of this line in this way.

[0040] Among them, it should be pointed out that the CPU receiving the S1 signal means that the CPU is triggered by the falling edge of the S1 signal. Of course, those skilled in the art can also set the CPU to be triggered by the rising edge of the S1 signal according to actual needs, and this application does not make specific restrictions on this.

[0041] However, due to the influence of electrostatic interference, if one color's line head signal is received erroneously or lost, it will easily cause the subsequent color data received by the CPU to be out of order, thereby affecting the acquisition of scan data and ultimately affecting the presentation effect of the scanned image.

[0042] Exemplarily, first, electrostatic interference causes the line head to be lost. At this time, the CPU cannot capture the data of the corresponding line. For example, if the line head corresponding to the R data is lost, then the R data is lost. At this time, the R data of the original first line will become the G data of the first line; the G data of the original first line will become the B data of the first line; the B data of the original first line will become the R data of the second line, ultimately resulting in color changes in the portrait. Second, electrostatic interference causes the line head to be generated more. After the line head signal corresponding to the R data arrives and before the line head signal corresponding to the G data arrives, interference generates a new line head, which will cause the original G data to be received as R data before the R data ends, ultimately resulting in color changes in the portrait.

[0043] Specifically, referring to Figure 4 , A schematic diagram of the principle of a scanned image provided by related technologies. As Figure 4 shown in the left image in, it is the image to be scanned, and the image color is color 401. When Figure 4 scanning the left image in and sending the scan data to the CPU, since when transmitting one line of scan data (such asFigure 4 When there is static interference (at 402, 403 or 404 on the right side of the middle), the CPU may misidentify the scan data, which ultimately affects the presentation effect of the scanned image. Different background patterns are used to represent different colors, and this application does not make specific restrictions on this.

[0044] Furthermore, it is assumed that the color processing order of the CPU is RGB, and this processing order can be set according to the order of receiving color data for each line of the image on the actual scanned image. When the corresponding line in the scanned image obtained after scanning should be red, but due to interference, the line header signal of the red data of the line is not received, or the interference signal is received as the line header signal, which will cause the order of receiving colors to be disordered. For example, if a line of R color data is not received, or the R color data is not received completely and the G color data is received, the CPU mistakenly processes the G color data as R color data, then in the color value corresponding to the scanned image, the G color value is high, and the original red image becomes a green image. That is, when the CPU performs color processing on each line of the scanned image, it processes the corresponding color channel data according to the predetermined color processing order. Therefore, once the color data reception is disordered, it will affect the final imaging effect.

[0045] In response to the above problems, in an embodiment of the present application, a line header signal is received within the effective duration of the received signal, so as to start acquiring at least one set of scan data based on the line header signal. Each set of scan data includes all color data of the color of the corresponding row of pixels on the scanned image obtained by the scan output. Therefore, in an embodiment of the present application, a line header signal can be received based on the effective duration, so as to complete the acquisition of each set of scan data. This can reduce the occurrence of mistaking an interference signal for a line header signal or losing a line header signal due to interference, and can help ensure the orderliness of color data reception, so as to improve the imaging quality of the scanned image and the reliability of image scanning. Specifically, a detailed description is given below in conjunction with the accompanying drawings and specific embodiments.

[0046] See also Figure 5 , is a schematic flow chart of a scanning method of an image forming device provided in an embodiment of the present application. The method can be applied to Figure 1 In the application scenario shown, Figure 5 As shown, it mainly includes the following steps.

[0047] Step S501: Obtain the effective duration of the received signal.

[0048] In order to avoid the influence of interference signals on the acquisition of line header signals as much as possible, the line header signals can be acquired within the effective time, thereby reducing the influence of interference signals on the acquisition of line header signals and ensuring the orderliness of color data reception. Therefore, in the embodiment of the present application, the effective time of the received signal can be obtained first.

[0049] It is understandable that in order to ensure that the CPU can receive at least one line head signal within the effective duration, the specific length of the effective duration should be greater than or equal to the length of the duration of one line head signal, but less than a certain duration, so as to avoid missing the reception of the line head signal due to too short or too long duration, or being affected by interference signals and misreceiving.

[0050] In practical applications, before the CPU obtains the scan data, the communication between the CPU and the AFE should be synchronized first. Specifically, in a possible implementation, the CPU sends a start signal to the AFE. Among them, the start signal is used to synchronize the communication between the CPU and the AFE and control the AFE to start reading a line of color data.

[0051] In the embodiment of the present application, based on the CPU sending a start signal to the AFE, it can ensure the synchronization of the communication connection between the CPU and the AFE, so as to control the AFE to start reading a line of color data, which helps to reduce the interference of electrostatic interference on the line head signal to a certain extent and improve the image quality.

[0052] It is understandable that before the CPU receives a line of color data, it will send a start signal of the color data to the AFE until the AFE sends a line head signal corresponding to the line of color data to the CPU. Therefore, in order to ensure that the CPU can completely receive the line head signal corresponding to a line of color data and avoid the CPU receiving multiple line head signals, the specific length of the effective duration can be determined according to the duration of the start signal and the duration of the line head signal.

[0053] In a possible implementation, the length of the effective duration is greater than or equal to the length of the duration of one line head signal, and the difference from the sum of the durations of one line head signal and the start signal is within an allowable range.

[0054] Since the line head signal is the signal received after the start signal is sent, it means that the line head signal will be received within a certain time range after the CPU sends the start signal to start capturing the color data of the corresponding line. Therefore, in the embodiment of the present application, setting the length of the effective duration within a reasonable range can help receive the line head signal corresponding to the feedback of the start signal and prevent misreceiving other interference signals or being affected by other interference signals. Preferably, the length of the effective duration of receiving the signal has a difference within an allowable range from the sum of the durations of one line head signal and the start signal, so as to be able to receive the line head signal corresponding to the feedback of the start signal within this duration.

[0055] In practical applications, usually when obtaining the scan data corresponding to the color of each row of pixel points, it is necessary to obtain the effective duration. Also, since the acquisition duration of the scan data corresponding to the color of each row of pixel points is usually fixed, therefore, in one possible implementation, the effective duration is obtained periodically.

[0056] It can be understood that the period can be set to the duration for completing the acquisition of at least one set of scan data. And each set of scan data includes all the color data that make up the color of the pixel points corresponding to the corresponding row on the obtained scan image. Exemplarily, when the time for obtaining all the color data of the pixel points in each row is t3, the period of the effective duration can be set to t3.

[0057] In the embodiments of the present application, by periodically obtaining the effective duration and implementing the acquisition of at least one set of scan data based on this effective duration, the final presentation effect of the scan image can be prevented from being affected by factors such as electrostatic interference.

[0058] In practical applications, before obtaining the effective duration of the received signal, it is necessary to first determine the generation time of the effective duration, so as to ensure that the generated effective duration can be accurately used, thereby improving the imaging quality of the scan image and the reliability of image scanning.

[0059] Specifically, in one possible implementation, according to the start time of each time sending a start signal for scanning the Mth color data to the AFE, and the arrival time of the row head signal of the Mth color data corresponding to the start signal returned by the AFE, the generation time of the received signal is determined; when the generation time arrives, the effective duration of the received signal is generated.

[0060] Among them, the effective duration is used to receive the row head signal of the Mth color data; all the color data that make up the color of the pixel points on the corresponding row include N color data; the scanning sensor sends the corresponding color data among the N color data in the scanning order each time, 1 ≤ M ≤ N.

[0061] Exemplarily, when the image to be scanned is a color portrait, all the color data constituting the pixel colors on each line include three color data, namely R data, G data, and B data. When the set CPU sequentially receives the R data, G data, and B data, each type of color data usually corresponds to a line head signal. When a set of scan data needs to be received each time, according to the start time of the start signal for the CPU to send the first color data (i.e., R color data) for scanning to the AFE each time, and the arrival time of the line head signal corresponding to the first color data returned by the AFE, the generation time of the received signal is determined. An effective duration is generated when the generation time is reached. For example, the generation time can be the time before the arrival of the corresponding line head signal after the start signal is sent; or, the generation time can also be the time before the corresponding line head signal arrives when the start signal is sent, that is, the effective duration of the received signal is generated synchronously with the start signal.

[0062] In practical applications, the line head signal transmits information between the AFE and the CPU, and thus the line head signal is vulnerable to electrostatic interference. Therefore, in order to reduce the interference to the line head signal caused by the signal transmission path, the effective duration of the received signal can be set as the internal clock of the CPU.

[0063] Specifically, in a possible implementation, the effective duration of the received signal is actually a clock set inside the CPU. Since this clock is inside the CPU, generally, the effective duration of the received signal is not affected by electrostatic interference. Therefore, it is set that the CPU can receive the line head signal only within this effective duration, which reduces the interference of electrostatic interference to the line head signal to a certain extent and improves the image quality.

[0064] In a possible implementation, the duration of the specified level signal generated by the CPU is used as the effective duration. Exemplarily, the specified level is a high level or a low level to serve as the received signal.

[0065] Step S502: Receive one of the multiple line head signals within the effective duration.

[0066] In the embodiments of the present application, when multiple line head signals are received within the effective duration, the CPU selects one of the multiple line head signals as the line head signal for reception.

[0067] In a possible implementation, the line head signal selected by the CPU for reception is the first line head signal received within the effective duration. It can be understood that after the CPU receives the first line head signal within the effective duration, it starts to receive the corresponding scan data.

[0068] Of course, those skilled in the relevant art can also set the line header signal received by the CPU to be the second line header signal received within the effective duration, etc. The present application does not make specific limitations on the comparison.

[0069] In a possible implementation manner, when the CPU does not receive a line header signal within the effective duration, a prompt message indicating that the scan data reception fails is output, enabling the user to fully understand the current scan status and, to a certain extent, improving user satisfaction.

[0070] In order to further reduce the situation of regarding interference signals as line header signals or losing line header signals due to interference, in a possible implementation manner, other line header signals are not received outside the effective duration range.

[0071] It can be understood that by restricting the CPU to receive line header signals only within the effective duration, the situation of regarding interference signals as line header signals or losing line header signals due to interference is reduced, ensuring the orderliness of color data reception and improving the imaging quality of the scanned image and the reliability of image scanning.

[0072] Step S503: Based on one of the received line header signals, start to complete the acquisition of at least one set of scan data.

[0073] In the embodiment of the present application, based on one of the received line header signals, start to complete the acquisition of at least one set of scan data. It can be understood that each set of scan data includes all color data corresponding to the row pixel points on the scanned image obtained by the scan output. Among them, it can be the acquisition of one set or multiple sets of scan data.

[0074] For ease of understanding, refer to Figure 6 , which is a signal schematic diagram of a CPU receiving information provided by the embodiment of the present application. Among them, the line header signal is S1, the R data is S2, the G data is S3, the B data is S4, and the received signal is S5. Among them, the T1 time period and the T2 time period in S5 represent the effective duration of the received signal; each high-level signal segment in the S1 signal represents the duration of the line header signal; S2 - S4 respectively correspond to the R data, the G data, and the B data. As shown in the figure, since the CPU receives the Xth line header signal (corresponding to the R data) within the T1 time period, the CPU completes the acquisition of the Xth set of scan data at this time. Within the T2 time period, the (X + 1)th line header signal is received, and at this time, the acquisition of the (X + 1)th set of scan data is completed.

[0075] It can be understood that at this time, other line header signals in S1 are not within the effective duration corresponding to the T1 time period or the T2 time period, so the CPU does not recognize and receive them.

[0076] Of course, Figure 6The signal schematic diagram of the CPU receiving information shown is only an exemplary illustration. For example, the effective duration is not necessarily characterized by a high level, etc. There are specific limitations in this application.

[0077] In practical applications, according to different images to be scanned, each row of scanned data contains N color data. For example, when the image to be scanned is a black-and-white image, or when the required image is a black-and-white image, each row of color data usually only contains black color scanned data.

[0078] When the image to be scanned is a color image, one row of scanned data contains multiple color data. Among them, when one row of scanned data contains multiple color scanned data, the scanned data is usually red scanned data (R data), green scanned data (G data), and blue scanned data (B data).

[0079] For ease of understanding, refer to Figure 7 , which is a schematic diagram of the scanning decomposition of a color image provided by an embodiment of the present application. As shown in the figure, the image 701 to be scanned is shown. The image 701 to be scanned includes H rows of scanned data, and each row of scanned data includes three groups of scanned data: R data, G data, and B data.

[0080] It can be understood that each group of scanned data includes all the color data that constitutes the color of the corresponding row of pixel points on the scanned image obtained by the scanning output. Exemplarily, all the color data that constitutes the color of the corresponding row of pixel points is RGB color data.

[0081] Of course, the RGB three-color data is only an exemplary illustration. According to different scanning imaging principles, the color data obtained after scanning can also be set to other color data, and this application does not make specific limitations on this.

[0082] In a possible implementation manner, when each row of color data only contains one kind of color scanned data, and the CPU receives the row head signal within the effective duration, it receives this kind of color scanned data.

[0083] In a possible implementation manner, when each row of color data contains multiple color scanned data, and the CPU receives the row head signal within the effective duration, based on one of the received row head signals, it starts to sequentially obtain each color data in at least one group of scanned data in the order of the AFE sending color data; and sequentially processes each color data in each group of scanned data in the order of the AFE sending color data.

[0084] Exemplarily, the scanned data includes R data, G data, and B data. When the CPU receives a line head signal within the effective duration, the CPU starts to receive the scanned data. By default, the first scanned data received is R data, the second scanned data received is G data, and the third scanned data received is B data. Of course, those skilled in the art can set which line head signal of which color data is received within the effective duration to trigger the start of obtaining at least one set of scanned data according to actual needs, such as the order in which the AFE sends color data. This application does not make specific restrictions on this. Assume that the order in which the AFE sends color data is RGB, and within the effective duration, the line head signal received by the CPU is the line head signal of G data in RGB. Then, after receiving the line head signal of this G data, start to obtain and complete one set of scanned data, and the receiving order of color data in each set of scanned data is GBR, and the color data is processed in this order.

[0085] In the embodiment of the present application, based on one of the received line head signals within the effective duration, start to sequentially obtain and complete each color data in at least one set of scanned data in order. Thus, it is possible to reduce the occurrence of situations where the subsequent scanning color order changes due to factors such as electrostatic interference.

[0086] In the embodiment of the present application, receive one line head signal within the effective duration of receiving the signal to start and complete the acquisition of at least one set of scanned data based on this line head signal. And each set of scanned data includes all color data that composes the colors of the corresponding row pixel points on the scanned image obtained by the scan output. Therefore, in the embodiment of the present application, it is possible to receive one line head signal based on the effective duration, thereby completing the acquisition of each set of scanned data. This can reduce the occurrence of situations where interference signals are regarded as line head signals or line head signals are lost due to interference, and further can help ensure the orderliness of color data reception, so as to improve the imaging quality of the scanned image and the reliability of image scanning.

[0087] As Figure 7 shown, after adopting the embodiment solution of the present application, assume that the line head signal is lost due to interference within the effective duration of receiving the signal. Then, all color data of the corresponding row pixel points in the scanned image will not be received, and the impact of losing all color data of this row on the image is relatively small. Compared with the prior art, it is possible to reduce the occurrence of situations where the subsequent scanning color order changes and the subsequent image colors are disordered due to only losing one color data in one row.

[0088] Corresponding to the above embodiment, the present application also provides an image forming apparatus. Refer to Figure 8, which is a schematic structural diagram of an image forming apparatus provided by an embodiment of the present application. The electronic device 800 may include: a processor 801, a memory 802, and a communication unit 803. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation to the embodiments of the present invention. It can be a bus structure, a star structure, and may also include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.

[0089] Among them, the communication unit 803 is used to establish a communication channel so that the electronic device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.

[0090] The processor 801 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and lines. By running or executing software programs, instructions, and / or modules stored in the memory 802, and calling data stored in the memory, it executes various functions of the electronic device and / or processes data. The processor may be composed of an integrated circuit (IC). For example, it may be composed of a single packaged IC, or may be composed of multiple packaged ICs with the same or different functions connected together. For example, the processor 801 may only include a central processing unit (CPU). In the embodiment of the present invention, the CPU may be a single arithmetic core or may include multiple arithmetic cores.

[0091] The memory 802 is used to store the execution instructions of the processor 801. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0092] When the execution instructions in the memory 802 are executed by the processor 801, the image forming apparatus 800 can execute Figure 5 some or all of the steps in the illustrated embodiment.

[0093] In specific implementation, the present application further provides a computer storage medium. The computer storage medium can store a program, and when the program is executed, it may include some or all of the steps in the embodiments of the simulation scenario generation method provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.

[0094] In specific implementation, the present application further provides a computer program product. The computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer is caused to execute some or all of the steps in the embodiments of the simulation scenario generation method provided by the present invention.

[0095] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent the cases of A existing alone, A and B existing simultaneously, and B existing alone. Where A and B may be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one of the following" and its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c may be single or multiple.

[0096] Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0097] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0098] In several embodiments provided by the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or a part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0099] The same or similar parts among the various embodiments in this specification can be referred to each other. In particular, for the device embodiments and the terminal embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the descriptions in the method embodiments.

Claims

1. A scanning method for an image forming apparatus, characterized in that, Including: Obtaining the effective duration of the received signal; Receiving one of a plurality of line head signals within the effective duration; Based on the received one of the line head signals, starting to complete the acquisition of at least one set of scan data; Wherein, each set of scan data includes all color data corresponding to the color of the pixel points in the corresponding row of the scan image obtained by the scan output.

2. The method according to claim 1, wherein Obtaining the effective duration of the received signal includes: Periodically obtaining the effective duration; wherein, completing the acquisition of at least one set of scan data is one period.

3. The method according to claim 1, characterized in that Before obtaining the effective duration of the received signal, it includes: Determining the generation time of the received signal according to the start time of each time sending the start signal for scanning the Mth color data to the AFE and the arrival time of the line head signal corresponding to the start signal returned by the AFE; Generating the effective duration of the received signal when the generation time arrives; Wherein, the effective duration is used to receive the line head signal of the Mth color data; all color data constituting the color of the pixel points in the corresponding row includes N color data; the scanning sensor sends the corresponding color data among the N color data in the scanning order each time, 1≤M≤N.

4. The method according to claim 1, wherein After receiving one of a plurality of line head signals within the effective duration, it includes: Outside the effective duration range, not receiving other line head signals.

5. The method according to claim 1, characterized in that, The length of the effective duration is greater than or equal to the length of the duration of one line head signal, and the difference from the sum of the durations of one line head signal and the start signal is within the allowable range.

6. The method according to claim 1, characterized in that, Based on the received one of the line head signals, starting to complete the acquisition of at least one set of scan data includes: Based on the received one of the line head signals, starting to sequentially obtain and complete each color data in at least one set of scan data in the order of the AFE sending color data; Processing each color data in each set of scan data in the order of the AFE sending color data.

7. The method according to any one of claims 1 to 6, characterized in that Obtaining the effective duration of the received signal further includes: Taking the duration of the generated specified level signal as the effective duration.

8. The method according to any one of claims 1 to 6, characterized in that, Based on the received one of the line head signals, starting to complete the acquisition of one set of scan data; Wherein, all color data constituting the color of any pixel point in the corresponding row is RGB color data.

9. An image forming apparatus, characterized in that, Including: A processor; A memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions that, when executed by the processor, cause the processor to execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 8.