WO2016015402A1 - 测光方法及装置 - Google Patents

测光方法及装置 Download PDF

Info

Publication number
WO2016015402A1
WO2016015402A1 PCT/CN2014/091557 CN2014091557W WO2016015402A1 WO 2016015402 A1 WO2016015402 A1 WO 2016015402A1 CN 2014091557 W CN2014091557 W CN 2014091557W WO 2016015402 A1 WO2016015402 A1 WO 2016015402A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
marked
area
nth
touch screen
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.)
Ceased
Application number
PCT/CN2014/091557
Other languages
English (en)
French (fr)
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 KR1020157001261A priority Critical patent/KR101813194B1/ko
Priority to BR112015003277A priority patent/BR112015003277A2/pt
Priority to MX2015002224A priority patent/MX352793B/es
Priority to RU2015105744A priority patent/RU2628236C2/ru
Priority to JP2016537122A priority patent/JP6149162B2/ja
Priority to US14/624,984 priority patent/US9674454B2/en
Publication of WO2016015402A1 publication Critical patent/WO2016015402A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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/71Circuitry for evaluating the brightness variation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/02Details
    • G01J1/04Optical or mechanical part supplementary adjustable parts
    • G01J1/0407Optical elements not provided otherwise, e.g. manifolds, windows, holograms, gratings
    • G01J1/0414Optical elements not provided otherwise, e.g. manifolds, windows, holograms, gratings using plane or convex mirrors, parallel phase plates, or plane beam-splitters
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • 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/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20101Interactive definition of point of interest, landmark or seed
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Definitions

  • the present disclosure relates to the field of terminal technologies, and in particular, to a photometry method and apparatus.
  • Metering is the process of measuring the brightness of a photographic object. It is the basis for automatic exposure of the camera to reveal the image in the photo. Accurate metering and correct metering are the starting point for photographic creation.
  • the metering method of a digital camera's metering system is usually TTL (Through The Lens), which measures the intensity of light reflected by a subject through a lens.
  • TTL Through The Lens
  • the photometric sensor is placed in the photographic light path, and the light is reflected from the mirror to the photometric element for photometry.
  • the measured light intensity data is transmitted to the processor of the camera, and after the calculation process of the automatic exposure, the exposure combination is determined, that is, the combination of the aperture of the shot and the shutter speed.
  • the metering methods can be divided into: average metering, center-weighted metering, spot metering, and matrix metering.
  • the metering range of Spot metering is an area in which the center of the viewfinder screen occupies about 1 to 3% of the entire screen. Spot metering is basically unaffected by the brightness of other scenes outside the metering area. Therefore, it is convenient to use spot metering to detect various areas of the subject or background.
  • the metering point is first confirmed, the metering point may be the center point of the preview interface, or the user selects any point in the preview interface through the touch screen; then, a rectangle is made centering on the metering point Or a circle that is offset from the center when it encounters a boundary.
  • the metering range is the area. Taking the shooting scene shown in FIG. 1 as an example, the user clicks on the left hand of the character on the touch screen (the white point position in the figure), and when the hand is used as the light metering point, the metering area is the white box area in the figure.
  • the actual metering result may be quite different from the user's intention.
  • the user originally wanted to meter the left-hand skin area as the metering range, while the actual metering range included both the left-hand cuff and the right-hand cuff.
  • the part of the garment When the part of the garment is close to the brightness of the left-hand skin color in the metering range, the part of the garment has less influence on the final metering result; however, when the color of the part of the garment differs greatly from the color of the left hand, it will cause a huge impact on the final metering result. Effect, in this case, adjust the brightness of the picture after exposure combination according to the metering result Will be darker than expected.
  • the present disclosure provides a photometry method and device, which can improve the accuracy of photometry.
  • a photometry method including:
  • the image points in the target area are metered.
  • the image included in the initial photometry area is segmented, and a background area that does not need to be metered and a target area that is the photometry area that includes the touch screen point are segmented, including:
  • N is a natural number greater than or equal to 2
  • the target area points constitute the target area
  • the background area points constitute the background area
  • the target area and the background area are divided by the dividing point.
  • determining the attribute of the Nth to-be-marked point according to an attribute of the marked point adjacent to the Nth to-be-marked point in the up, down, left, and right directions including:
  • the Nth to-be-marked point is determined as the dividing point; otherwise, it is determined whether the marked point of the Nth to-be-marked point adjacent in the up, down, left, and right directions is continued. Only the target area point;
  • the Nth to-be-marked point is determined as the target area point; otherwise, the Nth to-be-marked point is determined as the background area point.
  • the determining, by the entire image displayed on the touch screen, the initial photometric area including the touch screen point comprising:
  • a photometric apparatus including:
  • a touch screen point acquiring module configured to acquire a touch screen point of the metering area input by the user
  • An initial light metering area determining module configured to determine an initial light metering area including the touch screen point in the entire image displayed on the touch screen;
  • An image segmentation module configured to divide an image included in the initial light metering region, and divide a background region that does not need to be metered and a target region that is the light metering region that includes the touch screen point;
  • the photometry module is configured to perform photometry on image points in the target area.
  • the image segmentation module includes:
  • a first color distance calculation unit configured to calculate a color distance between the to-be-marked point and the touch-screen point of the attribute to be marked adjacent to the touch screen point in the up, down, left, and right directions, and calculate the initial a color distance between the to-be-marked point of the attribute to be marked adjacent to the image boundary point of the photometric area and the image boundary point, the attribute comprising: a target area point, a background area point or a segmentation point;
  • a first to-be-marked point acquiring unit configured to acquire a first to-be-marked point corresponding to a minimum color distance
  • a first to-be-marked point attribute determining unit configured to determine an attribute of the first to-be-marked point according to an attribute of the marked point that is adjacent to the first to-be-marked point in the up, down, left, and right directions, to generate a second marked point ;
  • N is a natural number greater than or equal to 2
  • N is a natural number greater than or equal to 2
  • An Nth to-be-marked point acquiring unit configured to acquire an Nth to-be-marked point corresponding to a minimum color distance
  • the Nth to-be-marked point attribute determining unit is configured to determine an attribute of the Nth to-be-marked point according to an attribute of the marked point that is adjacent to the Nth to-be-marked point in the up, down, left, and right directions, until all the to-be-determined points are determined The attribute of the marker point;
  • the target area points constitute the target area
  • the background area points constitute the background area
  • the target area and the background area are divided by the dividing point.
  • the Nth to-be-marked point attribute determining unit includes:
  • a first determining subunit configured to determine whether the marked point adjacent to the Nth to-be-marked point in the up, down, left, and right directions includes both the target area point and the background area point; if both the target area point and the background are included The area point triggers the split point determination subunit; otherwise, the second judgment subunit is triggered;
  • the dividing point determining subunit is configured to determine the Nth to-be-marked point as a dividing point if both the target area point and the background area point are included;
  • the second determining sub-unit is configured to continue to determine whether the marked points adjacent to the Nth to-be-marked point in the up, down, left, and right directions are only target area points; if only the target area points, trigger the target area point determination Subunit; otherwise, triggering the background area point subunit;
  • the target area point determining subunit is configured to determine the Nth to-be-marked point as a target area point
  • the background area point subunit is configured to determine the Nth to-be-marked point as a background area point.
  • the initial photometric area determining module is specifically configured to determine that an area including 1 to 8% of the touch screen point in the entire image displayed on the touch screen is the initial photometric area.
  • a terminal including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the image points in the target area are metered.
  • the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: in the photometry process, first, the touch screen point of the user inputting the light metering area is acquired; then, determining the inclusion in the entire image displayed on the touch screen An initial light metering area of the touch screen point; by dividing an image included in the initial light metering area, dividing a background area that does not need to be metered and a target area that is the light metering area that includes the touch screen point; , metering the image points in the target area.
  • the initial photometry area is divided into a background area that does not need to be metered and a target area that is the final measurement area including the touch screen point, and the measurement is finally performed only for the image points in the target area, the measurement can be avoided.
  • the image points in the background area of the light have an unnecessary influence on the image points in the target area, thereby greatly improving the accuracy of metering the image points in the target area.
  • FIG. 1 is a schematic diagram of a shooting scene shown in the present disclosure
  • FIG. 2 is an exemplary flow chart of a photometry method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic view of an initial photometric area in the present disclosure
  • step S203 is a schematic diagram of an implementation flow of step S203 in the present disclosure.
  • FIG. 5 is a schematic diagram showing an implementation flow of determining an attribute of an Nth to-be-marked point in the present disclosure
  • FIG. 6 is a schematic diagram of determining an initial photometric area in FIG. 1 in the present disclosure
  • Figure 7 is a schematic diagram of determining the target area of Figure 1 in the present disclosure.
  • Figure 8 is a block diagram of a photometric apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an image segmentation module of FIG. 8.
  • FIG. 10 is a schematic diagram showing an implementation structure of an Nth to-be-marked point attribute determining unit in FIG. 9;
  • FIG. 11 is a block diagram of an embodiment of a terminal device according to an embodiment of the present disclosure.
  • FIG. 2 is a flowchart of a photometry method according to an exemplary embodiment. As shown in FIG. 2, the photometry method is used in a terminal, and includes the following steps:
  • Step S201 Acquire a touch screen point of the metering area input by the user
  • Step S202 determining that the entire image displayed on the touch screen includes an initial photometric area of the touch screen point
  • Step S203 dividing an image included in the initial photometry area, and segmenting a background area that does not need to be metered and a target area that is the photometry area that is the center of the touch screen;
  • Step S204 Perform photometry on image points in the target area.
  • step S201 when it is necessary to meter a part of the entire image displayed on the touch screen, the user clicks on the touch screen, and the touch screen point is in the light metering area.
  • the touch screen point is an important reference point for subsequent image segmentation.
  • the terminal may determine an initial light metering area in which the light metering needs to be performed in the entire image displayed on the touch screen, and the touch screen point is in the initial light metering area.
  • a rectangular area is defined centering on the touch screen point, and the metering range is an image within the rectangular area. point.
  • the rectangular area often exceeds the image area where the user really needs to meter, that is, the initial metering range contains some areas that do not need to be metered, and this part does not need to be measured.
  • the area of light tends to affect the area of the image that really needs to be metered, making the final metering result inaccurate, as in the image area of the garment portion of the left hand cuff and the right hand cuff as in Figure 1.
  • the present disclosure divides the image included in the initial photometric region by using a segmentation algorithm, and finally divides the initial photometric region into two parts: a background region and a target region, wherein The area of the metering is defined as the "background area”, and the area containing the touch screen point as the final metering area is defined as the "target area”.
  • the image region that does not need to be metered is distinguished from the image region that needs to be metered, thereby dividing the image region that really needs to be metered.
  • step S204 after image segmentation is completed, the terminal meters only the image points in the target area that really need to be metered.
  • the touch screen point of the metering area input by the user is first acquired; then, the initial metering including the touch screen point is determined in the entire image displayed on the touch screen. a region; by segmenting an image included in the initial photometric region, segmenting a background region that does not require photometry and a target region that is the final photometry region including the touchscreen region; and finally, performing image points in the target region Metering. Since the initial photometry area is divided into a background area that does not need to be metered and a target area that is the final measurement area including the touch screen point, and the measurement is finally performed only for the image points in the target area, the measurement can be avoided. The image points in the background area of the light have an unnecessary influence on the image points in the target area, thereby greatly improving the accuracy of metering the image points in the target area.
  • metering range is appropriately enlarged to cover the target focus area in the maximum range, and is 1 to 8%.
  • a square area in which the side length is L is an initial photometric area. The square is centered on the touch screen point, and the calculation formula of the side length L is:
  • H is the length of the preview image
  • W is the width of the preview image
  • the target area that is finally used as the photometric area is not necessarily the initial photometry area, and the determination of the target area is finally required according to the result of the pattern division of the initial photometry area.
  • Adjacent point In the present disclosure, an adjacent point of an image point refers to a point located in four directions of up, down, left, and right of the point;
  • the point is an image point that intersects both the target area and the background area;
  • marked points image points for the determined attributes
  • the attributes of the marked points can be divided into three categories: target area points (including touch screen points), background area points (including the initial metering area of the image) Boundary point) and dividing point;
  • Point to be marked an image point waiting for the attribute to be determined adjacent to the top, bottom, left and right of the marked point.
  • step S203 a specific implementation manner of the foregoing step S203 is as shown in FIG. 4, and the image segmentation process may include the following steps:
  • Step S401 Calculate a color distance between the to-be-marked point of the attribute to be marked adjacent to the touch screen point in the up, down, left, and right directions, and the touch screen point, and calculate an image boundary with the initial light metering area.
  • a color distance between a point to be marked of the adjacent attribute to be marked and the boundary point of the image, the attribute comprising: a target area point, a background area point or a division point;
  • Step S402 acquiring a first to-be-marked point corresponding to a minimum color distance and an adjacent first marked point
  • Step S403 determining, according to an attribute of the marked point adjacent to the first to-be-marked point in the up, down, left, and right directions.
  • the attribute of the first to-be-marked point generates a second marked point;
  • the initial target area point is a touch screen point; the initial background area point is all points on the image boundary in the initial metering area; the initial point to be marked is adjacent to the initial target area. Image points, and image points that are adjacent to the original background area.
  • the attribute of the first point to be marked can only be the target area point or the background area point.
  • Step S404 Determine an attribute of the first to-be-marked point according to an attribute of the marked point in the up, down, left, and right direction of the first to-be-marked point, and generate a second marked point;
  • Step S405 obtaining an Nth to-be-marked point corresponding to the minimum color distance
  • Step S406 Determine an attribute of the Nth to-be-marked point according to an attribute of the marked point adjacent to the Nth to-be-marked point in the up, down, left, and right directions, until the attributes of all the to-be-marked points are determined.
  • the attribute of the Nth marked point may include: a target area point, a background area point, or a split point. Accordingly, the attribute of the Nth to-be-marked point may also include: a target area point, a background area point, or a split point.
  • the target area points constitute a target area
  • the background area points constitute a background area
  • the target area and the background area are divided by the division points.
  • Step S501 determining whether the marked points adjacent to the Nth to-be-marked point in the up, down, left, and right directions include both the target area point and the background area point; if both the target area point and the background area point are included, proceeding Step S502; otherwise, proceed to step S503;
  • Step S502 determining the Nth to-be-marked point as a split point
  • Step S503 determining whether the marked points of the Nth to-be-marked points in the up, down, left, and right directions are only target area points; if only the target area points, proceeding to step S504; otherwise, proceeding to step S505;
  • Step S504 determining the Nth to-be-marked point as a target area point
  • Step S505 Determine the Nth to-be-marked point as a background area point.
  • the terminal system first determines the initial metering area including the touch screen point.
  • the initial metering area shown in FIG. 6 includes, in addition to the left hand image that the user needs to perform metering, and the clothing part of the left hand cuff and the right hand cuff. Therefore, it is necessary to divide the image included in the initial photometry area, and divide the background area that does not need to be metered and the target area that is the photometry area that includes the touch screen point.
  • FIG. 8 is a schematic diagram of a photometric device according to an exemplary embodiment.
  • the apparatus includes:
  • the touch screen point obtaining module 81 is configured to acquire a touch screen point of the metering area input by the user;
  • the initial light metering area determining module 82 is configured to determine an initial light metering area including the touch screen point in the entire image displayed on the touch screen;
  • the image segmentation module 83 is configured to divide an image included in the initial light metering region, and divide a background region that does not need to be metered and a target region that is the light metering region that includes the touch screen point;
  • the photometry module 84 is configured to perform photometry on image points in the target area.
  • the touch screen point of the metering area input by the user is first acquired; then, the initial metering including the touch screen point is determined in the entire image displayed on the touch screen. a region; by segmenting an image included in the initial photometric region, segmenting a background region that does not require photometry and a target region that is the final photometry region including the touchscreen region; and finally, performing image points in the target region Metering. Since the initial photometry area is divided into a background area that does not need to be metered and a target area that is the final measurement area including the touch screen point, and the measurement is finally performed only for the image points in the target area, the measurement can be avoided. The image points in the background area of the light have an unnecessary influence on the image points in the target area, thereby greatly improving the accuracy of metering the image points in the target area.
  • the metering range is appropriately enlarged to cover the target focus area in the maximum range, and is 1 to 8%.
  • the target area that is finally used as the photometric area is not necessarily the initial photometry area, and the determination of the target area is finally required according to the result of the pattern division of the initial photometry area.
  • an implementation of the image segmentation module is as shown in FIG. 9 , and may include:
  • the first color distance calculation unit 901 is configured to calculate a color distance between the to-be-marked point and the touch-screen point of the attribute to be marked adjacent to the touch screen point in the up, down, left, and right directions, and calculate and a color distance between the to-be-marked point of the attribute to be marked adjacent to the image boundary point of the initial photometric area and the image boundary point, the attribute includes: a target area point, a background area point, or a segmentation point;
  • a first to-be-marked point obtaining unit 902 configured to acquire a first to-be-marked point corresponding to a minimum color distance
  • the first to-be-marked point attribute determining unit 903 is configured to determine an attribute of the first to-be-marked point according to an attribute of the marked point that is adjacent to the first to-be-marked point in the up, down, left, and right directions, to generate a second marked point;
  • the Nth color distance calculation unit 904 is configured to calculate a to-be-marked point and the Nth-marked attribute of the to-be-marked attribute adjacent to the Nth (N is a natural number greater than or equal to 2) marked points in the up, down, left, and right directions The distance between the dots;
  • the Nth to-be-marked point obtaining unit 905 is configured to acquire an Nth to-be-marked point corresponding to the minimum color distance
  • the Nth to-be-marked point attribute determining unit 906 is configured to determine an attribute of the Nth to-be-marked point according to an attribute of the marked point that is adjacent to the Nth to-be-marked point in the up, down, left, and right directions until all the said The attribute of the point to be marked;
  • the target area points constitute the target area
  • the background area points constitute the background area
  • the target area and the background area are divided by the dividing point.
  • the implementation manner of the foregoing Nth to-be-marked attribute determining unit is as shown in FIG. 10, and may include:
  • the first determining sub-unit 1001 is configured to determine whether the marked points adjacent to the Nth to-be-marked point in the up, down, left, and right directions include both the target area point and the background area point; if both the target area point and the target area point are included The background area point triggers the split point determining subunit 1002; otherwise, the second determining subunit 1003 is triggered;
  • the dividing point determining subunit 1002 is configured to determine the Nth to-be-marked point as a dividing point if both the target area point and the background area point are included;
  • the second determining sub-unit 1003 is configured to continue to determine whether the marked point adjacent to the Nth to-be-marked point in the up, down, left, and right directions is only a target area point; if only the target area point, trigger the target area point Determining subunit 1004; otherwise, triggering background area point subunit 1005;
  • the target area point determining subunit 1004 is configured to determine the Nth to-be-marked point as a target area point
  • the background area point subunit 1005 is configured to determine the Nth to-be-marked point as a background area point.
  • FIG. 11 is a block diagram of an apparatus 800 for metering, according to an exemplary embodiment.
  • device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
  • Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 802 can include one or more processors 820 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 802 can include one or more modules to facilitate interaction between component 802 and other components.
  • processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 806 provides power to various components of device 800.
  • Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
  • the multimedia component 808 includes a screen between the device 800 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input an audio signal.
  • the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting an audio signal.
  • the I/O interface 812 provides an interface between the processing component 802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 814 includes one or more sensors for providing device 800 with a status assessment of various aspects.
  • sensor assembly 814 can detect an open/closed state of device 800, relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800.
  • Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a package
  • the memory 804 of instructions is executable by the processor 820 of the apparatus 800 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a photometric method, the method comprising:

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)
  • Indication In Cameras, And Counting Of Exposures (AREA)
  • Exposure Control For Cameras (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

本公开是关于一种测光方法及装置。其中,测光方法包括:获取用户输入的处于测光区域的触屏点;确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;对所述目标区域内的图像点进行测光。通过本公开,能够提高测光的准确性。

Description

测光方法及装置
本申请基于申请号为201410373717.0、申请日为2014年7月31日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及终端技术领域,尤其涉及一种测光方法及装置。
背景技术
测光是测量所摄影物的亮度的过程,它是相机自动曝光、以致在照片中展现影像的基础,准确的测光以及正确的测光方式选择是摄影创作的起点。
以数码相机为例,数码相机的测光系统的测光方式通常为TTL(Through The Lens,通过镜头来测量被摄物体反射的光线强度)。测光感应器被放置在摄影光路中,光线从反光镜反射到测光元件上进行测光。测得的光强数据传输到相机的处理器中,通过自动曝光的计算过程之后,决定出曝光组合,即:拍摄的光圈与快门速度的组合。根据测光感应器对取景范围内测量的不同区域、面积大小和计算权重的不同,测光方式可以分为:平均测光、中央重点测光、点测光、矩阵测光等模式。
其中,点测光(Spot metering)的测光范围是取景器画面中央占整个画面约1~3%面积的区域。点测光基本上不受测光区域外其它景物亮度的影响。因此,可以很方便地使用点测光对被摄体或背景的各个区域进行检测。
随着触摸屏的成熟和广泛应用,在配有触摸屏的相机和智能手机上,用户可以通过点击预览界面上的任意点来选择点对焦的位置,而不是必须对中央位置进行,这大幅提升了点测光的作用和易用性。
相关点测光的技术中,首先确认测光点,测光点可以是预览界面的中央点,或用户通过触摸屏选择预览界面中的任意一点;然后,以该测光点为中心,做一个矩形或圆形,该区域遇到边界时向中心区域偏移。进行测光时,测光范围就是该区域。以图1所示的拍摄场景为例,用户点击触摸屏上人物左手(图中的白色点位置),以手部为测光点时,测光区域就是图中的白色方框区域。
然而,上述点测光的技术方案中,实际测光结果可能跟用户本意相差较大。如图1所示,用户本来是想以左手皮肤区域作为测光范围进行测光,实际测光范围却同时包含了左手袖口和右手袖口部位的衣服部分。当衣服部分跟测光范围中的左手肤色亮度接近时,则衣服部分对最终测光结果的影响较小;但是,当衣服部分颜色跟左手肤色相差较大时,将对最终测光结果造成巨大影响,在该种情形下,根据测光结果调整曝光组合后的图片亮度 会比预期偏暗。
发明内容
为克服相关技术中存在的问题,本公开提供一种测光方法及装置,能够提高测光的准确性。
根据本公开实施例的第一方面,提供一种测光方法,包括:
获取用户输入的处于测光区域的触屏点;
确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
对所述目标区域内的图像点进行测光。
进一步,所述将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域,包括:
计算与所述触屏点在上下左右方向上相邻的待标记属性的待标记点与所述触屏点之间的颜色距离,以及,计算与所述初始测光区域的图像边界点相邻的待标记属性的待标记点与所述图像边界点之间的颜色距离,所述属性包括:目标区域点、背景区域点或分割点;
获取最小颜色距离对应的第一待标记点;
根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定所述第一待标记点的属性,生成第二已标记点;
计算与所述第N(N为大于等于2的自然数)已标记点在上下左右方向上相邻的待标记属性的待标记点与所述第N已标记点之间的颜色距离;
获取最小颜色距离对应的第N待标记点;
根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,直至确定所有所述待标记点的属性;
其中,所述目标区域点组成所述目标区域,所述背景区域点组成所述背景区域,所述目标区域和所述背景区域由所述分割点进行分割。
进一步,所述根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,包括:
判断所述第N待标记点在上下左右方向上相邻的已标记点是否既包括目标区域点,又包括背景区域点;
如果既包括目标区域点,又包括背景区域点,则将所述第N待标记点确定为分割点;否则,继续判断所述第N待标记点在上下左右方向上相邻的已标记点是否仅为目标区域点;
如果仅为目标区域点,则将所述第N待标记点确定为目标区域点;否则,将所述第N待标记点确定为背景区域点。
进一步,所述确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域,包括:
确定所述触摸屏上所显示的整幅图像中包含所述触屏点的1~8%的区域为所述初始测光区域。
根据本公开实施例的第二方面,提供一种测光装置,包括:
触屏点获取模块,用于获取用户输入的处于测光区域的触屏点;
初始测光区域确定模块,用于确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
图像分割模块,用于将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
测光模块,用于对所述目标区域内的图像点进行测光。
进一步,所述图像分割模块,包括:
第一颜色距离计算单元,用于计算与所述触屏点在上下左右方向上相邻的待标记属性的待标记点与所述触屏点之间的颜色距离,以及,计算与所述初始测光区域的图像边界点相邻的待标记属性的待标记点与所述图像边界点之间的颜色距离,所述属性包括:目标区域点、背景区域点或分割点;
第一待标记点获取单元,用于获取最小颜色距离对应的第一待标记点;
第一待标记点属性确定单元,用于根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定所述第一待标记点的属性,生成第二已标记点;
第N颜色距离计算单元,用于计算与所述第N(N为大于等于2的自然数)已标记点在上下左右方向上相邻的待标记属性的待标记点与所述第N已标记点之间的颜色距离;
第N待标记点获取单元,用于获取最小颜色距离对应的第N待标记点;
第N待标记点属性确定单元,用于根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,直至确定所有所述待标记点的属性;
其中,所述目标区域点组成所述目标区域,所述背景区域点组成所述背景区域,所述目标区域和所述背景区域由所述分割点进行分割。
进一步,所述第N待标记点属性确定单元,包括:
第一判断子单元,用于判断所述第N待标记点在上下左右方向上相邻的已标记点是否既包括目标区域点,又包括背景区域点;如果既包括目标区域点,又包括背景区域点,则触发分割点确定子单元;否则,触发第二判断子单元;
所述分割点确定子单元,用于如果既包括目标区域点,又包括背景区域点,则将所述第N待标记点确定为分割点;
所述第二判断子单元,用于继续判断所述第N待标记点在上下左右方向上相邻的已标记点是否仅为目标区域点;如果仅为目标区域点,则触发目标区域点确定子单元;否则,触发背景区域点子单元;
所述目标区域点确定子单元,用于则将所述第N待标记点确定为目标区域点;
所述背景区域点子单元,用于将所述第N待标记点确定为背景区域点。
进一步,所述初始测光区域确定模块,具体用于确定所述触摸屏上所显示的整幅图像中包含所述触屏点的1~8%的区域为所述初始测光区域。
根据本公开实施例的第三方面,提供一种终端,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
获取用户输入的处于测光区域的触屏点;
确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
对所述目标区域内的图像点进行测光。
本公开的实施例提供的技术方案可以包括以下有益效果:在进行测光过程中,首先获取用户输入的处于测光区域的触屏点;然后,在触摸屏上所显示的整幅图像中确定包含所述触屏点的初始测光区域;通过将初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;最终,针对目标区域内的图像点进行测光。由于将初始测光区域分割为不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域,而且在最终仅针对目标区域内的图像点进行测光,可以避免测光时背景区域内的图像点对目标区域内的图像点产生不必要的影响,从而大大提高对目标区域内的图像点进行测光的准确性。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1是本公开示出的一种拍摄场景示意图;
图2是本公开实施例一种测光方法的示例性流程图;
图3是本公开中初始测光区域的示意图;
图4是本公开中步骤S203的一种实现流程示意图;
图5是本公开中确定第N待标记点的属性的实现流程示意图;
图6是本公开中确定图1中的初始测光区域的示意图;
图7是本公开中确定图1中目标区域的示意图;
图8本公开实施例一种测光装置的框图;
图9是图8中图像分割模块的一种实现结构示意图;
图10是图9中第N待标记点属性确定单元的一种实现结构示意图;
图11是本公开实施例提供的终端设备实施例的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
图2是根据一示例性实施例示出的一种测光方法的流程图,如图2所示,测光方法用于终端中,包括以下步骤:
步骤S201、获取用户输入的处于测光区域的触屏点;
步骤S202、确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
步骤S203、将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
步骤S204、对所述目标区域内的图像点进行测光。
在步骤S201中,当需要对触摸屏上所显示的整幅图像中的部分区域进行测光时,用户点击触摸屏,触屏点处于测光区域之中。触屏点是后续进行图像分割时需要的重要参考点。
在步骤S202中,根据触屏点,终端可以确定出触摸屏上所显示的整幅图像中需要进行测光的初始测光区域,触屏点处于该初始测光区域之中。
该步骤中,为了将所有需要进行测光的图像点包括在初始测光范围内,通常,以该触屏点为中心,划定一个矩形区域,测光范围即为该矩形区域之内的图像点。
然而,上述确定初始测光范围时,矩形区域往往要超出用户真正需要测光的图像区域,也就是说,初始测光范围中包含了一些不需要进行测光的区域,而这部分不需要测光的区域往往会对真正需要测光的图像区域产生影响,使得最终的测光结果不准确,如图1中左手袖口和右手袖口部位的衣服部分的图像区域。
为了避免这种缺陷,本公开在步骤S203中,利用分割算法,将初始测光区域包含的图像进行分割,最终将初始测光区域分割为两部分:背景区域和目标区域,其中,将不需测光的区域定义为“背景区域”,将包含触屏点的最终作为测光区域的区域定义为“目标区域”。
该步骤中,通过图像分割,将不需测光的图像区域与需要测光的图像区域进行区分,从而划分出真正需要测光的图像区域。
在步骤S204中,当完成图像分割之后,终端仅对真正需要测光的目标区域内的图像点进行测光。
本公开实施例中,在进行测光过程中,首先获取用户输入的处于测光区域的触屏点;然后,在触摸屏上所显示的整幅图像中确定包含所述触屏点的初始测光区域;通过将初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;最终,针对目标区域内的图像点进行测光。由于将初始测光区域分割为不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域,而且在最终仅针对目标区域内的图像点进行测光,可以避免测光时背景区域内的图像点对目标区域内的图像点产生不必要的影响,从而大大提高对目标区域内的图像点进行测光的准确性。
为了便于对本公开技术方案的理解,下面进一步对上述图像分割过程进行详细说明。
传统点测光的范围占整个预览图像的1~3%,而且在具体的设备上这个比率是固定的。本公开中,为了最大范围的覆盖目标对焦区域,测光范围适当放大,为1~8%。如图3所示,其中边长为L的正方形区域即为初始测光区域。该正方形以触屏点为中心,边长L的计算公式为:
L=sqrt(W*H*8/100)
上式中,H为预览图像的长度,W为预览图像的宽度。
与传统处理方式不同的是,本公开中,最终作为测光区域的目标区域不一定为初始测光区域,需要根据对初始测光区域的图形分割结果最终进行目标区域的确定。
在对本公开中的图像分割方法进行说明之前,首先对即将出现的一些术语进行解释:
1、相邻点:本公开中,一个图像点的相邻点指的是位于该点上下左右四个方向的点;
2、颜色距离:假设两个图像点P1和P2,P1对应的RGB颜色值为P1(r1,g1,b1),P2对应的RGB颜色值为P2(r2,g2,b2),abs为绝对值函数,r=abs(r1–r2),g=abs(g1–g2),b=abs(b1–b2),P1和P2之间的颜色距离即为r、g和b中最大的值;
通常,由于RGB的范围为[0,255],则两个图像点之间的颜色距离的范围同样为[0,255];
3、分割点:本公开中,该点为与目标区域和背景区域都相交的图像点;
4、已标记点:为已确定属性的图像点,本公开中,已标记点的属性可以分为三类:目标区域点(包括触屏点)、背景区域点(包括初始测光区域的图像边界点)和分割点;
5、待标记点:为与已标记点上下左右相邻的等待确定属性的图像点。
在本公开的一个优选实施例中,上述步骤S203的一种具体实现方式如图4所示,该图像分割流程可以包括以下执行步骤:
步骤S401、计算与所述触屏点在上下左右方向上相邻的待标记属性的待标记点与所述触屏点之间的颜色距离,以及,计算与所述初始测光区域的图像边界点相邻的待标记属性的待标记点与所述图像边界点之间的颜色距离,所述属性包括:目标区域点、背景区域点或分割点;
步骤S402、获取最小颜色距离对应的第一待标记点和相邻第一已标记点;
步骤S403、根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定 所述第一待标记点的属性,生成第二已标记点;
该实施例中,初始的目标区域点,是触屏点;初始的背景区域点,是初始测光区域内图像边界上的所有点;初始的待标记点,是与初始的目标区域相邻的图像点,以及与初始的背景区域相邻的图像点。由此,第一待标记点的属性只能为目标区域点或背景区域点。
步骤S404、根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定所述第一待标记点的属性,生成第二已标记点;
步骤S405、获取最小颜色距离对应的第N待标记点;
步骤S406、根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,直至确定所有所述待标记点的属性。
该步骤中,第N已标记点的属性可以包括:目标区域点、背景区域点或分割点,相应地,第N待标记点的属性也可以包括:目标区域点、背景区域点或分割点。
当确定出所有待标记点的属性之后,目标区域点组成目标区域,背景区域点组成背景区域,目标区域和背景区域由分割点进行分割。
需要说明的是,上述图像分割流程中,根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定第N待标记点的属性的具体实现方式如图5流程所示,包括:
步骤S501、判断所述第N待标记点在上下左右方向上相邻的已标记点是否既包括目标区域点,又包括背景区域点;如果既包括目标区域点,又包括背景区域点,则继续步骤S502;否则,继续步骤S503;
步骤S502、将所述第N待标记点确定为分割点;
步骤S503、判断所述第N待标记点在上下左右方向上相邻的已标记点是否仅为目标区域点;如果仅为目标区域点,则继续步骤S504;否则,继续步骤S505;
步骤S504、将所述第N待标记点确定为目标区域点;
步骤S505、将所述第N待标记点确定为背景区域点。
通过该实现方式,可以准确确定出各个待标记点的属性,从而大大提高后续测光的准确性。
下面通过一个具体应用场景对上述测光方法进行说明。仍以图1所示的拍摄场景为例,用户点击触摸屏上人物左手(图中的白色点位置),以手部为测光点时,终端系统首先确定包含触屏点的初始测光区域,如图6所示。可见,图6所示的初始测光区域中除了包含用户需要进行测光的左手图像,同时包含了左手袖口和右手袖口部位的衣服部分。因此,需要将初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域。通过前述的图像分割流程,最终,将对图6进行图像分割后得到的分割点还原到图1中,所有分割点组成的分割线,比较准确地划定了人物的左手区域,如图7所示。最终,对图7中划定出的左手区域内的图像点进行测光,从而避免当衣服部分颜色跟左手肤色相差较大时,对最终测光结果造成的影响,大大提高测光的准确性。
图8是根据一示例性实施例示出的一种测光装置示意图。参照图8,该装置包括:
触屏点获取模块81,用于获取用户输入的处于测光区域的触屏点;
初始测光区域确定模块82,用于确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
图像分割模块83,用于将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
测光模块84,用于对所述目标区域内的图像点进行测光。
本公开实施例中,在进行测光过程中,首先获取用户输入的处于测光区域的触屏点;然后,在触摸屏上所显示的整幅图像中确定包含所述触屏点的初始测光区域;通过将初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;最终,针对目标区域内的图像点进行测光。由于将初始测光区域分割为不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域,而且在最终仅针对目标区域内的图像点进行测光,可以避免测光时背景区域内的图像点对目标区域内的图像点产生不必要的影响,从而大大提高对目标区域内的图像点进行测光的准确性。
传统点测光的范围占整个预览图像的1~3%,而且在具体的设备上这个比率是固定的。本公开中,为了最大范围的覆盖目标对焦区域,测光范围适当放大,为1~8%。
与传统处理方式不同的是,本公开中,最终作为测光区域的目标区域不一定为初始测光区域,需要根据对初始测光区域的图形分割结果最终进行目标区域的确定。
在本公开提供的一个优选实施例中,图像分割模块的一种实现方式如图9所示,可以包括:
第一颜色距离计算单元901,用于计算与所述触屏点在上下左右方向上相邻的待标记属性的待标记点与所述触屏点之间的颜色距离,以及,计算与所述初始测光区域的图像边界点相邻的待标记属性的待标记点与所述图像边界点之间的颜色距离,所述属性包括:目标区域点、背景区域点或分割点;
第一待标记点获取单元902,用于获取最小颜色距离对应的第一待标记点;
第一待标记点属性确定单元903,用于根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定所述第一待标记点的属性,生成第二已标记点;
第N颜色距离计算单元904,用于计算与所述第N(N为大于等于2的自然数)已标记点在上下左右方向上相邻的待标记属性的待标记点与所述第N已标记点之间的颜色距离;
第N待标记点获取单元905,用于获取最小颜色距离对应的第N待标记点;
第N待标记点属性确定单元906,用于根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,直至确定所有所述待标记点的属性;
其中,所述目标区域点组成所述目标区域,所述背景区域点组成所述背景区域,所述目标区域和所述背景区域由所述分割点进行分割。
在本公开提供的另一个优选实施例中,上述第N待标记点属性确定单元的实现方式如图10所示,可以包括:
第一判断子单元1001,用于判断所述第N待标记点在上下左右方向上相邻的已标记点是否既包括目标区域点,又包括背景区域点;如果既包括目标区域点,又包括背景区域点,则触发分割点确定子单元1002;否则,触发第二判断子单元1003;
所述分割点确定子单元1002,用于如果既包括目标区域点,又包括背景区域点,则将所述第N待标记点确定为分割点;
所述第二判断子单元1003,用于继续判断所述第N待标记点在上下左右方向上相邻的已标记点是否仅为目标区域点;如果仅为目标区域点,则触发目标区域点确定子单元1004;否则,触发背景区域点子单元1005;
所述目标区域点确定子单元1004,用于则将所述第N待标记点确定为目标区域点;
所述背景区域点子单元1005,用于将所述第N待标记点确定为背景区域点。
通过该实现方式,可以准确确定出各个待标记点的属性,从而大大提高后续测光的准确性。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图11是根据一示例性实施例示出的一种用于测光的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图11,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包 括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种测光方法,所述方法包括:
获取用户输入的处于测光区域的触屏点;
确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
对所述目标区域内的图像点进行测光。本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。

Claims (9)

  1. 一种测光方法,其特征在于,包括:
    获取用户输入的处于测光区域的触屏点;
    确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
    将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
    对所述目标区域内的图像点进行测光。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域,包括:
    计算与所述触屏点在上下左右方向上相邻的待标记属性的待标记点与所述触屏点之间的颜色距离,以及,计算与所述初始测光区域的图像边界点相邻的待标记属性的待标记点与所述图像边界点之间的颜色距离,所述属性包括:目标区域点、背景区域点或分割点;
    获取最小颜色距离对应的第一待标记点;
    根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定所述第一待标记点的属性,生成第二已标记点;
    计算与所述第N(N为大于等于2的自然数)已标记点在上下左右方向上相邻的待标记属性的待标记点与所述第N已标记点之间的颜色距离;
    获取最小颜色距离对应的第N待标记点;
    根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,直至确定所有所述待标记点的属性;
    其中,所述目标区域点组成所述目标区域,所述背景区域点组成所述背景区域,所述目标区域和所述背景区域由所述分割点进行分割。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,包括:
    判断所述第N待标记点在上下左右方向上相邻的已标记点是否既包括目标区域点,又包括背景区域点;
    如果既包括目标区域点,又包括背景区域点,则将所述第N待标记点确定为分割点;否则,继续判断所述第N待标记点在上下左右方向上相邻的已标记点是否仅为目标区域点;
    如果仅为目标区域点,则将所述第N待标记点确定为目标区域点;否则,将所述第N待标记点确定为背景区域点。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域,包括:
    确定所述触摸屏上所显示的整幅图像中包含所述触屏点的1~8%的区域为所述初始测光区域。
  5. 一种测光装置,其特征在于,包括:
    触屏点获取模块,用于获取用户输入的处于测光区域的触屏点;
    初始测光区域确定模块,用于确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
    图像分割模块,用于将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
    测光模块,用于对所述目标区域内的图像点进行测光。
  6. 根据权利要求5所述的装置,其特征在于,所述图像分割模块,包括:
    第一颜色距离计算单元,用于计算与所述触屏点在上下左右方向上相邻的待标记属性的待标记点与所述触屏点之间的颜色距离,以及,计算与所述初始测光区域的图像边界点相邻的待标记属性的待标记点与所述图像边界点之间的颜色距离,所述属性包括:目标区域点、背景区域点或分割点;
    第一待标记点获取单元,用于获取最小颜色距离对应的第一待标记点;
    第一待标记点属性确定单元,用于根据所述第一待标记点在上下左右方向上相邻的已标记点的属性,确定所述第一待标记点的属性,生成第二已标记点;
    第N颜色距离计算单元,用于计算与所述第N(N为大于等于2的自然数)已标记点在上下左右方向上相邻的待标记属性的待标记点与所述第N已标记点之间的颜色距离;
    第N待标记点获取单元,用于获取最小颜色距离对应的第N待标记点;
    第N待标记点属性确定单元,用于根据所述第N待标记点在上下左右方向上相邻的已标记点的属性,确定所述第N待标记点的属性,直至确定所有所述待标记点的属性;
    其中,所述目标区域点组成所述目标区域,所述背景区域点组成所述背景区域,所述目标区域和所述背景区域由所述分割点进行分割。
  7. 根据权利要求6所述的装置,其特征在于,所述第N待标记点属性确定单元,包括:
    第一判断子单元,用于判断所述第N待标记点在上下左右方向上相邻的已标记点是否既包括目标区域点,又包括背景区域点;如果既包括目标区域点,又包括背景区域点,则触发分割点确定子单元;否则,触发第二判断子单元;
    所述分割点确定子单元,用于如果既包括目标区域点,又包括背景区域点,则将所述 第N待标记点确定为分割点;
    所述第二判断子单元,用于继续判断所述第N待标记点在上下左右方向上相邻的已标记点是否仅为目标区域点;如果仅为目标区域点,则触发目标区域点确定子单元;否则,触发背景区域点子单元;
    所述目标区域点确定子单元,用于则将所述第N待标记点确定为目标区域点;
    所述背景区域点子单元,用于将所述第N待标记点确定为背景区域点。
  8. 根据权利要求5-7中任一项所述的装置,其特征在于,所述初始测光区域确定模块,具体用于确定所述触摸屏上所显示的整幅图像中包含所述触屏点的1~8%的区域为所述初始测光区域。
  9. 一种终端,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    获取用户输入的处于测光区域的触屏点;
    确定触摸屏上所显示的整幅图像中包含所述触屏点的初始测光区域;
    将所述初始测光区域包含的图像进行分割,分割出不需测光的背景区域和包含所述触屏点的最终作为测光区域的目标区域;
    对所述目标区域内的图像点进行测光。
PCT/CN2014/091557 2014-07-31 2014-11-19 测光方法及装置 Ceased WO2016015402A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
KR1020157001261A KR101813194B1 (ko) 2014-07-31 2014-11-19 측광방법, 장치, 프로그램 및 기록매체
BR112015003277A BR112015003277A2 (pt) 2014-07-31 2014-11-19 método de medição de luz, dispositivo de medição de luz e terminal
MX2015002224A MX352793B (es) 2014-07-31 2014-11-19 Método y dispositivo de medición de luz.
RU2015105744A RU2628236C2 (ru) 2014-07-31 2014-11-19 Способ и устройство измерения освещенности
JP2016537122A JP6149162B2 (ja) 2014-07-31 2014-11-19 測光方法、測光装置、端末、プログラム及び記録媒体
US14/624,984 US9674454B2 (en) 2014-07-31 2015-02-18 Light metering methods and devices

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410373717.0A CN104219518B (zh) 2014-07-31 2014-07-31 测光方法及装置
CN201410373717.0 2014-07-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/624,984 Continuation US9674454B2 (en) 2014-07-31 2015-02-18 Light metering methods and devices

Publications (1)

Publication Number Publication Date
WO2016015402A1 true WO2016015402A1 (zh) 2016-02-04

Family

ID=52100598

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091557 Ceased WO2016015402A1 (zh) 2014-07-31 2014-11-19 测光方法及装置

Country Status (8)

Country Link
EP (1) EP2981065B1 (zh)
JP (1) JP6149162B2 (zh)
KR (1) KR101813194B1 (zh)
CN (1) CN104219518B (zh)
BR (1) BR112015003277A2 (zh)
MX (1) MX352793B (zh)
RU (1) RU2628236C2 (zh)
WO (1) WO2016015402A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227857B (zh) * 2015-10-08 2018-05-18 广东欧珀移动通信有限公司 一种自动曝光的方法和装置
CN109376588B (zh) * 2018-09-05 2019-08-02 北京达佳互联信息技术有限公司 一种人脸测光点选取方法、装置和拍摄设备
CN114257738B (zh) * 2021-11-30 2024-06-28 上海闻泰信息技术有限公司 自动曝光方法、装置、设备及存储介质
CN115474007A (zh) * 2022-08-12 2022-12-13 北京城市网邻信息技术有限公司 一种拍摄方法、装置、终端设备及存储介质
CN119729225B (zh) * 2025-03-03 2025-05-27 先临三维科技股份有限公司 亮度调节方法及扫描设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652577A (zh) * 2004-02-06 2005-08-10 株式会社尼康 数码相机
CN101820504A (zh) * 2009-02-26 2010-09-01 日立民用电子株式会社 摄像装置
US20130321687A1 (en) * 2010-12-09 2013-12-05 Dimitri NEGROPONTE Light metering in cameras for backlit scenes
CN103795917A (zh) * 2012-10-30 2014-05-14 三星电子株式会社 成像装置和控制方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11136568A (ja) * 1997-10-31 1999-05-21 Fuji Photo Film Co Ltd タッチパネル操作式カメラ
US7847830B2 (en) * 2006-11-21 2010-12-07 Sony Ericsson Mobile Communications Ab System and method for camera metering based on flesh tone detection
JP5386793B2 (ja) * 2006-12-11 2014-01-15 株式会社リコー 撮像装置および撮像装置の露出制御方法
US8237807B2 (en) * 2008-07-24 2012-08-07 Apple Inc. Image capturing device with touch screen for adjusting camera settings
JP2010072619A (ja) * 2008-08-22 2010-04-02 Nikon Corp 露出演算装置およびカメラ
WO2012155446A1 (zh) * 2011-07-18 2012-11-22 中兴通讯股份有限公司 局部图像平移方法及带有触摸屏的终端
JP6083987B2 (ja) * 2011-10-12 2017-02-22 キヤノン株式会社 撮像装置、その制御方法及びプログラム
JP5872395B2 (ja) * 2012-06-29 2016-03-01 セコム株式会社 領域分割装置
CN103139481B (zh) * 2012-12-28 2015-07-08 努比亚技术有限公司 一种摄像装置和摄像方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652577A (zh) * 2004-02-06 2005-08-10 株式会社尼康 数码相机
CN101820504A (zh) * 2009-02-26 2010-09-01 日立民用电子株式会社 摄像装置
US20130321687A1 (en) * 2010-12-09 2013-12-05 Dimitri NEGROPONTE Light metering in cameras for backlit scenes
CN103795917A (zh) * 2012-10-30 2014-05-14 三星电子株式会社 成像装置和控制方法

Also Published As

Publication number Publication date
JP2016535307A (ja) 2016-11-10
JP6149162B2 (ja) 2017-06-14
CN104219518A (zh) 2014-12-17
KR101813194B1 (ko) 2017-12-28
BR112015003277A2 (pt) 2017-07-04
RU2015105744A (ru) 2016-09-10
MX352793B (es) 2017-12-07
KR20160024835A (ko) 2016-03-07
EP2981065B1 (en) 2019-02-20
RU2628236C2 (ru) 2017-08-15
CN104219518B (zh) 2018-09-18
MX2015002224A (es) 2016-08-30
EP2981065A1 (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN112449026B (zh) 一种环境光补偿方法、装置、终端及存储介质
US10708512B2 (en) Method and device for capturing image and storage medium
WO2016090829A1 (zh) 图像拍摄方法及装置
WO2016110145A1 (zh) 屏幕亮度设置方法及装置
CN105227857B (zh) 一种自动曝光的方法和装置
WO2016176954A1 (zh) 拍摄参数设置方法及装置
CN103973979A (zh) 一种配置拍摄参数的方法及装置
CN105554399A (zh) 拍摄方法、拍摄装置及终端设备
WO2016023339A1 (zh) 延时拍照的方法和装置
WO2016015402A1 (zh) 测光方法及装置
CN105959587A (zh) 快门速度获取方法和装置
CN107480785A (zh) 卷积神经网络的训练方法及装置
CN105959594A (zh) 摄影设备的测光方法及装置
WO2016101478A1 (zh) 液晶显示器调整方法及装置
CN106469446B (zh) 深度图像的分割方法和分割装置
WO2016155227A1 (zh) 显示取景信息的方法及装置
CN114268743B (zh) 图像获取方法、装置、设备及存储介质
CN106775240B (zh) 应用程序的触发方法、装置及终端
CN107770444B (zh) 拍照参数确定方法及装置
US9723218B2 (en) Method and device for shooting a picture
CN117408868A (zh) 图像处理方法及装置、电子设备、存储介质
CN114339021A (zh) 基于人脸识别的对焦方法、装置、终端设备和存储介质
CN113551768B (zh) 确定环境亮度的方法及装置
US9674454B2 (en) Light metering methods and devices
CN118488316A (zh) 一种测光方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20157001261

Country of ref document: KR

Kind code of ref document: A

Ref document number: 2016537122

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015105744

Country of ref document: RU

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/002224

Country of ref document: MX

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015003277

Country of ref document: BR

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14899011

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112015003277

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20150213

122 Ep: pct application non-entry in european phase

Ref document number: 14899011

Country of ref document: EP

Kind code of ref document: A1