Image processing method and device
Patent Information
- Application Number
- TW114107060
- Authority / Receiving Office
- TW · TW
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2045-02-25
Smart Images

Figure TWG2TA001073998_001 
Figure TWG2TA001073998_002 
Figure TWG2TA001073998_003
Abstract
Claims
1. An image processing method, comprising the following steps: In a preview mode, dividing a preview grayscale image into a plurality of grids and obtaining the average grayscale of each of the plurality of grids; Downgrading the preview grayscale image and performing a reverse compensation on the downgraded preview grayscale image; Declaring a plurality of regions and dividing the plurality of grids into corresponding regions among the plurality of regions to generate region information, and generating an exposure map including at least one compensated exposure time based on at least one current exposure time and at least one compensation ratio; and in a shooting mode, exposing the image according to the region information and the exposure map with the at least one compensated exposure time to obtain an image.
2. The image processing method as described in claim 1 further includes: Divide the first level of the preview grayscale image by a preset ratio to reduce it to a second level.
3. The image processing method as described in claim 2, wherein the reverse compensation includes: For each order in the second order, the maximum value is subtracted and the absolute value is taken, resulting in a plurality of exposure compensation values corresponding to the second order, such that the highest order in the second order corresponds to the lowest exposure compensation value, and the lowest order in the second order corresponds to the highest exposure compensation value.
4. The image processing method as described in claim 1 further includes: Record the positions of the plurality of grids divided into the plurality of regions and the number of grids in each of the plurality of regions to obtain information about the region.
5. The image processing method as described in claim 1 further includes: The at least one current exposure time is multiplied by the corresponding at least one compensation ratio to generate the at least one compensated exposure time.
6. The image processing method as described in claim 2 further includes: In response to a specific compensation exposure time corresponding to a specific order in the second order, all grids in at least one region corresponding to the specific order in the plurality of regions are exposed at that specific compensation exposure time.
7. The image processing method as described in claim 1 further includes: When one of the multiple regions is a non-rectangular region, the region is divided into several rectangular regions and set in batches.
8. An image processing apparatus, comprising: A processor is configured to: in a preview mode, divide a preview grayscale image into a plurality of grids and obtain the average grayscale of each of the plurality of grids; perform a reverse compensation on the preview grayscale image; declare a plurality of regions and divide the plurality of grids into corresponding regions within the plurality of regions to generate region information, and generate an exposure map including at least one compensated exposure time based on at least one current exposure time and at least one compensation ratio; and generate a row control signal, a column control signal, and a data signal based on the region information and the exposure map; and an image sensor array coupled to the processor is configured to, in a shooting mode, expose an image based on the row control signal, the column control signal, and the data signal with the at least one compensated exposure time.
9. The image processing apparatus of claim 8, wherein the processor is further configured to downscale the preview grayscale image and perform the reverse compensation on the downscaled preview grayscale image.
10. The image processing apparatus of claim 8, wherein the processor is further configured to divide a first order of the preview grayscale image by a preset ratio to reduce it to a second order.
11. The image processing apparatus of claim 10, wherein the processor is configured to perform the reverse compensation including: The processor is configured to subtract the maximum value from each order in the second order and take the absolute value, thereby generating a plurality of exposure compensation amounts corresponding to the second order, such that the highest order in the second order corresponds to the lowest exposure compensation amount, and the lowest order in the second order corresponds to the highest exposure compensation amount.
12. The image processing apparatus of claim 8, wherein the processor is further configured to record the positions of the plurality of grids divided into the plurality of regions and the number of grids in each of the plurality of regions to obtain region information.
13. The image processing apparatus of claim 8, wherein the processor is further configured to multiply the at least one current exposure time by the corresponding at least one compensation ratio to generate the at least one compensated exposure time.
14. The image processing apparatus of claim 10, wherein a particular compensated exposure time of the at least one compensated exposure time corresponds to a particular order of the second order, and the image sensor array exposes all grids in the at least one region corresponding to the particular order in the plurality of regions at the particular compensated exposure time.
15. The image processing apparatus of claim 8, wherein when one of the regions declared by the processor is a non-rectangular region, the processor is further configured to divide the region into several rectangular batches.
16. The image processing apparatus of claim 8, wherein the image sensor array comprises a plurality of pixels, and each of the plurality of pixels has an independent exposure control circuit.
17. The image processing apparatus of claim 16, wherein the exposure control circuit includes: A logic element, configured to receive the row control signal and the column control signal and output a consistent signal; And a counter, coupled to the logic element, configured to start counting according to the enable signal until the compensation exposure time ends.
18. The image processing apparatus of claim 17, wherein in response to both the row control signal and the column control signal being a first reference, the logic element outputs the enable signal of the first reference to enable the counter to start counting and the pixel to start exposure simultaneously, until the compensation exposure time ends, at which point the counter stops counting and the pixel stops exposure simultaneously.
19. The image processing apparatus of claim 17, wherein the counter further receives a clock signal and the data signal and obtains the compensated exposure time from the data signal, the counter being a timer and the logic element being a gate element.