WO2019214574A1 - 图像拍摄方法、装置及电子终端 - Google Patents

图像拍摄方法、装置及电子终端 Download PDF

Info

Publication number
WO2019214574A1
WO2019214574A1 PCT/CN2019/085658 CN2019085658W WO2019214574A1 WO 2019214574 A1 WO2019214574 A1 WO 2019214574A1 CN 2019085658 W CN2019085658 W CN 2019085658W WO 2019214574 A1 WO2019214574 A1 WO 2019214574A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
information
image
image capturing
shooting
Prior art date
Application number
PCT/CN2019/085658
Other languages
English (en)
French (fr)
Inventor
王文槿
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019214574A1 publication Critical patent/WO2019214574A1/zh

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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Definitions

  • the embodiments of the present invention relate to the field of data processing technologies, and in particular, to an image capturing method, apparatus, and electronic terminal.
  • terminal devices provide more and more functions to meet people's needs and carry out various work and interactions.
  • camera functions such as photographing or short video shooting applications are becoming more and more popular and are becoming more and more popular.
  • embodiments of the present invention provide an image capturing method, apparatus, and electronic terminal to solve the problem of how to enable a terminal device user without a professional imaging level to capture a higher quality image.
  • an image capturing method including: performing target object detection on an image acquired by an image capturing device during image capturing preparation; and acquiring shooting suggestion information that matches the detection result; Receiving an adjustment operation of the image capturing device and/or the target object according to the shooting suggestion information; performing image capturing including the target object according to a result of the adjusting operation.
  • an image capturing apparatus comprising: a detecting module, configured to perform target object detection on an image captured by an image collecting device during an image capturing preparation process; and an acquiring module, configured to acquire a photographing suggestion information matching the detection result; a receiving module, configured to receive an adjustment operation of the image capturing device and/or the target object according to the shooting suggestion information; and a photographing module, configured to perform an adjustment operation according to the As a result, image capturing including the target object is performed.
  • an electronic terminal comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete each other through the communication bus Inter-communication; the memory is for storing at least one executable instruction that causes the processor to perform an operation corresponding to the image capture method of the first aspect.
  • the image capturing solution when the user has not performed the shooting confirmation and is still in the preparation process, the target image is detected by the image collected by the image capturing device, and the matching shooting recommendation information is obtained according to the detection result.
  • the shooting suggestion information can be based on the professional camera shooting rules and standard settings, compared to the ordinary user's shooting technology is more professional, can achieve better shooting results, so that the images taken by ordinary users can also have professional photographers s level. For example, when the user performs self-photographing using the terminal device, composition analysis such as the position of the person can be performed to give professional advice, so that the final image has higher quality.
  • FIG. 1 is a flow chart showing the steps of an image capturing method according to a first embodiment of the present invention
  • FIG. 2 is a flow chart showing the steps of an image capturing method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of a shooting suggestion interface in the embodiment shown in FIG. 2;
  • FIG. 4 is a block diagram showing the structure of an image capturing apparatus according to a third embodiment of the present invention.
  • FIG. 5 is a structural block diagram of an image capturing apparatus according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic terminal according to Embodiment 5 of the present invention.
  • FIG. 1 there is shown a flow chart of steps of an image capturing method according to a first embodiment of the present invention.
  • Step S102 Perform target object detection on the image acquired by the image capturing device during the image capturing preparation process.
  • the image capturing preparation process refers to a process before starting to prepare for shooting until the shooting button is pressed, for example, a process in which the camera has been oriented toward the object to be photographed until the shooting button is pressed, when the image is normally used. This process is usually prepared for the upcoming shooting, and is referred to as an image capturing preparation process in the embodiment of the present invention.
  • the image acquired by the image capturing device is detected in the image capturing preparation process.
  • the image captured by the image capturing device is usually a moving image, and the target object may still be in motion or The expected shooting state is not reached.
  • the target object is detected on the image to determine whether the corresponding target object is included in the image, and then the current shooting type is evaluated according to the detection result detected by the target object, for example, portrait shooting, Animal photography, landscape photography, and more.
  • the target object may be appropriately set by a person skilled in the art according to actual needs, and the embodiment of the present invention does not limit this.
  • the image capturing solution provided by the embodiment of the present invention can focus on providing shooting suggestions for portrait shooting, but is not limited thereto. As described above, animal imaging, landscape imaging, and other imaging and character imaging principles are described. The same can be applied to the solution of the embodiment of the present invention.
  • the detection of the target object in the image can also be implemented by any suitable means by a person skilled in the art, such as a method using a convolutional neural network, and the embodiment of the present invention does not limit this.
  • Step S104 Acquire shooting recommendation information that matches the detection result.
  • the shooting recommendation information matching the detection result can be obtained.
  • the shooting suggestion information is set according to professional camera technology and rules. For example, when the portrait is in the background, it is suggested that the portrait is located at a certain position in the image; or, if the background is noisy, the background is simplified or blurred. Or, if the portrait head occupies the main picture, it is recommended to move a certain distance forward or move a distance backwards, or use a filter model to achieve the best results, and so on.
  • the detection result and the shooting suggestion can be set locally in the terminal where the image capturing device is located, or can be set in an appropriate server, and the terminal can locally set a part of the server to set a part, etc. Wait.
  • the specific setting of the correspondence between the detection result and the shooting suggestion information, and the specific setting of the specific shooting suggestion information can be appropriately set by those skilled in the art.
  • Step S106 Receive an adjustment operation of the image capturing device and/or the target object according to the shooting suggestion information.
  • the adjusting operation of the image capturing device according to the shooting suggestion information may be automatically implemented by the terminal device where the image capturing device is located, and the terminal device where the image capturing device is located receives the automatic adjusting operation; the image capturing device may also be adjusted by manually referring to the shooting suggestion information. The operation is then received by the terminal device where the image capture device is located.
  • the adjustment operation of the image acquisition device includes, but is not limited to, adjusting the distance and the angle, moving the camera back and forth, moving up and down, keeping the position of the camera unchanged, but the camera angle is deflected up and down, adjusting the illumination, adjusting the brightness, and adjusting the filter. and many more.
  • the adjustment operation on the target object is used to achieve a better shooting effect of the target object, for example, for the self-timer object, an appropriate position, posture, expression, action, and the like can be given. Professional character shooting effects can be achieved with or without the adjustment operation of the image acquisition device.
  • Step S108 Perform image capturing including the target object according to the result of the adjustment operation.
  • the purpose of the adjustment operation on the image acquisition device and/or the target object is to better capture the corresponding target object. Therefore, after the corresponding adjustment according to the shooting suggestion information, the target object can be photographed, that is, included. Image capture of the target object. For example, after the corresponding adjustment is made according to the shooting recommendation information, the terminal device receives a shooting instruction (such as a shooting instruction triggered when the shooting button is pressed), and then images the target object to generate an image including the target object.
  • a shooting instruction such as a shooting instruction triggered when the shooting button is pressed
  • the target image is detected on the image collected by the image capturing device, and then the matching shooting recommendation information is obtained according to the detection result, and the shooting recommendation information is obtained.
  • the image acquisition device and/or the target object perform an adjustment operation to adjust the shooting effect so that the captured image has better shooting quality.
  • the shooting suggestion information can be based on the professional camera shooting rules and standard settings, compared to the ordinary user's shooting technology is more professional, can achieve better shooting results, so that the images taken by ordinary users can also have professional photographers s level.
  • the image capturing method of the present embodiment can be executed by any appropriate electronic terminal having data processing capability, such as a mobile terminal (tablet, mobile phone, etc.) or a desktop computer.
  • FIG. 2 a flow chart of steps of an image capturing method according to a second embodiment of the present invention is shown.
  • Step S202 Perform target object detection on the image acquired by the image acquisition device during the image capturing preparation process.
  • the image capturing method provided by the embodiment of the present invention is described by taking a portrait object as a portrait and performing image detection on the image collected by the image capturing device.
  • a portrait object as a portrait
  • image detection on the image collected by the image capturing device.
  • other target objects can implement corresponding image capturing with reference to the present embodiment.
  • the target object detection of the image may be implemented in any suitable manner, which is not limited in the embodiment of the present invention.
  • a trigger condition for performing target object detection on the image acquired by the image capturing device it may be determined whether a trigger condition for performing target object detection on the image acquired by the image capturing device is reached; if the trigger condition is reached, the target object is detected. If the trigger condition is not reached, the step of determining whether the trigger condition for performing the target object detection on the image collected by the image acquisition device is returned may be performed.
  • the image preparation preparation process from the camera toward the target object to the final shooting may last for a while.
  • an appropriate trigger condition may be set, and when the trigger condition is triggered, the target object is further performed. Detection.
  • the image acquired by the image capturing device may be subjected to motion detection; according to the result of the motion detection And determining whether a trigger condition for performing target object detection on the image acquired by the image acquisition device is reached.
  • the triggering condition may include: setting a displacement of the reference point in the continuous multi-frame image to be smaller than a set displacement.
  • the set reference point can be set as the target object, and of course, it can be other reference objects in the image.
  • the continuous multi-frame (two frames and two or more frames) images may be a certain number of images set in advance, or may be multi-frame images in a certain period of time.
  • the set displacement can be appropriately set by a person skilled in the art according to actual needs, so that it can be in an appropriately small interval, such as a section of the conventionally used motion picture that is determined to be stationary.
  • motion detection is performed on the image, and if it is determined that the image is stationary for more than 2 seconds (seconds), it is considered that the trigger condition is reached, and the target object detection is performed.
  • Step S204 Acquire shooting recommendation information that matches the detection result.
  • the shooting suggestion information can be set according to professional camera technology and rules, and the correspondence between the detection result of the target object and the shooting suggestion information can be defined in advance, and the corresponding shooting suggestion information is determined according to the detection result when necessary. can.
  • At least one of the following information of the target object may be determined according to the detection result of the target object detection of the image: illumination information of the environment where the target object is located, brightness and darkness information of the environment where the target object is located, and the target object is being The position information in the image, the size information of the target object in the image to be measured, and the quantity information of the target object; and the matching shooting recommendation information is obtained according to the determined information of the target object.
  • the information of the target object represents the relevant situation of the target object itself and its environment, and can be compared with professional shooting suggestions according to the information to recommend to the user to achieve high-level image shooting of ordinary users. For example, if it is detected that there are three portraits in the image and it is relatively large in the whole picture, a close-up perspective shooting suggestion can be given; if three portraits are detected in the image and the background scenery in the whole picture is relatively large, You can give a panoramic view shooting advice, and so on.
  • the shooting suggestion information may include at least one of the following: the light adjustment information of the environment where the target object is located, the brightness adjustment information of the environment where the target object is located, the position adjustment information of the target object, the posture adjustment information of the target object, and the image collection device.
  • the viewing angle adjustment information The illumination adjustment information of the environment where the target object is located, the brightness adjustment information of the environment where the target object is located, and the shooting angle adjustment information of the image collection device can be implemented by adjusting the image collection device.
  • the shooting angle adjustment information includes, for example, a perspective view, a panoramic view, a medium view, a close view, a close-up view, and the like, and may also include a head-up view, a look-up view, a bird's-eye view, and the like for the portrait image.
  • the adjustment of the illumination and brightness of the target object environment the adjustment of the hue, brightness and the like of the camera can be realized; by adjusting the position of the target object, the composition and proportion adjustment of the camera can be realized; by adjusting the posture of the target object It can realize the beautification adjustment of the characters; through the adjustment of the shooting angle, more professional shooting angle adjustment can be realized, and so on.
  • other appropriate shooting suggestion information may be set according to actual professional shooting techniques and rules.
  • the correspondence between the detection result of the target object and the shooting suggestion information may be defined in advance, and the corresponding shooting suggestion information may be determined according to the detection result when necessary.
  • the information of the determined target object may be used as an image processing model (such as an LR (Logistics Regression) model, by using a massive image as a training object, and a target object in the image.
  • the relationship between the information and the best photo suggestion is trained to obtain an LR model.
  • the LR model gets the corresponding shooting advice information.
  • the shooting suggestions can be given more intelligently according to the target object detection result, and the given shooting suggestions are more comprehensive, professional and reasonable.
  • Step S206 Generate an adjustment instruction of the image collection device according to the shooting recommendation information, and perform an automatic adjustment operation on the image collection device according to the adjustment instruction.
  • an image capturing method provided by an embodiment of the present invention is described by taking an automatic adjustment of an image capturing device by a terminal device as an example.
  • the information in which the adjustment to the target object itself is irrelevant can be realized by the terminal device through hardware adjustment of the relevant code or the image capturing device.
  • the terminal device reduces or improves the illuminance or brightness of the image by the code, realizes the shooting angle adjustment by the code to zoom in or zoom out the target object, implements the filter setting through the code, and the like.
  • the adjustment of the target object itself such as the adjustment of the position of the character (such as approaching an object), the adjustment of the posture of the character (such as standing or posing a certain shape), still requires the target object to complete itself.
  • the automatic adjustment the user's operation burden is greatly reduced, the user's use experience is improved, and the terminal device adjustment is more accurate than the manual adjustment.
  • the automatic adjustment mode of the terminal device may also adopt a combination of terminal device adjustment and manual adjustment, for example, generating and displaying adjustment information of the image collection device and/or the target object according to the shooting suggestion information, to indicate by adjusting the information.
  • the adjustment operation indicated by the adjustment information is performed on the image acquisition device and/or the target object. For example, if the shooting suggestion information indicates that the illuminance is increased, the adjustment information indicating that the illuminance is increased may be generated.
  • the interface of the terminal device where the image capturing device is located has a setting for adjusting the illuminance, and the user can operate the setting to improve the illuminance.
  • the adjustment information may further include adjustment information for indicating adjustment of the target object itself, such as indicating the target object to perform position adjustment or posture adjustment. information.
  • FIG. 3 An interface for shooting images using shooting suggestions is shown in FIG. 3.
  • the terminal device first recognizes the user of the screen in the camera, that is, the user, and then composes and shades according to the current lighting environment and the position of the main body of the screen. Analyze and give suggestions for shooting, as shown in Figure 3, the suggestion is "Keep the camera position unchanged, but the angle is 30 degrees to the left.” It can be seen from Fig. 3 that the figure in Fig. 3 is more to the left, which affects the overall composition. The angle is deflected to the left by 30 degrees, and the character can be in the middle right position. The overall composition of the image is more beautiful and reasonable.
  • suggestion information can be appropriately set by a person skilled in the art according to actual needs, such as: “Panning the camera forward/backward/left/right/up/down”, “Keeping the camera position” It does not change, but the angle is up/down/left/right to deflect”, “up/down illuminance” and other suggestions.
  • Step S208 Receive an adjustment operation of the image capturing device and/or the target object according to the shooting suggestion information.
  • the terminal device receives the adjustment operation, determines the result of the adjustment operation, and further combines the adjustment operation of the target object. Carry out subsequent shooting.
  • Step S210 Perform image capturing including the target object according to the result of the adjusting operation.
  • the target object is photographed.
  • the target image is detected on the image collected by the image capturing device, and then the matching shooting recommendation information is obtained according to the detection result, and the shooting recommendation information is obtained.
  • the image acquisition device and/or the target object perform an adjustment operation to adjust the shooting effect so that the captured image has better shooting quality.
  • the shooting suggestion information can be based on the professional camera shooting rules and standard settings, compared to the ordinary user's shooting technology is more professional, can achieve better shooting results, so that the images taken by ordinary users can also have professional photographers s level.
  • the image capture program has achieved breakthroughs in technology through the technical means and automatically achieves high-quality self-timer based on real-time environmental factors, effectively solving the above problems.
  • the image capturing method of the present embodiment can be executed by any appropriate electronic terminal having data processing capability, such as a mobile terminal (tablet, mobile phone, etc.) or a desktop computer.
  • FIG. 4 a block diagram of a structure of an image capturing apparatus according to a third embodiment of the present invention is shown.
  • the image capturing apparatus of the present embodiment includes: a detecting module 302, configured to perform target object detection on an image captured by the image capturing device during image capturing preparation; and an obtaining module 304, configured to acquire shooting suggestion information that matches the detection result.
  • the receiving module 306 is configured to receive an adjustment operation of the image capturing device and/or the target object according to the shooting suggestion information
  • the shooting module 308 is configured to perform image capturing including the target object according to the result of the adjusting operation.
  • the target image is detected on the image collected by the image capturing device, and then the matching shooting recommendation information is obtained according to the detection result, and the shooting recommendation information is obtained.
  • the image acquisition device and/or the target object perform an adjustment operation to adjust the shooting effect so that the captured image has better shooting quality.
  • the shooting suggestion information can be based on the professional camera shooting rules and standard settings, compared to the ordinary user's shooting technology is more professional, can achieve better shooting results, so that the images taken by ordinary users can also have professional photographers s level.
  • FIG. 5 a block diagram of a structure of an image capturing apparatus according to a fourth embodiment of the present invention is shown.
  • the image capturing apparatus of the present embodiment includes: a detecting module 402, configured to perform target object detection on an image captured by the image capturing device during image capturing preparation; and an obtaining module 404, configured to acquire shooting suggestion information that matches the detection result
  • the receiving module 406 is configured to receive an adjustment operation of the image capturing device and/or the target object according to the shooting suggestion information
  • the shooting module 408 is configured to perform image capturing including the target object according to the result of the adjusting operation.
  • the obtaining module 404 is configured to determine, according to the detection result, at least one of the following information of the target object: the illumination information of the environment where the target object is located, the brightness and darkness information of the environment where the target object is located, and the target object in the measured image. Position information, size information of the target object in the image to be measured, and quantity information of the target object; and acquiring matching photographing suggestion information according to the determined information of the target object.
  • the shooting suggestion information includes at least one of the following: the light adjustment information of the environment where the target object is located, the brightness adjustment information of the environment where the target object is located, the position adjustment information of the target object, the posture adjustment information of the target object, and the image collection device Shooting angle adjustment information.
  • the image capturing apparatus of the embodiment further includes: a generating module 410, configured to generate an image collection according to the shooting suggestion information before the receiving module 406 receives the adjusting operation of the image capturing device and/or the target object according to the shooting suggestion information.
  • the adjustment instruction of the device automatically adjusts the image acquisition device according to the adjustment instruction.
  • the image capturing apparatus of the embodiment further includes: an information module 412, configured to generate and display according to the shooting suggestion information before the receiving module 406 receives the adjusting operation of the image capturing device and/or the target object according to the shooting suggestion information. Adjustment information of the image acquisition device and/or the target object to indicate, by the adjustment information, an adjustment operation indicated by the adjustment information to the image acquisition device and/or the target object.
  • the obtaining module 404 is configured to use the information of the determined target object as an input of the image processing model, process the information of the input target object through the image processing model, and obtain the shooting suggestion information output by the image processing model.
  • the detecting module 402 includes: a determining module 4022, configured to determine, in the image capturing preparation process, whether a trigger condition for performing target object detection on the image collected by the image capturing device is reached; and an executing module 4024, configured to determine the module 4022 If the result of the determination is that the trigger condition is met, the target object is detected. If the result of the determination by the determination module 4022 is that the trigger condition is not reached, the determination module 4022 is returned.
  • a determining module 4022 configured to determine, in the image capturing preparation process, whether a trigger condition for performing target object detection on the image collected by the image capturing device is reached
  • an executing module 4024 configured to determine the module 4022 If the result of the determination is that the trigger condition is met, the target object is detected. If the result of the determination by the determination module 4022 is that the trigger condition is not reached, the determination module 4022 is returned.
  • the determining module 4022 is configured to perform motion detection on the image collected by the image capturing device during the image capturing preparation process, and determine, according to the result of the motion detection, whether the triggering condition for detecting the target object of the image collected by the image capturing device is reached. .
  • the triggering condition comprises: setting the displacement of the reference point in the continuous multi-frame image to be smaller than the set displacement.
  • the image capturing device of the present embodiment is used to implement the corresponding image capturing method in the foregoing plurality of method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 6 a schematic structural diagram of an electronic terminal according to Embodiment 5 of the present invention is shown.
  • the specific embodiment of the present invention does not limit the specific implementation of the electronic terminal.
  • the electronic terminal can include a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
  • Processor 502, communication interface 504, and memory 506 complete communication with one another via communication bus 508.
  • the communication interface 504 is configured to communicate with other terminal devices or servers.
  • the processor 502 is configured to execute the program 510, and specifically may perform the related steps in the foregoing image capturing method embodiment.
  • program 510 can include program code, the program code including computer operating instructions.
  • the processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • the one or more processors included in the terminal device may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 506 is configured to store the program 510.
  • Memory 506 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the program 510 may be specifically configured to enable the processor 502 to perform the following operations: performing image object detection on the image acquired by the image capturing device during the image capturing preparation process; acquiring shooting suggestion information that matches the detection result; and receiving the shooting recommendation information according to An adjustment operation of the image capture device and/or the target object; image capture including the target object is performed according to the result of the adjustment operation.
  • the program 510 is further configured to: when the processor 502 acquires the shooting suggestion information that matches the detection result, determine, according to the detection result, at least one of the following information of the target object: the target object The illumination information of the environment, the brightness information of the environment in which the target object is located, the position information of the target object in the image to be measured, the size information of the target object in the image to be measured, and the quantity information of the target object; according to the determined target object Information to get matching shooting advice information.
  • the shooting suggestion information includes at least one of the following: the light adjustment information of the environment where the target object is located, the brightness adjustment information of the environment where the target object is located, the position adjustment information of the target object, and the posture adjustment of the target object.
  • Information viewing angle adjustment information of the image acquisition device includes at least one of the following: the light adjustment information of the environment where the target object is located, the brightness adjustment information of the environment where the target object is located, the position adjustment information of the target object, and the posture adjustment of the target object.
  • the program 510 is further configured to: when the processor 502 receives an adjustment operation on the image capturing device and/or the target object according to the shooting suggestion information, generate an adjustment instruction of the image capturing device according to the shooting suggestion information. And performing an automatic adjustment operation on the image collection device according to the adjustment instruction.
  • the program 510 is further configured to cause the processor 502 to generate and display the image capturing device according to the shooting suggestion information and before receiving the adjusting operation of the image capturing device and/or the target object according to the shooting suggestion information. And/or adjustment information of the target object to indicate, by the adjustment information, an adjustment operation indicated by the adjustment information to the image collection device and/or the target object.
  • the program 510 is further configured to cause the processor 502 to use the determined information of the target object as an input of the image processing model when acquiring the matching shooting suggestion information according to the determined information of the target object.
  • the information of the input target object is processed by the image processing model and the shooting suggestion information output by the image processing model is obtained.
  • the program 510 is further configured to enable the processor 502 to perform target object detection on the image captured by the image capturing device during the image capturing preparation process, and determine whether the image is reached during the image capturing preparation process.
  • the image captured by the image acquisition device performs a trigger condition for detecting the target object; if the trigger condition is reached, the target object is detected for the image.
  • the program 510 is further configured to: when the processor 502 determines whether a trigger condition for performing target object detection on the image collected by the image collection device is reached, the image collected by the image collection device is moved. And detecting, according to the result of the motion detection, determining whether a trigger condition for performing target object detection on the image collected by the image acquisition device is reached.
  • the triggering condition includes: setting a displacement of the reference point in the continuous multi-frame image to be less than a set displacement.
  • the target image is detected on the image collected by the image acquisition device, and the matching photographing suggestion information is obtained according to the detection result, and the photographing suggestion is adopted.
  • the information is adjusted to the image capturing device and/or the target object to adjust the shooting effect so that the captured image has better shooting quality.
  • the shooting suggestion information can be based on the professional camera shooting rules and standard settings, compared to the ordinary user's shooting technology is more professional, can achieve better shooting results, so that the images taken by ordinary users can also have professional photographers s level.
  • the above method according to an embodiment of the present invention may be implemented in hardware, firmware, or implemented as software or computer code that may be stored in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or implemented by
  • the network downloads computer code originally stored in a remote recording medium or non-transitory machine readable medium and stored in a local recording medium so that the methods described herein can be stored using a general purpose computer, a dedicated processor or programmable
  • Such software processing on a recording medium of dedicated hardware such as an ASIC or an FPGA.
  • a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is The image capture method described herein is implemented when the processor or hardware is accessed and executed. Further, when a general purpose computer accesses code for implementing the image capturing method shown here, execution of the code converts the general purpose computer into a dedicated computer for executing the image capturing method shown here.

Abstract

本发明实施例提供了一种图像拍摄方法、装置及电子终端,其中,图像拍摄方法,包括:在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;获取与检测结果相匹配的拍摄建议信息;接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作;根据所述调整操作的结果进行包含所述目标对象的图像拍摄。通过本发明实施例,可以达到较好的拍摄效果,使得普通用户拍摄出的图像也可以有专业摄影师的水平。

Description

图像拍摄方法、装置及电子终端
本申请要求2018年5月11日递交的申请号为201810449263.9、发明名称为“图像拍摄方法、装置及电子终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及数据处理技术领域,尤其涉及一种图像拍摄方法、装置及电子终端。
背景技术
随着通信技术的发展,终端设备提供越来越多的功能,以满足人们需求,进行各项工作和交互。在终端设备提供的多种功能中,摄像功能如拍照或短视频拍摄应用越来越广泛,也越来越受欢迎。
但因为大部分的终端设备用户并不具有专业的摄像水平,因此,拍出来的照片或视频,尤其是人物照片或视频的质量良莠不齐,极大地影响了照片或视频的美感,也影响了用户的使用体验。
因此,如何使不具有专业摄像水平的终端设备用户也能够拍摄出较高质量的照片图像或视频图像,成为亟待解决的问题。
发明内容
有鉴于此,本发明实施例提供一种图像拍摄方法、装置及电子终端,以解决如何使不具有专业摄像水平的终端设备用户也能够拍摄出较高质量的图像的问题。
根据本发明实施例的第一方面,提供了一种图像拍摄方法,包括:在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;获取与检测结果相匹配的拍摄建议信息;接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作;根据所述调整操作的结果进行包含所述目标对象的图像拍摄。
根据本发明实施例的第二方面,提供了一种图像拍摄装置,包括:检测模块,用于在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;获取模块,用于获取与检测结果相匹配的拍摄建议信息;接收模块,用于接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作;拍摄模块,用于根据所述调整操作 的结果进行包含所述目标对象的图像拍摄。
根据本发明实施例的第三方面,提供了一种电子终端,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如第一方面所述的图像拍摄方法对应的操作。
根据本发明实施例提供的图像拍摄方案,在用户还未进行拍摄确认,还在准备过程中时,对图像采集设备采集的图像进行目标对象检测,进而根据检测结果获取相匹配的拍摄建议信息,通过拍摄建议信息,对图像采集设备和/或所述目标对象进行调整操作,进而实现对拍摄效果的调整,以使拍摄的图像具有较好的拍摄质量。其中,拍摄建议信息可以基于专业摄像的拍摄规则和标准设定,相较于普通用户的拍摄技术更为专业,可以达到较好的拍摄效果,使得普通用户拍摄出的图像也可以有专业摄影师的水平。例如,在用户使用终端设备进行自拍时,可以根据人物的位置进行构图等分析,以给出专业建议,使得最终的图像具有较高的质量。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1为根据本发明实施例一的一种图像拍摄方法的步骤流程图;
图2为根据本发明实施例二的一种图像拍摄方法的步骤流程图;
图3为图2所示实施例中的一种拍摄建议界面的示意图;
图4为根据本发明实施例三的一种图像拍摄装置的结构框图;
图5为根据本发明实施例四的一种图像拍摄装置的结构框图;
图6为根据本发明实施例五的一种电子终端的结构示意图。
具体实施方式
为了使本领域的人员更好地理解本发明实施例中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的 实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本发明实施例保护的范围。
下面结合本发明实施例附图进一步说明本发明实施例具体实现。
实施例一
参照图1,示出了根据本发明实施例一的一种图像拍摄方法的步骤流程图。
本实施例的图像拍摄方法包括以下步骤:
步骤S102:在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测。
其中,图像拍摄准备过程是指开始准备拍摄至按下拍摄按钮之前的过程,例如,在通常使用手机摄像时,已经将摄像头朝向被拍摄目标对象至按下拍摄按钮之前的过程。这一过程通常是为即将开始的拍摄做准备,在本发明实施例中被称为图像拍摄准备过程。
本实施例中,在图像拍摄准备过程即开始对图像采集设备如摄像头采集的图像进行目标对象检测,此过程中,图像采集设备采集的图像通常为运动图像,目标对象可能还处于运动状态或者还未到达预期的拍摄状态,此时,对图像进行目标对象检测,以确定图像中是否包含有相应的目标对象,进而根据目标对象检测的检测结果对当前拍摄类型进行一个评估,如,人像摄像、动物摄像、风景摄像等等。其中,目标对象可以根据实际需求由本领域技术人员适当设置,本发明实施例对此不作限制。因人像摄像在日常生活中大量使用,本发明实施例提供的图像拍摄方案可着重针对人像拍摄提供拍摄建议,但不限于此,如前所述,动物摄像、风景摄像等其它摄像与人物摄像原理相同,均可适用本发明实施例的方案。
此外,对图像中目标对象的检测也可以由本领域技术人员采用任意适当的方式实现,如采用卷积神经网络等方式,本发明实施例对此也不作限制。
步骤S104:获取与检测结果相匹配的拍摄建议信息。
在确定了检测结果后,即可获取与检测结果相匹配的拍摄建议信息。其中,拍摄建议信息根据专业摄像技术和规则设置,例如,在构图时,若人像以风景为背景,建议人像位于图像中某一位置处;或者,若背景比较嘈杂,建议背景简单化或虚化;或者,若人像头部占据主要画面,建议再向前移动一定距离或向后移动一位距离,或者,采用某一种滤镜模型,以达到最好效果,等等。
可见,检测结果与拍摄建议之间具有一定的对应关系,该对应关系可以设置于图像采集设备所在的终端本地,也可以设置于适当的服务器中,还可以终端本地设置一部分 服务器中设置一部分,等等。
检测结果与拍摄建议信息的对应关系的具体设置,以及,具体拍摄建议信息的具体设置均可以由本领域技术人员适当设置。
步骤S106:接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作。
根据拍摄建议信息对图像采集设备的调整操作可以由图像采集设备所在的终端设备自动实现,图像采集设备所在的终端设备接收该自动调整操作;也可以由人工参照拍摄建议信息对图像采集设备进行调整操作,然后由图像采集设备所在的终端设备接收该操作。
其中,对图像采集设备的调整操作包括但不限于:调整远近角度、对摄像头进行前后左右上下平移、保持摄像头位置不变但摄像角度向上下左右偏转、调整光照、调整明暗度、调整滤镜,等等。
对目标对象的调整操作用于实现较好的目标对象的拍摄效果,例如,对于自拍对象,可以给出恰当的站位、姿态、表情、动作等等建议。可以结合或不结合对图像采集设备的调整操作,实现专业人物拍摄效果。
步骤S108:根据所述调整操作的结果进行包含目标对象的图像拍摄。
对图像采集设备和/或目标对象进行调整操作的目的是为了更好地进行相应目标对象的拍摄,因此,在根据拍摄建议信息进行了相应调整后,即可对目标对象进行拍摄,即进行包含目标对象的图像拍摄。例如,在根据拍摄建议信息进行了相应调整后,终端设备接收到拍摄指令(如拍摄按钮按下时触发生成的拍摄指令),则对目标对象进行拍摄,生成包含目标对象的图像。
通过本实施例,在用户还未进行拍摄确认,还在准备过程中时,对图像采集设备采集的图像进行目标对象检测,进而根据检测结果获取相匹配的拍摄建议信息,通过拍摄建议信息,对图像采集设备和/或目标对象进行调整操作,进而实现对拍摄效果的调整,以使拍摄的图像具有较好的拍摄质量。其中,拍摄建议信息可以基于专业摄像的拍摄规则和标准设定,相较于普通用户的拍摄技术更为专业,可以达到较好的拍摄效果,使得普通用户拍摄出的图像也可以有专业摄影师的水平。
本实施例的图像拍摄方法可以由任意适当的具有数据处理能力的电子终端执行,如移动终端(平板电脑、手机等)或台式机等。
实施例二
参照图2,示出了根据本发明实施例二的一种图像拍摄方法的步骤流程图。
本实施例的图像拍摄方法包括以下步骤:
步骤S202:在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测。
本实施例中,以目标对象为人像,对图像采集设备采集的图像进行人像检测为例,对本发明实施例提供的图像拍摄方法进行说明。但本领域技术人员应当明了,其它目标对象均可参照本实施例实现相应的图像拍摄。
如前所述,对图像进行目标对象检测可以采用任意适当方式实现,本发明实施例对此不作限制。
在一种可行方案中,可以在图像拍摄准备过程中,判断是否达到对图像采集设备采集的图像进行目标对象检测的触发条件;若达到触发条件,则对所述图像进行目标对象检测。而若未达到触发条件,则可以返回判断是否达到对图像采集设备采集的图像进行目标对象检测的触发条件的步骤继续执行。从摄像头朝向目标对象至最终拍摄的这一图像拍摄准备过程可能会持续一段时间,为减轻终端设备的计算负担和资源消耗,可以设置适当的触发条件,在触发条件被触发时,再进行目标对象检测。
在具体实现时,因在图像拍摄准备过程中的多帧图像中的目标对象可能并不处于固定位置,因此,可选地,可以对图像采集设备采集的图像进行运动检测;根据运动检测的结果,判断是否达到对图像采集设备采集的图像进行目标对象检测的触发条件。
其中,触发条件可以包括:设定参考点在连续多帧图像中的位移小于设定位移。为简化实现,设定参考点可以设置为目标对象,当然,也可以为图像中的其它参照物。连续多帧(两帧及两帧以上)图像可以是预先设定的一定数量的图像,也可以是一定时间段内的多帧图像。其中,设定位移可以由本领域技术人员根据实际需求适当设置,使其在一个适当小的区间即可,如常规使用的认定运动画面静止的区间。在一个具体实例中,例如,对图像进行运动检测,若确定图像静止超过2S(秒),则认为达到触发条件,进行目标对象检测。通过对设定参考点在连续多帧图像中的位移为判断是否达到触发条件,简单易于实现,降低了方案实现成本。
步骤S204:获取与检测结果相匹配的拍摄建议信息。
如前所述,拍摄建议信息可以根据专业摄像技术和规则设置,对目标对象的检测结果与拍摄建议信息之间的对应关系可以预先定义,在需要时根据检测结果确定其对应的拍摄建议信息即可。
在一种可行方式中,可以根据对图像的目标对象检测的检测结果,确定目标对象的 以下信息至少之一:目标对象所在环境的光照信息、目标对象所在环境的明暗度信息、目标对象在被测图像中的位置信息、目标对象在被测图像中的尺寸信息、目标对象的数量信息;根据确定的目标对象的信息,获取相匹配的拍摄建议信息。
目标对象的信息表征了目标对象自身及其所处环境的相关情况,可以根据这些信息匹配较专业的拍摄建议,以向用户推荐,实现普通用户的高水平图像拍摄。例如,若检测到图像中存在三个人像且在整个画面中占比较大,则可以给出近景视角拍摄建议;若检测到图像中存在三个人像且在整个画面中的背景风景占比较大,则可以给出全景视角拍摄建议,等等。
可选地,拍摄建议信息可以包括以下至少之一:目标对象所在环境的光照调整信息、目标对象所在环境的明暗度调整信息、目标对象的位置调整信息、目标对象的姿态调整信息、图像采集设备的拍摄视角调整信息。其中,目标对象所在环境的光照调整信息、目标对象所在环境的明暗度调整信息、和图像采集设备的拍摄视角调整信息均可以通过调整图像采集设备实现。此外,拍摄视角调整信息除包括诸如远景视角、全景视角、中景视角、近景视角、特写视角等视角信息外,对于人像摄像,还可以包括平视视角、仰视视角、俯视视角等。通过对目标对象所在环境的光照和明暗度的调整,可以实现摄像的色调、明暗等调整;通过对目标对象的位置的调整,可以实现摄像的构图和比例等调整;通过对目标对象的姿态调整,可以实现人物的美化调整;通过对拍摄视角的调整,可以实现更专业的拍摄角度调整,等等。但不限于上述信息,在实际应用中,可以根据实际的专业拍摄技术和规则设置其它适当的拍摄建议信息。
对目标对象的检测结果与拍摄建议信息之间的对应关系可以预先定义,在需要时根据检测结果确定其对应的拍摄建议信息即可。但不限于此,在一种更优选的方式中,可以将确定的目标对象的信息作为图像处理模型(如LR(Logistics Regression)模型,通过将海量的图像作为训练对象,对图像中的目标对象信息与最佳拍照建议的关系数据进行训练,得到一个LR模型,在应用时,将待检测图像的各种目标对象的信息输入这个训练好的LR模型,就可以得到最佳的拍摄建议)的输入,通过图像处理模型对输入的所述目标对象的信息进行处理并获得图像处理模型输出的拍摄建议信息。例如,通过对图像进行人像检测,检测出图像中的人像为半身、全身、多人合照等信息,以及,图像中的光照、明暗度等信息;然后,将检测出的信息作为输入参数,输入LR模型,获得相应的拍摄建议信息。通过图像处理模型的方式,可以更加智能化地根据目标对象检测结果给出拍摄建议,并且,给出的拍摄建议也更加全面、专业和合理。
步骤S206:根据拍摄建议信息生成图像采集设备的调整指令,根据调整指令对图像采集设备进行自动调整操作。
本实施例中,以终端设备对图像采集设备的自动化调整为例,对本发明实施例提供的图像拍摄方法进行说明。
在获得了拍摄建议信息之后,对其中与目标对象自身的调整无关的信息均可由终端设备通过相关代码或图像采集设备的硬件调整实现。例如,终端设备通过代码降低或提高图像的光照度或者明暗度,通过代码拉近或拉远目标对象实现拍摄视角调整,通过代码实现滤镜设置,等等。但目标对象自身的调整如人物的站位调整(如靠近某一物体)、人物的姿态调整(如站姿或摆出某一造型)等,则仍需目标对象自身完成。通过自动化调整,大大减轻了用户的操作负担,提升了用户的使用体验,且终端设备调整相较于人工调整更为准确。
但不限于终端设备的自动调整方式,还可以采用终端设备调整和人工调整相结合的方式,例如,根据拍摄建议信息生成并显示图像采集设备和/或目标对象的调整信息,以通过调整信息指示对图像采集设备和/或目标对象进行调整信息所指示的调整操作。如,拍摄建议信息指示提高光照度,则可以生成指示提高光照度的调整信息,相应地,图像采集设备所在终端设备的界面上有调整光照度的设置,用户可以通过对该设置进行操作来提高光照度。除上述用于对图像采集设备进行调整操作的调整信息外,但实际应用中,调整信息还可以包括用于指示对目标对象自身进行调整的调整信息,如指示目标对象进行位置调整或姿态调整的信息。
一种使用拍摄建议进行图像拍摄的界面如图3所示,用户在自拍时,终端设备首先会识别出摄像头中的画面主体即用户,然后根据当前的光照环境、画面主体的位置进行构图与明暗分析,并且给出拍摄的建议,具体如图3中所示,该建议为“保持摄像头位置不变,但是角度往左偏转30度”。由图3可见,图3中人物较为靠左,影响了整体构图,角度向左偏转30度,人物可以处于正中稍偏右的位置,图像整体构图更为美观、合理。其中,建议信息的具体内容和展现形式均可以由本领域技术人员根据实际需求适当设置,如还可以是:“将摄像头向前/后/左/右/上/下进行平移”、”保持摄像头位置不变,但是角度往上/下/左/右进行偏转”、“上/下调光照度”等建议。
步骤S208:接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作。
无论是终端设备对图像采集设备的自动调整操作,还是用户根据调整信息对图像采集设备的人工调整操作,终端设备都会接收到该调整操作,确定该调整操作的结果,进 而结合目标对象的调整操作进行后续的拍摄。
步骤S210:根据所述调整操作的结果进行包含目标对象的图像拍摄。
即,在图像采集设备和/或目标对象调整好后,对目标对象进行拍摄。
通过本实施例,在用户还未进行拍摄确认,还在准备过程中时,对图像采集设备采集的图像进行目标对象检测,进而根据检测结果获取相匹配的拍摄建议信息,通过拍摄建议信息,对图像采集设备和/或目标对象进行调整操作,进而实现对拍摄效果的调整,以使拍摄的图像具有较好的拍摄质量。其中,拍摄建议信息可以基于专业摄像的拍摄规则和标准设定,相较于普通用户的拍摄技术更为专业,可以达到较好的拍摄效果,使得普通用户拍摄出的图像也可以有专业摄影师的水平。
尤其对于爱好自拍的用户,如何在自拍中把自己拍得更好看一直是困扰这些用户的难题,以前这些用户只能通过看各类教学文章来提升自己的自拍技术,而通过本发明实施例提供的图像拍摄方案,突破性地实现了通过技术手段,并根据实时的环境因素来自动实现高质量自拍,有效地解决了上述难题。
本实施例的图像拍摄方法可以由任意适当的具有数据处理能力的电子终端执行,如移动终端(平板电脑、手机等)或台式机等。
实施例三
参照图4,示出了根据本发明实施例三的一种图像拍摄装置的结构框图。
本实施例的图像拍摄装置包括:检测模块302,用于在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;获取模块304,用于获取与检测结果相匹配的拍摄建议信息;接收模块306,用于接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作;拍摄模块308,用于根据调整操作的结果进行包含目标对象的图像拍摄。
通过本实施例,在用户还未进行拍摄确认,还在准备过程中时,对图像采集设备采集的图像进行目标对象检测,进而根据检测结果获取相匹配的拍摄建议信息,通过拍摄建议信息,对图像采集设备和/或目标对象进行调整操作,进而实现对拍摄效果的调整,以使拍摄的图像具有较好的拍摄质量。其中,拍摄建议信息可以基于专业摄像的拍摄规则和标准设定,相较于普通用户的拍摄技术更为专业,可以达到较好的拍摄效果,使得普通用户拍摄出的图像也可以有专业摄影师的水平。
实施例四
参照图5,示出了根据本发明实施例四的一种图像拍摄装置的结构框图。
本实施例的图像拍摄装置包括:检测模块402,用于在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;获取模块404,用于获取与检测结果相匹配的拍摄建议信息;接收模块406,用于接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作;拍摄模块408,用于根据调整操作的结果进行包含目标对象的图像拍摄。
可选地,获取模块404用于根据所述检测结果,确定目标对象的以下信息至少之一:目标对象所在环境的光照信息、目标对象所在环境的明暗度信息、目标对象在被测图像中的位置信息、目标对象在被测图像中的尺寸信息、目标对象的数量信息;根据确定的目标对象的信息,获取相匹配的拍摄建议信息。
可选地,拍摄建议信息包括以下至少之一:目标对象所在环境的光照调整信息、目标对象所在环境的明暗度调整信息、目标对象的位置调整信息、目标对象的姿态调整信息、图像采集设备的拍摄视角调整信息。
可选地,本实施例的图像拍摄装置还包括:生成模块410,用于在接收模块406接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作之前,根据拍摄建议信息生成图像采集设备的调整指令,根据调整指令对图像采集设备进行自动调整操作。
可选地,本实施例的图像拍摄装置还包括:信息模块412,用于在接收模块406接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作之前,根据拍摄建议信息生成并显示图像采集设备和/或目标对象的调整信息,以通过所述调整信息指示对图像采集设备和/或目标对象进行所述调整信息所指示的调整操作。
可选地,获取模块404用于将确定的目标对象的信息作为图像处理模型的输入,通过图像处理模型对输入的目标对象的信息进行处理并获得图像处理模型输出的拍摄建议信息。
可选地,检测模块402包括:判断模块4022,用于在图像拍摄准备过程中,判断是否达到对图像采集设备采集的图像进行目标对象检测的触发条件;执行模块4024,用于若判断模块4022的判断结果为达到触发条件,则对图像进行目标对象检测;若判断模块4022的判断结果为未达到触发条件,则返回判断模块4022。
可选地,判断模块4022用于在图像拍摄准备过程中,对图像采集设备采集的图像进行运动检测;根据运动检测的结果,判断是否达到对图像采集设备采集的图像进行目标 对象检测的触发条件。
可选地,触发条件包括:设定参考点在连续多帧图像中的位移小于设定位移。
本实施例的图像拍摄装置用于实现前述多个方法实施例中相应的图像拍摄方法,并具有相应的方法实施例的有益效果,在此不再赘述。
实施例五
参照图6,示出了根据本发明实施例五的一种电子终端的结构示意图,本发明具体实施例并不对电子终端的具体实现做限定。
如图6所示,该电子终端可以包括:处理器(processor)502、通信接口(Communications Interface)504、存储器(memory)506、以及通信总线508。
其中:
处理器502、通信接口504、以及存储器506通过通信总线508完成相互间的通信。
通信接口504,用于与其它终端设备或服务器进行通信。
处理器502,用于执行程序510,具体可以执行上述图像拍摄方法实施例中的相关步骤。
具体地,程序510可以包括程序代码,该程序代码包括计算机操作指令。
处理器502可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。终端设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。
存储器506,用于存放程序510。存储器506可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
程序510具体可以用于使得处理器502执行以下操作:在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;获取与检测结果相匹配的拍摄建议信息;接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作;根据所述调整操作的结果进行包含目标对象的图像拍摄。
在一种可选的实施方式中,程序510还用于使得处理器502在获取与检测结果相匹配的拍摄建议信息时,根据所述检测结果,确定目标对象的以下信息至少之一:目标对象所在环境的光照信息、目标对象所在环境的明暗度信息、目标对象在被测图像中的位置信息、目标对象在被测图像中的尺寸信息、目标对象的数量信息;根据确定的所述目 标对象的信息,获取相匹配的拍摄建议信息。
在一种可选的实施方式中,拍摄建议信息包括以下至少之一:目标对象所在环境的光照调整信息、目标对象所在环境的明暗度调整信息、目标对象的位置调整信息、目标对象的姿态调整信息、图像采集设备的拍摄视角调整信息。
在一种可选的实施方式中,程序510还用于使得处理器502在接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作之前,根据拍摄建议信息生成图像采集设备的调整指令,根据所述调整指令对图像采集设备进行自动调整操作。
在一种可选的实施方式中,程序510还用于使得处理器502在接收根据拍摄建议信息对图像采集设备和/或目标对象的调整操作之前,根据拍摄建议信息生成并显示图像采集设备和/或目标对象的调整信息,以通过所述调整信息指示对图像采集设备和/或目标对象进行所述调整信息所指示的调整操作。
在一种可选的实施方式中,程序510还用于使得处理器502在根据确定的目标对象的信息,获取相匹配的拍摄建议信息时,将确定的目标对象的信息作为图像处理模型的输入,通过图像处理模型对输入的目标对象的信息进行处理并获得图像处理模型输出的拍摄建议信息。
在一种可选的实施方式中,程序510还用于使得处理器502在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测时,在图像拍摄准备过程中,判断是否达到对图像采集设备采集的图像进行目标对象检测的触发条件;若达到所述触发条件,则对所述图像进行目标对象检测。
在一种可选的实施方式中,程序510还用于使得处理器502在判断是否达到对所述图像采集设备采集的图像进行目标对象检测的触发条件时,对图像采集设备采集的图像进行运动检测;根据所述运动检测的结果,判断是否达到对图像采集设备采集的图像进行目标对象检测的触发条件。
在一种可选的实施方式中,所述触发条件包括:设定参考点在连续多帧图像中的位移小于设定位移。
程序510中各步骤的具体实现可以参见上述图像拍摄方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。
通过本实施例的电子终端,在用户还未进行拍摄确认,还在准备过程中时,对图像 采集设备采集的图像进行目标对象检测,进而根据检测结果获取相匹配的拍摄建议信息,通过拍摄建议信息,对图像采集设备和/或所述目标对象进行调整操作,进而实现对拍摄效果的调整,以使拍摄的图像具有较好的拍摄质量。其中,拍摄建议信息可以基于专业摄像的拍摄规则和标准设定,相较于普通用户的拍摄技术更为专业,可以达到较好的拍摄效果,使得普通用户拍摄出的图像也可以有专业摄影师的水平。
需要指出,根据实施的需要,可将本发明实施例中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本发明实施例的目的。
上述根据本发明实施例的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的图像拍摄方法。此外,当通用计算机访问用于实现在此示出的图像拍摄方法的代码时,代码的执行将通用计算机转换为用于执行在此示出的图像拍摄方法的专用计算机。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用APP和设计约束条件。专业技术人员可以对每个特定的应用APP来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
以上实施方式仅用于说明本发明实施例,而并非对本发明实施例的限制,有关技术领域的普通技术人员,在不脱离本发明实施例的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明实施例的范畴,本发明实施例的专利保护范围应由权利要求限定。

Claims (19)

  1. 一种图像拍摄方法,包括:
    在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;
    获取与检测结果相匹配的拍摄建议信息;
    接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作;
    根据所述调整操作的结果进行包含所述目标对象的图像拍摄。
  2. 根据权利要求1所述的方法,其中,所述获取与检测结果相匹配的拍摄建议信息,包括:
    根据所述检测结果,确定所述目标对象的以下信息至少之一:所述目标对象所在环境的光照信息、所述目标对象所在环境的明暗度信息、所述目标对象在被测图像中的位置信息、所述目标对象在被测图像中的尺寸信息、所述目标对象的数量信息;
    根据确定的所述目标对象的信息,获取相匹配的拍摄建议信息。
  3. 根据权利要求1或2所述的方法,其中,所述拍摄建议信息包括以下至少之一:
    所述目标对象所在环境的光照调整信息、所述目标对象所在环境的明暗度调整信息、所述目标对象的位置调整信息、所述目标对象的姿态调整信息、所述图像采集设备的拍摄视角调整信息。
  4. 根据权利要求3所述的方法,其中,在所述接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作之前,所述方法还包括:
    根据所述拍摄建议信息生成所述图像采集设备的调整指令,根据所述调整指令对所述图像采集设备进行自动调整操作。
  5. 根据权利要求3所述的方法,其中,在所述接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作之前,所述方法还包括:
    根据所述拍摄建议信息生成并显示所述图像采集设备和/或所述目标对象的调整信息,以通过所述调整信息指示对所述图像采集设备和/或所述目标对象进行所述调整信息所指示的调整操作。
  6. 根据权利要求2所述的方法,其中,所述根据确定的所述目标对象的信息,获取相匹配的拍摄建议信息,包括:
    将确定的所述目标对象的信息作为图像处理模型的输入,通过所述图像处理模型对输入的所述目标对象的信息进行处理并获得所述图像处理模型输出的拍摄建议信息。
  7. 根据权利要求1所述的方法,其中,所述在图像拍摄准备过程中,对图像采集设 备采集的图像进行目标对象检测,包括:
    在图像拍摄准备过程中,判断是否达到对所述图像采集设备采集的图像进行目标对象检测的触发条件;
    若达到所述触发条件,则对所述图像进行目标对象检测。
  8. 根据权利要求7所述的方法,其中,所述判断是否达到对所述图像采集设备采集的图像进行目标对象检测的触发条件,包括:
    对所述图像采集设备采集的图像进行运动检测;
    根据所述运动检测的结果,判断是否达到对所述图像采集设备采集的图像进行目标对象检测的触发条件。
  9. 根据权利要求8所述的方法,其中,所述触发条件包括:设定参考点在连续多帧图像中的位移小于设定位移。
  10. 一种图像拍摄装置,包括:
    检测模块,用于在图像拍摄准备过程中,对图像采集设备采集的图像进行目标对象检测;
    获取模块,用于获取与检测结果相匹配的拍摄建议信息;
    接收模块,用于接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作;
    拍摄模块,用于根据所述调整操作的结果进行包含所述目标对象的图像拍摄。
  11. 根据权利要求10所述的装置,其中,所述获取模块,用于根据所述检测结果,确定所述目标对象的以下信息至少之一:所述目标对象所在环境的光照信息、所述目标对象所在环境的明暗度信息、所述目标对象在被测图像中的位置信息、所述目标对象在被测图像中的尺寸信息、所述目标对象的数量信息;根据确定的所述目标对象的信息,获取相匹配的拍摄建议信息。
  12. 根据权利要求10或11所述的装置,其中,所述拍摄建议信息包括以下至少之一:
    所述目标对象所在环境的光照调整信息、所述目标对象所在环境的明暗度调整信息、所述目标对象的位置调整信息、所述目标对象的姿态调整信息、所述图像采集设备的拍摄视角调整信息。
  13. 根据权利要求12所述的装置,其中,所述装置还包括:
    生成模块,用于在所述接收模块接收根据所述拍摄建议信息对所述图像采集设备和 /或所述目标对象的调整操作之前,根据所述拍摄建议信息生成所述图像采集设备的调整指令,根据所述调整指令对所述图像采集设备进行自动调整操作。
  14. 根据权利要求12所述的装置,其中,所述装置还包括:
    信息模块,用于在所述接收模块接收根据所述拍摄建议信息对所述图像采集设备和/或所述目标对象的调整操作之前,根据所述拍摄建议信息生成并显示所述图像采集设备和/或所述目标对象的调整信息,以通过所述调整信息指示对所述图像采集设备和/或所述目标对象进行所述调整信息所指示的调整操作。
  15. 根据权利要求11所述的装置,其中,所述获取模块,用于将确定的所述目标对象的信息作为图像处理模型的输入,通过所述图像处理模型对输入的所述目标对象的信息进行处理并获得所述图像处理模型输出的拍摄建议信息。
  16. 根据权利要求10所述的装置,其中,所述检测模块包括:
    判断模块,用于在图像拍摄准备过程中,判断是否达到对所述图像采集设备采集的图像进行目标对象检测的触发条件;
    执行模块,用于若所述判断模块的判断结果为达到所述触发条件,则对所述图像进行目标对象检测。
  17. 根据权利要求16所述的装置,其中,所述判断模块,用于在图像拍摄准备过程中,对所述图像采集设备采集的图像进行运动检测;根据所述运动检测的结果,判断是否达到对所述图像采集设备采集的图像进行目标对象检测的触发条件。
  18. 根据权利要求17所述的装置,其中,所述触发条件包括:设定参考点在连续多帧图像中的位移小于设定位移。
  19. 一种电子终端,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如权利要求1-9任一项所述的图像拍摄方法对应的操作。
PCT/CN2019/085658 2018-05-11 2019-05-06 图像拍摄方法、装置及电子终端 WO2019214574A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810449263.9A CN108307120B (zh) 2018-05-11 2018-05-11 图像拍摄方法、装置及电子终端
CN201810449263.9 2018-05-11

Publications (1)

Publication Number Publication Date
WO2019214574A1 true WO2019214574A1 (zh) 2019-11-14

Family

ID=62846470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/085658 WO2019214574A1 (zh) 2018-05-11 2019-05-06 图像拍摄方法、装置及电子终端

Country Status (2)

Country Link
CN (1) CN108307120B (zh)
WO (1) WO2019214574A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301252A (zh) * 2021-05-20 2021-08-24 努比亚技术有限公司 图像拍摄方法、移动终端及计算机可读存储介质
CN113923361A (zh) * 2021-10-19 2022-01-11 北京字节跳动网络技术有限公司 数据处理方法、装置、设备,以及计算机可读存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307120B (zh) * 2018-05-11 2020-07-17 阿里巴巴(中国)有限公司 图像拍摄方法、装置及电子终端
CN108872265A (zh) * 2018-07-23 2018-11-23 珠海格力智能装备有限公司 检测方法、装置及系统
CN110996008A (zh) * 2019-12-19 2020-04-10 上海传英信息技术有限公司 终端拍摄方法、移动终端及存储介质
CN113343859A (zh) * 2021-06-10 2021-09-03 浙江大华技术股份有限公司 吸烟行为检测方法、装置、存储介质及电子装置
CN113411477B (zh) * 2021-06-10 2023-03-10 支付宝(杭州)信息技术有限公司 一种图像的采集方法、装置及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243832A (zh) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 通过移动终端进行拍摄的方法、装置及移动终端
CN104349024A (zh) * 2013-08-09 2015-02-11 联想(北京)有限公司 一种采集图像的方法和电子设备
CN105472246A (zh) * 2015-12-22 2016-04-06 努比亚技术有限公司 拍照装置及方法
CN107301390A (zh) * 2017-06-16 2017-10-27 广东欧珀移动通信有限公司 拍摄提示方法、装置及终端设备
CN108307120A (zh) * 2018-05-11 2018-07-20 优视科技有限公司 图像拍摄方法、装置及电子终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004266376A (ja) * 2003-02-25 2004-09-24 Matsushita Electric Ind Co Ltd 映像合成装置
JP4508257B2 (ja) * 2008-03-19 2010-07-21 ソニー株式会社 構図判定装置、構図判定方法、プログラム
CN102073844A (zh) * 2010-11-10 2011-05-25 无锡中星微电子有限公司 智能监控系统和方法
CN103093526A (zh) * 2012-12-25 2013-05-08 上海交通大学 一种情景模式的智能门禁系统
CN105654512B (zh) * 2015-12-29 2018-12-07 深圳微服机器人科技有限公司 一种目标跟踪方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349024A (zh) * 2013-08-09 2015-02-11 联想(北京)有限公司 一种采集图像的方法和电子设备
CN104243832A (zh) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 通过移动终端进行拍摄的方法、装置及移动终端
CN105472246A (zh) * 2015-12-22 2016-04-06 努比亚技术有限公司 拍照装置及方法
CN107301390A (zh) * 2017-06-16 2017-10-27 广东欧珀移动通信有限公司 拍摄提示方法、装置及终端设备
CN108307120A (zh) * 2018-05-11 2018-07-20 优视科技有限公司 图像拍摄方法、装置及电子终端

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301252A (zh) * 2021-05-20 2021-08-24 努比亚技术有限公司 图像拍摄方法、移动终端及计算机可读存储介质
CN113301252B (zh) * 2021-05-20 2024-03-22 努比亚技术有限公司 图像拍摄方法、移动终端及计算机可读存储介质
CN113923361A (zh) * 2021-10-19 2022-01-11 北京字节跳动网络技术有限公司 数据处理方法、装置、设备,以及计算机可读存储介质

Also Published As

Publication number Publication date
CN108307120B (zh) 2020-07-17
CN108307120A (zh) 2018-07-20

Similar Documents

Publication Publication Date Title
WO2019214574A1 (zh) 图像拍摄方法、装置及电子终端
CN106331508B (zh) 拍摄构图的方法及装置
JP6101397B2 (ja) 写真出力方法および装置
WO2017096866A1 (zh) 高动态范围图像的生成方法和装置
TWI413022B (zh) 影像評估方法、影像擷取方法及其數位相機
WO2019134502A1 (zh) 拍照方法、装置、存储介质及电子设备
US10264230B2 (en) Kinetic object removal from camera preview image
WO2016107055A1 (zh) 拼图的处理方法及装置
CN107743191B (zh) 终端及其防抖拍照方法、存储装置
WO2021169686A1 (zh) 一种拍摄控制方法、装置及计算机可读存储介质
TW201328346A (zh) 攝像裝置及攝像方法
CN103685940A (zh) 一种通过表情识别拍摄照片的方法
WO2016011877A1 (zh) 拍摄光绘视频的方法和移动终端、存储介质
TW201801516A (zh) 影像擷取裝置及其攝影構圖的方法
WO2015101123A1 (zh) 视频拍摄的处理方法及装置
CN111654624B (zh) 拍摄提示方法、装置及电子设备
WO2019084756A1 (zh) 一种图像处理方法、装置及飞行器
CN110581950B (zh) 相机、选择相机设置的系统和方法
CN101472064A (zh) 拍摄系统及其景深处理方法
US10602075B2 (en) Automatically determining a set of exposure values for a high dynamic range image capture device
CN111200708B (zh) 长曝光拍摄控制方法、系统、设备及计算机存储介质
CN104735353A (zh) 一种拍摄全景照片的方法及装置
CN108683847B (zh) 拍照方法、装置、终端及存储介质
WO2016131226A1 (zh) 智能终端及其图像处理方法和装置
JP2020188448A (ja) 撮像装置及び撮像方法

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

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

Country of ref document: EP

Kind code of ref document: A1