CN106357978B - Image output method, device and terminal - Google Patents

Image output method, device and terminal Download PDF

Info

Publication number
CN106357978B
CN106357978B CN201610802926.1A CN201610802926A CN106357978B CN 106357978 B CN106357978 B CN 106357978B CN 201610802926 A CN201610802926 A CN 201610802926A CN 106357978 B CN106357978 B CN 106357978B
Authority
CN
China
Prior art keywords
image
acquisition
luminance difference
acquisition image
pixel
Prior art date
Application number
CN201610802926.1A
Other languages
Chinese (zh)
Other versions
CN106357978A (en
Inventor
李小朋
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201610802926.1A priority Critical patent/CN106357978B/en
Publication of CN106357978A publication Critical patent/CN106357978A/en
Application granted granted Critical
Publication of CN106357978B publication Critical patent/CN106357978B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23218Control of camera operation based on recognized objects
    • H04N5/23219Control of camera operation based on recognized objects where the recognized objects include parts of the human body, e.g. human faces, facial parts or facial expressions

Abstract

Whether the embodiment of the invention discloses a kind of image output method, device and terminals, wherein this method comprises: including facial image in the acquisition image of detection terminal;If obtaining the luminance difference between the pixel in the facial image according to preset pixel separation including facial image;When the luminance difference between the pixel in the facial image of acquisition meets preset image output condition, the acquisition image is exported.Implement the embodiment of the present invention, is able to ascend the quality of the shooting image of terminal output.

Description

Image output method, device and terminal

Technical field

The present invention relates to electronic technology field more particularly to a kind of image output methods, device and terminal.

Background technique

With the continuous development of terminal technology and image processing techniques, the camera function use in terminal such as mobile phone is more next It is more frequent, if self-timer is using more and more, brought convenience to user record life.In actual photographed, due to by preposition It does not focus usually when camera self-timer, to take one and clearly just need mobile phone to be in stable state from taking pictures, such as Fruit mobile phone somewhat shakes, then may cause take pictures it is fuzzy so that self-timer picture quality is poor.

Summary of the invention

The embodiment of the invention provides a kind of image output method, device and terminals, are able to ascend the shooting of terminal output The quality of image.

In a first aspect, the embodiment of the invention discloses a kind of image output methods, comprising:

Whether detect in the acquisition image of terminal includes facial image;

If obtaining the brightness between the pixel in the facial image according to preset pixel separation including facial image Difference;

When the luminance difference between the pixel in the facial image of acquisition meets preset image output condition, output The acquisition image.

Second aspect, the embodiment of the invention also discloses a kind of image output devices, comprising:

Whether image detection module includes facial image in the acquisition image for detecting terminal;

Module is obtained, for pressing when it includes facial image that described image detection module, which detects in the acquisition image, The luminance difference between the pixel in the facial image is obtained according to preset pixel separation;

Image output module, for the luminance difference between the pixel in the facial image that the acquisition module obtains When meeting preset image output condition, the acquisition image is exported.

The third aspect, the embodiment of the invention also discloses a kind of terminal, including output device, memory and processor, institutes Processor is stated to connect with the output device and the memory respectively;Wherein,

The memory is for storing application program;

The processor is for calling the application program stored in the memory to execute:

Whether detect in the acquisition image of terminal includes facial image;

If obtaining the brightness between the pixel in the facial image according to preset pixel separation including facial image Difference;

When the luminance difference between the pixel in the facial image of acquisition meets preset image output condition, pass through The output device exports the acquisition image.

Using the embodiment of the present invention, have the following beneficial effects:

In embodiments of the present invention, can whether include facial image in the acquisition image by detecting terminal, and detect When including facial image, the luminance difference between the pixel in the facial image is obtained according to preset pixel separation, so as to When the luminance difference of pixel meets preset image output condition in the facial image of acquisition, using the acquisition image as shooting image Thus output improves the quality of the shooting image of terminal output.

Detailed description of the invention

It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.

Fig. 1 is a kind of flow diagram of image output method provided in an embodiment of the present invention;

Fig. 2 is the flow diagram of another image output method provided in an embodiment of the present invention;

Fig. 3 is the flow diagram of another image output method provided in an embodiment of the present invention;

Fig. 4 is a kind of structural schematic diagram of image output device provided in an embodiment of the present invention;

Fig. 5 is the structural schematic diagram of another image output device provided in an embodiment of the present invention;

Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.

Description and claims of this specification and term " first " in above-mentioned attached drawing, " second ", " third " etc. are For distinguishing different objects, not for description particular order.In addition, term " includes " and their any deformations, it is intended that Non-exclusive include in covering.Such as it contains series of steps or the process, method, system, product or equipment of module and does not have It is defined in listed step or module, but optionally further comprising the step of not listing or module, or optionally further comprising For these process, methods, product or equipment intrinsic other steps or module.

Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.

It should be understood that the technical solution of the embodiment of the present invention can be applied particularly to mobile phone (such as Android phone, iOS mobile phone Deng), tablet computer, mobile internet device (Mobile Internet Devices, referred to as " MID "), personal digital assistant The terminal with shooting function such as (Personal Digital Assistant, referred to as " PDA "), video camera, camera (Terminal) in.The terminal is also referred to as user equipment (User Equipment, referred to as " UE "), mobile terminal, wireless Terminal or mobile station (Mobile Station, referred to as " MS ") etc., the embodiment of the present invention is without limitation.

The embodiment of the invention discloses a kind of image output method, device and terminals, are able to ascend the shooting of terminal output The quality of image.It is described in detail individually below.

Referring to Fig. 1, Fig. 1 is a kind of flow diagram of image output method provided in an embodiment of the present invention.Specifically, The method of the embodiment of the present invention can be applied particularly in above-mentioned terminal.As shown in Figure 1, the figure of the embodiment of the present invention As output method may comprise steps of:

101, whether detect in the acquisition image of terminal includes facial image.

In specific embodiment, when shooting character image, generally portrait area can be acquired by preset algorithm, such as carried out When self-timer, human face region can be identified by face recognition algorithms, and brightness is then carried out with human face region and is drawn high, to promote people The drawing in face region is bright, to protrude face, namely carries out FACE AE.It can acquire whether image includes people by detection terminal as a result, Face image, according to the bright dark poor higher shooting image of acquisition clarity in facial image, to reduce because the reasons such as hand shaking cause The fuzzy problem of shooting image caused by terminal is unstable.

If including 102, facial image, obtained according to preset pixel separation between the pixel in the facial image Luminance difference.

Specifically, the particularity of the skin due to portrait, the brightness of the adjacent pixel (not spaced pixels) in facial image Possible difference is smaller, can preset a pixel separation as a result, obtains the picture according to the pixel separation interval one or more pixel Luminance difference between element, the accuracy detected with improving image definition.Optionally, which can be according to different shootings Environmental condition is respectively set to obtain, or is obtained, etc. according to the customized setting of user demand, and the embodiment of the present invention does not limit It is fixed.

103, when the luminance difference between the pixel in the facial image of acquisition meets preset image output condition, Export the acquisition image.

Optionally, the luminance difference between the pixel when in the facial image obtained meets preset image output When condition, the acquisition image is exported, it can be with specifically: the luminance difference is compared with predetermined luminance threshold value, and according to Comparison result filters out the highest acquisition image of clarity from at least one acquisition image that the terminal obtains;It will filter out The acquisition image as shooting image, and export the shooting image.

Wherein, which can be preset to obtain.Optionally, user's facial image can be acquired in advance, and according to pre- If pixel separation obtain the luminance difference between the pixel in user's facial image;By calculating user's facial image In pixel luminance difference average value, and set the predetermined luminance threshold value for the average value.Specifically, the luminance threshold Value can be through user's facial image under acquisition varying environment condition (such as ambient light intensity is different), and by adjusting default Pixel separation after filter out the image of preferable clarity and determine, such as by the pixel of the preferable clarity facial image Luminance difference average value is stored as the luminance threshold.Wherein, the luminance threshold is settable corresponding with the pixel separation, i.e., Different pixel separations can correspond to different luminance thresholds.Alternatively, can also be according to user to the clarity need of terminal output image Seek customized setting luminance threshold.

Specifically, can be carried out by luminance difference between the pixel in the facial image that will acquire and the predetermined luminance threshold value Compare, to determine image definition, to determine the most clearly one acquisition image in multiple images of terminal acquisition As shooting image output, to promote output image definition.

In embodiments of the present invention, can whether include facial image in the acquisition image by detecting terminal, and detect When including facial image, the luminance difference between the pixel in the facial image is obtained according to preset pixel separation, so as to When the luminance difference of pixel meets preset image output condition in the facial image of acquisition, using the acquisition image as shooting image Thus output improves the quality of the shooting image of terminal output.

Further, referring to Fig. 2, the process that Fig. 2 is another image output method provided in an embodiment of the present invention is shown It is intended to.Specifically, as shown in Fig. 2, the described image output method of the embodiment of the present invention may comprise steps of:

201, whether detect in the acquisition image of terminal includes facial image.

If including 202, facial image, obtained according to preset pixel separation between the pixel in the facial image Luminance difference.

203, detect whether the luminance difference is lower than preset first luminance threshold.

Wherein, which can be preset to obtain.For example, first luminance threshold can be for determining picture The luminance threshold under the conditions of varying environment, and first luminance threshold can be preset in the fuzzy luminance threshold of vegetarian refreshments, terminal It can be the luminance threshold of storage to match with current environmental condition.

204, the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively The first number and the acquisition image include facial image in luminance difference lower than first luminance threshold second number Mesh.

205, the first ratio of second number and first number is calculated.

Specifically, each image of multiple images for terminal acquisition, can count respectively in each image and obtain picture The times of acquisition (number of comparisons being namely compared with the first luminance threshold) of plain luminance difference, i.e. the first number, and count Luminance difference is lower than the number of first luminance threshold, i.e. the second number, so as to by calculating the second number in the times of acquisition The fog-level of multiple images is determined with the ratio (i.e. the first ratio) of the first number.That is, the ratio is bigger, image gets over mould Paste, conversely, then image is more clear.

206, the smallest acquisition image of first ratio is filtered out from least one acquisition image of acquisition, and will sieve The acquisition image selected is as the highest acquisition image of clarity in at least one acquisition image.

Further, according to this, multiple acquire corresponding first ratio of every image, i.e. fog-level parameter in images, i.e., It is minimum that fog-level can be screened out from it, i.e. the smallest acquisition image of the first ratio is as shooting image output, so as to calibrated Really determine the most clearly image.

207, using the acquisition image filtered out as shooting image, and the shooting image is exported.

As an example it is assumed that first luminance threshold is set as 70, can by facial image according to presetted pixel interval such as It is spaced the pixel intensity difference of two pixels 70 to be compared with this, obtains number of comparisons, i.e. the first number, and statistics lower than should 70 number, i.e. the second number.The ratio (such as can be exchanged into percentage) of second number and the first number is bigger, then image gets over mould Paste, when smaller because of the luminance difference of pixel, fuzzy factor occupies more, thus can determine the smaller image of percentage parameter To need the highest image of clarity exported, and the highest image of the clarity is exported, to acquire clearest self-timer Image.

It is further alternative, the luminance difference between the pixel in the facial image is being obtained according to preset pixel separation Before, it can also further detect whether the current screening-mode of terminal is self-timer mode, if self-timer mode, then can trigger and execute The technical solution of the embodiment of the present invention.

It in embodiments of the present invention, can include facial image in the acquisition image of terminal, when such as carrying out self-timer, according to pre- If pixel separation obtain the luminance difference between the pixel in the facial image, and the luminance difference that will acquire and preset first bright Degree threshold value is compared, so as to will be less than the number of the first luminance threshold the smallest acquisition figure of the ratio of total degree compared with As thus improving the quality of the shooting image of terminal output, improving image definition as shooting image output.

Further, referring to Fig. 3, the process that Fig. 3 is another image output method provided in an embodiment of the present invention is shown It is intended to.Specifically, as shown in figure 3, the described image output method of the embodiment of the present invention may comprise steps of:

301, whether detect in the acquisition image of terminal includes facial image.

If including 302, facial image, obtained according to preset pixel separation between the pixel in the facial image Luminance difference.

303, detect whether the luminance difference is higher than preset second luminance threshold.

Wherein, which can be preset to obtain.For example, second luminance threshold can be for determining picture Clearly the luminance threshold under the conditions of varying environment, and first luminance threshold can be preset in luminance threshold, terminal to vegetarian refreshments It can be the luminance threshold of storage to match with current environmental condition.Further alternative, second luminance threshold is settable To be identical or different with the first above-mentioned luminance threshold, if it is different, then terminal can be set respectively previously according to different environmental conditions It sets to obtain first luminance threshold and the second luminance threshold.

304, the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively The first number and the acquisition image include facial image in luminance difference be higher than second luminance threshold third number Mesh.

305, the second ratio of the third number and first number is calculated.

Specifically, each image of multiple images for terminal acquisition, can count respectively in each image and obtain picture The times of acquisition of plain luminance difference, i.e. the first number, and count time that luminance difference in the times of acquisition is higher than second luminance threshold Number, i.e. third number, so as to determine multiple figures by the ratio (i.e. the second ratio) for calculating third number and the first number The readability of picture.That is, the ratio is bigger, image is more clear, conversely, then image is fuzzyyer.

306, the maximum acquisition image of second ratio is filtered out from least one acquisition image of acquisition, and will sieve The acquisition image selected is as the highest acquisition image of clarity in at least one acquisition image.

Further, according to this, multiple acquire corresponding second ratio of every image, i.e. readability parameter in images, i.e., It can be screened out from it readability highest, i.e. the maximum acquisition image of the second ratio is as shooting image output, so as to calibrated Really determine the most clearly image.

307, using the acquisition image filtered out as shooting image, and the shooting image is exported.

As an example it is assumed that second luminance threshold is set as 150, can by facial image according to presetted pixel interval such as It is spaced the pixel intensity difference of 3 pixels 150 to be compared with this, obtaining that number of comparisons, i.e. the first number, and statistics be higher than should 150 number, i.e. third number.Third number and the ratio (such as can be exchanged into percentage) of the first number are bigger, then image is got over Clearly, when smaller because of the luminance difference of pixel, fuzzy factor occupy it is more, thus can be true by the bigger image of percentage parameter Be set to and need the highest image of clarity that exports, and export the highest image of the clarity, with acquire it is clearest from Clap image.

It is further alternative, the luminance difference between the pixel in the facial image is being obtained according to preset pixel separation Before, it can also further detect whether the current screening-mode of terminal is self-timer mode, if self-timer mode, then can trigger and execute The technical solution of the embodiment of the present invention.

It in embodiments of the present invention, can include facial image in the acquisition image of terminal, when such as carrying out self-timer, according to pre- If pixel separation obtain the luminance difference between the pixel in the facial image, and the luminance difference that will acquire and preset second bright Degree threshold value is compared, so as to will be above the number of the second luminance threshold maximum acquisition figure of the ratio of total degree compared with As thus improving the quality of the shooting image of terminal output, improving image definition as shooting image output.

Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of image output device 10 provided in an embodiment of the present invention.Specifically , the described device 10 of the embodiment of the present invention may be disposed in above-mentioned terminal.As shown in figure 4, the embodiment of the present invention is described Image output device 10 may include image detection module 11, obtain module 12 and image output module 13.Wherein,

Whether described image detection module 11 includes facial image in the acquisition image for detecting terminal.

The acquisition module 12, for detecting to include face figure in the acquisition image in described image detection module 11 When picture, the luminance difference between the pixel in the facial image is obtained according to preset pixel separation.

Optionally, which can be respectively set to obtain according to different shooting environmental conditions, or according to user's need Customized setting is asked to obtain, etc., the embodiment of the present invention is without limitation.

Described image output module 13, between the pixel in the facial image that the acquisition module 12 obtains Luminance difference when meeting preset image output condition, export the acquisition image.

Specifically, by obtaining the luminance difference between the pixel in the facial image that module 12 obtains, image output module 13 can determine image definition, so that image output module 13 can determine the luminance difference in multiple images that terminal acquires The image for meeting preset image output condition is exported as clearest image, to promote output image definition.

In embodiments of the present invention, can whether include facial image in the acquisition image by detecting terminal, and detect When including facial image, the luminance difference between the pixel in the facial image is obtained according to preset pixel separation, so as to When the luminance difference of pixel meets preset image output condition in the facial image of acquisition, using the acquisition image as shooting image Thus output improves the quality of the shooting image of terminal output.

Further, referring to Fig. 5, Fig. 5 is the structure of another image output device 10 provided in an embodiment of the present invention Schematic diagram.Specifically, the described device 10 of the embodiment of the present invention may include that the image that above-mentioned Fig. 4 is corresponded in the embodiment of the present invention is defeated The image detection module 11 of device, acquisition module 12 and image output module 13 out.Further, in the embodiment of the present invention In, described image output module 13 may particularly include:

Screening unit 131, for the luminance difference to be compared with predetermined luminance threshold value, and according to comparison result from institute It states at least one acquisition image of terminal acquisition and filters out the highest acquisition image of clarity;

Output unit 132, the acquisition image for filtering out the screening unit 131 as shooting image, and Export the shooting image.

Optionally, in embodiments of the present invention, described device 10 may also include that

Acquisition module 14 obtains user's face for acquiring user's facial image, and according to preset pixel separation The luminance difference between pixel in image;

Setup module 15, the average value of the luminance difference for calculating the pixel in user's facial image, and will be described Average value is set as the predetermined luminance threshold value.

Wherein, which can be preset to obtain.It is acquired for example, the luminance threshold can be by acquisition module 14 User's facial image under varying environment condition (such as ambient light intensity different), and by adjusting being screened after preset pixel separation Out the image of preferable clarity and determine, for example setup module 15 can will be bright by the pixel of the preferable clarity facial image Poor average value is spent to be stored as the luminance threshold.Wherein, the luminance threshold is settable corresponding with the pixel separation, i.e., not Same pixel separation can correspond to different luminance thresholds.Alternatively, setup module 15 can also be according to user to terminal output image The customized setting luminance threshold of clarity demand.

As an alternative embodiment, the screening unit 131 can be specifically used for:

Detect whether the luminance difference is lower than preset first luminance threshold;

The of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is lower than the second number of first luminance threshold in the facial image that one number and the acquisition image include;

Calculate the first ratio of second number Yu first number;

The smallest acquisition image of first ratio is filtered out from least one acquisition image of acquisition, and will be filtered out The acquisition image as the highest acquisition image of clarity in at least one acquisition image.

Wherein, which can be preset to obtain, can be corresponding with above-mentioned luminance threshold.For example, should First luminance threshold can be the luminance threshold for determining pixel point fuzziness, and terminal can be preset under the conditions of varying environment Luminance threshold, and first luminance threshold can be the luminance threshold of storage to match with current environmental condition.

As an alternative embodiment, the screening unit 131 can be specifically used for:

Detect whether the luminance difference is higher than preset second luminance threshold;

The of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is higher than the third number of second luminance threshold in the facial image that one number and the acquisition image include;

Calculate the second ratio of the third number Yu first number;

The maximum acquisition image of second ratio is filtered out from least one acquisition image of acquisition, and will be filtered out The acquisition image as the highest acquisition image of clarity in at least one acquisition image.

Wherein, which can be preset to obtain, can also be corresponding with above-mentioned luminance threshold.For example, Second luminance threshold can be for determining pixel clearly luminance threshold, and varying environment condition has can be preset in terminal Under luminance threshold, and first luminance threshold can be the luminance threshold of storage to match with current environmental condition.Into one Step is optional, second luminance threshold may be configured as it is identical or different with the first above-mentioned luminance threshold, if it is different, mould is then arranged Block 15 can be respectively set to obtain first luminance threshold and the second luminance threshold previously according to different environmental conditions.

It in embodiments of the present invention, can include facial image in the acquisition image of terminal, when such as carrying out self-timer, according to pre- If pixel separation obtain the luminance difference between the pixel in the facial image, and the luminance difference that will acquire and preset luminance threshold Value is compared, to filter out the highest image of clarity from multiple images that terminal acquires according to comparison result as bat It takes the photograph image and exports, thus improve the quality of the shooting image of terminal output, improve image definition.

Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram of terminal 1 provided in an embodiment of the present invention, it is above-mentioned for executing Image output method.Specifically, as shown in fig. 6, the terminal 1 of the embodiment of the present invention may include: at least one processor 100, at least one input unit 200, at least one output device 300, the equal components of memory 500.Wherein, these components pass through One or more bus 400 is communicatively coupled.It will be understood by those skilled in the art that the structure of terminal 1 shown in Fig. 6 is simultaneously Do not constitute the restriction to the embodiment of the present invention, it is also possible to hub-and-spoke configuration either busbar network, can also include than More or fewer components are illustrated, certain components or different component layouts are perhaps combined.Wherein:

Processor 100 is the control centre of terminal 1, using the various pieces of various interfaces and the entire terminal 1 of connection, By running or executing the program and/or module that are stored in memory 500, and the number that calling is stored in memory 500 According to such as above-mentioned phase-detection data, to execute the various functions and processing data of terminal 1.Processor 100 can be by integrated electricity Road (Integrated Circuit, abbreviation IC) composition, such as the IC that can be encapsulated by single are formed, can also be more by connecting The encapsulation IC of identical function or different function and form.For example, processor 100 can only include central processing unit (Central Processing Unit, abbreviation CPU) is also possible to CPU, digital signal processor (Digital Signal Processor, abbreviation DSP), graphics processor (Graphic Processing Unit, abbreviation GPU) and various control chips Combination.In embodiments of the present invention, CPU can be single operation core, also may include multioperation core.

Input unit 200 may include touch screen, keyboard, camera of standard etc., can also include wireline interface, wireless Interface etc..The camera can be connect with focusing motor.

Output device 300 may include display screen, loudspeaker etc., also may include wireline interface, wireless interface etc..

Memory 500 can be used for storing software program and module, processor 100, input unit 200 and output device 300 by calling the software programs and module that are stored in memory 500, thereby executing terminal 1 various function applications with And realize data processing.Memory 500 mainly includes program storage area and data storage area, wherein program storage area can store Application program needed for operating system, at least one function etc.;Data storage area can be stored to be created according to using for terminal 1 Data etc..In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc. Deng.

Specifically, the processor 100 calls the application program being stored in the memory 500, it is following for executing Step:

Whether detect in the acquisition image of terminal includes facial image;

If obtaining the brightness between the pixel in the facial image according to preset pixel separation including facial image Difference;

When the luminance difference between the pixel in the facial image of acquisition meets preset image output condition, pass through The output device 300 exports the acquisition image.

Optionally, the processor 100 calls the application program being stored in the memory 500 to execute described when acquisition The facial image in pixel between luminance difference when meeting preset image output condition, export the acquisition image, It is specific to execute following steps:

The luminance difference is compared with predetermined luminance threshold value, and is obtained at least according to comparison result from the terminal The highest acquisition image of clarity is filtered out in one acquisition image;

Using the acquisition image filtered out as shooting image, and the shooting is exported by the output device 300 Image.

Optionally, the processor 100 calls the application program being stored in the memory 500, be also used to execute with Lower step:

User's facial image is acquired by the input unit 200, and obtains the user according to preset pixel separation The luminance difference between pixel in facial image;

The average value of the luminance difference of the pixel in user's facial image is calculated, and sets described for the average value Predetermined luminance threshold value.

Optionally, the processor 100 calls the application program execution being stored in the memory 500 is described will be described Luminance difference is compared with predetermined luminance threshold value, and according to comparison result from at least one acquisition image that the terminal obtains The highest acquisition image of clarity is filtered out, following steps are specifically executed:

Detect whether the luminance difference is lower than preset first luminance threshold;

The of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is lower than the second number of first luminance threshold in the facial image that one number and the acquisition image include;

Calculate the first ratio of second number Yu first number;

The smallest acquisition image of first ratio is filtered out from least one acquisition image of acquisition, and will be filtered out The acquisition image as the highest acquisition image of clarity in at least one acquisition image.

Optionally, the processor 100 calls the application program execution being stored in the memory 500 is described will be described Luminance difference is compared with predetermined luminance threshold value, and according to comparison result from at least one acquisition image that the terminal obtains The highest acquisition image of clarity is filtered out, following steps are specifically executed:

Detect whether the luminance difference is higher than preset second luminance threshold;

The of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is higher than the third number of second luminance threshold in the facial image that one number and the acquisition image include;

Calculate the second ratio of the third number Yu first number;

The maximum acquisition image of second ratio is filtered out from least one acquisition image of acquisition, and will be filtered out The acquisition image as the highest acquisition image of clarity in at least one acquisition image.

In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.

In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or module Letter connection can be electrical property, mechanical or other forms.

It is described this module may or may not be physically separated as illustrated by the separation member, as module The component of display may or may not be physical module, it can and it is in one place, or may be distributed over more On a network module.Some or all of the modules therein can be selected to realize this embodiment scheme according to the actual needs Purpose.

It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.

The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.

Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.

Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of image output method characterized by comprising
Whether detect in the acquisition image of terminal includes facial image;
If obtaining the luminance difference between the pixel in the facial image according to preset pixel separation including facial image;
When the luminance difference between the pixel in the facial image of acquisition meets preset image output condition, described in output Acquire image;
Wherein, the luminance difference between the pixel when in the facial image obtained meets preset image output condition When, export the acquisition image, comprising:
The luminance difference is compared with predetermined luminance threshold value, and is obtained according to comparison result from the terminal at least one The highest acquisition image of clarity is filtered out in acquisition image;
Using the acquisition image filtered out as shooting image, and export the shooting image.
2. the method according to claim 1, wherein
Before the output acquisition image, the method also includes:
User's facial image is acquired, and is obtained according to preset pixel separation bright between the pixel in user's facial image It is poor to spend;
The average value of the luminance difference of the pixel in user's facial image is calculated, and sets described default for the average value Luminance threshold.
3. the method according to claim 1, wherein described compare the luminance difference and predetermined luminance threshold value Compared with, and the highest acquisition figure of clarity is filtered out from at least one acquisition image that the terminal obtains according to comparison result Picture, comprising:
Detect whether the luminance difference is lower than preset first luminance threshold;
First number of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is lower than the second number of first luminance threshold in the facial image that mesh and the acquisition image include;
Calculate the first ratio of second number Yu first number;
The smallest acquisition image of first ratio, and the institute that will be filtered out are filtered out from least one acquisition image of acquisition Acquisition image is stated as the highest acquisition image of clarity in at least one acquisition image.
4. the method according to claim 1, wherein described compare the luminance difference and predetermined luminance threshold value Compared with, and the highest acquisition figure of clarity is filtered out from at least one acquisition image that the terminal obtains according to comparison result Picture, comprising:
Detect whether the luminance difference is higher than preset second luminance threshold;
First number of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is higher than the third number of second luminance threshold in the facial image that mesh and the acquisition image include;
Calculate the second ratio of the third number Yu first number;
The maximum acquisition image of second ratio, and the institute that will be filtered out are filtered out from least one acquisition image of acquisition Acquisition image is stated as the highest acquisition image of clarity in at least one acquisition image.
5. a kind of image output device characterized by comprising
Whether image detection module includes facial image in the acquisition image for detecting terminal;
Module is obtained, for when described image detection module detects in the acquisition image including facial image, according to pre- If pixel separation obtain the luminance difference between the pixel in the facial image;
Image output module meets for the luminance difference between the pixel in the facial image that the acquisition module obtains When preset image output condition, the acquisition image is exported;
Wherein, described image output module includes:
Screening unit, for the luminance difference to be compared with predetermined luminance threshold value, and according to comparison result from the terminal The highest acquisition image of clarity is filtered out in at least one acquisition image obtained;
Output unit, the acquisition image for filtering out the screening unit export the bat as shooting image Take the photograph image.
6. device according to claim 5, which is characterized in that described device further include:
Acquisition module obtains in user's facial image for acquiring user's facial image, and according to preset pixel separation Pixel between luminance difference;
Setup module, the average value of the luminance difference for calculating the pixel in user's facial image, and by the average value It is set as the predetermined luminance threshold value.
7. device according to claim 5, which is characterized in that the screening unit is specifically used for:
Detect whether the luminance difference is lower than preset first luminance threshold;
First number of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is lower than the second number of first luminance threshold in the facial image that mesh and the acquisition image include;
Calculate the first ratio of second number Yu first number;
The smallest acquisition image of first ratio, and the institute that will be filtered out are filtered out from least one acquisition image of acquisition Acquisition image is stated as the highest acquisition image of clarity in at least one acquisition image.
8. device according to claim 5, which is characterized in that the screening unit is specifically used for:
Detect whether the luminance difference is higher than preset second luminance threshold;
First number of the luminance difference that each acquisition image obtains in at least one acquisition image that statistics terminal obtains respectively Luminance difference is higher than the third number of second luminance threshold in the facial image that mesh and the acquisition image include;
Calculate the second ratio of the third number Yu first number;
The maximum acquisition image of second ratio, and the institute that will be filtered out are filtered out from least one acquisition image of acquisition Acquisition image is stated as the highest acquisition image of clarity in at least one acquisition image.
9. a kind of terminal characterized by comprising output device, memory and processor, the processor respectively with it is described defeated Device and memory connection out;Wherein,
The memory is for storing application program;
The processor is for calling the application program stored in the memory to execute: described in Claims 1-4 any one Method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer soft Part product, some instructions that the computer software product includes, with so that computer equipment perform claim require 1 to Method described in 4 any one.
CN201610802926.1A 2016-09-05 2016-09-05 Image output method, device and terminal CN106357978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610802926.1A CN106357978B (en) 2016-09-05 2016-09-05 Image output method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610802926.1A CN106357978B (en) 2016-09-05 2016-09-05 Image output method, device and terminal

Publications (2)

Publication Number Publication Date
CN106357978A CN106357978A (en) 2017-01-25
CN106357978B true CN106357978B (en) 2019-05-03

Family

ID=57858914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610802926.1A CN106357978B (en) 2016-09-05 2016-09-05 Image output method, device and terminal

Country Status (1)

Country Link
CN (1) CN106357978B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513056A (en) * 2017-02-23 2018-09-07 株式会社理光 Image processing method, device and electronic equipment
CN108416988A (en) * 2017-04-19 2018-08-17 陈其高 A kind of sitting posture prompting method and device
CN107302663A (en) * 2017-07-31 2017-10-27 努比亚技术有限公司 A kind of brightness of image method of adjustment, terminal and computer-readable recording medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697478A (en) * 2004-05-13 2005-11-16 欧姆龙株式会社 Image correction apparatus
KR20060022935A (en) * 2004-09-08 2006-03-13 한민홍 Drowsiness detection method and apparatus based on eye image
CN101465964A (en) * 2007-12-17 2009-06-24 鸿富锦精密工业(深圳)有限公司 Photographic device and photographic method
CN104967786A (en) * 2015-07-10 2015-10-07 广州三星通信技术研究有限公司 Image selection method and device
CN104978710A (en) * 2015-07-02 2015-10-14 广东欧珀移动通信有限公司 Method and device for identifying and adjusting human face luminance based on photographing
CN105654043A (en) * 2015-12-24 2016-06-08 广东欧珀移动通信有限公司 Control method, control device and photographing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697478A (en) * 2004-05-13 2005-11-16 欧姆龙株式会社 Image correction apparatus
KR20060022935A (en) * 2004-09-08 2006-03-13 한민홍 Drowsiness detection method and apparatus based on eye image
CN101465964A (en) * 2007-12-17 2009-06-24 鸿富锦精密工业(深圳)有限公司 Photographic device and photographic method
CN104978710A (en) * 2015-07-02 2015-10-14 广东欧珀移动通信有限公司 Method and device for identifying and adjusting human face luminance based on photographing
CN104967786A (en) * 2015-07-10 2015-10-07 广州三星通信技术研究有限公司 Image selection method and device
CN105654043A (en) * 2015-12-24 2016-06-08 广东欧珀移动通信有限公司 Control method, control device and photographing system

Also Published As

Publication number Publication date
CN106357978A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN105100615B (en) A kind of method for previewing of image, device and terminal
US9621806B2 (en) Image capturing method, apparatus, and electronic device
CN104952036B (en) Method for beautifying faces and electronic equipment in a kind of instant video
CN104869320B (en) Electronic equipment and controlling electronic devices operating method
US8866931B2 (en) Apparatus and method for image recognition of facial areas in photographic images from a digital camera
CN104899490B (en) A kind of method of locating terminal and user terminal
CN104794462B (en) A kind of character image processing method and processing device
CN100413321C (en) Image capturing apparatus, control method therefor, program, and storage medium
CN105874776B (en) Image processing apparatus and method
CN102970411B (en) Smart mobile phone screen locking solution lock control method and smart mobile phone based on Face datection
JP5872142B2 (en) UI providing method and display device using the same
CN103428428B (en) Image capturing device and image catching method
CN106101743B (en) Panoramic video recognition methods and device
CN103024165B (en) Method and device for automatically setting shooting mode
CN107454343B (en) Photographic method, camera arrangement and terminal
KR20110105831A (en) High dynamic range image combining
WO2016101883A1 (en) Method for face beautification in real-time video and electronic equipment
CN100512420C (en) Method and apparatus for composing images during video communications
WO2017190646A1 (en) Facial image processing method and apparatus and storage medium
CN105323456B (en) For the image preview method of filming apparatus, image capturing device
CN103491299B (en) One is taken pictures treating method and apparatus
US9530054B2 (en) Scene recognition method and apparatus
KR101952569B1 (en) Image editing techniques for a device
CN106453962B (en) Camera shooting control method of double-screen intelligent terminal
CN107124548A (en) A kind of photographic method and terminal

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant