Image Processing Method, Apparatus, Terminal Device, and Storage Medium

By acquiring the original image of the camera module and using the pre-configured exposure range of the green channel to extract the exposure range and the target channel exposure range, the problem of not being able to obtain the exposure range of other channels of the image in the prior art is solved, and the accurate testing of the camera module and the improvement of the yield of the PDXTC test is achieved.

CN114581387BActive Publication Date: 2025-07-18KUNSHAN QIUTI PHOTOELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210172228.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2025-07-18
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

In the prior art, the exposure range of other channels of the image cannot be known, resulting in the camera module being unable to achieve accurate testing in special test scenarios. For example, the PDXTC yield of the camera module cannot be improved in the anti-electronic crosstalk test.

Method used

By acquiring the original image captured by the camera module, exposing the original image using the pre-configured exposure range of the green channel, obtaining the exposed image, and extracting the exposure range of the target channel to determine the target exposure range of the red channel and the blue channel.

Benefits of technology

The rapid and accurate extraction of the exposure range of the image target channel is achieved, and the problem of inaccurate camera module testing caused by the inability to know the exposure range of other channels of the image in the prior art is solved, and the yield of PDXTC test is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581387B_ABST
    Figure CN114581387B_ABST
Patent Text Reader

Abstract

The present invention discloses an image processing method, apparatus, terminal device and storage medium. The method includes: obtaining an original image captured by an imaging module; obtaining a preconfigured exposure range of the green channel of the image; performing exposure on the original image according to the preconfigured exposure range to obtain an exposed image; and performing extraction processing on the exposed image for the exposure range of the target channel to obtain the target exposure range of the target channel of the image captured by the imaging module. By using the present invention, the technical problem in the prior art that the exposure range of other channels of the image cannot be known, resulting in the inability to accurately test the imaging module, can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image technology, and in particular, to an image processing method, apparatus, terminal device, and storage medium. Background Art

[0002] When a camera module performs various tests, automatic exposure (AE) is used. However, the AE exposure range provided by sensor manufacturers is usually the exposure range value of the green (G) channel, and the exposure ranges of other channels of the image cannot be obtained. This will result in inaccurate testing of the camera module in some special test scenarios. For example, in the anti-electronic crosstalk (PDXTC) test, if only the G-channel exposure range is used, the PDXTC yield of the camera module cannot be improved.

[0003] Specifically, during the PDXTC test, the camera module needs to capture 30 to 50 module images to obtain some of the data required during the PDXTC test. When capturing 30 to 50 images, red (R) and blue (B) light sources are used for shooting respectively. At this time, the exposure ranges of the R channel and the B channel are also required for the exposure range of the image. However, in actual applications, currently the manufacturer platform or the sensor factory provides only the exposure range of the G channel and does not provide the exposure ranges of other channels except G, making it impossible to accurately test the camera module. Summary of the Invention

[0004] Embodiments of the present application solve the technical problem in the prior art that the exposure ranges of other channels of an image cannot be obtained, resulting in inaccurate testing of the camera module, by providing an image processing method, apparatus, terminal device, and storage medium.

[0005] On the one hand, an embodiment of the present application provides an image processing method, the method including:

[0006] Obtain an original image captured by a camera module;

[0007] Obtain a preconfigured exposure range of the green channel of the image;

[0008] Expose the original image according to the preconfigured exposure range to obtain an exposed image;

[0009] Perform extraction processing on the exposed image for the exposure range of the target channel to obtain the target exposure range of the target channel of the image captured by the camera module.

[0010] Optionally, the extraction process of the target channel exposure range from the exposure image to obtain the target exposure range of the target channel of the captured image corresponding to the camera module includes:

[0011] Determine the central region of the exposure image;

[0012] According to the pixel values of each pixel point in the central region, perform an extraction process on the exposure image for the target channel exposure range to obtain the target exposure range of the target channel.

[0013] Optionally, the performing an extraction process on the exposure image for the target channel exposure range according to the pixel values of each pixel point in the central region to obtain the target exposure range of the target channel includes:

[0014] According to a preset channel arrangement rule, query the pixel values of each pixel point in the central region to obtain the pixel values of the target pixel points corresponding to each target channel in the central region;

[0015] According to the pixel values of each of the target pixel points, determine the target exposure range of the target channel.

[0016] Optionally, the determining the target exposure range of the target channel according to the pixel values of each of the target pixel points includes:

[0017] Determine the minimum pixel value and the maximum pixel value from the pixel values of each of the target pixel points;

[0018] According to the minimum pixel value and the maximum pixel value, determine the target exposure range of the target channel.

[0019] Optionally, the target channel includes a red channel and / or a blue channel.

[0020] Optionally, after obtaining the target exposure range of the target channel, the method further includes:

[0021] According to the target exposure range of the target channel, adjust the camera module to improve the anti-electronic crosstalk yield of the camera module.

[0022] Optionally, the obtaining the original image captured by the camera module includes:

[0023] Adjust the shooting light source according to the pre-configured color temperature and illuminance;

[0024] Under the illumination of the shooting light source, use the camera module to capture the corresponding original image.

[0025] On the other hand, an embodiment of the present application provides an image processing apparatus, which includes: an acquisition module, an exposure module, and a processing module, where:

[0026] The acquisition module is configured to acquire an original image captured by an imaging module;

[0027] The acquisition module is further configured to acquire a preconfigured exposure range of the green channel of the image;

[0028] The exposure module is configured to expose the original image according to the preconfigured exposure range to obtain an exposed image;

[0029] The processing module is configured to perform extraction processing on the exposed image to obtain a target exposure range of a target channel of the image captured by the imaging module.

[0030] On the other hand, an embodiment of the present application provides a terminal device, which includes: a processor, a memory, a communication interface, and a bus; the processor, the memory, and the communication interface are connected through the bus and complete communication with each other; the memory stores executable program codes; the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory to execute the image processing method as described above.

[0031] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a program that executes the image processing method as described above when running on a terminal device.

[0032] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: The present application acquires an original image captured by an imaging module; acquires a preconfigured exposure range of the green channel of the image; exposes the original image according to the preconfigured exposure range to obtain an exposed image; performs extraction processing on the exposed image to obtain a target exposure range of a target channel of the image captured by the imaging module. In the above solution, the present application first exposes the original image collected by the imaging module according to the preconfigured exposure range of the green channel to obtain an exposed image, and then extracts the target exposure range of the target channel different from the green channel from the exposed image, realizing the rapid and accurate extraction of the exposure range of the image target channel, and at the same time solving the technical problem in the prior art that the accurate test of the imaging module cannot be achieved because the exposure ranges of other channels of the image cannot be known. Description of the Drawings

[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0034] Figure 1 It is a schematic flowchart of an image processing method provided by an embodiment of the present application.

[0035] Figure 2 It is a schematic diagram of the central area of an exposure image provided by an embodiment of the present application.

[0036] Figure 3 It is a schematic structural diagram of an image processing device provided by an embodiment of the present application.

[0037] Figure 4 It is a schematic structural diagram of a terminal device provided by an embodiment of the present application. Specific Embodiments

[0038] To solve the technical problem in the prior art that the exposure range of other channels of an image cannot be known, resulting in the inability to accurately test a camera module, the embodiments of the present application provide an image processing method. The general idea is as follows: Obtain the original image captured by the camera module; obtain the preconfigured exposure range of the green channel of the image; perform exposure on the original image according to the preconfigured exposure range to obtain an exposure image; perform extraction processing on the exposure image for the exposure range of the target channel to obtain the target exposure range of the target channel of the captured image corresponding to the camera module.

[0039] To better understand the above technical solutions, the following will describe the above technical solutions in detail in combination with the accompanying drawings of the specification and specific embodiments.

[0040] First, it should be noted that the term "and / or" appearing in this article 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.

[0041] Please refer to Figure 1 , which is a schematic flowchart of an image processing method provided by an embodiment of the present application. As Figure 1 shown, the method includes the following implementation steps:

[0042] S101. Obtain the original image captured by the camera module.

[0043] The original image described in this application can be obtained by a camera module, or can be obtained from other devices (such as servers, terminal devices, etc.) through the network. This application does not make any limitations.

[0044] In a specific embodiment, this application can adjust the shooting light source according to the pre-configured color temperature and pre-configured illuminance, so that the light source conditions of the photographing light source reach the standard light source conditions of a preset standard light source. Then, under the illumination of the adjusted shooting light source, the camera module is used to shoot and obtain the corresponding original image. Thus, the original image with relatively clear image quality can be acquired under the standard light source conditions of the photographing light source.

[0045] Specifically, this application can use a standard light source (such as an ACL-G4C light source) to adjust the color temperature and illuminance of the standard light source according to the requirements of the sensor manufacturer to obtain a corresponding photographing light source. For example, the color temperature of the photographing light source is adjusted to 5100K, and the illuminance of the photographing light source is adjusted to 1000 Lux, etc.

[0046] S102. Obtain the pre-configured exposure range of the green channel of the image.

[0047] The pre-configured exposure range of the green (G) channel described in this application can be pre-customized and set by the system or the sensor manufacturer. In practical applications, the pre-configured exposure range can be a pre-configured exposure range interval or a pre-configured exposure range value. Usually, the pre-configured exposure range refers to an exposure range interval. This application does not make any limitations.

[0048] S103. Expose the original image according to the pre-configured exposure range to obtain an exposed image.

[0049] This application can perform exposure processing on the original image according to the pre-configured exposure range of the green (G) channel of the image to obtain a corresponding exposed image. Specifically, for example, this application can select any exposure value from the pre-configured exposure range of the G channel to expose the original image to obtain the exposed image. The pre-configured exposure range or the exposure value in the pre-configured exposure range will affect the exposure time of the original image. Specifically, if the pre-configured exposure range is larger or its exposure value is larger, the exposure time for this application to expose the original image will be longer.

[0050] S104. Perform extraction processing on the exposed image for the target channel exposure range to obtain the target exposure range of the target channel of the image captured by the camera module.

[0051] This application can perform extraction processing on the target channel exposure range for the entire image area or any selected image area in the exposure image, so as to obtain the target exposure range of the target channel of the captured image corresponding to the camera module. Among them, the target channel is different from the green (G) channel, and the target channel can be the red (R) channel and / or the blue (B) channel.

[0052] In a specific embodiment, this application can first determine the central area of the exposure image. The central area refers to the image area located at the central position of the exposure area, and its size is not limited in this application. For example, it can be determined according to the information provided by the sensor manufacturer, etc. For example, the size of the central area can be 10×10, etc.

[0053] Furthermore, this application can perform extraction processing on the target channel exposure range of the exposure image according to the pixel values of each pixel point in the central area, so as to obtain the target exposure range of the target channel. Specifically, this application can query the pixel values of each pixel point in the central area according to a preset channel arrangement rule, so as to obtain the pixel values of the target pixel points corresponding to each target channel in the central area. The channel arrangement rule is determined by the camera module. For example, the channel arrangement rule can be arranged in the following order: R channel, Gr (green - red) channel, Gb (green - blue) channel, and B channel. In practical applications, the arrangement order of different sensors in the camera module is different, and the corresponding channel arrangement rule of the captured image can be different.

[0054] Furthermore, this application can determine the target exposure range of the target channel according to the pixel values of each of the target pixel points. For example, this application can first determine the minimum pixel value and the maximum pixel value from the pixel values of each of the target pixel points, and then determine the target exposure range of the target channel according to the minimum pixel value and the maximum pixel value. Specifically, for example, the target exposure range of the target channel can be greater than or equal to the minimum pixel value and less than or equal to the maximum pixel value.

[0055] For example, please refer to Figure 2 which shows a schematic diagram of a possible central area of the exposure image. As Figure 2 shown, the exposure image is the image obtained after exposing the original image with a pre - configured exposure range of 803.9 in the green channel. And as Figure 2The pixel values (which can also be referred to as the brightness values of the pixel points) of each pixel point included in the central region of the exposure image are also shown. Each square in the illustration represents a pixel point corresponding to an image channel, and the value on the square represents the pixel value of the pixel point. The white square represents the pixel value of the pixel point corresponding to the red (R) channel, the dark gray square represents the pixel value of the pixel point corresponding to the blue (B) channel, and the light gray square represents the pixel value of the pixel point corresponding to the green (G) channel.

[0056] As Figure 2 In a specific implementation, the present application can first obtain a central region of 8×8 size from the exposure image and lock the central region. The size of the central region is not limited in the present application. Here, only an example of 8×8 is shown but does not constitute a limitation. Then, according to the image channel arrangement rule (for example, the channel sorting indicated by the arrangement rule is the R, Gr, Gb, and B channels in sequence), the present application can determine / obtain the positions of the pixel points corresponding to the target channels (for example, the R channel and the B channel) in the central region. Specifically, the present application can query the positions of all the R channels and B channels in the central region according to the preset position of the first pixel point and the preset channel arrangement rule, and record the pixel values of the first pixel point corresponding to the R channel and the second pixel point corresponding to the B channel obtained by the query one by one, so as to obtain the pixel values of the target pixel points corresponding to all the R channels and B channels in the central region.

[0057] Furthermore, the present application can count the pixel values of the first pixel points corresponding to all the R channels, and obtain the minimum pixel value and the maximum pixel value of the R channel from them. Then, the present application can determine the target exposure range, that is, the exposure interval, of the R channel during AE exposure by using the minimum pixel value and the maximum pixel value of the R channel. As Figure 2 In the example shown, the minimum pixel value and the maximum pixel value of the R channel in the central region are 512 and 550 respectively, so the target exposure range of the R channel is [512, 550].

[0058] Correspondingly, the present application can count the pixel values of the second pixel points corresponding to all the B channels, and obtain the minimum pixel value and the maximum pixel value of the B channel from them. Then, the present application can determine the target exposure range, that is, the exposure interval, of the B channel during AE exposure by using the minimum pixel value and the maximum pixel value of the B channel. As Figure 2 In the example shown, the minimum pixel value and the maximum pixel value of the B channel in the central region are 520 and 545 respectively, so the target exposure range of the B channel is [520, 545].

[0059] In an alternative embodiment, after the present application obtains the target exposure range of the target channel, the present application can adjust the module parameters of the camera module according to the target exposure range of the target channel, such as the target exposure ranges of the R channel and the B channel respectively, so as to achieve accurate testing of the camera module. For example, during the PDXTC test, the PDXTC test yield of the camera module can be further improved according to the target exposure ranges of the R channel and the B channel respectively. The specific adjustment of the camera module is not limited and elaborated here in the present application.

[0060] By implementing the embodiments of the present application, the present application obtains the original image captured by the camera module; obtains the preconfigured exposure range of the green channel of the image; exposes the original image according to the preconfigured exposure range to obtain an exposed image; and performs extraction processing on the exposed image to obtain the target exposure range of the target channel of the captured image corresponding to the camera module. In the above solution, the present application first exposes the original image collected by the camera module according to the preconfigured exposure range of the green channel to obtain an exposed image, and then extracts the target exposure range of the target channel different from the green channel from the exposed image, realizing the rapid and accurate extraction of the exposure range of the target channel of the image, and at the same time solving the technical problem in the prior art that the accurate testing of the camera module cannot be achieved because the exposure ranges of other channels of the image cannot be known.

[0061] Based on the same inventive concept, another embodiment of the present application provides an apparatus and a terminal device corresponding to the image processing method described in the embodiments of the present application.

[0062] Please refer to Figure 3 , which is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present application. As Figure 3 shown, the apparatus 30 includes: an acquisition module 301, an exposure module 302, and a processing module 303, where:

[0063] The acquisition module 301 is configured to acquire the original image captured by the camera module and the preconfigured exposure range of the green channel of the image;

[0064] The exposure module 302 is configured to expose the original image according to the preconfigured exposure range to obtain an exposed image;

[0065] The processing module 303 is configured to perform extraction processing on the exposed image to obtain the target exposure range of the target channel of the captured image corresponding to the camera module.

[0066] Optionally, the processing module 303 is specifically configured to:

[0067] Determine the central region of the exposed image;

[0068] Extract the exposure range of the target channel from the exposure image according to the pixel values of each pixel point in the central region, so as to obtain the target exposure range of the target channel.

[0069] Optionally, the processing module 303 is further specifically configured to:

[0070] Query the pixel values of each pixel point in the central region according to a preset channel arrangement rule to obtain the pixel values of the target pixel points corresponding to each target channel in the central region;

[0071] Determine the target exposure range of the target channel according to the pixel values of each of the target pixel points.

[0072] Optionally, the processing module 303 is further specifically configured to:

[0073] Determine the minimum pixel value and the maximum pixel value from the pixel values of each of the target pixel points;

[0074] Determine the target exposure range of the target channel according to the minimum pixel value and the maximum pixel value.

[0075] Optionally, the target channel includes a red channel and / or a blue channel.

[0076] Optionally, the processing module 303 is further configured to:

[0077] Adjust the camera module according to the target exposure range of the target channel to improve the anti-electronic crosstalk yield of the camera module.

[0078] Please also refer to FIG. 4, which is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As Figure 4 shown, the terminal device 40 includes: at least one processor 401, a communication interface 402, a user interface 403, and a memory 404. The processor 401, the communication interface 402, the user interface 403, and the memory 404 can be connected through a bus or other means. In this embodiment of the present invention, it is taken as an example that they are connected through a bus 405. Among them,

[0079] The processor 401 may be a general-purpose processor, such as a central processing unit (CPU).

[0080] The communication interface 402 may be a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface) for communicating with other terminals or websites. In this embodiment of the present invention, the communication interface 402 is specifically configured to obtain an original image or the exposure range of the green channel of an image, etc.

[0081] The user interface 403 can specifically be a touch panel, including a touch screen and a touch display screen, for detecting operation instructions on the touch panel. The user interface 403 can also be a physical button or a mouse. The user interface 403 can also be a display screen for outputting and displaying images or data.

[0082] The memory 404 can include volatile memory, such as random access memory (RAM); the memory can also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); the memory 404 can also include a combination of the above types of memory. The memory 404 is used to store a set of program codes, and the processor 401 is used to call the program codes stored in the memory 404 to perform the following operations:

[0083] Obtain the original image captured by the camera module;

[0084] Obtain the preconfigured exposure range of the green channel of the image;

[0085] Expose the original image according to the preconfigured exposure range to obtain an exposed image;

[0086] Perform extraction processing on the exposed image for the target channel exposure range to obtain the target exposure range of the target channel of the image captured by the camera module.

[0087] Optionally, the performing extraction processing on the exposed image for the target channel exposure range to obtain the target exposure range of the target channel of the image captured by the camera module includes:

[0088] Determine the central region of the exposed image;

[0089] Perform extraction processing on the exposed image for the target channel exposure range according to the pixel values of each pixel point in the central region to obtain the target exposure range of the target channel.

[0090] Optionally, the performing extraction processing on the exposed image for the target channel exposure range according to the pixel values of each pixel point in the central region to obtain the target exposure range of the target channel includes:

[0091] Query the pixel values of each pixel point in the central region according to the preset channel arrangement rule to obtain the pixel values of the target pixel points corresponding to each target channel in the central region;

[0092] Determine the target exposure range of the target channel according to the pixel values of each of the target pixel points.

[0093] Optionally, the determining the target exposure range of the target channel according to the pixel values of each of the target pixel points includes:

[0094] Determine the minimum pixel value and the maximum pixel value from the pixel values of each of the target pixel points;

[0095] Determine the target exposure range of the target channel according to the minimum pixel value and the maximum pixel value.

[0096] Optionally, the target channel includes a red channel and / or a blue channel.

[0097] Optionally, after obtaining the target exposure range of the target channel, the processor 401 is further configured to:

[0098] Adjust the camera module according to the target exposure range of the target channel to improve the anti-electronic crosstalk yield of the camera module.

[0099] Optionally, the obtaining the original image captured by the camera module includes:

[0100] Adjust the shooting light source according to the pre-configured color temperature and illuminance;

[0101] Under the illumination of the shooting light source, use the camera module to capture the corresponding original image.

[0102] Since the terminal device introduced in this embodiment is the terminal device used to implement the method in the embodiments of the present application, based on the method introduced in the embodiments of the present application, those skilled in the art can understand the specific implementation manners and various variations of the terminal device in this embodiment. Therefore, the specific implementation of how this terminal device implements the method in the embodiments of the present application will not be described in detail here. As long as it is the terminal device used by those skilled in the art to implement the method in the embodiments of the present application, it falls within the scope of protection of the present application.

[0103] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: The present application obtains an original image captured by an imaging module; obtains a preconfigured exposure range of the green channel of the image; exposes the original image according to the preconfigured exposure range to obtain an exposed image; performs extraction processing on the exposed image for the exposure range of the target channel to obtain the target exposure range of the target channel of the captured image corresponding to the imaging module. In the above solution, the present application first exposes the original image collected by the imaging module according to the preconfigured exposure range of the green channel to obtain an exposed image, and then extracts the target exposure range of the target channel different from the green channel from the exposed image, realizing the fast and accurate extraction of the exposure range of the target channel of the image, and at the same time solving the technical problem in the prior art that the accurate test of the imaging module cannot be achieved because the exposure ranges of other channels of the image cannot be known.

[0104] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0105] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0106] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device realizes the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable apparatus provide steps for realizing the functions specified in one process or a plurality of processes and / or one block or a plurality of blocks. Figure 1 one process or a plurality of processes and / or Figure 1 one block or a plurality of blocks.

[0108] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made by those skilled in the art once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.

[0109] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. An image processing method, characterized in that, The method includes: Obtaining an original image captured by an imaging module; Obtaining a preconfigured exposure range of the green channel of the image; Exposing the original image according to the preconfigured exposure range to obtain an exposed image; Performing extraction processing on the exposed image for the exposure range of the target channel to obtain the target exposure range of the target channel of the image captured by the imaging module; The performing extraction processing on the exposed image for the exposure range of the target channel to obtain the target exposure range of the target channel of the image captured by the imaging module includes: Determining the central region of the exposed image; Performing extraction processing on the exposed image for the exposure range of the target channel according to the pixel values of each pixel point in the central region to obtain the target exposure range of the target channel; The performing extraction processing on the exposed image for the exposure range of the target channel according to the pixel values of each pixel point in the central region to obtain the target exposure range of the target channel includes: Querying the pixel values of each pixel point in the central region according to a preset channel arrangement rule to obtain the pixel values of the target pixel points corresponding to each target channel in the central region; Determining the target exposure range of the target channel according to the pixel values of each target pixel point; The determining the target exposure range of the target channel according to the pixel values of each target pixel point includes: Determining the minimum pixel value and the maximum pixel value from the pixel values of each target pixel point; Determining the target exposure range of the target channel according to the minimum pixel value and the maximum pixel value.

2. The method according to claim 1, wherein The target channel includes a red channel and / or a blue channel.

3. The method according to claim 1, characterized in that, After obtaining the target exposure range of the target channel, the method further includes: Adjusting the imaging module according to the target exposure range of the target channel to improve the anti-electronic crosstalk yield of the imaging module.

4. The method according to claim 1, wherein The obtaining an original image captured by an imaging module includes: Adjusting a shooting light source according to preconfigured color temperature and illuminance; Under the illumination of the shooting light source, using the imaging module to capture the corresponding original image.

5. An image processing apparatus, characterized in that, The device includes: an acquisition module, an exposure module, and a processing module, where: The acquisition module is used to obtain an original image captured by an imaging module and a preconfigured exposure range of the green channel of the image; The exposure module is used to expose the original image according to the preconfigured exposure range to obtain an exposed image; The processing module is used to perform extraction processing on the exposed image for the exposure range of the target channel to obtain the target exposure range of the target channel of the image captured by the imaging module; The processing module is specifically used for: Determining the central region of the exposed image; Performing extraction processing on the exposed image for the exposure range of the target channel according to the pixel values of each pixel point in the central region to obtain the target exposure range of the target channel Querying the pixel values of each pixel point in the central region according to a preset channel arrangement rule to obtain the pixel values of the target pixel points corresponding to each target channel in the central region; Determining the target exposure range of the target channel according to the pixel values of each target pixel point; Determine the minimum pixel value and the maximum pixel value from the pixel values of each of the target pixel points; Determine the target exposure range of the target channel according to the minimum pixel value and the maximum pixel value.

6. A terminal device, characterized in that, The terminal device includes: a processor, a memory, a communication interface, and a bus; the processor, the memory, and the communication interface are connected through the bus and complete communication with each other; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the image processing method described in any one of claims 1-4 above.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program, and when the program runs on a terminal device, it executes the image processing method described in any one of claims 1-4 above.

Citation Information

Patent Citations

  • Image correction method based on multiple-contact image sensor (CIS) large-format scanner

    CN103297654A

  • Digital camera imaging method for achieving high-definition display of high dynamic range images

    CN106973240A