WO2017206308A1 - Photographing method and apparatus - Google Patents

Photographing method and apparatus Download PDF

Info

Publication number
WO2017206308A1
WO2017206308A1 PCT/CN2016/092490 CN2016092490W WO2017206308A1 WO 2017206308 A1 WO2017206308 A1 WO 2017206308A1 CN 2016092490 W CN2016092490 W CN 2016092490W WO 2017206308 A1 WO2017206308 A1 WO 2017206308A1
Authority
WO
WIPO (PCT)
Prior art keywords
watermark
biometric
image
gesture
photographing
Prior art date
Application number
PCT/CN2016/092490
Other languages
French (fr)
Chinese (zh)
Inventor
廖声洋
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2017206308A1 publication Critical patent/WO2017206308A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the present application relates to the field of mobile terminal technologies, for example, to a photographing method and apparatus.
  • the watermark mode of photographing is an emerging photo mode.
  • the watermark mode photo can be added to the photo to add a personalized watermark according to the user's needs.
  • the watermark can be a text that reflects your mood, a fun cartoon pattern, and weather or time conditions, making it easier for users to record their lives.
  • the embodiment of the present application provides a photographing method and device to improve the convenience of a user's photographing operation.
  • an embodiment of the present application provides a photographing method, including:
  • the embodiment of the present application provides a photographing apparatus, including:
  • a biometric recognition module configured to identify an image acquired by the camera to determine whether a predetermined biometric exists in the image
  • the watermark adding module is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
  • an embodiment of the present application provides a non-transitory computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the photographing method.
  • the photographing method and device provided by the embodiment of the present application automatically adjusts the corresponding watermark posture according to the posture of the biometric feature, and does not need to manually adjust the watermark gesture, and the operation is simple, and the convenience of the photographing operation of the user is improved.
  • FIG. 1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for a second embodiment of a photographing method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for a third embodiment of a photographing method according to an embodiment of the present application.
  • FIG. 4 is a flowchart of a method for a fourth embodiment of a photographing method according to an embodiment of the present application.
  • FIG. 5 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present application.
  • FIG. 6 is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present application.
  • FIG. 7 is a structural block diagram of a third embodiment of a photographing apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of hardware of a mobile terminal performing a photographing method according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present application.
  • the method of the embodiment may be performed by a photographing device, and the device may be implemented by software and/or hardware, and Generally integrated in a mobile terminal.
  • an image acquired by the camera is identified, and it is determined whether a predetermined biometric exists in the image.
  • Watermark mode photography is a photo mode. For example, when taking a landscape photo, the user likes to attach a string of text watermarks to record mood and life. For example, when the user is taking a selfie, he likes to superimpose the cartoon watermark, such as superimposing the cat ear watermark on his head.
  • the existing watermark mode photographing requires the user to adjust the size and angle of the cat's ear according to the size of the head in the image acquired by the camera and the angle of the pendulum to match the head of the image.
  • the photographing method provided by the embodiment of the present application firstly identifies an image acquired by the camera, and determines whether a predetermined biometric exists in the image, because when the photographing is performed, the angle and size of the watermark need to be adjusted to be related to the biometric feature in the image. Matching, for example, adding a beard watermark to the user's chin in the image, the beard watermark needs to be adjusted according to the position, size and angle of the user's chin, so it is necessary to first determine whether there is a biological feature about the chin in the image, and for the landscape class The image does not need to match the location of the watermark.
  • the predetermined biometrics can be a face, eyes, mouth, nose, arms, hair, and the like. Biometrics can select human biometrics as well as animal biometrics, which are not limited herein. Therefore, the size and angle of the watermark can be automatically adjusted according to the size and angle of the biometric features in the image. In the above example of adding a cat ear watermark, the user only needs to pose, and the cat ear watermark automatically matches the user's head according to the user's posture.
  • the watermark gesture includes a watermark location, a watermark size, and a watermark angle; the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
  • the position of the biometric in the image acquired by the camera, the biometric size, and the biometric angle are stored in the terminal in the form of an array. If it is recognized that there is a predetermined biometric in the image, the relevant array data of the posture of the biometric is obtained. The relevant array data of the watermark position, the watermark size and the watermark angle are adjusted to match the relevant data of the biometric. Then, the watermark of the watermark gesture is superimposed on the image to obtain a picture that the user needs.
  • the technical solution automatically adjusts the watermark posture according to the posture of the biometric feature, and does not require the user to manually adjust the watermark posture, and the operation is simple, and the convenience of the photographing operation of the user is improved.
  • FIG. 2 is a flowchart of a method for the second embodiment of the photographing method provided by the embodiment of the present application.
  • the embodiment of the present application uses the system when determining whether a predetermined biometric exists. Matches the score threshold and increases the ability for the terminal to automatically take photos.
  • S210 an image acquired by the camera is identified.
  • the image acquired by the camera is recognized, it is possible to first identify whether the image has obvious biometrics. For example, compared with the preset biometric face, it is obvious that the picture of the person's face can be judged, so that the face can be judged later.
  • S220 it is determined whether there is a biometric that satisfies a system matching score threshold in the image. If there is no biometric that satisfies the system matching score threshold in the image, then S230 is performed, if the image exists in the image. If the biometric of the score threshold is matched, then S240 is performed.
  • the data of the predetermined biometric is also preset in the terminal in the form of an array.
  • the shape and color of the preset biometric mouth are at the terminal.
  • the image is stored in the form of an array.
  • the matching of the array data of the acquired image with the preset array data of the biometric mouth exceeds a certain range, the modified part of the acquired image is considered to be a biometric mouth.
  • the matching degree is determined by using a system matching score threshold.
  • the system matching score threshold is 85 points, that is, the array data of a part of the acquired image and the array data of the preset biometrics exceed 85% similarity, you can confirm the camera There are predetermined biometrics in the image acquired by the head.
  • the system matching score threshold value in the present application can be set by the system by default, and can be set by the user. This application is not limited.
  • a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
  • the watermark is superimposed onto the image in a default watermark pose.
  • the default watermark pose can be centered, unscaled, and not rotated.
  • a watermark gesture corresponding to the gesture of the biometric is acquired, and a watermark is superimposed to the image according to the watermark gesture.
  • the biometric corresponding to the watermark exists in the image.
  • the watermark is added to the position of the biometric feature in the image, and the watermark is scaled and rotated according to the size and angle of the biometric feature to obtain the watermarked image.
  • the photographing operation is automatically performed, and the image after the watermark is superimposed is saved.
  • the user does not need to manually click to take a photo, which avoids the problem that the biometrics and the watermark do not match due to the user's body shift when manually clicking on the photo. And the user only needs to select the watermark and the biometrics to get the watermarked image that he wants, which is simple and convenient.
  • the biometric gesture is acquired. And acquiring the corresponding watermark gesture according to the posture of the biometric feature, and superimposing the watermark on the image according to the watermark posture, thereby improving the convenience of the photographing operation of the user.
  • the camera automatically performs the photographing, and the user does not need to manually click the photograph, thereby further improving the convenience of photographing.
  • FIG. 3 is a flowchart of a method for the third embodiment of the photographing method provided by the embodiment of the present application.
  • the second embodiment of the present application adds a preset step of watermark photographing.
  • S310 the photographing function of the watermark mode is turned on.
  • the photo function of the watermark mode is turned on, and the default watermark posture, the predetermined biometric type, and the system matching score threshold are selectively set.
  • the photo mode function of the watermark mode can be turned off.
  • the biometric type such as face, eyes, and mouth
  • the corresponding relationship between the gesture of the biometric feature and the watermark gesture can be set accordingly.
  • the watermark may be a watermark library built in the terminal, or may be downloaded by a third party software to obtain a watermark library.
  • the relative positional relationship between the biometric hair and the watermark in the crown, animal ears, hat, etc. in the watermark library is set, the crown is placed directly above the hair above the head, and the animal ears are placed on opposite sides of the hair on the head.
  • the terminal can automatically add the selected watermark to the biometric related location.
  • the image acquired by the camera is identified, and the biometric feature that satisfies the system matching score threshold is determined in the image. If there is no biometric that satisfies the system matching score threshold in the image, then S340 is performed. If there is a biometric in the image that satisfies the system matching score threshold, then S350 is performed.
  • a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
  • the user Before taking a photo, the user can select their own biometrics and corresponding watermarks. It is also possible to select only the watermark, and the watermark automatically matches the biometric. Since the correspondence between the pose of the biometric and the watermark pose is previously set, the watermark can be automatically matched to the biometric. For example, when the user selects a card sunglasses, the sunglasses automatically match the biometric eye.
  • the posture of the biometric feature selected by the user is obtained, or the watermark is selected, and the watermark automatically corresponds to the biometric feature
  • the posture of the biometric feature in the image is obtained, and the posture of the watermark posture and the biometric feature are adjusted to match.
  • a watermark is superimposed to the image in accordance with the watermark gesture.
  • the default watermark posture, the type of the predetermined biometric feature, and the system matching score threshold value need to be set.
  • the posture of the biometric feature and the watermark posture can be set.
  • the user only needs to select the watermark that he wants to use, and the terminal is The entire photo taking process can be completed to improve the convenience of the photographing operation.
  • FIG. 4 is a flowchart of a method for the fourth embodiment of the photographing method provided by the embodiment of the present application.
  • the embodiment of the present application is an exemplary embodiment based on the third embodiment.
  • the user can add a watermark of the Halloween mask to the self-portrait image.
  • S410 it is detected that the user turns on the camera.
  • S420 it is detected whether the photographing function of the watermark mode is turned on. If the photographing function of turning on the watermark mode is detected, S440 is performed, and if the photographing function of the watermarking mode is not detected, S430 is performed.
  • a sub-option function of the watermark mode photographing is set, wherein the sub-options include a default watermark pose, a predetermined biometric type, and a system matching score threshold.
  • the default watermark gesture is set to be centered, not scaled, and not rotated; the types of predetermined biometrics include face, eyes, nose, mouth, arms, and legs; and the system matching score threshold is set to 85 points.
  • the record of this setting will be retained by the terminal until the user manually changes it next time.
  • the correspondence between the gesture of the biometric and the watermark gesture Illustratively, the watermark of the Halloween mask needs to be laid entirely on the user's face in the image and matched to the eyes, mouth, and the like.
  • the watermark is adjusted to the default watermark pose.
  • S480 it is detected whether the matching degree between the facial contour in the image acquired by the camera and the biometric facial image pre-stored in the terminal exceeds a system matching score threshold, if the facial contour in the image acquired by the camera and the biometric pre-stored in the terminal If the matching degree of the face does not exceed the system matching score threshold, then S470 is performed. If the matching degree of the face contour in the image acquired by the camera and the biometric face pre-stored in the terminal exceeds the system matching score threshold, then S490 is performed.
  • the watermark gesture of the Halloween mask is adjusted to match the posture of the face.
  • the squatting posture is taken, and when the face is tilted by 45 degrees, the terminal is controlled.
  • the Halloween mask is also tilted 45 degrees to match the face.
  • the Halloween mask here is only an example, and other watermarks are equally applicable to this method. Therefore, in this example, after the image of the watermark superimposed on the Halloween mask is photographed and saved, the preview state is restored, and the user is again checked whether the watermark is selected. If the user selects the watermark, the steps of S450 to S4100 are performed for the watermark.
  • the camera by identifying the image acquired by the camera, determining whether there is a biometric that satisfies the system matching score threshold in the image, and if there is a biometric in the image that satisfies the system matching score threshold, acquiring the biometric gesture, And according to the posture of the biometric feature, the corresponding watermark posture is acquired, and the watermark is superimposed on the image according to the watermark posture, and the photograph is automatically photographed and saved, thereby improving the convenience of the photographing operation of the user.
  • the following is an embodiment of a photographing device provided in the embodiment of the present application.
  • the embodiment of the photographing device is implemented based on the foregoing embodiment of the photographing method.
  • the embodiment of the photographing device please refer to the foregoing photographing method.
  • FIG. 5 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present disclosure.
  • the apparatus may be configured in a mobile terminal.
  • the photographing apparatus includes: a biometric identification module 51; Watermark adding module 52.
  • the biometric identification module 51 is configured to identify an image acquired by the camera, and determine whether a predetermined biometric exists in the image;
  • the watermark adding module 52 is configured to acquire a watermark gesture corresponding to the gesture of the biometric when the image has a predetermined biometric, and superimpose the watermark to the image according to the watermark gesture.
  • the camera by identifying the image acquired by the camera, determining whether there is a predetermined biometric in the image, if there is a predetermined biometric in the image, acquiring the posture of the biometric, and acquiring the corresponding watermark according to the posture of the biometric Gesture, and superimpose the watermark on the image according to the watermark gesture.
  • the watermark posture of the scheme is automatically adjusted according to the posture of the biometric feature, and the watermark posture is not required to be manually adjusted, and the operation is simple, and the convenience of the photographing operation of the user is improved.
  • FIG. 6 is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present application.
  • the photographing apparatus includes:
  • the biometric identification module 51 is configured to identify an image acquired by the camera, and determine whether a predetermined biometric exists in the image;
  • the watermark adding module 52 is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
  • the device further includes:
  • the automatic photographing module 53 is configured to automatically photograph and save the image superimposed on the watermark after the watermark is superimposed on the image according to the watermark gesture.
  • the watermark gesture includes a watermark location, a watermark size, and a watermark angle; the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
  • the biometric identification module 51 can be configured as:
  • a biometric is determined in the image that satisfies a system matching score threshold.
  • the watermark adding module 52 is further configured to:
  • a default watermark gesture is acquired, and the watermark is superimposed to the image according to the default watermark gesture.
  • the camera by identifying the image acquired by the camera, determining whether there is a biometric that satisfies the system matching score threshold in the image, and if there is a biometric in the image that satisfies the system matching score threshold, acquiring the biometric gesture, And according to the gesture of the biometric feature, the corresponding watermark gesture is obtained, and the watermark is superimposed on the image according to the watermark gesture, thereby improving the convenience of the user's photographing operation.
  • the camera after the mobile terminal acquires the image after superimposing the watermark, the camera automatically performs the photographing, and the user does not need to manually click the photograph, thereby further improving the convenience of photographing.
  • FIG. 7 is a structural block diagram of a third embodiment of a photographing apparatus according to an embodiment of the present application.
  • the photographing apparatus includes:
  • the biometric identification module 51 is configured to identify an image acquired by the camera, and determine whether a predetermined biometric exists in the image;
  • the watermark adding module 52 is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
  • the photographing device further includes:
  • the automatic photographing module 53 is arranged to automatically take a picture and save the image superimposed on the watermark.
  • the watermark gesture includes a watermark location, a watermark size, and a watermark angle; the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
  • the biometric identification module 51 is configured to:
  • a biometric is determined in the image that satisfies a system matching score threshold.
  • the watermark adding module 52 is further configured to:
  • a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
  • the device further comprises:
  • the watermark mode opening module 54 is configured to enable the photographing function of the watermark mode before the image acquired by the camera is recognized.
  • the device further comprises:
  • the correspondence relationship setting module 55 is configured to set a correspondence relationship between the posture of the biometric feature and the watermark gesture before the image acquired by the camera is recognized.
  • the watermark adding module 52 is further configured to:
  • the default watermark posture, the type of the predetermined biometric feature, and the system matching score threshold need to be set.
  • the correspondence between the biometric feature and the watermark may be set. The user only needs to select the watermark that he wants to use, and the terminal can complete the whole photographing process and improve the convenience of the photographing operation.
  • the above device can perform the photographing method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
  • Embodiments of the present application also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the photographing method of any of the above.
  • FIG. 8 is a schematic structural diagram of hardware of a mobile terminal performing a photographing method according to an embodiment of the present disclosure.
  • the mobile terminal in the embodiment of the present application may be any device with a touch display screen, such as a tablet computer, a mobile phone, an e-reader, a remote controller, a personal computer (PC), a notebook computer, an in-vehicle device, and a network television. , wearable devices, etc.
  • the mobile terminal in the embodiment of the present application includes: at least one processor 81, such as a CPU, at least one memory 82, and at least one receiver 83, at least one transmitter 84, and at least one communication bus 85. .
  • the communication bus 85 is used to implement connection communication between these components.
  • the receiver 83 and the transmitter 84 of the device in this embodiment may be wired transmission ports, or may be wireless devices, for example, including antenna devices, for performing signaling or data communication with other node devices.
  • the memory 82 may be a high speed RAM memory or a non-transitory memory such as at least one disk memory.
  • the memory 82 can also optionally be at least one storage device located remotely from the aforementioned processor 81.
  • a set of program codes is stored in memory 82, and said processor 81 can call the code stored in memory 82 via communication bus 85 to perform the associated functions.
  • the memory 82 stores instructions executable by the at least one processor 81, the instructions being executed by the at least one processor 81 to enable the at least one processor 81 to perform the photographing method of the above-described embodiments.
  • the terminal may further include an input/output device, such as a touch display screen, where the touch display screen is an integration of the touch screen and the display screen, and the touch display screen may be provided with a pressure sensor array.
  • the terminal can detect the pressure parameter through the pressure sensor array, wherein the pressure sensor can be, for example, a resistance strain gauge pressure sensor, a semiconductor strain gauge pressure sensor, a piezoresistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and a resonant pressure.
  • the sensor or the like is used in the embodiment of the present application, but is not limited to the above manner to obtain touch force.
  • the touch display screen may include: a screen; an indium tin oxide pattern disposed under the screen; a touch sensor disposed under the indium tin oxide pattern; and the touch sensor a lower indium tin oxide substrate; and a pressure sensor disposed on an upper surface or a lower surface of the indium tin oxide substrate; or
  • the touch display screen may include: a screen; an indium tin oxide pattern disposed under the screen; a touch sensor disposed under the indium tin oxide pattern; and disposed on the Touch the pressure sensor below the sensor.
  • the processor 81 is configured to identify an image acquired by the camera, determine whether a predetermined biometric exists in the image, and acquire the biometric when a predetermined biometric exists in the image
  • the watermark gesture corresponding to the gesture of the sign is superimposed to the image according to the watermark gesture.
  • the processor 81 may be further configured to automatically photograph and save the image superimposed on the watermark after the watermark is superimposed to the image according to the watermark gesture.
  • the watermark gesture includes a watermark location, a watermark size, and a watermark angle; and the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
  • the determining whether the predetermined biometric is present in the image comprises: determining whether there is a biometric in the image that satisfies a system matching score threshold.
  • the processor 81 is configured to: after determining whether a predetermined biometric exists in the image, if a predetermined biometric does not exist in the image, acquiring a default watermark gesture, and superimposing the watermark according to the default watermark gesture The image.
  • the processor 81 can also be arranged to turn on the photographing function of the watermark mode before recognizing the image acquired by the camera.
  • the processor 81 may be further configured to set a correspondence between the gesture of the biometric and the watermark gesture before recognizing the image acquired by the camera.
  • the processor 81 may be further configured to receive an instruction to select the biometric feature and the watermark before acquiring the watermark gesture corresponding to the gesture of the biometric after the predetermined biometric is present in the image.
  • the acquiring the watermark gesture corresponding to the gesture of the biometric may include: acquiring the selected watermark gesture corresponding to the biometric.
  • the photographing method and device provided by the embodiment of the present application automatically adjusts the corresponding watermark posture according to the posture of the biometric feature, and does not need to manually adjust the watermark gesture, and the operation is simple, and the convenience of the photographing operation of the user is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

A photographing method and apparatus. The method comprises: recognizing an image acquired by a camera, and determining whether the image has a predetermined biological feature; and when the image has the predetermined biological feature, acquiring a watermark posture corresponding to a posture of the biological feature, and superimposing a watermark to the image according to the watermark posture.

Description

拍照方法和装置Photographing method and device
本申请要求于2016年5月31日提交中国专利局,申请号为201610375763.3、发明名称为“一种拍照方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610375763.3, the entire disclosure of which is incorporated herein by reference.
技术领域Technical field
本申请涉及移动终端技术领域,例如涉及一种拍照方法和装置。The present application relates to the field of mobile terminal technologies, for example, to a photographing method and apparatus.
背景技术Background technique
随着移动终端的配置和性能不断的提升,移动终端拍照已经成为人们生活中不可缺少的一种拍照方式,这一拍照方式改变了许多人的生活习惯,自拍已经成为许多年轻人秀出自我的一种方式。手机的相机已经向多模式拍照、多摄像头、趣味性、可玩性的方向发展。With the continuous improvement of the configuration and performance of mobile terminals, taking pictures of mobile terminals has become an indispensable way of taking pictures in people's lives. This way of taking pictures has changed the habits of many people. Self-timer has become a show for many young people. a method. The camera of the mobile phone has been developed in the direction of multi-mode photography, multi-camera, fun, and playability.
其中,水印模式的拍照,为新兴的一种拍照模式。水印模式的拍照可根据用户的需求,拍照时在照片上增添体现个性的水印。水印可以为体现自己心情的文字,具有趣味性的卡通图案,以及天气或时间情况等,更加方便用户记录生活。Among them, the watermark mode of photographing is an emerging photo mode. The watermark mode photo can be added to the photo to add a personalized watermark according to the user's needs. The watermark can be a text that reflects your mood, a fun cartoon pattern, and weather or time conditions, making it easier for users to record their lives.
但是,水印模式的拍照存在着许多操作不便性。如用户在自拍过程中,当用户摆好拍照姿态后,需要多次用手去拖动水印的位置、以及缩放水印的大小、旋转水印角度等,使得水印的姿态和用户的姿态(头像、手势等)相匹配、契合,而用户在调节水印姿态的过程中,自己的姿态又容易发生变化,又需要重新对水印姿态进行调节,最后还需要手动点击拍照,整个过程非常复杂。However, there are many operational inconveniences in the photographing of the watermark mode. For example, after the user is in the self-timer process, when the user poses the photographing posture, the position of the watermark needs to be dragged by hand, and the size of the watermark is rotated, the watermark angle is rotated, etc., so that the posture of the watermark and the posture of the user (avatar, gesture, etc.) Matching and matching, while the user adjusts the watermark posture, his posture is easy to change, and the watermark posture needs to be re-adjusted. Finally, manual tapping is required, and the whole process is very complicated.
发明内容Summary of the invention
本申请实施例提供一种拍照方法和装置,以提高用户拍照操作的便捷性。The embodiment of the present application provides a photographing method and device to improve the convenience of a user's photographing operation.
第一方面,本申请实施例提供了一种拍照方法,包括:In a first aspect, an embodiment of the present application provides a photographing method, including:
对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;以及Identifying an image acquired by the camera to determine whether a predetermined biometric exists in the image;
当所述图像中存在预定的生物特征时,获取所述生物特征的姿态对应的水 印姿态,按照所述水印姿态将水印叠加至所述图像。Obtaining water corresponding to the posture of the biometric when a predetermined biometric exists in the image a print gesture in which a watermark is superimposed to the image in accordance with the watermark gesture.
第二方面,本申请实施例提供了一种拍照装置,包括:In a second aspect, the embodiment of the present application provides a photographing apparatus, including:
生物特征识别模块,设置为对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;以及a biometric recognition module configured to identify an image acquired by the camera to determine whether a predetermined biometric exists in the image;
水印添加模块,设置为当所述图像中存在预定的生物特征时,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。The watermark adding module is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
第三方面,本申请实施例提供了一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述拍照方法。In a third aspect, an embodiment of the present application provides a non-transitory computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the photographing method.
本申请实施例提供的拍照方法和装置,根据生物特征的姿态自动调节对应的水印姿态,不需要手动调节水印姿态,操作简单,提高用户拍照操作的便捷性。The photographing method and device provided by the embodiment of the present application automatically adjusts the corresponding watermark posture according to the posture of the biometric feature, and does not need to manually adjust the watermark gesture, and the operation is simple, and the convenience of the photographing operation of the user is improved.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单的介绍,下面描述中的附图是本申请的部分实施例,对于本领域普通技术人员来讲,还可以根据本申请实施例的内容和这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below. The drawings in the following description are part of the embodiments of the present application. Other drawings can also be obtained by those skilled in the art based on the contents of the embodiments of the present application and the drawings.
图1是本申请实施例提供的拍照方法第一个实施例的方法流程图。FIG. 1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present application.
图2是本申请实施例提供的拍照方法第二个实施例的方法流程图。FIG. 2 is a flowchart of a method for a second embodiment of a photographing method according to an embodiment of the present application.
图3是本申请实施例提供的拍照方法第三个实施例的方法流程图。FIG. 3 is a flowchart of a method for a third embodiment of a photographing method according to an embodiment of the present application.
图4是本申请实施例提供的拍照方法第四个实施例的方法流程图。FIG. 4 is a flowchart of a method for a fourth embodiment of a photographing method according to an embodiment of the present application.
图5是本申请实施例提供的拍照装置第一个实施例的结构方框图。FIG. 5 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present application.
图6是本申请实施例提供的拍照装置第二个实施例的结构方框图。FIG. 6 is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present application.
图7是本申请实施例提供的拍照装置第三个实施例的结构方框图。FIG. 7 is a structural block diagram of a third embodiment of a photographing apparatus according to an embodiment of the present application.
图8本申请实施例提供的执行拍照方法的移动终端的硬件结构示意图。FIG. 8 is a schematic structural diagram of hardware of a mobile terminal performing a photographing method according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作详细地说明。可以理解的是,此处所描 述的实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。The present application will be described in detail below with reference to the accompanying drawings and embodiments. Understandably, as described here The embodiments described are merely illustrative of the present application and are not intended to limit the application. It should also be noted that, for the convenience of description, only some, but not all, of the contents related to the present application are shown in the drawings.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当操作完成时所述处理可以被终止,但是还可以未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe various operations (or steps) as a sequential process, many of the operations can be implemented in parallel, concurrently or concurrently. In addition, the order of operations can be rearranged. The process may be terminated when the operation is completed, but may not be included in the additional steps in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
请参考图1,是本申请实施例提供的拍照方法第一个实施例的方法流程图,本实施例的方法可由拍照装置来执行,所述装置可通过软件和/或硬件的方式实现,并一般可集成于移动终端中。1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present application. The method of the embodiment may be performed by a photographing device, and the device may be implemented by software and/or hardware, and Generally integrated in a mobile terminal.
在S110中,对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征。In S110, an image acquired by the camera is identified, and it is determined whether a predetermined biometric exists in the image.
水印模式拍照是一种拍照模式。例如,用户在拍风景照的时候喜欢附上一串文字的水印,记录心情和生活;又如,用户在自拍的时候,喜欢叠加上卡通的水印,如将猫耳朵水印叠加在自己的头上,而现有的水印模式拍照需要用户根据摄像头获取的图像中自己头的大小和摆拍的角度,调整猫耳朵的大小和角度以和图像中自己的头相匹配。Watermark mode photography is a photo mode. For example, when taking a landscape photo, the user likes to attach a string of text watermarks to record mood and life. For example, when the user is taking a selfie, he likes to superimpose the cartoon watermark, such as superimposing the cat ear watermark on his head. However, the existing watermark mode photographing requires the user to adjust the size and angle of the cat's ear according to the size of the head in the image acquired by the camera and the angle of the pendulum to match the head of the image.
本申请实施例提供的拍照方法,首先对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征,因为在进行拍照时,需要调整水印的角度和大小与图像中的生物特征相匹配,例如,在图像中用户的下巴上添加胡子水印,需要根据用户的下巴的位置、大小以及角度对胡子水印进行调整,所以要先判断图像中是否存在有关下巴的生物特征,而对于风景类图像则不需要匹配水印的位置。The photographing method provided by the embodiment of the present application firstly identifies an image acquired by the camera, and determines whether a predetermined biometric exists in the image, because when the photographing is performed, the angle and size of the watermark need to be adjusted to be related to the biometric feature in the image. Matching, for example, adding a beard watermark to the user's chin in the image, the beard watermark needs to be adjusted according to the position, size and angle of the user's chin, so it is necessary to first determine whether there is a biological feature about the chin in the image, and for the landscape class The image does not need to match the location of the watermark.
预定的生物特征可以为脸庞、眼睛、嘴巴、鼻子、胳膊、头发等。生物特征可以选取人的生物特征也可以选取动物的生物特征,此处不作限定。所以可根据图像中生物特征的大小和角度,自动调节水印的大小和角度。在上述添加猫耳朵水印的示例中,则只需用户摆好姿势,猫耳朵水印根据用户的姿势自动与用户的头相匹配。The predetermined biometrics can be a face, eyes, mouth, nose, arms, hair, and the like. Biometrics can select human biometrics as well as animal biometrics, which are not limited herein. Therefore, the size and angle of the watermark can be automatically adjusted according to the size and angle of the biometric features in the image. In the above example of adding a cat ear watermark, the user only needs to pose, and the cat ear watermark automatically matches the user's head according to the user's posture.
在S120中,当所述图像中存在预定的生物特征时,获取所述生物特征的姿 态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。In S120, when a predetermined biometric is present in the image, the posture of the biometric is acquired The watermark gesture corresponding to the state, the watermark is superimposed to the image according to the watermark gesture.
可选的,所述水印姿态包括水印位置、水印大小和水印角度;所述生物特征的姿态包括生物特征位置、生物特征大小和生物特征角度。Optionally, the watermark gesture includes a watermark location, a watermark size, and a watermark angle; the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
摄像头获取的图像中的生物特征的位置、生物特征大小和生物特征角度以数组的形式存储在终端中,若识别到图片中存在预定的生物特征,则获取该生物特征的姿态的相关数组数据,将水印位置、水印大小和水印角度的相关数组数据调整至与生物特征的相关数据相匹配。再将此水印姿态的水印叠加到图像上,获得用户需要的图片。The position of the biometric in the image acquired by the camera, the biometric size, and the biometric angle are stored in the terminal in the form of an array. If it is recognized that there is a predetermined biometric in the image, the relevant array data of the posture of the biometric is obtained. The relevant array data of the watermark position, the watermark size and the watermark angle are adjusted to match the relevant data of the biometric. Then, the watermark of the watermark gesture is superimposed on the image to obtain a picture that the user needs.
综上,通过对摄像头获取的图像进行识别,判断该图像中是否存在预定的生物特征,若该图像中存在预定的生物特征,则获取生物特征的姿态,并根据生物特征的姿态获取对应的水印姿态,并按照水印姿态把水印叠加到图像上。本技术方案将水印姿态根据生物特征的姿态自动调节,不需要用户手动调节水印姿态,操作简单,提高用户拍照操作的便捷性。In summary, by identifying the image acquired by the camera, determining whether there is a predetermined biometric in the image, if there is a predetermined biometric in the image, acquiring the posture of the biometric, and acquiring the corresponding watermark according to the posture of the biometric Gesture, and superimpose the watermark on the image according to the watermark gesture. The technical solution automatically adjusts the watermark posture according to the posture of the biometric feature, and does not require the user to manually adjust the watermark posture, and the operation is simple, and the convenience of the photographing operation of the user is improved.
请参考图2,是本申请实施例提供的拍照方法第二个实施例的方法流程图,本申请实施例在第一个实施例的基础上,在判断是否存在预定生物特征时,使用了系统匹配分值阈值,并增加了终端自动拍照的功能。在S210中,对摄像头获取的图像进行识别。Please refer to FIG. 2 , which is a flowchart of a method for the second embodiment of the photographing method provided by the embodiment of the present application. On the basis of the first embodiment, the embodiment of the present application uses the system when determining whether a predetermined biometric exists. Matches the score threshold and increases the ability for the terminal to automatically take photos. In S210, an image acquired by the camera is identified.
在对摄像头获取的图像进行识别时,可先识别所述图像中是否具有明显的生物特征。如,与预置的生物特征脸庞相比,明显可以判断出是人的脸部的图片,便于后续对脸部进行判断。When the image acquired by the camera is recognized, it is possible to first identify whether the image has obvious biometrics. For example, compared with the preset biometric face, it is obvious that the picture of the person's face can be judged, so that the face can be judged later.
在S220中,判断所述图像中是否存在满足系统匹配分值阈值的生物特征,若所述图像中不存在满足系统匹配分值阈值的生物特征,则执行S230,若所述图像中存在满足系统匹配分值阈值的生物特征,则执行S240。In S220, it is determined whether there is a biometric that satisfies a system matching score threshold in the image. If there is no biometric that satisfies the system matching score threshold in the image, then S230 is performed, if the image exists in the image. If the biometric of the score threshold is matched, then S240 is performed.
同摄像机获取的图片中的生物特征姿态一样,预定的生物特征的各项数据也是以数组的形式预置在终端中,例如,对于生物特征嘴巴,预置的生物特征嘴巴的形状、颜色在终端中以数组的形式进行储存,当获取的图片中的一部分的数组数据同预置的生物特征嘴巴的数组数据匹配度超过一定范围,则认为获取的图片中的改部分为生物特征嘴巴。该匹配度用系统匹配分值阈值来进行判断,示例性的,所述系统匹配分值阈值为85分,即获取的图片中的一部分的数组数据同预置的生物特征的数组数据,有超过85%的相似度,则可以确认摄像 头获取的图像中存在预定的生物特征。本领域技术人员可以理解,本申请所述系统匹配分值阈值可以由系统默认设置,可由用户自行设置,本申请不做限定。Like the biometric gesture in the picture acquired by the camera, the data of the predetermined biometric is also preset in the terminal in the form of an array. For example, for the biometric mouth, the shape and color of the preset biometric mouth are at the terminal. The image is stored in the form of an array. When the matching of the array data of the acquired image with the preset array data of the biometric mouth exceeds a certain range, the modified part of the acquired image is considered to be a biometric mouth. The matching degree is determined by using a system matching score threshold. Illustratively, the system matching score threshold is 85 points, that is, the array data of a part of the acquired image and the array data of the preset biometrics exceed 85% similarity, you can confirm the camera There are predetermined biometrics in the image acquired by the head. A person skilled in the art can understand that the system matching score threshold value in the present application can be set by the system by default, and can be set by the user. This application is not limited.
在S230中,获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。In S230, a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
若所述图像中不存在满足系统匹配分值阈值的生物特征,则说明图像中没有与水印对应的生物特征。将水印按照默认水印姿态叠加到所述图像上。默认水印姿态可以为水印居中、不缩放和不旋转。If there is no biometric in the image that satisfies the system matching score threshold, then there is no biometric corresponding to the watermark in the image. The watermark is superimposed onto the image in a default watermark pose. The default watermark pose can be centered, unscaled, and not rotated.
在S240中,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。In S240, a watermark gesture corresponding to the gesture of the biometric is acquired, and a watermark is superimposed to the image according to the watermark gesture.
若所述图像中存在满足系统匹配分值阈值的生物特征,则说明图像中存在与水印对应的生物特征。控制水印添加到图像中生物特征所在位置,并根据生物特征的大小和角度,对水印进行缩放和旋转处理,得到添加水印后的图像。If there is a biometric in the image that satisfies the system matching score threshold, then the biometric corresponding to the watermark exists in the image. The watermark is added to the position of the biometric feature in the image, and the watermark is scaled and rotated according to the size and angle of the biometric feature to obtain the watermarked image.
在S250中,自动对叠加所述水印的图像进行拍照和保存。In S250, the image superimposed on the watermark is automatically photographed and saved.
当终端得到添加水印后的图像后,自动进行拍照操作,并将叠加水印后的图像进行保存。不需要用户手动点击拍照,避免了因为手动点击拍照时用户身体移位而导致生物特征与水印不匹配的问题。且用户只需选择水印和生物特征,就可以得到自己想要的带有水印的图像,操作简单、便捷。After the terminal obtains the image after the watermark is added, the photographing operation is automatically performed, and the image after the watermark is superimposed is saved. The user does not need to manually click to take a photo, which avoids the problem that the biometrics and the watermark do not match due to the user's body shift when manually clicking on the photo. And the user only needs to select the watermark and the biometrics to get the watermarked image that he wants, which is simple and convenient.
综上,通过对摄像头获取的图像进行识别,判断该图像中是否存在满足系统匹配分值阈值的生物特征,若该图像中是存在满足系统匹配分值阈值的生物特征,则获取生物特征的姿态,并根据生物特征的姿态获取对应的水印姿态,并按照水印姿态把水印叠加到图像上,提高用户拍照操作的便捷性。同时,移动终端获取叠加水印后的图像后,自动进行拍照,不需要用户手动点击拍照,更加提高了拍照的便捷性。In summary, by identifying the image acquired by the camera, it is determined whether there is a biometric in the image that satisfies the system matching score threshold. If there is a biometric that satisfies the system matching score threshold, the biometric gesture is acquired. And acquiring the corresponding watermark gesture according to the posture of the biometric feature, and superimposing the watermark on the image according to the watermark posture, thereby improving the convenience of the photographing operation of the user. At the same time, after the mobile terminal acquires the image after superimposing the watermark, the camera automatically performs the photographing, and the user does not need to manually click the photograph, thereby further improving the convenience of photographing.
请参考图3,是本申请实施例提供的拍照方法第三个实施例的方法流程图,本申请实施例在第二个实施例的基础上,增加了水印拍照的预设置步骤。在S310中,开启水印模式的拍照功能。Please refer to FIG. 3 , which is a flowchart of a method for the third embodiment of the photographing method provided by the embodiment of the present application. The second embodiment of the present application adds a preset step of watermark photographing. In S310, the photographing function of the watermark mode is turned on.
用户需要使用水印模式拍照时,开启水印模式的拍照功能,可选择性地对默认水印姿态、预定生物特征的类型和系统匹配分值阈值进行设置。当用户不需要使用水印模式的拍照时,将水印模式的拍照功能关闭即可。 When the user needs to take a photo in the watermark mode, the photo function of the watermark mode is turned on, and the default watermark posture, the predetermined biometric type, and the system matching score threshold are selectively set. When the user does not need to take a photo in the watermark mode, the photo mode function of the watermark mode can be turned off.
在S320中,设置所述生物特征的姿态与所述水印姿态的对应关系。In S320, a correspondence between the posture of the biometric and the watermark gesture is set.
在开启水印模式的拍照功能之后,可以设置脸庞、眼睛、嘴巴等生物特征类型,相应的可设置生物特征的姿态与水印姿态的对应关系。所述水印可以为内置于终端的水印库,也可以由第三方软件下载获取的水印库。示例性的,将生物特征头发与水印库中的王冠、动物耳朵、帽子等水印的相对位置关系进行设置,王冠设置于头顶头发的正上方,而动物耳朵设置于头顶头发上相对的两侧。当用户选取了水印后,则终端可自动将选取的水印添加至生物特征相关位置。After the photographing function of the watermark mode is turned on, the biometric type such as face, eyes, and mouth can be set, and the corresponding relationship between the gesture of the biometric feature and the watermark gesture can be set accordingly. The watermark may be a watermark library built in the terminal, or may be downloaded by a third party software to obtain a watermark library. Illustratively, the relative positional relationship between the biometric hair and the watermark in the crown, animal ears, hat, etc. in the watermark library is set, the crown is placed directly above the hair above the head, and the animal ears are placed on opposite sides of the hair on the head. When the user selects the watermark, the terminal can automatically add the selected watermark to the biometric related location.
在S330中,对摄像头获取的图像进行识别,判断所述图像中是否存在满足系统匹配分值阈值的生物特征,若所述图像中不存在满足系统匹配分值阈值的生物特征,则执行S340,若所述图像中存在满足系统匹配分值阈值的生物特征,则执行S350。In S330, the image acquired by the camera is identified, and the biometric feature that satisfies the system matching score threshold is determined in the image. If there is no biometric that satisfies the system matching score threshold in the image, then S340 is performed. If there is a biometric in the image that satisfies the system matching score threshold, then S350 is performed.
在S340中,获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。In S340, a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
在S350中,接收到用户选择生物特征及水印的指令。In S350, an instruction to select a biometric and a watermark by the user is received.
在拍照前,用户可选取自己的生物特征和对应的水印。也可只选取水印,水印自动匹配生物特征。因为之前设置过所述生物特征的姿态与水印姿态的对应关系,所以可由水印自动匹配到生物特征。例如,当用户选取一卡通墨镜,则墨镜自动与生物特征眼睛相匹配。Before taking a photo, the user can select their own biometrics and corresponding watermarks. It is also possible to select only the watermark, and the watermark automatically matches the biometric. Since the correspondence between the pose of the biometric and the watermark pose is previously set, the watermark can be automatically matched to the biometric. For example, when the user selects a card sunglasses, the sunglasses automatically match the biometric eye.
在S360中,获取所述用户选择的所述生物特征对应的所述用户选择的水印姿态。In S360, the watermark gesture selected by the user corresponding to the biometric selected by the user is acquired.
首先获取用户选择的生物特征的姿态,或者选取水印,由水印自动对应到生物特征,获取图片中生物特征的姿态,调整水印姿态和生物特征的姿态相匹配。Firstly, the posture of the biometric feature selected by the user is obtained, or the watermark is selected, and the watermark automatically corresponds to the biometric feature, the posture of the biometric feature in the image is obtained, and the posture of the watermark posture and the biometric feature are adjusted to match.
在S370中,按照所述水印姿态将水印叠加至所述图像。In S370, a watermark is superimposed to the image in accordance with the watermark gesture.
在S380中,自动对叠加所述水印的图像进行拍照和保存。In S380, the image superimposed on the watermark is automatically photographed and saved.
综上,在用户进行拍照时,开启水印模式的拍照功能后,需要对默认水印姿态、预定生物特征的类型和系统匹配分值阈值进行设置,另外的,可设置生物特征的姿态与水印姿态的对应关系,用户仅需选择自己想用的水印,终端即 可完成整个拍照过程,提高拍照操作的便捷性。In summary, after the user performs the photographing, after the photographing function of the watermark mode is turned on, the default watermark posture, the type of the predetermined biometric feature, and the system matching score threshold value need to be set. In addition, the posture of the biometric feature and the watermark posture can be set. Corresponding relationship, the user only needs to select the watermark that he wants to use, and the terminal is The entire photo taking process can be completed to improve the convenience of the photographing operation.
请参考图4,是本申请实施例提供的拍照方法第四个实施例的方法流程图。本申请实施例为在实施例三的基础上的一个示例性实施例。本实施例中,用户可以在自拍图像中给自己加一个万圣节面具的水印。在S410中,检测到用户打开相机。Please refer to FIG. 4 , which is a flowchart of a method for the fourth embodiment of the photographing method provided by the embodiment of the present application. The embodiment of the present application is an exemplary embodiment based on the third embodiment. In this embodiment, the user can add a watermark of the Halloween mask to the self-portrait image. In S410, it is detected that the user turns on the camera.
在S420中,检测是否开启水印模式的拍照功能,若检测到开启水印模式的拍照功能,则执行S440,若没有检测到开启水印模式的拍照功能,则执行S430。In S420, it is detected whether the photographing function of the watermark mode is turned on. If the photographing function of turning on the watermark mode is detected, S440 is performed, and if the photographing function of the watermarking mode is not detected, S430 is performed.
在S430中,结束设置,摄像头进行普通模式拍照。In S430, the setting is ended and the camera takes a picture in the normal mode.
在S440中,设置水印模式拍照的子选项功能,其中,子选项包括默认水印姿态、预定生物特征的类型和系统匹配分值阈值。In S440, a sub-option function of the watermark mode photographing is set, wherein the sub-options include a default watermark pose, a predetermined biometric type, and a system matching score threshold.
本申请实施例中,将默认水印姿态设置为居中、不缩放和不旋转;预定生物特征的类型包括脸庞、眼睛、鼻子、嘴巴、胳膊和腿;系统匹配分值阈值设置为85分。本次设置的记录将会被终端保留,直至用户下次手动去更改。并设置生物特征的姿态与水印姿态的对应关系。示例性的,万圣节面具的水印需要整个铺设到图像中用户的脸庞上,并与眼睛、嘴巴等处相匹配。In the embodiment of the present application, the default watermark gesture is set to be centered, not scaled, and not rotated; the types of predetermined biometrics include face, eyes, nose, mouth, arms, and legs; and the system matching score threshold is set to 85 points. The record of this setting will be retained by the terminal until the user manually changes it next time. And set the correspondence between the gesture of the biometric and the watermark gesture. Illustratively, the watermark of the Halloween mask needs to be laid entirely on the user's face in the image and matched to the eyes, mouth, and the like.
在S450中,检测到用户选取了万圣节面具的水印。In S450, it is detected that the user has selected the watermark of the Halloween mask.
在S460中,根据生物特征的姿态与水印姿态的对应关系,检测摄像头获取的图像中是否有明显的脸部轮廓,若检测到摄像头获取的图像中没有明显的脸部轮廓,则执行S470,若检测到摄像头获取的图像中有明显的脸部轮廓,则执行S480。In S460, according to the correspondence between the posture of the biometric and the watermark posture, detecting whether there is an obvious facial contour in the image acquired by the camera, and if it is detected that there is no obvious facial contour in the image acquired by the camera, executing S470, if When it is detected that there is a significant facial contour in the image acquired by the camera, S480 is performed.
在S470中,将水印调整为默认水印姿态。In S470, the watermark is adjusted to the default watermark pose.
在S480中,检测摄像头获取的图像中的脸部轮廓与终端中预存的生物特征脸庞的匹配度是否超过系统匹配分值阈值,若摄像头获取的图像中的脸部轮廓与终端中预存的生物特征脸庞的匹配度未超过系统匹配分值阈值,则执行S470,若摄像头获取的图像中的脸部轮廓与终端中预存的生物特征脸庞的匹配度超过系统匹配分值阈值,则执行S490。In S480, it is detected whether the matching degree between the facial contour in the image acquired by the camera and the biometric facial image pre-stored in the terminal exceeds a system matching score threshold, if the facial contour in the image acquired by the camera and the biometric pre-stored in the terminal If the matching degree of the face does not exceed the system matching score threshold, then S470 is performed. If the matching degree of the face contour in the image acquired by the camera and the biometric face pre-stored in the terminal exceeds the system matching score threshold, then S490 is performed.
在S490中,依据生物特征脸庞的姿态,调整万圣节面具的水印姿态,使之与脸庞的姿态相匹配。In S490, according to the posture of the biometric face, the watermark gesture of the Halloween mask is adjusted to match the posture of the face.
例如,用户在拍摄时,歪头姿势进行拍摄,此时脸庞倾斜45度,则终端控 制万圣节面具同样倾斜45度,以和脸庞相匹配。For example, when the user is shooting, the squatting posture is taken, and when the face is tilted by 45 degrees, the terminal is controlled. The Halloween mask is also tilted 45 degrees to match the face.
在S4100中,自动对叠加万圣节面具的水印的图像进行拍照和保存。In S4100, the image of the watermark superimposed on the Halloween mask is automatically photographed and saved.
在S4110中,恢复预览状态,返回执行S450。In S4110, the preview state is restored, and execution returns to S450.
值得说明的是,这里的万圣节面具仅为一个示例,其他水印同样适用本方法。所以本示例中对叠加万圣节面具的水印的图像进行拍照和保存后,恢复预览状态,再次检测用户是否选择了水印,若用户选择了水印,则针对该水印执行S450~S4100的步骤。It is worth noting that the Halloween mask here is only an example, and other watermarks are equally applicable to this method. Therefore, in this example, after the image of the watermark superimposed on the Halloween mask is photographed and saved, the preview state is restored, and the user is again checked whether the watermark is selected. If the user selects the watermark, the steps of S450 to S4100 are performed for the watermark.
综上,通过对摄像头获取的图像进行识别,判断该图像中是否存在满足系统匹配分值阈值的生物特征,若该图像中存在满足系统匹配分值阈值的生物特征,则获取生物特征的姿态,并根据生物特征的姿态获取对应的水印姿态,并按照水印姿态把水印叠加到图像上,并且自动拍照并保存图片,提高用户拍照操作的便捷性。In summary, by identifying the image acquired by the camera, determining whether there is a biometric that satisfies the system matching score threshold in the image, and if there is a biometric in the image that satisfies the system matching score threshold, acquiring the biometric gesture, And according to the posture of the biometric feature, the corresponding watermark posture is acquired, and the watermark is superimposed on the image according to the watermark posture, and the photograph is automatically photographed and saved, thereby improving the convenience of the photographing operation of the user.
以下是本申请实施方式中提供的一种拍照装置的实施例,拍照装置的实施例基于前述的拍照方法的实施例实现,在拍照装置的实施例中未尽的描述,请参考前述的拍照方法的实施例。The following is an embodiment of a photographing device provided in the embodiment of the present application. The embodiment of the photographing device is implemented based on the foregoing embodiment of the photographing method. In the embodiment of the photographing device, please refer to the foregoing photographing method. An embodiment.
请参考图5,是本申请实施例提供的拍照装置第一个实施例的结构方框图,该装置可配置于移动终端中,如图5所示,该拍照装置,包括:生物特征识别模块51以及水印添加模块52。FIG. 5 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present disclosure. The apparatus may be configured in a mobile terminal. As shown in FIG. 5, the photographing apparatus includes: a biometric identification module 51; Watermark adding module 52.
其中,生物特征识别模块51,设置为对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;以及The biometric identification module 51 is configured to identify an image acquired by the camera, and determine whether a predetermined biometric exists in the image;
水印添加模块52,设置为当所述图像存在预定的生物特征时,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。The watermark adding module 52 is configured to acquire a watermark gesture corresponding to the gesture of the biometric when the image has a predetermined biometric, and superimpose the watermark to the image according to the watermark gesture.
综上,通过对摄像头获取的图像进行识别,判断该图像中是否存在预定的生物特征,若该图像中存在预定的生物特征,则获取生物特征的姿态,并根据生物特征的姿态获取对应的水印姿态,并按照水印姿态把水印叠加到图像上。本方案水印姿态根据生物特征的姿态自动调节,不需要手动调节水印姿态,操作简单,提高用户拍照操作的便捷性。In summary, by identifying the image acquired by the camera, determining whether there is a predetermined biometric in the image, if there is a predetermined biometric in the image, acquiring the posture of the biometric, and acquiring the corresponding watermark according to the posture of the biometric Gesture, and superimpose the watermark on the image according to the watermark gesture. The watermark posture of the scheme is automatically adjusted according to the posture of the biometric feature, and the watermark posture is not required to be manually adjusted, and the operation is simple, and the convenience of the photographing operation of the user is improved.
请参考图6,是本申请实施例提供的拍照装置第二个实施例的结构方框图。如图6所示,该拍照装置,包括: Please refer to FIG. 6 , which is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present application. As shown in FIG. 6, the photographing apparatus includes:
生物特征识别模块51,设置为对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;The biometric identification module 51 is configured to identify an image acquired by the camera, and determine whether a predetermined biometric exists in the image;
水印添加模块52,设置为当所述图像中存在预定的生物特征时,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。The watermark adding module 52 is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
其中,所述装置,还包括:The device further includes:
自动拍照模块53,设置为在所述按照所述水印姿态将水印叠加至所述图像之后,自动对叠加所述水印的图像进行拍照和保存。The automatic photographing module 53 is configured to automatically photograph and save the image superimposed on the watermark after the watermark is superimposed on the image according to the watermark gesture.
其中,所述水印姿态包括水印位置、水印大小和水印角度;所述生物特征的姿态包括生物特征位置、生物特征大小和生物特征角度。The watermark gesture includes a watermark location, a watermark size, and a watermark angle; the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
其中,生物特征识别模块51,可以设置为:The biometric identification module 51 can be configured as:
判断所述图像中是否存在满足系统匹配分值阈值的生物特征。A biometric is determined in the image that satisfies a system matching score threshold.
其中,水印添加模块52,还设置为:The watermark adding module 52 is further configured to:
在所述判断所述图像中是否存在预定的生物特征之后,当所述图像中不存在预定的生物特征时,获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。After determining whether there is a predetermined biometric in the image, when there is no predetermined biometric in the image, a default watermark gesture is acquired, and the watermark is superimposed to the image according to the default watermark gesture.
综上,通过对摄像头获取的图像进行识别,判断该图像中是否存在满足系统匹配分值阈值的生物特征,若该图像中存在满足系统匹配分值阈值的生物特征,则获取生物特征的姿态,并根据生物特征的姿态获取对应的水印姿态,并按照水印姿态把水印叠加到图像上,提高用户拍照的操作的便捷性。同时,移动终端获取叠加水印后的图像后,自动进行拍照,不需要用户手动点击拍照,更加提高了拍照的便捷性。In summary, by identifying the image acquired by the camera, determining whether there is a biometric that satisfies the system matching score threshold in the image, and if there is a biometric in the image that satisfies the system matching score threshold, acquiring the biometric gesture, And according to the gesture of the biometric feature, the corresponding watermark gesture is obtained, and the watermark is superimposed on the image according to the watermark gesture, thereby improving the convenience of the user's photographing operation. At the same time, after the mobile terminal acquires the image after superimposing the watermark, the camera automatically performs the photographing, and the user does not need to manually click the photograph, thereby further improving the convenience of photographing.
请参考图7,是本申请实施例提供的拍照装置第三个实施例的结构方框图。如图7所示,该拍照装置,包括:Please refer to FIG. 7, which is a structural block diagram of a third embodiment of a photographing apparatus according to an embodiment of the present application. As shown in FIG. 7, the photographing apparatus includes:
生物特征识别模块51,设置为对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;The biometric identification module 51 is configured to identify an image acquired by the camera, and determine whether a predetermined biometric exists in the image;
水印添加模块52,设置为当所述图像中存在预定的生物特征时,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。The watermark adding module 52 is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
其中,所述拍照装置,还包括: The photographing device further includes:
自动拍照模块53,设置为自动对叠加所述水印的图像进行拍照和保存。The automatic photographing module 53 is arranged to automatically take a picture and save the image superimposed on the watermark.
其中,所述水印姿态包括水印位置、水印大小和水印角度;所述生物特征的姿态包括生物特征位置、生物特征大小和生物特征角度。The watermark gesture includes a watermark location, a watermark size, and a watermark angle; the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
其中,生物特征识别模块51,设置为:The biometric identification module 51 is configured to:
判断所述图像中是否存在满足系统匹配分值阈值的生物特征。A biometric is determined in the image that satisfies a system matching score threshold.
其中,水印添加模块52,还设置为:The watermark adding module 52 is further configured to:
当所述图像中不存在预定的生物特征时,获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。When there is no predetermined biometric in the image, a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
其中,所述装置还包括:Wherein, the device further comprises:
水印模式开启模块54,设置为在所述对摄像头获取的图像进行识别之前,开启水印模式的拍照功能。The watermark mode opening module 54 is configured to enable the photographing function of the watermark mode before the image acquired by the camera is recognized.
其中,所述装置还包括:Wherein, the device further comprises:
对应关系设置模块55,设置为在所述对摄像头获取的图像进行识别之前,设置所述生物特征的姿态与所述水印姿态的对应关系。The correspondence relationship setting module 55 is configured to set a correspondence relationship between the posture of the biometric feature and the watermark gesture before the image acquired by the camera is recognized.
其中,水印添加模块52,还设置为:The watermark adding module 52 is further configured to:
当所述图像中存在预定的生物特征之后,获取所述生物特征的姿态对应的水印姿态之前,接收用户选择生物特征及水印的指令;Receiving, by the user, an instruction to select a biometric feature and a watermark before acquiring a watermark gesture corresponding to the gesture of the biometric feature after the predetermined biometric feature exists in the image;
所述获取所述生物特征的姿态对应的水印姿态,包括:And obtaining the watermark gesture corresponding to the posture of the biometric feature, including:
获取所述用户选择的所述生物特征对应的所述用户选择的水印姿态。Obtaining the watermark gesture selected by the user corresponding to the biometric selected by the user.
综上,在用户进行拍照时,开启水印模式的拍照功能后,需要对默认水印姿态、预定生物特征的类型和系统匹配分值阈值进行设置,另外的,可设置生物特征与水印的对应关系,用户仅需选择自己想用的水印,终端即可完成整个拍照过程,提高拍照操作的便捷性。In summary, when the user performs the photographing, after the photographing function of the watermark mode is turned on, the default watermark posture, the type of the predetermined biometric feature, and the system matching score threshold need to be set. In addition, the correspondence between the biometric feature and the watermark may be set. The user only needs to select the watermark that he wants to use, and the terminal can complete the whole photographing process and improve the convenience of the photographing operation.
上述装置可执行本申请任意实施例所提供的拍照方法,具备执行方法相应的功能模块和有益效果。The above device can perform the photographing method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
本申请的实施例还提供了一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一项的拍照方法。 Embodiments of the present application also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the photographing method of any of the above.
图8为本申请实施例提供的执行拍照方法的移动终端的硬件结构示意图。本申请实施例中的移动终端可以是任何具备触控显示屏的设备,例如:平板电脑、手机、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等。如图8所示,本申请实施例中的移动终端包括:至少一个处理器81,例如CPU,至少一个存储器82,还可以包括至少一个接收器83,至少一个发送器84,至少一个通信总线85。其中,通信总线85用于实现这些组件之间的连接通信。其中,本申请实施例中装置的接收器83和发送器84可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他节点设备进行信令或数据的通信。存储器82可以是高速RAM存储器,也可以是非瞬时性存储器(non-transitory memory),例如至少一个磁盘存储器。存储器82可选的还可以是至少一个位于远离前述处理器81的存储装置。存储器82中存储一组程序代码,且所述处理器81可通过通信总线85,调用存储器82中存储的代码以执行相关的功能。所述存储器82存储有可被所述至少一个处理器81执行的指令,所述指令被所述至少一个处理器81执行,以使所述至少一个处理器81能够执行上述实施例的拍照方法。FIG. 8 is a schematic structural diagram of hardware of a mobile terminal performing a photographing method according to an embodiment of the present disclosure. The mobile terminal in the embodiment of the present application may be any device with a touch display screen, such as a tablet computer, a mobile phone, an e-reader, a remote controller, a personal computer (PC), a notebook computer, an in-vehicle device, and a network television. , wearable devices, etc. As shown in FIG. 8, the mobile terminal in the embodiment of the present application includes: at least one processor 81, such as a CPU, at least one memory 82, and at least one receiver 83, at least one transmitter 84, and at least one communication bus 85. . Among them, the communication bus 85 is used to implement connection communication between these components. The receiver 83 and the transmitter 84 of the device in this embodiment may be wired transmission ports, or may be wireless devices, for example, including antenna devices, for performing signaling or data communication with other node devices. The memory 82 may be a high speed RAM memory or a non-transitory memory such as at least one disk memory. The memory 82 can also optionally be at least one storage device located remotely from the aforementioned processor 81. A set of program codes is stored in memory 82, and said processor 81 can call the code stored in memory 82 via communication bus 85 to perform the associated functions. The memory 82 stores instructions executable by the at least one processor 81, the instructions being executed by the at least one processor 81 to enable the at least one processor 81 to perform the photographing method of the above-described embodiments.
所述终端还可以包括输入/输出装置,例如触控显示屏,所述触控显示屏为所述触控屏和所述显示屏的集成,该触控显示屏中可以设置有压力传感器阵列,终端能够通过该压力传感器阵列检测压力参数,其中,上述压力传感器例如可以是电阻应变片压力传感器、半导体应变片压力传感器、压阻式压力传感器、电感式压力传感器、电容式压力传感器、谐振式压力传感器等,本申请实施例中采用但不限于上述方式来获取触控力度。The terminal may further include an input/output device, such as a touch display screen, where the touch display screen is an integration of the touch screen and the display screen, and the touch display screen may be provided with a pressure sensor array. The terminal can detect the pressure parameter through the pressure sensor array, wherein the pressure sensor can be, for example, a resistance strain gauge pressure sensor, a semiconductor strain gauge pressure sensor, a piezoresistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and a resonant pressure. The sensor or the like is used in the embodiment of the present application, but is not limited to the above manner to obtain touch force.
举例来说,所述触控显示屏可以包括:屏面;设置于所述屏面下方的铟锡氧化物图形;设置于所述铟锡氧化物图形下方的触摸传感器;设置于所述触摸传感器下方的铟锡氧化物基板;以及设置于所述铟锡氧化物基板的上表面或者下表面的压力传感器;或者For example, the touch display screen may include: a screen; an indium tin oxide pattern disposed under the screen; a touch sensor disposed under the indium tin oxide pattern; and the touch sensor a lower indium tin oxide substrate; and a pressure sensor disposed on an upper surface or a lower surface of the indium tin oxide substrate; or
又举例来说,所述触控显示屏可以包括:屏面;设置于所述屏面下方的铟锡氧化物图形;设置于所述铟锡氧化物图形下方的触摸传感器;以及设置于所述触摸传感器下方的压力传感器。For another example, the touch display screen may include: a screen; an indium tin oxide pattern disposed under the screen; a touch sensor disposed under the indium tin oxide pattern; and disposed on the Touch the pressure sensor below the sensor.
处理器81设置为对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;以及当所述图像中存在预定的生物特征时,获取所述生物特 征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。The processor 81 is configured to identify an image acquired by the camera, determine whether a predetermined biometric exists in the image, and acquire the biometric when a predetermined biometric exists in the image The watermark gesture corresponding to the gesture of the sign is superimposed to the image according to the watermark gesture.
处理器81还可以设置为在所述按照所述水印姿态将水印叠加至所述图像之后,自动对叠加所述水印的图像进行拍照和保存。可选地,所述水印姿态包括水印位置、水印大小和水印角度;以及所述生物特征的姿态包括生物特征位置、生物特征大小和生物特征角度。The processor 81 may be further configured to automatically photograph and save the image superimposed on the watermark after the watermark is superimposed to the image according to the watermark gesture. Optionally, the watermark gesture includes a watermark location, a watermark size, and a watermark angle; and the gesture of the biometric includes a biometric location, a biometric size, and a biometric angle.
可选地,所述判断所述图像中是否存在预定的生物特征,包括:判断所述图像中是否存在满足系统匹配分值阈值的生物特征。Optionally, the determining whether the predetermined biometric is present in the image comprises: determining whether there is a biometric in the image that satisfies a system matching score threshold.
处理器81设置为,在所述判断所述图像中是否存在预定的生物特征之后,若所述图像中不存在预定的生物特征,则获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。The processor 81 is configured to: after determining whether a predetermined biometric exists in the image, if a predetermined biometric does not exist in the image, acquiring a default watermark gesture, and superimposing the watermark according to the default watermark gesture The image.
处理器81还可以设置为在对摄像头获取的图像进行识别之前,开启水印模式的拍照功能。The processor 81 can also be arranged to turn on the photographing function of the watermark mode before recognizing the image acquired by the camera.
处理器81还可以设置为在对摄像头获取的图像进行识别之前,设置所述生物特征的姿态与所述水印姿态的对应关系。The processor 81 may be further configured to set a correspondence between the gesture of the biometric and the watermark gesture before recognizing the image acquired by the camera.
处理器81还可以设置为当所述图像中存在预定的生物特征之后,获取所述生物特征的姿态对应的水印姿态之前,接收选择生物特征及水印的指令。其中,所述获取所述生物特征的姿态对应的水印姿态,可以包括:获取选择的所述生物特征对应的水印姿态。The processor 81 may be further configured to receive an instruction to select the biometric feature and the watermark before acquiring the watermark gesture corresponding to the gesture of the biometric after the predetermined biometric is present in the image. The acquiring the watermark gesture corresponding to the gesture of the biometric may include: acquiring the selected watermark gesture corresponding to the biometric.
工业实用性Industrial applicability
本申请实施例提供的拍照方法和装置,根据生物特征的姿态自动调节对应的水印姿态,不需要手动调节水印姿态,操作简单,提高用户拍照操作的便捷性。 The photographing method and device provided by the embodiment of the present application automatically adjusts the corresponding watermark posture according to the posture of the biometric feature, and does not need to manually adjust the watermark gesture, and the operation is simple, and the convenience of the photographing operation of the user is improved.

Claims (17)

  1. 一种拍照方法,包括:A method of photographing, including:
    对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;以及Identifying an image acquired by the camera to determine whether a predetermined biometric exists in the image;
    当所述图像中存在预定的生物特征时,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。When a predetermined biometric is present in the image, a watermark gesture corresponding to the pose of the biometric is acquired, and a watermark is superimposed to the image according to the watermark gesture.
  2. 根据权利要求1所述的方法,所述按照所述水印姿态将水印叠加至所述图像之后,还包括:The method of claim 1, after the watermark is superimposed on the image according to the watermark gesture, further comprising:
    自动对叠加所述水印的图像进行拍照和保存。The image superimposed on the watermark is automatically photographed and saved.
  3. 根据权利要求1所述的方法,其中:The method of claim 1 wherein:
    所述水印姿态包括水印位置、水印大小和水印角度;以及The watermark gesture includes a watermark location, a watermark size, and a watermark angle;
    所述生物特征的姿态包括生物特征位置、生物特征大小和生物特征角度。The pose of the biometric includes a biometric location, a biometric size, and a biometric angle.
  4. 根据权利要求1所述的方法,其中,所述判断所述图像中是否存在预定的生物特征,包括:The method of claim 1 wherein said determining whether said predetermined biometric is present in said image comprises:
    判断所述图像中是否存在满足系统匹配分值阈值的生物特征。A biometric is determined in the image that satisfies a system matching score threshold.
  5. 根据权利要求1所述的方法,所述判断所述图像中是否存在预定的生物特征之后,还包括:The method of claim 1, after determining whether the predetermined biometric is present in the image, further comprising:
    若所述图像中不存在预定的生物特征,则获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。If there is no predetermined biometric in the image, a default watermark gesture is obtained, and the watermark is superimposed to the image according to the default watermark gesture.
  6. 根据权利要求1所述的方法,所述对摄像头获取的图像进行识别之前,还包括:The method of claim 1, before the recognizing the image acquired by the camera, further comprising:
    开启水印模式的拍照功能。Turn on the photo mode of the watermark mode.
  7. 根据权利要求1所述的方法,所述对摄像头获取的图像进行识别之前,还包括: The method of claim 1, before the recognizing the image acquired by the camera, further comprising:
    设置所述生物特征的姿态与所述水印姿态的对应关系。Corresponding relationship between the posture of the biometric and the watermark gesture is set.
  8. 根据权利要求1所述的方法,当所述图像中存在预定的生物特征之后,获取所述生物特征的姿态对应的水印姿态之前,还包括:The method according to claim 1, after the predetermined biometric feature is present in the image, before acquiring the watermark gesture corresponding to the gesture of the biometric, the method further includes:
    接收选择生物特征及水印的指令;Receiving an instruction to select a biometric and a watermark;
    所述获取所述生物特征的姿态对应的水印姿态,包括:And obtaining the watermark gesture corresponding to the posture of the biometric feature, including:
    获取选择的所述生物特征对应的水印姿态。Obtaining a watermark gesture corresponding to the selected biometric.
  9. 一种拍照装置,包括:A photographing device comprising:
    生物特征识别模块,设置为对摄像头获取的图像进行识别,判断所述图像中是否存在预定的生物特征;以及a biometric recognition module configured to identify an image acquired by the camera to determine whether a predetermined biometric exists in the image;
    水印添加模块,设置为当所述图像中存在预定的生物特征时,获取所述生物特征的姿态对应的水印姿态,按照所述水印姿态将水印叠加至所述图像。The watermark adding module is configured to acquire a watermark gesture corresponding to the gesture of the biometric when a predetermined biometric exists in the image, and superimpose the watermark to the image according to the watermark gesture.
  10. 根据权利要求9所述的装置,还包括:The apparatus of claim 9 further comprising:
    自动拍照模块,设置为在所述按照所述水印姿态将水印叠加至所述图像之后,自动对叠加所述水印的图像进行拍照和保存。The automatic photographing module is configured to automatically photograph and save the image superimposed on the watermark after the watermark is superimposed on the image according to the watermark gesture.
  11. 根据权利要求9所述的装置,其中:The device of claim 9 wherein:
    所述水印姿态包括水印位置、水印大小和水印角度;以及The watermark gesture includes a watermark location, a watermark size, and a watermark angle;
    所述生物特征的姿态包括生物特征位置、生物特征大小和生物特征角度。The pose of the biometric includes a biometric location, a biometric size, and a biometric angle.
  12. 根据权利要求9所述的装置,其中,所述生物特征识别模块,设置为:The apparatus of claim 9, wherein the biometric identification module is configured to:
    判断所述图像中是否存在满足系统匹配分值阈值的生物特征。A biometric is determined in the image that satisfies a system matching score threshold.
  13. 根据权利要求9所述的装置,其中,所述水印添加模块,还设置为:The device according to claim 9, wherein the watermark adding module is further configured to:
    在所述判断所述图像中是否存在预定的生物特征之后,当所述图像中不存在预定的生物特征时,获取默认水印姿态,按照所述默认水印姿态将水印叠加至所述图像。 After determining whether there is a predetermined biometric in the image, when there is no predetermined biometric in the image, a default watermark gesture is acquired, and the watermark is superimposed to the image according to the default watermark gesture.
  14. 根据权利要求9所述的装置,还包括:The apparatus of claim 9 further comprising:
    水印模式开启模块,设置为在所述对摄像头获取的图像进行识别之前,开启水印模式的拍照功能。The watermark mode on module is configured to enable the photographing function of the watermark mode before the image acquired by the camera is recognized.
  15. 根据权利要求9所述的装置,还包括:The apparatus of claim 9 further comprising:
    对应关系设置模块,设置为在所述对摄像头获取的图像进行识别之前,设置所述生物特征的姿态与所述水印姿态的对应关系。The correspondence relationship setting module is configured to set a correspondence between the posture of the biometric feature and the watermark gesture before the image acquired by the camera is recognized.
  16. 根据权利要求9所述的装置,其中:The device of claim 9 wherein:
    所述水印添加模块,还设置为:The watermark adding module is further configured to:
    当所述图像中存在预定的生物特征之后,获取所述生物特征的姿态对应的水印姿态之前,接收选择生物特征及水印的指令;Receiving an instruction to select a biometric feature and a watermark before acquiring a watermark gesture corresponding to the pose of the biometric after the predetermined biometric is present in the image;
    所述获取所述生物特征的姿态对应的水印姿态,包括:And obtaining the watermark gesture corresponding to the posture of the biometric feature, including:
    获取选择的所述生物特征对应的水印姿态。Obtaining a watermark gesture corresponding to the selected biometric.
  17. 一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-8中任一项拍照方法。 A non-transitory computer readable storage medium storing computer executable instructions arranged to perform the photographing method of any of claims 1-8.
PCT/CN2016/092490 2016-05-31 2016-07-30 Photographing method and apparatus WO2017206308A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610375763.3A CN105872338A (en) 2016-05-31 2016-05-31 Photographing method and device
CN201610375763.3 2016-05-31

Publications (1)

Publication Number Publication Date
WO2017206308A1 true WO2017206308A1 (en) 2017-12-07

Family

ID=56643050

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092490 WO2017206308A1 (en) 2016-05-31 2016-07-30 Photographing method and apparatus

Country Status (2)

Country Link
CN (1) CN105872338A (en)
WO (1) WO2017206308A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341608A (en) * 2016-10-28 2017-01-18 维沃移动通信有限公司 Emotion based shooting method and mobile terminal
CN107291348A (en) * 2017-05-31 2017-10-24 珠海市魅族科技有限公司 Photographic method and device, computer equipment and computer-readable recording medium
CN107274463B (en) * 2017-06-22 2020-08-04 口碑控股有限公司 Image processing method and device and electronic equipment
CN111108741A (en) * 2017-09-25 2020-05-05 深圳传音通讯有限公司 Editing method and device for camera watermark
CN110858874B (en) * 2018-08-24 2021-07-06 青岛海信移动通信技术股份有限公司 Method and system for adding watermark to picture and photographing device
CN109712066A (en) * 2018-11-26 2019-05-03 深圳艺达文化传媒有限公司 From animal head ear adding method and the Related product of shooting the video
CN109660717A (en) * 2018-11-26 2019-04-19 深圳艺达文化传媒有限公司 From the stacking method and Related product of the earphone image that shoots the video
CN109658328A (en) * 2018-11-26 2019-04-19 深圳艺达文化传媒有限公司 From animal head ear processing method and the Related product of shooting the video
CN109658480A (en) * 2018-12-04 2019-04-19 深圳市子瑜杰恩科技有限公司 Short video glass stacking method and Related product
CN112188031A (en) * 2019-11-22 2021-01-05 迅镭智能(广州)科技有限公司 Image processing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080163344A1 (en) * 2006-12-29 2008-07-03 Cheng-Hsien Yang Terminal try-on simulation system and operating and applying method thereof
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
CN104917967A (en) * 2015-05-30 2015-09-16 深圳市金立通信设备有限公司 Photographing method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728780A (en) * 2004-07-29 2006-02-01 台湾梦工场科技股份有限公司 Method and system of instant interactive images and sounds
KR101755598B1 (en) * 2010-10-27 2017-07-07 삼성전자주식회사 Digital photographing apparatus and control method thereof
CN103607537B (en) * 2013-10-31 2017-10-27 北京智谷睿拓技术服务有限公司 The control method and camera of camera
CN104158964B (en) * 2014-08-05 2016-08-03 广东欧珀移动通信有限公司 The method that the intelligence of a kind of smart mobile phone expresses emotion

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080163344A1 (en) * 2006-12-29 2008-07-03 Cheng-Hsien Yang Terminal try-on simulation system and operating and applying method thereof
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
CN104917967A (en) * 2015-05-30 2015-09-16 深圳市金立通信设备有限公司 Photographing method and terminal

Also Published As

Publication number Publication date
CN105872338A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017206308A1 (en) Photographing method and apparatus
TWI751161B (en) Terminal equipment, smart phone, authentication method and system based on face recognition
WO2019219065A1 (en) Video analysis method and device
JP6613740B2 (en) Display control apparatus, display control method, and display control program
CN107767333B (en) Method and equipment for beautifying and photographing and computer storage medium
JP5553141B2 (en) Image processing system, image processing apparatus, image processing method, and program
KR102018887B1 (en) Image preview using detection of body parts
US9930269B2 (en) Apparatus and method for processing image in device having camera
KR102383129B1 (en) Method for correcting image based on category and recognition rate of objects included image and electronic device for the same
KR20200101206A (en) Method for providing shoot mode based on virtual character and electronic device performing thereof
US11461949B2 (en) Electronic device for providing avatar and operating method thereof
WO2021078001A1 (en) Image enhancement method and apparatus
US11062426B2 (en) Electronic device and image processing method
US10929961B2 (en) Electronic device and method for correcting images using external electronic device
CN111552389A (en) Method and device for eliminating fixation point jitter and storage medium
US20150187056A1 (en) Electronic apparatus and image processing method
KR102532746B1 (en) Electronic device and control method thereof
KR20200113522A (en) Method for performing fucntion according to gesture input and electronic device performing thereof
CN107995417B (en) Photographing method and mobile terminal
US11587205B2 (en) Method and device for generating avatar on basis of corrected image
US20160134797A1 (en) Self portrait image preview and capture techniques
US11284020B2 (en) Apparatus and method for displaying graphic elements according to object
CN106060383A (en) Image obtaining method and system
KR20210107958A (en) Apparatus for stabilizing digital image, operating method thereof, and electronic device having the same
CN110430356A (en) One kind repairing drawing method and electronic equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16903690

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16903690

Country of ref document: EP

Kind code of ref document: A1