CN104320654B - Light measuring method and device - Google Patents

Light measuring method and device Download PDF

Info

Publication number
CN104320654B
CN104320654B CN201410589977.1A CN201410589977A CN104320654B CN 104320654 B CN104320654 B CN 104320654B CN 201410589977 A CN201410589977 A CN 201410589977A CN 104320654 B CN104320654 B CN 104320654B
Authority
CN
China
Prior art keywords
point
target area
area
split
adjacent
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.)
Active
Application number
CN201410589977.1A
Other languages
Chinese (zh)
Other versions
CN104320654A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410589977.1A priority Critical patent/CN104320654B/en
Publication of CN104320654A publication Critical patent/CN104320654A/en
Application granted granted Critical
Publication of CN104320654B publication Critical patent/CN104320654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to a kind of light measuring method and device, for more simply obtaining photometry region exactly.Methods described includes:Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area;Light-metering is carried out using the target area as light-metering area.The target area of image is obtained by the mode of swiping, and light-metering is carried out using target area as light-metering area, so that the determination in light-metering area is convenient simple, exactly region user interested can be split from image simultaneously, enable light-metering area to cover more image-regions, and then make the region obtain more preferable exposure effect.

Description

Light measuring method and device
Technical field
It relates to image technique field, more particularly to a kind of light measuring method and device.
Background technology
The photometric system of digital camera, be by camera lens come measure subject reflection light intensity --- TTL (Through The Lens) light-metering.Light-metering induction apparatuss are placed in light path of photography, light unit from mirror reflection to light-metering Light-metering is carried out on part.The light intensity data for measuring is transferred in the processor of camera, by the calculating process of automatic exposure after, certainly Exposure combination is made, that is, the aperture for shooting is combined with shutter speed, is subsequently taken pictures by the diaphragm shutter value that photographing unit is given, The accurate photo of exposure can be shot.
According to the difference of zones of different, size and calculating weight of the light-metering induction apparatuss to measuring in viewfinder range, survey Light mode can be divided into average metering, central heavy spot light-metering, spot light-metering, matrix light-metering isotype.Wherein, the light-metering model of spot light-metering It is region that view finder picture central authorities account for whole picture about 1%-3% areas to enclose, spot light-metering substantially by photometry region it is outer other The impact of scene brightness, therefore easily the regional of subject or background can be detected using spot light-metering, And spot light-metering has higher sensitivity and precision, the light reaction of whole picture can be fully showed.With touch screen Ripe and extensively application, is being furnished with the camera and intelligent terminal of touch screen, and user can select spot light-metering by touch screen Concrete region, rather than middle position must be carried out, this also greatly improves the effect of spot light-metering and ease for use.
In correlation technique, when light-metering is carried out by the way of spot light-metering, need to first confirm that light-metering point, light-metering point can be pre- Look at the central point at interface, or user selects any point in preview interface, then centered on the light-metering point, does a rectangle Or border circular areas.The rectangle or border circular areas account for the area of the 1%-3% of whole preview interface.However, this spot light-metering mode Still suffer from many weak points.
First, the scope of spot light-metering be the region of using in preview interface one very low range as Expose f iotaducials point, camera or The light that intelligent terminal is measured according to this narrower region is used as exposure foundation, and grasps this Exposure Metering and require cameraman couple The point of camera or intelligent terminal surveys characteristic certain understanding, understands how to select the light-metering point that reflectance is 18% or so, or Exposure compensating can be made by rule of thumb to the exposure point higher or lower than 18% reflectance, select what the light-metering point of mistake was taken It is exactly to owe to expose that picture is not overexposure, causes serious exposure error, therefore, the mode of this spot light-metering is not allowed for new hand very much Easily grasp.Secondly, spot light-metering can not be using large-scale region as photometry region, when user wants the mesh that will be taken in region During mark thing shooting clear, best light-metering strategy is that whole target object area is carried out light-metering, could so cause object whole It is the most clear on body, it is clear that above-mentioned Exposure Metering cannot accomplish this point.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of light measuring method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of light measuring method, including:
Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;
According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area Domain;
Light-metering is carried out using the target area as light-metering area.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:Image is obtained by the mode of swiping Target area, and carry out light-metering using target area as light-metering area so that the determination in light-metering area is convenient simple, while energy It is enough that exactly region user interested is split from image so that light-metering area can cover more image-regions, And then make the region obtain more preferable exposure effect.
Optionally, the boundary point according to described image and it is described swipe a little, described image is divided into into the target Region and background area, including:
According to boundary point and the segmentation for swiping a little, determining the target area and the background area of described image Point;
The profile of the target area is determined according to the cut-point;
Described image is divided into into the target area and background area according to the profile.
In alternative, by swiping a little and sharp point finds the cut-point of target area and background area, enter And target area is obtained, and light-metering is carried out using target area as light-metering area so that the determination in light-metering area is convenient simple, together When exactly region user interested can be split from image so that light-metering area can cover more image districts Domain, and then make the region obtain more preferable exposure effect.
Optionally, methods described also includes:
By the target area point that be a little labeled as that swipes, the boundary point is labeled as into background area point;
The boundary point according to described image and it is described swipe a little, determine the target area with the background area Cut-point, including:
Color distance between the first adjacent point to be marked of calculating and target area point and target area point, And, and the color distance between adjacent the second point to be marked of background area point and background area point, the face Color distance is the maximum difference between adjacent 2 points of color value;
The point in all first points to be marked and the second point to be marked selecting color distance minimum, as point to be split;
Judge the point adjacent with the point to be split whether while including the point and the background area in the target area Point in domain;
When the point adjacent with the point to be split while including in the point and the background area in the target area During point, the cut-point that the point to be split is the target area and the background area is determined.
Optionally, the boundary point according to described image and it is described swipe a little, determine the target area with the back of the body The cut-point of scene area, also includes:
When in the point and the background area during the point adjacent with the point to be split does not include the target area simultaneously Point when, judge whether the point adjacent with the point to be split belongs to the target area or the background area;
When the point adjacent with the point to be split belongs to the target area, determine that the point to be split is the target Region point;When the point adjacent with the point to be split belongs to the background area, determine that the point to be split is the background Region point.
In alternative, using using sharp point and swipe point as two class seed points and meanwhile to consecutive points spread Method, the cut-point of target area and background area is determined one by one, and then obtains target area, and target area is made Light-metering is carried out for light-metering area so that the determination in light-metering area is convenient simple, while can exactly by area user interested Domain is split from image so that light-metering area can cover more image-regions, and then make the region obtain preferably exposure Light effect.
Optionally, the boundary point according to described image and it is described swipe a little, determine the target area with the back of the body The cut-point of scene area, also includes:
Point to be split after by the determination is labeled as marked point;
Color distance between the 3rd adjacent point to be marked of calculating and the marked point and the marked point;
The 3rd point to be marked for selecting the color distance minimum, as point to be split;
Determine that the point to be split is the one kind in the cut-point, target area point or background area point.
In alternative, one by one point to be split is marked, and is defined as cut-point, target area point or background area One kind in the point of domain, and then target area is obtained, and light-metering is carried out using target area as light-metering area so that the determination in light-metering area It is convenient simple, while exactly region user interested can be split from image so that light-metering area can More image-regions are covered, and then makes the region obtain more preferable exposure effect.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of light measurer, including:
Acquisition module, for obtaining swipe line of the user in the target area of image, the line that swipes is comprising multiple strokes Screen point;
Segmentation module, for according to the boundary point of described image and it is described swipe a little, described image is divided into into the mesh Mark region and background area;
Light-metering module, for carrying out light-metering using the target area as light-metering area.
Optionally, the segmentation module includes:
First determination sub-module, for according to the boundary point of described image and it is described swipe a little, determine the target area With the cut-point of the background area;
Second determination sub-module, for the profile of the target area is determined according to the cut-point;
Segmentation submodule, for described image is divided into the target area and background area according to the profile.
Optionally, described device also includes:
Mark module, for by the target area point that be a little labeled as that swipes, the boundary point being labeled as background area Point;
First determination sub-module, is additionally operable to:
Color distance between the first adjacent point to be marked of calculating and target area point and target area point, And, and the color distance between adjacent the second point to be marked of background area point and background area point, the face Color distance is the maximum difference between adjacent 2 points of color value;
The point in all first points to be marked and the second point to be marked selecting color distance minimum, as point to be split;
Judge the point adjacent with the point to be split whether while including the point and the background area in the target area Point in domain;
When the point adjacent with the point to be split while including in the point and the background area in the target area During point, the cut-point that the point to be split is the target area and the background area is determined.
Optionally, first determination sub-module, is additionally operable to:
When in the point and the background area during the point adjacent with the point to be split does not include the target area simultaneously Point when, judge whether the point adjacent with the point to be split belongs to the target area or the background area;
When the point adjacent with the point to be split belongs to the target area, determine that the point to be split is the target Region point;When the point adjacent with the point to be split belongs to the background area, determine that the point to be split is the background Region point.
Optionally, first determination sub-module, is additionally operable to:
Point to be split after by the determination is labeled as marked point;
Color distance between the 3rd adjacent point to be marked of calculating and the marked point and the marked point;
The 3rd point to be marked for selecting the color distance minimum, as point to be split;
Determine that the point to be split is the one kind in the cut-point, target area point or background area point.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of light measurer, including:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;
According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area Domain;
Light-metering is carried out using the target area as light-metering area.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
During accompanying drawing herein is merged in description and the part of this specification is constituted, show the enforcement for meeting the disclosure Example, and be used for explaining the principle of the disclosure together with description.
Fig. 1 is a kind of flow chart of the light measuring method according to an exemplary embodiment;
Fig. 2 is the schematic diagram that photometry region is determined in a kind of spot light-metering method according to an exemplary embodiment;
Fig. 3 is the schematic diagram that photometry region is determined in a kind of light measuring method according to an exemplary embodiment;
Fig. 4 is the schematic diagram of the photometry region determined in a kind of light measuring method according to an exemplary embodiment;
Fig. 5 is a kind of flow chart of the light measuring method for implementing to exemplify according to another exemplary;
Fig. 6 is a kind of block diagram of the light measurer according to an exemplary embodiment;
Fig. 7 is the block diagram for splitting module in a kind of light measurer according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of the light measurer according to an exemplary embodiment.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the light measuring method according to an exemplary embodiment, as shown in figure 1, light measuring method In for terminal, S11-S13 is comprised the following steps:
Step S11, obtains swipe line of the user in the target area of image, and the line that swipes swipes a little comprising multiple;
Wherein, swipe a little i.e. contact, and generally user carries out the line of formation during swiping on screen, by multiple continuous Contact composition.But, user can be swiped line using discrete contact composition, for example, repeatedly connecting in the Preset Time It is continuous to click on.
Step S12, according to the boundary point of image and swipes a little, divides the image into as target area and background area;
Step S13, carries out light-metering using target area as light-metering area.
The light measuring method that the present embodiment is provided mainly for photometry region in spot light-metering it is too narrow, be difficult what is accurately obtained Defect.Fig. 2 is the schematic diagram that photometry region is determined in a kind of spot light-metering method according to an exemplary embodiment, such as Fig. 2 It is shown, the personage in image be target area, user be but only capable of by clicking operation obtain photometry region, such as user click on personage During left hand (the white point position on personage's left hand), rectangular area centered on the white point position on personage's left hand (or circle Shape region) the light-metering area chosen by user is, the rectangular area only accounts for the area of the 1%-3% of whole image, it is seen then that pass through The light-metering area scope that this method is chosen is narrow, and other regions of personage cannot Correct exposure.And carried using the embodiment of the present disclosure For the step of S11-S13 in light measuring method, user only need to carry out swiping in target area (personage in image), such as Shown in Fig. 3, in figure, personage's white line from top to bottom is the line that swipes that user streaks, to constitute swiping a little for the line that swipes With the boundary point of image as foundation, target area is split from image, and then obtain large range of light-metering area.Such as Shown in Fig. 4, light-metering area almost covers whole target area.
Therefore, the technical scheme for being provided using the present embodiment, obtains the target area of image by the mode of swiping, and by mesh Mark region carries out light-metering as light-metering area so that the determination in light-metering area is convenient simple, while can feel user exactly The region of interest is split from image so that light-metering area can cover more image-regions, and then obtain the region More preferable exposure effect.
Optionally, said method, step S12 can be embodied as following steps S121-S123:
Step S121, according to the boundary point of image and swipes a little, determines the cut-point of target area and background area;
Step S122, determines the profile of target area according to cut-point;
Step S123, divides the image into as target area and background area according to profile.
Optionally, said method can be implemented by algorithm of region growing, specifically, it is necessary first to will swipe a little and image side Boundary's point is spread to consecutive points as seed point, secondly finds out a point to be split from the consecutive points for swiping a little with boundary point, then Treat cut-point to be marked, therefore, said method also includes:To swipe and a little be labeled as target area point, by boundary point labelling For background area point;Now, step S121 can be embodied as following steps S1211-S1214:
Step S1211, calculate and the color between adjacent the first point to be marked of target area point and target area point away from From, and, and the color distance between adjacent the second point to be marked of background area point and background area point, color distance is phase Maximum difference between adjacent 2 points color value;
Wherein, color distance can be calculated in the following manner:In the image of rgb color pattern, adjacent point-to-point transmission Color distance be 2 points of corresponding color value difference in maximum.For example, the red value of point a, G are represented with R (a) A () represents the green value of point a, B (a) represents the blue valve of point a, and R (b) represents the red value of point b, and G (b) represents the green of point b Value, B (b) represent the blue valve of point b, and △ R represent the red color difference between point a and point b, and △ G represent green between point a and point b Value of chromatism, △ B represent the blue color difference between point a and point b, then, △ R=abs (R (a)-R (b)), △ G=abs (G (a)-G (b)), △ B=abs (B (a)-B (b)), wherein, abs is the symbol for seeking absolute value, and the color distance between point a and point b is The value of the minimum in △ R, △ G and △ B.
Step S1212, the point in all first points to be marked and the second point to be marked selecting color distance minimum, as Point to be split;
Whether step S1213, judge the point adjacent with point to be split while including the point in target area and background area In point;
Step S1214, when the point adjacent with point to be split while including the point in the point and background area in target area When, point to be split is determined for target area and the cut-point of background area.
After step S1213, if judging the point adjacent with point to be split not while including the point and the back of the body in target area During point in scene area, then need to judge whether the point adjacent with point to be split belongs to target area or background area:When with treat point When the adjacent point of cutpoint belongs to target area, determine that point to be split is target area point;When the point adjacent with point to be split belongs to During background area, determine that point to be split is background area point.
So far, that is, complete point to be split is confirmed as the one kind in cut-point, target area point or background area point.
Optionally, after point to be split is confirmed, the point to be split is marked point, and the point being adjacent is then to be marked Point, from point to be marked, selects a point to be marked as new point to be split, circulates the step in said method, one by one to every One point to be split is confirmed, until being identified a little in image.Following steps S1215- can be specifically embodied as S1218:
Step S1215, by determination after point to be split be labeled as marked point;
Step S1216, the color distance between the 3rd adjacent point to be marked of calculating and marked point and marked point;
Step S1217, the 3rd point to be marked for selecting color distance minimum, as point to be split;
Step S1218, determines point to be split for the one kind in cut-point, target area point or background area point.
Fig. 5 is the flow chart according to an a kind of light measuring method for being embodied as exemplifying.As shown in figure 5, including following step Rapid S501-S515:
Step S501, obtains swipe line of the user in the target area of image, and the line that swipes swipes a little comprising multiple;Example Such as, in above-described embodiment shown in Fig. 3;
Step S502, calculate and swipe a little adjacent point and the color distance between swiping a little;
Step S503, the color distance between the adjacent point of calculating and sharp point and boundary point;
Step S504, from all with the point that a little and selects color distance minimum in the adjacent point of boundary point of swiping, as treating Cut-point;
Whether step S505, judge the point adjacent with point to be split while including in the point and background area in target area Point;If the point adjacent with point to be split is simultaneously including the point in the point and background area in target area, execution step S506;If the point adjacent with point to be split is simultaneously including the point in the point and background area in target area, execution step S507;
Step S506, determines point to be split for target area and the cut-point of background area;Continue executing with step S510;
Step S507, judges whether the point adjacent with point to be split belongs to target area or background area;If with it is to be split The adjacent point of point belongs to target area, then execution step S508;If the point adjacent with point to be split belongs to background area, perform Step S509;
Step S508, determines that point to be split is target area point;Continue executing with step S510;
Step S509, determines that point to be split is background area point;Continue executing with step S510;
Step S510, by determination after point to be split be labeled as marked point;The point adjacent with marked point is then to wait to mark Note point;
Step S511, the color distance between the adjacent point to be marked of calculating and marked point and marked point;
Step S512, the point for from the to be marked point adjacent with marked point selecting color distance minimum is used as to be split Point;Step S505 is continued executing with, until all of point is identified in image;
Step S513, according to the cut-point in all confirmed points, determines the profile of target area;
Step S514, divides the image into as target area and background area according to profile;
Step S515, carries out light-metering using target area as light-metering area.
Said method, no ordering relation between step S502 and step S503 can be carried out simultaneously, also can be carried out respectively.
Using the technical scheme of the present embodiment, one by one point to be split is marked, and is defined as cut-point, target area One kind in point or background area point, and then target area is obtained, and light-metering is carried out using target area as light-metering area so that survey The determination in light area is convenient simple, while can split region user interested from image exactly so that Light-metering area can cover more image-regions, and then make the region obtain more preferable exposure effect.
A kind of light measurer block diagrams of the Fig. 6 according to an exemplary embodiment.With reference to Fig. 6, the device includes:
Acquisition module 61, for obtaining swipe line of the user in the target area of image, the line that swipes swipes comprising multiple Point;
Segmentation module 62, for according to the boundary point of image and it is described swipe a little, divide the image into as target area and the back of the body Scene area;
Light-metering module 63, for carrying out light-metering using target area as light-metering area.
Optionally, as shown in fig. 7, segmentation module 62 includes:
First determination sub-module 621, for according to the boundary point of image and it is described swipe a little, determine target area and background The cut-point in region;
Second determination sub-module 622, for the profile of target area is determined according to cut-point;
Segmentation submodule 623, for dividing the image into as target area and background area according to profile.
Optionally, said apparatus also include:
Mark module, is a little labeled as target area point for swiping, and boundary point is labeled as background area point;
First determination sub-module 621, is additionally operable to:
Color distance between the first adjacent point to be marked of calculating and target area point and target area point, and, and Color distance between the second adjacent point to be marked of background area point and background area point, color distance is adjacent 2 points of face Maximum difference between colour;
The point in all first points to be marked and the second point to be marked selecting color distance minimum, as point to be split;
Judge the point adjacent with point to be split whether while including the point in the point and background area in target area;
When the point in point and background area that the point adjacent with point to be split is included in target area simultaneously, it is determined that treating point Cutpoint is the cut-point of target area and background area.
Optionally, the first determination sub-module 621, is additionally operable to:
When the point in point and background area that the point adjacent with point to be split is not included in target area simultaneously, judge with Whether the adjacent point of point to be split belongs to target area or background area;
When the point adjacent with point to be split belongs to target area, determine that point to be split is target area point;When with treat point When the adjacent point of cutpoint belongs to background area, determine that point to be split is background area point.
Optionally, the first determination sub-module 621, is additionally operable to:
Point to be split after by determination is labeled as marked point;
Color distance between the 3rd adjacent point to be marked of calculating and marked point and marked point;
The 3rd point to be marked for selecting color distance minimum, as point to be split;
Point to be split is determined for the one kind in cut-point, target area point or background area point.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:Image is obtained by the mode of swiping Target area, and carry out light-metering using target area as light-metering area so that the determination in light-metering area is convenient simple, while energy It is enough that exactly region user interested is split from image so that light-metering area can cover more image-regions, And then make the region obtain more preferable exposure effect.
In the exemplary embodiment, the disclosure additionally provides a kind of light measurer, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;
According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area Domain;
Light-metering is carried out using the target area as light-metering area.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is a kind of block diagram of the device 800 for light-metering according to an exemplary embodiment.For example, device 800 Can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, Body-building equipment, personal digital assistant etc..
With reference to Fig. 8, device 800 can include following one or more assemblies:Process assembly 802, memorizer 804, power supply Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and Communication component 816.
The integrated operation of 802 usual control device 800 of process assembly, such as with display, call, data communication, phase Machine operates and records the associated operation of operation.Process assembly 802 can refer to perform including one or more processors 820 Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more modules, just Interaction between process assembly 802 and other assemblies.For example, processing component 802 can include multi-media module, many to facilitate Interaction between media component 808 and process assembly 802.
Memorizer 804 is configured to store various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application program or method for operating on device 800, and contact data, telephone book data disappear Breath, picture, video etc..Memorizer 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and the touch or slide related persistent period and pressure.In certain embodiments, many matchmakers Body component 808 includes a front-facing camera and/or post-positioned pick-up head.When device 800 be in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, mike is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memorizer 804 or via communication set Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, for exports audio signal.
, for interface is provided between process assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, and the state for various aspects are provided for device 800 is commented Estimate.For example, sensor cluster 814 can detect the opening/closed mode of device 800, and the relative localization of component is for example described Display and keypad of the component for device 800, sensor cluster 814 can be with 800 1 components of detection means 800 or device Position change, user is presence or absence of with what device 800 was contacted, 800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect when not having any physical contact The presence of object nearby.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement In example, communication component 816 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided Such as include the memorizer 804 of instruction, above-mentioned instruction can be performed to complete said method by the processor 820 of device 800.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the process of mobile terminal When device is performed so that mobile terminal is able to carry out a kind of light measuring method, and methods described includes:
Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;
According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area Domain;
Light-metering is carried out using the target area as light-metering area.
The boundary point according to described image and it is described swipe a little, described image is divided into into the target area and the back of the body Scene area, including:
According to boundary point and the segmentation for swiping a little, determining the target area and the background area of described image Point;
The profile of the target area is determined according to the cut-point;
Described image is divided into into the target area and background area according to the profile.
Methods described also includes:
By the target area point that be a little labeled as that swipes, the boundary point is labeled as into background area point;
The boundary point according to described image and it is described swipe a little, determine the target area with the background area Cut-point, including:
Color distance between the first adjacent point to be marked of calculating and target area point and target area point, And, and the color distance between adjacent the second point to be marked of background area point and background area point, the face Color distance is the maximum difference between adjacent 2 points of color value;
The point in all first points to be marked and the second point to be marked selecting color distance minimum, as point to be split;
Judge the point adjacent with the point to be split whether while including the point and the background area in the target area Point in domain;
When the point adjacent with the point to be split while including in the point and the background area in the target area During point, the cut-point that the point to be split is the target area and the background area is determined.
The boundary point according to described image and it is described swipe a little, determine the target area with the background area Cut-point, also includes:
When in the point and the background area during the point adjacent with the point to be split does not include the target area simultaneously Point when, judge whether the point adjacent with the point to be split belongs to the target area or the background area;
When the point adjacent with the point to be split belongs to the target area, determine that the point to be split is the target Region point;When the point adjacent with the point to be split belongs to the background area, determine that the point to be split is the background Region point.
The boundary point according to described image and it is described swipe a little, determine the target area with the background area Cut-point, also includes:
Point to be split after by the determination is labeled as marked point;
Color distance between the 3rd adjacent point to be marked of calculating and the marked point and the marked point;
The 3rd point to be marked for selecting the color distance minimum, as point to be split;
Determine that the point to be split is the one kind in the cut-point, target area point or background area point.
Those skilled in the art will readily occur to other realities of the disclosure after considering description and putting into practice disclosure herein Apply scheme.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or suitable The change of answering property follows the general principle of the disclosure and including the undocumented common knowledge or used in the art of the disclosure Use technological means.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following right Requirement is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is limited only by appended claim.

Claims (7)

1. a kind of light measuring method, it is characterised in that include:
Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;
By the target area point that be a little labeled as that swipes, the boundary point of described image is labeled as into background area point;
According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area; Including:
According to the boundary point and the cut-point for swiping a little, determining the target area and the background area of described image; Including:Color distance between the first adjacent point to be marked of calculating and target area point and target area point, with And, and the color distance between adjacent the second point to be marked of background area point and background area point, the color Distance is the maximum difference between adjacent 2 points of color value;Face is selected in all first points to be marked and the second point to be marked The minimum point of color distance, as point to be split;Judge the point adjacent with the point to be split whether while including the target area The point in point and the background area in domain;In the point adjacent with the point to be split includes the target area simultaneously Point and the background area in point when, determine the segmentation that the point to be split is the target area and the background area Point;
The profile of the target area is determined according to the cut-point;
Described image is divided into into the target area and background area according to the profile;
Light-metering is carried out using the target area as light-metering area.
2. method according to claim 1, it is characterised in that the boundary point according to described image and described swipe Point, determines the cut-point of the target area and the background area, also includes:
Point in the point and the background area during the point adjacent with the point to be split does not include the target area simultaneously When, judge whether the point adjacent with the point to be split belongs to the target area or the background area;
When the point adjacent with the point to be split belongs to the target area, determine that the point to be split is the target area Point;When the point adjacent with the point to be split belongs to the background area, determine that the point to be split is the background area Point.
3. the method according to claim 1 or 2 any one, it is characterised in that the boundary point according to described image and It is described to swipe a little, determine the cut-point of the target area and the background area, also include:
Point to be split after by the determination is labeled as marked point;
Color distance between the 3rd adjacent point to be marked of calculating and the marked point and the marked point;
The 3rd point to be marked for selecting the color distance minimum, as point to be split;
Determine that the point to be split is the one kind in the cut-point, target area point or background area point.
4. a kind of light measurer, it is characterised in that include:
Acquisition module, for obtaining swipe line of the user in the target area of image, the line that swipes swipes a little comprising multiple;
Mark module, for by the target area point that be a little labeled as that swipes, the boundary point of described image being labeled as background area Domain point;
Segmentation module, for according to the boundary point of described image and it is described swipe a little, described image is divided into into the target area Domain and background area;Including:
First determination sub-module, for according to the boundary point of described image and it is described swipe a little, determine the target area and institute State the cut-point of background area;It is additionally operable to:The first adjacent point to be marked of calculating and target area point and the target area Color distance between the point of domain, and, and adjacent the second point to be marked and the background area point of background area point it Between color distance, the color distance is the maximum difference between adjacent 2 points of color value;In all first points to be marked The point for selecting color distance minimum in point to be marked with second, as point to be split;Judge the point adjacent with the point to be split Whether simultaneously including the point in the point and the background area in the target area;When the point adjacent with the point to be split it is same When include in the target area point and the background area in point when, determine that the point to be split is the target area With the cut-point of the background area;
Second determination sub-module, for the profile of the target area is determined according to the cut-point;
Segmentation submodule, for described image is divided into the target area and background area according to the profile;
Light-metering module, for carrying out light-metering using the target area as light-metering area.
5. device according to claim 4, it is characterised in that first determination sub-module, is additionally operable to:
Point in the point and the background area during the point adjacent with the point to be split does not include the target area simultaneously When, judge whether the point adjacent with the point to be split belongs to the target area or the background area;
When the point adjacent with the point to be split belongs to the target area, determine that the point to be split is the target area Point;When the point adjacent with the point to be split belongs to the background area, determine that the point to be split is the background area Point.
6. the device according to claim 4 or 5 any one, it is characterised in that first determination sub-module, is additionally operable to:
Point to be split after by the determination is labeled as marked point;
Color distance between the 3rd adjacent point to be marked of calculating and the marked point and the marked point;
The 3rd point to be marked for selecting the color distance minimum, as point to be split;
Determine that the point to be split is the one kind in the cut-point, target area point or background area point.
7. a kind of light measurer, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Swipe line of the user in the target area of image is obtained, the line that swipes swipes a little comprising multiple;
By the target area point that be a little labeled as that swipes, the boundary point of described image is labeled as into background area point;
According to the boundary point of described image and it is described swipe a little, described image is divided into into the target area and background area; Including:
According to the boundary point and the cut-point for swiping a little, determining the target area and the background area of described image; Including:Color distance between the first adjacent point to be marked of calculating and target area point and target area point, with And, and the color distance between adjacent the second point to be marked of background area point and background area point, the color Distance is the maximum difference between adjacent 2 points of color value;Face is selected in all first points to be marked and the second point to be marked The minimum point of color distance, as point to be split;Judge the point adjacent with the point to be split whether while including the target area The point in point and the background area in domain;In the point adjacent with the point to be split includes the target area simultaneously Point and the background area in point when, determine the segmentation that the point to be split is the target area and the background area Point;
The profile of the target area is determined according to the cut-point;
Described image is divided into into the target area and background area according to the profile;
Light-metering is carried out using the target area as light-metering area.
CN201410589977.1A 2014-10-28 2014-10-28 Light measuring method and device Active CN104320654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410589977.1A CN104320654B (en) 2014-10-28 2014-10-28 Light measuring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410589977.1A CN104320654B (en) 2014-10-28 2014-10-28 Light measuring method and device

Publications (2)

Publication Number Publication Date
CN104320654A CN104320654A (en) 2015-01-28
CN104320654B true CN104320654B (en) 2017-04-05

Family

ID=52375815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410589977.1A Active CN104320654B (en) 2014-10-28 2014-10-28 Light measuring method and device

Country Status (1)

Country Link
CN (1) CN104320654B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227857B (en) * 2015-10-08 2018-05-18 广东欧珀移动通信有限公司 A kind of method and apparatus of automatic exposure
CN108955518B (en) * 2017-05-18 2020-06-16 武汉斗鱼网络科技有限公司 Light metering processing method, system and equipment based on image recognition
CN111886854B (en) * 2018-03-29 2022-10-04 索尼公司 Exposure control device, exposure control method, program, imaging device, and moving object
CN113422908B (en) * 2021-07-01 2023-05-23 联想(北京)有限公司 Data processing method and device
CN115474007A (en) * 2022-08-12 2022-12-13 北京城市网邻信息技术有限公司 Shooting method, shooting device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901342A (en) * 2009-05-27 2010-12-01 深圳迈瑞生物医疗电子股份有限公司 Method and device for extracting image target region
CN101982835A (en) * 2010-11-12 2011-03-02 西安电子科技大学 Level set method for edge detection of SAR images of airport roads
CN103858043A (en) * 2011-10-12 2014-06-11 佳能株式会社 Imaging device, and method and program for controlling same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5375814B2 (en) * 2010-12-22 2013-12-25 株式会社デンソー Exposure control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901342A (en) * 2009-05-27 2010-12-01 深圳迈瑞生物医疗电子股份有限公司 Method and device for extracting image target region
CN101982835A (en) * 2010-11-12 2011-03-02 西安电子科技大学 Level set method for edge detection of SAR images of airport roads
CN103858043A (en) * 2011-10-12 2014-06-11 佳能株式会社 Imaging device, and method and program for controlling same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
种子区域生长技术在彩色图像分割中的应用;李唯为等;《小型微型计算机系统》;20080630;第29卷(第6期);第1163-1167页 *

Also Published As

Publication number Publication date
CN104320654A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104320654B (en) Light measuring method and device
CN104243818B (en) Image processing method, device and equipment
US6801717B1 (en) Method and apparatus for controlling the depth of field using multiple user interface markers
CN105100764B (en) Image pickup method and device
CN109089170A (en) Barrage display methods and device
CN106303187B (en) Acquisition method, device and the terminal of voice messaging
CN104270565B (en) Image capturing method, device and equipment
CN106355573A (en) Target object positioning method and device in pictures
WO2020093866A1 (en) Photography guiding method and apparatus, mobile terminal and storage medium
CN106408603A (en) Camera method and device
WO2016000330A1 (en) Focal length adjustment method, device and terminal, and computer storage medium
CN104035674B (en) Picture displaying method and device
CN106027897A (en) Method and device for setting shooting parameters
CN107820024A (en) Image capturing method, device and storage medium
CN105516592A (en) Shooting method and shooting device
CN108040204A (en) A kind of image capturing method based on multi-cam, device and storage medium
CN107480785A (en) The training method and device of convolutional neural networks
CN104050645A (en) Image processing method and device
CN105512615A (en) Picture processing method and apparatus
CN105512658B (en) The image-recognizing method and device of rectangle object
CN106339705A (en) Image acquisition method and device
CN105959594A (en) Metering method and device for photographic equipment
CN104299582B (en) backlight adjusting method and device
CN104219518B (en) Light measuring method and device
CN105654470A (en) Image selection method, device and system

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