CN108876757A - Environment light detection method, device and equipment and storage medium - Google Patents

Environment light detection method, device and equipment and storage medium Download PDF

Info

Publication number
CN108876757A
CN108876757A CN201710445972.5A CN201710445972A CN108876757A CN 108876757 A CN108876757 A CN 108876757A CN 201710445972 A CN201710445972 A CN 201710445972A CN 108876757 A CN108876757 A CN 108876757A
Authority
CN
China
Prior art keywords
target object
light
environment light
video frame
intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710445972.5A
Other languages
Chinese (zh)
Other versions
CN108876757B (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.)
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology Co Ltd
Original Assignee
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Megvii Technology Co Ltd, Beijing Maigewei Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201710445972.5A priority Critical patent/CN108876757B/en
Publication of CN108876757A publication Critical patent/CN108876757A/en
Application granted granted Critical
Publication of CN108876757B publication Critical patent/CN108876757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/30168Image quality inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment provides a kind of environment light detection method, device and equipment and storage mediums.This method includes:Step S100:Obtain the image collecting device video flowing collected comprising target object of environment light sensing device;Step S200:Export light emission instruction signal, wherein the light emitting device that light emission instruction signal is used to indicate environment light sensing device generates optical signal that its intensity changes within the scope of initial strength as irradiation current light, and irradiation current light is used to irradiate target object;Step S300:Collected, target object during light emitting device generates irradiation current light is selected at least two video frames in the video frame and remained stationary occur from video flowing;And step S400:According to the pixel value of target object region determines the intensity for the environment light being irradiated on target object in the intensity and at least two video frames of irradiation current light within the period for acquiring at least two video frames.The intensity for the environment light being irradiated on object can accurately be detected.

Description

Environment light detection method, device and equipment and storage medium
Technical field
The present invention relates to field of image processing, relate more specifically to a kind of environment light detection method, device and equipment and figure Image quality amount judgment method, device and equipment and storage medium.
Background technique
On mobile phone terminal in application relevant to the identification of objects such as face, card or certificate, estimate on subject The intensity of received environment light has highly important effect for picture quality judgement, signal extraction (such as heartbeat signal) etc..
However, the light intensity sensor of mobile phone can only measure the mean intensity of whole light in visual field, can not locally estimate Count the intensity of the environment light on object.Under the conditions ofs backlight etc., whole light in the intensity and entire visual field of the environment light on object Mean intensity between have significant gap.The environment on object can accurately, be locally measured therefore, it is necessary to one kind The technology of the intensity of light.
Summary of the invention
The present invention is proposed in view of the above problem.The present invention provides a kind of environment light detection method, device and set Standby and image quality judging method, device and equipment and storage medium.
According to an aspect of the present invention, a kind of environment light detection method is provided.This method includes:Step S100:Obtain ring The image collecting device of the border light sensing device video flowing collected comprising target object;Step S200:Output, which shines, to be indicated Signal, wherein the light emitting device that light emission instruction signal is used to indicate environment light sensing device generates its intensity in initial strength model The optical signal of interior variation is enclosed as irradiation current light, and irradiation current light is for irradiating target object;Step S300:From video flowing Selection collected, target object during light emitting device generates irradiation current light occurs in the video frame and remains stationary At least two video frames;And step S400:According to the irradiation current light within the period for acquiring at least two video frames The pixel value of target object region determines the environment light being irradiated on target object in intensity and at least two video frames Intensity.
Illustratively, step S200 includes:When detected from video flowing target object and determine target object pre- If remain stationary in the period, light emission instruction signal is exported.
Illustratively, step S400 includes:Determine the distance between target object and environment light sensing device d;For extremely Each video frame in few two video frames, seeks the pixel value of all pixels in target object region in the video frame It is average, to obtain mean pixel value sequence relevant at least two video frames;It calculates mean pixel value sequence and is acquiring extremely Cross correlation value s in the period of few two video frames between the intensity of irradiation current light;Calculate cross correlation value s and mean pixel The ratio L of the sum of all average pixel values in value sequence;The intensity I of environment light is calculated according to the following formulae
Wherein, c is constant relevant to environment light sensing device.
Illustratively, in the intensity I for calculating environment lighteBefore, environment light detection method further includes:Judge whether L is greater than Preset ratio threshold value changes light emission instruction signal if L is greater than preset ratio threshold value, so that light emission instruction signal indicates Light emitting device generates optical signal that its intensity changes in new strength range as irradiation current light and return step S300, In, the maximum value of new strength range is less than the maximum value of initial strength range.
Illustratively, determine that the distance between target object and environment light sensing device d include:Selection exists from video flowing Any view collected when target object occurs and its position is remained stationary relative to the position at least two video frames Frequency frame;And size estimation target object and environment according to the fixed reference feature part of target object in selected video frame The distance between light sensing device d.
Illustratively, determine that the distance between target object and environment light sensing device d include:Selection exists from video flowing It is collected when target object occurs and its position is remained stationary relative to the position at least two video frames to be more than one A video frame;For each video frame in selected more than one video frame, according to the target object in the video frame The distance between size estimation target object and image collecting device of fixed reference feature part, it is corresponding with the video frame to obtain Distance value;To more than one distance value is averaging correspondingly with selected more than one video frame;And it determines and obtains Average value be the distance between target object and environment light sensing device d.
Illustratively, before step S300, environment light detection method further includes:For each video in video flowing Frame, the detected target object from the video frame, to judge whether target object occurs, and really in the case where target object occurs Set the goal position of the object in the video frame;And video frame therein is appeared in each target object according to target object In position determine the period that target object remains stationary.
Illustratively, the position in video frame therein is appeared in each target object according to target object and determines target The period that object remains stationary includes:If target object occurs in the successive video frames of the first preset number and The variance of position in the successive video frames of one preset number is less than default variance threshold values, it is determined that the first preset number of acquisition Periods of successive video frames and/or acquire the continuous of the second preset number after the successive video frames of the first preset number The period of video frame is the period that target object remains stationary.
Illustratively, the position in video frame therein is appeared in each target object according to target object and determines target The period that object remains stationary includes:For the every two successive video frames in video flowing, in real time by target object at this Position in two successive video frames compares, if the difference of position of the target object in two successive video frames is less than Preset difference value threshold value, it is determined that target object remains stationary within the period for acquiring two successive video frames.
Illustratively, step S300 includes:Step S310:Record target object is in the continuous view wherein remained stationary in real time Frequency frame;Step S320:If the number for the successive video frames that record in real time, target object remains stationary reaches third present count Mesh then selects recorded successive video frames as at least two video frames;And step S330:If it is recording in real time, Before the number for the successive video frames that target object remains stationary reaches third preset number, determine that target object moves, Then return step S310.
Illustratively, before step S300, environment light detection method further includes:Prompt information is exported, it will for prompt Target object is placed in a predetermined position and remains stationary target object.
Illustratively, irradiation current light exports the pattern of light and shade variation by light emitting device to generate.
Illustratively, the intensity of irradiation current light changes according to sine wave shape, triangle shape or square-wave form.
Illustratively, light emitting device include and image collector setting in the same side flash lamp.
Illustratively, environment light sensing device is mobile terminal, and light emitting device includes and image collector is setting in same The display screen of side, display screen are changed by light and shade or generate irradiation current light by the pattern of output light and shade variation.
According to a further aspect of the invention, a kind of image quality judging method is provided, including:According at least to using above-mentioned ring The intensity of the detected environment light of border light detection method judges the image collecting device object collected comprising target object The quality of image.
According to a further aspect of the invention, a kind of environment light sensing device, including image collecting device, luminous dress are provided It sets, processor and memory, wherein computer program instructions are stored in memory, computer program instructions are transported by processor For executing following steps when row:Step S100:Obtain the image collecting device video flowing collected comprising target object;Step Rapid S200:Export light emission instruction signal, wherein light emission instruction signal is used to indicate light emitting device and generates its intensity in initial strength The optical signal changed in range is as irradiation current light, and irradiation current light is for irradiating target object;Step S300:From video flowing Middle selection collected, target object during light emitting device generates irradiation current light occurs in the video frame and keeps not At least two dynamic video frames;And step S400:According to the irradiation current light within the period for acquiring at least two video frames Intensity and at least two video frames in the pixel value of target object region determine the environment that is irradiated on target object The intensity of light.
According to a further aspect of the invention, it provides a kind of picture quality and judges equipment, including processor and memory, In, computer program instructions are stored in memory, for executing following steps when computer program instructions are run by processor: Judge that image collecting device is collected according at least to using the intensity of the detected environment light of above-mentioned environment light detection method The quality of object images comprising target object.
According to a further aspect of the invention, a kind of storage medium is provided, stores program instruction, program on a storage medium Instruction is at runtime for executing following steps:Step S100:The image collecting device for obtaining environment light sensing device is acquired The video flowing comprising target object;Step S200:Export light emission instruction signal, wherein light emission instruction signal is used to indicate ring The light emitting device of border light sensing device generates optical signal that its intensity changes within the scope of initial strength as irradiation current light, when Front irradiation light is for irradiating target object;Step S300:It selects to generate the mistake of irradiation current light in light emitting device from video flowing There are at least two video frames in the video frame and remained stationary in collected in journey, target object;And step S400:Root According to acquire at least two video frames period in irradiation current light intensity and at least two video frames in target object The pixel value of region determines the intensity for the environment light being irradiated on target object.
According to a further aspect of the invention, a kind of storage medium is provided, stores program instruction, program on a storage medium Instruction is at runtime for executing following steps:According at least to using the detected environment light of above-mentioned environment light detection method Intensity judges the quality of the image collecting device object images collected comprising target object.
According to a further aspect of the invention, a kind of ambient light detection device is provided, including:Video flowing obtains module, is used for Obtain the image collecting device video flowing collected comprising target object of environment light sensing device;Signal output module is used In output light emission instruction signal, wherein it is strong that the light emitting device that light emission instruction signal is used to indicate environment light sensing device generates it The optical signal changed within the scope of initial strength is spent as irradiation current light, and irradiation current light is for irradiating target object;Video Frame selecting module, for selection collected, target pair during light emitting device generates irradiation current light from video flowing As at least two video frames for occurring in the video frame and remaining stationary;And environment light determining module, it is being acquired for basis Target object region in the intensity of irradiation current light and at least two video frames in the period of at least two video frames Pixel value determine the intensity of environment light being irradiated on target object.
According to a further aspect of the invention, a kind of picture quality judgment means are provided, including:Quality estimation module, is used for Judge that image collecting device is collected according at least to using the intensity of the detected environment light of above-mentioned environment light detection method The quality of object images comprising target object.
Environment light detection method, device and equipment according to an embodiment of the present invention and image quality judging method, device and Equipment and storage medium, region when detecting environment light is with strong points, can accurately detect the environment light being irradiated on object Intensity, object caused by the mean intensity of whole light can only be measured in visual field so as to solve existing optical sensor On environment light detection inaccuracy problem.
Detailed description of the invention
The embodiment of the present invention is described in more detail in conjunction with the accompanying drawings, the above and other purposes of the present invention, Feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present invention, and constitutes explanation A part of book, is used to explain the present invention together with the embodiment of the present invention, is not construed as limiting the invention.In the accompanying drawings, Identical reference label typically represents same parts or step.
Fig. 1 shows the exemplary electronic device for realizing environment light detection method according to an embodiment of the present invention and device Schematic block diagram;
Fig. 2 shows the schematic flow charts of environment light detection method according to an embodiment of the invention;
Fig. 3 shows the schematic block diagram of ambient light detection device according to an embodiment of the invention;And
Fig. 4 shows the schematic block diagram of environment light sensing device according to an embodiment of the invention.
Specific embodiment
In order to enable the object, technical solutions and advantages of the present invention become apparent, root is described in detail below with reference to accompanying drawings According to example embodiments of the present invention.Obviously, described embodiment is only a part of the embodiments of the present invention, rather than this hair Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Based on described in the present invention The embodiment of the present invention, those skilled in the art's obtained all other embodiment in the case where not making the creative labor It should all fall under the scope of the present invention.
In order to solve problem as described above, the embodiment of the present invention provides a kind of environment light detection method, device and equipment And image quality judging method, device and equipment and storage medium.Environment light detection method according to an embodiment of the present invention, device With equipment and image quality judging method, device and equipment and storage medium, can accurately estimate to be radiated at object (such as Face, card, certificate etc.) on environment light intensity.
Firstly, describing showing for realizing environment light detection method according to an embodiment of the present invention and device referring to Fig.1 Example electronic equipment 100.
As shown in Figure 1, electronic equipment 100 include one or more processors 102, it is one or more storage device 104, defeated Enter device 106, output device 108, image collecting device 110 and light emitting device 112, these components by bus system 114 and/ Or bindiny mechanism's (not shown) interconnection of other forms.It should be noted that the component and structure of electronic equipment 100 shown in FIG. 1 are only It is exemplary, and not restrictive, as needed, the electronic equipment also can have other assemblies and structure.
The processor 102 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution The processing unit of the other forms of ability, and the other components that can control in the electronic equipment 100 are desired to execute Function.
The storage device 104 may include one or more computer program products, and the computer program product can To include various forms of computer readable storage mediums, such as volatile memory and/or nonvolatile memory.It is described easy The property lost memory for example may include random access memory (RAM) and/or cache memory (cache) etc..It is described non- Volatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..In the computer readable storage medium On can store one or more computer program instructions, processor 102 can run described program instruction, to realize hereafter institute The client functionality (realized by processor) in the embodiment of the present invention stated and/or other desired functions.In the meter Can also store various application programs and various data in calculation machine readable storage medium storing program for executing, for example, the application program use and/or The various data etc. generated.
The input unit 106 can be the device that user is used to input instruction, and may include keyboard, mouse, wheat One or more of gram wind and touch screen etc..
The output device 108 can export various information (such as image and/or sound) to external (such as user), and It and may include one or more of display, loudspeaker etc..
Described image acquisition device 110 can acquire image (including video frame), and acquired image is stored in For the use of other components in the storage device 104.Image collecting device 110 can be camera.It should be appreciated that image is adopted Acquisition means 110 are only examples, and electronic equipment 100 can not include image collecting device 110.In such a case, it is possible to utilize Other image acquisition device images (including video frame), and the image of acquisition is sent to electronic equipment 100.
Light emitting device 112 can be the device that can generate optical signal, such as it can be display screen or flash lamp.
Illustratively, for realizing the exemplary electronic device of environment light detection method and device according to an embodiment of the present invention It can be realized in the equipment of personal computer or remote server etc..
In the following, environment light detection method according to an embodiment of the invention will be described with reference to Fig. 2.Fig. 2 shows according to this The schematic flow chart of the environment light detection method 200 of invention one embodiment.As shown in Fig. 2, environment light detection method 200 wraps Include following steps.
In step S210, the image collecting device video collected comprising target object of environment light sensing device is obtained Stream.
Environment light sensing device (such as electronic equipment 100) can be mobile terminal (such as smart phone, tablet computer Deng) or other equipment with image collecting function and light-emitting function.Target object can be any required detection environment light Object, such as face, card, certificate etc..The classification of target object can according to need determination.
Illustratively, video flowing can be the original video stream that the image acquisition devices such as camera arrive, and be also possible to The video flowing obtained after being pre-processed to original video stream.Video flowing is acquired in real time by image collecting device, accordingly, Step S210, the video flowing of real-time image acquisition acquisition device acquisition.
Video flowing can be sent to by client device (mobile terminal for example including camera) electronic equipment 100 with by The processor 102 of electronic equipment 100 is handled, can also by image collecting device 110 that electronic equipment 100 includes (such as Camera) it acquires and is transmitted to processor 102 and is handled.
In step S220, light emission instruction signal is exported, wherein light emission instruction signal is used to indicate environment light sensing device Light emitting device generates optical signal that its intensity changes within the scope of initial strength as irradiation current light, and irradiation current light is for shining Penetrate target object.
For the environment light in detected target object, it can require user that target object is placed in suitable position, so that Light emitting device is able to use irradiation light to irradiate target object.It is defeated in at least partly period during obtaining video flowing in real time Light emission instruction signal generates irradiation current light with indication lighting arrangement out.
Illustratively, light emitting device may include and image collector setting in the same side display screen or flash lamp.Example Such as, when image collector is set to the front camera of mobile terminal, light emitting device can be display screen.In another example working as image When acquisition device is the rear camera of mobile terminal, light emitting device can be flash lamp.
Optionally, environment light sensing device can be mobile terminal, and light emitting device may include and image collector set Display screen in the same side, display screen can be changed by light and shade or generate current photograph by the pattern of output light and shade variation Penetrate light.The light and shade variation of display screen refers to light and shade variation (the light and shade change on namely entire display screen of screen backlight lamp entirety Change).The pattern of output light and shade variation refers to that display screen generates a kind of pattern, and light and shade variation is presented in different periods in pattern, so that The intensity for the irradiation light that screen portions where pattern generate changes with the variation of pattern.
Optionally, irradiation current light can be the optical signal that intensity changes in initial strength range periodically, for example, its Intensity be can be according to the optical signal of the change in shape such as sine wave, triangular wave, square wave.Herein, will mainly with intensity according to The embodiment of the present invention is described for the optical signal of sine wave shape variation.
Illustratively, light emission instruction signal can be such signal, and the display screen of instruction mobile terminal generates intensity According to the optical signal of sine wave shape variation as irradiation current light between the maximum brightness and minimum brightness of display screen.
In step S230, selection collected, mesh during light emitting device generates irradiation current light from video flowing There are at least two video frames in the video frame and remained stationary in mark object.
It should be understood that " remaining stationary " as described herein refers to the relatively motionless (meaning in the position of target object in the video frame Target object it is substantially motionless relative to the physical location of image collecting device).For example, if target object is in several continuous views Position in frequency frame, which has still floating range of floating, within the allowable range, then can determine that target object is acquiring these continuously It is to maintain in the period of video frame motionless.
In one example, start to detect while image collecting device starts and acquires video flowing whether to go out in video flowing Whether existing target object and target object remain stationary.What whether detected target object and determining target object remained stationary Mode will be described below, and not repeat herein.When detecting target object from video flowing and determine target object default When remaining stationary in the period, light emission instruction signal is exported, irradiation current light is generated with indication lighting arrangement to irradiate target pair As.It is alternatively possible to start the video frame in accumulative video flowing, until obtaining when light emitting device starts to generate irradiation current light Obtain (such as 120) video frame of preset number.Accumulative video frame can be considered as to target object to occur wherein and keep Motionless video frame, i.e., by accumulative video frame directly as step S230 at least two video frame obtained.Optionally, also It can continue to test whether target object occurs and remain stationary during light emitting device generates irradiation current light, and from Selected in video flowing collected during light emitting device generates irradiation current light wherein target object occur and keep (such as 120) successive video frames of motionless preset number.Using selected video frame as at least two video frames.
In another example, image collecting device starts to acquire the operation of video flowing and light emitting device starts to generate irradiation The execution sequence of the operation of light can arbitrarily be set, and only need the accurate recording respective execution time.That is, can nothing The step of needing regulation output light emission instruction signal to generate irradiation light with indication lighting arrangement, needs detecting mesh from video flowing Mark object and target object just execute under conditions of remaining stationary.It is generated in image acquisition device video flowing and light emitting device During irradiation light carries out simultaneously, whether detected target object occurs and remains stationary from the video flowing of acquisition, if It detects target object occur in (such as 120) successive video frames of preset number and it is remained stationary, then can will examine The successive video frames of the preset number measured are as at least two video frames obtained in step S230.
In step S240, according to the intensity of irradiation current light within the period for acquiring at least two video frames and at least The pixel value of target object region determines the intensity for the environment light being irradiated on target object in two video frames.
Target object region can be obtained using the detection of any suitable object detecting method.For example, it is assumed that target Object is face, can use method for detecting human face and detects face in each video frame, can be in the presence of face Obtain the face frame for indicating face position.Region inside face frame is target object region.
The intensity and its Strength Changes situation of irradiation current light are known.It is appreciated that in the photograph of same irradiation light It penetrates down, the intensity for being irradiated to the environment light on target object is bigger, and influence of the irradiation light to target object can be smaller, so that in institute The variable quantity that the pixel value of target object region changes with irradiation light in the video frame of acquisition is also smaller.Therefore, it is acquiring The Strength Changes situation of irradiation light and the target object institute at least two video frames in the period of at least two video frames Exist between the pixel value situation of change in region and the intensity for the environment light being irradiated on target object and contact, based on such Connection can determine the intensity of environment light.
The execution sequence of each step can be set as needed in environment light detection method 200 shown in Fig. 2, not limit to In sequence shown in Fig. 2.For example, step S210 and step S220 can be executed in the entire implementation procedure of method 200, step S210 can start to execute and start to execute before, after or at the same time in step S220.
Environment light detection method according to an embodiment of the present invention, using light emitting device (display screen of such as mobile terminal or Flash lamp) irradiation light of Strength Changes is generated to irradiate object, corresponding object area is detected in collected video flowing Pixel value variation, the intensity for the environment light being irradiated on object is determined according to the pixel value of the intensity of irradiation light and object area. The region of above-mentioned environment light detection method is with strong points, can accurately detect the intensity for the environment light being irradiated on object, from And can solve existing optical sensor can only measure in visual field environment on object caused by the mean intensity of whole light The problem of light detection inaccuracy.
Illustratively, environment light detection method according to an embodiment of the present invention can be in setting with memory and processor It is realized in standby, device or system.
Environment light detection method according to an embodiment of the present invention can be deployed at Image Acquisition end, for example, can dispose It at the Image Acquisition end of the financial systems such as bank management system or is deployed in smart phone, tablet computer etc. and moves At dynamic terminal.Alternatively, environment light detection method according to an embodiment of the present invention can also be deployed in being distributed server end (or Cloud) and client at.For example, can acquire video flowing in client and irradiate target object with irradiation light, client will Collected video stream gives server end (or cloud), exports light emission instruction signal to client by server end (or cloud) End, and according to the intensity of video flow detection environment light collected.
Illustratively, step S220 may include:When detected from video flowing target object and determine target object When remaining stationary within a preset period of time, light emission instruction signal is exported.
It is hereinbefore described and just exports hair in the case where detecting target object from video flowing and it is remained stationary The embodiment of light indication signal, this will not be repeated here.This mode user experience is relatively good.For example, user can be prompted mesh Mark object is placed in suitable position and remains stationary, when target object occurs in the video frame and remains stationary, light emitting device Just start to generate irradiation light, such user can understand detection progress in time, and can carry out with environment light sensing device more Interaction, therefore user experience is relatively good.In addition, the position due to target object in a short time generally changes less, sending out Electro-optical device start generate irradiation light after a period of time in target object be substantially also to remain stationary, in this way can relatively probably Rate obtains the video frame met the requirements, to more quickly determine the intensity of environment light, is conducive to reduce environment light sensing device Workload.
According to embodiments of the present invention, step S240 may comprise steps of.
In step S241, the distance between target object and environment light sensing device d are determined.
In step S242, for each video frame at least two video frames, to where target object in the video frame The pixel value of all pixels in region is averaging, to obtain mean pixel value sequence relevant at least two video frames.
In step S243, mean pixel value sequence and the irradiation current within the period for acquiring at least two video frames are calculated Cross correlation value s between the intensity of light.
In step S244, the ratio of the sum of all average pixel values in cross correlation value s and mean pixel value sequence is calculated L。
In step S245, the intensity I of environment light is calculated according to the following formulae
Wherein, c is constant relevant to environment light sensing device.
For example, can be counted according to the following formula in the case where the intensity of irradiation current light changes according to sine wave Calculate mean pixel value sequence and in the cross-correlation in the period for acquiring at least two video frames between the intensity of irradiation current light Value s:
Wherein, i indicates i-th of video frame, and I (i) indicates that average pixel value relevant to i-th of video frame, n indicate at least The number of two video frames, A indicate the maximum intensity of irradiation current light, and T indicates the Strength Changes period of irradiation current light.
The ratio of the sum of all average pixel values in cross correlation value s and mean pixel value sequence is calculated according to the following formula Example:
Then, the calculated result of formula (3) can be substituted into formula (1), the intensity I for obtaining environment light can be calculatede
A in formula (2) is unknown phase, can be determined by optimizing.Formula (2) is meant that, determines that a is one A suitable value, so thatMaximum value is obtained, cross correlation value s is equal to the maximum value.By Irradiation light is generated in light emitting device and is irradiated on target object with irradiation light poor there are the regular hour, therefore passes through optimization side Method calculates phase a, can make up the time difference, obtain between the intensity of irradiation light and the pixel value of target object region Most it is closely connected.
Cross correlation value s can be understood as exercising result of the irradiation current light on target object, i.e. irradiation current light pair The contribution of the pixel value of target object region.In the continually changing situation of intensity of irradiation current light, cross correlation value s can To reflect degree that the pixel value of target object region changes with the Strength Changes of irradiation current light.
According to formula (3), by the sum of cross correlation value s and all average pixel valuesIt compares.For theoretically, mutually Correlation s is than the sum of all average pixel valuesIt is much smaller, it can be by the sum of all average pixel valuesDepending on For exercising result of the environment light on target object, i.e. contribution of the environment light to the pixel value of target object region.Therefore, The sum of cross correlation value s and all average pixel valuesRatio L can be understood as the exercising result and environment of irradiation light The ratio between exercising result of light.
As described above, the intensity for being irradiated to the environment light on target object is bigger, influence of the irradiation light to target object Can be smaller, so that the variable quantity that the pixel value of target object region changes with irradiation light in video frame collected is also got over It is small.Therefore, the intensity for being irradiated to the environment light on target object is bigger, and ratio L will be smaller, relationship between the two such as formula (1) shown in.
Constant c is data relevant to environment light sensing device.The constant c of varying environment light sensing device may be different , constant c can the type information based on environment light sensing device searched in pre-fabricated facility information table.
According to embodiments of the present invention, in the intensity I for calculating environment lighteBefore, environment light detection method 200 can also wrap It includes:Judge whether L is greater than preset ratio threshold value, if L is greater than preset ratio threshold value, changes light emission instruction signal, so that Light emission instruction signal indication lighting arrangement generates optical signal that its intensity changes in new strength range as irradiation current light simultaneously Return step S230, wherein the maximum value of new strength range is less than the maximum value of initial strength range.
Factors, the L such as nonlinear response, automatic exposure, overexposure due to image collecting device (camera) are excessive (such as Environment light is excessively weak or the distance between target object and environment light sensing device are excessively close) when environment light testing result may not It is enough accurate.
When finding L excessive (being greater than preset ratio threshold value), the intensity for weakening irradiation current light can choose (such as by it Equal proportion is reduced to original 1/b), and select to generate the irradiation current light of remitted its fury in light emitting device from video flowing again During collected, target object occur wherein and at least two video frames that remain stationary, and based on reselecting At least two video frames and the irradiation current light of remitted its fury recalculate L.It, can be after if L is still excessive at this time The continuous intensity for weakening irradiation current light.Weaken the intensity of irradiation current light and can repeat the step of recalculating L until L It falls into the range predefined and (is less than or equal to preset ratio threshold value).
Preset ratio threshold value can be set as needed, and the present invention limits not to this.
Intensity by weakening irradiation current light makes L be unlikely to excessive mode, can obtain more accurate environment light Testing result.
According to embodiments of the present invention, determine that the distance between target object and environment light sensing device d include:From video flowing Middle selection is acquired when target object occurs and its position is remained stationary relative to the position at least two video frames Any video frame;And the size estimation target pair according to the fixed reference feature part of target object in selected video frame As with the distance between environment light sensing device d.
When as at least two video frame needed for the intensity that acquisition calculates environment light, target object is needed to keep not It is dynamic, therefore change in location of the target object in different video frame is not too large, can choose appointing at least two video frames One video frame estimates the distance between target object and environment light sensing device.Certainly, although having selected at least two videos Frame, but may in video frame before or after at least two video frames target object position relative at least two Be also for position in video frame remain stationary, therefore can also from meet requirement that target object remains stationary, Any video frame is selected to be used to estimate target object and environment light detection in video frame before or after at least two video frames The distance between equipment.
Illustratively, target object can be estimated according to the size of the fixed reference feature part of target object in the video frame The distance between environment light sensing device.For example, it is assumed that target object is face, due to two in practical face spacing one As be 6 centimetres, therefore can be estimated according to two in the video frame spacing between face and environment light sensing device away from From.
The mode that an above-mentioned optional video frame calculates distance realizes that simply calculation amount is small, and detection efficiency is higher.
According to embodiments of the present invention, determine that the distance between target object and environment light sensing device d include:From video flowing Middle selection is acquired when target object occurs and its position is remained stationary relative to the position at least two video frames More than one video frame;For each video frame in selected more than one video frame, according to the mesh in the video frame The distance between size estimation target object and the image collecting device of the fixed reference feature part of object are marked, to obtain and the video The corresponding distance value of frame;To more than one distance value is averaging correspondingly with selected more than one video frame;And Determine that the average value obtained is the distance between target object and environment light sensing device d.
Illustratively, can also estimate for each video frame between a target object and environment light sensing device away from From to all distance values averagings obtained, using average value as the distance between target object and environment light sensing device. This mode, which can calculate, obtains more accurate distance value, to help to improve the accuracy in detection of environment light.
According to embodiments of the present invention, before step S230, environment light detection method 200 can also include:For video Each video frame in stream, the detected target object from the video frame, to judge whether target object occurs, and in target object Position of the target object in the video frame is determined in the case where appearance;And occurred according to target object in each target object Position in video frame wherein determines the period that target object remains stationary.
Each video frame can be detected using any suitable object detecting method, to judge to be in the video frame It is no that there are target objects.For example, can use people that is any existing or being likely to occur in the future if target object is face Face detecting method detects each video frame, to judge in the video frame with the presence or absence of face.There is people in the video frame In the case where face, face position is determined.Face position can generally be indicated with face frame.Further, it is also possible to utilize Face key independent positioning method that is any existing or being likely to occur in the future carries out face key point location to each video frame, with Determine the coordinate of face key point.The coordinate of face key point can also indicate face position.
Assuming that needing the target object detected is face, if detecting the face in multiple successive video frames and having calculated The face frame in each video frame is obtained, then target object can easily be determined according to the face frame in each video frame Whether remained stationary within the period for acquiring multiple successive video frames.
According to embodiments of the present invention, the position in video frame therein is appeared in each target object according to target object The period for determining that target object remains stationary may include:If target object is in the successive video frames of the first preset number Occur and the variance of the position in the successive video frames of the first preset number is less than default variance threshold values, it is determined that acquisition the It periods of the successive video frames of one preset number and/or acquires second pre- after the successive video frames of the first preset number If the period of the successive video frames of number is the period that target object remains stationary.
It is alternatively possible to set the number that determining target object remains stationary required successive video frames.For example, can set If the variance of fixed position of the target object in 100 (i.e. the first preset number) successive video frames is less than default variance threshold It is motionless can then to determine that target object is to maintain within the period for acquiring 100 successive video frames for value.Further, since User be generally possible to be maintained for a long time target object it is motionless, therefore to the portion acquired after this 100 successive video frames Divide for successive video frames (such as 30 successive video frames), target object can be considered as and still maintain motionless, therefore, can incite somebody to action Acquire the time of (such as 30) successive video frames of the second preset number after the successive video frames of the first preset number Section is also considered as the period that target object remains stationary.
Similarly, key point coordinate of the target object in successive video frames can also be used to judge the position of target object Situation of change, to judge whether target object remains stationary.
Default variance threshold values can be set as needed, and the present invention limits not to this.
Judge that the mode that target object remains stationary has comprehensively considered target object multiple continuous according to the present embodiment Position in video frame, therefore position judging result can be relatively more accurate.
According to embodiments of the present invention, the position in video frame therein is appeared in each target object according to target object The period for determining that target object remains stationary may include:For the every two successive video frames in video flowing, in real time will Position of the target object in two successive video frames compares, if target object is in two successive video frames The difference of position is less than preset difference value threshold value, it is determined that target object is kept not within the period for acquiring two successive video frames It is dynamic.
In addition to determining the period that target object remains stationary by multiple successive video frames, it can also carry out in real time The comparison two-by-two of video frame, i.e. one new video frame of every acquisition, so that it may the video frame and previous video frame are compared, Compare position of the target object in the two video frames whether change and change it is much.If target object is continuous at two Change in location in video frame less (being not above preset difference value threshold value), then can be considered as target object and acquire the two companies It is remained stationary in the period of continuous video frame.If currently acquiring 10 video frames altogether, carries out after comparing two-by-two, find target Object remains stationary, it may be considered that target object acquire this 10 video frames period be to maintain it is motionless.
Preset difference value threshold value can be set as needed, and the present invention limits not to this.
Judge that the mode that target object remains stationary is a kind of real-time judge mode, practical value according to the present embodiment It is higher.
According to embodiments of the present invention, step S230 may include:Step S231:Record target object is kept wherein in real time Motionless successive video frames;Step S232:If the number for the successive video frames that record in real time, target object remains stationary reaches To third preset number, then select recorded successive video frames as at least two video frames;And step S233:If Before the number for the successive video frames that record in real time, target object remains stationary reaches third preset number, target pair is determined As moving, then return step S231.
During constantly obtaining the video frame in video flowing, real-time detection and record target object are kept not wherein Dynamic successive video frames.For example, it is assumed that third preset number is 150, if company record in real time, that target object remains stationary The number of continuous video frame reaches 150, then can be used for using recorded 150 successive video frames as at least two video frames Calculate the intensity of environment light.If target object moves before the number of the successive video frames recorded in real time reaches 150 It is dynamic, then subsequent video frame can be detected again, the successive video frames that new record target object of laying equal stress on remains stationary.
During entire environment light detection, can constantly real-time detection target object whether remain stationary, once hair Existing target object moves, and can restart to record new successive video frames.
According to embodiments of the present invention, before step S230, environment light detection method 200 can also include:Output prompt Information, for prompting for target object to be placed in a predetermined position and remaining stationary target object.
For example, mobile terminal can export prompt information, target object is placed in a predetermined position with prompt and makes target pair As remaining stationary in the given time.For example, it is assumed that target object is the face of user, then mobile terminal can be in its display screen It is upper to show the text for such as " woulding you please towards camera and remaining stationary 10 seconds ".Optionally, mobile terminal can pass through text, figure The forms such as picture, voice export prompt information.Prompt information is exported, can assist user that target object is placed in suitable position, Be conducive to the detection for realizing environment light as early as possible.
A variety of aspects can be applied to using the intensity of the detected environment light of environment light detection method 200, for example, its It can be applied to picture quality judgement aspect.
According to a further aspect of the invention, a kind of image quality judging method is provided.The image quality judging method includes:Extremely It is few to judge that image collecting device is collected according to using the intensity of the detected environment light of above-mentioned environment light detection method 200 The quality of object images comprising target object.Object images as described herein can be collected any for target object Image, the video frame in including but not limited to above-mentioned video flowing.
Illustratively, judge according at least to using the intensity of the detected environment light of above-mentioned environment light detection method 200 The quality of the image collecting device object images collected comprising target object may include:According at least to the intensity of environment light Calculate the quality score for being used to indicate the quality of object images.It is constant in other Image Acquisition conditions of image collecting device In the case where, the intensity of environment light is stronger, and quality score is higher.
Illustratively, the Strength co-mputation according at least to environment light is used to indicate the quality score of the quality of object images May include:The intensity of environment light is inputted into classifier, to obtain the quality score for the quality for being used to indicate object images. It is alternatively possible to the intensity of environment light and object images be inputted classifier together, to obtain the quality score.Classifier can Be in advance it is trained, for example, can be made with object images known to the intensity of a large amount of quality scores and corresponding environment light Classifier is trained for sample.It will be appreciated by those skilled in the art that the training and application process of such classifier, herein not It repeats.
Intensity using the detected environment light of environment light detection method 200 can be further used for auxiliary judgment image Fuzzy reason.Image is fuzzy to be caused by many reasons, for example, shutter speed is slow, focusing accuracy is low, sensor noise Than low, subject occurs mobile etc. in shooting process.In general, in the biggish situation of intensity of environment light, shutter Time is shorter, conversely, aperture time is longer in the lesser situation of intensity of environment light.Therefore, if it find that some Object images are relatively fuzzyyer (for example, fog-level is more than default Fuzzy Threshold), and are detected using environment light detection method 200 The intensity of the environment light of acquisition is bigger (for example, the intensity of environment light is greater than the first preset strength threshold value), it may be considered that should Object images it is fuzzy not be as shutter speed it is slow caused by, it may be considered that other images obscure reason., whereas if discovery Some object images is relatively fuzzyyer (for example, fog-level is more than default Fuzzy Threshold), and uses environment light detection method 200 The intensity of detected environment light is smaller (for example, the intensity of environment light is less than second preset strength threshold value), then can recognize Fuzzy for the object images has certain relationship with shutter speed slowly.
According to a further aspect of the invention, a kind of ambient light detection device is provided.Fig. 3 shows an implementation according to the present invention The schematic block diagram of the ambient light detection device 300 of example.
As shown in figure 3, ambient light detection device 300 according to an embodiment of the present invention includes that video flowing obtains module 310, letter Number output module 320, video frame selecting module 330 and environment light determining module 340.The modules can execute above respectively Each step/function of the environment light detection method of middle combination Fig. 2 description.Below only to each of the ambient light detection device 300 The major function of component is described, and omits the detail content having been described above.
It is collected comprising target that video flowing obtains image collecting device of the module 310 for obtaining environment light sensing device The video flowing of object.Video flowing obtains module 310 can the operation storage dress of processor 102 in electronic equipment as shown in Figure 1 The program instruction that stores in 104 is set to realize.
Signal output module 320 is for exporting light emission instruction signal, wherein light emission instruction signal is used to indicate the inspection of environment light The light emitting device of measurement equipment generates optical signal that its intensity changes within the scope of initial strength as irradiation current light, irradiation current Light is for irradiating target object.Signal output module 320 can the operation of processor 102 in electronic equipment as shown in Figure 1 deposit The program instruction that stores in storage device 104 is realized.
Video frame selecting module 330 is used to select to generate irradiation current light during institute in light emitting device from video flowing There are at least two video frames in the video frame and remained stationary in acquire, target object.Video frame selecting module 330 can be with The program instruction that stores in 102 Running storage device 104 of processor in electronic equipment as shown in Figure 1 is realized.
Environment light determining module 340 be used for according to acquire at least two video frames period in irradiation current light it is strong The pixel value of target object region determines the environment light being irradiated on target object in degree and at least two video frames Intensity.Environment light determining module 340 can deposit in 102 Running storage device 104 of processor in electronic equipment as shown in Figure 1 The program instruction of storage is realized.
According to embodiments of the present invention, signal output module 320 includes:Output sub-module is detected from video flowing for working as When to target object and determining that target object remains stationary within a preset period of time, light emission instruction signal is exported.
According to embodiments of the present invention, environment light determining module 340 includes:Distance determines submodule, for determining target pair As with the distance between environment light sensing device d;Average submodule, for for each video at least two video frames Frame is averaging the pixel value of all pixels in target object region in the video frame, to obtain and at least two views The relevant mean pixel value sequence of frequency frame;Cross correlation value computational submodule, for calculating mean pixel value sequence and acquiring extremely Cross correlation value s in the period of few two video frames between the intensity of irradiation current light;Ratio computational submodule, for calculating The ratio L of the sum of all average pixel values in cross correlation value s and mean pixel value sequence;Environment photometry operator module, is used for The intensity I of environment light is calculated according to the following formulae
Wherein, c is constant relevant to environment light sensing device.
According to embodiments of the present invention, ambient light detection device 300 further includes that ratio judgment module (not shown) and signal change Become module (not shown), ratio judgment module is used to calculate the intensity I of environment light in environment photometry operator moduleeBefore, judge L Whether preset ratio threshold value is greater than, if L is greater than preset ratio threshold value, enabling signal changes module;Signal changes module and uses In changing light emission instruction signal, change in new strength range so that light emission instruction signal indication lighting arrangement generates its intensity Optical signal as irradiation current light and start video frame selecting module 330, wherein the maximum value of new strength range is less than initial The maximum value of strength range.
According to embodiments of the present invention, distance determines that submodule includes:First video frame selecting unit, for from video flowing Selection is collected when target object occurs and its position is remained stationary relative to the position at least two video frames Any video frame;And first distance estimation unit, for the fixed reference feature according to the target object in selected video frame The distance between partial size estimation target object and environment light sensing device d.
According to embodiments of the present invention, distance determines that submodule includes:Second video frame selecting unit, for from video flowing Selection is collected when target object occurs and its position is remained stationary relative to the position at least two video frames More than one video frame;First distance estimation unit, for for each video frame in selected more than one video frame, According between the size estimation target object and image collecting device of the fixed reference feature part of target object in the video frame Distance, to obtain distance value corresponding with the video frame;Range averaging unit, for selected more than one video frame One-to-one more than one distance value is averaging;And distance determining unit, for determining that the average value obtained is target pair As with the distance between environment light sensing device d.
According to embodiments of the present invention, ambient light detection device 300 further includes:Obj ect detection module (not shown) is used for Video frame selecting module 330 selects collected, target during light emitting device generates irradiation current light from video flowing Object occurs wherein and before at least two video frames that remain stationary, for each video frame in video flowing, from the view Detected target object in frequency frame to judge whether target object occurs, and determines target pair in the case where target object occurs As the position in the video frame;And dead time determining module (not shown), it is used for according to target object in each target The position that object appears in video frame therein determines the period that target object remains stationary.
According to embodiments of the present invention, dead time determining module includes:Submodule is determined at the first time, if being used for target Object occurs in the successive video frames of the first preset number and position in the successive video frames of the first preset number Variance is less than default variance threshold values, it is determined that periods of the successive video frames of the first preset number of acquisition and/or acquisition are the The period of the successive video frames of the second preset number after the successive video frames of one preset number is that target object is kept not The dynamic period.
According to embodiments of the present invention, dead time determining module includes:Second time determined submodule, for for video Every two successive video frames in stream in real time compare position of the target object in two successive video frames, such as The difference of position of the fruit target object in two successive video frames is less than preset difference value threshold value, it is determined that target object is acquiring It is remained stationary in the period of two successive video frames.
According to embodiments of the present invention, video frame selecting module 330 includes:Record sub module, for recording target pair in real time As in the successive video frames wherein remained stationary;First implementation sub-module, if kept not for record in real time, target object The number of dynamic successive video frames reaches third preset number, then selects recorded successive video frames as at least two videos Frame;And second implementation sub-module, if the number of the successive video frames for being remained stationary in record in real time, target object Before reaching third preset number, determines that target object moves, then start record sub module.
According to embodiments of the present invention, ambient light detection device 300 further includes:Message output module (not shown) is used for Video frame selecting module 330 selects collected, target during light emitting device generates irradiation current light from video flowing Object occurs prompt information being exported, for prompting target object wherein and before at least two video frames that remain stationary It is placed in a predetermined position and remains stationary target object.
According to embodiments of the present invention, the intensity of irradiation current light is according to sine wave shape, triangle shape or square-wave form Variation.
According to embodiments of the present invention, light emitting device include and image collector setting in the same side flash lamp.
According to embodiments of the present invention, environment light sensing device is mobile terminal, and light emitting device includes and image collecting device Display screen positioned at the same side, display screen are changed by light and shade or generate irradiation current by the pattern of output light and shade variation Light.
According to a further aspect of the invention, a kind of picture quality judgment means are provided.Picture quality judgment means include:Quality Judgment module, for judging image according at least to using the intensity of the detected environment light of above-mentioned ambient light detection device 300 The quality of the acquisition device object images collected comprising target object.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
Fig. 4 shows the schematic block diagram of environment light sensing device 400 according to an embodiment of the invention.The inspection of environment light Measurement equipment 400 includes image collecting device 410, light emitting device 420, memory 430 and processor 440.
Image collecting device 410 is for acquiring video flowing.Image collecting device 410 is optional, environment light sensing device 400 can not include image collecting device 410.In such a case, it is possible to be used for ring using other image acquisition devices The video flowing of border light detection, and by the video stream of acquisition to environment light sensing device 400.
Light emitting device 420 is for generating optical signal to irradiate target object.Light emitting device 420 is also optional, environment light Detection device 400 can not include light emitting device 420.In such a case, it is possible to be set from environment light sensing device 400 to other Standby output light emission instruction signal indicates that the light emitting device in other equipment generates optical signal to irradiate target object.
The storage of memory 430 is for realizing the corresponding steps in environment light detection method according to an embodiment of the present invention Computer program instructions (i.e. program code).
The processor 440 is for running the computer program instructions stored in the memory 430, to execute according to this The corresponding steps of the environment light detection method of inventive embodiments, and for realizing environment light detection according to an embodiment of the present invention Video flowing in device 300 obtains module 310, signal output module 320, video frame selecting module 330 and environment light and determines mould Block 340.
In one embodiment, for executing following steps when computer program instructions are run by processor 440:Step S100:Obtain the image collecting device video flowing collected comprising target object of environment light sensing device;Step S200:It is defeated Light emission instruction signal out, wherein the light emitting device that light emission instruction signal is used to indicate environment light sensing device generates its intensity and exists The optical signal changed within the scope of initial strength is as irradiation current light, and irradiation current light is for irradiating target object;Step S300: Selection collected, target object during light emitting device generates irradiation current light occurs in the video frame from video flowing And at least two video frames remained stationary;And step S400:Work as according within the period for acquiring at least two video frames The pixel value determination of target object region is irradiated to target object in the intensity of front irradiation light and at least two video frames On environment light intensity.
In one embodiment, the step S200 packet of used execution when computer program instructions are run by processor 440 It includes:When detecting target object from video flowing and determining that target object remains stationary within a preset period of time, output hair Light indication signal.
In one embodiment, the step S400 packet of used execution when computer program instructions are run by processor 440 It includes:Determine the distance between target object and environment light sensing device d;For each video frame at least two video frames, The pixel value of all pixels in target object region in the video frame is averaging, to obtain and at least two video frames Relevant mean pixel value sequence;Mean pixel value sequence is calculated currently to shine within the period for acquiring at least two video frames Penetrate the cross correlation value s between the intensity of light;Calculate the sum of all average pixel values in cross correlation value s and mean pixel value sequence Ratio L;The intensity I of environment light is calculated according to the following formulae
Wherein, c is constant relevant to environment light sensing device.
In one embodiment, when computer program instructions are run by processor 440 used execution calculating environment The intensity I of lighteThe step of before, computer program instructions by processor 440 run when be also used to execute following steps:Judge L Whether it is greater than preset ratio threshold value, if L is greater than preset ratio threshold value, changes light emission instruction signal, so that the instruction that shines Signal designation light emitting device generates optical signal that its intensity changes in new strength range as irradiation current light and return step S300, wherein the maximum value of new strength range is less than the maximum value of initial strength range.
In one embodiment, used execution sets the goal pair really when computer program instructions are run by processor 440 As including with the step of the distance between environment light sensing device d:Selection is in target object appearance and its position from video flowing Set any video frame collected when remaining stationary relative to the position at least two video frames;And according to selected Video frame in target object fixed reference feature part size estimation target object and the distance between environment light sensing device d。
In one embodiment, used execution sets the goal pair really when computer program instructions are run by processor 440 As including with the step of the distance between environment light sensing device d:Selection is in target object appearance and its position from video flowing Set more than one video frame collected when remaining stationary relative to the position at least two video frames;For selected Each video frame in more than one video frame, according to the size estimation of the fixed reference feature part of target object in the video frame The distance between target object and image collecting device, to obtain distance value corresponding with the video frame;To with it is selected more In a video frame, more than one distance value is averaging correspondingly;And determine that the average value obtained is target object and ring The distance between border light sensing device d.
In one embodiment, when computer program instructions are run by processor 440 used execution step S300 Before, it is also used to execute following steps when computer program instructions are run by processor 440:For each video in video flowing Frame, the detected target object from the video frame, to judge whether target object occurs, and really in the case where target object occurs Set the goal position of the object in the video frame;And video frame therein is appeared in each target object according to target object In position determine the period that target object remains stationary.
In one embodiment, used execution according to target pair when computer program instructions are run by processor 440 The step of determining the period that target object remains stationary as the position appeared in video frame therein in each target object Including:If target object occurs in the successive video frames of the first preset number and in the continuous videos of the first preset number The variance of position in frame is less than default variance threshold values, it is determined that the period of the successive video frames of the first preset number of acquisition And/or the period of the successive video frames of second preset number of the acquisition after the successive video frames of the first preset number is mesh The period that mark object remains stationary.
In one embodiment, used execution according to target pair when computer program instructions are run by processor 440 The step of determining the period that target object remains stationary as the position appeared in video frame therein in each target object Including:For the every two successive video frames in video flowing, the position by target object in two successive video frames in real time It sets and compares, if the difference of position of the target object in two successive video frames is less than preset difference value threshold value, it is determined that Target object remains stationary within the period for acquiring two successive video frames.
In one embodiment, the step S300 packet of used execution when computer program instructions are run by processor 440 It includes:Step S310:Record target object is in the successive video frames wherein remained stationary in real time;Step S320:If record in real time , the numbers of the successive video frames that target object remains stationary reach third preset number, then select recorded continuous videos Frame is as at least two video frames;And step S330:If in the continuous videos that record in real time, target object remains stationary Before the number of frame reaches third preset number, determine that target object moves, then return step S310.
In one embodiment, when computer program instructions are run by processor 440 used execution step S300 Before, it is also used to execute following steps when computer program instructions are run by processor 440:Prompt information is exported, for prompting Target object is placed in a predetermined position and remains stationary target object.
In one embodiment, the intensity of irradiation current light becomes according to sine wave shape, triangle shape or square-wave form Change.
In one embodiment, light emitting device include and image collector setting in the same side flash lamp.
In one embodiment, environment light sensing device is mobile terminal, and light emitting device includes and image collector set Display screen in the same side, display screen are changed by light and shade or generate irradiation current by the pattern of output light and shade variation Light.
According to a further aspect of the invention, a kind of picture quality is provided and judges equipment, including processor and memory.It is described to deposit Reservoir storage refers to for realizing the computer program of the corresponding steps in image quality judging method according to an embodiment of the present invention Enable (i.e. program code).The processor is for running the computer program instructions stored in the memory, to execute basis The corresponding steps of the image quality judging method of the embodiment of the present invention, and for realizing image matter according to an embodiment of the present invention Measure the Quality estimation module in judgment means.
In one embodiment, for executing following steps when computer program instructions are run by processor:According at least to Judge that image collecting device is collected comprising target using the intensity of the detected environment light of above-mentioned environment light detection method The quality of the object images of object.
Illustratively, picture quality judges that equipment may include environment light sensing device 400 described above, picture quality Judge equipment processor and memory be respectively environment light sensing device 400 processor 440 and memory 430.It is exemplary Ground, picture quality judge that equipment can be another equipment independently of environment light sensing device 400.
In addition, according to embodiments of the present invention, additionally providing a kind of storage medium, storing program on said storage Instruction, when described program instruction is run by computer or processor for executing the environment light detection method of the embodiment of the present invention Corresponding steps, and for realizing the corresponding module in ambient light detection device according to an embodiment of the present invention.The storage Medium for example may include the storage card of smart phone, the storage unit of tablet computer, the hard disk of personal computer, read-only storage Device (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), portable compact disc read-only memory (CD-ROM), USB storage Any combination of device or above-mentioned storage medium.
In one embodiment, described program instruction can make computer or place when being run by computer or processor Reason device realizes each functional module of ambient light detection device according to an embodiment of the present invention, and/or can execute basis The environment light detection method of the embodiment of the present invention.
In one embodiment, program instruction is used to execute following steps at runtime:Step S100:Obtain the inspection of environment light The image collecting device of the measurement equipment video flowing collected comprising target object;Step S200:Light emission instruction signal is exported, In, the light emitting device that light emission instruction signal is used to indicate environment light sensing device generates its intensity to be changed within the scope of initial strength Optical signal as irradiation current light, irradiation current light is for irradiating target object;Step S300:It selects sending out from video flowing Collected, target object occurs in the video frame and remain stationary at least two during electro-optical device generates irradiation current light A video frame;And step S400:According to acquire at least two video frames period in irradiation current light intensity and The pixel value of target object region determines the intensity for the environment light being irradiated on target object at least two video frames.
In one embodiment, the used step S200 executed includes program instruction at runtime:When from video flowing When detecting target object and determining that target object remains stationary within a preset period of time, light emission instruction signal is exported.
In one embodiment, the used step S400 executed includes program instruction at runtime:Determine target object The distance between environment light sensing device d;For each video frame at least two video frames, to target in the video frame The pixel value of all pixels in object region is averaging, to obtain average pixel value relevant at least two video frames Sequence;Calculate mean pixel value sequence and acquire at least two video frames period in irradiation current light intensity between Cross correlation value s;Calculate the ratio L of the sum of all average pixel values in cross correlation value s and mean pixel value sequence;According to following The intensity I of formula calculating environment lighte
Wherein, c is constant relevant to environment light sensing device.
In one embodiment, in the intensity I of the program instruction used calculating environment light executed at runtimeeThe step of Before, program instruction is also used to execute following steps at runtime:Judge whether L is greater than preset ratio threshold value, if L is greater than in advance If proportion threshold value then changes light emission instruction signal, so that light emission instruction signal indication lighting arrangement generates its intensity new strong The optical signal changed in range is spent as irradiation current light and return step S300, wherein the maximum value of new strength range is less than The maximum value of initial strength range.
In one embodiment, the used object that sets the goal really that executes is set program instruction with environment light detection at runtime The step of the distance between standby d includes:Selection occurs in target object from video flowing and its position is relative at least two Position in a video frame any video frame collected when remaining stationary;And according to the target pair in selected video frame The distance between the size estimation target object of the fixed reference feature part of elephant and environment light sensing device d.
In one embodiment, the used object that sets the goal really that executes is set program instruction with environment light detection at runtime The step of the distance between standby d includes:Selection occurs in target object from video flowing and its position is relative at least two Position in a video frame more than one video frame collected when remaining stationary;For in selected more than one video frame Each video frame, adopted according to the size estimation target object of the fixed reference feature part of target object in the video frame with image The distance between acquisition means, to obtain distance value corresponding with the video frame;To with selected more than one video frame one by one Corresponding more than one distance value is averaging;And determine the average value obtained between target object and environment light sensing device Distance d.
In one embodiment, before the program instruction at runtime used step S300 executed, program instruction exists It is also used to execute following steps when operation:For each video frame in video flowing, the detected target object from the video frame, with Judge whether target object occurs, and determines position of the target object in the video frame in the case where target object occurs; And the position in video frame therein is appeared in each target object according to target object and determines that target object remains stationary Period.
In one embodiment, program instruction at runtime it is used execute according to target object in each target object Appearing in the step of position in video frame therein determines the period that target object remains stationary includes:If target object The variance of appearance and the position in the successive video frames of the first preset number in the successive video frames of the first preset number Less than default variance threshold values, it is determined that the period of the successive video frames of the first preset number of acquisition and/or acquisition are pre- first If the period of the successive video frames of the second preset number after the successive video frames of number is what target object remained stationary Period.
In one embodiment, program instruction at runtime it is used execute according to target object in each target object Appearing in the step of position in video frame therein determines the period that target object remains stationary includes:For in video flowing Every two successive video frames, position of the target object in two successive video frames is compared in real time, if mesh The difference for marking position of the object in two successive video frames is less than preset difference value threshold value, it is determined that target object acquire this two It is remained stationary in the period of a successive video frames.
In one embodiment, the used step S300 executed includes program instruction at runtime:Step S310:In real time Target object is recorded in the successive video frames wherein remained stationary;Step S320:If record in real time, target object is kept not The number of dynamic successive video frames reaches third preset number, then selects recorded successive video frames as at least two videos Frame;And step S330:If it is pre- to reach third in the number for the successive video frames that record in real time, target object remains stationary If before number, determining that target object moves, then return step S310.
In one embodiment, before the program instruction at runtime used step S300 executed, program instruction exists It is also used to execute following steps when operation:Prompt information is exported, for prompting for target object to be placed in a predetermined position and making target Object remains stationary.
In one embodiment, the intensity of irradiation current light becomes according to sine wave shape, triangle shape or square-wave form Change.
In one embodiment, light emitting device include and image collector setting in the same side flash lamp.
In one embodiment, environment light sensing device is mobile terminal, and light emitting device includes and image collector set Display screen in the same side, display screen are changed by light and shade or generate irradiation current by the pattern of output light and shade variation Light.
According to a further aspect of the invention, a kind of storage medium is provided, is transported in described program instruction by computer or processor For executing the corresponding steps of the image quality judging method of the embodiment of the present invention when row, and for realizing real according to the present invention Apply the corresponding module in the picture quality judgment means of example.The storage medium for example may include smart phone storage card, The storage unit of tablet computer, the hard disk of personal computer, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), portable compact disc read-only memory (CD-ROM), any combination of USB storage or above-mentioned storage medium.
In one embodiment, described program instruction can make computer or place when being run by computer or processor Reason device realizes each functional module of picture quality judgment means according to an embodiment of the present invention, and/or can execute root According to the image quality judging method of the embodiment of the present invention.
In one embodiment, described program instruction is at runtime for executing following steps:According at least to using above-mentioned The intensity of the detected environment light of environment light detection method 200 judges that image collecting device is collected comprising target object The quality of object images.
Each module in environment light sensing device according to an embodiment of the present invention can be by according to an embodiment of the present invention The processor computer program instructions that store in memory of operation of the electronic equipment of implementation environment light detection realize, or The computer instruction that can be stored in the computer readable storage medium of computer program product according to an embodiment of the present invention Realization when being run by computer.
Environment light detection method, device and equipment according to an embodiment of the present invention and image quality judging method, device and Equipment and storage medium generate the irradiation light of Strength Changes using light emitting device to irradiate object, in collected video flowing The pixel value variation for detecting corresponding object area is irradiated to object according to the determination of the pixel value of the intensity of irradiation light and object area The intensity of environment light on body.The region of environment light detection method according to an embodiment of the present invention is with strong points, can be accurately The intensity for the environment light being irradiated on object is detected, can only be measured in visual field all so as to solve existing optical sensor The problem of environment light detection inaccuracy on object caused by the mean intensity of light.
Although describing example embodiment by reference to attached drawing here, it should be understood that above example embodiment are only exemplary , and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can carry out various changes wherein And modification, it is made without departing from the scope of the present invention and spiritual.All such changes and modifications are intended to be included in appended claims Within required the scope of the present invention.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another equipment is closed or is desirably integrated into, or some features can be ignored or not executed.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, To in the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure, Or in descriptions thereof.However, the method for the invention should not be construed to reflect following intention:It is i.e. claimed The present invention claims features more more than feature expressly recited in each claim.More precisely, such as corresponding power As sharp claim reflects, inventive point is that the spy of all features less than some disclosed single embodiment can be used Sign is to solve corresponding technical problem.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in this specific Embodiment, wherein each, the claims themselves are regarded as separate embodiments of the invention.
It will be understood to those skilled in the art that any combination pair can be used other than mutually exclusive between feature All features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed any method Or all process or units of equipment are combined.Unless expressly stated otherwise, this specification (is wanted including adjoint right Ask, make a summary and attached drawing) disclosed in each feature can be replaced with an alternative feature that provides the same, equivalent, or similar purpose.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize ambient light detection device and/or figure according to an embodiment of the present invention The some or all functions of some modules in image quality amount judgment means.The present invention is also implemented as executing institute here Some or all program of device (for example, computer program and computer program product) of the method for description.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The above description is merely a specific embodiment or to the explanation of specific embodiment, protection of the invention Range is not limited thereto, and anyone skilled in the art in the technical scope disclosed by the present invention, can be easily Expect change or replacement, should be covered by the protection scope of the present invention.Protection scope of the present invention should be with claim Subject to protection scope.

Claims (21)

1. a kind of environment light detection method, including:
Step S100:Obtain the image collecting device video flowing collected comprising target object of environment light sensing device;
Step S200:Export light emission instruction signal, wherein the light emission instruction signal is used to indicate the environment light sensing device Light emitting device generate optical signal that its intensity changes within the scope of initial strength as irradiation current light, the irradiation current light For irradiating the target object;
Step S300:Selection is acquired during the light emitting device generates the irradiation current light from the video flowing , the target object there are at least two video frames in the video frame and remained stationary;And
Step S400:According to the intensity of the irradiation current light and institute within the period for acquiring at least two video frame The pixel value for stating target object region described at least two video frames determines the environment being irradiated on the target object The intensity of light.
2. environment light detection method as described in claim 1, wherein the step S200 includes:
When detecting the target object from the video flowing and determine that the target object is kept within a preset period of time When motionless, the light emission instruction signal is exported.
3. environment light detection method as described in claim 1, wherein the step S400 includes:
Determine the distance between the target object and the environment light sensing device d;
For each video frame at least two video frame, in target object region described in the video frame The pixel value of all pixels is averaging, to obtain mean pixel value sequence relevant at least two video frame;
Calculate the mean pixel value sequence and the irradiation current light within the period for acquiring at least two video frame Intensity between cross correlation value s;
Calculate the ratio L of the sum of all average pixel values in cross correlation value s and the mean pixel value sequence;
The intensity I of the environment light is calculated according to the following formulae
Wherein, c is constant relevant to the environment light sensing device.
4. environment light detection method as claimed in claim 3, wherein in the intensity I for calculating the environment lighteBefore, institute Stating environment light detection method further includes:
Judge whether L is greater than preset ratio threshold value, if L is greater than the preset ratio threshold value, changes the luminous instruction letter Number, so that the light emission instruction signal indicates that the light emitting device generates the optical signal that its intensity changes in new strength range As the irradiation current light and return to the step S300, wherein the maximum value of the new strength range is less than described initial The maximum value of strength range.
5. environment light detection method as claimed in claim 3, wherein the determination target object and the environment light are examined The distance between measurement equipment d includes:
Selection occurs in the target object from the video flowing and its position is relative at least two video frame In position any video frame collected when remaining stationary;And
According to target object described in the size estimation of the fixed reference feature part of the target object described in selected video frame with The distance between environment light sensing device d.
6. environment light detection method as claimed in claim 3, wherein the determination target object and the environment light are examined The distance between measurement equipment d includes:
Selection occurs in the target object from the video flowing and its position is relative at least two video frame In position more than one video frame collected when remaining stationary;
For each video frame in selected more than one video frame, according to the ginseng of the target object described in the video frame The distance between target object described in the size estimation of characteristic and described image acquisition device are examined, to obtain and the video frame Corresponding distance value;
To more than one distance value is averaging correspondingly with the selected more than one video frame;And
Determine that the average value obtained is the distance between the target object and the environment light sensing device d.
7. environment light detection method as described in claim 1, wherein before the step S300, the environment light detection Method further includes:
For each video frame in the video flowing, the target object is detected from the video frame, to judge the target Whether object occurs, and position of the target object in the video frame is determined in the case where the target object occurs; And
The position in video frame therein, which is appeared in, in each target object according to the target object determines the target The period that object remains stationary.
8. environment light detection method as claimed in claim 7, wherein it is described according to the target object in each target The period that the position that object appears in video frame therein determines that the target object remains stationary includes:
If the target object occurs in the successive video frames of the first preset number and in first preset number The variance of position in successive video frames is less than default variance threshold values, it is determined that the continuous videos of acquisition first preset number The period of frame and/or the continuous videos for acquiring the second preset number after the successive video frames of first preset number The period of frame is the period that the target object remains stationary.
9. environment light detection method as claimed in claim 7, wherein it is described according to the target object in each target The period that the position that object appears in video frame therein determines that the target object remains stationary includes:
For the every two successive video frames in the video flowing, in real time by the target object in two successive video frames In position compare, if the difference of position of the target object in two successive video frames be less than preset difference value threshold Value, it is determined that the target object remains stationary within the period for acquiring two successive video frames.
10. environment light detection method as claimed in claim 9, wherein the step S300 includes:
Step S310:The target object is recorded in real time in the successive video frames wherein remained stationary;
Step S320:If it is pre- that the number for the successive video frames that the target object record in real time, described remains stationary reaches third If number, then select recorded successive video frames as at least two video frame;And
Step S330:If described in being reached in the number for the successive video frames that the target object record in real time, described remains stationary It before third preset number, determines that the target object moves, then returns to the step S310.
11. environment light detection method as described in claim 1, wherein before the step S300, the environment light detection Method further includes:
Prompt information is exported, for prompting for the target object to be placed in a predetermined position and remaining stationary the target object.
12. environment light detection method as described in claim 1, wherein the intensity of the irradiation current light is according to sinusoidal waveform Shape, triangle shape or square-wave form variation.
13. environment light detection method as described in claim 1, wherein the light emitting device includes acquiring to fill with described image Setting in the flash lamp of the same side.
14. environment light detection method as described in claim 1, wherein the environment light sensing device is mobile terminal, described Light emitting device includes the display screen for being located at the same side with described image acquisition device, and the display screen is changed or led to by light and shade The pattern of output light and shade variation is crossed to generate the irradiation current light.
15. a kind of image quality judging method, including:
According at least to using the environment light as described in the described in any item environment light detection methods of claim 1 to 14 are detected Intensity judge the quality of the described image acquisition device object images collected comprising the target object.
16. a kind of environment light sensing device, including image collecting device, light emitting device, processor and memory, wherein described Computer program instructions are stored in memory, it is following for executing when the computer program instructions are run by the processor Step:
Step S100:Obtain the described image acquisition device video flowing collected comprising target object;
Step S200:Export light emission instruction signal, wherein the light emission instruction signal is used to indicate the light emitting device and generates it The optical signal that intensity changes within the scope of initial strength is as irradiation current light, and the irradiation current light is for irradiating the target Object;
Step S300:Selection is acquired during the light emitting device generates the irradiation current light from the video flowing , the target object there are at least two video frames in the video frame and remained stationary;And
Step S400:According to the intensity of the irradiation current light and institute within the period for acquiring at least two video frame The pixel value for stating target object region described at least two video frames determines the environment being irradiated on the target object The intensity of light.
17. a kind of picture quality judges equipment, including processor and memory, wherein be stored with computer in the memory Program instruction, for executing following steps when the computer program instructions are run by the processor:
According at least to using the environment light as described in the described in any item environment light detection methods of claim 1 to 14 are detected Intensity judge the quality of the described image acquisition device object images collected comprising the target object.
18. a kind of storage medium stores program instruction on said storage, described program instruction is at runtime for holding Row following steps:
Step S1:Obtain the image collecting device video flowing collected comprising target object of environment light sensing device;
Step S2:Export light emission instruction signal, wherein the light emission instruction signal is used to indicate the environment light sensing device Light emitting device generates optical signal that its intensity changes within the scope of initial strength as irradiation current light, and the irradiation current light is used In the irradiation target object;
Step S3:Selection is acquired during the light emitting device generates the irradiation current light from the video flowing , the target object there are at least two video frames in the video frame and remained stationary;And
Step S4:According to the intensity of the irradiation current light within the period for acquiring at least two video frame and described The pixel value of target object region described at least two video frames determines the environment light being irradiated on the target object Intensity.
19. a kind of storage medium stores program instruction on said storage, described program instruction is at runtime for holding Row following steps:
According at least to using the environment light as described in the described in any item environment light detection methods of claim 1 to 14 are detected Intensity judge the quality of the described image acquisition device object images collected comprising the target object.
20. a kind of ambient light detection device, including:
Video flowing obtains module, and the image collecting device for obtaining environment light sensing device collected includes target object Video flowing;
Signal output module, for exporting light emission instruction signal, wherein the light emission instruction signal is used to indicate the environment light The light emitting device of detection device generates optical signal that its intensity changes within the scope of initial strength as irradiation current light, described to work as Front irradiation light is for irradiating the target object;
Video frame selecting module generates the mistake of the irradiation current light in the light emitting device for selecting from the video flowing There are at least two video frames in the video frame and remained stationary in collected in journey, the described target object;And
Environment light determining module, for according to the irradiation current light within the period for acquiring at least two video frame The pixel value determination of target object region described in intensity and at least two video frame is irradiated to the target pair As the intensity of upper environment light.
21. a kind of picture quality judgment means, including:
Quality estimation module, for being examined according at least to using such as the described in any item environment light detection methods of claim 1 to 14 The intensity for surveying the environment light obtained judges the described image acquisition device object diagram collected comprising the target object The quality of picture.
CN201710445972.5A 2017-06-14 2017-06-14 Ambient light detection method, device and equipment and storage medium Active CN108876757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710445972.5A CN108876757B (en) 2017-06-14 2017-06-14 Ambient light detection method, device and equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710445972.5A CN108876757B (en) 2017-06-14 2017-06-14 Ambient light detection method, device and equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108876757A true CN108876757A (en) 2018-11-23
CN108876757B CN108876757B (en) 2020-12-08

Family

ID=64321092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710445972.5A Active CN108876757B (en) 2017-06-14 2017-06-14 Ambient light detection method, device and equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108876757B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414346A (en) * 2019-06-25 2019-11-05 北京迈格威科技有限公司 Biopsy method, device, electronic equipment and storage medium
CN110443237A (en) * 2019-08-06 2019-11-12 北京旷视科技有限公司 Certificate recognition methods, device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101889435A (en) * 2007-12-21 2010-11-17 诺基亚公司 Camera flash module and method for controlling same
CN102055849A (en) * 2010-12-29 2011-05-11 上海华勤通讯技术有限公司 Method for self-testing intensity of surrounding light of mobile phone
CN102262095A (en) * 2010-04-14 2011-11-30 株式会社高永科技 Method of checking and setting inspection apparatus
US20170010356A1 (en) * 2015-07-10 2017-01-12 Hexagon Technology Center Gmbh 3d measuring machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101889435A (en) * 2007-12-21 2010-11-17 诺基亚公司 Camera flash module and method for controlling same
CN102262095A (en) * 2010-04-14 2011-11-30 株式会社高永科技 Method of checking and setting inspection apparatus
CN102055849A (en) * 2010-12-29 2011-05-11 上海华勤通讯技术有限公司 Method for self-testing intensity of surrounding light of mobile phone
US20170010356A1 (en) * 2015-07-10 2017-01-12 Hexagon Technology Center Gmbh 3d measuring machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414346A (en) * 2019-06-25 2019-11-05 北京迈格威科技有限公司 Biopsy method, device, electronic equipment and storage medium
CN110443237A (en) * 2019-08-06 2019-11-12 北京旷视科技有限公司 Certificate recognition methods, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN108876757B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN106203305B (en) Face living body detection method and device
CN108875452A (en) Face identification method, device, system and computer-readable medium
CN105631439B (en) Face image processing process and device
CN107798685B (en) Pedestrian's height determines method, apparatus and system
CN108875522A (en) Face cluster methods, devices and systems and storage medium
CN108881710A (en) Image processing method, device and system and storage medium
CN108875546A (en) Face auth method, system and storage medium
CN104395938B (en) Article authentication apparatus with built-in light emitting device and camera
CN109146830A (en) For generating the method, apparatus, system and storage medium of training data
CN105260731A (en) Human face living body detection system and method based on optical pulses
CN108629260A (en) Live body verification method and device and storage medium
CN105917292A (en) Eye gaze detection with multiple light sources and sensors
CN108875731A (en) Target identification method, device, system and storage medium
CN106101540B (en) Focus point determines method and device
CN107918767B (en) Object detection method, device, electronic equipment and computer-readable medium
CN108875476A (en) Automatic near-infrared face registration and recognition methods, device and system and storage medium
US20180232875A1 (en) Cosmetic defect evaluation
CN106131405A (en) Image processing method and device and for its image capturing system
JP5180997B2 (en) Eyelid detection device and program
CN105447483B (en) Biopsy method and device
CN109353397A (en) Merchandise control methods, devices and systems and storage medium and shopping cart
CN108875483A (en) Image detecting method, device, system and computer-readable medium
CN106524909A (en) Three-dimensional image acquisition method and apparatus
CN105491307B (en) Depth sensing system
CN108875516A (en) Face identification method, device, system, storage medium and electronic equipment

Legal Events

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