WO2022022557A1 - 图片生成方法、计算机可读存储介质和电子设备 - Google Patents

图片生成方法、计算机可读存储介质和电子设备 Download PDF

Info

Publication number
WO2022022557A1
WO2022022557A1 PCT/CN2021/108867 CN2021108867W WO2022022557A1 WO 2022022557 A1 WO2022022557 A1 WO 2022022557A1 CN 2021108867 W CN2021108867 W CN 2021108867W WO 2022022557 A1 WO2022022557 A1 WO 2022022557A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
target
initial image
generation method
image
Prior art date
Application number
PCT/CN2021/108867
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 WO2022022557A1 publication Critical patent/WO2022022557A1/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/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • 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
    • 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 present disclosure relates to the technical field of image processing.
  • a method for generating a picture including: identifying a shooting target in an initial image; Preset position; and, output the final picture in picture format.
  • a computer-readable storage medium is provided on which a computer-executable program is stored, and when the computer-executable program is executed, the image generation method provided by the first aspect of the present disclosure can be implemented.
  • an electronic device comprising: a memory on which an executable program is stored; and, one or more processors capable of executing the executable program, such that the executable program is executed by the one or more processors.
  • One or more processors implement the picture generation method provided by the first aspect of the present disclosure.
  • FIG. 1 is a flowchart of a picture generation method provided by the present disclosure.
  • FIG. 2 is another flowchart of the picture generation method provided by the present disclosure.
  • FIG. 3 is a flowchart of step S120 shown in FIGS. 1 and 2 .
  • FIG. 4 is another flowchart of the image generation method provided by the present disclosure.
  • the most commonly used image processing method is to use software to process the photos that have been taken by the user.
  • the image quality is often unsatisfactory, which reduces the user experience of the user when taking a photo.
  • the image generation method includes: step S110 , step S120 and step S130 .
  • step S110 the photographing target in the initial image is identified.
  • step S120 a target range in the initial image to be used as the final picture is determined according to the shooting target, so that the shooting target is located at a preset position in the final picture.
  • step S130 the final picture is output in a picture format.
  • the initial image is the image captured by the camera, but the image has not been saved as a picture format.
  • the shooting target Before saving the image as a picture format output, identify the subject in the original image.
  • the shooting target In the final picture in the final output picture format, the shooting target will be located at a predetermined position. Therefore, after the user finishes the image capturing action, in the final image obtained, the shooting target meets the predetermined composition requirements. That is to say, by using the picture generation method provided by the present disclosure, immediate feedback can be given to the user, and the user experience can be improved.
  • the preset position is not particularly limited, as long as it can meet the predetermined composition requirements.
  • the golden section point of the final picture falls within the range of the preset position. That is to say, in the final picture, a part of the captured picture is located on the golden section point of the final picture, so that the aesthetic level of the final picture can be improved.
  • the geometric center of the shooting target overlaps with the golden section point of the final picture.
  • the photographing target may be plants, buildings, animals, people, and the like.
  • the photographing device eg, mobile phone, digital camera, etc.
  • the photographing device is configured with different recognition modes (eg, plant recognition mode, building recognition mode, person recognition mode, animal recognition mode, etc.), before shooting , set the shooting device to the corresponding recognition mode, and the shooting target in the initial image can be automatically recognized.
  • the step S110 of identifying the photographing target in the initial image may include performing person recognition.
  • the one with the most distinctive features among the multiple people can be the shooting target.
  • multi-person group photo here includes active multi-group photo and passive multi-group photo.
  • active group photo refers to that multiple people take group photos in a planned way.
  • passive group photo can refer to mistakenly recording other people in the lens when taking a photo of a specific person.
  • each group photo participant is about the same distance from the camera, and multiple participants usually meet a certain rank. Accordingly, the rank of each participant can be used as a feature, and the one with the most obvious feature can be the one in the middle among the plurality of participants.
  • the person being photographed is usually the closest to the shooting lens, and the person who strays into the lens is farther away from the shooting lens. That is, the area occupied by the subject in the initial image is the largest. Therefore, in the present disclosure, the face area is used as a feature. The one with the largest face area is the "one with the most obvious features".
  • the face area can be used as a feature, and the one with the largest face area can be used as the one with the most obvious feature, that is, the one with the largest face area is the shooting target.
  • the faces of all the people are located within the target range. In this way, it is possible not only to avoid missing people, but also to ensure that the person closest to the lens (ie, the shooting target) is at a preset position, so that the overall composition of the picture satisfies the predetermined composition requirements.
  • step S120 may be performed as step S120a and step S120b.
  • step S120a the geometric center of the photographing target is calculated.
  • step S120b the target range is determined with the geometric center as the golden section point.
  • the geometric center point is the geometric center point of the half-length portrait.
  • the geometric center point is the geometric center point of the full-body portrait.
  • the picture generation method may further include step S122.
  • step S122 a background optimization process is performed on a portion of the target range of the initial image other than the shooting target.
  • the background can be blurred.
  • other desired optimizations can be performed on the background.
  • the picture generation method Step S124 may also be included.
  • step S124 the picture on which the background optimization process has been performed is sharpened to obtain a final picture.
  • AI technology can be used to sharpen the background-optimized picture.
  • the picture generation method provided by the present disclosure is performed in real time during the process of the user using the photographing device to take pictures.
  • the picture generation method may further include step S100 .
  • step S100 it is identified whether the shooting function is enabled. When it is recognized that the shooting function is turned on, step S110 is performed. When it is not recognized that the shooting function is turned on, step S100 is continuously performed.
  • a front camera and a rear camera are two cameras, namely, a front camera and a rear camera.
  • the front camera is generally used for selfies.
  • the distance between the target and the front camera is relatively small, and the target occupies a large proportion of the picture.
  • the composition of the picture can be selected. mode is relatively simple.
  • the picture generation method provided by the present disclosure is preferably applicable to the case where the rear camera is used for shooting.
  • the picture generation method may further include step S100 and step S105.
  • step S100 it is identified whether the shooting function is enabled; when it is identified that the shooting function is enabled, step S105 is performed: it is determined whether the enabled camera is a rear camera; when the determination result in step S105 is yes, step S110 is performed.
  • step S105 when the judgment result of step S100 is yes, then step S105 is executed, and when the judgment result of step S100 is no, step S100 can be repeatedly executed. When the judgment result of step S105 is no, step S105 may be repeatedly performed.
  • step S100 and step S105 Through the two-step judgment of step S100 and step S105, it is possible to avoid running the program when it is not necessary, and save energy consumption.
  • a computer-readable storage medium is provided on which a computer-executable program is stored, and when the executable program is executed, at least one of the picture generation methods provided in the first aspect of the present disclosure can be implemented step.
  • Computer-readable storage media include but are not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read Only Memory, EEPROM) , Flash memory (FLASH) or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Video Disc (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes , disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
  • an electronic device comprising: a memory on which an executable program is stored; and, one or more processors capable of executing the executable program, such that the executable program is executed by the one or more processors.
  • One or more processors implement at least one step of the picture generation method provided according to the first aspect of the present disclosure.
  • the processor is a device with data processing capability, including but not limited to a central processing unit (Central Processing Unit, CPU) and the like.
  • the memory is a device with data storage capability, which includes but is not limited to RAM (more specifically, SDRAM (Synchronous Dynamic Random-access Memory, synchronous dynamic random access memory), DDR (Double Data Rate, double-rate synchronous dynamic random access memory)) etc.), ROM, EEPROM, FLASH.
  • the electronic device may further include an I/O interface (read-write interface), the I/O interface is connected between the processor and the memory, and can realize information exchange between the processor and the memory, It includes but is not limited to a data bus (Bus) and the like.
  • I/O interface read-write interface
  • the I/O interface is connected between the processor and the memory, and can realize information exchange between the processor and the memory, It includes but is not limited to a data bus (Bus) and the like.
  • the electronic device further includes an image acquisition apparatus and a display apparatus, and the image acquisition apparatus is configured to acquire an initial image.
  • the display device is configured to display the initial image and the final picture.
  • the image acquisition device may be a camera.
  • the electronic device may be an electronic device with a photographing function, such as a digital camera, a mobile phone, and a tablet computer.
  • the image acquisition device may include a rear camera.
  • the electronic device may also be provided with a front camera.
  • the specific type of the display device is not particularly limited.
  • the display device may be a liquid crystal display or an organic light emitting diode display.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

本公开涉及图像处理技术领域,并提供一种图片生成方法,包括:识别初始图像中的拍摄目标;根据拍摄目标确定初始图像中用作最终图片的目标范围,以使得拍摄目标位于最终图片中的预设位置;以及,以图片格式输出最终图片。本公开还提供一种计算机可读存储介质和一种电子设备。

Description

图片生成方法、计算机可读存储介质和电子设备
本公开要求在2020年7月31日提交中国专利局、申请号为202010763081.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本公开中。
技术领域
本公开涉及图像处理技术领域。
背景技术
随着微电子技术的飞速发展,很多电子设备上都具有图像拍摄功能。为了满足用户要求,应用市场上也出现了很多修图软件。
如何对图像获取装置获取到的图片进行处理、以获得效果更好的照片并提升用户体验,成为本领域亟待解决的技术问题。
发明内容
作为本公开的第一个方面,提供一种图片生成方法,包括:识别初始图像中的拍摄目标;根据拍摄目标确定初始图像中用作最终图片的目标范围,以使得拍摄目标位于最终图片中的预设位置;以及,以图片格式输出最终图片。
作为本公开的第二个方面,提供一种计算机可读存储介质,其上存储有计算机可执行程序,当计算机可执行程序被执行时能够实现本公开第一个方面提供给的图片生成方法。
作为本公开的第三个方面,提供一种电子设备,包括:存储器,其上存储有可执行程序;以及,一个或多个处理器,一个或多个处理器能够执行可执行程序,以使得一个或多个处理器实现本公开第一个方面提供的图片生成方法。
附图说明
图1是本公开提供的图片生成方法的一种流程图。
图2是本公开提供的图片生成方法的另一种流程图。
图3是图1和图2所示的步骤S120的一种流程图。
图4是本公开提供的图片生成方法的还一种流程图。
具体实施方式
为使本领域的技术人员更好地理解本公开的技术方案,下面结合附图对本公开提供的图片生成方法、计算机可读存储介质和电子设备进行详细描述。
在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。反之,提供实施例的目的在于使本公开透彻和完整,并将使本领域技术人员充分理解本公开的范围。
在不冲突的情况下,本公开各实施例及实施例中的各特征可相互组合。
如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。
本文所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其它特征、整体、步骤、操作、元件、组件和/或其群组。
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。
目前最常用的图片处理方法为,利用软件对用户已经拍摄完毕的照片进行处理。但是,用户使用相机或手机直接拍摄照片时,在没有掌握摄影技巧的前提下,图像质量往往不理想,降低了用户在拍照 时的用户体验。
有鉴于此,作为本公开的一个方面,提供一种图片生成方法。如图1所示,图片生成方法包括:步骤S110、步骤S120和步骤S130。
在步骤S110中,识别初始图像中的拍摄目标。
在步骤S120中,根据拍摄目标确定初始图像中用作最终图片的目标范围,以使得拍摄目标位于最终图片中的预设位置。
在步骤S130中,以图片格式输出最终图片。
需要指出的是,初始图像为摄像头所捕捉到的图像,但是该图像尚未被保存为图片格式。
在将图像保存为图片格式输出之前,先识别初始图像中的拍摄目标。在本公开中,要确保拍摄目标处于预设的位置处,确定了拍摄目标后再以该拍摄目标为基准确定最终图片中的其他部分。最后输出的图片格式的最终图片中,拍摄目标会位于预定的位置处。因此,用户结束图像拍摄动作后,最终得出的图片中,拍摄目标是符合预定构图需求的。也就是说,利用本公开提供的图片生成方法可以给用户即时反馈,提升用户体验。
在本公开中,对预设位置不做特殊的限定,只要能够满足预定的构图需求即可。作为一种可选的实施方式,最终图片的黄金分割点落入预设位置的范围内。也就是说,在最终图片中,拍摄图片的一部分是位于最终图片的黄金分割点上的,从而可以提高最终图片的美观程度。
为了进一步提高最终图片的美观程度,在一种可选的实施方式中,拍摄目标的几何中心与最终图片的黄金分割点重叠。
在本公开中,对拍摄目标不做特殊的限定。例如,拍摄目标可以是植物、建筑物、动物、人物等。作为一种可选实施方式,拍摄装置(例如,手机、数码相机等)配置有不同的识别模式(例如,植物识别模式、建筑物识别模式、人物识别模式、动物识别模式等),在拍摄前,将拍摄装置设定为相应的识别模式,可以自动识别初始图像中的拍摄目标。当拍摄目标为人物,在识别初始图像中的拍摄目标的步骤S110中,可以包括进行人物识别。
在进行人像拍摄时,又分为多种情况。例如,单人拍摄的情况、以及多人合影的情况。在单人拍摄的情况中,在初始图像中识别到的人物即为拍摄目标。
在多人合影的情况中(即,初始图像中的人物为多个时),可以将多个人物中特征最明显的一者作为拍摄目标。
当然,此处的“多人合影”又包括主动的多人合影、和被动的多人合影。所谓主动多人合影是指,多个人物有计划地拍摄集体照。而被动的多人合影可以指,为特定人物拍照时,误将他人录入镜头中。
下面介绍什么是“多人合影”中“特征最明显的一者”。对于主动的多人合影,各个合影参与者距离镜头的距离相差不多,并且多个参与者通常满足特定的排位。相应地,可以将每个参与者的排位作为特征,而特征最明显的一者可以是多个参与者中位于中间位置的一者。
对于被动的多人合影,通常被拍摄者距离拍摄镜头最近,误入镜头者距离拍摄镜头较远。也就是说,被拍摄者在初始图像中所占据的面积最大。因此,在本公开中,将人脸面积作为特征。人脸面积最大的一者,即为“特征最明显的一者”。
当然,有时主动合影时,各位参与者的排位也不规则。这种情况中,可以将人脸面积作为特征,将人脸面积最大的一者作为特征最明显的一者,即,人脸面积最大的一者为拍摄目标。在本公开中,为了避免漏拍人物,在一种可选的实施方式中,在根据拍摄目标确定初始图像中用作最终图片的范围的步骤中,所有人物的人脸均位于目标范围内。这样既可以避免漏拍人物,又可以确保距离镜头最近的人物(即,拍摄目标)处于预设位置处,使得图片的整体构图满足预定构图要求。
如上文中所述,拍摄目标的几何中心可以与最终图片的黄金分割点重叠。因此,当拍摄目标为人物时,可以根据人像的轮廓计算人像的几何中心点,将该几何中心点与黄金分割点重叠,来确定目标范围。具体地,如图3所示,步骤S120可以被执行为步骤S120a和步骤S120b。
在步骤S120a中,计算拍摄目标的几何中心。
在步骤S120b中,以几何中心为黄金分割点,确定目标范围。
在为人物拍照时,还可以分为全身照和半身照。当初始图像中的拍摄目标为半身人像时,几何中心点为半身人像的几何中心点。当初始图像中的拍摄目标为全身人像时,几何中心点为全身人像的几何中心点。
为了提高最终图片的最终效果,作为一种可选实施方式,在输出最终图片之前,如图2所示,图片生成方法还可包括步骤S122。
在步骤S122中,对初始图像的目标范围内除了拍摄目标之外的部分进行背景优化处理。
在本公开中,对如何进行“背景优化处理”不做特殊的限定。例如,可以对背景进行虚化。或者可以对背景进行其他所需要的优化处理。
为了进一步提高最终图片的效果,在一种可选实施方式中,在对初始图像的目标范围内除了拍摄目标之外的部分进行背景优化处理的步骤以及输出最终图片的步骤之间,图片生成方法还可包括步骤S124。
在步骤S124中,对进行了背景优化处理的图片进行清晰化处理,以获得最终图片。
在本公开中,对如何进行清晰化处理不做特殊的限定。例如,可以利用AI技术对背景优化后的图片进行清晰化处理。
本公开提供的图片生成方法是在用户使用拍摄设备进行拍摄的过程中实时进行的,为了提高实时性,在一种可选实施方式中,如图2所示,图片生成方法还可以包括步骤S100。
在步骤S100中,识别拍摄功能是否开启。当识别到拍摄功能开启时,方执行步骤S110。当未识别到拍摄功能开启时,持续执行步骤S100。
目前,诸如手机、平板电脑等电子设备都包括两个摄像头,即,前置摄像头和后置摄像头。前置摄像头一般用于自拍,在利用前置摄像头进行取景拍摄时,被拍摄目标与前置摄像头之间的距离相对较小, 且被拍摄目标在图片中所占比例较大,可选择的构图模式比较单一。在利用后置摄像头进行取景拍摄时,后置摄像头与拍摄目标之间的距离相对较大,可选择的构图模式较多。因此,本公开提供的图片生成方法优选适用于后置摄像头进行拍摄的情况。
相应地,如图4中所示,图片生成方法还可以包括步骤S100和步骤S105。
在步骤S100中,识别拍摄功能是否开启;当识别到拍摄功能开启时,执行步骤S105:判断开启的摄像头是否为后置摄像头;当步骤S105的判断结果为是时,方执行步骤S110。
需要指出的是,当步骤S100的判断结果为是时,方执行步骤S105,当步骤S100的判断结果为否时,可重复执行步骤S100。当步骤S105的判断结果为否时,可以重复执行步骤S105。
通过步骤S100和步骤S105两步判断,可以避免程序在非必要时运行,节约能耗。
作为本公开的第二个方面,提供一种计算机可读存储介质,其上存储有计算机可执行程序,当可执行程序被执行时能够实现本公开第一个方面提供的图片生成方法的至少一个步骤。
计算机可读存储介质包括但不限于随机访问存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、带电可擦可编程只读存储器(Electrically Erasable Programmable Read Only Memory,EEPROM)、闪存(FLASH)或其它存储器技术、紧凑型光盘只读储存器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Video Disc,DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其它传输机制之类的调制数据信号中的其它数据,并且可包括任何信息递送介质。
作为本公开的第三个方面,提供一种电子设备,包括:存储器,其上存储有可执行程序;以及,一个或多个处理器,一个或多个处理 器能够执行可执行程序,以使得一个或多个处理器实现根据本公开第一个方面提供的图片生成方法的至少一个步骤。
其中,处理器为具有数据处理能力的器件,其包括但不限于中央处理器(Central Processing Unit,CPU)等。存储器为具有数据存储能力的器件,其包括但不限于RAM(更具体如SDRAM(Synchronous Dynamic Random-access Memory,同步动态随机存取内存)、DDR(Double Data Rate,双倍速率同步动态随机存储器)等)、ROM、EEPROM、FLASH。
在一种可选实施方式中,电子设备还可以包括I/O接口(读写接口),该I/O接口连接在处理器与存储器之间,能实现处理器与存储器之间的信息交互,其包括但不限于数据总线(Bus)等。
在本公开中,对如何获得初始图像并不做特殊的限定。例如,可以利用外接摄像头来获取初始图像。作为一种可选实施方式,电子设备还包括图像获取装置和显示装置,图像获取装置被配置为获取初始图像。显示装置被配置为显示初始图像和最终图片。
在本公开中,图像获取装置可以是摄像头。电子设备可以是数码相机、手机、平板电脑等具有拍照功能的电子设备。
进一步地,作为一种可选实施方式,图像获取装置可以包括后置摄像头。当然,电子设备上还可以设置有前置摄像头。
在本公开中,对显示装置的具体类型不做特殊的限定。例如,显示装置可以是液晶显示屏或者有机发光二极管显示屏。
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其它实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。

Claims (14)

  1. 一种图片生成方法,包括:
    识别初始图像中的拍摄目标;
    根据所述拍摄目标确定所述初始图像中用作最终图片的目标范围,以使得所述拍摄目标位于所述最终图片中的预设位置;以及
    以图片格式输出所述最终图片。
  2. 根据权利要求1所述的图片生成方法,其中,所述最终图片的黄金分割点落入所述预设位置的范围内。
  3. 根据权利要求2所述的图片生成方法,其中,所述拍摄目标的几何中心与所述最终图片的所述黄金分割点重叠;以及
    根据所述拍摄目标确定所述初始图像中用作所述最终图片的所述目标范围,包括:
    计算所述拍摄目标的所述几何中心;以及
    确定所述几何中心为所述黄金分割点,并确定所述目标范围。
  4. 根据权利要求1至3中任意一项所述的图片生成方法,其中,所述拍摄目标为人物;以及
    识别所述初始图像中的所述拍摄目标,包括:进行人物识别。
  5. 根据权利要求4所述的图片生成方法,其中,响应于所述初始图像包括多个人物,确定所述多个人物中的特征最明显的一个作为所述拍摄目标。
  6. 根据权利要求5所述的图片生成方法,其中,所述多个人物中的特征最明显的一个为在所述初始图像中所述多个人物中人脸的面积最大的一个。
  7. 根据权利要求6所述的图片生成方法,其中,根据所述拍摄 目标确定所述初始图像中用作所述最终图片的所述目标范围,包括:
    确定所述多个人物的人脸均位于所述目标范围内。
  8. 根据权利要求1至3中任意一项所述的图片生成方法,在以所述图片格式输出所述最终图片之前,还包括:
    对所述初始图像的所述目标范围内除了所述拍摄目标之外的部分进行背景优化处理。
  9. 根据权利要求8所述的图片生成方法,在对所述初始图像的所述目标范围内除了所述拍摄目标之外的部分进行背景优化处理之后,以所述图片格式输出所述最终图片之前,还包括:
    对进行了背景优化处理的图片进行清晰化处理,以获得所述最终图片。
  10. 根据权利要求1至3中任意一项所述的图片生成方法,在识别所述初始图像中的所述拍摄目标之前,还包括:确定拍摄功能开启。
  11. 根据权利要求1至3中任意一项所述的图片生成方法,在识别所述初始图像中的所述拍摄目标之前,还包括:确定开启摄像功能的摄像头为后置摄像头。
  12. 一种计算机可读存储介质,其上存储有计算机可执行程序,当所述计算机可执行程序被执行时能够实现根据权利要求1至11中任意一项所述的图片生成方法。
  13. 一种电子设备,包括:
    存储器,其上存储有可执行程序;以及
    一个或多个处理器,所述一个或多个处理器能够执行所述可执行程序,以使得所述一个或多个处理器实现根据权利要求1至11中 任意一项所述的图片生成方法。
  14. 根据权利要求13所述的电子设备,还包括:
    图像获取装置,被配置为获取初始图像;和
    显示装置,被配置为显示所述初始图像和所述最终图片。
PCT/CN2021/108867 2020-07-31 2021-07-28 图片生成方法、计算机可读存储介质和电子设备 WO2022022557A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010763081.6 2020-07-31
CN202010763081.6A CN114095642A (zh) 2020-07-31 2020-07-31 图片生成方法、计算机可读存储介质和电子设备

Publications (1)

Publication Number Publication Date
WO2022022557A1 true WO2022022557A1 (zh) 2022-02-03

Family

ID=80037139

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108867 WO2022022557A1 (zh) 2020-07-31 2021-07-28 图片生成方法、计算机可读存储介质和电子设备

Country Status (2)

Country Link
CN (1) CN114095642A (zh)
WO (1) WO2022022557A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601889A (zh) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 一种移动终端的拍照方法及装置
US20160373655A1 (en) * 2015-06-18 2016-12-22 Canon Kabushiki Kaisha Image pickup control apparatus, control method therefor, and recording medium
CN107786812A (zh) * 2017-10-31 2018-03-09 维沃移动通信有限公司 一种拍摄方法、移动终端及计算机可读存储介质
CN109981967A (zh) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 用于智能机器人的拍摄方法、装置、终端设备及介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601889A (zh) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 一种移动终端的拍照方法及装置
US20160373655A1 (en) * 2015-06-18 2016-12-22 Canon Kabushiki Kaisha Image pickup control apparatus, control method therefor, and recording medium
CN107786812A (zh) * 2017-10-31 2018-03-09 维沃移动通信有限公司 一种拍摄方法、移动终端及计算机可读存储介质
CN109981967A (zh) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 用于智能机器人的拍摄方法、装置、终端设备及介质

Also Published As

Publication number Publication date
CN114095642A (zh) 2022-02-25

Similar Documents

Publication Publication Date Title
US7526106B1 (en) Method of tracking images captured with a digital camera
WO2019109801A1 (zh) 拍摄参数的调整方法、装置、存储介质及移动终端
WO2019192351A1 (zh) 短视频拍摄方法、装置及电子终端
ES2688122T3 (es) Método y dispositivo de procesamiento de imagen
US20120300092A1 (en) Automatically optimizing capture of images of one or more subjects
US20160188635A1 (en) Automated image cropping and sharing
US9917892B2 (en) Method, device, and system for AD-HOC resource selection
US11289078B2 (en) Voice controlled camera with AI scene detection for precise focusing
BR112021007094A2 (pt) método de processamento de imagem, aparelho, e dispositivo
WO2018228330A1 (zh) 实现人脸清晰的对焦方法、装置和计算机设备
US11785331B2 (en) Shooting control method and terminal
WO2016197657A1 (zh) 一种拍照处理方法和装置
WO2019119986A1 (zh) 图像处理方法、装置、计算机可读存储介质和电子设备
US20140111638A1 (en) Capturing Images after Sufficient Stabilization of a Device
CN105430269B (zh) 一种应用于移动终端的拍照方法及装置
WO2014161386A1 (zh) 一种摄像设备及其实现拍照的方法
CN105915792A (zh) 拍照方法及装置
WO2020082827A1 (zh) 图像拍摄方法、装置、终端及计算机存储介质
WO2024041394A1 (zh) 拍摄方法及相关装置
CN103780839A (zh) 一种拍照方法及终端
WO2021218536A1 (zh) 一种高动态范围图像合成方法和电子设备
WO2022022557A1 (zh) 图片生成方法、计算机可读存储介质和电子设备
CN108259767B (zh) 图像处理方法、装置、存储介质及电子设备
CN114079726B (zh) 一种拍摄方法及设备
CN107155000B (zh) 一种拍照行为分析方法、装置及移动终端

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27/06/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21849136

Country of ref document: EP

Kind code of ref document: A1