CN105657262A - Image processing method and apparatus - Google Patents

Image processing method and apparatus Download PDF

Info

Publication number
CN105657262A
CN105657262A CN201511031776.0A CN201511031776A CN105657262A CN 105657262 A CN105657262 A CN 105657262A CN 201511031776 A CN201511031776 A CN 201511031776A CN 105657262 A CN105657262 A CN 105657262A
Authority
CN
China
Prior art keywords
unit
image
area
luminance
continuous
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.)
Granted
Application number
CN201511031776.0A
Other languages
Chinese (zh)
Other versions
CN105657262B (en
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201511031776.0A priority Critical patent/CN105657262B/en
Publication of CN105657262A publication Critical patent/CN105657262A/en
Application granted granted Critical
Publication of CN105657262B publication Critical patent/CN105657262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Abstract

The invention discloses an image processing method and apparatus. The method comprises the following steps: dividing a collected image into a plurality of units, and calculating the average brightness value of each unit; determining a brightness level corresponding to the average brightness value of each unit according to a preset corresponding relation of the average brightness value and the brightness level; when the image satisfies a first preset condition, determining at least one continuous brightness area from the image, and determining the brightness value and/or definition value of the image within each continuous brightness area; selecting a continuous brightness area having the most pixel points from the at least one continuous brightness area; when the selected continuous brightness area satisfies a second set condition, using the selected continuous brightness area as a target area; carrying out exposure compensation processing on the image in the target area according to the brightness value of the image in the target area; and/or using the central position of the target area as a focusing point, and focusing according to the definition value of the image in the target area.

Description

A kind of image processing method and device
Technical field
The present invention relates to technical field of image processing, particularly to a kind of image processing method and device.
Background technology
In daily life and work, people often participate in the activities such as meeting, training, speech. At the scene, participant often uses projector the required content told about to be presented to audience to projection screen with the form flash of PPT. In order to be recorded in time by useful projection picture, participant spectators are frequently used the electronic equipments such as mobile phone, panel computer, digital camera and by projection image taking on projection screen and are saved in oneself electronic equipment, in order to subsequent reference uses.
Due to when using projector playing image, in order to ensure that the projection picture play can be clearly seen that by on-the-spot spectators, need the brightness of light of surrounding lower than the brightness of projection screen, the brightness of the light of surrounding is more big with the contrast of the brightness of projection screen, and the projection picture that spectators see is more clear. Owing to the brightness of the light of surrounding is low, the brightness of projection screen is high so that when using electronic equipment shooting, be difficult to capture screen picture clearly.
Summary of the invention
Embodiments provide a kind of image processing method and device, the brightness due to the light of surrounding for solving to exist in prior art is low, the brightness of projection screen is high so that when using electronic equipment shooting, the problem being difficult to capture screen picture clearly.
A kind of image processing method that the embodiment of the present invention provides, including:
If being individual unit by the image division that collects, and calculate the average brightness value of each unit;
Corresponding relation according to default average brightness value Yu brightness degree, it is determined that go out the brightness degree that the average brightness value of each unit is corresponding;
When in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, from described image, determine at least one continuous luminance area, and determine brightness value and/or the definition values of image in each continuous luminance area, the brightness degree that each unit of comprising in described continuous luminance area is corresponding is all higher than or equal to the luminance threshold set;
From at least one continuous luminance area described, choose and comprise the continuous luminance area that pixel is maximum;
When the number of the pixel comprised in selected continuous luminance area meets the second condition of setting, using selected continuous luminance area as target area;
According to the brightness value of image in described target area, image in described target area is exposed compensation deals; And/or using the center of described target area as focusing, according to the definition values of image in described target area, carry out focusing process.
In possible implementation, in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, including:
In described image brightness degree more than or equal to set luminance threshold unit number more than or equal to set first threshold; Or the ratio of total number of the unit that brightness degree comprises with described image more than or equal to the number of the unit of the luminance threshold set is more than or equal to the Second Threshold set in described image.
In possible implementation, after in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, from described image, it is determined that before going out at least one continuous luminance area, also include: described image is carried out continuous treatment;
From described image, it is determined that go out at least one continuous luminance area, comprise determining that out the continuous luminance area of at least one in the image after continuous treatment.
In possible implementation, described image is carried out continuous treatment, including:
With set sliding window travel through each unit, described sliding window be sized to the area size shared by a*b unit, the number of the unit that a comprises less than each row in described image, the number of the unit that b comprises less than each column in described image;
In a*b unit in described sliding window, when brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, brightness degree is adjusted described luminance threshold lower than the brightness degree of the unit of described luminance threshold.
In possible implementation, brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, including:
Brightness degree lower than the unit of described luminance threshold number less than or equal to set the 3rd threshold value; Or brightness degree lower than the ratio of total number of the unit comprised in the number of the unit of described luminance threshold and described sliding window less than or equal to the 4th threshold value set.
In possible implementation, the number of the pixel comprised in selected continuous luminance area meets the second condition of setting, including:
The number of the pixel comprised in selected luminance area is more than or equal to the 5th threshold value set; Or the ratio of the number of the pixel comprised in the number of the pixel comprised in selected luminance area and described image is more than or equal to the 6th threshold value set.
In possible implementation, using selected continuous luminance area as target area, including:
Determine the pixel of four apex in described target area, and record the coordinate information of the pixel determined; According to direction clockwise or counterclockwise, it is sequentially connected with the pixel determined by straight line, obtains tetragon closed area, and using the closed area that obtains as final target area.
Embodiments provide a kind of image processing apparatus, including:
Dividing elements module, if the image division for collecting is individual unit, and calculates the average brightness value of each unit;
Brightness degree determines module, for the corresponding relation according to the average brightness value preset with brightness degree, it is determined that go out the brightness degree that the average brightness value of each unit is corresponding;
Continuous luminance area determines module, when meeting the first condition of setting more than or equal to the number of unit of the luminance threshold set for brightness degree in described image, from described image, determine at least one continuous luminance area, and determine brightness value and/or the definition values of image in each continuous luminance area, the brightness degree that each unit of comprising in described continuous luminance area is corresponding is all higher than or equal to the luminance threshold set;
Choose module, for, from least one continuous luminance area described, choosing and comprise the continuous luminance area that pixel is maximum;
Module is determined in target area, when the number of the pixel for comprising in selected continuous luminance area meets the second condition of setting, using selected continuous luminance area as target area;
Parameter adjustment module, for according to the brightness value of image in described target area, being exposed compensation deals to image in described target area; And/or using the center of described target area as focusing, according to the definition values of image in described target area, carry out focusing process.
In possible implementation, in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, including:
In described image brightness degree more than or equal to set luminance threshold unit number more than or equal to set first threshold; Or the ratio of total number of the unit that brightness degree comprises with described image more than or equal to the number of the unit of the luminance threshold set is more than or equal to the Second Threshold set in described image.
In possible implementation, described continuous luminance area determine submodule specifically for:
Described image is carried out continuous treatment; Determine the continuous luminance area of at least one in the image after continuous treatment.
In possible implementation, described continuous luminance area determines that described image is carried out continuous treatment by submodule, including:
With set sliding window travel through each unit, described sliding window be sized to the area size shared by a*b unit, the number of the unit that a comprises less than each row in described image, the number of the unit that b comprises less than each column in described image;
In a*b unit in described sliding window, when brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, brightness degree is adjusted described luminance threshold lower than the brightness degree of the unit of described luminance threshold.
In possible implementation, brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, including:
Brightness degree lower than the unit of described luminance threshold number less than or equal to set the 3rd threshold value; Or brightness degree lower than the ratio of total number of the unit comprised in the number of the unit of described luminance threshold and described sliding window less than or equal to the 4th threshold value set.
In possible implementation, the number of the pixel comprised in selected continuous luminance area meets the second condition of setting, including:
The number of the pixel comprised in selected luminance area is more than or equal to the 5th threshold value set;Or the ratio of the number of the pixel comprised in the number of the pixel comprised in selected luminance area and described image is more than or equal to the 6th threshold value set.
In possible implementation, target area determines that module is additionally operable to:
Determine the pixel of four apex in described target area, and record the coordinate information of the pixel determined; According to direction clockwise or counterclockwise, it is sequentially connected with the pixel determined by straight line, obtains tetragon closed area, and using the closed area that obtains as final target area.
In the method and apparatus that the embodiment of the present invention provides, in the embodiment of the present invention in the process of detection target area, brightness value and/or the definition values of this target area are calculated, when automatic exposure processes, can directly use the brightness value determined, brightness value is determined without by exposure algorithm, when auto-focusing processes, directly use the definition values having determined that, definition values is determined, thus simplifying automatic exposure and the complexity of auto-focusing algorithm itself without by focus algorithm. Owing to only being focused in the target area detected and exposure compensating process, ensure that in shooting preview stage and the photo shot, the exposure of target area is moderate all the time so that the definition of target area is the highest all the time such that it is able to use electronic equipment clearly to capture highlighted image.
Accompanying drawing explanation
The schematic flow sheet of a kind of image processing method that Fig. 1 provides for the embodiment of the present invention;
Schematic diagram one in the continuous treatment process that Fig. 2 A provides for the embodiment of the present invention;
Schematic diagram two in the continuous treatment process that Fig. 2 B provides for the embodiment of the present invention;
Schematic diagram three in the continuous treatment process that Fig. 2 C provides for the embodiment of the present invention;
The schematic flow sheet of the embodiment one that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the embodiment two that Fig. 4 provides for the embodiment of the present invention;
The schematic diagram of a kind of image processing apparatus that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail. Should be appreciated that embodiment described herein is merely to illustrate and explains the present invention, be not intended to limit the present invention.
Embodiments provide a kind of image processing method, as it is shown in figure 1, the method includes:
If S11, being individual unit by the image division that collects, and calculate the average brightness value of each unit;
The corresponding relation of S12, the average brightness value that basis is preset and brightness degree, it is determined that go out the brightness degree that the average brightness value of each unit is corresponding;
When S13, in the images brightness degree meet the first condition of setting more than or equal to the number of the unit of the luminance threshold set, from state's image, determine at least one continuous luminance area, and determine brightness value and/or the definition values of image in each continuous luminance area, the brightness degree that each unit of comprising in continuous luminance area is corresponding is all higher than or equal to the luminance threshold set;
S14, from least one the continuous luminance area determined, choose and comprise the continuous luminance area that pixel is maximum;
S15, when selected continuous luminance area meets the second condition of setting, using selected continuous luminance area as target area;
The target area determined in this step can be rectangular area, it is also possible to for irregular quadrilateral area.
S16, according to the brightness value of image in described target area, image in described target area is exposed compensation deals; And/or using the center of described target area as focusing, according to the definition values of image in described target area, carry out focusing process.
The method that the embodiment of the present invention provides, in the embodiment of the present invention in the process of detection target area, brightness value and/or the definition values of this target area are calculated, when automatic exposure processes, it is possible to directly use the brightness value to determine, determine brightness value without by exposure algorithm, when auto-focusing processes, directly use the definition values having determined that, determine definition values without by focus algorithm, thus simplifying automatic exposure and the complexity of auto-focusing algorithm itself. Owing to only being focused in the target area detected and exposure compensating process, ensure that in shooting preview stage and the photo shot, the exposure of target area is moderate all the time so that the definition of target area is the highest all the time such that it is able to use electronic equipment clearly to capture highlighted image.
In force, if the image division that collects is individual unit by S11, particularly as follows: assume collect image be sized to [W, H], divide the image into the unit of several m*m, the preferred value of m is 16 or 32 pixels, the number of the unit then divided is M=(W/m) * (H/m), wherein, W is the number of the pixel that each row comprises in this image, and H is the number of the pixel that each column comprises in this image.
In force, in S12, average brightness value is set in advance with the corresponding relation of brightness degree, and brightness degree is N level, and the preferred value of N is 3 or 5, for instance, N=1 (namely 1 grade) represents that brightness is the darkest, and N=5 (namely 5 grades) represents that brightness is the brightest.
In force, S13 is from this image, it is determined that go out at least one continuous luminance area, particularly as follows: utilize seed growth algorithm, from this image, it is determined that go out at least one independent continuous luminance area.
In force, after S12, before S13, also include: count the number more than or equal to the unit of the luminance threshold set of brightness degree in the image collected;
In the image collected in S13, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, including: the number of the unit counted is more than or equal to the first threshold set; Or the ratio of total number of the unit that the number of the unit counted and this image comprise is more than or equal to the Second Threshold set.
Based on any of the above-described embodiment, optionally, in S13, utilize seed growth algorithm, from described image, it is determined that go out at least one continuous luminance area, and after determining arbitrary continuous luminance area, it is determined that go out brightness value and/or the definition values of image in this continuous luminance area. Below by a specific embodiment, the process determining continuous luminance area is illustrated.
Embodiment one, implement process as it is shown on figure 3, include following process:
S301, by the coordinate of pixel, (x, y) as planting subcoordinate; Wherein, process with each pixel in the image collected for seed;
S302, judge whether this kind of subcoordinate is traversed and meets growth conditions;
If so, S303 is then performed;
If it is not, then perform S304;
S303, statistics are with this pixel (x, y) brightness value of the pixel in the continuous luminance area determined as seed, and/or add up the definition values of each pixel in continuous luminance area and neighbor pixel, and perform S305.
S304, will with pixel (x, y) neighbor is as seed, repeats S301��S303;
S305, to judge whether entire image travels through complete;
If so, then terminate to process, obtain all continuous luminance area determined;
If it is not, then perform S304.
Based on any of the above-described embodiment, after S12, before S13, also include: this image is carried out continuous treatment;
In S13 from this image, it is determined that go out at least one continuous luminance area, comprise determining that out the continuous luminance area of at least one in the image after continuous treatment.
In force, the image collected is carried out continuous treatment, including:
With set sliding window travel through each unit, this sliding window be sized to the area size shared by a*b unit, the number of the unit that a comprises less than each row in this image, the number of the unit that b comprises less than each column in this image;
In a*b unit in this sliding window, when brightness degree meets the third condition of setting lower than the number of the unit of the luminance threshold set, brightness degree is adjusted lower than the brightness degree of the unit of the luminance threshold set the luminance threshold of this setting.
Optionally, the sliding window of setting be sized to the area size shared by 2*2 unit, or the sliding window set be sized to the area size shared by 3*3 unit.
Optionally, brightness degree meets the third condition of setting lower than the number of the unit of the luminance threshold set, including:
Brightness degree lower than set luminance threshold unit number less than or equal to set the 3rd threshold value; Or the ratio of total number of the unit comprised in number and described sliding window that brightness degree is lower than the unit of the luminance threshold set is less than or equal to the 4th threshold value set.
Illustrate, it is assumed that sliding window be sized to 2*2 unit, the luminance threshold set is as 2 grades, then the brightness degree unit lower than 2 is low-light level unit. Assume that the 4th threshold value set is as 1/4, if the ratio of the total number of the unit (namely 4) comprised in the number of the low-light level unit then comprised in sliding window and this sliding window is less than or equal to 1/4, it is determined that brightness degree meets the third condition of setting lower than the unit of the luminance threshold set. As shown in Figure 2 A, the brightness degree that 4 unit comprising in this sliding window are corresponding is 2,3 respectively, 2,1, low-light level unit is 1, the ratio of the total number of unit then comprised in the number of low-light level unit and this sliding window, equal to 1/4, meets the third condition set. Finally, brightness degree corresponding for low-light level unit is adjusted to the luminance threshold (namely 2) of setting, then the brightness degree after the unit comprised in this sliding window adjustment is as shown in Figure 2 B. Adopt above-mentioned process, travel through each unit, as shown in Figure 2 C.
In force, as another kind of implementation, from the image collected, detect target area, also include:
When brightness degree is unsatisfactory for, more than or equal to the number of the unit of the luminance threshold set, the first condition set in the image collected, reacquire the image collected.
Concrete, when the image collected meets the first condition of setting, perform S13��S15; When brightness degree is unsatisfactory for, more than or equal to the number of the unit of the luminance threshold set, the first condition set in the image collected, reacquires the image collected, and re-execute S11��S15.
In force, the number of the pixel comprised in continuous luminance area selected in S15 meets the second condition of setting, including:
The number of the pixel comprised in selected luminance area is more than or equal to the 5th threshold value set;Or the ratio of the number of the pixel comprised in the number of the pixel comprised in selected luminance area and the image collected is more than or equal to the 6th threshold value set.
In force, as another kind of implementation, from the image collected, detect target area, also include:
When the number of the pixel comprised in selected continuous luminance area is unsatisfactory for the second condition set, reacquires the image collected, and re-execute S11��S15.
In force, using selected continuous luminance area as target area in S15, including:
Determine the pixel of four apex in target area, and record the coordinate information of the pixel determined;
According to direction clockwise or counterclockwise, it is sequentially connected with the pixel determined by straight line, obtains tetragon closed area, and using the closed area that obtains as final target area.
Below in conjunction with a specific embodiment, the image processing method that the embodiment of the present invention is provided is described in detail.
Embodiment two, as shown in Figure 4, the present embodiment includes following process:
S401, acquisition preview image;
S402, judge whether target area to be detected;
If so, S403 is then performed;
If it is not, then return S404;
S403, the brightness value directly obtaining this target area and definition values, and perform S406 and S407;
S404, employing default objects region rectangle coordinate, and perform S405;
Wherein, default objects region rectangle coordinate is the coordinate on four summits of preview image.
S405, the brightness value calculating target rectangle region and definition values, and perform S406 and S407;
S406, according to the brightness value of image in described target area, it is judged that in described target area, whether image exposes properly;
If so, then terminate to process;
If it is not, then perform S408;
S407, using the center of described target area as focusing, according to the definition values of image in described target area, it may be judged whether focus successfully;
If so, then terminate to process;
If it is not, then perform S409;
S408, according to the brightness value of image in described target area, adjust exposure parameter, so that the brightness value of image meets the brightness requirement of setting in described target area, perform S401;
S409, according to the definition values of image in described target area, adjust focusing motor, so that the definition values of image meets the definition requirement of setting in described target area, perform S401.
Said method handling process can realize with software program, and this software program can be stored in storage medium, when the software program of storage is called, performs said method step.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of image processing apparatus, owing to the principle of this device solution problem is similar to above-mentioned a kind of image processing method, therefore the enforcement of this device may refer to the enforcement of method, repeats part and repeats no more.
A kind of image processing apparatus that the embodiment of the present invention provides, as it is shown in figure 5, this device includes:
Dividing elements module 51, if the image division for collecting is individual unit, and calculates the average brightness value of each unit;
Brightness degree determines module 52, for the corresponding relation according to the average brightness value preset with brightness degree, it is determined that go out the brightness degree that the average brightness value of each unit is corresponding;
Continuous luminance area determines module 53, when meeting the first condition of setting more than or equal to the number of unit of the luminance threshold set for brightness degree in described image, from described image, determine at least one continuous luminance area, and determine brightness value and/or the definition values of image in each continuous luminance area, the brightness degree that each unit of comprising in described continuous luminance area is corresponding is all higher than or equal to the luminance threshold set;
Choose module 54, for, from least one continuous luminance area described, choosing and comprise the continuous luminance area that pixel is maximum;
Module 55 is determined in target area, when the number of the pixel for comprising in selected continuous luminance area meets the second condition of setting, using selected continuous luminance area as target area;
Parameter adjustment module 56, for according to the brightness value of image in described target area, being exposed compensation deals to image in described target area; And/or using the center of described target area as focusing, according to the definition values of image in described target area, carry out focusing process.
Optionally, in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, including:
In described image brightness degree more than or equal to set luminance threshold unit number more than or equal to set first threshold; Or the ratio of total number of the unit that brightness degree comprises with described image more than or equal to the number of the unit of the luminance threshold set is more than or equal to the Second Threshold set in described image.
Optionally, continuous luminance area determine module 53 specifically for:
Described image is carried out continuous treatment; Determine the continuous luminance area of at least one in the image after continuous treatment.
Optionally, continuous luminance area determines that described image is carried out continuous treatment by module 53, including:
With set sliding window travel through each unit, described sliding window be sized to the area size shared by a*b unit, the number of the unit that a comprises less than each row in described image, the number of the unit that b comprises less than each column in described image;
In a*b unit in described sliding window, when brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, brightness degree is adjusted described luminance threshold lower than the brightness degree of the unit of described luminance threshold.
Optionally, brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, including:
Brightness degree lower than the unit of described luminance threshold number less than or equal to set the 3rd threshold value; Or brightness degree lower than the ratio of total number of the unit comprised in the number of the unit of described luminance threshold and described sliding window less than or equal to the 4th threshold value set.
In force, the number of the pixel comprised in selected luminance area meets the second condition of setting, including:
The number of the pixel comprised in selected luminance area is more than or equal to the 5th threshold value set; Or the ratio of the number of the pixel comprised in the number of the pixel comprised in selected luminance area and described image is more than or equal to the 6th threshold value set.
Optionally, target area determines that module 55 is additionally operable to:
Determine the pixel of four apex in described target area, and record the coordinate information of the pixel determined; According to direction clockwise or counterclockwise, it is sequentially connected with the pixel determined by straight line, obtains tetragon closed area, and using the closed area that obtains as final target area.
The image processing apparatus that the embodiment of the present invention provides may be disposed at mobile phone, panel computer, notebook computer, digital camera, DV etc. to be had in the electronic equipment of shoot function and image processing function.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect. And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe. It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame. These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment. So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art. So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. an image processing method, it is characterised in that the method includes:
If being individual unit by the image division that collects, and calculate the average brightness value of each unit;
Corresponding relation according to default average brightness value Yu brightness degree, it is determined that go out the brightness degree that the average brightness value of each unit is corresponding;
When in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, from described image, determine at least one continuous luminance area, and determine brightness value and/or the definition values of image in each continuous luminance area, the brightness degree that each unit of comprising in described continuous luminance area is corresponding is all higher than or equal to the luminance threshold set;
From at least one continuous luminance area described, choose and comprise the continuous luminance area that pixel is maximum;
When the number of the pixel comprised in selected continuous luminance area meets the second condition of setting, using selected continuous luminance area as target area;
According to the brightness value of image in described target area, image in described target area is exposed compensation deals; And/or using the center of described target area as focusing, according to the definition values of image in described target area, carry out focusing process.
2. the method for claim 1, it is characterised in that in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, including:
In described image brightness degree more than or equal to set luminance threshold unit number more than or equal to set first threshold; Or the ratio of total number of the unit that brightness degree comprises with described image more than or equal to the number of the unit of the luminance threshold set is more than or equal to the Second Threshold set in described image.
3. method as claimed in claim 2, it is characterized in that, after in described image, brightness degree meets the first condition of setting more than or equal to the number of the unit of the luminance threshold set, from described image, before determining at least one continuous luminance area, also include: described image is carried out continuous treatment;
From described image, it is determined that go out at least one continuous luminance area, comprise determining that out the continuous luminance area of at least one in the image after continuous treatment.
4. method as claimed in claim 3, it is characterised in that described image is carried out continuous treatment, including:
With set sliding window travel through each unit, described sliding window be sized to the area size shared by a*b unit, the number of the unit that a comprises less than each row in described image, the number of the unit that b comprises less than each column in described image;
In a*b unit in described sliding window, when brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, brightness degree is adjusted described luminance threshold lower than the brightness degree of the unit of described luminance threshold.
5. method as claimed in claim 4, it is characterised in that brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, including:
Brightness degree lower than the unit of described luminance threshold number less than or equal to set the 3rd threshold value; Or brightness degree lower than the ratio of total number of the unit comprised in the number of the unit of described luminance threshold and described sliding window less than or equal to the 4th threshold value set.
6. the method for claim 1, it is characterised in that the number of the pixel comprised in selected continuous luminance area meets the second condition of setting, including:
The number of the pixel comprised in selected luminance area is more than or equal to the 5th threshold value set; Or the ratio of the number of the pixel comprised in the number of the pixel comprised in selected luminance area and described image is more than or equal to the 6th threshold value set.
7. the method for claim 1, it is characterised in that using selected continuous luminance area as target area, including:
Determine the pixel of four apex in described target area, and record the coordinate information of the pixel determined;According to direction clockwise or counterclockwise, it is sequentially connected with the pixel determined by straight line, obtains tetragon closed area, and using the closed area that obtains as final target area.
8. an image processing apparatus, it is characterised in that this device includes:
Dividing elements module, if the image division for collecting is individual unit, and calculates the average brightness value of each unit;
Brightness degree determines module, for the corresponding relation according to the average brightness value preset with brightness degree, it is determined that go out the brightness degree that the average brightness value of each unit is corresponding;
Continuous luminance area determines module, when meeting the first condition of setting more than or equal to the number of unit of the luminance threshold set for brightness degree in described image, from described image, determine at least one continuous luminance area, and determine brightness value and/or the definition values of image in each continuous luminance area, the brightness degree that each unit of comprising in described continuous luminance area is corresponding is all higher than or equal to the luminance threshold set;
Choose module, for, from least one continuous luminance area described, choosing and comprise the continuous luminance area that pixel is maximum;
Module is determined in target area, when the number of the pixel for comprising in selected continuous luminance area meets the second condition of setting, using selected continuous luminance area as target area;
Parameter adjustment module, for according to the brightness value of image in described target area, being exposed compensation deals to image in described target area; And/or using the center of described target area as focusing, according to the definition values of image in described target area, carry out focusing process.
9. device as claimed in claim 8, it is characterised in that described continuous luminance area determine submodule specifically for:
Described image is carried out continuous treatment; Determine the continuous luminance area of at least one in the image after continuous treatment.
10. device as claimed in claim 9, it is characterised in that described continuous luminance area determines that described image is carried out continuous treatment by submodule, including:
With set sliding window travel through each unit, described sliding window be sized to the area size shared by a*b unit, the number of the unit that a comprises less than each row in described image, the number of the unit that b comprises less than each column in described image;
In a*b unit in described sliding window, when brightness degree meets the third condition of setting lower than the number of the unit of described luminance threshold, brightness degree is adjusted described luminance threshold lower than the brightness degree of the unit of described luminance threshold.
11. device as claimed in claim 8, it is characterised in that target area determines that module is additionally operable to:
Determine the pixel of four apex in described target area, and record the coordinate information of the pixel determined; According to direction clockwise or counterclockwise, it is sequentially connected with the pixel determined by straight line, obtains tetragon closed area, and using the closed area that obtains as final target area.
CN201511031776.0A 2015-12-31 2015-12-31 A kind of image processing method and device Active CN105657262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511031776.0A CN105657262B (en) 2015-12-31 2015-12-31 A kind of image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511031776.0A CN105657262B (en) 2015-12-31 2015-12-31 A kind of image processing method and device

Publications (2)

Publication Number Publication Date
CN105657262A true CN105657262A (en) 2016-06-08
CN105657262B CN105657262B (en) 2018-11-30

Family

ID=56490146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511031776.0A Active CN105657262B (en) 2015-12-31 2015-12-31 A kind of image processing method and device

Country Status (1)

Country Link
CN (1) CN105657262B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307124A (en) * 2018-01-22 2018-07-20 努比亚技术有限公司 Photographic method, equipment and the computer of reduce brightness can storage mediums
CN109309797A (en) * 2018-08-08 2019-02-05 朱丽萍 Light variable quantity judges system immediately
WO2019061042A1 (en) * 2017-09-26 2019-04-04 深圳传音通讯有限公司 Exposure compensation method, device and computer readable storage medium
CN114286004A (en) * 2021-12-28 2022-04-05 维沃移动通信有限公司 Focusing method, shooting device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155265A (en) * 2006-09-25 2008-04-02 三星电子株式会社 System, medium, and method compensating brightness of an image
CN101340523A (en) * 2008-08-14 2009-01-07 北京中星微电子有限公司 Method and apparatus for exposure compensating digital image
JP2013211930A (en) * 2013-07-04 2013-10-10 Casio Comput Co Ltd Electronic camera, imaging control program, and imaging control method
CN103826066A (en) * 2014-02-26 2014-05-28 芯原微电子(上海)有限公司 Automatic exposure adjusting method and system
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
US20150304546A1 (en) * 2013-01-04 2015-10-22 Fujifilm Corporation Image processing device, imaging device, image processing method and computer readable medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155265A (en) * 2006-09-25 2008-04-02 三星电子株式会社 System, medium, and method compensating brightness of an image
CN101340523A (en) * 2008-08-14 2009-01-07 北京中星微电子有限公司 Method and apparatus for exposure compensating digital image
US20150304546A1 (en) * 2013-01-04 2015-10-22 Fujifilm Corporation Image processing device, imaging device, image processing method and computer readable medium
JP2013211930A (en) * 2013-07-04 2013-10-10 Casio Comput Co Ltd Electronic camera, imaging control program, and imaging control method
CN103826066A (en) * 2014-02-26 2014-05-28 芯原微电子(上海)有限公司 Automatic exposure adjusting method and system
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019061042A1 (en) * 2017-09-26 2019-04-04 深圳传音通讯有限公司 Exposure compensation method, device and computer readable storage medium
CN108307124A (en) * 2018-01-22 2018-07-20 努比亚技术有限公司 Photographic method, equipment and the computer of reduce brightness can storage mediums
CN109309797A (en) * 2018-08-08 2019-02-05 朱丽萍 Light variable quantity judges system immediately
CN109309797B (en) * 2018-08-08 2019-07-09 乐清市川嘉电气科技有限公司 Light variable quantity judges system immediately
CN114286004A (en) * 2021-12-28 2022-04-05 维沃移动通信有限公司 Focusing method, shooting device, electronic equipment and medium

Also Published As

Publication number Publication date
CN105657262B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
US9858651B2 (en) Electronic device and method in an electronic device for processing image data
US9501834B2 (en) Image capture for later refocusing or focus-manipulation
CN106550184B (en) Photo processing method and device
KR100657522B1 (en) Apparatus and method for out-focusing photographing of portable terminal
CN105574813B (en) A kind of image processing method and device
CN105247567B (en) A kind of image focusing device, method, system and non-transient program storage device again
CN103209291A (en) Method, apparatus and device for controlling automatic image shooting
KR102025714B1 (en) Shooting method and device
CN105657262A (en) Image processing method and apparatus
CN105049728A (en) Method and device for acquiring shot image
DE112013002286T5 (en) Image pickup device and method for focusing control
CN102523376A (en) Shooting equipment and method
CN109889721A (en) Camera autofocus control method and device
CN103905709A (en) Electronic device control method and electronic device
CN103763458B (en) A kind of scene-change detecting method and device
CN105262948A (en) Panorama capturing method and mobile terminal
US10412297B2 (en) Photographing apparatus capable of bracketing photography, photographing control method, and storage medium
CN105635568A (en) Image processing method in mobile terminal and mobile terminal
CN105611182A (en) Method and device for brightness compensation
CN108419015A (en) A kind of focus method and device
CN105631883A (en) Method and device for determining target regions in image
JP2012195797A (en) Pan-focus image generating device
CN105208292A (en) Photographic processing method and system
CN104918011A (en) Method and device for playing video
CN112449117A (en) Focusing step length determining method and device, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant