CN110166696A - Image pickup method, device, terminal device and computer readable storage medium - Google Patents
Image pickup method, device, terminal device and computer readable storage medium Download PDFInfo
- Publication number
- CN110166696A CN110166696A CN201910579903.2A CN201910579903A CN110166696A CN 110166696 A CN110166696 A CN 110166696A CN 201910579903 A CN201910579903 A CN 201910579903A CN 110166696 A CN110166696 A CN 110166696A
- Authority
- CN
- China
- Prior art keywords
- face
- image
- parameter
- preset
- caching
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
Abstract
The application is suitable for software technology field, provide image pickup method, device, terminal device and computer readable storage medium, include: detection image preview screen with the presence or absence of the image comprising face, if it exists includes the image of face, the caching image comprising face;Following at least one face parameter: face size, facial angle and face location is obtained according to the image comprising face;If face parameter and the comparison result of preset parameter threshold are met the requirements, using caching comprising face and face parameter meets the image of parameter request as the image shot.By above-mentioned image pickup method, customer satisfaction system image can be shot.
Description
Technical field
The application belongs to software technology field more particularly to image pickup method, device, terminal device and computer-readable deposits
Storage media.
Background technique
Currently, the function that terminal device (such as mobile phone) has is more and more, and there is audio-video in the common function of user
Playing function and camera function etc..
User, if the object being taken is stationary state, is easy to shoot satisfactory when using camera function
Image, if but the object that is taken is motion state, it is difficult to shoot satisfactory image.
Therefore, it is desirable to provide a kind of new method, to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the present application provides image pickup method, device, terminal device and computer-readable storage medium
Matter, to solve the problems, such as to be difficult to shoot satisfactory image in the prior art.
The first aspect of the embodiment of the present application provides a kind of image pickup method, is applied to terminal device, comprising:
Detection image preview screen whether there is the image comprising face, if it exists include the image of face, described in caching
Image comprising face;
Following at least one face parameter: face size, facial angle and people is obtained according to the image comprising face
Face position;
If face parameter and the comparison result of preset parameter threshold are met the requirements, what it is by caching includes face and face
Parameter meets image of the image of parameter request as shooting.
The second aspect of the embodiment of the present application provides a kind of filming apparatus, is applied to terminal device, comprising:
Face datection unit whether there is the image comprising face for detection image preview screen, if it exists include people
The image of face, the caching image comprising face;
Face parameter acquiring unit, for obtaining following at least one face parameter according to the image comprising face:
Face size, facial angle and face location;
Image capturing unit will delay if meeting the requirements for face parameter and the comparison result of preset parameter threshold
Deposit comprising face and face parameter meets the image of parameter request as the image shot.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing method as described in relation to the first aspect.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the step of method as described in relation to the first aspect is realized when the computer program is executed by processor
Suddenly.
Existing beneficial effect is the embodiment of the present application compared with prior art:
Due to having cached the image in image preview picture comprising face in advance, in face parameter and preset ginseng
The comparison result of number threshold values is met the requirements down, can be by caching comprising face and face parameter meets the image of parameter request and makees
For the image of shooting, in this way, can also take even if the present image of image preview picture is unsatisfactory for user's requirement and meet user
It is required that image.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these
Figure obtains other attached drawings.
Fig. 1 is the flow chart of the first image pickup method provided by the embodiments of the present application;
Fig. 2 is the flow chart of second of image pickup method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of filming apparatus provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, terminal device described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch
Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other
Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had
The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal device including display and touch sensitive surface is described.However, should manage
Solution, terminal device may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects
Jaws equipment.
Terminal device supports various application programs, such as one of the following or multiple: drawing application program, demonstration application
Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant messaging applications, forging
Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer
With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on the terminal device
Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick
Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example,
Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot in the description of the present application
It is interpreted as indication or suggestion relative importance.
Embodiment:
Fig. 1 shows the flow chart with the first image pickup method provided by the embodiments of the present application, the image pickup method application
In terminal device, in the present embodiment, by caching the image comprising face in advance, shooting is unsatisfactory in current face in this way and is wanted
, can be using the image comprising face of caching as the image of shooting when asking, details are as follows:
Step S11, detection image preview screen whether there is the image comprising face, if it exists include the image of face,
The caching image comprising face;
Wherein, after image preview picture refers to that the camera function of terminal device is arranged in user's starting, in terminal device
The picture that preview interface is presented.
In the step, it can identify in image whether include face by Face Detection, facial features localization algorithm etc., if depositing
In face, then the image that an at least frame includes face is cached.
In some embodiments, if occurring different faces in different frame image, at least for each face
Cache the image that a frame includes the face.
In the present embodiment, due to having cached the image comprising different faces respectively, packet can be taken convenient for subsequent
Image containing required face.
Step S12 obtains following at least one face parameter: face size, face according to the image comprising face
Angle and face location;
Wherein, face size refers to the size for the elemental area that face occupies in one frame of image, alternatively, referring to that face occupies
The scale of one frame image.
Wherein, facial angle refers to the angle of face and camera, which is less than or equal to 90 °.For example, in face
When side (being assumed to be left side) is parallel with the plane where camera, facial angle is set as 0 °, face is being faced into photograph
When plane where camera, facial angle is set as 90 °, flat where the side (being assumed to be left side) of face and camera
When face is parallel, facial angle is set as 0 °.
Wherein, face location refers to the actual range between face and the camera of terminal device, specifically, can be by end
End equipment is installed rangefinder etc. and is realized.
Step S13, if face parameter and the comparison result of preset parameter threshold are met the requirements, that by caching includes people
Face and face parameter meet image of the image of parameter request as shooting.
It specifically, is the corresponding parameter threshold of each face parameter setting, for example, the small preset face of setting of being bold of behaving
Size parameter threshold value, is arranged preset facial angle parameter threshold for facial angle, and preset face position is arranged for face location
Parameter threshold is set, then respectively by each face parameter compared with corresponding preset parameter threshold, if comparison result is met the requirements,
Shooting image is then obtained from cache image.
In the embodiment of the present application, detection image preview screen whether there is the image comprising face, if it exists include face
Image, caching is described include face image, following at least one face parameter is obtained according to the image comprising face:
Face size, facial angle and face location will if face parameter and the comparison result of preset parameter threshold are met the requirements
Caching comprising face and face parameter meets the image of parameter request as the image shot.It is pre- due to having cached image in advance
Look at include in picture face image, therefore, in the case where the comparison result of face parameter and preset parameter threshold is met the requirements, energy
It is enough using caching comprising face and face parameter meets the image of parameter request as the image shot, in this way, even if image is pre-
Look at picture present image be unsatisfactory for user requirement, can also take meet user requirement image.
In some embodiments, in order to take the image for meeting user's needs, then the step S13 is specifically, if inspection
Measure the shooting action of user's triggering, and face parameter and the comparison result of preset parameter threshold are met the requirements, then it will caching
Comprising face and face parameter meets the image of parameter request as the image shot.
In the present embodiment, only after user issues shooting instruction, just using the image comprising face of caching as bat
The image taken the photograph, thus it is guaranteed that the image of shooting is the image that user wishes shooting.
Fig. 2 shows the flow chart of second of image pickup method provided by the embodiments of the present application, in the present embodiment, judging
Face is smaller, and/or, face is more inclined, and/or, face farther out after, from the image comprising face of caching obtain an image
Image as shooting, wherein the step S21 and step S22 of the present embodiment and the step S11 of embodiment one and step S12 phase
Together, details are not described herein again:
Step S21, detection image preview screen whether there is the image comprising face, if it exists include the image of face,
The caching image comprising face;
Step S22 obtains following at least one face parameter: face size, face according to the image comprising face
Angle and face location;
Step S23, if face size is less than or equal to preset face size parameter threshold value, and/or, facial angle is less than
Or it is equal to preset facial angle parameter threshold, and/or, face location is greater than or equal to preset face location parameter threshold,
Then using the image comprising maximum face of caching as the image of shooting.
In the step, if face size is less than or equal to preset face size parameter threshold value, show that the face is smaller;If
Facial angle is less than or equal to preset facial angle parameter threshold, shows that the face is more inclined;If face location is greater than or equal to
Preset face location parameter threshold, show the face apart from terminal device farther out, and user it is generally desirable to take have it is clear
The face of clear face, therefore, the image comprising maximum face by that will cache can be avoided directly as the image shot
Smaller face and/or more inclined face and/or the farther out image of face are taken from preview screen, to guarantee that the image of shooting is
Image needed for user improves the satisfaction of user.
Step S24, if face size is greater than preset face size parameter threshold value, and/or, facial angle is greater than preset
Facial angle parameter threshold, and/or, face location is less than preset face location parameter threshold, then by image preview picture
Image of the image as shooting.
In the step, if the face that the image in image preview picture includes has following at least one information: face is big
It is small it is larger, facial angle is larger, face location is closer, then directly using the image in image preview picture as shooting image,
To guarantee that the image of shooting is image needed for user, the satisfaction of user is improved.
As another embodiment, a handoff options can be provided at the interface of terminal device, wish to postpone for user's selection
The face with close shot is obtained in the image deposited still obtains the facial image with distant view.When user selects to wish to obtain to have
When the facial image of distant view, following scheme can be taken: if face size is greater than preset face size parameter threshold value, and/or, people
Face angle is greater than preset facial angle parameter threshold, and/or, face location is less than preset face location parameter threshold, then
Using the image comprising maximum face of caching as the image of shooting;If face size is less than or equal to preset face size
Parameter threshold, and/or, facial angle be less than or equal to preset facial angle parameter threshold, and/or, face location be greater than or
Equal to preset face location parameter threshold, then using the image of image preview picture as the image of shooting.
In some embodiments, if the face number that the image comprising face includes is greater than 1, the step S12
Include:
Obtain following at least one face parameter of each face respectively according to the image comprising face: face is big
Small, facial angle and face location;
Accordingly, the step S13 specifically:
If each face size is less than or equal to preset face size parameter threshold value, and/or, each facial angle is less than
Or it is equal to preset facial angle parameter threshold, and/or, each face location is greater than or equal to preset face location parameter threshold
Value, then respectively using the image comprising corresponding maximum face of caching as the image of shooting, the number of the image of shooting is greater than
1。
In the present embodiment, if it is detected that the number for the face that image includes is greater than 1, the face of each face is obtained respectively
Parameter, such as, it is assumed that it detects that image includes face A and face B, then obtains the face parameter of face A and the people of face B respectively
Face parameter.And then by the face parameter of face A compared with preset parameter threshold, and, by the face parameter of face B with
Preset parameter threshold compares, if comparison result is all met the requirements, obtaining the corresponding maximum facial image conduct of face A should
The shooting image of face A, and obtain shooting image of the corresponding maximum facial image of face B as face B.
Certainly, if some people be bold it is small be less than or equal to preset face size parameter threshold value, and/or, a part
Facial angle is less than or equal to preset facial angle parameter threshold, and/or, a part of face location is greater than or equal to preset
Caching is then corresponded to the image of maximum face as shooting comprising a part of face respectively by face location parameter threshold
The image of a part of face.If another part face size is greater than preset face size parameter threshold value, and/or, another portion
Facial angle is divided to be greater than preset facial angle parameter threshold, and/or, another part face location is less than preset face location
Parameter threshold, then using the image of image preview picture as the image for shooting another part face.
In some embodiments, for the scene comprising multiple faces, the face that sometimes image includes not is user
The object for wishing shooting, at this point, then executing following scheme to reduce the image volume of shooting: if the image comprising face
The face number for including is greater than 1, then the step S12 includes:
Obtain following at least one face parameter of each face respectively according to the image comprising face: face is big
Small, facial angle and face location;
Accordingly, before the step S13, comprising:
It is calculated according to each face parameter of weighted value and acquisition in advance to each face parameter setting
Each face corresponds to face filter value, and according to sorting from small to large;It is corresponding to retain the default preceding face filter value of sequence
Face;
Accordingly, the step S13 specifically:
If the face parameter of face and the comparison result of preset parameter threshold that retain are met the requirements, by the packet of caching
Image of the image of face containing reservation as shooting.
In the present embodiment, the corresponding weighted value of each face parameter is not fully equal, for example, by the weight of face size
Value is set as maximum, and the weighted value of facial angle and face location is set as equal, alternatively, the weighted value of setting face location is big
In the weighted value of facial angle, it is not construed as limiting herein.
In the present embodiment, since the sequence of face filter value is when preceding, show that the corresponding face of face filter value is larger,
Alternatively, facial angle is larger etc., therefore, retain the corresponding face of the default preceding face filter value of sequence, so as to
On the basis of guaranteeing the face that the face retained is user demand, reduce the amount of images that need to be shot.
In some embodiments, to reduce the memory headroom that cache image occupies, after the step S13, or
Person, using the image of image preview picture as shooting image after, comprising:
Delete the image comprising face of caching.
In the present embodiment, since user performs shooting action, it is therefore shown that the figure that user no longer has needed to have cached
Picture caches new image, the utilization rate of memory space can be greatly improved at this point, deleting the image cached.
In some embodiments, if after preset duration, user does not trigger shooting action, then shows user currently not
Want to shoot, then in order to save memory space, deletes the image comprising face of caching.
In the present embodiment, if in cache image preview screen one section of duration image, and user does not trigger shooting
Movement, then delete the image of this section of duration cached, alternatively, deleting the image for having cached preset duration, only retains caching
Duration does not reach the image of preset duration, can effectively save memory space in this way.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Corresponding with above-mentioned image pickup method, Fig. 3 shows a kind of structural representation of filming apparatus provided by the embodiments of the present application
Figure, the filming apparatus are applied to terminal device, and for ease of description, only the parts related to this embodiment are shown.
The filming apparatus 3 of the present embodiment includes: Face datection unit 31, face parameter acquiring unit 32 and image taking
Unit 33, in which:
Face datection unit 31 whether there is the image comprising face for detection image preview screen, include if it exists
The image of face, the caching image comprising face;
Specifically, it can identify in image whether include face by Face Detection, facial features localization algorithm etc., if it exists
Face then caches the image that an at least frame includes face.
In some embodiments, if occurring different faces in different frame image, Face datection unit 31 is specifically used
In: detection image preview screen whether there is the image comprising face, if the number of face is greater than 1, be directed to each face
All at least cache the image that a frame includes the face.
Face parameter acquiring unit 32, for obtaining following at least one face ginseng according to the image comprising face
Number: face size, facial angle and face location;
Wherein, face size refers to the size for the elemental area that face occupies in one frame of image, alternatively, referring to that face occupies
The scale of one frame image.
Wherein, facial angle refers to the angle of face and camera, which is less than or equal to 90 °.
Wherein, face location refers to the actual range between face and the camera of terminal device, specifically, can be by end
End equipment is installed rangefinder etc. and is realized.
Image capturing unit 33 will if meeting the requirements for face parameter and the comparison result of preset parameter threshold
Caching comprising face and face parameter meets the image of parameter request as the image shot.
In the embodiment of the present application, due to having cached the image in image preview picture comprising face in advance, in face
The comparison result of parameter and preset parameter threshold is met the requirements down, can be by caching is comprising face and face parameter meets ginseng
Image of the image that number requires as shooting, in this way, also can even if the present image of image preview picture is unsatisfactory for user's requirement
Take the image for meeting user's requirement.
In some embodiments, in order to take the image for meeting user's needs, which is specifically used for:
If detecting the shooting action of user's triggering, and face parameter and the comparison result satisfaction of preset parameter threshold are wanted
It asks, then using caching comprising face and face parameter meets the image of parameter request as the image shot.
In some embodiments, in order to take include a certain size face image, then described image shooting unit
33 are specifically used for:
If face size is less than or equal to preset face size parameter threshold value, and/or, facial angle is less than or equal to pre-
If facial angle parameter threshold, and/or, face location be greater than or equal to preset face location parameter threshold, then will caching
The image comprising maximum face as shooting image.
In the present embodiment, the image comprising maximum face by that will cache can be avoided straight as the image shot
It connects from preview screen and takes smaller face and/or more inclined face and/or the farther out image of face, to guarantee the image of shooting
For image needed for user, the satisfaction of user is improved.
In some embodiments, filming apparatus further include:
Direct shooting unit, if it is greater than preset face size parameter threshold value for face size, and/or, facial angle
Greater than preset facial angle parameter threshold, and/or, face location is less than preset face location parameter threshold, then by image
Image of the image of preview screen as shooting.
In some embodiments, filming apparatus further include:
Handoff options display unit for showing handoff options, and detects whether that the hope for receiving user's selection obtains
The instruction of facial image with distant view.
Distant view face shooting unit, for obtaining the finger with the facial image of distant view in the hope for receiving user's selection
After order, if judging, face size is greater than preset face size parameter threshold value, and/or, facial angle is greater than preset face
Angle parameter threshold value, and/or, face location is less than preset face location parameter threshold, then caching is included maximum people
Image of the image of face as shooting;If judge face size be less than or equal to preset face size parameter threshold value, and/
Or, facial angle is less than or equal to preset facial angle parameter threshold, and/or, face location is greater than or equal to preset people
Face location parameter threshold value, then using the image of image preview picture as the image of shooting.
In some embodiments, if the face number that the image comprising face includes is greater than 1,
Face parameter acquiring unit 32 is specifically used for: according to the image comprising face obtain respectively each face with
Lower at least one face parameter: face size, facial angle and face location;
Accordingly, described image shooting unit 33 is specifically used for:
If each face size is less than or equal to preset face size parameter threshold value, and/or, each facial angle is less than
Or it is equal to preset facial angle parameter threshold, and/or, each face location is greater than or equal to preset face location parameter threshold
Value, then respectively using the image comprising corresponding maximum face of caching as the image of shooting, the number of the image of shooting is greater than
1。
In some embodiments, for the scene comprising multiple faces, the face that sometimes image includes not is user
The object for wishing shooting, at this point, the face parameter acquiring unit 32 is specifically used in order to reduce the image volume of shooting:
Obtain following at least one face parameter of each face respectively according to the image comprising face: face is big
Small, facial angle and face location;
Accordingly, the filming apparatus further include:
The face screening unit of reservation, for according to the weighted value to each face parameter setting and acquisition in advance
Each face parameter calculate each face and correspond to face filter value, and according to sorting from small to large;Retain default row
The corresponding face of the preceding face filter value of sequence;
Accordingly, described image shooting unit 33 is specifically used for:
If the face parameter of face and the comparison result of preset parameter threshold that retain are met the requirements, by the packet of caching
Image of the image of face containing reservation as shooting.
In the present embodiment, the corresponding weighted value of each face parameter is not fully equal, for example, by the weight of face size
Value is set as maximum, and the weighted value of facial angle and face location is set as equal, alternatively, the weighted value of setting face location is big
In the weighted value of facial angle, it is not construed as limiting herein.
It in some embodiments, is the memory headroom for reducing cache image occupancy, the filming apparatus further include:
The image-erasing unit of caching, for deleting the image described in caching comprising face.
In some embodiments, if after preset duration, user does not trigger shooting action, then shows user currently not
Want to shoot, then in order to save memory space, the image-erasing unit of the caching is specifically used for:
If not detecting shooting action in preset duration, the image comprising face of caching is deleted.
In the present embodiment, if in cache image preview screen one section of duration image, and user does not trigger shooting
Movement, then delete the image of this section of duration cached, alternatively, deleting the image for having cached preset duration, only retains caching
Duration does not reach the image of preset duration, can effectively save memory space in this way.
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include: processor 40, memory 41 and are stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes the step in above-mentioned each embodiment of the method when executing the computer program 42,
Such as step 11 shown in Fig. 3 is to 13.Alternatively, the processor 40 realizes above-mentioned each device when executing the computer program 42
The function of each module/unit in embodiment, such as the function of module 31 to 33 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
It is cut into Face datection unit, face parameter acquiring unit and image capturing unit, each unit concrete function is as follows:
Face datection unit whether there is the image comprising face for detection image preview screen, if it exists include people
The image of face, the caching image comprising face;
Face parameter acquiring unit, for obtaining following at least one face parameter according to the image comprising face:
Face size, facial angle and face location;
Image capturing unit will delay if meeting the requirements for face parameter and the comparison result of preset parameter threshold
Deposit comprising face and face parameter meets the image of parameter request as the image shot.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
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
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of image pickup method, which is characterized in that be applied to terminal device, comprising:
Detection image preview screen whether there is the image comprising face, if it exists includes the image of face, includes described in caching
The image of face;
Following at least one face parameter: face size, facial angle and face position is obtained according to the image comprising face
It sets;
If face parameter and the comparison result of preset parameter threshold are met the requirements, what it is by caching includes face and face parameter
Meet image of the image of parameter request as shooting.
2. image pickup method as described in claim 1, which is characterized in that if the ratio of the face parameter and preset parameter threshold
Relatively result is met the requirements, then using caching comprising face and face parameter meets the image of parameter request as the image shot,
Include:
If face size is less than or equal to preset face size parameter threshold value, and/or, facial angle is less than or equal to preset
Facial angle parameter threshold, and/or, face location is greater than or equal to preset face location parameter threshold, then by the packet of caching
Image of the image containing maximum face as shooting.
3. image pickup method as described in claim 1, which is characterized in that the image pickup method further include:
If face size is greater than preset face size parameter threshold value, and/or, facial angle is greater than preset facial angle parameter
Threshold value, and/or, face location is less than preset face location parameter threshold, then using the image of image preview picture as shooting
Image.
4. image pickup method as claimed in claim 2, which is characterized in that if the face number that the image comprising face includes
Greater than 1, then the image according to comprising face obtains following at least one face parameter: face size, facial angle
And face location, comprising:
Obtain following at least one face parameter of each face: face size, people respectively according to the image comprising face
Face angle and face location;
Accordingly, if the face parameter and the comparison result of preset parameter threshold are met the requirements, by caching comprising most
Image of the image of big face as shooting, specifically:
If each face size is less than or equal to preset face size parameter threshold value, and/or, each facial angle is less than or waits
In preset facial angle parameter threshold, and/or, each face location is greater than or equal to preset face location parameter threshold,
Then respectively using the image comprising corresponding maximum face of caching as the image of shooting, the number of the image of shooting is greater than 1.
5. image pickup method as described in claim 1, which is characterized in that if the face number that the image comprising face includes
Greater than 1, then the image according to comprising face obtains following at least one face parameter: face size, facial angle
And face location, comprising:
Obtain following at least one face parameter of each face: face size, people respectively according to the image comprising face
Face angle and face location;
Accordingly, if meeting the requirements in the face parameter and the comparison result of preset parameter threshold, what it is by caching includes
Face and face parameter meet before image of the image of parameter request as shooting, comprising:
It is calculated according to each face parameter of weighted value and acquisition in advance to each face parameter setting each
Face corresponds to face filter value, and according to sorting from small to large;
Retain the corresponding face of the default preceding face filter value of sequence;
Accordingly, if the face parameter and the comparison result of preset parameter threshold are met the requirements, that by caching includes people
Face and face parameter meet image of the image of parameter request as shooting, specifically:
If the face parameter of face and the comparison result of preset parameter threshold that retain are met the requirements, by caching comprising protecting
Image of the image of the face stayed as shooting.
6. image pickup method as described in claim 1, which is characterized in that described by caching is comprising face and face parameter expires
After image of the image of sufficient parameter request as shooting, comprising:
Delete the image comprising face of caching.
7. a kind of filming apparatus, which is characterized in that be applied to terminal device, comprising:
Face datection unit whether there is the image comprising face for detection image preview screen, if it exists comprising face
Image, the caching image comprising face;
Face parameter acquiring unit, for obtaining following at least one face parameter: face according to the image comprising face
Size, facial angle and face location;
Image capturing unit, if being met the requirements for face parameter and the comparison result of preset parameter threshold, by caching
Comprising face and face parameter meets image of the image of parameter request as shooting.
8. filming apparatus as claimed in claim 7, which is characterized in that described image shooting unit is specifically used for:
If face size is less than or equal to preset face size parameter threshold value, and/or, facial angle is less than or equal to preset
Facial angle parameter threshold, and/or, face location is greater than or equal to preset face location parameter threshold, then by the packet of caching
Image of the image containing maximum face as shooting.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579903.2A CN110166696B (en) | 2019-06-28 | 2019-06-28 | Photographing method, photographing device, terminal equipment and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579903.2A CN110166696B (en) | 2019-06-28 | 2019-06-28 | Photographing method, photographing device, terminal equipment and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110166696A true CN110166696A (en) | 2019-08-23 |
CN110166696B CN110166696B (en) | 2021-03-26 |
Family
ID=67637385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910579903.2A Active CN110166696B (en) | 2019-06-28 | 2019-06-28 | Photographing method, photographing device, terminal equipment and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110166696B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572570A (en) * | 2019-09-06 | 2019-12-13 | 广州市奥威亚电子科技有限公司 | intelligent recognition shooting method and system for multi-person scene and storage medium |
CN112154655A (en) * | 2019-09-27 | 2020-12-29 | 深圳市大疆创新科技有限公司 | Composition method, system and storage medium for camera device |
CN112215084A (en) * | 2020-09-17 | 2021-01-12 | 中国银联股份有限公司 | Identification object determination method, device, equipment and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080159628A1 (en) * | 2006-12-27 | 2008-07-03 | Fujifilm Corporation | Image taking apparatus and image taking method |
CN103024165A (en) * | 2012-12-04 | 2013-04-03 | 华为终端有限公司 | Method and device for automatically setting shooting mode |
CN103383595A (en) * | 2012-05-02 | 2013-11-06 | 三星电子株式会社 | Apparatus and method of controlling mobile terminal based on analysis of user's face |
CN103501411A (en) * | 2013-10-09 | 2014-01-08 | 中科创达软件股份有限公司 | Image shooting method and system |
CN105046246A (en) * | 2015-08-31 | 2015-11-11 | 广州市幸福网络技术有限公司 | Identification photo camera capable of performing human image posture photography prompting and human image posture detection method |
CN105635567A (en) * | 2015-12-24 | 2016-06-01 | 小米科技有限责任公司 | Shooting method and device |
CN105872352A (en) * | 2015-12-08 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method and device for shooting picture |
CN105959563A (en) * | 2016-06-14 | 2016-09-21 | 北京小米移动软件有限公司 | Image storing method and image storing apparatus |
US20160353031A1 (en) * | 2015-05-30 | 2016-12-01 | Chiun Mai Communication Systems, Inc. | Electronic device and photo capturing method |
CN106231178A (en) * | 2016-07-22 | 2016-12-14 | 维沃移动通信有限公司 | A kind of self-timer method and mobile terminal |
CN107124543A (en) * | 2017-02-20 | 2017-09-01 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN109413326A (en) * | 2018-09-18 | 2019-03-01 | Oppo(重庆)智能科技有限公司 | Camera control method and Related product |
-
2019
- 2019-06-28 CN CN201910579903.2A patent/CN110166696B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080159628A1 (en) * | 2006-12-27 | 2008-07-03 | Fujifilm Corporation | Image taking apparatus and image taking method |
CN103383595A (en) * | 2012-05-02 | 2013-11-06 | 三星电子株式会社 | Apparatus and method of controlling mobile terminal based on analysis of user's face |
CN103024165A (en) * | 2012-12-04 | 2013-04-03 | 华为终端有限公司 | Method and device for automatically setting shooting mode |
CN103501411A (en) * | 2013-10-09 | 2014-01-08 | 中科创达软件股份有限公司 | Image shooting method and system |
US20160353031A1 (en) * | 2015-05-30 | 2016-12-01 | Chiun Mai Communication Systems, Inc. | Electronic device and photo capturing method |
CN105046246A (en) * | 2015-08-31 | 2015-11-11 | 广州市幸福网络技术有限公司 | Identification photo camera capable of performing human image posture photography prompting and human image posture detection method |
CN105872352A (en) * | 2015-12-08 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method and device for shooting picture |
CN105635567A (en) * | 2015-12-24 | 2016-06-01 | 小米科技有限责任公司 | Shooting method and device |
CN105959563A (en) * | 2016-06-14 | 2016-09-21 | 北京小米移动软件有限公司 | Image storing method and image storing apparatus |
CN106231178A (en) * | 2016-07-22 | 2016-12-14 | 维沃移动通信有限公司 | A kind of self-timer method and mobile terminal |
CN107124543A (en) * | 2017-02-20 | 2017-09-01 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN109413326A (en) * | 2018-09-18 | 2019-03-01 | Oppo(重庆)智能科技有限公司 | Camera control method and Related product |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572570A (en) * | 2019-09-06 | 2019-12-13 | 广州市奥威亚电子科技有限公司 | intelligent recognition shooting method and system for multi-person scene and storage medium |
CN110572570B (en) * | 2019-09-06 | 2021-06-15 | 广州市奥威亚电子科技有限公司 | Intelligent recognition shooting method and system for multi-person scene and storage medium |
CN112154655A (en) * | 2019-09-27 | 2020-12-29 | 深圳市大疆创新科技有限公司 | Composition method, system and storage medium for camera device |
CN112215084A (en) * | 2020-09-17 | 2021-01-12 | 中国银联股份有限公司 | Identification object determination method, device, equipment and storage medium |
WO2022057719A1 (en) * | 2020-09-17 | 2022-03-24 | 中国银联股份有限公司 | Method, apparatus and device for identifying recognition object, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110166696B (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106454139A (en) | Shooting method and mobile terminal | |
CN108200289A (en) | A kind of unread message processing method and mobile terminal | |
CN109120862A (en) | High-dynamic-range image acquisition method, device and mobile terminal | |
CN110166696A (en) | Image pickup method, device, terminal device and computer readable storage medium | |
WO2014032431A1 (en) | Terminal device and method for quickly starting program | |
CN108008896B (en) | Display control method and related product | |
TW201239764A (en) | Method and apparatus for providing quick access to media functions from a locked screen | |
CN108737739A (en) | A kind of preview screen acquisition method, preview screen harvester and electronic equipment | |
CN109215037A (en) | Destination image partition method, device and terminal device | |
CN110007835A (en) | A kind of method for managing object and mobile terminal | |
CN111984130A (en) | Shortcut operation method and device and electronic equipment | |
CN108156368A (en) | A kind of image processing method, terminal and computer readable storage medium | |
KR20230133970A (en) | Photography methods, devices and electronics | |
CN107302666A (en) | Photographic method, mobile terminal and computer-readable recording medium | |
CN112488914A (en) | Image splicing method, device, terminal and computer readable storage medium | |
CN111818050A (en) | Target access behavior detection method, system, device, equipment and storage medium | |
CN112911147A (en) | Display control method, display control device and electronic equipment | |
CN107368255B (en) | Unlocking method, mobile terminal and computer readable storage medium | |
CN108769419A (en) | Photographic method, mobile terminal and computer readable storage medium | |
WO2020057241A1 (en) | Method and apparatus for displaying application program, and terminal device | |
CN109873980A (en) | Video monitoring method, device and terminal device | |
CN108932703A (en) | Image processing method, picture processing unit and terminal device | |
CN108924345A (en) | Photographic method, camera arrangement and mobile terminal | |
CN106227752A (en) | A kind of photograph sharing method and terminal | |
CN109544587A (en) | A kind of FIG pull handle method, apparatus and terminal device |
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 |