WO2019011091A1 - Photographing reminding method and device, terminal and computer storage medium - Google Patents

Photographing reminding method and device, terminal and computer storage medium Download PDF

Info

Publication number
WO2019011091A1
WO2019011091A1 PCT/CN2018/090588 CN2018090588W WO2019011091A1 WO 2019011091 A1 WO2019011091 A1 WO 2019011091A1 CN 2018090588 W CN2018090588 W CN 2018090588W WO 2019011091 A1 WO2019011091 A1 WO 2019011091A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
current
recommended
frame
photographing
Prior art date
Application number
PCT/CN2018/090588
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 WO2019011091A1 publication Critical patent/WO2019011091A1/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
    • 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/62Control of parameters via user interfaces

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a photo reminding method, apparatus, terminal, and computer readable storage medium.
  • the camera function has become an indispensable function module in the field of smart terminals (such as mobile phones and tablets).
  • the built-in camera function in the smart terminal enables users to record and share their life status and beauty around them through the smart terminal. Scenery.
  • the object of the present invention is to solve at least one of the above technical problems to some extent.
  • the first object of the present invention is to provide a photographing reminding method, which prompts a recommended position of a human face in a framing frame in the process of photographing, so that the user can photograph the quality of the composition according to the recommended position.
  • the photo reduces the trouble of the user repeatedly repeating the shooting due to the unsatisfactory effect of the photograph taken, and improves the user's photographing experience.
  • a second object of the present invention is to provide a photographing reminding device.
  • a third object of the present invention is to propose a terminal.
  • a fourth object of the present invention is to provide a computer readable storage medium.
  • a fifth object of the present invention is to provide a computer program product.
  • the photographing reminding method of the first aspect of the present invention includes: acquiring a current photographing screen; identifying a human face in the current photographing screen, and acquiring a position of the human face in the current viewing frame; The location of the face in the current frame is used to generate a recommended location of the face; the recommended location is displayed in the current frame.
  • the photographing reminding method of the embodiment of the present invention in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, and the current view is based on the face.
  • the position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • the method further includes: receiving a movement operation of the current finder frame by the user; determining whether a position of the face in the current finder frame coincides with the recommended position; and if the judgment is coincident, at the current The recommended location is cancelled in the finder frame.
  • the method further includes: determining whether a display time of the recommended location exceeds a preset time threshold; if the preset time threshold is exceeded, then the current framing The recommended location is cancelled in the box.
  • the method further includes: generating a face contour according to the face, and displaying the face contour on the recommended position.
  • the generating the recommended location of the face according to the location of the face in the current frame includes:
  • the method further includes:
  • the generating a recommended location of the face according to the location of the face in the current frame includes:
  • the method further includes:
  • the generating a recommended location of the face according to the location of the face in the current frame includes:
  • the photographing reminding device of the second aspect of the present invention includes: a first acquiring module, configured to acquire a current photographing screen; and a first processing module, configured to identify a human face in the current photographing screen, and Obtaining a position of the face in the current frame; generating a module, configured to generate a recommended position of the face according to the position of the face in the current frame; a display module, configured to be in the current frame The recommended location is displayed in .
  • the photographing reminding device acquires the current photographing screen during the photographing process of the user, and recognizes the face in the current photographing screen, and acquires the position of the human face in the current framing frame, according to the current framing of the human face.
  • the position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • the device further includes: a receiving module, configured to receive a moving operation of the current frame by the user; and a first determining module, configured to determine whether the location of the face in the current frame is related to the recommendation
  • the second processing module is configured to cancel the display of the recommended location in the current finder frame when determining that the location of the face in the current finder frame coincides with the recommended location.
  • the device further includes: a second determining module, configured to determine whether the display time of the recommended location exceeds a preset time threshold; and the third processing module is configured to determine that the display time of the recommended location exceeds the When the time threshold is preset, the recommended position is cancelled in the current frame.
  • a second determining module configured to determine whether the display time of the recommended location exceeds a preset time threshold
  • the third processing module is configured to determine that the display time of the recommended location exceeds the When the time threshold is preset, the recommended position is cancelled in the current frame.
  • the device further includes: a fourth processing module, configured to generate a face contour according to the face, and display the face contour on the recommended position.
  • a fourth processing module configured to generate a face contour according to the face, and display the face contour on the recommended position.
  • the generating module is specifically configured to:
  • the method further includes:
  • a second acquiring module configured to acquire a contour of the face of the face in the current frame
  • the generating module is specifically configured to:
  • the device further comprises:
  • a third acquiring module configured to acquire brightness information of the current shooting picture in the current frame
  • the generating module is specifically configured to:
  • the terminal in a terminal of a third aspect of the present invention, includes a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing
  • the processor and the memory are disposed on the circuit board;
  • the power supply circuit is configured to supply power to each circuit or device of the terminal;
  • the memory is configured to store executable program code;
  • the processor Running a program corresponding to the executable program code by reading executable program code stored in the memory for performing the steps of: acquiring a current photographing screen; identifying a face in the current photographing screen, and Obtaining a position of the face in the current frame; generating a recommended position of the face according to the position of the face in the current frame; displaying the recommended position in the current frame.
  • the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, according to the face in the current frame.
  • the location generates a recommended location for the face and displays the recommended location in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • a fourth aspect of the present invention provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the photo reminding method of the first aspect of the present invention is implemented.
  • a fifth aspect of the present invention provides a computer program product, when a command processor in the computer program product executes, performing a photo reminding method, the method comprising: acquiring a current photographing screen; and identifying the current Taking a face in the picture, and acquiring a position of the face in the current frame; generating a recommended position of the face according to the position of the face in the current frame; displaying in the current frame The recommended location.
  • FIG. 1 is a flow chart of a photo reminding method according to an embodiment of the present invention.
  • 2a is an exemplary diagram 1 of a position of a face in a current frame and a corresponding recommended position
  • 2b is an example diagram 2 of the position of the face in the current frame and the corresponding recommended position
  • FIG. 3 is a flowchart of a photo reminding method according to another embodiment of the present invention.
  • FIG. 4 is a flow chart of a photographing reminding method according to still another embodiment of the present invention.
  • FIG. 5 is a flowchart of a photo reminding method according to still another embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal 90 according to an embodiment of the present invention.
  • the terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
  • the photo reminding method includes the following steps:
  • the current shooting picture is acquired.
  • the current shooting picture in the terminal is acquired.
  • the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
  • the current shooting image may be subjected to face recognition, and according to the face recognition result, it is determined whether there is a human face in the current shooting image, and when it is determined according to the face recognition result that there is a human face in the current shooting image, Determine the position of the face in the current shooting screen.
  • the face region when it is determined that there is a face in the current photographing screen, the face region may be acquired, and the center position in the face region is taken as the position of the face.
  • the position of the face in the current shooting picture is the position of the face in the current frame.
  • a recommended position of the face is generated according to the position of the face in the current frame.
  • the recommended position of the face can be generated in a plurality of ways, and the selection can be performed according to the actual application requirement. This embodiment does not limit this, and the method for generating a face is more clearly explained.
  • the process of recommending a location is illustrated as follows:
  • the recommended position corresponding to the current position of the face in the current finder frame is determined.
  • a recommended position corresponding to the location is generated according to a function for calculating a face recommended position and a position of the face in the current frame.
  • the location area of the face in the current frame is determined according to the position in the current frame, and the recommended position of the face is determined according to the location area.
  • the recommended position of the face may be determined according to the correspondence between the previously saved location area and the recommended location of the face.
  • the recommended position of each face may be determined according to the position of each face in the current frame.
  • a plurality of photographing gestures corresponding to the number of human faces may be provided, and the plurality of photographing postures are received from the user.
  • the selected target photographing posture is obtained, the face recommended position corresponding to the target photographing posture is acquired, and the corresponding recommended position is displayed in the current framing box.
  • the composition mode is matched, and the recommended position of the face in the current frame is determined according to the composition mode.
  • the composition mode may include, but is not limited to, a symmetric composition mode, a balanced composition mode, a diagonal composition mode, a compact composition, a triangle composition mode, and the like.
  • the number of faces in the current frame is three, that is, three people take photos together, and combined with the image information in the current frame, it is determined that the camera can be photographed using the triangle composition mode.
  • the position of the person in the current frame is respectively determined by the recommended position of the face in the current frame, wherein the positions of the three faces in the current frame and the corresponding position of the recommended position are as shown in FIG. 2a, wherein FIG. 2a
  • the point in the middle indicates the position of the face in the current frame
  • the circle indicates the recommended position of the face in the current frame.
  • the face contour of the face in the current frame is obtained, and the recommended position of the face in the current frame is generated according to the position of the face in the current frame and the face contour.
  • the recommended position of the face in the current finder frame may be generated according to the position of the face in the current framing frame and the contour of the face.
  • FIG. 2b shows that the face contour corresponding to the face at the same position is a circular face contour and a diamond face contour
  • A1 in FIG. 2b represents the recommended position corresponding to the corresponding circular face contour
  • A2 represents the recommended position corresponding to the corresponding diamond face contour
  • the brightness information of the current shooting frame in the current frame is obtained, and the recommended position of the face in the current frame is determined according to the position of the face in the current frame and the brightness information of the current frame.
  • the area where the brightness exceeds the preset brightness threshold is determined according to the brightness information of the current shooting picture, and according to the person The position of the face in the current frame and the determined area determine the recommended position of the face in the current frame.
  • the recommended location is displayed in the current frame.
  • the recommended position may be displayed in a preset frame in the current frame.
  • the prompt box of the preset shape may be preset in the terminal, or may be preset by the user according to requirements.
  • a recommended position can be displayed in a rectangular or elliptical balloon in the current frame.
  • a preset color may also be set for a prompt box of a preset shape.
  • the photographing reminding method of the embodiment of the present invention in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, and the current view is based on the face.
  • the position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • FIG. 3 is a flow chart of a photo reminding method according to another embodiment of the present invention.
  • the photo reminding method of this embodiment is applied to the terminal.
  • the terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
  • the photo reminding method includes the following steps:
  • the current shooting picture is acquired.
  • the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
  • Block 33 generating a recommended position of the face according to the position of the face in the current frame.
  • the recommended location is displayed in the current framing box.
  • Block 35 receiving a user's movement operation on the current finder frame.
  • the photographing reminding method of the embodiment of the present invention in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, and the current view is based on the face.
  • the position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • the terminal 4 is a flow chart of a photographing reminding method according to still another embodiment of the present invention.
  • the photo reminding method of this embodiment is applied to the terminal.
  • the terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
  • the photo reminding method includes the following steps:
  • the current shooting picture is acquired.
  • the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
  • a contour of the face is generated based on the face in the current captured picture.
  • the face contour may be determined according to the face area according to the face area in the current shooting picture.
  • a recommended location of the face is generated based on the location of the face in the current frame.
  • the recommended location is displayed in the current framing box and the facial contour is displayed at the recommended location.
  • the photographing reminding method of the embodiment of the present invention during the photographing process of the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the human face in the current frame is obtained, and the current photographing screen is The face generates a face contour, and the recommended position of the face is generated according to the position of the face in the current frame, the recommended position is displayed in the current frame, and the face silhouette is displayed at the recommended position. Therefore, in the process of photographing, the recommended position of the face is displayed in the framing box and the contour of the face is displayed, which facilitates the user to adjust the position of the face in the current frame according to the recommended position and take a picture, thereby capturing the composition effect.
  • a good quality photo reduces the user's trouble of repeatedly shooting due to the unsatisfactory results of the captured photos, which improves the user's photo experience.
  • FIG. 5 is a flow chart of a photographing reminding method according to still another embodiment of the present invention.
  • the photo reminding method of this embodiment is applied to the terminal.
  • the terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
  • the photo reminding method includes the following steps:
  • the current shooting picture is acquired.
  • the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
  • a recommended position of the face is generated based on the position of the face in the current frame.
  • the recommended location is displayed in the current framing box.
  • the preset time threshold may be a time threshold for displaying the recommended location preset in the terminal, or may be a time threshold for displaying the recommended location set by the user according to the requirement.
  • Block 56 if the preset time threshold is exceeded, the recommended location is cancelled in the current frame.
  • the photographing reminding method in the process of photographing the user, after displaying the recommended position of the face in the current framing box, if it is detected that the display time of the recommended position exceeds the preset time threshold, then in the current framing box Cancel the display of the recommended location. Thereby, the influence of the display recommended position on the current shooting picture is reduced, and the user is convenient to view the current shooting picture.
  • the present invention also provides a photographing reminding device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a photographing reminding device according to an embodiment of the present invention.
  • the photographing reminding device of the embodiment of the present invention may include a first obtaining module 110, a first processing module 120, a generating module 130, and a display module 140, where:
  • the first obtaining module 110 is configured to acquire a current shooting picture.
  • the first processing module 120 is configured to identify a face in the current shooting picture and obtain a position of the face in the current frame.
  • the generating module 130 is configured to generate a recommended position of the face according to the position of the face in the current frame.
  • the display module 140 is configured to display the recommended location in the current frame.
  • the device in order to enable the user to take a photo with good quality of the composition effect, based on the embodiment shown in FIG. 6, as shown in FIG. 7, the device further includes:
  • the receiving module 150 is configured to receive a user's moving operation on the current finder frame.
  • the first determining module 160 is configured to determine whether the position of the face in the current frame coincides with the recommended position.
  • the second processing module 170 is configured to cancel the display of the recommended position in the current finder frame when determining that the position of the face in the current frame coincides with the recommended position.
  • the device in order to reduce the impact on the current captured picture, on the basis of the embodiment shown in FIG. 6, as shown in FIG. 8, the device may further include:
  • the second determining module 180 is configured to determine whether the display time of the recommended location exceeds a preset time threshold.
  • the third processing module 190 is configured to determine that the display time of the recommended location exceeds the preset time threshold, the recommended location is cancelled in the current finder frame.
  • the apparatus in order to facilitate the user to better adjust the position of the face, on the basis of the embodiment shown in FIG. 6, as shown in FIG. 9, the apparatus may further include:
  • the fourth processing module 200 is configured to generate a face contour according to the face and display the face contour on the recommended position.
  • the photographing reminding device acquires the current photographing screen during the photographing process of the user, and recognizes the face in the current photographing screen, and acquires the position of the human face in the current framing frame, according to the current framing of the human face.
  • the position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • the present invention also proposes a terminal.
  • a terminal includes a photographing reminding device of an embodiment of the second aspect of the present invention.
  • the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, according to the face in the current frame.
  • the location generates a recommended location for the face and displays the recommended location in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
  • the present invention also proposes a terminal.
  • FIG. 10 is a schematic structural diagram of a terminal 90 according to an embodiment of the present invention. This embodiment is described by taking the terminal 90 as a mobile terminal as an example.
  • the terminal 90 includes a housing 901, a processor 902, a memory 903, a circuit board 904, and a power supply circuit 905, wherein the circuit board 904 is disposed inside a space surrounded by the housing 901, and the processor 902 and the foregoing memory 903 are disposed on the circuit board 904; the power supply circuit 905 is configured to supply power to each circuit or device of the terminal 90; the memory 903 is configured to store executable program code; and the processor 902 reads the above The executable program code stored in the memory 903 runs a program corresponding to the above-described executable program code for executing the photographing reminding method of the above embodiment.
  • a computer readable storage medium having stored thereon a computer program, wherein the program is implemented by a processor to implement the aforementioned photo reminding method.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Disclosed are a photographing reminding method and device, a terminal and a computer storage medium. The method comprises: obtaining a currently photographed image; identifying a human face in the currently photographed image, and obtaining the position of the human face in a current view-finding frame; generating a recommended position of the human face based on the position of the human face in the current view-finding frame; and displaying the recommended position in the current view-finding frame. The photographing reminding method provided by embodiments of the present application can remind the recommended position of the human face in the view-finding frame in the photographing process, so that a user can take a photo with good layout quality based on the recommended position, the troubles that the user takes photos repeatedly due to the unsatisfactory photo effect are reduced, and the user experience in photographing is improved.

Description

拍照提醒方法、装置、终端和计算机存储介质Photograph reminding method, device, terminal and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求广东欧珀移动通信有限公司于2017年07月10日提交的、发明名称为“拍照提醒方法、装置、终端和计算机存储介质”的、中国专利申请号“201710558401.2”的优先权。This application claims the priority of the Chinese patent application No. "201710558401.2", which was filed on July 10, 2017 by Guangdong Opal Mobile Communications Co., Ltd., and has the title of "photographing reminding method, device, terminal and computer storage medium".
技术领域Technical field
本发明涉及终端技术领域,尤其涉及一种拍照提醒方法、装置、终端和计算机可读存储介质。The present invention relates to the field of terminal technologies, and in particular, to a photo reminding method, apparatus, terminal, and computer readable storage medium.
背景技术Background technique
目前,拍照功能已成为智能终端(例如手机,平板电脑)领域中的一项不可缺少的功能模块,智能终端中内置拍照功能使得用户可通过智能终端随时随地记录并分享自己的生活状态及身边美丽的景物。At present, the camera function has become an indispensable function module in the field of smart terminals (such as mobile phones and tablets). The built-in camera function in the smart terminal enables users to record and share their life status and beauty around them through the smart terminal. Scenery.
在用户使用智能终端拍照的过程中,由于大部分人并不是专业的摄影师,对拍照技术有限,所拍摄的照片的质量效果一般,为了获得人像构图质量比较好的照片,用户需要多次拍摄,并在每次拍摄过程中,用户需要不断调整终端与人脸之间的距离以及角度,以从所拍摄的多种照片中获取人像构图质量比较好的照片,这个过程需要用户的操作较多,用户的拍照体验并不理想。In the process of taking pictures by the user using the smart terminal, since most people are not professional photographers, the photo technology is limited, and the quality of the photographs taken is generally good. In order to obtain a photograph with better quality of portrait composition, the user needs to take multiple shots. And in each shooting process, the user needs to constantly adjust the distance and angle between the terminal and the face to obtain a photo with better quality of the portrait composition from the various photos taken. This process requires more operation by the user. The user's photo experience is not ideal.
发明内容Summary of the invention
本发明的目的旨在至少在一定程度上解决上述的技术问题之一。The object of the present invention is to solve at least one of the above technical problems to some extent.
为此,本发明的第一个目的在于提出一种拍照提醒方法,该方法在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。Therefore, the first object of the present invention is to provide a photographing reminding method, which prompts a recommended position of a human face in a framing frame in the process of photographing, so that the user can photograph the quality of the composition according to the recommended position. The photo reduces the trouble of the user repeatedly repeating the shooting due to the unsatisfactory effect of the photograph taken, and improves the user's photographing experience.
本发明的第二个目的在于提出一种拍照提醒装置。A second object of the present invention is to provide a photographing reminding device.
本发明的第三个目的在于提出一种终端。A third object of the present invention is to propose a terminal.
本发明的第四个目的在于提出一种计算机可读存储介质。A fourth object of the present invention is to provide a computer readable storage medium.
本发明的第五个目的在于提出一种计算机程序产品。A fifth object of the present invention is to provide a computer program product.
为了实现上述目的,本发明第一方面实施例的拍照提醒方法,包括:获取当前拍摄画 面;识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置;在所述当前取景框中显示所述推荐位置。In order to achieve the above object, the photographing reminding method of the first aspect of the present invention includes: acquiring a current photographing screen; identifying a human face in the current photographing screen, and acquiring a position of the human face in the current viewing frame; The location of the face in the current frame is used to generate a recommended location of the face; the recommended location is displayed in the current frame.
根据本发明实施例的拍照提醒方法,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。According to the photographing reminding method of the embodiment of the present invention, in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, and the current view is based on the face. The position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
优选的,所述方法还包括:接收用户对所述当前取景框的移动操作;判断所述人脸在当前取景框中的位置是否与所述推荐位置重合;如果判断重合,则在所述当前取景框中取消显示所述推荐位置。Preferably, the method further includes: receiving a movement operation of the current finder frame by the user; determining whether a position of the face in the current finder frame coincides with the recommended position; and if the judgment is coincident, at the current The recommended location is cancelled in the finder frame.
优选的,在所述当前取景框中显示所述推荐位置之后,还包括:判断所述推荐位置的显示时间是否超过预设时间阈值;如果超过所述预设时间阈值,则在所述当前取景框中取消显示所述推荐位置。Preferably, after the recommended location is displayed in the current finder frame, the method further includes: determining whether a display time of the recommended location exceeds a preset time threshold; if the preset time threshold is exceeded, then the current framing The recommended location is cancelled in the box.
优选的,在所述识别所述当前拍摄画面中的人脸之后,还包括:根据所述人脸生成人脸轮廓,并在所述推荐位置上的显示所述人脸轮廓。Preferably, after the recognizing the face in the current shooting picture, the method further includes: generating a face contour according to the face, and displaying the face contour on the recommended position.
优选的,所述根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置,包括:Preferably, the generating the recommended location of the face according to the location of the face in the current frame includes:
根据所述人脸在当前取景框中的位置和所述当前拍摄画面,匹配出构图模式,并根据所述构图模式确定出所述人脸在当前取景框中的推荐位置。And determining a composition mode according to the position of the face in the current frame and the current shooting picture, and determining a recommended position of the face in the current frame according to the composition mode.
优选的,还包括:Preferably, the method further includes:
获取所述人脸在当前取景框中的人脸轮廓;Obtaining a face contour of the face in the current frame;
所述根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置,包括:The generating a recommended location of the face according to the location of the face in the current frame includes:
根据所述人脸在当前取景框中的位置和人脸轮廓生成所述人脸在当前取景框的推荐位置。Generating a recommended position of the face in the current finder frame according to the position of the face in the current framing frame and the face contour.
优选的,所述方法还包括:Preferably, the method further includes:
获取所述当前取景框中所述当前拍摄画面的亮度信息;Obtaining brightness information of the current shooting picture in the current frame;
所述根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置,包括:The generating a recommended location of the face according to the location of the face in the current frame includes:
根据所述人脸在当前取景框中的位置和所述当前拍摄画面的亮度信息确定所述人脸在当前取景框中的推荐位置。Determining a recommended position of the face in the current frame according to the position of the face in the current frame and the brightness information of the current shooting frame.
为了实现上述目的,本发明第二方面实施例的拍照提醒装置,包括:第一获取模块,用于获取当前拍摄画面;第一处理模块,用于识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;生成模块,用于根据所述人脸在当前取景框中的位置生成 所述人脸的推荐位置;显示模块,用于在所述当前取景框中显示所述推荐位置。In order to achieve the above object, the photographing reminding device of the second aspect of the present invention includes: a first acquiring module, configured to acquire a current photographing screen; and a first processing module, configured to identify a human face in the current photographing screen, and Obtaining a position of the face in the current frame; generating a module, configured to generate a recommended position of the face according to the position of the face in the current frame; a display module, configured to be in the current frame The recommended location is displayed in .
根据本发明实施例的拍照提醒装置,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。The photographing reminding device according to the embodiment of the present invention acquires the current photographing screen during the photographing process of the user, and recognizes the face in the current photographing screen, and acquires the position of the human face in the current framing frame, according to the current framing of the human face. The position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
优选的,所述装置还包括:接收模块,用于接收用户对所述当前取景框的移动操作;第一判断模块,用于判断所述人脸在当前取景框中的位置是否与所述推荐位置重合;第二处理模块,用于在判断所述人脸在当前取景框中的位置与所述推荐位置重合时,在所述当前取景框中取消显示所述推荐位置。Preferably, the device further includes: a receiving module, configured to receive a moving operation of the current frame by the user; and a first determining module, configured to determine whether the location of the face in the current frame is related to the recommendation The second processing module is configured to cancel the display of the recommended location in the current finder frame when determining that the location of the face in the current finder frame coincides with the recommended location.
优选的,所述装置还包括:第二判断模块,用于判断所述推荐位置的显示时间是否超过预设时间阈值;第三处理模块,用于判断出所述推荐位置的显示时间超过所述预设时间阈值时,在所述当前取景框中取消显示所述推荐位置。Preferably, the device further includes: a second determining module, configured to determine whether the display time of the recommended location exceeds a preset time threshold; and the third processing module is configured to determine that the display time of the recommended location exceeds the When the time threshold is preset, the recommended position is cancelled in the current frame.
优选的,所述装置还包括:第四处理模块,用于根据所述人脸生成人脸轮廓,并在所述推荐位置上的显示所述人脸轮廓。Preferably, the device further includes: a fourth processing module, configured to generate a face contour according to the face, and display the face contour on the recommended position.
优选的,所述生成模块,具体用于:Preferably, the generating module is specifically configured to:
根据所述人脸在当前取景框中的位置和所述当前拍摄画面,匹配出构图模式,并根据所述构图模式确定出所述人脸在当前取景框中的推荐位置。And determining a composition mode according to the position of the face in the current frame and the current shooting picture, and determining a recommended position of the face in the current frame according to the composition mode.
优选的,还包括:Preferably, the method further includes:
第二获取模块,用于获取所述人脸在当前取景框中的人脸轮廓;a second acquiring module, configured to acquire a contour of the face of the face in the current frame;
所述生成模块,具体用于:The generating module is specifically configured to:
根据所述人脸在当前取景框中的位置和人脸轮廓生成所述人脸在当前取景框的推荐位置。Generating a recommended position of the face in the current finder frame according to the position of the face in the current framing frame and the face contour.
优选的,所述装置还包括:Preferably, the device further comprises:
第三获取模块,用于获取所述当前取景框中所述当前拍摄画面的亮度信息;a third acquiring module, configured to acquire brightness information of the current shooting picture in the current frame;
所述生成模块,具体用于:The generating module is specifically configured to:
根据所述人脸在当前取景框中的位置和所述当前拍摄画面的亮度信息确定所述人脸在当前取景框中的推荐位置。Determining a recommended position of the face in the current frame according to the position of the face in the current frame and the brightness information of the current shooting frame.
为了实现上述目的,本发明第三方面实施例的终端,所述终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可 执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:获取当前拍摄画面;识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置;在所述当前取景框中显示所述推荐位置。In order to achieve the above object, in a terminal of a third aspect of the present invention, the terminal includes a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing The processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the terminal; the memory is configured to store executable program code; the processor Running a program corresponding to the executable program code by reading executable program code stored in the memory for performing the steps of: acquiring a current photographing screen; identifying a face in the current photographing screen, and Obtaining a position of the face in the current frame; generating a recommended position of the face according to the position of the face in the current frame; displaying the recommended position in the current frame.
根据本发明实施例的终端,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。According to the terminal of the embodiment of the present invention, in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, according to the face in the current frame. The location generates a recommended location for the face and displays the recommended location in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
本发明第四方面实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明第一方面实施例的拍照提醒方法。A fourth aspect of the present invention provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the photo reminding method of the first aspect of the present invention is implemented.
本发明第五方面实施例提供了一种计算机程序产品,当所述计算机程序产品中的指令处理器执行时,执行一种拍照提醒方法,所述方法包括:获取当前拍摄画面;识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置;在所述当前取景框中显示所述推荐位置。A fifth aspect of the present invention provides a computer program product, when a command processor in the computer program product executes, performing a photo reminding method, the method comprising: acquiring a current photographing screen; and identifying the current Taking a face in the picture, and acquiring a position of the face in the current frame; generating a recommended position of the face according to the position of the face in the current frame; displaying in the current frame The recommended location.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。The additional aspects and advantages of the invention will be set forth in part in the description which follows.
附图说明DRAWINGS
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1是根据本发明一个实施例的拍照提醒方法的流程图;1 is a flow chart of a photo reminding method according to an embodiment of the present invention;
图2a是人脸在当前取景框中的位置以及对应的推荐位置的示例图一;2a is an exemplary diagram 1 of a position of a face in a current frame and a corresponding recommended position;
图2b是人脸在当前取景框中的位置以及对应的推荐位置的示例图二;2b is an example diagram 2 of the position of the face in the current frame and the corresponding recommended position;
图3是根据本发明另一个实施例的拍照提醒方法的流程图;FIG. 3 is a flowchart of a photo reminding method according to another embodiment of the present invention; FIG.
图4是根据本发明又一个实施例的拍照提醒方法的流程图;4 is a flow chart of a photographing reminding method according to still another embodiment of the present invention;
图5是根据本发明再一个实施例的拍照提醒方法的流程图;FIG. 5 is a flowchart of a photo reminding method according to still another embodiment of the present invention; FIG.
图6是根据本发明一个实施例的本发明实施例的拍照提醒装置的结构示意图;FIG. 6 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention;
图7是根据本发明另一个实施例的本发明实施例的拍照提醒装置的结构示意图;FIG. 7 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention;
图8是根据本发明又一个实施例的本发明实施例的拍照提醒装置的结构示意图;FIG. 8 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention;
图9是根据本发明再一个实施例的本发明实施例的拍照提醒装置的结构示意图;FIG. 9 is a schematic structural diagram of a photographing reminding apparatus according to an embodiment of the present invention;
图10是根据本发明一个实施例的终端90的结构示意图。FIG. 10 is a schematic structural diagram of a terminal 90 according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
下面参考附图描述本发明实施例的拍照提醒方法、装置、终端和计算机可读存储介质。The photographing reminding method, apparatus, terminal and computer readable storage medium of the embodiment of the present invention are described below with reference to the accompanying drawings.
图1是根据本发明一个实施例的拍照提醒方法的流程图。该实施例的拍照提醒方法应用在终端中。其中,终端可以包括具有拍照功能的手机、平板电脑、笔记本电脑、穿戴式智能设备等硬件设备。1 is a flow chart of a photo reminding method in accordance with one embodiment of the present invention. The photo reminding method of this embodiment is applied to the terminal. The terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
如图1所示,该拍照提醒方法包括以下步骤:As shown in FIG. 1, the photo reminding method includes the following steps:
方框11,获取当前拍摄画面。At block 11, the current shooting picture is acquired.
在通过终端进行拍照的过程中,获取终端中的当前拍摄画面。In the process of taking a picture through the terminal, the current shooting picture in the terminal is acquired.
方框12,识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置。At block 12, the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
在获取当前拍摄画面后,可对当前拍摄画面进行人脸识别,并根据人脸识别结果确定当前拍摄画面中是否存在人脸,并在根据人脸识别结果确定当前拍摄画面中存在人脸时,确定当前拍摄画面中人脸的位置。After obtaining the current shooting image, the current shooting image may be subjected to face recognition, and according to the face recognition result, it is determined whether there is a human face in the current shooting image, and when it is determined according to the face recognition result that there is a human face in the current shooting image, Determine the position of the face in the current shooting screen.
作为一种示例性的实施方式,在确定当前拍摄画面中存在人脸时,可获取人脸区域,并将人脸区域中的中心位置作为人脸的位置。As an exemplary embodiment, when it is determined that there is a face in the current photographing screen, the face region may be acquired, and the center position in the face region is taken as the position of the face.
其中,需要说明的是,当前拍摄画面中人脸的位置即为人脸在当前取景框中的位置。It should be noted that the position of the face in the current shooting picture is the position of the face in the current frame.
方框13,根据人脸在当前取景框中的位置生成人脸的推荐位置。At block 13, a recommended position of the face is generated according to the position of the face in the current frame.
在获取人脸在当前取景框中的位置后,可通过多种方式生成人脸的推荐位置,可以根据实际应用需要进行选择,本实施例对此不作限制,为了更加清楚的说明生成人脸的推荐位置的过程,举例说明如下:After the position of the face in the current frame is obtained, the recommended position of the face can be generated in a plurality of ways, and the selection can be performed according to the actual application requirement. This embodiment does not limit this, and the method for generating a face is more clearly explained. The process of recommending a location is illustrated as follows:
方式一,根据预先保存的人脸在取景框中的位置与推荐位置的对应关系,确定与人脸在当前取景框中的当前位置对应的推荐位置。In the first manner, according to the correspondence between the position of the pre-stored face in the finder frame and the recommended position, the recommended position corresponding to the current position of the face in the current finder frame is determined.
方式二,根据用于计算人脸推荐位置的函数和人脸在当前取景框中的位置生成与该位置对应的推荐位置。In the second mode, a recommended position corresponding to the location is generated according to a function for calculating a face recommended position and a position of the face in the current frame.
方式三,根据当前取景框中的位置确定人脸在当前取景框中的位置区域,并根据位置区域确定人脸的推荐位置。In the third manner, the location area of the face in the current frame is determined according to the position in the current frame, and the recommended position of the face is determined according to the location area.
具体地,在确定人脸在当前取景框中的位置区域后,可根据预先保存的位置区域和人脸的推荐位置的对应关系,确定人脸的推荐位置。Specifically, after determining the location area of the face in the current frame, the recommended position of the face may be determined according to the correspondence between the previously saved location area and the recommended location of the face.
其中,需要说明的是,在识别当前拍摄画面中的人脸的数量为多个时,可根据每个人 脸在当前取景框中的位置分别确定出每个人脸的推荐位置。It should be noted that, when it is recognized that the number of faces in the current shooting screen is plural, the recommended position of each face may be determined according to the position of each face in the current frame.
作为一种示例性的实施方式,在识别当前拍摄画面中的人脸的数量为多个时,还可以提供与人脸的数量对应的多种拍照姿态,以及在接收到用户从多种拍照姿势选出的目标拍照姿势时,获取与目标拍照姿势对应的人脸推荐位置,并在当前取景框中显示对应的推荐位置。由此,提高多人拍照的拍照效果。As an exemplary implementation manner, when the number of faces in the current photographing screen is determined to be plural, a plurality of photographing gestures corresponding to the number of human faces may be provided, and the plurality of photographing postures are received from the user. When the selected target photographing posture is obtained, the face recommended position corresponding to the target photographing posture is acquired, and the corresponding recommended position is displayed in the current framing box. Thereby, the photographing effect of taking pictures by many people is improved.
方式四,根据人脸在当前取景框中的位置以及当前取景框中的图像信息,匹配出构图模式,并根据构图模式确定出人脸在当前取景框中的推荐位置。In the fourth manner, according to the position of the face in the current frame and the image information in the current frame, the composition mode is matched, and the recommended position of the face in the current frame is determined according to the composition mode.
其中,构图模式可以包括但不限于对称构图模式、均衡构图模式、对角线构图模式、紧凑式构图、三角形构图模式等模式。The composition mode may include, but is not limited to, a symmetric composition mode, a balanced composition mode, a diagonal composition mode, a compact composition, a triangle composition mode, and the like.
举例而言,假设确定出当前取景框中人脸的数量为三个,即,三个人一起拍照,结合当前取景框中的图像信息,确定出可使用三角形构图模式进行拍照,此时,可根据人在当前取景框中的位置分别确定出人脸在当前取景框中的推荐位置,其中,三个人脸在当前取景框中的位置,以及推荐位置对应的示意图,如图2a,其中,图2a中的点表示人脸在当前取景框的位置,圆形表示人脸在当前取景框中的推荐位置。For example, it is determined that the number of faces in the current frame is three, that is, three people take photos together, and combined with the image information in the current frame, it is determined that the camera can be photographed using the triangle composition mode. The position of the person in the current frame is respectively determined by the recommended position of the face in the current frame, wherein the positions of the three faces in the current frame and the corresponding position of the recommended position are as shown in FIG. 2a, wherein FIG. 2a The point in the middle indicates the position of the face in the current frame, and the circle indicates the recommended position of the face in the current frame.
方式五,获取人脸在当前取景框中的人脸轮廓,根据人脸在当前取景框中的位置和人脸轮廓生成人脸在当前取景框的推荐位置。In the fifth manner, the face contour of the face in the current frame is obtained, and the recommended position of the face in the current frame is generated according to the position of the face in the current frame and the face contour.
其中,需要说明的是,每个人的人脸轮廓略有不同,并且在拍照过程中,不同轮廓的人脸在与相机的角度以及距离相同的情况下,所拍摄出的效果也不会不同,因此,为了使得用户可以拍摄出构图效果比较好的照片,可根据人脸在当前取景框中的位置和人脸轮廓生成人脸在当前取景框的推荐位置。Among them, it should be noted that each person's face contour is slightly different, and in the process of taking pictures, the faces of different contours will not be different when the angle and the distance of the camera are the same. Therefore, in order to enable the user to take a photo with a better composition effect, the recommended position of the face in the current finder frame may be generated according to the position of the face in the current framing frame and the contour of the face.
其中,需要理解的是,人脸在当前取景框中的位置相同,对应的人脸轮廓不同,其人脸在当前取景框的推荐位置也是不相同的。It should be understood that the position of the face in the current frame is the same, and the corresponding face contour is different, and the recommended position of the face in the current frame is also different.
举例而言,假设人脸在当前取景框的位置和人脸轮廓,如图2b所示,其中,图2b示意出了在相同位置对应人脸轮廓为圆形人脸轮廓和菱形人脸轮廓,并且示意出了不同类型的人脸轮廓所对应的推荐位置,其中,图2b中A1表示对应的圆形人脸轮廓对应的推荐位置,A2表示对应的菱形人脸轮廓对应的推荐位置。For example, suppose the position of the face in the current framing frame and the face contour, as shown in FIG. 2b, wherein FIG. 2b shows that the face contour corresponding to the face at the same position is a circular face contour and a diamond face contour, And the recommended positions corresponding to different types of face contours are indicated, wherein A1 in FIG. 2b represents the recommended position corresponding to the corresponding circular face contour, and A2 represents the recommended position corresponding to the corresponding diamond face contour.
方式六,获取当前取景框中当前拍摄画面的亮度信息,并根据人脸在当前取景框中的位置和当前拍摄画面的亮度信息确定人脸在当前取景框中的推荐位置。In the sixth manner, the brightness information of the current shooting frame in the current frame is obtained, and the recommended position of the face in the current frame is determined according to the position of the face in the current frame and the brightness information of the current frame.
其中,需要说明的是,如果根据人脸在当前取景框中的位置所在区域的亮度小于预设亮度阈值,则根据当前拍摄画面的亮度信息确定出亮度超过预设亮度阈值的区域,并根据人脸在当前取景框中的位置和所确定出的区域确定出人脸在当前取景框中的推荐位置。It should be noted that, according to the brightness of the area where the location of the face in the current frame is smaller than the preset brightness threshold, the area where the brightness exceeds the preset brightness threshold is determined according to the brightness information of the current shooting picture, and according to the person The position of the face in the current frame and the determined area determine the recommended position of the face in the current frame.
方框14,在当前取景框中显示推荐位置。At block 14, the recommended location is displayed in the current frame.
作为一种示例性的实施方式,在确定人脸的推荐位置后,为了向用户提示推荐位置,可在当前取景框中以预设形状的提示框显示推荐位置。As an exemplary implementation manner, after determining the recommended position of the face, in order to prompt the user for the recommended position, the recommended position may be displayed in a preset frame in the current frame.
其中,预设形状的提示框可以是终端中预设设置的,也可以是用户根据需求预先设置的。The prompt box of the preset shape may be preset in the terminal, or may be preset by the user according to requirements.
例如,可在当前取景框中以矩形或者椭圆形的提示框形式显示推荐位置。For example, a recommended position can be displayed in a rectangular or elliptical balloon in the current frame.
其中,需要说明的是,在实际应用中,还可以为预设形状的提示框设置预设颜色。It should be noted that, in an actual application, a preset color may also be set for a prompt box of a preset shape.
根据本发明实施例的拍照提醒方法,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。According to the photographing reminding method of the embodiment of the present invention, in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, and the current view is based on the face. The position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
图3是根据本发明另一个实施例的拍照提醒方法的流程图。该实施例的拍照提醒方法应用在终端中。其中,终端可以包括具有拍照功能的手机、平板电脑、笔记本电脑、穿戴式智能设备等硬件设备。FIG. 3 is a flow chart of a photo reminding method according to another embodiment of the present invention. The photo reminding method of this embodiment is applied to the terminal. The terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
如图3所示,该拍照提醒方法包括以下步骤:As shown in FIG. 3, the photo reminding method includes the following steps:
方框31,获取当前拍摄画面。At block 31, the current shooting picture is acquired.
方框32,识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置。At block 32, the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
方框33,根据人脸在当前取景框中的位置生成人脸的推荐位置。 Block 33, generating a recommended position of the face according to the position of the face in the current frame.
方框34,在当前取景框中显示推荐位置。At block 34, the recommended location is displayed in the current framing box.
其中,需说明的是,前述对步骤方框11-方框14的解释说明也适用于步骤方框31-方框34,此处不再赘述。It should be noted that the foregoing explanation of the steps of the block 11 - block 14 also applies to the step block 31 - block 34, which will not be repeated here.
方框35,接收用户对当前取景框的移动操作。 Block 35, receiving a user's movement operation on the current finder frame.
方框36,判断人脸在当前取景框中的位置是否与推荐位置重合。At block 36, it is determined whether the position of the face in the current frame coincides with the recommended position.
方框37,如果判断重合,则在取景框中取消显示推荐位置。At block 37, if the judgment is coincident, the recommended position is cancelled in the finder frame.
根据本发明实施例的拍照提醒方法,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。According to the photographing reminding method of the embodiment of the present invention, in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, and the current view is based on the face. The position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
图4是根据本发明又一个实施例的拍照提醒方法的流程图。该实施例的拍照提醒方法 应用在终端中。其中,终端可以包括具有拍照功能的手机、平板电脑、笔记本电脑、穿戴式智能设备等硬件设备。4 is a flow chart of a photographing reminding method according to still another embodiment of the present invention. The photo reminding method of this embodiment is applied to the terminal. The terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
如图4所示,该拍照提醒方法包括以下步骤:As shown in FIG. 4, the photo reminding method includes the following steps:
方框41,获取当前拍摄画面。At block 41, the current shooting picture is acquired.
方框42,识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置。At block 42, the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
方框43,根据当前拍摄画面中的人脸生成人脸轮廓。At block 43, a contour of the face is generated based on the face in the current captured picture.
在本发明的一个实施例中,在识别出当前拍摄画面中的人脸后,可根据当前拍摄画面中的人脸区域,根据人脸区域确定人脸轮廓。In an embodiment of the present invention, after the face in the current shooting picture is recognized, the face contour may be determined according to the face area according to the face area in the current shooting picture.
方框44,根据人脸在当前取景框中的位置生成人脸的推荐位置。At block 44, a recommended location of the face is generated based on the location of the face in the current frame.
方框45,在当前取景框中显示推荐位置,并在推荐位置上的显示人脸轮廓。At block 45, the recommended location is displayed in the current framing box and the facial contour is displayed at the recommended location.
根据本发明实施例的拍照提醒方法,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,以及当前拍摄画面中的人脸生成人脸轮廓,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置,并在推荐位置上显示人脸轮廓。由此,在拍照的过程中,在取景框中提示人脸的推荐位置并显示人脸轮廓,方便了用户根据推荐位置调整当前取景框中人脸的位置并进行拍照,从而可拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。According to the photographing reminding method of the embodiment of the present invention, during the photographing process of the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the human face in the current frame is obtained, and the current photographing screen is The face generates a face contour, and the recommended position of the face is generated according to the position of the face in the current frame, the recommended position is displayed in the current frame, and the face silhouette is displayed at the recommended position. Therefore, in the process of photographing, the recommended position of the face is displayed in the framing box and the contour of the face is displayed, which facilitates the user to adjust the position of the face in the current frame according to the recommended position and take a picture, thereby capturing the composition effect. A good quality photo reduces the user's trouble of repeatedly shooting due to the unsatisfactory results of the captured photos, which improves the user's photo experience.
图5是根据本发明再一个实施例的拍照提醒方法的流程图。该实施例的拍照提醒方法应用在终端中。其中,终端可以包括具有拍照功能的手机、平板电脑、笔记本电脑、穿戴式智能设备等硬件设备。FIG. 5 is a flow chart of a photographing reminding method according to still another embodiment of the present invention. The photo reminding method of this embodiment is applied to the terminal. The terminal may include a hardware device such as a mobile phone, a tablet computer, a notebook computer, a wearable smart device, and the like.
如图5所示,该拍照提醒方法包括以下步骤:As shown in FIG. 5, the photo reminding method includes the following steps:
方框51,获取当前拍摄画面。At block 51, the current shooting picture is acquired.
方框52,识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置。At block 52, the face in the current shooting picture is identified and the position of the face in the current frame is obtained.
方框53,根据人脸在当前取景框中的位置生成人脸的推荐位置。At block 53, a recommended position of the face is generated based on the position of the face in the current frame.
方框54,在当前取景框中显示推荐位置。At block 54, the recommended location is displayed in the current framing box.
其中,需说明的是,前述对步骤方框11-方框14的解释说明也适用于步骤方框51-方框54,此处不再赘述。It should be noted that the foregoing explanation of the steps of the block 11 - block 14 also applies to the step block 51 - block 54, which will not be repeated here.
方框55,判断推荐位置的显示时间是否超过预设时间阈值。At block 55, it is determined whether the display time of the recommended location exceeds a preset time threshold.
其中,预设时间阈值可以是终端中预先设置的显示推荐位置的时间阈值,也可以是用户根据需求设置的显示推荐位置的时间阈值。The preset time threshold may be a time threshold for displaying the recommended location preset in the terminal, or may be a time threshold for displaying the recommended location set by the user according to the requirement.
方框56,如果超过预设时间阈值,则在当前取景框中取消显示推荐位置。 Block 56, if the preset time threshold is exceeded, the recommended location is cancelled in the current frame.
根据本发明实施例的拍照提醒方法,在用户拍照的过程中,在当前取景框中显示人脸的推荐位置后,如果检测到推荐位置的显示时间超过预设时间阈值,则在当前取景框中取消显示推荐位置。由此,减少显示推荐位置对当前拍摄画面的影响,方便用户查看当前拍摄画面。The photographing reminding method according to the embodiment of the present invention, in the process of photographing the user, after displaying the recommended position of the face in the current framing box, if it is detected that the display time of the recommended position exceeds the preset time threshold, then in the current framing box Cancel the display of the recommended location. Thereby, the influence of the display recommended position on the current shooting picture is reduced, and the user is convenient to view the current shooting picture.
为了实现上述实施例,本发明还提出了一种本发明实施例的拍照提醒装置。In order to implement the above embodiments, the present invention also provides a photographing reminding device according to an embodiment of the present invention.
图6是根据本发明一个实施例的本发明实施例的拍照提醒装置的结构示意图。FIG. 6 is a schematic structural diagram of a photographing reminding device according to an embodiment of the present invention.
如图6所示,该本发明实施例的拍照提醒装置可以包括第一获取模块110、第一处理模块120、生成模块130和显示模块140,其中:As shown in FIG. 6, the photographing reminding device of the embodiment of the present invention may include a first obtaining module 110, a first processing module 120, a generating module 130, and a display module 140, where:
第一获取模块110用于获取当前拍摄画面。The first obtaining module 110 is configured to acquire a current shooting picture.
第一处理模块120用于识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置。The first processing module 120 is configured to identify a face in the current shooting picture and obtain a position of the face in the current frame.
生成模块130用于根据人脸在当前取景框中的位置生成人脸的推荐位置。The generating module 130 is configured to generate a recommended position of the face according to the position of the face in the current frame.
显示模块140用于在当前取景框中显示推荐位置。The display module 140 is configured to display the recommended location in the current frame.
在本发明的一个实施例中,为了使得用户拍摄出构图效果质量好的照片,在图6所示的实施例的基础上,如图7所示,该装置还包括:In an embodiment of the present invention, in order to enable the user to take a photo with good quality of the composition effect, based on the embodiment shown in FIG. 6, as shown in FIG. 7, the device further includes:
接收模块150用于接收用户对当前取景框的移动操作。The receiving module 150 is configured to receive a user's moving operation on the current finder frame.
第一判断模块160用于判断人脸在当前取景框中的位置是否与推荐位置重合。The first determining module 160 is configured to determine whether the position of the face in the current frame coincides with the recommended position.
第二处理模块170用于在判断人脸在当前取景框中的位置与推荐位置重合时,在当前取景框中取消显示推荐位置。The second processing module 170 is configured to cancel the display of the recommended position in the current finder frame when determining that the position of the face in the current frame coincides with the recommended position.
在本发明的一个实施例中,为了减少对当前拍摄画面的影响,在图6所示的实施例的基础上,如图8所示,该装置还可以包括:In an embodiment of the present invention, in order to reduce the impact on the current captured picture, on the basis of the embodiment shown in FIG. 6, as shown in FIG. 8, the device may further include:
第二判断模块180用于判断推荐位置的显示时间是否超过预设时间阈值。The second determining module 180 is configured to determine whether the display time of the recommended location exceeds a preset time threshold.
第三处理模块190用于判断出推荐位置的显示时间超过预设时间阈值时,在当前取景框中取消显示推荐位置。When the third processing module 190 is configured to determine that the display time of the recommended location exceeds the preset time threshold, the recommended location is cancelled in the current finder frame.
在本发明的一个实施例中,为了方便用户更好地调整人脸位置,在图6所示的实施例的基础上,如图9所示,该装置还可以包括:In an embodiment of the present invention, in order to facilitate the user to better adjust the position of the face, on the basis of the embodiment shown in FIG. 6, as shown in FIG. 9, the apparatus may further include:
第四处理模块200用于根据人脸生成人脸轮廓,并在推荐位置上的显示人脸轮廓。The fourth processing module 200 is configured to generate a face contour according to the face and display the face contour on the recommended position.
需要说明的是,前述对拍照提醒方法实施例的解释说明也适用于该实施例的拍照提醒装置,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanation of the embodiment of the photographing reminding method is also applicable to the photographing reminding device of the embodiment, and the implementation principle thereof is similar, and details are not described herein again.
根据本发明实施例的拍照提醒装置,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中 的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。The photographing reminding device according to the embodiment of the present invention acquires the current photographing screen during the photographing process of the user, and recognizes the face in the current photographing screen, and acquires the position of the human face in the current framing frame, according to the current framing of the human face. The position in the box generates the recommended position of the face, and the recommended position is displayed in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
为了实现上述实施例,本发明还提出一种终端。In order to implement the above embodiments, the present invention also proposes a terminal.
一种终端,包括本发明第二方面实施例的拍照提醒装置。A terminal includes a photographing reminding device of an embodiment of the second aspect of the present invention.
根据本发明实施例的终端,在用户拍照的过程中,获取当前拍摄画面,并识别当前拍摄画面中的人脸,并获取人脸在当前取景框中的位置,根据人脸在当前取景框中的位置生成人脸的推荐位置,在当前取景框中显示推荐位置。由此,在拍照的过程中,在取景框中提示人脸的推荐位置,以使用户根据推荐位置拍摄出构图效果质量好的照片,减少用户因拍摄的照片效果不理想而多次重复拍摄的麻烦,提高了用户的拍照体验。According to the terminal of the embodiment of the present invention, in the process of photographing the user, the current photographing screen is acquired, and the face in the current photographing screen is recognized, and the position of the face in the current frame is obtained, according to the face in the current frame. The location generates a recommended location for the face and displays the recommended location in the current frame. Therefore, in the process of photographing, the recommended position of the face is prompted in the framing frame, so that the user takes a photo with good quality of the composition effect according to the recommended position, and reduces the repeated shooting of the user due to the unsatisfactory effect of the photograph taken. Trouble, improving the user's photo experience.
为了实现上述实施例,本发明还提出一种终端。In order to implement the above embodiments, the present invention also proposes a terminal.
图10是根据本发明一个实施例的终端90的结构示意图。该实施例以终端90为移动终端为例进行描述。FIG. 10 is a schematic structural diagram of a terminal 90 according to an embodiment of the present invention. This embodiment is described by taking the terminal 90 as a mobile terminal as an example.
如图10所示,该终端90包括壳体901、处理器902、存储器903、电路板904和电源电路905,其中,上述电路板904安置在上述壳体901围成的空间内部,上述处理器902和上述存储器903设置在上述电路板904上;上述电源电路905,用于为上述终端90的各个电路或器件供电;上述存储器903用于存储可执行程序代码;上述处理器902通过读取上述存储器903中存储的可执行程序代码来运行与上述可执行程序代码对应的程序,以用于执行上述实施例的拍照提醒方法。As shown in FIG. 10, the terminal 90 includes a housing 901, a processor 902, a memory 903, a circuit board 904, and a power supply circuit 905, wherein the circuit board 904 is disposed inside a space surrounded by the housing 901, and the processor 902 and the foregoing memory 903 are disposed on the circuit board 904; the power supply circuit 905 is configured to supply power to each circuit or device of the terminal 90; the memory 903 is configured to store executable program code; and the processor 902 reads the above The executable program code stored in the memory 903 runs a program corresponding to the above-described executable program code for executing the photographing reminding method of the above embodiment.
一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现前述拍照提醒方法。A computer readable storage medium having stored thereon a computer program, wherein the program is implemented by a processor to implement the aforementioned photo reminding method.
一种计算机程序产品,当计算机程序产品中的指令处理器执行时,执行前述的拍照提醒方法。A computer program product for performing the aforementioned photo reminding method when an instruction processor in a computer program product executes.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification and features of various embodiments or examples may be combined and combined without departing from the scope of the invention.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或 者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行***、装置或设备(如基于计算机的***、包括处理器的***或其他可以从指令执行***、装置或设备取指令并执行指令的***)使用,或结合这些指令执行***、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行***、装置或设备或结合这些指令执行***、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既 可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (17)

  1. 一种拍照提醒方法,其特征在于,包括以下步骤:A photo reminding method, comprising the following steps:
    获取当前拍摄画面;Get the current shooting picture;
    识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;Identifying a face in the current shooting picture, and acquiring a position of the face in a current frame;
    根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置;Generating a recommended position of the face according to the position of the face in the current frame;
    在所述当前取景框中显示所述推荐位置。The recommended location is displayed in the current view frame.
  2. 如权利要求1所述的拍照提醒方法,其特征在于,还包括:The photographing reminding method according to claim 1, further comprising:
    接收用户对所述当前取景框的移动操作;Receiving a movement operation of the current viewfinder by the user;
    判断所述人脸在当前取景框中的位置是否与所述推荐位置重合;Determining whether the position of the face in the current frame is coincident with the recommended position;
    如果判断重合,则在所述当前取景框中取消显示所述推荐位置。If the judgment is coincident, the recommended position is cancelled in the current finder frame.
  3. 如权利要求1或2所述的拍照提醒方法,其特征在于,在所述当前取景框中显示所述推荐位置之后,还包括:The method of claiming a reminder according to claim 1 or 2, further comprising: after displaying the recommended location in the current finder frame, further comprising:
    判断所述推荐位置的显示时间是否超过预设时间阈值;Determining whether the display time of the recommended location exceeds a preset time threshold;
    如果超过所述预设时间阈值,则在所述当前取景框中取消显示所述推荐位置。If the preset time threshold is exceeded, the recommended location is cancelled in the current finder frame.
  4. 如权利要求1-3中任一项所述的拍照提醒方法,其特征在于,在所述识别所述当前拍摄画面中的人脸之后,还包括:The photographing reminding method according to any one of claims 1 to 3, further comprising: after the recognizing a face in the current photographing screen,
    根据所述人脸生成人脸轮廓,并在所述推荐位置上的显示所述人脸轮廓。Generating a face contour according to the face and displaying the face contour on the recommended position.
  5. 如权利要求1-4中任一项所述的拍照提醒方法,其特征在于,所述根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置,包括:The photographing reminding method according to any one of claims 1 to 4, wherein the generating the recommended position of the face according to the position of the face in the current frame comprises:
    根据所述人脸在当前取景框中的位置和所述当前拍摄画面,匹配出构图模式,并根据所述构图模式确定出所述人脸在当前取景框中的推荐位置。And determining a composition mode according to the position of the face in the current frame and the current shooting picture, and determining a recommended position of the face in the current frame according to the composition mode.
  6. 如权利要求1-5中任一项所述的拍照提醒方法,其特征在于,还包括:The photographing reminding method according to any one of claims 1 to 5, further comprising:
    获取所述人脸在当前取景框中的人脸轮廓;Obtaining a face contour of the face in the current frame;
    所述根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置,包括:The generating a recommended location of the face according to the location of the face in the current frame includes:
    根据所述人脸在当前取景框中的位置和人脸轮廓生成所述人脸在当前取景框的推荐位置。Generating a recommended position of the face in the current finder frame according to the position of the face in the current framing frame and the face contour.
  7. 如权利要求1-6中任一项所述的拍照提醒方法,其特征在于,所述方法还包括:The photographing reminding method according to any one of claims 1 to 6, wherein the method further comprises:
    获取所述当前取景框中所述当前拍摄画面的亮度信息;Obtaining brightness information of the current shooting picture in the current frame;
    所述根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置,包括:The generating a recommended location of the face according to the location of the face in the current frame includes:
    根据所述人脸在当前取景框中的位置和所述当前拍摄画面的亮度信息确定所述人脸在当前取景框中的推荐位置。Determining a recommended position of the face in the current frame according to the position of the face in the current frame and the brightness information of the current shooting frame.
  8. 一种拍照提醒装置,其特征在于,包括:A photographing reminding device, comprising:
    第一获取模块,用于获取当前拍摄画面;a first acquiring module, configured to acquire a current shooting picture;
    第一处理模块,用于识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;a first processing module, configured to identify a face in the current shooting picture, and obtain a position of the face in a current frame;
    生成模块,用于根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置;a generating module, configured to generate a recommended location of the face according to a location of the face in a current frame;
    显示模块,用于在所述当前取景框中显示所述推荐位置。And a display module, configured to display the recommended location in the current finder frame.
  9. 如权利要求8所述的拍照提醒装置,其特征在于,还包括:The photographing reminding device according to claim 8, further comprising:
    接收模块,用于接收用户对所述当前取景框的移动操作;a receiving module, configured to receive a user moving operation on the current finder frame;
    第一判断模块,用于判断所述人脸在当前取景框中的位置是否与所述推荐位置重合;a first determining module, configured to determine whether a location of the face in the current frame is coincident with the recommended location;
    第二处理模块,用于在判断所述人脸在当前取景框中的位置与所述推荐位置重合时,在所述当前取景框中取消显示所述推荐位置。The second processing module is configured to cancel display of the recommended location in the current finder frame when determining that the location of the face in the current finder frame coincides with the recommended location.
  10. 如权利要求8或9所述的拍照提醒装置,其特征在于,还包括:The photographing reminding device according to claim 8 or 9, further comprising:
    第二判断模块,用于判断所述推荐位置的显示时间是否超过预设时间阈值;a second determining module, configured to determine whether a display time of the recommended location exceeds a preset time threshold;
    第三处理模块,用于判断出所述推荐位置的显示时间超过所述预设时间阈值时,在所述当前取景框中取消显示所述推荐位置。And a third processing module, configured to: when the display time of the recommended location exceeds the preset time threshold, cancel the display of the recommended location in the current finder frame.
  11. 如权利要求8-10中任一项所述的拍照提醒装置,其特征在于,还包括:The photographing reminding device according to any one of claims 8 to 10, further comprising:
    第四处理模块,用于根据所述人脸生成人脸轮廓,并在所述推荐位置上的显示所述人脸轮廓。And a fourth processing module, configured to generate a face contour according to the face, and display the face contour on the recommended position.
  12. 如权利要求8-11任一项所述的拍照提醒装置,其特征在于,所述生成模块,具体用于:The photographing and reminding device according to any one of claims 8 to 11, wherein the generating module is specifically configured to:
    根据所述人脸在当前取景框中的位置和所述当前拍摄画面,匹配出构图模式,并根据所述构图模式确定出所述人脸在当前取景框中的推荐位置。And determining a composition mode according to the position of the face in the current frame and the current shooting picture, and determining a recommended position of the face in the current frame according to the composition mode.
  13. 如权利要求8-12中任一项所述的拍照提醒装置,其特征在于,还包括:The photographing reminding device according to any one of claims 8 to 12, further comprising:
    第二获取模块,用于获取所述人脸在当前取景框中的人脸轮廓;a second acquiring module, configured to acquire a contour of the face of the face in the current frame;
    所述生成模块,具体用于:The generating module is specifically configured to:
    根据所述人脸在当前取景框中的位置和人脸轮廓生成所述人脸在当前取景框的推荐位置。Generating a recommended position of the face in the current finder frame according to the position of the face in the current framing frame and the face contour.
  14. 如权利要求8-13中任一项所述的拍照提醒装置,其特征在于,所述装置还包括:The photographing reminding device according to any one of claims 8 to 13, wherein the device further comprises:
    第三获取模块,用于获取所述当前取景框中所述当前拍摄画面的亮度信息;a third acquiring module, configured to acquire brightness information of the current shooting picture in the current frame;
    所述生成模块,具体用于:The generating module is specifically configured to:
    根据所述人脸在当前取景框中的位置和所述当前拍摄画面的亮度信息确定所述人脸在当前取景框中的推荐位置。Determining a recommended position of the face in the current frame according to the position of the face in the current frame and the brightness information of the current shooting frame.
  15. 一种终端,其特征在于,所述终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:A terminal, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the The memory is disposed on the circuit board; the power circuit is configured to supply power to each circuit or device of the terminal; the memory is configured to store executable program code; and the processor reads the memory by reading The stored executable program code runs a program corresponding to the executable program code for performing the following steps:
    获取当前拍摄画面;Get the current shooting picture;
    识别所述当前拍摄画面中的人脸,并获取所述人脸在当前取景框中的位置;Identifying a face in the current shooting picture, and acquiring a position of the face in a current frame;
    根据所述人脸在当前取景框中的位置生成所述人脸的推荐位置;Generating a recommended position of the face according to the position of the face in the current frame;
    在所述当前取景框中显示所述推荐位置。The recommended location is displayed in the current view frame.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7中任一项所述的拍照提醒方法。A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the photo reminding method according to any one of claims 1-7.
  17. 一种计算机程序产品,当所述计算机程序产品中的指令由处理器执行时,执行如权利要求1-7中任一项所述的拍照提醒方法。A computer program product for performing the photographing reminding method according to any one of claims 1 to 7 when an instruction in the computer program product is executed by a processor.
PCT/CN2018/090588 2017-07-10 2018-06-11 Photographing reminding method and device, terminal and computer storage medium WO2019011091A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710558401.2A CN107257438A (en) 2017-07-10 2017-07-10 Take pictures based reminding method, device, terminal and computer-readable storage medium
CN201710558401.2 2017-07-10

Publications (1)

Publication Number Publication Date
WO2019011091A1 true WO2019011091A1 (en) 2019-01-17

Family

ID=60026016

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090588 WO2019011091A1 (en) 2017-07-10 2018-06-11 Photographing reminding method and device, terminal and computer storage medium

Country Status (2)

Country Link
CN (1) CN107257438A (en)
WO (1) WO2019011091A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298684A (en) * 2019-05-22 2019-10-01 平安科技(深圳)有限公司 Vehicle matching process, device, computer equipment and storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257438A (en) * 2017-07-10 2017-10-17 广东欧珀移动通信有限公司 Take pictures based reminding method, device, terminal and computer-readable storage medium
KR102438201B1 (en) 2017-12-01 2022-08-30 삼성전자주식회사 Method and system for providing recommendation information related to photography
CN108200333B (en) * 2017-12-28 2021-12-28 上海传英信息技术有限公司 Photographing composition method and terminal
CN108513066A (en) * 2018-03-28 2018-09-07 努比亚技术有限公司 It takes pictures composition guidance method, mobile terminal and storage medium
CN108846377A (en) * 2018-06-29 2018-11-20 百度在线网络技术(北京)有限公司 Method and apparatus for shooting image
CN109089039A (en) * 2018-08-08 2018-12-25 成都西纬科技有限公司 A kind of image pickup method and terminal device
CN109410163B (en) * 2018-10-23 2021-10-01 北京旷视科技有限公司 Photographing recommendation position obtaining method and device, terminal and computer storage medium
US11100325B2 (en) 2018-12-07 2021-08-24 International Business Machines Corporation Photographic results by composition analysis using deep learning neural networks
CN110392294A (en) * 2019-07-01 2019-10-29 安徽华米信息科技有限公司 Human body detecting method, device, electronic equipment and storage medium
CN111263063A (en) * 2020-02-17 2020-06-09 深圳传音控股股份有限公司 Method, device and equipment for shooting image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110050976A1 (en) * 2009-08-26 2011-03-03 Samsung Electronics Co. Ltd. Photographing method and system
CN102045503A (en) * 2009-10-15 2011-05-04 索尼公司 Information processing apparatus, display control method, and display control program
CN103813075A (en) * 2012-11-07 2014-05-21 联想(北京)有限公司 Reminding method and electronic device
CN106506959A (en) * 2016-11-15 2017-03-15 上海传英信息技术有限公司 Photographic means and camera installation
CN107257438A (en) * 2017-07-10 2017-10-17 广东欧珀移动通信有限公司 Take pictures based reminding method, device, terminal and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991925A (en) * 2015-03-06 2016-10-05 联想(北京)有限公司 Scene composition indicating method and indicating device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110050976A1 (en) * 2009-08-26 2011-03-03 Samsung Electronics Co. Ltd. Photographing method and system
CN102045503A (en) * 2009-10-15 2011-05-04 索尼公司 Information processing apparatus, display control method, and display control program
CN103813075A (en) * 2012-11-07 2014-05-21 联想(北京)有限公司 Reminding method and electronic device
CN106506959A (en) * 2016-11-15 2017-03-15 上海传英信息技术有限公司 Photographic means and camera installation
CN107257438A (en) * 2017-07-10 2017-10-17 广东欧珀移动通信有限公司 Take pictures based reminding method, device, terminal and computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298684A (en) * 2019-05-22 2019-10-01 平安科技(深圳)有限公司 Vehicle matching process, device, computer equipment and storage medium
CN110298684B (en) * 2019-05-22 2023-06-06 平安科技(深圳)有限公司 Vehicle type matching method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107257438A (en) 2017-10-17

Similar Documents

Publication Publication Date Title
WO2019011091A1 (en) Photographing reminding method and device, terminal and computer storage medium
US9866748B2 (en) System and method for controlling a camera based on processing an image captured by other camera
CN108764091B (en) Living body detection method and apparatus, electronic device, and storage medium
KR102598109B1 (en) Electronic device and method for providing notification relative to image displayed via display and image stored in memory based on image analysis
CN106605403B (en) Shooting method and electronic equipment
EP3326360B1 (en) Image capturing apparatus and method of operating the same
CN105282430B (en) Electronic device using composition information of photograph and photographing method using the same
CN104580922B (en) A kind of control method and device for shooting light filling
JP6942940B2 (en) Image processing equipment, image processing methods and programs
CN108495032B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2017124899A1 (en) Information processing method, apparatus and electronic device
US8760551B2 (en) Systems and methods for image capturing based on user interest
CN104754216A (en) Photographing method and device
CN108632543B (en) Image display method, image display device, storage medium and electronic equipment
CN110636276B (en) Video shooting method and device, storage medium and electronic equipment
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
WO2019165938A1 (en) Image collection method and apparatus, mobile terminal and storage medium
US10009545B2 (en) Image processing apparatus and method of operating the same
US20160350622A1 (en) Augmented reality and object recognition device
CN109740490A (en) Auth method and device
JP5477025B2 (en) Image display device and program
CN106550183A (en) A kind of image pickup method and device
JP2016139975A (en) Image acquisition device, image acquisition method and program for image acquisition
CN109949212A (en) Image mapping method, device, electronic equipment and storage medium
TW201801527A (en) Image displaying method and computer readable storage medium

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: 18831374

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: 18831374

Country of ref document: EP

Kind code of ref document: A1