This application claims priority to Taiwanese Patent Application No. 104102443 filed on Jan. 26, 2015, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to photography technology, and particularly to a method and an electronic device for taking image of a face with high quality.
A camera can be used for taking images. However, the image effect is not very ideal when a target does not face the camera.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The disclosure, referring to the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one”.
Furthermore, the term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives. The term “comprising” means “of, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
In at least one embodiment, the storage device 10 can include various types of non-transitory computer-readable storage medium. For example, the storage device 10 can be an internal storage system, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 10 can also be an external storage system, such as a hard disk, a storage card, or a data storage medium.
In at least one embodiment, the at least one processor 12 can be a central processing unit (CPU), a microprocessor, or other data processing chip that performs functions of the photographing system 2 in the electronic device 1.
In at least one embodiment, the camera 14 can be placed on the electronic device 1, or suspended from the electronic device 1. The camera 14 can be used to capture an image of a target.
In at least one embodiment, the speaker 18 can be placed on a shell of the electronic device 1, and can be used for emitting sound from an audio file when receiving a control signal from the at least one processor 12.
The predetermination module 20 can predetermine at least one audio file in the storage device 10 of the electronic device 1. In some embodiments, the at least one audio file can comprise: “Harvest turnips”, “Two tigers”, “Several ducks”, voices of people, or any other sound that can draw attention of the target. In some embodiments, the at least one audio file can be downloaded from the Internet.
The detection module 22 can detect whether the camera 14 of the electronic device 1 is activated. After a determination is made that the camera 14 is activated, the camera 14 can capture an image of the target.
In some embodiments, if the electronic device 1 is a smart phone or a tablet computer, the camera 14 can be activated by pressing a camera icon displayed on a touch screen (not shown) of the electronic device 1. In some embodiments, if the electronic device 1 is a camcorder, a video recorder, or a digital camera, the camera 14 can be activated by pressing a button on the electronic device 1. In some embodiments, a focal length of the camera 14 can be zoomed in/zoomed out.
The first control module 240 can control the speaker 18 to emit sound from an audio file stored in the storage device 10.
The second control module 242 can control the speaker 18 to increase a volume of the emitted sound, or replace audio file with another audio file, when a face of the target is not detected by the camera 14 within a predetermined time (e.g., three seconds) from the detected activation of the camera 14. An increase to the volume of the audio file will not hurt the ears of the target.
In first embodiment, the second control module 242 can control the speaker 18 to increase a volume of the emitted sound according to a predetermined relationship between distances to the target from the camera 14. For example, when a distance to the target from the camera 14 is three meters, the second control module 242 can control the volume of the emitted sound to increase three decibels. When a distance to the target from the camera 14 is five meters, the second control module 242 can control the volume of the emitted sound to increase five decibels.
In second embodiment, the second control module 242 can control the volume of the emitted sound to increase by a predetermined value (e.g., three decibels).
In third embodiment, the second control module 242 can control the speaker 18 to play another audio file. For example, the speaker 18 can replace the “Two tigers” currently playing with the “Several ducks”.
In fourth embodiment, the second control module 242 can control the electronic device 1 to emit flash. A range of frequency of the flash is 2-5 hertz.
The determination module 26 can detect whether the face of the target is facing the camera 14 for a predetermined duration of time (e.g., three seconds).
Specifically, the determination module 26 can capture a face of the target, and recognize whether the captured face is square-on to the camera 14 or is showing a side or profile of the face, according to face recognition technology. In some embodiments, when a determination is made that the captured face is square-on, the target can be regarded as facing the camera 14. In some embodiments, when a determination is made that the presented face is a side of the face, the target can be regarded as not facing the camera 14. Face recognition technology is very well known and is not described here.
The acquiring module 28 can trigger the camera 14 to take an image of the face of the target and store the image in the storage device 10 when the face of the target is square-on to the camera 14.
Referring to
At block 31, a predetermination module predetermines at least one audio file in the storage device of the electronic device.
At block 32, the camera detects an activation of the camera of the electronic device.
At block 33, a first control module controls the speaker 18 to emit sound from an audio file stored in the storage device.
At block 34, a determination module determines whether a face of the target is squarely facing the camera for a predetermined duration of time. If the face of a target is not squarely facing the camera for the predetermined duration, the procedure goes to block 35. If the face of a target is squarely facing the camera 14 for the predetermined duration, the procedure goes to block 37.
At block 35, a second control module controls the speaker 18 to increase a volume of the emitted sound or replace the audio file being currently played with another audio file.
At block 36, the determination module again determines whether the face of a target is squarely facing the camera 14 for the predetermined duration. If the face of a target is not squarely facing the camera 14 for the predetermined duration, the procedure returns to block 35. If the face of a target is squarely facing the camera 14 for the predetermined duration, the procedure goes to block 37.
At block 37, a acquiring module triggers the camera 14 to take an image of face of the target and store the image in the storage device 10.
It should be emphasized that the above-described embodiments of the present disclosure, and of any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
104102443 | Jan 2015 | TW | national |