WO2020103526A1 - Photographing method and device, storage medium and terminal device - Google Patents

Photographing method and device, storage medium and terminal device

Info

Publication number
WO2020103526A1
WO2020103526A1 PCT/CN2019/104549 CN2019104549W WO2020103526A1 WO 2020103526 A1 WO2020103526 A1 WO 2020103526A1 CN 2019104549 W CN2019104549 W CN 2019104549W WO 2020103526 A1 WO2020103526 A1 WO 2020103526A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
expression
preset
image
photographing
Prior art date
Application number
PCT/CN2019/104549
Other languages
French (fr)
Chinese (zh)
Inventor
侯允
刘耀勇
陈岩
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020103526A1 publication Critical patent/WO2020103526A1/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/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

Definitions

  • Embodiments of the present application relate to the technical field of terminal equipment, and in particular, to a photographing method, device, storage medium, and terminal equipment.
  • the terminal device is generally equipped with a camera, and with the development of the camera technology of the terminal device, most terminal devices will be equipped with at least two cameras, and the camera function of the terminal device is becoming more and more abundant.
  • a photographing method, device, storage medium, and terminal device provided in the embodiments of the present application can improve the convenience of photographing.
  • an embodiment of the present application provides a photographing method, including:
  • a photograph is triggered to collect an image of the user.
  • an embodiment of the present application provides a photographing device, including:
  • the image acquisition module is used to acquire the preview image of the user who is shot in the shooting area when shooting in the preset shooting mode
  • An expression recognition module configured to recognize the expression included in the preview image according to a preset expression recognition model
  • the photographing triggering module is used to trigger the photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, which is executed by a processor:
  • a photograph is triggered to collect an image of the user.
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes:
  • a photograph is triggered to collect an image of the user.
  • FIG. 1 is a schematic flowchart of a photographing method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another photographing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another photographing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another photographing method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another photographing method provided by an embodiment of the present application.
  • FIG. 6 is a structural block diagram of a camera device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of this application.
  • FIG. 8 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
  • An embodiment of the present application provides a photographing method, including:
  • a photograph is triggered to collect an image of the user.
  • the acquiring the preview image of the user captured in the shooting area may include:
  • the recognizing the expression included in the preview image according to the preset expression recognition model includes:
  • the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
  • the method further includes:
  • the triggering to take a picture to collect the image of the user includes:
  • the method when it is detected that the user is in a stationary state, the method further includes:
  • the method further includes:
  • the method before the triggering to take a picture to collect the image of the user, the method further includes:
  • triggering a photograph to collect an image of the user includes:
  • the expression of the user is a target expression
  • the photographing posture is a preset posture
  • the method before recognizing the expression included in the preview image according to a preset expression recognition model, the method further includes:
  • the preset face data set includes preset face images, face key point data and expressions
  • the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
  • FIG. 1 is a schematic flowchart of a photographing method provided by an embodiment of the present application.
  • the method may be performed by a photographing device, where the device may be implemented by software and / or hardware, and may be generally integrated in a terminal device or other In devices with an operating system.
  • the method includes:
  • the user can take a selfie through the camera of the terminal device.
  • the user needs to manually trigger the camera button, which is very inconvenient in the self-timer mode.
  • users can use the selfie stick to trigger the camera button, but this method needs to rely on shooting aids, which is still not convenient.
  • the preset photographing mode may be a mode in which a preset camera in the terminal device is turned on to take a picture, or a mode in which a camera in the terminal device may be taken according to preset shooting parameters, and the terminal device may be a smartphone , Tablet or other electronic devices with corresponding operating systems.
  • the preset photographing mode may be a self-timer mode, that is, a mode for taking pictures through a front camera of a terminal device.
  • the preview image turns on the camera of the terminal device, and the camera is aimed at the area to be captured.
  • the camera can be captured on the display screen of the terminal device.
  • Real-time image of the area which will include the image of the user being photographed.
  • the preview image only displays the real-time image obtained by the camera, but does not record the real-time image.
  • the preview image of the user in the shooting area can reflect the current user's status in real time, and the user's status can be identified by acquiring the preview image of the user shot in the shooting area. You can cache the current preview screen and perform image processing on the preview screen to identify the user form in the preview image. Generally, the preview image will not be stored, and the preview image will be stored only when the photo is triggered.
  • the preset expression recognition model may be a machine learning model that has been trained, and the expression recognition model may recognize the expression included in the input image. Input the buffered preview image of the current shooting area into the expression recognition model to obtain the expression included in the preview expression.
  • an operation of training an expression recognition model may be further included, which may be: inputting a preset face data set into the preset model for training, to Obtain a preset expression recognition model; wherein, the preset face data set includes preset face images, face key point data, and expressions, and the preset expression recognition model is used to identify people in the input image Face key point data, and determine the expression included in the input image according to the face key point data.
  • the preset model may be a machine learning model
  • the preset face data set is input into the preset model to train the preset model
  • the preset model establishes a mapping relationship between the face image, face key point data and expression, To generate an expression recognition model.
  • the preset face data set includes multiple face images, covering face images of different poses, different angles, different expressions and whether to wear accessories, and each face image is marked with corresponding face key point data and expressions.
  • the face key point data is key point data for distinguishing expressions.
  • the face key point data includes the angle of the corner of the mouth. If the angle of the corner of the mouth of a face image is upward, it can be determined that the image may contain a smiling expression.
  • One face image can correspond to multiple face key point data, and the facial expression can be determined according to multiple face key data.
  • the facial expression recognition model can first recognize the key point information of the face in the preview image, and then can determine the corresponding facial expression based on the recognized facial key point information as the facial expression included in the preview image.
  • the model when acquiring the preview image of the user photographed in the shooting area, it can be detected whether the user moves according to the preview image, when it is detected that the user has not moved, that is, when the user is in a stationary state, and recognized by a preset expression
  • the model when the model recognizes that the expression included in the preview image is the target expression, it may trigger a photograph to collect the user's image.
  • the user When taking photos in the preset photo mode, the user will take a suitable expression to take photos. For example, if the preset photo mode is a self-timer model, the user will generally take photos with a smiling expression.
  • the smiling expression can be used as the target expression, that is, when the user's expression is detected as a smiling expression, a photograph is triggered to collect an image containing the user's smiling expression.
  • Triggered photographing may be by sending a trigger instruction to a functional component for managing photographing, so that the functional component executes a photographing process, collects the user's image through a camera, and stores the collected user's image in the storage space of the terminal device in.
  • the user's image is collected by triggering a photograph when it is detected that the user is in a stationary state and the user's expression is the target expression.
  • the camera is triggered. Not only can automatic photography be achieved, but also images containing suitable expressions can be captured, and the image will not be blurred due to user movement, which can improve the clarity of the image degree.
  • a photographing method when shooting in a preset photographing mode, a preview image of a user who is photographed in a shooting area is acquired; and the preview image is identified according to a preset expression recognition model Expression; when it is detected that the user is in a stationary state, and the user's expression is the target expression, a photo is triggered to collect an image of the user.
  • automatic photographing can be performed according to the expression of the user when the user is in a stationary state, and the automatic photographing can be achieved without the user manually triggering or relying on the photographing auxiliary tool, and the convenience of photographing can be improved.
  • FIG. 2 is a schematic flowchart of another photographing method provided by an embodiment of the present application.
  • the operation of obtaining a preview image of a user photographed in the shooting area is optimized, and
  • the method includes:
  • the preset time may be a time period preset by the system.
  • the preset time may be 2 seconds or 3 seconds
  • the first number may be a preset value, which may be 5, 7, or 10.
  • the first number of preview images of the captured users in the shooting area is acquired, that is, within the preset time period of the system, several preview images of the captured users are continuously acquired, and each preview image is one Frame preview image.
  • the collected first number of preview images are input into a preset expression recognition model for recognition, and the expression recognition model separately recognizes the expression included in each preview image.
  • the pixels in the preview image of each frame can be detected separately, and the change of the pixels can be determined according to the difference between the pixels in the preview image of each frame and the pixels in the preview image of the adjacent frame.
  • the preset condition may be a judgment condition for determining that the degree of change of a pixel is less than a preset degree.
  • the preset condition may be a ratio of pixels whose pixel value changes less than a preset value are less than a preset proportion. If the number of the preview images is greater than two, the change of pixels in the preview images of any two adjacent frames can be determined separately, if the change of pixels in the preview images of any two adjacent frames conforms to the preset Conditions, it can be determined that the user is in a stationary state.
  • an automatic photograph can be triggered when it is determined that the user has maintained a suitable target expression, and a suitable target expression can be collected Images to improve the accuracy of automatic photos.
  • FIG. 4 is a schematic flowchart of another photographing method provided by an embodiment of the present application.
  • the operation of triggering a photograph to collect the user ’s image is optimized, optional Ground, as shown in FIG. 4, the method includes:
  • a second number of user images can be collected by triggering a photograph.
  • the second number can be a system preset or a user setting. Collecting the second number of images can provide multiple options for the user, and the user can select a suitable one from the multiple images Keep to avoid the need to take pictures again.
  • the method when the user is detected to be in a stationary state, the method further includes the following operations: performing a photographing prompt; and after triggering the photographing to collect the image of the user, further including: performing a prompt to complete.
  • the shooting prompt and the completion prompt may be a sound prompt or a flash prompt through the terminal device.
  • the shooting prompt is used to remind the user to take a picture soon. The user needs to keep the gesture until the picture is taken.
  • the completion prompt is used to remind the user that the picture is taken, and the user can stop taking a picture.
  • FIG. 5 is a schematic flowchart of another photographing method provided by an embodiment of the present application. Based on the technical solution provided by any of the foregoing embodiments, optionally, as shown in FIG. 5, the method includes:
  • the profile information of the user is the boundary information between the user and the background in the shooting area
  • the angle of the user's face is the relative angle between the plane where the user's facial features are located and the reference plane.
  • the reference plane may be a plane perpendicular to the shooting angle.
  • the user's facial features are three-dimensional in actual space, but a preset plane can be fitted according to the positions of the facial features, so as to minimize the distance between the actual position of the facial features and the preset plane, and the preset plane can be determined as the user's The plane where the five senses are.
  • the user's basic posture can be determined based on the user's contour information. Because the user's head is close to the shape of a sphere, the actual angle of the user's head may not be accurately determined based on the user's contour information, so it is necessary to determine the user's face angle Determine the posture of the user's head, and then determine the user's accurate photographing posture based on the profile information and the face angle.
  • S143 Determine the user's photographing posture according to the profile information and the face angle.
  • the posture of the body and the posture of the head may be determined according to the preset posture recognition model, and the photographing posture may be determined according to the posture of the body and the posture of the head.
  • the posture recognition model may be a trained machine learning model.
  • the user's expression is a target expression
  • the photographing posture is a preset posture, triggering a photograph to collect an image of the user.
  • the target expression and the preset gesture have a corresponding relationship with the preset photographing mode, that is, different preset photographing modes correspond to different target expressions and different preset gestures.
  • the corresponding target facial expression and the corresponding preset posture are determined, so that automatic photographing can be triggered according to the user's posture and facial expression.
  • the user adopts different photographing modes, and the purpose of the photo that the user wants to obtain will be different.
  • the user if the user is in the self-portrait mode, the user generally wants to obtain a relaxed selfie, and if the user is in the photo-taking mode, the user generally wants to obtain a decent portrait. Therefore, in different preset photo modes, the user will make different postures and expressions, and correspondingly determine the user's expressions and postures to trigger the automatic photographing. The user can make the corresponding postures and expressions to trigger the automatic photographing. To collect photos containing the pose and expression.
  • the automatic photographing is triggered by judging that the user is in a stationary state, the user's expression is the target expression, and the user's photographing posture is the preset posture.
  • Appropriate photos can further improve the intelligence and accuracy of automatic photography.
  • An embodiment of the present application also provides a photographing device, including:
  • the image acquisition module is used to acquire the preview image of the user who is shot in the shooting area when shooting in the preset shooting mode
  • An expression recognition module configured to recognize the expression included in the preview image according to a preset expression recognition model
  • the photographing triggering module is used to trigger the photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
  • the image acquisition module is also used to:
  • the expression recognition module is specifically used for:
  • the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
  • the image acquisition module is also used to:
  • the image acquisition module is also used to:
  • the device further includes:
  • the completion prompting module is used for prompting completion after triggering the photographing to collect the image of the user.
  • it also includes:
  • the information determining module is used to determine the profile information and face angle of the user in the preview image before the triggering of the photograph to collect the image of the user;
  • a posture determination module configured to determine the user's photo posture based on the profile information and the face angle
  • the photo trigger module is specifically used for:
  • the expression of the user is a target expression
  • the photographing posture is a preset posture
  • it also includes:
  • the model training module is used to input the preset face data set into the preset model for training before identifying the expression included in the preview image according to the preset expression recognition model to obtain the preset expression recognition model ;
  • the preset face data set includes preset face images, face key point data and expressions
  • the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
  • FIG. 6 is a structural block diagram of a photographing device according to an embodiment of the present application.
  • the device can perform a photographing method. As shown in FIG. 6, the device includes:
  • the image acquisition module 201 is used to acquire the preview image of the user who is photographed in the shooting area when shooting in the preset photographing mode;
  • the expression recognition module 202 is configured to recognize the expression included in the preview image according to a preset expression recognition model
  • the photographing triggering module 203 is configured to trigger photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
  • a photographing device obtains a preview image of a user photographed in a shooting area by shooting in a preset photographing mode; and recognizes the preview image included in the preview image according to a preset expression recognition model Expression; when it is detected that the user is in a stationary state, and the user's expression is the target expression, a photo is triggered to collect an image of the user.
  • automatic photographing can be performed according to the expression of the user when the user is in a stationary state, and the automatic photographing can be achieved without the user manually triggering or relying on the photographing auxiliary tool, which can improve the convenience of photographing.
  • the image acquisition module is specifically used for:
  • the expression recognition module is specifically used for:
  • the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
  • it also includes:
  • the camera trigger module is specifically used to:
  • it also includes:
  • the completion prompting module is used for prompting completion after triggering the photographing to collect the image of the user.
  • it also includes:
  • the information determining module is used to determine the profile information and face angle of the user in the preview image before the triggering of the photograph to collect the image of the user;
  • a posture determination module configured to determine the user's photo posture based on the profile information and the face angle
  • the photo trigger module is specifically used for:
  • the expression of the user is a target expression
  • the photographing posture is a preset posture
  • it also includes:
  • the model training module is used to input the preset face data set into the preset model for training before identifying the expression included in the preview image according to the preset expression recognition model to obtain the preset expression recognition model ;
  • the preset face data set includes preset face images, face key point data and expressions
  • the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
  • a storage medium containing computer-executable instructions provided in an embodiment of the present application is not limited to the above-mentioned photographing operation, and can also perform related operations in the photographing method provided in any embodiment of the present application.
  • An embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor is used to execute a photographing method, the method includes:
  • a photograph is triggered to collect an image of the user.
  • Storage medium any kind of memory device or storage device.
  • storage media is intended to include: installation media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc ; Non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements.
  • the storage medium may also include other types of memory or a combination thereof.
  • the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system that is connected to the first computer system through a network such as the Internet.
  • the second computer system may provide program instructions to the first computer for execution.
  • storage medium may include two or more storage media that may reside in different locations (eg, in different computer systems connected through a network).
  • the storage medium may store program instructions executable by one or more processors (eg, embodied as a computer program).
  • An embodiment of the present application provides a terminal device, and the terminal device may be integrated with the photographing device provided by the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • An embodiment of the present application provides a terminal device 30, including a memory 31, a processor 32, and a computer stored on the memory 31 and capable of running on the processor. Program, when the processor executes the computer program, the photographing method described in the above embodiment is implemented.
  • the terminal device provided by the embodiment of the present application can improve the convenience of taking pictures.
  • FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device may include: a casing (not shown in the figure), a touch screen (not shown in the figure), a touch button (not shown in the figure), a memory 301, and a central processing unit (Central Processing) Unit, CPU) 302 (also called processor, hereinafter referred to as CPU), circuit board (not shown in the figure) and power supply circuit (not shown in the figure).
  • CPU Central Processing Unit
  • the circuit board is placed inside the space enclosed by the housing; the CPU 302 and the memory 301 are provided on the circuit board; the power circuit is used to supply power to each circuit or device of the terminal device
  • the memory 301 is used to store executable program code; the CPU 302 runs the computer program corresponding to the executable program code by reading the executable program code stored in the memory 301 to achieve:
  • a photograph is triggered to collect an image of the user.
  • the terminal device further includes: a peripheral interface 303, an RF (Radio Frequency) circuit 305, an audio circuit 306, a speaker 311, a power management chip 308, an input / output (I / O) subsystem 309, a touch screen 312, other
  • the input / control device 310 and the external port 304 communicate through one or more communication buses or signal lines 307.
  • the illustrated terminal device 300 is only an example of the terminal device, and the terminal device 300 may have more or fewer components than shown in the figure, and two or more components may be combined, Or it can have different component configurations.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
  • the terminal device uses a mobile phone as an example.
  • Memory 301 which can be accessed by CPU 302, peripheral interface 303, etc.
  • the memory 301 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices , Or other volatile solid-state storage devices.
  • Peripheral interface 303 which can connect input and output peripherals of the device to CPU 302 and memory 301.
  • the I / O subsystem 309 which can connect input and output peripherals on the device, such as touch screen 312 and other input / control devices 310, to peripheral interface 303.
  • the I / O subsystem 309 may include a display controller 3091 and one or more input controllers 3092 for controlling other input / control devices 310.
  • one or more input controllers 3092 receive electrical signals from other input / control devices 310 or send electrical signals to other input / control devices 310.
  • Other input / control devices 310 may include physical buttons (press buttons, rocker buttons, etc. ), Dial pad, slide switch, joystick, click wheel. It is worth noting that the input controller 3092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 312 is an input interface and an output interface between the user terminal device and the user, and displays the visual output to the user, and the visual output may include graphics, text, icons, video, and the like.
  • the display controller 3091 in the I / O subsystem 309 receives electrical signals from the touch screen 312 or sends electrical signals to the touch screen 312.
  • the touch screen 312 detects the contact on the touch screen, and the display controller 3091 converts the detected contact into interaction with the user interface object displayed on the touch screen 312, that is, realizes human-computer interaction. Icons for games, icons connected to the corresponding network, etc.
  • the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output or an extension of the touch-sensitive surface formed by a touch screen.
  • the RF circuit 305 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, e-mail, etc. Specifically, the RF circuit 305 receives and transmits RF signals, which are also called electromagnetic signals. The RF circuit 305 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with the communication network and other devices through the electromagnetic signals Communicate.
  • the RF circuit 305 may include known circuits for performing these functions, including but not limited to antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODEC ( COder-DECoder (codec) chipset, subscriber identity module (Subscriber Identity Module, SIM), etc.
  • CODEC COder-DECoder (codec) chipset
  • subscriber identity module Subscriber Identity Module, SIM
  • the audio circuit 306 is mainly used to receive audio data from the peripheral interface 303, convert the audio data into electrical signals, and send the electrical signals to the speaker 311.
  • the speaker 311 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 305 to a sound and play the sound to the user.
  • the power management chip 308 is used for power supply and power management for the hardware connected to the CPU 302, the I / O subsystem, and the peripheral interface.
  • the terminal device provided by the embodiment of the present application can improve the convenience of taking pictures.
  • the photographing apparatus, storage medium, and terminal device provided in the above embodiments can perform the photographing method provided in any embodiment of the present application, and have corresponding function modules and beneficial effects for performing the method.
  • the photographing method provided in any embodiment of the present application please refer to the photographing method provided in any embodiment of the present application.

Abstract

Provided in the embodiments of the present application is a photographing method, comprising: when photographing, acquiring a preview image of a user to be photographed within a photographing area; recognizing the expression comprised in the preview image according to a preset expression recognition model; when detected that the user is in a stationary state and the expression is a target expression, triggering photographing so as to acquire an image of the user, which thus does not require the user to manually trigger or rely on a photographing assistance tool, and allows the user to automatically take a picture, which may improve the convenience of taking pictures.

Description

拍照方法、装置、存储介质及终端设备Photographing method, device, storage medium and terminal equipment
本申请要求于2018年11月21日提交中国专利局、申请号为201811392429.4、申请名称为“拍照方法、装置、存储介质及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on November 21, 2018, with the application number 201811392429.4 and the application name "photographing method, device, storage medium and terminal equipment", the entire content of which is incorporated by reference in In this application.
技术领域Technical field
本申请实施例涉及终端设备技术领域,尤其涉及一种拍照方法、装置、存储介质及终端设备。Embodiments of the present application relate to the technical field of terminal equipment, and in particular, to a photographing method, device, storage medium, and terminal equipment.
背景技术Background technique
终端设备上一般都配置有摄像头,而且随着终端设备的拍照技术的发展,大部分终端设备上都会配置至少两个摄像头,终端设备的拍照功能越来越丰富。The terminal device is generally equipped with a camera, and with the development of the camera technology of the terminal device, most terminal devices will be equipped with at least two cameras, and the camera function of the terminal device is becoming more and more abundant.
发明内容Summary of the invention
本申请实施例提供的一种拍照方法、装置、存储介质及终端设备,可以提高拍照的便捷性。A photographing method, device, storage medium, and terminal device provided in the embodiments of the present application can improve the convenience of photographing.
第一方面,本申请实施例提供了一种拍照方法,包括:In a first aspect, an embodiment of the present application provides a photographing method, including:
在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
第二方面,本申请实施例提供了一种拍照装置,包括:In a second aspect, an embodiment of the present application provides a photographing device, including:
图像获取模块,用于在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;The image acquisition module is used to acquire the preview image of the user who is shot in the shooting area when shooting in the preset shooting mode;
表情识别模块,用于根据预设的表情识别模型识别所述预览图像中包括的表情;An expression recognition module, configured to recognize the expression included in the preview image according to a preset expression recognition model;
拍照触发模块,用于在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。The photographing triggering module is used to trigger the photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行:In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, which is executed by a processor:
在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
第四方面,本申请实施例提供了一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行:According to a fourth aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes:
在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
附图说明BRIEF DESCRIPTION
图1为本申请实施例提供的一种拍照方法的流程示意图;FIG. 1 is a schematic flowchart of a photographing method provided by an embodiment of the present application;
图2为本申请实施例提供的另一种拍照方法的流程示意图;2 is a schematic flowchart of another photographing method provided by an embodiment of the present application;
图3为本申请实施例提供的另一种拍照方法的流程示意图;3 is a schematic flowchart of another photographing method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种拍照方法的流程示意图;4 is a schematic flowchart of another photographing method provided by an embodiment of the present application;
图5为本申请实施例提供的另一种拍照方法的流程示意图;5 is a schematic flowchart of another photographing method provided by an embodiment of the present application;
图6为本申请实施例提供的一种拍照装置的结构框图;6 is a structural block diagram of a camera device provided by an embodiment of the present application;
图7为本申请实施例提供的一种终端设备的结构示意图;7 is a schematic structural diagram of a terminal device according to an embodiment of this application;
图8为本申请实施例提供的另一种终端设备的结构示意图。FIG. 8 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below with reference to the drawings and through specific implementations. It can be understood that the specific embodiments described herein are only used to explain the present application, rather than limit the present application. In addition, it should be noted that, for ease of description, the drawings only show parts, but not all structures related to the present application.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各流程描述成顺序的处理,但是其中的许多流程可以被并行地、并发地或者同时实施。此外,各流程的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具 有未包括在附图中的附加流程。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes the processes as sequential processing, many of the processes can be implemented in parallel, concurrently, or simultaneously. In addition, the sequence of the processes can be rearranged. The processing may be terminated when its operation is completed, but may also have an additional flow not included in the drawings. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and so on.
本申请实施例提供一种拍照方法,包括:An embodiment of the present application provides a photographing method, including:
在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
在一种实施方式中,所述获取拍摄区域内被拍摄的用户的预览图像可以包括:In an embodiment, the acquiring the preview image of the user captured in the shooting area may include:
在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像;Acquire the first number of preview images of the users photographed in the shooting area within a preset time;
所述根据预设的表情识别模型识别所述预览图像中包括的表情包括:The recognizing the expression included in the preview image according to the preset expression recognition model includes:
通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情;Identifying the expression included in the first number of preview images through a preset expression recognition model;
如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。If the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
在一种实施方式中,获取拍摄区域内被拍摄的用户的第一数量的预览图像之后,还包括:In one embodiment, after acquiring the first number of preview images of the users photographed in the shooting area, the method further includes:
检测所述第一数量的预览图像中的像素点的变化;Detecting changes in pixels in the first number of preview images;
如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。If the change of the pixel points meets the preset condition, it is determined that the user is in a stationary state.
在一种实施方式中,所述触发拍照以采集所述用户的图像包括:In one embodiment, the triggering to take a picture to collect the image of the user includes:
触发拍照以采集第二数量的所述用户的图像。Trigger a photo to collect a second number of images of the user.
在一种实施方式中,在检测到所述用户处于静止状态时,还包括:In one embodiment, when it is detected that the user is in a stationary state, the method further includes:
进行拍摄提示;Prompt for shooting;
在触发拍照以采集所述用户的图像之后,还包括:After triggering to take a picture to collect the image of the user, the method further includes:
进行完成提示。Prompt for completion.
在一种实施方式中,所述触发拍照以采集所述用户的图像之前,还包括:In one embodiment, before the triggering to take a picture to collect the image of the user, the method further includes:
确定所述预览图像中用户的轮廓信息和脸部角度;Determine the profile information and face angle of the user in the preview image;
根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势;Determine the user's photographing posture according to the profile information and the face angle;
所述在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像,包括:When it is detected that the user is in a stationary state, and the user's expression is a target expression, triggering a photograph to collect an image of the user includes:
在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, the expression of the user is a target expression, and the photographing posture is a preset posture, a photograph is triggered to collect images of the user.
在一种实施方式中,所述根据预设的表情识别模型识别所述预览图像中包括的表情之前,还包括:In an embodiment, before recognizing the expression included in the preview image according to a preset expression recognition model, the method further includes:
将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;Input the preset face data set into the preset model for training to obtain the preset expression recognition model;
其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Wherein, the preset face data set includes preset face images, face key point data and expressions, and the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
图1为本申请实施例提供的一种拍照方法的流程示意图,该方法可以由拍照装置执行,其中该装置可以由软件和/或硬件实现,一般可以集成在终端设备中,也可以集成在其他安装有操作系统的设备中。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a photographing method provided by an embodiment of the present application. The method may be performed by a photographing device, where the device may be implemented by software and / or hardware, and may be generally integrated in a terminal device or other In devices with an operating system. As shown in Figure 1, the method includes:
S110、在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像。S110. When shooting in the preset photographing mode, obtain a preview image of the user who is shot in the shooting area.
用户可以通过终端设备的摄像头进行自拍,在通过手持终端设备进行拍照时,需要用户手动触发拍照按钮,而这个操作在自拍模式下非常不方便。另外,用户可以通过自拍杆来触发拍照按钮,但是这种方式需要依赖拍摄辅助工具,仍不够便捷。The user can take a selfie through the camera of the terminal device. When taking a picture through the handheld terminal device, the user needs to manually trigger the camera button, which is very inconvenient in the self-timer mode. In addition, users can use the selfie stick to trigger the camera button, but this method needs to rely on shooting aids, which is still not convenient.
其中,所述预设拍照模式可以是开启了终端设备中的预设摄像头进行拍照的模式,还可以通过终端设备中的任一摄像头根据预设拍摄参数进行拍照的模式,终端设备可以是智能手机、平板电脑或其他具有相应操作系统的电子设备。示例性地,所述预设拍照模式可以是自拍模式,即通过终端设备的前置摄像头进行拍照的模式。Wherein, the preset photographing mode may be a mode in which a preset camera in the terminal device is turned on to take a picture, or a mode in which a camera in the terminal device may be taken according to preset shooting parameters, and the terminal device may be a smartphone , Tablet or other electronic devices with corresponding operating systems. Exemplarily, the preset photographing mode may be a self-timer mode, that is, a mode for taking pictures through a front camera of a terminal device.
通过摄像头对用户进行拍摄时,拍摄区域内会出现被拍摄的用户,预览图像即开启终端设备的摄像头,将摄像头对准需要拍摄的区域,可以在终端设备的显示屏上显示的摄像头获取的拍摄区域的实时画面,该画面中会包括被拍摄的用户的图像。预览图像只是将摄像头获取到的实时画面进行显示,但是并未对实时画面进行记录。When shooting the user through the camera, the captured user will appear in the shooting area. The preview image turns on the camera of the terminal device, and the camera is aimed at the area to be captured. The camera can be captured on the display screen of the terminal device. Real-time image of the area, which will include the image of the user being photographed. The preview image only displays the real-time image obtained by the camera, but does not record the real-time image.
拍摄区域的用户的预览图像可以实时反映了当前用户的状态,可以通过获取拍摄区域内被拍摄的用户的预览图像来识别用户的状态。可以缓存当前的预 览画面并对预览画面进行图像处理,以识别预览图像中的用户形态。一般预览图像不会被存储,只有在触发了拍照才会对预览图像进行存储。The preview image of the user in the shooting area can reflect the current user's status in real time, and the user's status can be identified by acquiring the preview image of the user shot in the shooting area. You can cache the current preview screen and perform image processing on the preview screen to identify the user form in the preview image. Generally, the preview image will not be stored, and the preview image will be stored only when the photo is triggered.
S111、根据预设的表情识别模型识别所述预览图像中包括的表情。S111. Identify the expression included in the preview image according to a preset expression recognition model.
预设的表情识别模型可以是已经训练好的机器学习模型,表情识别模型可以识别输入的图像中包括的表情。将缓存的当前的拍摄区域的预览图像输入到所述表情识别模型中,以得到所述预览表情中包括的表情。The preset expression recognition model may be a machine learning model that has been trained, and the expression recognition model may recognize the expression included in the input image. Input the buffered preview image of the current shooting area into the expression recognition model to obtain the expression included in the preview expression.
可选地,根据预设的表情识别模型识别所述预览图像中包括的表情之前还包括训练表情识别模型的操作,可以是:将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Optionally, before recognizing the expression included in the preview image according to a preset expression recognition model, an operation of training an expression recognition model may be further included, which may be: inputting a preset face data set into the preset model for training, to Obtain a preset expression recognition model; wherein, the preset face data set includes preset face images, face key point data, and expressions, and the preset expression recognition model is used to identify people in the input image Face key point data, and determine the expression included in the input image according to the face key point data.
其中,所述预设模型可以是机器学习模型,将预设人脸数据集输入到预设模型中训练预设模型,预设模型建立人脸图像、人脸关键点数据和表情的映射关系,以生成表情识别模型。Wherein, the preset model may be a machine learning model, the preset face data set is input into the preset model to train the preset model, and the preset model establishes a mapping relationship between the face image, face key point data and expression, To generate an expression recognition model.
预设人脸数据集中包括多个人脸图像,覆盖了不同姿势、不同角度、不同表情和是否佩戴配饰的人脸图像,每一个人脸图像标记了对应的人脸关键点数据和表情。所述人脸关键点数据为用于区分表情的关键点数据。示例性地,人脸关键点数据包括嘴角的角度,如果一个人脸图像的嘴角的角度是向上,则可以确定该图像中可能包含微笑的表情。一个人脸图像可对应多个人脸关键点数据,根据多个人脸关键数据可以确定表情。The preset face data set includes multiple face images, covering face images of different poses, different angles, different expressions and whether to wear accessories, and each face image is marked with corresponding face key point data and expressions. The face key point data is key point data for distinguishing expressions. Illustratively, the face key point data includes the angle of the corner of the mouth. If the angle of the corner of the mouth of a face image is upward, it can be determined that the image may contain a smiling expression. One face image can correspond to multiple face key point data, and the facial expression can be determined according to multiple face key data.
表情识别模型可以先识别预览图像中的人脸关键点信息,进而可以根据识别出来的人脸关键点信息确定对应的表情,作为预览图像中所包括的表情。The facial expression recognition model can first recognize the key point information of the face in the preview image, and then can determine the corresponding facial expression based on the recognized facial key point information as the facial expression included in the preview image.
S112、在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。S112. When it is detected that the user is in a stationary state, and the user's expression is a target expression, trigger a photograph to collect an image of the user.
其中,在获取拍摄区域内被拍摄的用户的预览图像时,可以根据预览图像检测该用户是否移动,在检测到用户未发生移动,即所述用户处于静止状态时,以及通过预设的表情识别模型识别到所述预览图像中包括的表情是目标表情时,可以触发拍照以采集所述用户的图像。Among them, when acquiring the preview image of the user photographed in the shooting area, it can be detected whether the user moves according to the preview image, when it is detected that the user has not moved, that is, when the user is in a stationary state, and recognized by a preset expression When the model recognizes that the expression included in the preview image is the target expression, it may trigger a photograph to collect the user's image.
其中,在检测用户是否发生移动时,除了包括用户自身所发生的移动,还 包括因为终端设备的移动而造成的用户的预览图像的晃动,这两种情况的移动都会使采集的用户图像不清晰,所以需要在检测到用户处于静止状态时触发拍照,可以采集到更清晰的图像。Among them, when detecting whether the user has moved, in addition to the user's own movement, it also includes the shaking of the user's preview image due to the movement of the terminal device. The movement of the two cases will make the collected user image unclear , So you need to trigger a photo when the user is detected to be still, you can collect a clearer image.
在预设拍照模式下拍照,用户都会采用一个合适的表情来进行拍照,示例性地,如果预设拍照模式是自拍模型,用户一般会采用微笑的表情进行拍照。可以将微笑的表情作为目标表情,即检测到用户的表情为微笑的表情时即触发拍照,以便采集到包含用户微笑表情的图像。When taking photos in the preset photo mode, the user will take a suitable expression to take photos. For example, if the preset photo mode is a self-timer model, the user will generally take photos with a smiling expression. The smiling expression can be used as the target expression, that is, when the user's expression is detected as a smiling expression, a photograph is triggered to collect an image containing the user's smiling expression.
触发拍照可以是通过发送触发指令至用于管理拍照的功能组件,以使该功能组件执行拍照进程,通过摄像头采集所述用户的图像,并将采集到的用户的图像存储到终端设备的存储空间中。Triggered photographing may be by sending a trigger instruction to a functional component for managing photographing, so that the functional component executes a photographing process, collects the user's image through a camera, and stores the collected user's image in the storage space of the terminal device in.
在本申请实施例中,通过在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时触发拍照以采集所述用户的图像。在检测到目标表情以及用户没有发生移动的情况下触发拍照,不仅可以实现自动拍照,而且可以拍摄到包含合适的表情的图像,且不会因为用户发生移动而导致图像模糊,可以提高图像的清晰度。In the embodiment of the present application, the user's image is collected by triggering a photograph when it is detected that the user is in a stationary state and the user's expression is the target expression. When the target expression is detected and the user does not move, the camera is triggered. Not only can automatic photography be achieved, but also images containing suitable expressions can be captured, and the image will not be blurred due to user movement, which can improve the clarity of the image degree.
本申请实施例中提供的一种拍照方法,通过在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;根据预设的表情识别模型识别所述预览图像中包括的表情;在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。通过采用上述技术方案,可以在用户处于静止状态时根据用户的表情执行自动拍照,无需用户手动触发或依赖拍摄辅助工具即可以实现自动拍照,可以提高拍照的便捷性。In a photographing method provided in an embodiment of the present application, when shooting in a preset photographing mode, a preview image of a user who is photographed in a shooting area is acquired; and the preview image is identified according to a preset expression recognition model Expression; when it is detected that the user is in a stationary state, and the user's expression is the target expression, a photo is triggered to collect an image of the user. By adopting the above technical solution, automatic photographing can be performed according to the expression of the user when the user is in a stationary state, and the automatic photographing can be achieved without the user manually triggering or relying on the photographing auxiliary tool, and the convenience of photographing can be improved.
图2为本申请实施例提供的另一种拍照方法的流程示意图,在上述实施例所提供的技术方案的基础上,对获取拍摄区域内被拍摄的用户的预览图像的操作进行了优化,可选地,如图2所示,该方法包括:FIG. 2 is a schematic flowchart of another photographing method provided by an embodiment of the present application. On the basis of the technical solution provided by the above embodiment, the operation of obtaining a preview image of a user photographed in the shooting area is optimized, and Optionally, as shown in FIG. 2, the method includes:
S120、在预设拍照模式下进行拍摄时,在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像。S120. When shooting in a preset photographing mode, within a preset time, obtain a first number of preview images of users who are shot in the shooting area.
其中,预设时间可以是系统预设的时间段,示例性地,预设时间可以是2秒或3秒,第一数量可以是预设的数值,可以是5、7或10。在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像即在系统预设的时间段内,持续获取若干张被拍摄的用户的预览图像,每一张预览图像即一帧预览图 像。The preset time may be a time period preset by the system. Exemplarily, the preset time may be 2 seconds or 3 seconds, and the first number may be a preset value, which may be 5, 7, or 10. Within the preset time, the first number of preview images of the captured users in the shooting area is acquired, that is, within the preset time period of the system, several preview images of the captured users are continuously acquired, and each preview image is one Frame preview image.
S121、通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情。S121. Identify the expression included in the first number of preview images through a preset expression recognition model.
S122、如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。S122. If the first number of preview images all include a target expression, determine that the user's expression is the target expression.
将采集到的第一数量的预览图像一一输入到预设的表情识别模型中进行识别,表情识别模型分别识别每一张预览图像中所包括的表情。The collected first number of preview images are input into a preset expression recognition model for recognition, and the expression recognition model separately recognizes the expression included in each preview image.
用户在进行拍照时,一般需要做好一个合适的表情再进行拍照,前期用户会调整自己的表情。所以本申请实施例通过在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像,并分别识别每一张预览图像中的用户的表情,才能确定用户是否已经做好了拍照的表情。如果第一数量的预览图像中均包括目标表情,则可以确定用户已经做好了拍照表情。When users take pictures, they generally need to make a suitable expression and then take pictures. In the early stage, users will adjust their expressions. Therefore, in this embodiment of the present application, it is possible to determine whether the user has done a good job by acquiring the first number of preview images of the users photographed in the shooting area within a preset time, and separately identifying the user's expression in each preview image Emoji for taking pictures. If the first number of preview images all include the target expression, it can be determined that the user has made a photo expression.
S123、在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。S123. When it is detected that the user is in a stationary state, and the user's expression is the target expression, trigger a photograph to collect an image of the user.
具体实施方式可以参考上文的相关描述,在此不再赘述。For a specific implementation manner, reference may be made to the related description above, and details are not described herein again.
可选地,如图3所示,在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像之后,还包括如下操作:Optionally, as shown in FIG. 3, after acquiring the first number of preview images of the users photographed in the shooting area within a preset time, the following operations are further included:
S124、检测所述第一数量的预览图像中的像素点的变化。S124. Detect a change in pixels in the first number of preview images.
S125、如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。S125. If the change of the pixel points meets a preset condition, determine that the user is in a stationary state.
其中,可以是分别检测每一帧预览图像中的像素点,根据每一帧预览图像中的像素点以及与相邻帧的预览图像中的像素点的差值可以确定像素点的变化。Wherein, the pixels in the preview image of each frame can be detected separately, and the change of the pixels can be determined according to the difference between the pixels in the preview image of each frame and the pixels in the preview image of the adjacent frame.
所述预设条件可以是用于判断像素点的变化的程度小于预设程度的判断条件,示例性地,所述预设条件可以是像素值变化小于预设数值的像素点的比例小于预设比例。如果所述预览图像的数量大于两张,则可以分别确定任意两个相邻帧的预览图像中的像素点的变化,如果任意两个相邻帧的预览图像中的像素点变化均符合预设条件,则可以确定所述用户处于静止状态。The preset condition may be a judgment condition for determining that the degree of change of a pixel is less than a preset degree. Exemplarily, the preset condition may be a ratio of pixels whose pixel value changes less than a preset value are less than a preset proportion. If the number of the preview images is greater than two, the change of pixels in the preview images of any two adjacent frames can be determined separately, if the change of pixels in the preview images of any two adjacent frames conforms to the preset Conditions, it can be determined that the user is in a stationary state.
用户在进行拍照时,用户除了会调整自己的表情,还会调整自己的姿态,所以需要判断用户是否处于静止状态,在确定了用户处于静止状态时触发自动 拍照,避免采集到模糊的图像。When a user takes a picture, the user will adjust their own expression and posture in addition to their own expressions. Therefore, it is necessary to determine whether the user is in a stationary state. When it is determined that the user is in a stationary state, an automatic photograph is triggered to avoid collecting a blurred image.
本申请实施例通过获取第一数量的预览图像,并分别识别每一帧预览图像中包括的表情,可以在确定用户已经保持了合适的目标表情时触发自动拍照,可以采集到用户合适的目标表情的图像,提高自动拍照的准确性。In this embodiment of the present application, by obtaining a first number of preview images and separately identifying the expressions included in each frame of the preview image, an automatic photograph can be triggered when it is determined that the user has maintained a suitable target expression, and a suitable target expression can be collected Images to improve the accuracy of automatic photos.
图4为本申请实施例提供的另一种拍照方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,对触发拍照以采集所述用户的图像的操作进行了优化,可选地,如图4所示,该方法包括:FIG. 4 is a schematic flowchart of another photographing method provided by an embodiment of the present application. On the basis of the technical solution provided by any of the foregoing embodiments, the operation of triggering a photograph to collect the user ’s image is optimized, optional Ground, as shown in FIG. 4, the method includes:
S130、在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像。S130. When shooting in the preset photographing mode, obtain a preview image of the user who is shot in the shooting area.
S131、根据预设的表情识别模型识别所述预览图像中包括的表情。S131. Identify the expression included in the preview image according to a preset expression recognition model.
上述操作的具体实施方式可以参考上文的相关描述,在此不再赘述。For the specific implementation of the above operation, reference may be made to the related description above, and no further description is provided here.
S132、在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集第二数量的所述用户的图像。S132. When it is detected that the user is in a stationary state and the user's expression is a target expression, trigger a photograph to collect a second number of images of the user.
其中,由于本申请实施例是自动触发拍照,用户对自动拍照采集的图像不一定会满意,可能会选择删掉该图像并再次执行拍照。而进一步通过触发拍照采集第二数量的用户的图像,第二数量可以是系统预设或者用户设置,采集第二数量的图像可以提供多个选择给用户,用户可以从多个图像中选择合适的保留,避免需要再次执行拍照。Among them, since the embodiment of the present application automatically triggers the photographing, the user may not be satisfied with the image collected by the automatic photographing, and may choose to delete the image and perform the photographing again. Further, a second number of user images can be collected by triggering a photograph. The second number can be a system preset or a user setting. Collecting the second number of images can provide multiple options for the user, and the user can select a suitable one from the multiple images Keep to avoid the need to take pictures again.
可选地,在所述检测到所述用户处于静止状态时,还包括如下操作:进行拍摄提示;以及在触发拍照以采集所述用户的图像之后,还包括:进行完成提示。Optionally, when the user is detected to be in a stationary state, the method further includes the following operations: performing a photographing prompt; and after triggering the photographing to collect the image of the user, further including: performing a prompt to complete.
其中,所述拍摄提示和完成提示可以是通过终端设备进行声音提示或者闪光提示。拍摄提示用于提醒用户即将进行拍照,用户需要保持姿态直到拍照完成,完成提示用于提醒用户拍照完成,用户可以停止拍照的姿势。Wherein, the shooting prompt and the completion prompt may be a sound prompt or a flash prompt through the terminal device. The shooting prompt is used to remind the user to take a picture soon. The user needs to keep the gesture until the picture is taken. The completion prompt is used to remind the user that the picture is taken, and the user can stop taking a picture.
本申请实施例通过触发拍照以采集第二数量的所述用户的图像,可以提供多张采集的图像给用户选择,用户可以从中选择满意的图像进行保留,降低用户需要重新拍照的概率,提高自动拍照的有效性。In this embodiment of the present application, by triggering a photograph to collect a second number of images of the user, multiple captured images can be provided to the user for selection, and the user can select a satisfactory image from which to retain, reducing the probability of the user needing to re-photograph, and improving automatic The effectiveness of taking pictures.
图5为本申请实施例提供的另一种拍照方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,可选地,如图5所示,该方法包括:FIG. 5 is a schematic flowchart of another photographing method provided by an embodiment of the present application. Based on the technical solution provided by any of the foregoing embodiments, optionally, as shown in FIG. 5, the method includes:
S140、在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预 览图像。S140. When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area.
S141、根据预设的表情识别模型识别所述预览图像中包括的表情。S141. Identify the expression included in the preview image according to a preset expression recognition model.
上述操作的具体实施方式可以参考上文的相关描述,在此不再赘述。For the specific implementation of the above operation, reference may be made to the related description above, and no further description is provided here.
S142、确定所述预览图像中用户的轮廓信息和脸部角度。S142. Determine the profile information and face angle of the user in the preview image.
其中,所述用户的轮廓信息为拍摄区域内用户和背景的边界信息,用户的脸部角度为用户的五官所在的平面和基准平面的相对角度,基准平面可以是和拍摄角度相垂直的平面。用户的五官在实际空间中是立体的,但是可以根据五官分别所在的位置拟合一个预设平面,以使五官实际位置和该预设平面的距离最小,可以将该预设平面确定为用户的五官所在的平面。Wherein, the profile information of the user is the boundary information between the user and the background in the shooting area, and the angle of the user's face is the relative angle between the plane where the user's facial features are located and the reference plane. The reference plane may be a plane perpendicular to the shooting angle. The user's facial features are three-dimensional in actual space, but a preset plane can be fitted according to the positions of the facial features, so as to minimize the distance between the actual position of the facial features and the preset plane, and the preset plane can be determined as the user's The plane where the five senses are.
根据用户的轮廓信息可以确定用户的基本的姿势,因为用户的头部是接近球体的形状,根据用户的轮廓信息可能无法准确确定用户的头部的实际角度,所以需要根据用户的脸部角度来确定用户的头部的姿势,进而根据轮廓信息和脸部角度可以确定用户的准确的拍照姿势。The user's basic posture can be determined based on the user's contour information. Because the user's head is close to the shape of a sphere, the actual angle of the user's head may not be accurately determined based on the user's contour information, so it is necessary to determine the user's face angle Determine the posture of the user's head, and then determine the user's accurate photographing posture based on the profile information and the face angle.
S143、根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势。S143: Determine the user's photographing posture according to the profile information and the face angle.
用户拍摄的照片的目的不同,会采用不同的拍照姿势。示例性地,如果用户是比较随意的自拍,则拍照姿势可能是比较轻松随意的姿势,例如歪着身体或比划剪刀手的姿势。而如果用户需要拍摄证件照,用户则会端正体态来进行拍照。根据用户的轮廓信息和脸部角度确定用户的拍照姿势可以是:根据用户的轮廓信息确定用户的身体的姿势,然后再根据脸部角度确定用户的头部的姿势,进而根据身体的姿势和头部的姿势确定拍照姿势。The purpose of the photos taken by users is different, and different shooting poses will be adopted. Illustratively, if the user is taking a more casual selfie, the photographing posture may be a more relaxed and casual posture, such as a posture that tilts the body or gestures the hands of scissors. If the user needs to take a photo of the ID, the user will take a photo in a correct manner. Determining the user's photographing posture according to the user's profile information and face angle may be: determining the user's body posture based on the user's profile information, and then determining the user's head posture based on the face angle, and then according to the body posture and head The posture of the department determines the posture of taking pictures.
可以根据预设的姿势识别模型来确定身体的姿势和头部的姿势,并根据身体的姿势和头部的姿势确定拍照姿势,姿势识别模型可以是训练好的机器学习模型。The posture of the body and the posture of the head may be determined according to the preset posture recognition model, and the photographing posture may be determined according to the posture of the body and the posture of the head. The posture recognition model may be a trained machine learning model.
S144、在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。S144. When it is detected that the user is in a stationary state, the user's expression is a target expression, and the photographing posture is a preset posture, triggering a photograph to collect an image of the user.
其中,目标表情和预设姿势与预设拍照模式呈相对应的关系,即不同的预设拍照模式对应不同的目标表情和不同的预设姿势。在预设拍照模式下进行拍摄时,则确定对应的目标表情和对应的预设姿势,以便可以根据用户的姿态和表情来触发自动拍照。Among them, the target expression and the preset gesture have a corresponding relationship with the preset photographing mode, that is, different preset photographing modes correspond to different target expressions and different preset gestures. When shooting in the preset photographing mode, the corresponding target facial expression and the corresponding preset posture are determined, so that automatic photographing can be triggered according to the user's posture and facial expression.
用户采用不同的拍照模式,用户想要获得的照片的目的会有所不同。示例 性地,如果用户在自拍模式下,用户一般是想要获得轻松的自拍照,而如果用户在证件照拍摄模式下,用户一般是想要获得中规中矩的人物像。所以在不同的预设拍照模式下,用户自身会做出不同的姿势和表情,相应的通过判断用户的表情和姿势来触发自动拍照,可以在用户做出相应的姿势和表情实施触发自动拍照,以采集包含该姿势和表情的照片。The user adopts different photographing modes, and the purpose of the photo that the user wants to obtain will be different. Exemplarily, if the user is in the self-portrait mode, the user generally wants to obtain a relaxed selfie, and if the user is in the photo-taking mode, the user generally wants to obtain a decent portrait. Therefore, in different preset photo modes, the user will make different postures and expressions, and correspondingly determine the user's expressions and postures to trigger the automatic photographing. The user can make the corresponding postures and expressions to trigger the automatic photographing. To collect photos containing the pose and expression.
本申请实施例中,通过判断用户处于静止状态,用户的表情为目标表情,以及用户的拍照姿势为预设姿势三个方面来触发自动拍照,根据表情和姿势来触发自动拍照,可以采集到更合适的照片,进一步提高自动拍照的智能性和准确性。In the embodiment of the present application, the automatic photographing is triggered by judging that the user is in a stationary state, the user's expression is the target expression, and the user's photographing posture is the preset posture. Appropriate photos can further improve the intelligence and accuracy of automatic photography.
本申请实施例还提供一种拍照装置,包括:An embodiment of the present application also provides a photographing device, including:
图像获取模块,用于在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;The image acquisition module is used to acquire the preview image of the user who is shot in the shooting area when shooting in the preset shooting mode;
表情识别模块,用于根据预设的表情识别模型识别所述预览图像中包括的表情;An expression recognition module, configured to recognize the expression included in the preview image according to a preset expression recognition model;
拍照触发模块,用于在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。The photographing triggering module is used to trigger the photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
在一些实施例中,所述图像获取模块还用于:In some embodiments, the image acquisition module is also used to:
在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像;Acquire the first number of preview images of the users photographed in the shooting area within a preset time;
表情识别模块具体用于:The expression recognition module is specifically used for:
通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情;Identifying the expression included in the first number of preview images through a preset expression recognition model;
如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。If the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
在一些实施例中,所述图像获取模块还用于:In some embodiments, the image acquisition module is also used to:
在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像之后,检测所述第一数量的预览图像中的像素点的变化;Within a preset time, after acquiring a first number of preview images of the users photographed in the shooting area, detecting a change in pixels in the first number of preview images;
如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。If the change of the pixel points meets the preset condition, it is determined that the user is in a stationary state.
在一些实施例中,所述图像获取模块还用于:In some embodiments, the image acquisition module is also used to:
触发拍照以采集第二数量的所述用户的图像。Trigger a photo to collect a second number of images of the user.
在一些实施例中,所述装置还包括:In some embodiments, the device further includes:
启动提示模块,用于在所述检测到所述用户处于静止状态时,进行拍摄提 示;A prompting module for starting a shooting prompt when the user is detected to be in a stationary state;
完成提示模块,用于在触发拍照以采集所述用户的图像之后,进行完成提示。The completion prompting module is used for prompting completion after triggering the photographing to collect the image of the user.
在一些实施例中,还包括:In some embodiments, it also includes:
信息确定模块,用于所述触发拍照以采集所述用户的图像之前,确定所述预览图像中用户的轮廓信息和脸部角度;The information determining module is used to determine the profile information and face angle of the user in the preview image before the triggering of the photograph to collect the image of the user;
姿势确定模块,用于根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势;A posture determination module, configured to determine the user's photo posture based on the profile information and the face angle;
拍照触发模块具体用于:The photo trigger module is specifically used for:
在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, the expression of the user is a target expression, and the photographing posture is a preset posture, a photograph is triggered to collect images of the user.
在一些实施例中,还包括:In some embodiments, it also includes:
模型训练模块,用于所述根据预设的表情识别模型识别所述预览图像中包括的表情之前,将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;The model training module is used to input the preset face data set into the preset model for training before identifying the expression included in the preview image according to the preset expression recognition model to obtain the preset expression recognition model ;
其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Wherein, the preset face data set includes preset face images, face key point data and expressions, and the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
图6为本申请实施例提供的一种拍照装置的结构框图,该装置可以执行拍照方法,如图6所示,该装置包括:FIG. 6 is a structural block diagram of a photographing device according to an embodiment of the present application. The device can perform a photographing method. As shown in FIG. 6, the device includes:
图像获取模块201,用于在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;The image acquisition module 201 is used to acquire the preview image of the user who is photographed in the shooting area when shooting in the preset photographing mode;
表情识别模块202,用于根据预设的表情识别模型识别所述预览图像中包括的表情;The expression recognition module 202 is configured to recognize the expression included in the preview image according to a preset expression recognition model;
拍照触发模块203,用于在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。The photographing triggering module 203 is configured to trigger photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
本申请实施例中提供的一种拍照装置,通过在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;根据预设的表情识别模型识别所述预览图像中包括的表情;在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。通过采用上述技术方 案,可以在用户处于静止状态时根据用户的表情执行自动拍照,无需用户手动触发或依赖拍摄辅助工具即可以实现自动拍照,可以提高拍照的便捷性。A photographing device provided in an embodiment of the present application obtains a preview image of a user photographed in a shooting area by shooting in a preset photographing mode; and recognizes the preview image included in the preview image according to a preset expression recognition model Expression; when it is detected that the user is in a stationary state, and the user's expression is the target expression, a photo is triggered to collect an image of the user. By adopting the above technical solution, automatic photographing can be performed according to the expression of the user when the user is in a stationary state, and the automatic photographing can be achieved without the user manually triggering or relying on the photographing auxiliary tool, which can improve the convenience of photographing.
可选地,图像获取模块具体用于:Optionally, the image acquisition module is specifically used for:
在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像;Acquire the first number of preview images of the users photographed in the shooting area within a preset time;
表情识别模块具体用于:The expression recognition module is specifically used for:
通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情;Identifying the expression included in the first number of preview images through a preset expression recognition model;
如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。If the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
可选地,还包括:Optionally, it also includes:
在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像之后,检测所述第一数量的预览图像中的像素点的变化;Within a preset time, after acquiring a first number of preview images of the users photographed in the shooting area, detecting a change in pixels in the first number of preview images;
如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。If the change of the pixel points meets the preset condition, it is determined that the user is in a stationary state.
可选地,拍照触发模块具体用于:Optionally, the camera trigger module is specifically used to:
触发拍照以采集第二数量的所述用户的图像。Trigger a photo to collect a second number of images of the user.
可选地,还包括:Optionally, it also includes:
启动提示模块,用于在所述检测到所述用户处于静止状态时,进行拍摄提示;A start prompting module for prompting shooting when the user is detected to be in a stationary state;
还包括:Also includes:
完成提示模块,用于在触发拍照以采集所述用户的图像之后,进行完成提示。The completion prompting module is used for prompting completion after triggering the photographing to collect the image of the user.
可选地,还包括:Optionally, it also includes:
信息确定模块,用于所述触发拍照以采集所述用户的图像之前,确定所述预览图像中用户的轮廓信息和脸部角度;The information determining module is used to determine the profile information and face angle of the user in the preview image before the triggering of the photograph to collect the image of the user;
姿势确定模块,用于根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势;A posture determination module, configured to determine the user's photo posture based on the profile information and the face angle;
拍照触发模块具体用于:The photo trigger module is specifically used for:
在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, the expression of the user is a target expression, and the photographing posture is a preset posture, a photograph is triggered to collect images of the user.
可选地,还包括:Optionally, it also includes:
模型训练模块,用于所述根据预设的表情识别模型识别所述预览图像中包 括的表情之前,将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;The model training module is used to input the preset face data set into the preset model for training before identifying the expression included in the preview image according to the preset expression recognition model to obtain the preset expression recognition model ;
其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Wherein, the preset face data set includes preset face images, face key point data and expressions, and the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的拍照操作,还可以执行本申请任意实施例所提供的拍照方法中的相关操作。A storage medium containing computer-executable instructions provided in an embodiment of the present application is not limited to the above-mentioned photographing operation, and can also perform related operations in the photographing method provided in any embodiment of the present application.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行拍照方法,该方法包括:An embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor is used to execute a photographing method, the method includes:
在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。Storage medium-any kind of memory device or storage device. The term "storage media" is intended to include: installation media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc ; Non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements. The storage medium may also include other types of memory or a combination thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system that is connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected through a network). The storage medium may store program instructions executable by one or more processors (eg, embodied as a computer program).
本申请实施例提供了一种终端设备,该终端设备中可集成本申请实施例提供的拍照装置。An embodiment of the present application provides a terminal device, and the terminal device may be integrated with the photographing device provided by the embodiment of the present application.
图7为本申请实施例提供的一种终端设备的结构示意图,本申请实施例提供了一种终端设备30,包括存储器31,处理器32及存储在存储器31上并可 在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现上述实施例所述的拍照方法。本申请实施例提供的终端设备,可以提高拍照的便捷性。7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. An embodiment of the present application provides a terminal device 30, including a memory 31, a processor 32, and a computer stored on the memory 31 and capable of running on the processor. Program, when the processor executes the computer program, the photographing method described in the above embodiment is implemented. The terminal device provided by the embodiment of the present application can improve the convenience of taking pictures.
图8为本申请实施例提供的一种终端设备的结构示意图。如图8所示,该终端设备可以包括:壳体(图中未示出)、触摸屏(图中未示出)、触摸按键(图中未示出)、存储器301、中央处理器(Central Processing Unit,CPU)302(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU302和所述存储器301设置在所述电路板上;所述电源电路,用于为所述终端设备的各个电路或器件供电;所述存储器301,用于存储可执行程序代码;所述CPU302通过读取所述存储器301中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现:FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 8, the terminal device may include: a casing (not shown in the figure), a touch screen (not shown in the figure), a touch button (not shown in the figure), a memory 301, and a central processing unit (Central Processing) Unit, CPU) 302 (also called processor, hereinafter referred to as CPU), circuit board (not shown in the figure) and power supply circuit (not shown in the figure). The circuit board is placed inside the space enclosed by the housing; the CPU 302 and the memory 301 are provided on the circuit board; the power circuit is used to supply power to each circuit or device of the terminal device The memory 301 is used to store executable program code; the CPU 302 runs the computer program corresponding to the executable program code by reading the executable program code stored in the memory 301 to achieve:
在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
所述终端设备还包括:外设接口303、RF(Radio Frequency,射频)电路305、音频电路306、扬声器311、电源管理芯片308、输入/输出(I/O)子系统309、触摸屏312、其他输入/控制设备310以及外部端口304,这些部件通过一个或多个通信总线或信号线307来通信。The terminal device further includes: a peripheral interface 303, an RF (Radio Frequency) circuit 305, an audio circuit 306, a speaker 311, a power management chip 308, an input / output (I / O) subsystem 309, a touch screen 312, other The input / control device 310 and the external port 304 communicate through one or more communication buses or signal lines 307.
应该理解的是,图示终端设备300仅仅是终端设备的一个范例,并且终端设备300可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 300 is only an example of the terminal device, and the terminal device 300 may have more or fewer components than shown in the figure, and two or more components may be combined, Or it can have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
下面就本实施例提供的用于实现拍照的终端设备进行详细的描述,该终端设备以手机为例。The following describes in detail the terminal device for photographing provided in this embodiment. The terminal device uses a mobile phone as an example.
存储器301,所述存储器301可以被CPU302、外设接口303等访问,所述存储器301可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。 Memory 301, which can be accessed by CPU 302, peripheral interface 303, etc. The memory 301 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices , Or other volatile solid-state storage devices.
外设接口303,所述外设接口303可以将设备的输入和输出外设连接到CPU302和存储器301。 Peripheral interface 303, which can connect input and output peripherals of the device to CPU 302 and memory 301.
I/O子系统309,所述I/O子系统309可以将设备上的输入输出外设,例如触摸屏312和其他输入/控制设备310,连接到外设接口303。I/O子系统309可以包括显示控制器3091和用于控制其他输入/控制设备310的一个或多个输入控制器3092。其中,一个或多个输入控制器3092从其他输入/控制设备310接收电信号或者向其他输入/控制设备310发送电信号,其他输入/控制设备310可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器3092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I / O subsystem 309, which can connect input and output peripherals on the device, such as touch screen 312 and other input / control devices 310, to peripheral interface 303. The I / O subsystem 309 may include a display controller 3091 and one or more input controllers 3092 for controlling other input / control devices 310. Among them, one or more input controllers 3092 receive electrical signals from other input / control devices 310 or send electrical signals to other input / control devices 310. Other input / control devices 310 may include physical buttons (press buttons, rocker buttons, etc. ), Dial pad, slide switch, joystick, click wheel. It is worth noting that the input controller 3092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏312,所述触摸屏312是用户终端设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 312 is an input interface and an output interface between the user terminal device and the user, and displays the visual output to the user, and the visual output may include graphics, text, icons, video, and the like.
I/O子系统309中的显示控制器3091从触摸屏312接收电信号或者向触摸屏312发送电信号。触摸屏312检测触摸屏上的接触,显示控制器3091将检测到的接触转换为与显示在触摸屏312上的用户界面对象的交互,即实现人机交互,显示在触摸屏312上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 3091 in the I / O subsystem 309 receives electrical signals from the touch screen 312 or sends electrical signals to the touch screen 312. The touch screen 312 detects the contact on the touch screen, and the display controller 3091 converts the detected contact into interaction with the user interface object displayed on the touch screen 312, that is, realizes human-computer interaction. Icons for games, icons connected to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output or an extension of the touch-sensitive surface formed by a touch screen.
RF电路305,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路305接收并发送RF信号,RF信号也称为电磁信号,RF电路305将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路305可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 305 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, e-mail, etc. Specifically, the RF circuit 305 receives and transmits RF signals, which are also called electromagnetic signals. The RF circuit 305 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with the communication network and other devices through the electromagnetic signals Communicate. The RF circuit 305 may include known circuits for performing these functions, including but not limited to antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODEC ( COder-DECoder (codec) chipset, subscriber identity module (Subscriber Identity Module, SIM), etc.
音频电路306,主要用于从外设接口303接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器311。The audio circuit 306 is mainly used to receive audio data from the peripheral interface 303, convert the audio data into electrical signals, and send the electrical signals to the speaker 311.
扬声器311,用于将手机通过RF电路305从无线网络接收的语音信号, 还原为声音并向用户播放该声音。The speaker 311 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 305 to a sound and play the sound to the user.
电源管理芯片308,用于为CPU302、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 308 is used for power supply and power management for the hardware connected to the CPU 302, the I / O subsystem, and the peripheral interface.
本申请实施例提供的终端设备,可以提高拍照的便捷性。The terminal device provided by the embodiment of the present application can improve the convenience of taking pictures.
上述实施例中提供的拍照装置、存储介质及终端设备可执行本申请任意实施例所提供的拍照方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的拍照方法。The photographing apparatus, storage medium, and terminal device provided in the above embodiments can perform the photographing method provided in any embodiment of the present application, and have corresponding function modules and beneficial effects for performing the method. For technical details that are not described in detail in the above embodiments, please refer to the photographing method provided in any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments of the present application and the technical principles applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that those skilled in the art can make various obvious changes, readjustments and substitutions without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the appended claims.

Claims (20)

  1. 一种拍照方法,其中,包括:A photographing method, including:
    在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
    根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
    在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
  2. 如权利要求1所述的方法,其中,所述获取拍摄区域内被拍摄的用户的预览图像包括:The method according to claim 1, wherein the acquiring the preview image of the user captured in the shooting area includes:
    在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像;Acquire the first number of preview images of the users photographed in the shooting area within a preset time;
    所述根据预设的表情识别模型识别所述预览图像中包括的表情包括:The recognizing the expression included in the preview image according to the preset expression recognition model includes:
    通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情;Identifying the expression included in the first number of preview images through a preset expression recognition model;
    如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。If the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
  3. 如权利要求2所述的方法,其中,在预设时间内,所述获取拍摄区域内被拍摄的用户的第一数量的预览图像之后,还包括:The method according to claim 2, wherein, within a preset time, after acquiring the first number of preview images of the users photographed in the shooting area, further comprising:
    检测所述第一数量的预览图像中的像素点的变化;Detecting changes in pixels in the first number of preview images;
    如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。If the change of the pixel points meets the preset condition, it is determined that the user is in a stationary state.
  4. 如权利要求1所述的方法,其中,所述触发拍照以采集所述用户的图像包括:The method of claim 1, wherein the triggering to take a picture to collect the image of the user comprises:
    触发拍照以采集第二数量的所述用户的图像。Trigger a photo to collect a second number of images of the user.
  5. 如权利要求4所述的方法,其中,在检测到所述用户处于静止状态时,还包括:The method of claim 4, wherein, when it is detected that the user is in a stationary state, further comprising:
    进行拍摄提示;Prompt for shooting;
    在触发拍照以采集所述用户的图像之后,还包括:After triggering to take a picture to collect the image of the user, the method further includes:
    进行完成提示。Prompt for completion.
  6. 如权利要求1所述的方法,其中,所述触发拍照以采集所述用户的图像之前,还包括:The method of claim 1, wherein before the triggering to take a picture to collect the image of the user, further comprising:
    确定所述预览图像中用户的轮廓信息和脸部角度;Determine the profile information and face angle of the user in the preview image;
    根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势;Determine the user's photographing posture according to the profile information and the face angle;
    所述在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像,包括:When it is detected that the user is in a stationary state, and the user's expression is a target expression, triggering a photograph to collect an image of the user includes:
    在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, the expression of the user is a target expression, and the photographing posture is a preset posture, a photograph is triggered to collect images of the user.
  7. 如权利要求1所述的方法,其中,所述根据预设的表情识别模型识别所述预览图像中包括的表情之前,还包括:The method of claim 1, wherein before identifying the expression included in the preview image according to a preset expression recognition model, further comprising:
    将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;Input the preset face data set into the preset model for training to obtain the preset expression recognition model;
    其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Wherein, the preset face data set includes preset face images, face key point data and expressions, and the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
  8. 一种拍照装置,其中,包括:A photographing device, including:
    图像获取模块,用于在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;The image acquisition module is used to acquire the preview image of the user who is shot in the shooting area when shooting in the preset shooting mode;
    表情识别模块,用于根据预设的表情识别模型识别所述预览图像中包括的表情;An expression recognition module, configured to recognize the expression included in the preview image according to a preset expression recognition model;
    拍照触发模块,用于在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。The photographing triggering module is used to trigger the photographing to collect the user's image when it is detected that the user is at rest and the user's expression is the target expression.
  9. 如权利要求8所述拍照装置,其中,所述图像获取模块还用于:The photographing device according to claim 8, wherein the image acquisition module is further used to:
    在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像;Acquire the first number of preview images of the users photographed in the shooting area within a preset time;
    表情识别模块具体用于:The expression recognition module is specifically used for:
    通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情;Identifying the expression included in the first number of preview images through a preset expression recognition model;
    如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。If the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
  10. 如权利要求9所述拍照装置,其中,所述图像获取模块还用于:The photographing device according to claim 9, wherein the image acquisition module is further used to:
    在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像之后,检测所述第一数量的预览图像中的像素点的变化;Within a preset time, after acquiring a first number of preview images of the users photographed in the shooting area, detecting a change in pixels in the first number of preview images;
    如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。If the change of the pixel points meets the preset condition, it is determined that the user is in a stationary state.
  11. 如权利要求8所述拍照装置,其中,所述图像获取模块还用于:The photographing device according to claim 8, wherein the image acquisition module is further used to:
    触发拍照以采集第二数量的所述用户的图像。Trigger a photo to collect a second number of images of the user.
  12. 如权利要求8所述拍照装置,其中,所述装置还包括:The photographing device according to claim 8, wherein the device further comprises:
    启动提示模块,用于在所述检测到所述用户处于静止状态时,进行拍摄提示;A start prompting module for prompting shooting when the user is detected to be in a stationary state;
    完成提示模块,用于在触发拍照以采集所述用户的图像之后,进行完成提示。The completion prompting module is used for prompting completion after triggering the photographing to collect the image of the user.
  13. 如权利要求8所述拍照装置,其中,还包括:The photographing device according to claim 8, further comprising:
    信息确定模块,用于所述触发拍照以采集所述用户的图像之前,确定所述预览图像中用户的轮廓信息和脸部角度;The information determining module is used to determine the profile information and face angle of the user in the preview image before the triggering of the photograph to collect the image of the user;
    姿势确定模块,用于根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势;A posture determination module, configured to determine the user's photo posture based on the profile information and the face angle;
    拍照触发模块具体用于:The photo trigger module is specifically used for:
    在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, the expression of the user is a target expression, and the photographing posture is a preset posture, a photograph is triggered to collect images of the user.
  14. 如权利要求8所述拍照装置,其中,还包括:The photographing device according to claim 8, further comprising:
    模型训练模块,用于所述根据预设的表情识别模型识别所述预览图像中包括的表情之前,将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;The model training module is used to input the preset face data set into the preset model for training before identifying the expression included in the preview image according to the preset expression recognition model to obtain the preset expression recognition model ;
    其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Wherein, the preset face data set includes preset face images, face key point data and expressions, and the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-7中任一项所述的拍照方法。A computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the photographing method according to any one of claims 1-7 is implemented.
  16. 一种终端设备,其中,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现:A terminal device, including a memory, a processor, and a computer program stored on the memory and executable by the processor, the processor implementing the computer program realizes:
    在预设拍照模式下进行拍摄时,获取拍摄区域内被拍摄的用户的预览图像;When shooting in the preset shooting mode, obtain a preview image of the user who is shot in the shooting area;
    根据预设的表情识别模型识别所述预览图像中包括的表情;Identify the expression included in the preview image according to a preset expression recognition model;
    在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, and the user's expression is a target expression, a photograph is triggered to collect an image of the user.
  17. 如权利要求16所述的终端设备,其中,所述处理器还用于执行:The terminal device of claim 16, wherein the processor is further configured to execute:
    在预设时间内,获取拍摄区域内被拍摄的用户的第一数量的预览图像;Acquire the first number of preview images of the users photographed in the shooting area within a preset time;
    所述根据预设的表情识别模型识别所述预览图像中包括的表情包括:The recognizing the expression included in the preview image according to the preset expression recognition model includes:
    通过预设的表情识别模型识别所述第一数量的预览图像中包括的表情;Identifying the expression included in the first number of preview images through a preset expression recognition model;
    如果所述第一数量的预览图像中均包括目标表情,则确定所述用户的表情为目标表情。If the first number of preview images all include a target expression, it is determined that the user's expression is the target expression.
  18. 如权利要求17所述的终端设备,其中,所述处理器还用于执行:The terminal device according to claim 17, wherein the processor is further configured to execute:
    检测所述第一数量的预览图像中的像素点的变化;Detecting changes in pixels in the first number of preview images;
    如果所述像素点的变化符合预设条件,则确定所述用户处于静止状态。If the change of the pixel points meets the preset condition, it is determined that the user is in a stationary state.
  19. 如权利要求16所述的终端设备,其中,所述处理器还用于执行:The terminal device of claim 16, wherein the processor is further configured to execute:
    确定所述预览图像中用户的轮廓信息和脸部角度;Determine the profile information and face angle of the user in the preview image;
    根据所述轮廓信息和所述脸部角度确定所述用户的拍照姿势;Determine the user's photographing posture according to the profile information and the face angle;
    所述在检测到所述用户处于静止状态,以及所述用户的表情为目标表情时,触发拍照以采集所述用户的图像,包括:When it is detected that the user is in a stationary state, and the user's expression is a target expression, triggering a photograph to collect an image of the user includes:
    在检测到所述用户处于静止状态,所述用户的表情为目标表情,以及所述拍照姿势为预设姿势时,触发拍照以采集所述用户的图像。When it is detected that the user is in a stationary state, the expression of the user is a target expression, and the photographing posture is a preset posture, a photograph is triggered to collect images of the user.
  20. 如权利要求16所述的终端设备,其中,所述处理器还用于执行:The terminal device of claim 16, wherein the processor is further configured to execute:
    将预设人脸数据集输入至预设模型中进行训练,以得到预设的表情识别模型;Input the preset face data set into the preset model for training to obtain the preset expression recognition model;
    其中,所述预设人脸数据集包括预设人脸图像、人脸关键点数据以及表情,所述预设的表情识别模型用于识别输入的图像中的人脸关键点数据,并根据所述人脸关键点数据确定所述输入的图像中包括的表情。Wherein, the preset face data set includes preset face images, face key point data and expressions, and the preset expression recognition model is used to identify face key point data in the input image, and according to the The face key point data determines the expression included in the input image.
PCT/CN2019/104549 2018-11-21 2019-09-05 Photographing method and device, storage medium and terminal device WO2020103526A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811392429.4 2018-11-21
CN201811392429.4A CN109348135A (en) 2018-11-21 2018-11-21 Photographic method, device, storage medium and terminal device

Publications (1)

Publication Number Publication Date
WO2020103526A1 true WO2020103526A1 (en) 2020-05-28

Family

ID=65316849

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/104549 WO2020103526A1 (en) 2018-11-21 2019-09-05 Photographing method and device, storage medium and terminal device

Country Status (2)

Country Link
CN (1) CN109348135A (en)
WO (1) WO2020103526A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112791401A (en) * 2020-12-31 2021-05-14 上海米哈游天命科技有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN114245021A (en) * 2022-02-14 2022-03-25 北京火山引擎科技有限公司 Interactive shooting method, electronic device, storage medium and computer program product
CN114302200A (en) * 2021-06-28 2022-04-08 海信视像科技股份有限公司 Display device and photographing method based on user posture triggering
CN114449165A (en) * 2021-12-27 2022-05-06 广州极飞科技股份有限公司 Photographing control method and device, unmanned equipment and storage medium
CN116701675A (en) * 2022-02-25 2023-09-05 荣耀终端有限公司 Image data processing method and electronic equipment

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348135A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Photographic method, device, storage medium and terminal device
CN110177205A (en) * 2019-05-20 2019-08-27 深圳壹账通智能科技有限公司 Terminal device, photographic method and computer readable storage medium based on micro- expression
CN110191283A (en) * 2019-06-03 2019-08-30 成都品果科技有限公司 A kind of Intelligent photographing method and device
CN110348419B (en) * 2019-07-18 2023-03-24 三星电子(中国)研发中心 Method and device for photographing
CN112154655A (en) * 2019-09-27 2020-12-29 深圳市大疆创新科技有限公司 Composition method, system and storage medium for camera device
CN112752016B (en) * 2020-02-14 2023-06-16 腾讯科技(深圳)有限公司 Shooting method, shooting device, computer equipment and storage medium
CN112672053A (en) * 2020-12-23 2021-04-16 深圳创维-Rgb电子有限公司 Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN113269072A (en) * 2021-05-18 2021-08-17 咪咕文化科技有限公司 Picture processing method, device, equipment and computer program
CN113784039B (en) * 2021-08-03 2023-07-11 北京达佳互联信息技术有限公司 Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090322895A1 (en) * 2008-06-30 2009-12-31 Casio Computer Co., Ltd Image sensing apparatus and storage medium
CN101630410A (en) * 2009-08-18 2010-01-20 北京航空航天大学 Human body sitting posture judgment method based on single camera
KR20100073765A (en) * 2008-12-23 2010-07-01 삼성전자주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
JP2010263269A (en) * 2009-04-30 2010-11-18 Sanyo Electric Co Ltd Imaging apparatus
CN102710865A (en) * 2012-06-18 2012-10-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with photography function and portrait self-timer method thereof
CN104506721A (en) * 2014-12-15 2015-04-08 南京中科创达软件科技有限公司 Self-timer system and use method for mobile phone camera
CN107635095A (en) * 2017-09-20 2018-01-26 广东欧珀移动通信有限公司 Shoot method, apparatus, storage medium and the capture apparatus of photo
CN108646920A (en) * 2018-05-16 2018-10-12 Oppo广东移动通信有限公司 Identify exchange method, device, storage medium and terminal device
CN108737718A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Image pickup method, device and smart machine
CN109348135A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Photographic method, device, storage medium and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8488023B2 (en) * 2009-05-20 2013-07-16 DigitalOptics Corporation Europe Limited Identifying facial expressions in acquired digital images
CN102831430B (en) * 2011-06-14 2015-02-04 华晶科技股份有限公司 Method for predicting photographing time point and device adopting same
CN103024275A (en) * 2012-12-17 2013-04-03 东莞宇龙通信科技有限公司 Automatic shooting method and terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090322895A1 (en) * 2008-06-30 2009-12-31 Casio Computer Co., Ltd Image sensing apparatus and storage medium
KR20100073765A (en) * 2008-12-23 2010-07-01 삼성전자주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
JP2010263269A (en) * 2009-04-30 2010-11-18 Sanyo Electric Co Ltd Imaging apparatus
CN101630410A (en) * 2009-08-18 2010-01-20 北京航空航天大学 Human body sitting posture judgment method based on single camera
CN102710865A (en) * 2012-06-18 2012-10-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with photography function and portrait self-timer method thereof
CN104506721A (en) * 2014-12-15 2015-04-08 南京中科创达软件科技有限公司 Self-timer system and use method for mobile phone camera
CN107635095A (en) * 2017-09-20 2018-01-26 广东欧珀移动通信有限公司 Shoot method, apparatus, storage medium and the capture apparatus of photo
CN108737718A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Image pickup method, device and smart machine
CN108646920A (en) * 2018-05-16 2018-10-12 Oppo广东移动通信有限公司 Identify exchange method, device, storage medium and terminal device
CN109348135A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Photographic method, device, storage medium and terminal device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112791401A (en) * 2020-12-31 2021-05-14 上海米哈游天命科技有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN112791401B (en) * 2020-12-31 2023-12-12 上海米哈游天命科技有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN114302200A (en) * 2021-06-28 2022-04-08 海信视像科技股份有限公司 Display device and photographing method based on user posture triggering
CN114449165A (en) * 2021-12-27 2022-05-06 广州极飞科技股份有限公司 Photographing control method and device, unmanned equipment and storage medium
CN114449165B (en) * 2021-12-27 2023-07-18 广州极飞科技股份有限公司 Photographing control method and device, unmanned equipment and storage medium
CN114245021A (en) * 2022-02-14 2022-03-25 北京火山引擎科技有限公司 Interactive shooting method, electronic device, storage medium and computer program product
CN114245021B (en) * 2022-02-14 2023-08-08 北京火山引擎科技有限公司 Interactive shooting method, electronic equipment, storage medium and computer program product
CN116701675A (en) * 2022-02-25 2023-09-05 荣耀终端有限公司 Image data processing method and electronic equipment

Also Published As

Publication number Publication date
CN109348135A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
WO2020103526A1 (en) Photographing method and device, storage medium and terminal device
WO2019183819A1 (en) Photographic method, photographic apparatus, and mobile terminal
EP3076659B1 (en) Photographing apparatus, control method thereof, and non-transitory computer-readable recording medium
WO2017036035A1 (en) Screen control method and device
CN108566516B (en) Image processing method, device, storage medium and mobile terminal
US11210796B2 (en) Imaging method and imaging control apparatus
EP2579126A1 (en) Method for controlling state of mobile terminal and mobile terminal
US11785331B2 (en) Shooting control method and terminal
CN110992327A (en) Lens contamination state detection method and device, terminal and storage medium
KR20140104753A (en) Image preview using detection of body parts
WO2020020134A1 (en) Photographing method and mobile terminal
WO2021197121A1 (en) Image photographing method and electronic device
CN109361794B (en) Zoom control method and device of mobile terminal, storage medium and mobile terminal
CN105915803B (en) Photographing method and system based on sensor
WO2017124899A1 (en) Information processing method, apparatus and electronic device
US9854161B2 (en) Photographing device and method of controlling the same
WO2022110614A1 (en) Gesture recognition method and apparatus, electronic device, and storage medium
CN108881544B (en) Photographing method and mobile terminal
CN108063859B (en) Automatic photographing control method, terminal and computer storage medium
WO2018184260A1 (en) Correcting method and device for document image
US11284020B2 (en) Apparatus and method for displaying graphic elements according to object
WO2018049630A1 (en) Photographing method and terminal
CN107995417B (en) Photographing method and mobile terminal
JP6477782B2 (en) Electronic device, information system, server, and program
CN112840634B (en) Electronic device and method for obtaining image

Legal Events

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

Ref document number: 19886370

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19886370

Country of ref document: EP

Kind code of ref document: A1