CN111866392A - Shooting prompting method, device, storage medium and electronic device - Google Patents
Shooting prompting method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN111866392A CN111866392A CN202010760732.6A CN202010760732A CN111866392A CN 111866392 A CN111866392 A CN 111866392A CN 202010760732 A CN202010760732 A CN 202010760732A CN 111866392 A CN111866392 A CN 111866392A
- Authority
- CN
- China
- Prior art keywords
- shooting
- objects
- scene image
- photographing
- target
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请属于图像处理技术领域,尤其涉及一种拍摄提示方法、装置、存储介质及电子设备。The present application belongs to the technical field of image processing, and in particular, relates to a photographing prompting method, device, storage medium and electronic device.
背景技术Background technique
随着手机的摄像头功能的提升,越来越多的用户选择使用手机的摄像头拍摄图片,在拍照过程中,如何能快速准确的定位到所需的物体,是影响用户体验的主要因素。With the improvement of the camera function of the mobile phone, more and more users choose to use the camera of the mobile phone to take pictures. In the process of taking pictures, how to quickly and accurately locate the desired object is the main factor affecting the user experience.
镜头变焦技术是指通过改变镜头的焦距等方式,改变镜头内的目标景物在被拍摄的图像中的大小。变焦方式分为:光学变焦(optical zoom)和数码变焦(digital zoom)。目前在一些高端旗舰产品,都会配备高倍的光学变焦摄像头和/或高倍的数码变焦摄像头,用以实现远距离拍摄变焦需要。然而,在实际应用当中,每次选择待变焦的图像时,都需要用户先对准对象,然后再调节变焦倍数直至满意为止,不仅步骤繁琐还需要拍摄者有较高的拍摄技巧,拍摄效率较低。Lens zoom technology refers to changing the size of the target scene in the lens in the captured image by changing the focal length of the lens. The zoom mode is divided into: optical zoom (optical zoom) and digital zoom (digital zoom). At present, some high-end flagship products are equipped with a high-magnification optical zoom camera and/or a high-power digital zoom camera to achieve the need for long-distance shooting and zooming. However, in practical applications, each time an image to be zoomed is selected, the user needs to first aim at the object, and then adjust the zoom factor until they are satisfied, which is not only cumbersome, but also requires the photographer to have high shooting skills, and the shooting efficiency is relatively high. Low.
发明内容SUMMARY OF THE INVENTION
本申请提供一种拍摄提示方法、装置、存储介质及电子设备,可以针对拍摄对象自动生成合适的变焦倍数,从而提升拍摄效率。The present application provides a photographing prompting method, device, storage medium and electronic device, which can automatically generate an appropriate zoom factor for a photographed object, thereby improving photographing efficiency.
第一方面,本申请实施例提供一种拍摄提示方法,包括:In a first aspect, an embodiment of the present application provides a method for prompting photography, including:
接收拍照指令,根据所述拍照指令获取摄像头当前对应的场景图像;receiving a photographing instruction, and obtaining a scene image currently corresponding to the camera according to the photographing instruction;
识别所述场景图像中的多个拍摄对象,并分别确定所述多个拍摄对象的分类信息;Identifying multiple shooting objects in the scene image, and determining the classification information of the multiple shooting objects respectively;
根据所述分类信息分别计算所述多个拍摄对象的目标变焦倍数信息;Calculate the target zoom factor information of the multiple shooting objects according to the classification information;
分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将所述标签在所述场景图像中的多个拍摄对象位置处作为预览图像进行显示。A tag containing the target zoom factor information corresponding to the shooting object is respectively generated, and the tag is displayed as a preview image at the positions of the multiple shooting objects in the scene image.
第二方面,本申请实施例提供一种拍摄提示装置,包括:In a second aspect, an embodiment of the present application provides a photographing prompting device, including:
获取模块,用于接收拍照指令,根据所述拍照指令获取摄像头当前对应的场景图像;an acquisition module, configured to receive a photographing instruction, and acquire a scene image currently corresponding to the camera according to the photographing instruction;
识别模块,用于识别所述场景图像中的多个拍摄对象,并分别确定所述多个拍摄对象的分类信息;an identification module, configured to identify a plurality of shooting objects in the scene image, and respectively determine the classification information of the multiple shooting objects;
计算模块,用于根据所述分类信息分别计算所述多个拍摄对象的目标变焦倍数信息;a calculation module, configured to respectively calculate the target zoom factor information of the plurality of shooting objects according to the classification information;
生成模块,用于分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将所述标签在所述场景图像中的多个拍摄对象位置处作为预览图像进行显示。The generating module is configured to respectively generate a label including the target zoom factor information corresponding to the shooting object, and display the label as a preview image at the positions of the shooting objects in the scene image.
第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的拍摄提示方法。In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is made to execute the above-mentioned shooting prompting method.
第四方面,本申请实施例提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
接收拍照指令,根据所述拍照指令获取摄像头当前对应的场景图像;receiving a photographing instruction, and obtaining a scene image currently corresponding to the camera according to the photographing instruction;
识别所述场景图像中的多个拍摄对象,并分别确定所述多个拍摄对象的分类信息;Identifying multiple shooting objects in the scene image, and determining the classification information of the multiple shooting objects respectively;
根据所述分类信息分别计算所述多个拍摄对象的目标变焦倍数信息;Calculate the target zoom factor information of the multiple shooting objects according to the classification information;
分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将所述标签在所述场景图像中的多个拍摄对象位置处作为预览图像进行显示。A tag containing the target zoom factor information corresponding to the shooting object is respectively generated, and the tag is displayed as a preview image at the positions of the multiple shooting objects in the scene image.
本申请实施例提供的拍摄提示方法可以接收拍照指令,根据拍照指令获取摄像头当前对应的场景图像,识别场景图像中的多个拍摄对象,并分别确定多个拍摄对象的分类信息,根据分类信息分别计算多个拍摄对象的目标变焦倍数信息,分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将标签在场景图像中的多个拍摄对象位置处作为预览图像进行显示。本申请实施例可以识别出场景图像中的拍摄对象,为每个拍摄对象计算其相应的目标变焦倍数信息,并以标签的形式提示用户,从而在用户需要变焦拍摄时,有效提升了拍摄效率。The shooting prompting method provided by the embodiment of the present application can receive a shooting instruction, obtain a scene image currently corresponding to the camera according to the shooting instruction, identify multiple shooting objects in the scene image, and determine the classification information of the multiple shooting objects respectively. Calculate target zoom factor information of multiple shooting objects, respectively generate tags including target zoom multiple information corresponding to the shooting objects, and display the tags as preview images at positions of multiple shooting objects in the scene image. The embodiment of the present application can identify the shooting object in the scene image, calculate the corresponding target zoom factor information for each shooting object, and prompt the user in the form of a tag, thereby effectively improving the shooting efficiency when the user needs zoom shooting.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1为本申请实施例提供的拍摄提示方法的一种流程示意图。FIG. 1 is a schematic flowchart of a photographing prompt method provided by an embodiment of the present application.
图2为本申请实施例提供的拍摄提示方法的另一流程示意图。FIG. 2 is another schematic flowchart of a photographing prompting method provided by an embodiment of the present application.
图3为本申请实施例提供的拍摄提示方法的一种场景示意图。FIG. 3 is a schematic diagram of a scene of a shooting prompt method provided by an embodiment of the present application.
图4为本申请实施例提供的拍摄提示装置的一种结构示意图。FIG. 4 is a schematic structural diagram of a photographing prompting device provided by an embodiment of the present application.
图5为本申请实施例提供的拍摄提示装置的另一结构示意图。FIG. 5 is another schematic structural diagram of a photographing prompting device provided by an embodiment of the present application.
图6为本申请实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图7为本申请实施例提供的电子设备的另一结构示意图。FIG. 7 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols performed by one or more computers, unless otherwise stated. Accordingly, the steps and operations will be referred to several times as being performed by a computer, which reference herein includes operations by a computer processing unit of electronic signals representing data in a structured format. This operation transforms the data or maintains it in a location in the computer's memory system, which can be reconfigured or otherwise change the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations of the memory that have specific characteristics defined by the data format. However, the principle of the present application is described by the above text, which is not meant to be a limitation, and testers in the art will understand that various steps and operations described below can also be implemented in hardware.
本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first," "second," and "third," etc. in this application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include unlisted steps or modules, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
请参阅图1,图1为本申请实施例提供的拍摄提示方法的一种流程示意图。本申请实施例提供的拍摄提示方法应用于电子设备,具体流程可以如下:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a shooting prompt method provided by an embodiment of the present application. The photographing prompting method provided in the embodiment of the present application is applied to an electronic device, and the specific process may be as follows:
步骤101,接收拍照指令,根据拍照指令获取摄像头当前对应的场景图像。Step 101: Receive a photographing instruction, and obtain a scene image currently corresponding to the camera according to the photographing instruction.
在本发明实施例当中,上述场景图像可以为电子设备对当前场景进行拍照获取,具体的,电子设备接收到用户输入的拍照指令后,可以启动摄像头,通过所述摄像头对当前场景拍摄以得到场景图像。其中,电子设备接收用户输入的拍照指令,可以为接收用户通过电子设备上预设按钮或已有的按钮中一个按钮或者多个按钮的组合发出的拍照指令;或者,接收用户通过电子设备触摸屏发出的拍照请求信息(比如点击屏幕中的“拍照”按钮),电子设备接收到用户输入的拍照指令后,通过摄像头获取场景图像,并保存所述图像,为后续的处理做准备。In the embodiment of the present invention, the above-mentioned scene image may be obtained by the electronic device taking pictures of the current scene. Specifically, after receiving the photographing instruction input by the user, the electronic device may start the camera, and use the camera to take pictures of the current scene to obtain the scene. image. Wherein, the electronic device receives a photographing instruction input by the user, which may be a photographing instruction issued by the user through a preset button on the electronic device or a button or a combination of multiple buttons in the existing buttons; or, receiving a user through the touch screen of the electronic device. After receiving the photographing instruction input by the user, the electronic device obtains the scene image through the camera, and saves the image to prepare for subsequent processing.
在一实施例中,电子设备可以通过内置的摄像头进行拍摄以得到原始图像,具体可以包括:电子设备接收对内置摄像头的启动指令,响应该指令并启动该内置摄像头,在摄像头处于开启状态过程中,通过预览区域预览电子设备的外部环境,以获得预览到的场景的图像。在显示预览图像的过程中,镜头在马达的驱动下移动,被拍摄的物体经过镜头在图像传感器上成像。图像传感器通过光-电转换将光信号转换为电信号输给图像处理电路进行后续处理。其中,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(ImageSignal Processing,图像信号处理)管线的各种处理单元。In one embodiment, the electronic device can shoot through the built-in camera to obtain the original image, which may specifically include: the electronic device receives a start-up instruction for the built-in camera, responds to the instruction and starts the built-in camera, and when the camera is in the on state process. , and preview the external environment of the electronic device through the preview area to obtain an image of the previewed scene. In the process of displaying the preview image, the lens moves under the drive of the motor, and the photographed object is imaged on the image sensor through the lens. The image sensor converts optical signals into electrical signals through optical-electrical conversion and outputs them to the image processing circuit for subsequent processing. The image processing circuit may be implemented by hardware and/or software components, and may include various processing units that define an ISP (Image Signal Processing, image signal processing) pipeline.
在一实施例中,上述内置摄像头可以为单摄像头也可以为双摄像头,比如,双摄像头可以包括广角摄像头和长焦摄像头,其中,可以将广角摄像头作为电子设备的主摄像头,长焦摄像头作为副摄像头。当需要拍摄电子设备当前所在场景的图像时,该电子设备可以只通过其广角摄像模组来进行拍摄,也可以通过其广角摄像头与长焦摄像头共同拍摄。在其他实施例中还可以为三摄像头等等,本发明对此不作进一步限定。In one embodiment, the above-mentioned built-in camera may be a single camera or a dual camera. For example, the dual camera may include a wide-angle camera and a telephoto camera, wherein the wide-angle camera may be used as the main camera of the electronic device, and the telephoto camera may be used as a secondary camera. Camera. When it is necessary to shoot an image of the scene where the electronic device is currently located, the electronic device can shoot only through its wide-angle camera module, or can shoot through its wide-angle camera and telephoto camera together. In other embodiments, it may also be three cameras, etc., which is not further limited in the present invention.
步骤102,识别场景图像中的多个拍摄对象,并分别确定多个拍摄对象的分类信息。
具体的,在本申请实施例中可以对场景图像中所有的物体进行识别,比如在预设的图像库里存储着多种物体以及其对应的多种角度拍摄的图像,然后分别将上述场景图像中的物体进行比对,当比对的相似度大于预设值时就可以确定该物体与图像库中的样本对应,也就是说该物体可以识别出来。若比对的相似度小于预设值,则确定该物体不能被识别。因此可以将场景图像中可以被识别出来的物体作为拍摄对象,而其余物体则不作为拍摄对象。也即识别所述场景图像中的多个拍摄对象的步骤包括:Specifically, in this embodiment of the present application, all objects in a scene image can be identified, for example, a preset image library stores a variety of objects and images taken from a variety of corresponding angles, and then the above scene images are respectively When the similarity of the comparison is greater than the preset value, it can be determined that the object corresponds to the sample in the image library, that is to say, the object can be identified. If the compared similarity is less than the preset value, it is determined that the object cannot be recognized. Therefore, the objects that can be recognized in the scene image can be taken as the shooting objects, and the other objects are not taken as the shooting objects. That is, the step of recognizing multiple shooting objects in the scene image includes:
识别所述场景图像中的所有物体;identify all objects in the scene image;
根据预设图像库选取所述物体当中可作为拍摄主体的目标物体,并将所述目标物体作为拍摄对象。According to the preset image library, a target object that can be used as a shooting subject among the objects is selected, and the target object is used as a shooting object.
上述在场景图像中识别物体的过程可以包括:一、对图像的预处理,即主要进行图像处理,包括对待拍摄图像进行模数转化处理,二值化处理,图像的平滑、变换、增强、恢复或滤波等处理;二、对图像的特征抽取和选择,例如,一幅64×64的图像可以得到4096个数据,对这4096个数据在测量空间的原始数据通过变换可以获得在特征空间最能反映分类本质的特征;三、对获得的图像的特征进行分类,确定该图像的类别。在图像识别通常包括轮廓识别、特征识别、色彩识别、材质识别、物体识别等。在轮廓识别中,主要根据颜色、亮度等信息得出物体的轮廓,然后依据轮廓所对应的数据来确定轮廓的内容是什么物体或什么特征。The above process of recognizing objects in a scene image may include: 1. Image preprocessing, that is, image processing is mainly performed, including analog-to-digital conversion processing, binarization processing, image smoothing, transformation, enhancement, and restoration of the image to be captured. or filtering and other processing; 2. Extracting and selecting features of the image, for example, a 64×64 image can obtain 4096 data, and the original data in the measurement space of these 4096 data can be obtained by transforming the original data in the feature space. The features that reflect the nature of the classification; 3. Classify the features of the obtained image to determine the category of the image. Image recognition usually includes contour recognition, feature recognition, color recognition, material recognition, object recognition, etc. In the contour recognition, the contour of the object is mainly obtained according to information such as color and brightness, and then the content of the contour is determined according to the data corresponding to the contour.
在另一实施例中,还可以基于用户的拍摄习惯识别拍摄对象,比如获取用户相册里面拍摄的历史照片,通过学习分析可知用户比较感兴趣的拍摄对象,然后直接在场景图像当中查找与上述用户感兴趣的拍摄对象相似度较高的对象,即可确定为该场景图像中的拍摄对象。In another embodiment, the shooting objects can also be identified based on the user's shooting habits, such as obtaining historical photos taken in the user's album, learning and analyzing the shooting objects that the user is more interested in, and then directly searching the scene images for the shooting objects that are related to the above-mentioned users. An object with a high similarity of the photographed object of interest can be determined as the photographed object in the scene image.
需要说明的是,上述拍摄对象可以为一个或多个,在确定拍摄对象后进一步确定每个拍摄对象对应的种类信息。比如种类可以划分为:人物、动物、植物、建筑物等等。其中当上述拍摄对象中有相同类型的对象时,可以通过标记来进行区分,比如当前场景中有两棵树,就可以分别标记为树1和树2。It should be noted that, the above-mentioned photographing objects may be one or more, and after the photographing objects are determined, the category information corresponding to each photographing object is further determined. For example, the types can be divided into: people, animals, plants, buildings and so on. When there are objects of the same type in the above-mentioned shooting objects, they can be distinguished by marking. For example, if there are two trees in the current scene, they can be marked as tree 1 and tree 2 respectively.
步骤103,根据分类信息分别计算多个拍摄对象的目标变焦倍数信息。Step 103: Calculate the target zoom factor information of the multiple shooting objects according to the classification information.
在实际使用当中,即使是在相同距离的两个不同种类的对象,用户在调焦往往也会使用不同的变焦倍数,比如用户在拍100m以外的一个人时就会将变焦倍数调至较高的水平,以便看清人物轮廓,而若是拍摄100m以外的一栋房子时,则不会将变焦倍数调至很高,以便看清房子的整体情况。因此不同种类的拍摄对象经过变焦之后在预览界面所呈现的比例也是不相同的。所以在该实施例中,可以先根据拍摄对象的分类信息计算该对象最佳的预览尺寸,然后再根据该拍摄对象的最佳预览尺寸计算经过多少倍变焦后可达到一样的效果,也即计算该拍摄对象的目标变焦倍数信息。In actual use, even for two different types of objects at the same distance, users often use different zoom magnifications when adjusting the focus. For example, when a user shoots a person 100m away, they will adjust the zoom magnification to a higher one. level, so as to see the outline of the person clearly, and if you shoot a house 100m away, the zoom factor will not be adjusted to a high level to see the overall situation of the house. Therefore, the proportions of different types of photographic objects displayed on the preview interface after zooming are also different. Therefore, in this embodiment, the optimal preview size of the object can be calculated according to the classification information of the object, and then the optimal preview size of the object can be calculated according to the optimal preview size of the object to achieve the same effect after zooming, that is, calculating Information about the target zoom factor of the subject.
在另一实施例中,还可以获取上述拍摄对象的距离信息,比如通过景深摄像头获取,然后在根据该拍摄对象的距离信息计算拍摄对象的变焦倍数信息,并在得到拍摄对象的变焦倍数的基础上再根据其分类信息进行相应的调整,比如A分类将计算得到的变焦倍数乘以1.2,B分类将计算得到的变焦倍数乘以0,C分类将计算得到的变焦倍数乘以0.8等,并将最终的变焦倍数作为目标变焦倍数。In another embodiment, the distance information of the above-mentioned shooting object can also be obtained, for example, obtained by a depth-of-field camera, and then the zoom factor information of the shooting object is calculated according to the distance information of the shooting object, and the zoom factor of the shooting object is obtained on the basis of Then make corresponding adjustments according to its classification information. For example, the A classification will multiply the calculated zoom factor by 1.2, the B classification will multiply the calculated zoom factor by 0, and the C classification will multiply the calculated zoom factor by 0.8, etc. Take the final zoom factor as the target zoom factor.
步骤104,分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将标签在场景图像中的多个拍摄对象位置处作为预览图像进行显示。
分别对上述多个拍摄对象进行上述操作,即可得到每一个拍摄对象的最佳变焦倍数,也即目标变焦倍数。为使方案更加直观,本实施例还可以直接将拍摄对象的目标变焦倍数以标签的形式放置在场景图像中,比如设置在对应的拍摄对象位置,并作为预览图像进行显示。By respectively performing the above operations on the above-mentioned multiple photographing objects, the optimal zoom factor of each photographing object, that is, the target zoom factor, can be obtained. To make the solution more intuitive, in this embodiment, the target zoom factor of the shooting object may be directly placed in the scene image in the form of a label, for example, set at the corresponding shooting object position, and displayed as a preview image.
在一实施例中,在场景图像中生成多个标签后,还可以进一步根据屏幕当前的分辨率对该图像进行降采样处理,然后将降采样处理后的图像显示至电子设备的屏幕当中。其中根据屏幕当前的分辨率对图像进行降采样处理,使得合最终预览图像的分辨率与屏幕当前的分辨率一致,在进行展示时,也不会降低其显示效果。In one embodiment, after multiple tags are generated in the scene image, the image may be further down-sampled according to the current resolution of the screen, and then the down-sampled image is displayed on the screen of the electronic device. The image is down-sampled according to the current resolution of the screen, so that the resolution of the final preview image is consistent with the current resolution of the screen, and its display effect will not be reduced during display.
进一步的,由于上述多个拍摄对象所分别对应目标变焦倍数可能相同也可能不同,比如距离镜头比较近的拍摄对象对应的变焦倍数都比较小,距离镜头较远的拍摄对象对应的变焦倍数则都比较大,因此在一实施例中,还可以将当前场景图像当中具有相同目标变焦倍数的拍摄对象进行关联。比如在场景图像中生成每个拍摄对象对应的标签后,将包含目标变焦倍数相同的标签对应的拍摄对象进行连接,也可以将两个具备相同变焦倍数的标签进行连接。在其他实施例中,还可以通过设置相同标签颜色的方式进行提示,比如标签2X均设为红色,标签5X均设为黄色,标签10X均设为蓝色等等。Further, since the target zoom ratios corresponding to the above-mentioned multiple subjects may be the same or different, for example, the zoom ratios corresponding to the subjects closer to the lens are relatively small, and the zoom ratios corresponding to the subjects farther away from the lens are all the same. It is relatively large, so in an embodiment, the shooting objects with the same target zoom factor in the current scene image can also be associated. For example, after a label corresponding to each object is generated in the scene image, the objects corresponding to the label containing the same target zoom factor are connected, or two labels with the same zoom factor can be connected. In other embodiments, prompts may also be provided by setting the same label color, for example, labels 2X are all set to red, labels 5X are all set to yellow, labels 10X are all set to blue, and so on.
由上可知,本申请实施例提供的拍摄提示方法可以接收拍照指令,根据拍照指令获取摄像头当前对应的场景图像,识别场景图像中的多个拍摄对象,并分别确定多个拍摄对象的分类信息,根据分类信息分别计算多个拍摄对象的目标变焦倍数信息,分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将标签在场景图像中的多个拍摄对象位置处作为预览图像进行显示。本申请实施例可以识别出场景图像中的拍摄对象,为每个拍摄对象计算其相应的目标变焦倍数信息,并以标签的形式提示用户,从而在用户需要变焦拍摄时,有效提升了拍摄效率。As can be seen from the above, the shooting prompt method provided by the embodiment of the present application can receive a shooting instruction, obtain a scene image currently corresponding to the camera according to the shooting instruction, identify multiple shooting objects in the scene image, and determine the classification information of the multiple shooting objects respectively, According to the classification information, the target zoom factor information of the multiple shooting objects is calculated respectively, and the tags including the target zoom multiple information corresponding to the shooting objects are respectively generated, and the tags are displayed as preview images at the positions of the multiple shooting objects in the scene image. The embodiment of the present application can identify the shooting object in the scene image, calculate the corresponding target zoom factor information for each shooting object, and prompt the user in the form of a tag, thereby effectively improving the shooting efficiency when the user needs zoom shooting.
下面将在上述实施例描述的方法基础上,对本申请的拍摄提示方法做进一步介绍。参阅图2,图2为本申请实施例提供的拍摄提示方法的另一流程示意图,该拍摄提示方法包括:On the basis of the methods described in the foregoing embodiments, the photographing prompting method of the present application will be further introduced below. Referring to FIG. 2, FIG. 2 is another schematic flowchart of a shooting prompt method provided by an embodiment of the present application, and the shooting prompt method includes:
步骤201,接收拍照指令,根据拍照指令获取摄像头当前对应的场景图像。Step 201: Receive a photographing instruction, and obtain a scene image currently corresponding to the camera according to the photographing instruction.
在本发明实施例当中,上述场景图像可以为电子设备对当前场景进行拍照获取,具体的,电子设备接收到用户输入的拍照指令后,可以启动摄像头,通过所述摄像头对当前场景拍摄以得到场景图像。In the embodiment of the present invention, the above-mentioned scene image may be obtained by the electronic device taking pictures of the current scene. Specifically, after receiving the photographing instruction input by the user, the electronic device may start the camera, and use the camera to take pictures of the current scene to obtain the scene. image.
步骤202,识别场景图像中的多个拍摄对象,并分别确定多个拍摄对象的分类信息。Step 202: Identify multiple shooting objects in the scene image, and determine classification information of the multiple shooting objects respectively.
具体的,在本申请实施例中可以对场景图像中所有的物体进行识别,比如在预设的图像库里存储着多种物体以及其对应的多种角度拍摄的图像,然后分别将上述场景图像中的物体进行比对,当比对的相似度大于预设值时就可以确定该物体与图像库中的样本对应,也就是说该物体可以识别出来。若比对的相似度小于预设值,则确定该物体不能被识别。因此可以将场景图像中可以被识别出来的物体作为拍摄对象,而其余物体则不作为拍摄对象。在确定拍摄对象后进一步确定每个拍摄对象对应的种类信息。比如种类可以划分为:人物、动物、植物、建筑物等等。Specifically, in this embodiment of the present application, all objects in a scene image can be identified, for example, a preset image library stores a variety of objects and images taken from a variety of corresponding angles, and then the above scene images are respectively When the similarity of the comparison is greater than the preset value, it can be determined that the object corresponds to the sample in the image library, that is to say, the object can be identified. If the compared similarity is less than the preset value, it is determined that the object cannot be recognized. Therefore, the objects that can be recognized in the scene image can be taken as the shooting objects, and the other objects are not taken as the shooting objects. After the photographing objects are determined, category information corresponding to each photographing object is further determined. For example, the types can be divided into: people, animals, plants, buildings and so on.
步骤203,确定分类信息对应的预览尺寸,并获取拍摄对象当前在场景图像中的原始尺寸。Step 203: Determine the preview size corresponding to the classification information, and obtain the current original size of the shooting object in the scene image.
在一实施例,不同种类的拍摄对象经过变焦之后在预览界面所呈现的比例也是不相同的。所以在该实施例中,可以先根据拍摄对象的分类信息确定该对象最佳的预览尺寸,再获取拍摄对象当前在场景图像中的原始尺寸,其中上述原始尺寸即为该场景图像直接预览时其中拍摄对象的尺寸。In one embodiment, the scales of different types of photographic objects displayed on the preview interface after zooming are also different. Therefore, in this embodiment, the best preview size of the object can be determined according to the classification information of the object, and then the original size of the object in the scene image can be obtained. The size of the subject.
步骤204,根据预览尺寸和原始尺寸计算拍摄对象的目标变焦倍数信息。Step 204: Calculate the target zoom factor information of the shooting object according to the preview size and the original size.
具体的,根据该拍摄对象的最佳预览尺寸计算在原始尺寸的基础上经过多少倍变焦后可达到一样的效果,也即计算该拍摄对象的目标变焦倍数信息。在一实施例中,上述拍摄对象的预览尺寸以及原始尺寸可以为该拍摄对象在电子设备屏幕中的占比,比如确定最佳预览尺寸为该拍摄对象在屏幕中所占面积的60%,而在当前场景图像中该拍摄对象在屏幕中所占面积为20%,根据上述两个比例可以计算得到该拍摄对象的目标变焦倍数为3倍,即可实现最佳预览效果。其中,上述最佳预览尺寸可以根据用户浏览图像的使用习惯来进行确定,比如获取历史时间段内用户浏览各个种类的拍摄对象时所调节的面积信息,然后根据均值算法确定每个种类的拍摄对象针对该用户的最佳面积,再根据最佳面积以及屏幕面积计算最佳占比信息,以作为每个种类所对应拍摄对象的预览尺寸,也即获取所述拍摄对象当前在场景图像中的原始尺寸的步骤可以包括:Specifically, calculating how many times the same effect can be achieved after zooming on the basis of the original size according to the optimal preview size of the photographing object, that is, calculating the target zoom factor information of the photographing object. In one embodiment, the preview size and the original size of the above-mentioned shooting object may be the proportion of the shooting object in the screen of the electronic device, for example, the optimal preview size is determined to be 60% of the area occupied by the shooting object on the screen, and In the current scene image, the shooting object occupies 20% of the screen area. According to the above two ratios, the target zoom factor of the shooting object can be calculated to be 3 times, and the best preview effect can be achieved. Among them, the above-mentioned optimal preview size can be determined according to the user's habit of browsing images, such as obtaining the area information adjusted by the user when browsing various types of shooting objects in a historical time period, and then determining each type of shooting objects according to the mean algorithm. According to the optimal area of the user, the optimal proportion information is calculated according to the optimal area and the screen area, as the preview size of the photographed object corresponding to each category, that is, to obtain the current original image of the photographed object in the scene image. Steps for sizing can include:
获取所述拍摄对象当前在场景图像中的原始面积;obtaining the current original area of the shooting object in the scene image;
根据所述原始面积以及电子设备屏幕的面积计算所述拍摄对象的原始占比数据,并确定为所述拍摄对象当前在场景图像中的原始尺寸。The original ratio data of the shooting object is calculated according to the original area and the area of the screen of the electronic device, and is determined as the current original size of the shooting object in the scene image.
进一步的,上述原始尺寸也可以通过计算拍摄对象的原始面积,然后再根据原始面积以及屏幕面积计算当前的占比信息来进行确定。也即获取所述拍摄对象当前在场景图像中的原始尺寸的步骤可以包括:Further, the above-mentioned original size can also be determined by calculating the original area of the photographed object, and then calculating the current proportion information according to the original area and the screen area. That is to say, the step of obtaining the original size of the shooting object currently in the scene image may include:
获取所述拍摄对象当前在场景图像中的原始面积;obtaining the current original area of the shooting object in the scene image;
根据所述原始面积以及电子设备屏幕的面积计算所述拍摄对象的原始占比数据,并确定为所述拍摄对象当前在场景图像中的原始尺寸。The original ratio data of the shooting object is calculated according to the original area and the area of the screen of the electronic device, and is determined as the current original size of the shooting object in the scene image.
步骤205,分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将标签在场景图像中的多个拍摄对象位置处作为预览图像进行显示。
分别对上述多个拍摄对象进行上述操作,即可得到每一个拍摄对象的最佳变焦倍数,也即目标变焦倍数。为使方案更加直观,本实施例还可以直接将拍摄对象的目标变焦倍数以标签的形式放置在场景图像中,比如设置在对应的拍摄对象位置,并作为预览图像进行显示。如图3所示,图3为本申请实施例提供的拍摄提示方法的一种场景示意图。在该场景当中包括人物、树木以及房子、大山等,处理器经过识别得到的拍摄对象包括房子、人、树1和树2,而分别计算上述每个拍摄对象的目标变焦倍数后,在将对应的标签放置在拍摄对象位置,比如房子对应的标签为“10X”,人对应的标签为“5X”,树1对应的标签为“5X”,树2对应的标签为“15X”。这幅画面就可以作为预览画面并展示给用户,使用户对每一个拍摄对象的最佳变焦倍数一目了然。无需来回调试。By respectively performing the above operations on the above-mentioned multiple photographing objects, the optimal zoom factor of each photographing object, that is, the target zoom factor, can be obtained. To make the solution more intuitive, in this embodiment, the target zoom factor of the shooting object may be directly placed in the scene image in the form of a label, for example, set at the corresponding shooting object position, and displayed as a preview image. As shown in FIG. 3 , FIG. 3 is a schematic diagram of a scene of a shooting prompt method provided by an embodiment of the present application. In this scene, people, trees, houses, mountains, etc. are included. The objects recognized by the processor include houses, people, tree 1 and tree 2. After calculating the target zoom factor of each of the above objects, the corresponding For example, the label corresponding to the house is "10X", the label corresponding to the person is "5X", the label corresponding to tree 1 is "5X", and the label corresponding to tree 2 is "15X". This picture can be used as a preview picture and displayed to the user, so that the user can see the optimal zoom factor for each subject at a glance. No need to debug back and forth.
步骤206,接收用户针对标签的第一操作。
步骤207,根据第一操作确定标签对应的目标拍摄对象,以目标变焦倍数对目标拍摄对象进行调节,并将调节后的目标拍摄对象作为预览图像进行此显示。Step 207: Determine the target shooting object corresponding to the tag according to the first operation, adjust the target shooting object with the target zoom factor, and display the adjusted target shooting object as a preview image.
进一步的,在预览界面上显示出当前场景每个拍摄对象对应的标签后,只需接收用户针对标签的第一操作,即可根据该标签对应的变焦倍数对相应的拍摄对象进行变焦,并将变焦后的图像显示至屏幕上。比如,上述第一操作可以为点击操作,当用户点击图3中“人”位置的“5X”标签,就可以以5倍变焦对人进行放大,并将放大后的图像预览值屏幕上,供用户观察。Further, after the label corresponding to each shooting object in the current scene is displayed on the preview interface, the corresponding shooting object can be zoomed according to the zoom factor corresponding to the label only by receiving the user's first operation on the label, and the The zoomed image is displayed on the screen. For example, the above-mentioned first operation can be a click operation. When the user clicks the "5X" label at the "person" position in Figure 3, the person can be zoomed in at 5x zoom, and the enlarged image preview value screen is displayed for display. User observation.
步骤208,接收用户针对标签的第二操作。
步骤209,根据第二操作确定与目标拍摄对象具有相同目标变焦倍数的其他拍摄对象,并将预览图像切换为其他拍摄对象。
进一步的,由于上述多个拍摄对象所分别对应目标变焦倍数可能相同也可能不同,比如距离镜头比较近的拍摄对象对应的变焦倍数都比较小,距离镜头较远的拍摄对象对应的变焦倍数则都比较大,因此在一实施例中,还可以将当前场景图像当中具有相同目标变焦倍数的拍摄对象进行关联。具体的,在步骤207之后就可以根据用户第二操作切换显示其他相同变焦倍数的拍摄对象的预览图像。Further, since the target zoom ratios corresponding to the above-mentioned multiple subjects may be the same or different, for example, the zoom ratios corresponding to the subjects closer to the lens are relatively small, and the zoom ratios corresponding to the subjects farther away from the lens are all the same. It is relatively large, so in an embodiment, the shooting objects with the same target zoom factor in the current scene image can also be associated. Specifically, after
比如,上述第二操作可以为双击操作,用户在点击“人”位置的标签“5X”后,以5倍变焦对人进行放大并作为预览图像,此时用户双击屏幕,则可以切换至“树1”并以5倍变焦对树1进行放大后作为预览图像,由于切换前后变焦倍数没有发生变化,因此摄像头参数无需调节,可以实现在同变焦倍数下多个拍摄对象的无缝切换。For example, the above-mentioned second operation can be a double-click operation. After the user clicks the label "5X" at the "person" position, the person is zoomed in by 5 times and used as a preview image. At this time, the user double-clicks the screen to switch to "tree" 1" and zoom in on tree 1 with 5x zoom as a preview image. Since the zoom factor does not change before and after switching, the camera parameters do not need to be adjusted, and seamless switching of multiple subjects at the same zoom factor can be achieved.
由上可知,本申请实施例提供的拍摄提示方法可以接收拍照指令,根据拍照指令获取摄像头当前对应的场景图像,识别场景图像中的多个拍摄对象,并分别确定多个拍摄对象的分类信息,确定分类信息对应的预览尺寸,并获取拍摄对象当前在场景图像中的原始尺寸,根据预览尺寸和原始尺寸计算拍摄对象的目标变焦倍数信息,分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将标签在场景图像中的多个拍摄对象位置处作为预览图像进行显示,接收用户针对标签的第一操作,根据第一操作确定标签对应的目标拍摄对象,以目标变焦倍数对目标拍摄对象进行调节,并将调节后的目标拍摄对象作为预览图像进行此显示,接收用户针对标签的第二操作,根据第二操作确定与目标拍摄对象具有相同目标变焦倍数的其他拍摄对象,并将预览图像切换为其他拍摄对象。本申请实施例可以识别出场景图像中的拍摄对象,为每个拍摄对象计算其相应的目标变焦倍数信息,并以标签的形式提示用户,从而在用户需要变焦拍摄时,直接通过操作选择标签即可,大大提升了拍摄的效率。As can be seen from the above, the shooting prompt method provided by the embodiment of the present application can receive a shooting instruction, obtain a scene image currently corresponding to the camera according to the shooting instruction, identify multiple shooting objects in the scene image, and determine the classification information of the multiple shooting objects respectively, Determine the preview size corresponding to the classification information, obtain the current original size of the shooting object in the scene image, calculate the target zoom factor information of the shooting object according to the preview size and the original size, and respectively generate a label containing the target zoom factor information corresponding to the shooting object , and display the label as a preview image at the positions of multiple shooting objects in the scene image, receive the user's first operation on the label, determine the target shooting object corresponding to the label according to the first operation, and use the target zoom factor to zoom in on the target shooting object. Adjust and display the adjusted target shooting object as a preview image, receive the user's second operation on the label, determine other shooting objects with the same target zoom factor as the target shooting object according to the second operation, and use the preview image Switch to another subject. The embodiment of the present application can identify the shooting object in the scene image, calculate the corresponding target zoom factor information for each shooting object, and prompt the user in the form of a label, so that when the user needs to zoom for shooting, the user can directly select the label by operating Yes, it greatly improves the efficiency of shooting.
请参阅图4,图4为本申请实施例提供的拍摄提示装置的一种结构示意图。其中该拍摄提示装置30包括:Please refer to FIG. 4 , which is a schematic structural diagram of a photographing prompting device provided by an embodiment of the present application. Wherein the photographing prompting
获取模块301,用于接收拍照指令,根据所述拍照指令获取摄像头当前对应的场景图像;The acquiring
识别模块302,用于识别所述场景图像中的多个拍摄对象,并分别确定所述多个拍摄对象的分类信息;An
计算模块303,用于根据所述分类信息分别计算所述多个拍摄对象的目标变焦倍数信息;A
生成模块304,用于分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将所述标签在所述场景图像中的多个拍摄对象位置处作为预览图像进行显示。The
在一实施例中,请参阅图5,在该实施例中,所述识别模块302可以包括:In an embodiment, please refer to FIG. 5, in this embodiment, the
识别子模块3021,用于识别所述场景图像中的所有物体;
选取子模块3022,用于根据预设图像库选取所述物体当中可作为拍摄主体的目标物体,并将所述目标物体作为拍摄对象。The
在一实施例中,所述计算模块303可以包括:In one embodiment, the
确定子模块3031,用于确定所述分类信息对应的预览尺寸;Determining submodule 3031, for determining the preview size corresponding to the classification information;
获取子模块3032,用于获取所述拍摄对象当前在场景图像中的原始尺寸;Obtaining sub-module 3032, for obtaining the original size of the shooting object currently in the scene image;
计算子模块3033,用于根据所述预览尺寸和所述原始尺寸计算所述拍摄对象的目标变焦倍数信息。The
由上述可知,本申请实施例的拍摄提示装置30可以接收拍照指令,根据拍照指令获取摄像头当前对应的场景图像,识别场景图像中的多个拍摄对象,并分别确定多个拍摄对象的分类信息,根据分类信息分别计算多个拍摄对象的目标变焦倍数信息,分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将标签在场景图像中的多个拍摄对象位置处作为预览图像进行显示。本申请实施例可以识别出场景图像中的拍摄对象,为每个拍摄对象计算其相应的目标变焦倍数信息,并以标签的形式提示用户,从而在用户需要变焦拍摄时,有效提升了拍摄效率。It can be seen from the above that the photographing prompting
本申请实施例中,拍摄提示装置与上文实施例中的拍摄提示方法属于同一构思,在拍摄提示装置上可以运行拍摄提示方法实施例中提供的任一方法,其具体实现过程详见拍摄提示方法的实施例,此处不再赘述。In the embodiment of the present application, the photographing prompting device and the photographing prompting method in the above embodiments belong to the same concept, and any method provided in the embodiment of the photographing prompting method can be executed on the photographing prompting device. For the specific implementation process, please refer to the shooting prompting Embodiments of the method are not repeated here.
本文所使用的术语“模块”可看作为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看作为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。As used herein, the term "module" can be thought of as a software object that executes on the computing system. The different components, modules, engines, and services described herein can be viewed as objects of implementation on the computing system. The apparatus and method described herein can be implemented in software, and certainly can also be implemented in hardware, which are all within the protection scope of the present application.
本申请实施例还提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的拍摄提示方法。An embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is made to execute the above-mentioned shooting prompting method.
本申请实施例还提供一种电子设备,如平板电脑、手机等。电子设备中的处理器会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能:Embodiments of the present application also provide an electronic device, such as a tablet computer, a mobile phone, and the like. The processor in the electronic device loads the instructions corresponding to the processes of one or more application programs into the memory according to the following steps, and the processor runs the application programs stored in the memory, thereby realizing various functions:
接收拍照指令,根据所述拍照指令获取摄像头当前对应的场景图像;receiving a photographing instruction, and obtaining a scene image currently corresponding to the camera according to the photographing instruction;
识别所述场景图像中的多个拍摄对象,并分别确定所述多个拍摄对象的分类信息;Identifying multiple shooting objects in the scene image, and determining the classification information of the multiple shooting objects respectively;
根据所述分类信息分别计算所述多个拍摄对象的目标变焦倍数信息;Calculate the target zoom factor information of the multiple shooting objects according to the classification information;
分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将所述标签在所述场景图像中的多个拍摄对象位置处作为预览图像进行显示。A tag containing the target zoom factor information corresponding to the shooting object is respectively generated, and the tag is displayed as a preview image at the positions of the multiple shooting objects in the scene image.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
请参阅图6,电子设备400包括处理器401以及存储器402。其中,处理器401与存储器402电性连接。Referring to FIG. 6 , the
处理器400是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能并处理数据,从而对电子设备400进行整体监控。The
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The
在本申请实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the
接收拍照指令,根据所述拍照指令获取摄像头当前对应的场景图像;receiving a photographing instruction, and obtaining a scene image currently corresponding to the camera according to the photographing instruction;
识别所述场景图像中的多个拍摄对象,并分别确定所述多个拍摄对象的分类信息;Identifying multiple shooting objects in the scene image, and determining the classification information of the multiple shooting objects respectively;
根据所述分类信息分别计算所述多个拍摄对象的目标变焦倍数信息;Calculate the target zoom factor information of the multiple shooting objects according to the classification information;
分别生成包含所述拍摄对象对应目标变焦倍数信息的标签,并将所述标签在所述场景图像中的多个拍摄对象位置处作为预览图像进行显示。A tag containing the target zoom factor information corresponding to the shooting object is respectively generated, and the tag is displayed as a preview image at the positions of the multiple shooting objects in the scene image.
请一并参阅图7,在一些实施方式中,电子设备400还可以包括:显示器403、射频电路404、音频电路405以及电源406。其中,其中,显示器403、射频电路404、音频电路405以及电源406分别与处理器401电性连接。Please also refer to FIG. 7 , in some embodiments, the
显示器403可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器403可以包括显示面板,在一些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The
射频电路404可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。通常,射频电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,SubscriberIdentity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。The
音频电路405可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。音频电路506可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出。The
电源406可以用于给电子设备400的各个部件供电。在一些实施例中,电源406可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源406还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管图7中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 7 , the
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。In this embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), or the like.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
需要说明的是,对本申请实施例的拍摄提示方法而言,本领域普通测试人员可以理解实现本申请实施例拍摄提示方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如拍摄提示方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the shooting prompt method of the embodiment of the present application, ordinary testers in the art can understand that all or part of the process of realizing the shooting prompt method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, such as in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process can include, for example, an embodiment of the photographing prompting method. process. Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
对本申请实施例的拍摄提示装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,存储介质譬如为只读存储器,磁盘或光盘等。For the photographing prompting device according to the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.
以上对本申请实施例所提供的一种拍摄提示方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A shooting prompting method, device, storage medium, and electronic device provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only It is used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, this specification The content should not be construed as a limitation on this application.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010760732.6A CN111866392B (en) | 2020-07-31 | 2020-07-31 | Shooting prompting method, device, storage medium and electronic device |
PCT/CN2021/105488 WO2022022259A1 (en) | 2020-07-31 | 2021-07-09 | Photographing prompting method and apparatus, and storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010760732.6A CN111866392B (en) | 2020-07-31 | 2020-07-31 | Shooting prompting method, device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111866392A true CN111866392A (en) | 2020-10-30 |
CN111866392B CN111866392B (en) | 2021-10-08 |
Family
ID=72953830
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010760732.6A Active CN111866392B (en) | 2020-07-31 | 2020-07-31 | Shooting prompting method, device, storage medium and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111866392B (en) |
WO (1) | WO2022022259A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738393A (en) * | 2020-12-25 | 2021-04-30 | 珠海西山居移动游戏科技有限公司 | Focusing method and device |
CN113014813A (en) * | 2021-03-02 | 2021-06-22 | 北京蜂巢世纪科技有限公司 | Focal length adjusting method and device, electronic equipment and storage medium |
CN113709368A (en) * | 2021-08-26 | 2021-11-26 | 维沃移动通信有限公司 | Image display method, device and equipment |
WO2022022259A1 (en) * | 2020-07-31 | 2022-02-03 | Oppo广东移动通信有限公司 | Photographing prompting method and apparatus, and storage medium, and electronic device |
CN115118840A (en) * | 2021-03-22 | 2022-09-27 | Oppo广东移动通信有限公司 | A shooting method, device, electronic device and storage medium |
CN115514892A (en) * | 2022-09-20 | 2022-12-23 | 北京拙河科技有限公司 | Camera precision hierarchical selection method and device |
CN116405611A (en) * | 2023-06-07 | 2023-07-07 | 建信金融科技有限责任公司 | Image uploading method, system, device, equipment and medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115131649A (en) * | 2022-06-27 | 2022-09-30 | 维沃移动通信有限公司 | Content identification method, device and electronic device |
CN115426444B (en) * | 2022-08-25 | 2024-11-26 | 维沃移动通信(杭州)有限公司 | Shooting method and device |
CN118368524B (en) * | 2024-06-17 | 2024-08-16 | 深圳市联合光学技术有限公司 | Multi-camera view field switching system and method thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110149120A1 (en) * | 2009-12-21 | 2011-06-23 | Canon Kabushiki Kaisha | Image-capturing apparatus with automatically adjustable angle of view and control method therefor |
CN103595917A (en) * | 2013-11-14 | 2014-02-19 | 上海华勤通讯技术有限公司 | Mobile terminal and focusing method thereof |
US20160241775A1 (en) * | 2013-09-24 | 2016-08-18 | Sony Corporation | Apparatus, imaging method, and program |
CN108111818A (en) * | 2017-12-25 | 2018-06-01 | 北京航空航天大学 | Moving target active perception method and apparatus based on multiple-camera collaboration |
CN110163810A (en) * | 2019-04-08 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of image processing method, device and terminal |
CN110445985A (en) * | 2019-08-30 | 2019-11-12 | 联想(北京)有限公司 | A kind of image-pickup method, electronic equipment and computer readable storage medium |
CN110572573A (en) * | 2019-09-17 | 2019-12-13 | Oppo广东移动通信有限公司 | Focusing method and apparatus, electronic device, computer-readable storage medium |
CN110933293A (en) * | 2019-10-31 | 2020-03-27 | 努比亚技术有限公司 | Shooting method, terminal and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101837688B1 (en) * | 2011-03-30 | 2018-04-19 | 삼성전자주식회사 | Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method |
CN111093023B (en) * | 2019-12-19 | 2022-03-08 | 维沃移动通信有限公司 | Video shooting method and electronic device |
CN111182205B (en) * | 2019-12-30 | 2021-07-27 | 维沃移动通信有限公司 | Shooting method, electronic device and medium |
CN111866392B (en) * | 2020-07-31 | 2021-10-08 | Oppo广东移动通信有限公司 | Shooting prompting method, device, storage medium and electronic device |
-
2020
- 2020-07-31 CN CN202010760732.6A patent/CN111866392B/en active Active
-
2021
- 2021-07-09 WO PCT/CN2021/105488 patent/WO2022022259A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110149120A1 (en) * | 2009-12-21 | 2011-06-23 | Canon Kabushiki Kaisha | Image-capturing apparatus with automatically adjustable angle of view and control method therefor |
US20160241775A1 (en) * | 2013-09-24 | 2016-08-18 | Sony Corporation | Apparatus, imaging method, and program |
CN103595917A (en) * | 2013-11-14 | 2014-02-19 | 上海华勤通讯技术有限公司 | Mobile terminal and focusing method thereof |
CN108111818A (en) * | 2017-12-25 | 2018-06-01 | 北京航空航天大学 | Moving target active perception method and apparatus based on multiple-camera collaboration |
CN110163810A (en) * | 2019-04-08 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of image processing method, device and terminal |
CN110445985A (en) * | 2019-08-30 | 2019-11-12 | 联想(北京)有限公司 | A kind of image-pickup method, electronic equipment and computer readable storage medium |
CN110572573A (en) * | 2019-09-17 | 2019-12-13 | Oppo广东移动通信有限公司 | Focusing method and apparatus, electronic device, computer-readable storage medium |
CN110933293A (en) * | 2019-10-31 | 2020-03-27 | 努比亚技术有限公司 | Shooting method, terminal and computer readable storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022022259A1 (en) * | 2020-07-31 | 2022-02-03 | Oppo广东移动通信有限公司 | Photographing prompting method and apparatus, and storage medium, and electronic device |
CN112738393A (en) * | 2020-12-25 | 2021-04-30 | 珠海西山居移动游戏科技有限公司 | Focusing method and device |
CN112738393B (en) * | 2020-12-25 | 2022-08-09 | 珠海西山居移动游戏科技有限公司 | Focusing method and device |
CN113014813A (en) * | 2021-03-02 | 2021-06-22 | 北京蜂巢世纪科技有限公司 | Focal length adjusting method and device, electronic equipment and storage medium |
CN115118840A (en) * | 2021-03-22 | 2022-09-27 | Oppo广东移动通信有限公司 | A shooting method, device, electronic device and storage medium |
CN113709368A (en) * | 2021-08-26 | 2021-11-26 | 维沃移动通信有限公司 | Image display method, device and equipment |
CN115514892A (en) * | 2022-09-20 | 2022-12-23 | 北京拙河科技有限公司 | Camera precision hierarchical selection method and device |
CN115514892B (en) * | 2022-09-20 | 2023-04-18 | 北京拙河科技有限公司 | Camera precision hierarchical selection method and device |
CN116405611A (en) * | 2023-06-07 | 2023-07-07 | 建信金融科技有限责任公司 | Image uploading method, system, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2022022259A1 (en) | 2022-02-03 |
CN111866392B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022022259A1 (en) | Photographing prompting method and apparatus, and storage medium, and electronic device | |
US11714533B2 (en) | Method and apparatus for dynamically displaying icon based on background image | |
EP4047549B1 (en) | Method and device for image detection, and electronic device | |
CN108737739B (en) | Preview picture acquisition method, preview picture acquisition device and electronic equipment | |
CN112954210A (en) | Photographing method and device, electronic equipment and medium | |
CN113747085A (en) | Method and device for shooting video | |
CN112714253B (en) | Video recording method and device, electronic equipment and readable storage medium | |
RU2663709C2 (en) | Method and device for data processing | |
CN108093177B (en) | Image acquisition method, device, storage medium and electronic device | |
CN111480158B (en) | File management method and electronic equipment | |
CN111325220B (en) | Image generation method, device, equipment and storage medium | |
US20250024152A1 (en) | Macro Shooting Method, Electronic Device, and Computer-Readable Storage Medium | |
CN113141450A (en) | Shooting method, shooting device, electronic equipment and medium | |
CN113840070A (en) | Shooting method, shooting device, electronic equipment and medium | |
CN108781254A (en) | It takes pictures method for previewing, graphic user interface and terminal | |
CN119893311A (en) | Shooting method and electronic equipment | |
CN104994287A (en) | Camera shooting method based on wide-angle camera and mobile terminal | |
CN113014798A (en) | Image display method and device and electronic equipment | |
CN107360366A (en) | Photographing method, device, storage medium and electronic equipment | |
CN113727021A (en) | Shooting method and device and electronic equipment | |
CN116055607B (en) | A zoom smoothness evaluation method, device and electronic equipment | |
CN109618192A (en) | Play method, apparatus, system and the storage medium of video | |
CN113286085B (en) | Display control method and device and electronic equipment | |
CN108156380A (en) | Image acquisition method, device, storage medium and electronic equipment | |
JP2015103968A (en) | Image processing apparatus, image processing method and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |