CN115866422A - Pixel data determination method and device and electronic equipment - Google Patents

Pixel data determination method and device and electronic equipment Download PDF

Info

Publication number
CN115866422A
CN115866422A CN202211484430.6A CN202211484430A CN115866422A CN 115866422 A CN115866422 A CN 115866422A CN 202211484430 A CN202211484430 A CN 202211484430A CN 115866422 A CN115866422 A CN 115866422A
Authority
CN
China
Prior art keywords
pixel data
photosensitive
pixel
line
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211484430.6A
Other languages
Chinese (zh)
Inventor
戴朋飞
姜利
徐家齐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weihai Hualing Opto Electronics Co Ltd
Original Assignee
Weihai Hualing Opto Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weihai Hualing Opto Electronics Co Ltd filed Critical Weihai Hualing Opto Electronics Co Ltd
Priority to CN202211484430.6A priority Critical patent/CN115866422A/en
Publication of CN115866422A publication Critical patent/CN115866422A/en
Priority to PCT/CN2023/102899 priority patent/WO2024109028A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/10Circuitry of solid-state image sensors [SSIS]; Control thereof for transforming different wavelengths into image signals
    • H04N25/11Arrangement of colour filter arrays [CFA]; Filter mosaics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/61Noise processing, e.g. detecting, correcting, reducing or removing noise the noise originating only from the lens unit, e.g. flare, shading, vignetting or "cos4"
    • H04N25/611Correction of chromatic aberration

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

The invention discloses a pixel data determination method and device and electronic equipment. Wherein, the method comprises the following steps: sending a pixel data acquisition command to a line scanning sensor; receiving first photosensitive pixel data which are sent by a line scanning sensor and correspond to a target pixel row; circularly and sequentially sending a preset pixel row moving instruction and a pixel data acquisition instruction to the line scanning sensor until second photosensitive pixel data and third photosensitive pixel data which are sent by the line scanning sensor and correspond to the target pixel row are received; and determining target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scanning sensor and the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row. The invention solves the technical problem that the target pixel data has color edges when the target pixel data corresponding to the target pixel row is determined in the related technology.

Description

Pixel data determination method and device and electronic equipment
Technical Field
The invention relates to the field of image processing, in particular to a pixel data determining method and device and electronic equipment.
Background
Currently, the field of industrial inspection and the field of machine vision. The sensor mainly adopts two modes, namely an area array camera and various light sources, and the other mode is a line scanning line array sensor. The linear array sensor is linear scanning, and has the advantages of wide breadth, compact structure, space saving, no distortion and the like, and the image is 1:1. The line-scan camera is composed of three rows of red, green and blue color chips. Each pixel point is composed of red, green and blue pixel data. In the scanning process, a single pixel point is exposed for multiple times and is composed of red, green and blue photosensitive chips, and a color image can be formed under the condition that white light is only lightened once. However, the color image determined by the method is easy to cause the determined image to have color edges, which interferes with the determination and identification of the final image.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a pixel data determining method, a pixel data determining device and electronic equipment, and aims to at least solve the technical problem that when target pixel data corresponding to a target pixel row are determined in the related art, the target pixel data have color edges.
According to an aspect of an embodiment of the present invention, there is provided a pixel data determining method including: sending a pixel data acquisition instruction to a line scanning sensor, wherein the line scanning sensor comprises three photosensitive chips which are arranged in parallel, the three photosensitive chips correspond to three colors respectively, and the pixel data acquisition instruction is used for enabling the three photosensitive chips at different positions to scan corresponding pixel rows respectively; receiving first photosensitive pixel data which is sent by the line scanning sensor and corresponds to a target pixel row, wherein the first photosensitive pixel data is photosensitive pixel data scanned by a first position photosensitive chip, and the target pixel row corresponds to the scanning position of the first position photosensitive chip when the first photosensitive pixel data corresponding to the target pixel row is obtained; circularly and sequentially sending a preset pixel line moving instruction and a pixel data acquisition instruction to the line scanning sensor until second photosensitive pixel data and third photosensitive pixel data which are sent by the line scanning sensor and correspond to the target pixel line are received, wherein the second photosensitive pixel data are photosensitive pixel data scanned by a second position photosensitive chip, the third photosensitive pixel data are photosensitive pixel data scanned by a third position photosensitive chip, when the second photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the second position photosensitive chip, and when the third photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the third position photosensitive chip; and determining the target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scanning sensor and the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row.
Optionally, before sending the pixel data acquisition instruction to the line scan sensor, the method further includes: acquiring a scanning area of the scanned object scanned by the line scanning sensor; determining an initial scanning position of the scanning sensor according to the scanning area; and sending a position adjusting instruction to the line scanning sensor, wherein the position adjusting instruction carries the initial scanning position.
Optionally, after determining the target pixel data corresponding to the target pixel row according to the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data corresponding to the target pixel row, the method further includes: determining an end point scanning position of the scanning sensor according to the scanning area; determining all pixel rows from the initial scanning position to the end scanning position; circularly and sequentially sending the preset pixel row moving instruction and the pixel data acquisition instruction to the line scanning sensor until receiving first photosensitive pixel data, second photosensitive pixel data and third photosensitive pixel data which are respectively corresponding to all pixel rows and sent by the line scanning sensor; and determining image data corresponding to the scanning area according to the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data respectively corresponding to all the pixel rows.
Optionally, before sending the pixel data acquisition instruction to the line scan sensor, the method further includes: determining a moving pixel row; and determining the pixel data acquisition instruction and the predetermined pixel row moving instruction according to the pixel row moving instruction.
Optionally, the determining a moving pixel row comprises: acquiring a target resolution; and determining the target moving pixel row according to the target resolution.
Optionally, before determining the target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scan sensor and the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data corresponding to the target pixel row, the method includes: and acquiring a color correction coefficient corresponding to the line scanning sensor.
Optionally, the three photosensitive chips include: the device comprises a blue light sensitive chip, a green light sensitive chip and a red light sensitive chip.
According to an aspect of an embodiment of the present invention, there is provided a pixel data determining method including: the line scanning sensor comprises three photosensitive chips, wherein the three photosensitive chips are respectively positioned at different positions, and the pixel data acquisition instruction is used for enabling the three photosensitive chips positioned at different positions to respectively scan corresponding pixel rows; the line scanning module is used for scanning a target pixel line, and acquiring first photosensitive pixel data corresponding to the target pixel line; the receiving and sending module is used for circularly and sequentially sending a preset pixel line moving instruction and the pixel data acquisition instruction to the line scanning sensor until receiving second photosensitive pixel data and third photosensitive pixel data which are sent by the line scanning sensor and correspond to the target pixel line, wherein the second photosensitive pixel data are photosensitive pixel data scanned by a second position photosensitive chip, the third photosensitive pixel data are photosensitive pixel data scanned by a third position photosensitive chip, when the second photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the second position photosensitive chip, and when the third photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the third position photosensitive chip; and the determining module is used for determining the target pixel data corresponding to the target pixel row according to the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the pixel data determination method as described in any one of the above.
According to an aspect of embodiments of the present invention, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform a pixel data determination method as described in any one of the above.
In an embodiment of the present invention, a pixel data acquisition instruction is sent to a line scan sensor, where the line scan sensor includes three photosensitive chips arranged in parallel, the three photosensitive chips correspond to three colors, the pixel data acquisition instruction is used to enable the three photosensitive chips located at different positions to scan corresponding pixel rows, and receive first photosensitive pixel data corresponding to a target pixel row sent by the line scan sensor, and then send a move predetermined pixel row instruction and a pixel data acquisition instruction to the line scan sensor in sequence in a recycling manner until second photosensitive pixel data corresponding to the target pixel row and third photosensitive pixel data sent by the line scan sensor are received, where the first photosensitive pixel data is photosensitive pixel data scanned by the first photosensitive chip, when the first photosensitive pixel data corresponding to the target pixel row is acquired, the target pixel row corresponds to a scanning position of the first photosensitive chip, the second photosensitive pixel data is photosensitive pixel data scanned by the second photosensitive chip, and the third photosensitive pixel data is photosensitive pixel data scanned by the third photosensitive chip, and when the second photosensitive pixel data corresponds to the target pixel row, the third photosensitive pixel data is acquired when the second photosensitive pixel data corresponds to the target pixel row. And determining target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scanning sensor and the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row. That is, the pixel data of the target pixel row is scanned and determined by the first position sensor chip, the second position sensor chip and the third position sensor chip respectively through multiple scans, and is scanned at the determined scanning position. Corresponding pixel data are obtained by scanning at the determined scanning position, so that the area range of the determined pixel data is standard, correspondingly, the determined pixel data are more accurate, namely, the problem of color edges does not occur, and the technical problem that the target pixel data have color edges when the target pixel data corresponding to the target pixel row are determined in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a pixel data determination method according to an embodiment of the invention;
FIG. 2 is a diagram illustrating a pixel of the prior art;
FIG. 3 is a schematic diagram of an image after using the method according to an alternative embodiment of the present invention;
FIG. 4 is a schematic diagram of pixel data determination in an alternative embodiment of the invention;
FIG. 5 is a schematic diagram of pixel data determination in an alternative embodiment of the present invention;
fig. 6 is a block diagram of the structure of a pixel data determining apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a pixel data determination method, it being noted that the steps illustrated in the flowchart of the drawings may be carried out in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be carried out in an order different than here.
Fig. 1 is a flowchart of a pixel data determining method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, sending a pixel data acquisition instruction to a line scanning sensor, wherein the line scanning sensor comprises three photosensitive chips which are arranged in parallel, the three photosensitive chips correspond to three colors respectively, and the pixel data acquisition instruction is used for enabling the three photosensitive chips located at different positions to scan corresponding pixel rows respectively;
in step S102 described in the present application, by sending a pixel data acquisition instruction to the line scan sensor, the pixel data acquisition instruction can be used to enable the three photosensitive chips located at different positions to respectively scan corresponding pixel rows. Suppose that in an image with 3*3 pixels, a first position photosensitive chip scans pixel data of 3 pixels in a first row, a second position photosensitive chip scans pixel data of 3 pixels in a second row, and a third position photosensitive chip scans pixel data of 3 pixels in a third row, so that each photosensitive chip scans a pixel row at a position corresponding to the photosensitive chip, and the data determined by the pixels in the pixel row is more accurate.
As an alternative embodiment, the three photosensitive chips include: the device comprises a blue light sensitive chip, a green light sensitive chip and a red light sensitive chip. In this embodiment, the blue light sensing chip can obtain B pixel data, the green light sensing chip can obtain G pixel data, and the red light sensing chip can obtain R pixel data, that is, as in the above example, it is assumed that the blue light sensing chip, the green light sensing chip, and the red light sensing chip are respectively located at the first position, the second position, and the third position. The first position photosensitive chip, namely blue photosensitive chip, scans the B pixel data of 3 pixels in the first row, the second position photosensitive chip, namely green photosensitive chip, scans the G pixel data of 3 pixels in the second row, and the third position photosensitive chip, namely red photosensitive chip, scans the R pixel data of 3 pixels in the third row.
Step S104, receiving first photosensitive pixel data which is sent by a line scanning sensor and corresponds to a target pixel row, wherein the first photosensitive pixel data is photosensitive pixel data scanned by a first position photosensitive chip, and when the first photosensitive pixel data corresponding to the target pixel row is obtained, the target pixel row corresponds to the scanning position of the first position photosensitive chip;
in step S104 described in the present application, when the first photosensitive pixel data corresponding to the target pixel row is obtained, the target pixel row corresponds to the scanning position of the first position photosensitive chip, so that the obtained first photosensitive pixel data is located at the position corresponding to the scanning position of the first position photosensitive chip, and the first photosensitive pixel data can be accurately obtained by scanning.
Step S106, circularly and sequentially sending a preset pixel line moving instruction and a pixel data acquisition instruction to the line scanning sensor until receiving second photosensitive pixel data and third photosensitive pixel data which are sent by the line scanning sensor and correspond to a target pixel line, wherein the second photosensitive pixel data are photosensitive pixel data scanned by a second position photosensitive chip, the third photosensitive pixel data are photosensitive pixel data scanned by a third position photosensitive chip, when the second photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the second position photosensitive chip, and when the third photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the third position photosensitive chip;
in step S106 described in this application, by moving the line scanning sensor, all pixel data of the target pixel row, that is, the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data, are obtained by scanning the first position photosensitive chip, the second position photosensitive chip, and the third position photosensitive chip, which are located at the corresponding positions.
Step S108, determining target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scan sensor, the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data corresponding to the target pixel row.
In step S108 described in the present application, the color correction coefficient is obtained to participate in the correction, and when the pixel data is obtained by using the method for obtaining the pixel data in the related art and the correction is performed according to the color correction coefficient, a color fringing phenomenon may occur. Therefore, by this step, it is possible to eliminate the problem that the color fringing phenomenon occurs with the participation of the color correction coefficient. Moreover, the pixel data can be corrected through the color correction coefficient, so that the finally determined target pixel data can restore a more real color.
Through the steps, a pixel data acquisition command is sent to the line-scan sensor, wherein the line-scan sensor comprises three photosensitive chips which are arranged in parallel, the three photosensitive chips correspond to three colors respectively, the pixel data acquisition command is used for enabling the three photosensitive chips located at different positions to scan corresponding pixel rows respectively, first photosensitive pixel data which are sent by the line-scan sensor and correspond to a target pixel row are received, a preset pixel row moving command and a pixel data acquisition command are sent to the line-scan sensor in a circulating and sequential mode until second photosensitive pixel data and third photosensitive pixel data which are sent by the line-scan sensor and correspond to the target pixel row are received, the first photosensitive pixel data are photosensitive pixel data which are scanned by the first position photosensitive chip, when the first photosensitive pixel data which correspond to the target pixel row are obtained, the target pixel row corresponds to the scanning position of the first position photosensitive chip, the second photosensitive pixel data are photosensitive pixel data which are scanned by the second position photosensitive chip, the third photosensitive pixel data are photosensitive pixel data which are scanned by the third position photosensitive chip, when the second photosensitive pixel data which correspond to the target pixel row are obtained, the third photosensitive pixel data correspond to the target pixel row are scanned by the target pixel data, and the third photosensitive pixel data which correspond to the target pixel row are obtained when the target pixel data which correspond to the target pixel row. And determining target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scanning sensor and the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row. That is, the pixel data of the target pixel row is scanned and determined by the first position sensor chip, the second position sensor chip and the third position sensor chip respectively through multiple scans, and is scanned at the determined scanning position. Corresponding pixel data are obtained by scanning at the determined scanning position, so that the area range of the determined pixel data is standard, correspondingly, the determined pixel data are more accurate, namely, the problem of color edges does not occur, and the technical problem that the target pixel data have color edges when the target pixel data corresponding to the target pixel row are determined in the related technology is solved.
As an alternative embodiment, before sending the pixel data acquisition command to the line scan sensor, the method further includes: acquiring a scanning area of a scanned object scanned by a line scanning sensor; determining an initial scanning position of the scanning sensor according to the scanning area; and sending a position adjusting instruction to the line scanning sensor, wherein the position adjusting instruction carries an initial scanning position.
In this embodiment, when the line-scan sensor is to scan a scanned object, it is possible to determine a scanning area including the scanned object. According to the scanning area, an initial scanning position of the scanning sensor is determined, and a position adjusting command is sent to the line scanning sensor, so that the line scanning sensor responds to the position adjusting command to reach the initial scanning position, and image processing of the whole scanning area is completed.
As an alternative embodiment, after determining the target pixel data corresponding to the target pixel row according to the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row, the method further includes: determining the end point scanning position of the scanning sensor according to the scanning area; determining all pixel rows from the initial scanning position to the end scanning position; circularly and sequentially sending a preset pixel row moving instruction and a pixel data acquisition instruction to the line scanning sensor until receiving first photosensitive pixel data, second photosensitive pixel data and third photosensitive pixel data which are respectively corresponding to all pixel rows and sent by the line scanning sensor; and determining image data corresponding to the scanning area according to the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data respectively corresponding to all the pixel rows.
In this embodiment, pixel data of all pixel rows of the scanning area is acquired to determine image data corresponding to the scanning area. It can be understood that, moving the line scan sensor, which is equivalent to moving the positions of the three photosensitive chips, controls the three photosensitive chips to scan three rows of pixels corresponding to the three photosensitive chips, respectively, to obtain corresponding pixel values, until receiving the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data corresponding to all pixel rows, respectively, sent by the line scan sensor, and can determine final image data, so that the finally determined image does not have the problem of color edges.
As an alternative embodiment, before sending the pixel data acquisition command to the line scan sensor, the method further includes: determining a moving pixel row; and determining a pixel data acquisition instruction and a predetermined pixel row moving instruction according to the pixel row moving instruction.
In this embodiment, the number of pixel rows acquired by the pixel data acquisition instruction and the number of pixel rows moved by moving the predetermined pixel row may be determined according to the actual application and scene. Therefore, the desired number of pixel rows can be determined, and the pixel data acquisition command and the command for moving the predetermined pixel row are determined according to the moving pixel row. For example, if the target moves by the length of one pixel, the pixel row is moved to 1, the number of pixel rows acquired by the pixel data acquisition instruction is determined to be 1, and the number of pixel rows moved by moving the predetermined pixel row is determined to be 1, that is, the pixel row scanned by the photosensitive chip is the 1 row, and the predetermined pixel row is moved to the 1 row; if the target moves by the length of two pixels, the pixel row is moved by 2, the number of pixel rows acquired by the pixel data acquisition instruction is determined to be 2, and the number of pixel rows moved by moving the preset pixel row is determined to be 1, namely the pixel row scanned by the photosensitive chip is moved by 2 rows and the preset pixel row is moved by 1 row. Through carrying out different settings, can satisfy the demand of different applications and scenes, enlarge the scope of protection of this application.
As an alternative embodiment, determining the moving distance of the target includes: acquiring a target resolution; and determining a target moving pixel row according to the target resolution.
In this embodiment, a method for determining the moving distance of the target is disclosed, for example, when the high resolution is used as a pixel with half reduced resolution, for example, when the resolution is used as 300DPI (Dots Per Inch), the moving length is changed from 43.2um (same as the length of the above-mentioned one pixel) to 84.6um (same as the length of the above-mentioned two pixels), that is, the moving pixel row is changed from 1 to 2, and at this time, the pixel row number acquired by the pixel data acquisition instruction is changed from 1 to 2, that is, the acquisition of the pixel can be completed. The method provided by the application can be adjusted according to different resolutions, and the applicability of the scheme is improved.
As an alternative embodiment, before determining the target pixel data corresponding to the target pixel row according to the color correction coefficients corresponding to the line-scan sensor and the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data corresponding to the target pixel row, the method includes: color correction coefficients corresponding to the line-scan sensors are acquired.
In this embodiment, the color correction coefficient is obtained, and the problem of color fringing occurring with the participation of the color correction coefficient can be eliminated. Moreover, the pixel data can be corrected through the color correction coefficient, so that the finally determined target pixel data can restore a more real color.
Based on the above embodiments and alternative embodiments, an alternative implementation is provided, which is described in detail below.
The invention provides a pixel data determination method, which is implemented by taking a linear scanning sensor as a linear scanning sensor with blue, green and red rows of photosensitive chips arranged in parallel, namely a blue photosensitive chip is at a first position, a green photosensitive chip is at a second position, and a red photosensitive chip is at a third position as an example, the blue, green and red rows of photosensitive chips of the linear scanning sensor are B, G and R, and three rows of pixel data can be obtained by one exposure, wherein the three rows of pixel data respectively comprise pixel data of blue light of a row corresponding to the first position, pixel data of green light of a row corresponding to the second position, and pixel data of red light corresponding to the third position.
Fig. 2 is a schematic diagram of pixel points in the prior art, each pixel point is composed of light holes of three colors, red, green and blue. The pixel data determining method provided by the alternative embodiment of the present invention obtains all pixel data of a row of pixel points in fig. 2 by three exposures (same as the above scanning).
In the prior art, an image formed by directly multiplying (B1, G1, R1) by a color correction coefficient has a color edge phenomenon. Fig. 3 is a schematic diagram of an image obtained by using the method according to an alternative embodiment of the present invention, as shown in fig. 3, after the technique is used, an image is formed by multiplying (B1, G2, R3) by a color correction coefficient, and a color fringing phenomenon disappears during a scanning process. The following detailed description of alternative embodiments of the invention:
s1, acquiring a scanning area of a scanned object scanned by a linear scanning sensor;
s2, determining an initial scanning position of the scanning sensor according to the scanning area;
s3, sending a position adjusting instruction to the line scanning sensor, and moving the line scanning sensor to an initial scanning position, namely enabling the blue light sensing chip to scan the pixel points in the first row;
s4, sending a pixel data acquisition command to the line scanning sensor, exposing and scanning the line scanning sensor to obtain pixel data of a first line, defining the pixel data as B1, namely the B1 pixel data of the pixel points of the first line, wherein the blue photosensitive chip is located at a first position and can just scan the pixel points of the first line, so that the green photosensitive chip and the red photosensitive chip which are located behind the blue photosensitive chip can not obtain the pixel data of the pixel points;
s5, sending a preset pixel row moving instruction and a pixel data acquisition instruction to the line scanning sensor, so that the line scanning sensor moves one row to a preset position, the line scanning sensor is exposed and scanned, and pixel data G2 of a first row and pixel data B2 of a second row are obtained;
s6, sending the preset pixel row moving instruction and the pixel data acquisition instruction to the line scanning sensor again, enabling the line scanning sensor to move one row again to the preset position, enabling the line scanning sensor to be exposed and scanned, and obtaining pixel data R3 of the first row, pixel data G3 of the second row and pixel data B3 of the third row;
it should be noted that fig. 4 is a schematic diagram of determining pixel data in an alternative embodiment of the present invention, as shown in fig. 4, fig. 4 shows a process of determining (B1, G2, R3) pixel data of the first row of pixel points, and a dark portion in the diagram is the (B1, G2, R3) pixel data.
...
S7, until pixel data B, pixel data G and pixel data R which are sent by the line scanning sensor and respectively correspond to all pixel rows are received;
and S8, determining image data corresponding to the scanning area according to the color correction coefficient, the pixel data B corresponding to all the pixel rows, the pixel data G and the pixel data R.
In the above process, the image data corresponding to the scanning area may be determined by determining the target pixel data corresponding to each pixel row according to the color correction coefficient, and the pixel data B, the pixel data G, and the pixel data R corresponding to each pixel row, for example, for a certain pixel in the first row, the pixel data of the pixel in the first row is (B1, G2, R3), and the color correction coefficient is multiplied. And waiting for a color pixel point after color correction. And by analogy, the color correction is also carried out on the pixel points obtained by the exposure of the N, N +1, N +2 times.
Optionally, based on the above optional embodiment, the present application further provides an extension scheme for converting a high resolution into a low resolution, fig. 5 is a schematic diagram of determining pixel data in the extension scheme of the optional embodiment of the present invention, as shown in fig. 5, fig. 5 shows a process of determining the following (B1, G1, R2) pixel data, where a dark portion is the above (B1, G1, R2) pixel data, and the following describes the scheme specifically:
because the high resolution is converted into the low resolution, the original two pixels with high resolution, namely the first line B1 of the pixel 1, the first line B1 of the pixel 2, the uplink G of the pixel 1 and the uplink G of the pixel 2, form 1 new low resolution pixel. If scanning is started from the middle position of the scanning area and the scanning direction moves from B to R in the pixel point, image data of three colors can be obtained by two times of exposure for a line scanning camera with sequentially arranged blue, green and red photosensitive chips. The image data of red light obtained by the first exposure is defined as R1, and the image data B1 of blue light. When the image data G1 moves to 1/2line, the image data G1 of green light is obtained by starting the second exposure; when moving to 1line, exposure obtains pixel data R2, B2; and synthesizing color points by using gray values of three colors (B1, G1, R2) multiplied by color correction coefficients = red, green and blue R, G and B as color pixel points in a first row. And by analogy, the color correction is also carried out on the pixel points obtained by the exposure of the N, N +1, N +2 times. And by analogy, the color correction is also carried out on the pixel points obtained by the exposure of the N, N +1, N +2 times.
Through the above alternative embodiment, at least the following advantageous effects can be achieved: the pixel data of the target pixel row is scanned and determined by the photosensitive chip at the second different position through multiple scans, and is scanned at the determined scanning position. Corresponding pixel data are obtained by scanning at the determined scanning position, so that the area range of the determined pixel data is standard, correspondingly, the determined pixel data are more accurate, namely, the problem of color edges does not occur, and the technical problem that the target pixel data have color edges when the target pixel data corresponding to the target pixel row are determined in the related technology is solved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above-described pixel data determining method, and fig. 6 is a block diagram of a structure of the pixel data determining apparatus according to the embodiment of the present invention, as shown in fig. 6, the apparatus includes: a sending module 602, a receiving module 604, a transceiving module 606, and a determining module 608, which are described in detail below.
A sending module 602, configured to send a pixel data acquisition instruction to a line scan sensor, where the line scan sensor includes three photosensitive chips arranged in parallel, the three photosensitive chips correspond to three colors, and the pixel data acquisition instruction is used to enable the three photosensitive chips located at different positions to scan corresponding pixel rows, respectively; a receiving module 604, connected to the sending module 602, configured to receive first photosensitive pixel data corresponding to a target pixel row sent by a line scan sensor, where the first photosensitive pixel data is photosensitive pixel data scanned by a first position photosensitive chip, and when the first photosensitive pixel data corresponding to the target pixel row is obtained, the target pixel row corresponds to a scanning position of the first position photosensitive chip; a transceiver module 606, connected to the receiving module 604, configured to send a command for moving a predetermined pixel row and a pixel data acquisition command to the line scan sensor in a cyclic and sequential manner until receiving second photosensitive pixel data and third photosensitive pixel data corresponding to a target pixel row sent by the line scan sensor, where the second photosensitive pixel data is photosensitive pixel data scanned by a second position photosensitive chip, the third photosensitive pixel data is photosensitive pixel data scanned by a third position photosensitive chip, when the second photosensitive pixel data corresponding to the target pixel row is obtained, the target pixel row corresponds to a scanning position of the second position photosensitive chip, and when the third photosensitive pixel data corresponding to the target pixel row is obtained, the target pixel row corresponds to a scanning position of the third position photosensitive chip; the determining module 608 is connected to the transceiver module 606, and configured to determine the target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scan sensor, and the first photosensitive pixel data, the second photosensitive pixel data, and the third photosensitive pixel data corresponding to the target pixel row.
It should be noted here that the sending module 602, the receiving module 604, the transceiving module 606 and the determining module 608 correspond to steps S102 to S108 in implementing the pixel data determining method, and a plurality of modules are the same as the corresponding steps in implementing examples and application scenarios, but are not limited to what is disclosed in the foregoing embodiment 1.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement any of the above-described pixel data determination methods.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the pixel data determination methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A pixel data determination method, comprising:
sending a pixel data acquisition instruction to a line scanning sensor, wherein the line scanning sensor comprises three photosensitive chips which are arranged in parallel, the three photosensitive chips correspond to three colors respectively, and the pixel data acquisition instruction is used for enabling the three photosensitive chips at different positions to scan corresponding pixel rows respectively;
receiving first photosensitive pixel data which are sent by the line scanning sensor and correspond to a target pixel row, wherein the first photosensitive pixel data are photosensitive pixel data scanned by a first position photosensitive chip, and when the first photosensitive pixel data corresponding to the target pixel row are obtained, the target pixel row corresponds to the scanning position of the first position photosensitive chip;
circularly and sequentially sending a preset pixel line moving instruction and a pixel data acquisition instruction to the line scanning sensor until second photosensitive pixel data and third photosensitive pixel data which are sent by the line scanning sensor and correspond to the target pixel line are received, wherein the second photosensitive pixel data are photosensitive pixel data scanned by a second position photosensitive chip, the third photosensitive pixel data are photosensitive pixel data scanned by a third position photosensitive chip, when the second photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the second position photosensitive chip, and when the third photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the third position photosensitive chip;
and determining the target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scanning sensor and the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row.
2. The method of claim 1, wherein prior to sending the pixel data acquisition command to the line scan sensor, further comprising:
acquiring a scanning area of the scanned object scanned by the line scanning sensor;
determining an initial scanning position of the scanning sensor according to the scanning area;
and sending a position adjusting instruction to the line scanning sensor, wherein the position adjusting instruction carries the initial scanning position.
3. The method of claim 2, wherein after determining the target pixel data corresponding to the target pixel row based on the first, second, and third photosensitive pixel data corresponding to the target pixel row, further comprising:
determining an end point scanning position of the scanning sensor according to the scanning area;
determining all pixel rows from the initial scanning position to the end scanning position;
circularly and sequentially sending the preset pixel row moving instruction and the pixel data acquisition instruction to the line scanning sensor until receiving first photosensitive pixel data, second photosensitive pixel data and third photosensitive pixel data which are respectively corresponding to all pixel rows and sent by the line scanning sensor;
and determining image data corresponding to the scanning area according to the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data respectively corresponding to all the pixel rows.
4. The method of claim 1, wherein prior to sending the pixel data acquisition command to the line scan sensor, further comprising:
determining a moving pixel row;
and determining the pixel data acquisition instruction and the predetermined pixel row moving instruction according to the pixel row moving instruction.
5. The method of claim 4, wherein determining the moving pixel row comprises:
acquiring a target resolution;
and determining the target moving pixel row according to the target resolution.
6. The method of claim 1, wherein determining the target pixel data corresponding to the target pixel row based on the color correction factor corresponding to the line-scan sensor and the first, second, and third photosensitive pixel data corresponding to the target pixel row comprises:
and acquiring a color correction coefficient corresponding to the line scanning sensor.
7. The method of any one of claims 1 to 6, wherein the three photo-sensing chips comprise: the device comprises a blue light sensitive chip, a green light sensitive chip and a red light sensitive chip.
8. A pixel data determining method, comprising:
the line scanning sensor comprises three photosensitive chips which are arranged in parallel, the three photosensitive chips correspond to three colors respectively, and the pixel data acquisition instruction is used for enabling the three photosensitive chips at different positions to scan corresponding pixel rows respectively;
the line scanning module is used for scanning a target pixel line, and acquiring first photosensitive pixel data corresponding to the target pixel line;
the receiving and sending module is used for circularly and sequentially sending a preset pixel line moving instruction and the pixel data acquisition instruction to the line scanning sensor until receiving second photosensitive pixel data and third photosensitive pixel data which are sent by the line scanning sensor and correspond to the target pixel line, wherein the second photosensitive pixel data are photosensitive pixel data scanned by a second position photosensitive chip, the third photosensitive pixel data are photosensitive pixel data scanned by a third position photosensitive chip, when the second photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the second position photosensitive chip, and when the third photosensitive pixel data corresponding to the target pixel line are obtained, the target pixel line corresponds to the scanning position of the third position photosensitive chip;
and the determining module is used for determining the target pixel data corresponding to the target pixel row according to the color correction coefficient corresponding to the line scanning sensor and the first photosensitive pixel data, the second photosensitive pixel data and the third photosensitive pixel data corresponding to the target pixel row.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the pixel data determination method of any one of claims 1 to 7.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the pixel data determination method of any one of claims 1 to 7.
CN202211484430.6A 2022-11-24 2022-11-24 Pixel data determination method and device and electronic equipment Pending CN115866422A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211484430.6A CN115866422A (en) 2022-11-24 2022-11-24 Pixel data determination method and device and electronic equipment
PCT/CN2023/102899 WO2024109028A1 (en) 2022-11-24 2023-06-27 Pixel data determination method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211484430.6A CN115866422A (en) 2022-11-24 2022-11-24 Pixel data determination method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115866422A true CN115866422A (en) 2023-03-28

Family

ID=85666038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211484430.6A Pending CN115866422A (en) 2022-11-24 2022-11-24 Pixel data determination method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN115866422A (en)
WO (1) WO2024109028A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024109028A1 (en) * 2022-11-24 2024-05-30 威海华菱光电股份有限公司 Pixel data determination method and apparatus, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314571A (en) * 2020-01-21 2020-06-19 许之敏 Scanning imaging method, computer equipment and storage medium
CN113315906A (en) * 2021-04-20 2021-08-27 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN113676675A (en) * 2021-08-16 2021-11-19 Oppo广东移动通信有限公司 Image generation method and device, electronic equipment and computer-readable storage medium
CN113824935A (en) * 2021-09-23 2021-12-21 合肥埃科光电科技有限公司 Time delay integration method, device and equipment of pseudo color line scanning camera

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413805B (en) * 2018-04-25 2022-02-01 杭州海康威视数字技术股份有限公司 Image storage method and device, electronic equipment and storage medium
JP2019199050A (en) * 2018-05-18 2019-11-21 キヤノン株式会社 Image forming device, method for generating image data for the same and program
CN115866422A (en) * 2022-11-24 2023-03-28 威海华菱光电股份有限公司 Pixel data determination method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314571A (en) * 2020-01-21 2020-06-19 许之敏 Scanning imaging method, computer equipment and storage medium
CN113315906A (en) * 2021-04-20 2021-08-27 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN113676675A (en) * 2021-08-16 2021-11-19 Oppo广东移动通信有限公司 Image generation method and device, electronic equipment and computer-readable storage medium
CN113824935A (en) * 2021-09-23 2021-12-21 合肥埃科光电科技有限公司 Time delay integration method, device and equipment of pseudo color line scanning camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024109028A1 (en) * 2022-11-24 2024-05-30 威海华菱光电股份有限公司 Pixel data determination method and apparatus, and electronic device

Also Published As

Publication number Publication date
WO2024109028A1 (en) 2024-05-30

Similar Documents

Publication Publication Date Title
US7529424B2 (en) Correction of optical distortion by image processing
CN101304484B (en) Image forming apparatus, flaw pixel correction apparatus, processing method of the device
US8106976B2 (en) Peripheral light amount correction apparatus, peripheral light amount correction method, electronic information device, control program and readable recording medium
US8031232B2 (en) Image pickup apparatus including a first image formation system and a second image formation system, method for capturing image, and method for designing image pickup apparatus
DE112009005418B4 (en) Image processing device
CN102870404B (en) Imaging device and dark current correction method of same
EP3414890B1 (en) Devices and methods for high dynamic range video
CN101326808A (en) Method and apparatus providing noise reduction while preserving edges for imagers
US20050270402A1 (en) Method, apparatus, imaging module and program for improving image quality in a digital imaging device
CN101356799A (en) Method and apparatus for image noise reduction
CN115866422A (en) Pixel data determination method and device and electronic equipment
US7415170B2 (en) Data processing apparatus, image processing apparatus, camera, and data processing method
JP4819132B2 (en) Scanner and scanning method
US20070146750A1 (en) Method for generating calibration curve
CN115100037A (en) Large-breadth tile imaging method and system based on multi-line scanning camera image splicing
EP2731335A1 (en) Imaging device, imaging method, and imaging program
CN111866369B (en) Image processing method and device
CN113450270A (en) Correction parameter generation method, electronic device, and storage medium
JP2000307884A (en) Color and gradation corrections of negative film scan using existing silver salt print
KR100645856B1 (en) Signal processing method and image acquisition device
JP2003143421A (en) Image processing device and method therefor
US9066056B2 (en) Systems for constant hue and adaptive color correction image processing
CN111738960A (en) Image processing apparatus, image processing method, and image forming apparatus
CN112907533A (en) Detection model training method, device, equipment and readable storage medium
TWI405144B (en) Image correcting method, image correcting unit and image capture apparatus using the same

Legal Events

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