Image scanning method and system based on CIS sensor

By adopting an image scanning method based on CIS sensor in the image scanning system, using a semiconductor laser displacement sensor and a photoelectric contact displacement detection device, the problem of excessive volume of traditional contact scanning equipment is solved, and lightweight and high-precision image acquisition is achieved.

CN119484715APending Publication Date: 2025-02-18SICHUAN BISHENG INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411610494.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Traditional contact scanning solutions require slide rails or roller encoders, resulting in too large equipment and making it difficult to achieve lightweight and integration.

Method used

Using an image scanning method based on CIS sensor, non-contact displacement measurement is performed through a semiconductor laser displacement sensor, the scanning signal is triggered by a photoelectric contact displacement detection device, and the CIS sensor scanning head is controlled through the main control chip to achieve high-precision acquisition and bias correction of images. deal with.

Benefits of technology

It realizes lightweight scanning and high-precision image acquisition, eliminates the physical triggering method of traditional mechanical scanners, improves the accuracy of the mobile trigger scanning distance, and can flexibly adjust the software to generate high-precision images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484715A_ABST
    Figure CN119484715A_ABST
Patent Text Reader

Abstract

The invention discloses an image scanning method and system based on a CIS sensor, and the method comprises the steps: setting the detection displacement precision of a laser displacement sensor, generating a pulse signal when the movement distance of the laser displacement sensor reaches a preset value, and transmitting the pulse signal to a main control chip; after the main control chip monitors the pulse signal, the main control chip performs logic judgment on the displacement value of the laser displacement sensor and triggers the CIS sensor to scan data according to a judgment result; the main control chip controls the scanning head of the CIS sensor to scan and receive current line scanning data by generating a line scanning signal and a time sequence; and after scanning is finished, the main control chip performs deviation correction calculation according to the recorded scanning data image, so that a final image is generated. A high-precision image can be obtained by correcting scanned data, and the scanning result is the same as that of a traditional scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image scanning, and in particular to an image scanning method and system based on a CIS sensor. Background Art

[0002] Traditional contact scanning solutions require the use of slide rails or roller encoders. Slide rail-based solutions usually require the scanning head to pass through the scanned plane at a constant speed. This method is often used in desktop scanners and is difficult to achieve lightweight and integrated. The roller-based solution drives the encoder through the roller shaft, and the system triggers multiple scans based on the encoder signal. Although it can be used in portable scanners, its mechanical structure is complex and the roller is easily damaged, so it is not an ideal solution. Summary of the invention

[0003] One of the purposes of the present invention is to provide an image scanning method based on a CIS sensor to solve the problem of excessively large device size caused by the need for a slide rail or roller encoder in traditional contact scanning.

[0004] The present invention is implemented through the following technical scheme. A CIS sensor-based image scanning method includes the following steps: S100, according to the scanning width of each line of the CIS sensor scanning head, the detection displacement accuracy of the laser displacement sensor is set, and the laser displacement sensor is controlled by a main control chip. When the laser displacement sensor reaches a preset value in the moving distance, a pulse signal is generated, and the main control chip detects the pulse signal in real time; S200, the main control chip monitors the pulse signal. After the pulse signal is detected, the main control chip performs a logical judgment on the displacement value of the laser displacement sensor, and triggers the CIS sensor to scan data according to the judgment result; S300, the main control chip controls the CIS sensor scanning head to scan and receive the current line scanning data by generating a line scanning signal and a timing sequence, and saves the lateral movement distance x and the longitudinal movement distance y corresponding to the line scanning data; S400, after the scanning is completed, the main control chip performs a correction calculation on the image according to the recorded scanning data and in combination with the lateral movement data x and the longitudinal movement distance y values ​​corresponding to the scanning data, and calibrates the scanned image according to the result of the correction calculation to generate a final image.

[0005] Further, triggering the CIS sensor to scan data includes extracting the lateral movement data Y of the CIS sensor scanning head x and longitudinal movement distance Y y , where the lateral movement data x is the scanning signal generated when the lateral displacement is greater than the set unit scanning width.

[0006] Furthermore, the logical judgment includes that when the main control chip receives the pulse signal, it starts to read the displacement values ​​of the x and y axes. If the displacement of the x-axis is a negative number, it indicates that the CIS sensor scanning head moves in the opposite direction, and the main control chip does not trigger the scan; if the displacement value of the x-axis is a positive number, it indicates that the CIS sensor scanning head moves forward. At this time, the main control chip updates the displacement value. When the accumulated displacement value is greater than the set unit scan width, the main control chip generates a row scan signal and starts the production sequence, and resets the displacement value to 0.

[0007] Furthermore, the correction calculation includes: performing logical judgment through the main control chip. When the single lateral movement distance X is greater than the set unit scanning width, it indicates that the CIS sensor moves too fast, and it is necessary to interpolate the data in the X-axis direction or improve the inspection accuracy to ensure the clarity and scanning accuracy of the image; the main control chip performs logical judgment on the value of the moving distance y of the row scanning data. When the value of the moving distance y is greater than 0, it means that the displacement in the y-axis direction is greater than 0, which means that the image needs to be moved upward as a whole. At this time, each row of data in the image can be moved as a whole by the corresponding number of pixels. When the y value is a negative number, it means that the offset direction of the y-axis is upward, which means that the image needs to be moved downward as a whole. At this time, each row of data in the image can be moved downward as a whole by the corresponding number of pixels.

[0008] Furthermore, the interpolation process is implemented by bilinear interpolation or bicubic interpolation.

[0009] On the other hand, the present invention also provides an image scanning system based on a CIS sensor, the system includes, the image scanning system includes, a main control unit, a scanning unit and a displacement detection unit, wherein the main control unit is configured to set the detection displacement accuracy of the displacement detection unit according to the scanning width of each line of the CIS sensor scanning head of the scanning unit, and receive the pulse signal generated by the displacement detection unit when the moving distance reaches a preset value; after receiving the pulse signal of the displacement detection unit, the main control unit performs a logical judgment on the displacement value sent by the displacement detection unit, and generates a row scanning signal and a timing control scanning unit according to the judgment result and extracts the data of the scanning unit, and calibrates the image data according to the image data sent by the scanning unit to generate a final image; the scanning unit is connected to the main control unit and is configured to complete the scanning operation according to the row scanning signal and the timing signal sent by the main control unit, and send the scanned data to the main control unit; the displacement detection unit is connected to the main control unit and is configured to generate a pulse signal when the moving distance reaches a preset value according to the detection displacement accuracy preset value of the main control unit, and send the detected displacement data to the main control unit.

[0010] Furthermore, the control unit is composed of a main control chip and its basic circuit.

[0011] Furthermore, the scanning unit is composed of a CIS image sensor and its basic circuit.

[0012] Furthermore, the displacement detection unit is composed of a laser displacement sensor and its basic circuit.

[0013] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0014] 1. The present invention uses semiconductor lasers to perform non-contact displacement measurement and triggers scanning by the displacement of the scanning head on the surface of the object, thereby achieving lightweight scanning and high-precision image acquisition.

[0015] 2. The present invention eliminates the physical triggering method of the traditional mechanical scanner and uses a photoelectric displacement detection device to trigger the scanning signal. At the same time, the photoelectric displacement sensor can accurately detect the moving distance, the moving trigger scanning distance is highly accurate, and can be flexibly adjusted through software.

[0016] 3. The present invention can obtain a high-precision image by performing a deflection correction process on the scanned data, and the scanning result is no different from that of the traditional solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0018] Figure 1 This is a flowchart provided for Example 1 of the present invention.

[0019] Figure 2 This is a logic judgment flow chart provided for Example 1 of the present invention.

[0020] Figure 3 This is a system block diagram provided for Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0022] Embodiment 1,

[0023] This embodiment discloses an image scanning method based on a CIS sensor. Conventional scanning devices usually use mechanical components such as slide rails, rollers, and encoders to detect the movement of the scanning head. In this embodiment, a semiconductor laser displacement sensor is used to replace the mechanical components in the conventional scanning device, and a correction algorithm is combined to improve the detection accuracy and system stability.

[0024] Figure 1 The flowchart of this embodiment is shown, which specifically includes the following steps:

[0025] Step 1. According to the scanning width of each line of the CIS sensor scanning head, set the detection displacement accuracy of the laser displacement sensor, and control the laser displacement sensor through the main control chip. When the laser displacement sensor reaches the preset value in the moving distance, a pulse signal will be generated, and the main control chip will detect the pulse signal in real time.

[0026] It should be noted that the scanning width of each line of the CIS sensor scanning head determines how high the accuracy of the displacement sensor needs to be. By making separate settings for different CIS sensors, the accuracy of the displacement sensor can be adjusted according to the situation to achieve customized detection.

[0027] Step 2: The main control chip monitors the pulse signal generated by the photoelectric sensor. When the pulse signal is detected, the main control chip extracts the lateral movement data Y of the CIS sensor scanning head. x , the horizontal movement data Y x When the lateral displacement is greater than 0, a line scan signal is generated. At the same time, the longitudinal movement distance Y is extracted y , stored for backup.

[0028] Specifically, after receiving the pulse signal, the main control chip starts to read the displacement of the x-axis and first performs a logical judgment based on the displacement value.

[0029] If the displacement of the x-axis is negative (recorded as n), it means that the CIS sensor scanning head moves to the left. So the current net displacement value d=n is recorded. Because d<0, the system does not trigger scanning.

[0030] In the next pulse signal, the displacement value of the x-axis is a positive number (denoted as m), which means that the CIS sensor scanning head moves to the right; the net displacement value d is updated. n =d+m, and then determine the net displacement value. If m+n>0, that is, d>0, it means that the net right shift value is greater than 0. At this time, the main control chip generates a row scan signal and starts to generate timing, and resets d to 0. In other words, the scanning timing will only be triggered when the net increase value of the scanning head moving to the right is greater than 0.

[0031] Figure 2 The flowchart of the displacement value logic judgment of step 2 of this embodiment is shown.

[0032] Step 3: The main control chip generates a line scan signal and a timing sequence to control the CIS sensor scanning head to scan and receive the current line scan data, and saves the horizontal movement distance x and the vertical movement distance y values ​​corresponding to the line scan data.

[0033] Step 4: After the scan is completed, the main control chip performs image correction calculation based on the recorded scan data and the lateral movement distance x and longitudinal movement distance y values ​​corresponding to the scan data.

[0034] Specifically, the correction calculation includes logical judgment through the main control chip. When the value of the lateral movement distance x of the line scan data is greater than 1, it means that the displacement in the x-axis direction exceeds one pixel, and the data in the x-axis direction needs to be interpolated.

[0035] Interpolation can be performed using bilinear interpolation or bicubic interpolation to obtain a smooth image.

[0036] Then the main control chip makes a logical judgment on the value of the moving distance y of the row scan data. When the moving distance y value is greater than 0, it means that the displacement in the y-axis direction is greater than 0, which means that the image needs to be moved upward as a whole. At this time, each row of the image data can be moved by the corresponding number of pixels. When the moving distance y value is less than 0, it means that the displacement in the y-axis direction is less than 0, which means that the image needs to be moved downward as a whole. At this time, each row of the image data can be moved downward by the corresponding number of pixels.

[0037] According to the result of the above-mentioned correction calculation, the scanned image is calibrated to generate a final image.

[0038] Example 2

[0039] This embodiment provides an image scanning system based on a CIS sensor. Figure 3 The system block diagram of this embodiment is shown. It can be seen from the figure that the system includes a main control unit, a scanning unit and a displacement detection unit.

[0040] In this embodiment, the main control unit is composed of an FPGA and its basic circuits. The main control unit is configured to set the detection displacement accuracy of the displacement detection unit according to the scanning width of each line of the CIS sensor scanning head of the scanning unit, and receive the pulse signal generated by the displacement detection unit when the moving distance reaches a preset value. After receiving the pulse signal of the displacement detection unit, the main control unit performs a logical judgment on the displacement value sent by the displacement detection unit, and generates a row scanning signal and a timing control scanning unit according to the judgment result and extracts the data of the scanning unit, and calibrates the image data according to the image data sent by the scanning unit to generate the final image.

[0041] In this embodiment, the scanning unit is composed of a CIS image sensor and its basic circuit.

[0042] The scanning unit is connected to the main control unit, and is configured to complete a scanning operation according to a row scanning signal and a timing signal sent by the main control unit, and to send the scanned data to the main control unit.

[0043] In this embodiment, the displacement detection unit is composed of a laser displacement sensor and its basic circuit.

[0044] The displacement detection unit is connected to the main control unit and is configured to generate a pulse signal when the moving distance reaches a preset value according to the preset value of the detection displacement accuracy of the main control unit, and send the detected displacement data to the main control unit.

[0045] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An image scanning method based on a CIS sensor, characterized in that: The image scanning method comprises: S100, according to the scanning width of each line of the CIS sensor scanning head, the detection displacement accuracy of the laser displacement sensor is set, and the laser displacement sensor is controlled by the main control chip. When the laser displacement sensor reaches a preset value in the moving distance, a pulse signal is generated, and the main control chip detects the pulse signal in real time; S200, the main control chip monitors the pulse signal. When the pulse signal is detected, the main control chip performs a logical judgment on the displacement value of the laser displacement sensor, and triggers the CIS sensor to scan data according to the judgment result; S300, the main control chip controls the CIS sensor scanning head to scan and receive the current row scanning data by generating a row scanning signal and a timing sequence, and saves the horizontal movement distance x and the vertical movement distance y corresponding to the row scanning data; S400, after the scanning is completed, the main control chip performs a correction calculation on the image according to the recorded scanning data and in combination with the horizontal movement data x and the vertical movement distance y value corresponding to the scanning data, and calibrates the scanned image according to the result of the correction calculation to generate a final image.

2. The image scanning method based on the CIS sensor according to claim 1, characterized in that: The triggering of the CIS sensor scanning data includes extracting the lateral movement data Y of the CIS sensor scanning head x and longitudinal movement distance Y y , where the lateral movement data x is the scanning signal generated when the lateral displacement is greater than the set unit scanning width.

3. The image scanning method based on the CIS sensor according to claim 1, characterized in that: The logic judgment includes that when the main control chip receives the pulse signal, it starts to read the displacement values ​​of the x and y axes. If the x-axis displacement is negative, it means that the CIS sensor scanning head moves in the opposite direction and the main control chip does not trigger scanning; If the displacement value of the x-axis is a positive number, it indicates that the CIS sensor scanning head is moving in the positive direction. At this time, the main control chip updates the displacement value. When the accumulated displacement value is greater than the set unit scan width, the main control chip generates a row scan signal and starts the production sequence, and resets the displacement value to 0.

4. The image scanning method based on a CIS sensor according to claim 1, characterized in that: The correction calculation includes performing logical judgment through the main control chip, When the single lateral movement distance X is greater than the set unit scanning width, it indicates that the CIS sensor moves too fast, and it is necessary to interpolate the data in the X-axis direction or improve the inspection accuracy to ensure the clarity and scanning accuracy of the image; The main control chip makes a logical judgment on the value of the moving distance y of the row scan data. When the moving distance y is greater than 0, it means that the displacement in the y-axis direction is greater than 0, which means that the image needs to be moved upward as a whole. At this time, each row of the image data can be moved as a whole by the corresponding number of pixels. When the y value is negative, it means that the offset direction of the y-axis is upward, which means that the image needs to be moved downward as a whole. At this time, each row of data in the image can be moved downward by the corresponding number of pixels.

5. The image scanning method based on the CIS sensor according to claim 4, characterized in that: The interpolation process is implemented by bilinear interpolation or bicubic interpolation.

6. An image scanning system based on a CIS sensor, characterized in that: The image scanning system includes a main control unit, a scanning unit and a displacement detection unit, wherein: The main control unit is configured to set the detection displacement accuracy of the displacement detection unit according to the scanning width of each line of the CIS sensor scanning head of the scanning unit, and receive the pulse signal generated by the displacement detection unit when the moving distance reaches a preset value. After receiving the pulse signal of the displacement detection unit, the main control unit performs a logical judgment on the displacement value sent by the displacement detection unit, and generates a line scanning signal and a timing control scanning unit according to the judgment result and extracts the data of the scanning unit, and calibrates the image data according to the image data sent by the scanning unit to generate a final image; The scanning unit is connected to the main control unit and is configured to complete the scanning operation according to the row scanning signal and the timing signal sent by the main control unit, and send the scanned data to the main control unit; The displacement detection unit is connected to the main control unit and is configured to generate a pulse signal when the moving distance reaches a preset value according to the preset value of the detection displacement accuracy of the main control unit, and send the detected displacement data to the main control unit.

7. The image scanning system based on the CIS sensor according to claim 6, characterized in that: The main control unit is composed of a main control chip and its basic circuit.

8. The image scanning system based on the CIS sensor according to claim 6, characterized in that: The scanning unit is composed of a CIS image sensor and its basic circuit.

9. The image scanning system based on the CIS sensor according to claim 6, characterized in that: The displacement detection unit is composed of a laser displacement sensor and its basic circuit.