技术领域Technical field
本申请属于图像拍摄技术领域,具体涉及一种拍摄方法和拍摄装置。The present application belongs to the technical field of image shooting, and specifically relates to a shooting method and a shooting device.
背景技术Background technique
在相关技术中,在拍摄人物、风景等对象时,如果拍摄对象是移动的对象,或者需要与拍摄对象配合时,拍摄者在目视到合适场景后,才会反应按下快门,此时最合适的瞬间可能已经过去,导致拍摄的成片不是最佳的时机,用户需要反复重复拍摄多次,才能得到满意的成片,拍摄成片效率和拍摄体验差。In related technologies, when photographing objects such as people and landscapes, if the object is a moving object or needs to cooperate with the object, the photographer will press the shutter only after visually seeing a suitable scene. At this time, it is best to press the shutter button. The right moment may have passed, resulting in a shot that is not the best time. Users need to shoot multiple times to get a satisfactory shot, resulting in poor shooting efficiency and poor shooting experience.
发明内容Contents of the invention
本申请实施例的目的是提供一种拍摄方法、拍摄装置、电子设备和可读存储介质,能够解决拍摄成片效率和拍摄体验差的问题。The purpose of the embodiments of the present application is to provide a shooting method, a shooting device, an electronic device and a readable storage medium that can solve the problems of poor shooting efficiency and poor shooting experience.
第一方面,本申请实施例提供了一种拍摄方法,包括:In a first aspect, embodiments of the present application provide a shooting method, including:
在显示有拍摄预览界面的情况下,若检测到拍摄预览界面中包括目标对象,则根据拍摄预览界面中显示的内容生成第一图像集;When the shooting preview interface is displayed, if it is detected that the shooting preview interface includes the target object, the first image set is generated according to the content displayed in the shooting preview interface;
在接收到用户用于拍摄的第一输入的情况下,若确定出第一图像的内容不满足预设条件,则显示第二图像集,其中,第一图像为根据第一输入拍摄得到的图像;In the case where the user's first input for shooting is received, if it is determined that the content of the first image does not meet the preset condition, the second image set is displayed, wherein the first image is an image captured according to the first input ;
其中,第一图像集包括第二图像集,第二图像集中的图像均处于第一图像集中。Wherein, the first image set includes a second image set, and the images in the second image set are all in the first image set.
第二方面,本申请实施例提供了一种拍摄装置,包括:In a second aspect, embodiments of the present application provide a shooting device, including:
生成模块,用于在显示有拍摄预览界面的情况下,若检测到拍摄预览界面中包括目标对象,则根据拍摄预览界面中显示的内容生成第一图像集;A generation module configured to generate a first image set based on the content displayed in the shooting preview interface if it is detected that the shooting preview interface includes the target object when the shooting preview interface is displayed;
显示模块,用于在接收到用户用于拍摄的第一输入的情况下,若确定出第一图像的内容不满足预设条件,则显示第二图像集,其中,第一图像为根据第一输入拍摄得到的图像;A display module configured to, upon receiving the first input from the user for shooting, if it is determined that the content of the first image does not meet the preset condition, display the second image set, wherein the first image is the first image set according to the first Enter the captured image;
其中,第一图像集包括第二图像集,第二图像集中的图像均处于第一图像集中。Wherein, the first image set includes a second image set, and the images in the second image set are all in the first image set.
第三方面,本申请实施例提供了一种电子设备,包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, including a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, the method of the first aspect is implemented. step.
第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium that stores a program or instructions, and when the program or instructions are executed by a processor, the steps of the method in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面的方法的步骤。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the steps of the method in the first aspect. .
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method of the first aspect.
在本申请实施例中,在通过电子设备拍摄照片时,电子设备的显示屏上会实时显示拍摄预览界面,拍摄预览界面中显示有通过镜头捕捉到的画面的预览图像。如果检测到预览图像中,包含了用户设置的目标对象,如动物、人像等,则将当前显示的预览图像中,包含了预设对象的帧图像部分进行保存。在检测到用户触摸或按下快门按键的输入后,如果拍摄得到的第一图像的拍摄效果不好,则自动将用户按下快门之前已保存的多张图像,以第二图像集的形式进行显示,以供用户选择,用户可以在其中挑选满意的图像,作为最终的成片,因此能够有效避免用户按下快门时已经错过精彩瞬间的情况,提高拍摄的成片效率和拍摄体验。In the embodiment of the present application, when a photo is taken by an electronic device, a shooting preview interface will be displayed in real time on the display screen of the electronic device, and a preview image of the picture captured through the lens is displayed in the shooting preview interface. If it is detected that the preview image contains target objects set by the user, such as animals, portraits, etc., the frame image portion of the currently displayed preview image that contains the preset objects will be saved. After detecting the input of the user touching or pressing the shutter button, if the shooting effect of the first image obtained is not good, the multiple images that have been saved before the user presses the shutter button are automatically stored in the form of a second image set. Display for users to choose, where users can select satisfactory images as the final film. Therefore, it can effectively avoid the situation where the user has missed the wonderful moment when pressing the shutter, and improve the shooting efficiency and shooting experience.
附图说明Description of the drawings
图1示出了根据本申请实施例的拍摄方法的流程图;Figure 1 shows a flow chart of a shooting method according to an embodiment of the present application;
图2示出了根据本申请实施例的电子设备的界面示意图;Figure 2 shows a schematic interface diagram of an electronic device according to an embodiment of the present application;
图3示出了根据本申请实施例的拍摄装置的结构框图;Figure 3 shows a structural block diagram of a shooting device according to an embodiment of the present application;
图4示出了根据本申请实施例的电子设备的结构框图;Figure 4 shows a structural block diagram of an electronic device according to an embodiment of the present application;
图5为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法、拍摄装置、电子设备和可读存储介质进行详细地说明。The shooting method, shooting device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail through specific embodiments and application scenarios with reference to the accompanying drawings.
在本申请的一些实施例中,提供了一种拍摄方法,用于电子设备,电子设备包括拍摄组件,拍摄组件用于拍摄原始图像,图1示出了根据本申请实施例的拍摄方法的流程图,如图1所示,方法包括:In some embodiments of the present application, a photographing method is provided for use in an electronic device. The electronic device includes a photographing component, and the photographing component is used to photograph original images. Figure 1 shows the flow of the photographing method according to the embodiment of the present application. As shown in Figure 1, the methods include:
步骤102,在显示有拍摄预览界面的情况下,若检测到拍摄预览界面中包括目标对象,则根据拍摄预览界面中显示的内容生成第一图像集;Step 102: When the shooting preview interface is displayed, if it is detected that the shooting preview interface includes the target object, generate a first image set according to the content displayed in the shooting preview interface;
步骤104,在接收到用户用于拍摄的第一输入的情况下,若确定出第一图像的内容不满足预设条件,则显示第二图像集;Step 104: Upon receiving the user's first input for shooting, if it is determined that the content of the first image does not meet the preset conditions, display the second image set;
在步骤104中,第一图像为根据第一输入拍摄得到的图像;In step 104, the first image is an image captured according to the first input;
其中,第一图像集包括第二图像集,第二图像集中的图像均处于第一图像集中。Wherein, the first image set includes a second image set, and the images in the second image set are all in the first image set.
在本申请实施例中,电子设备包括手机、平板电脑、数码相机等设备,这些电子设备上设置有拍摄组件,拍摄组件可以包括如电子感光传感器、镜头等。在用户启动拍摄程序后,电子设备的显示屏上会实时显示拍摄预览界面,其中,拍摄预览界面中显示的内容是拍摄组件拍摄得到的原始图像的预览图像,其中,原始图像和预览图像的分辨率可以相同,也可以不同,在一些实施方式中,预览图像还可以是对原始图像进行压缩后得到的图像。In this embodiment of the present application, electronic devices include mobile phones, tablet computers, digital cameras and other devices. These electronic devices are provided with photographing components, and the photographing components may include, for example, electronic photosensitive sensors, lenses, etc. After the user starts the shooting program, the shooting preview interface will be displayed in real time on the display screen of the electronic device. The content displayed in the shooting preview interface is a preview image of the original image shot by the shooting component. The resolution of the original image and the preview image is The rates may be the same or different. In some implementations, the preview image may also be an image obtained by compressing the original image.
在显示预览图像后,系统自动对预览图像的图像内容进行识别,从而判断其中是否包含有用户设置的预设对象。这里的预设对象可以是泛指的对象,如“人”、“动物”、“植物”等,也可以是特定的对象,如“某人”、“猫”、“红花”等,用户可以在应用程序中,指定所要拍摄的目标对象,如输入预设对象的照片、特征信息等。After displaying the preview image, the system automatically identifies the image content of the preview image to determine whether it contains the preset objects set by the user. The default object here can be a general object, such as "person", "animal", "plant", etc., or it can be a specific object, such as "someone", "cat", "red flower", etc. User You can specify the target object to be photographed in the application, such as entering photos and characteristic information of the preset object.
如果识别到当前预览界面中显示的图像中,包含了上述用户指定的目标对象时,即拍摄组件捕捉到了用户希望拍摄的对象,此时,电子设备根据预览图像,将对应的原始图像缓存到自身的存储介质,如随机存取存储器(Random Access Memory,RAM)或内存中,生成为第一图像集。If it is recognized that the image displayed in the current preview interface contains the above-mentioned target object specified by the user, that is, the shooting component has captured the object that the user wishes to shoot. At this time, the electronic device caches the corresponding original image to itself based on the preview image. The first image set is generated in a storage medium, such as a random access memory (Random Access Memory, RAM) or a memory.
其中,第一图像集中的图像,可以是以多张照片的方式进行保存,也可以是以一段或多段的视频片段的方式进行保存。其中,当目标对象持续存在于预览界面中时,多张照片可以是在时间上连续的多张帧图像,视频片段可以是连续的长视频片段。The images in the first image set may be saved in the form of multiple photos, or may be saved in the form of one or more video clips. Wherein, when the target object continues to exist in the preview interface, the multiple photos can be multiple frame images that are temporally continuous, and the video clips can be continuous long video clips.
能够理解的是,第一图像集可以是在检测到预设对象后,拍摄组件捕捉到的全部图像信息的集合,从而保证数据完整性。第一图像集合还可以是仅包含预设对象的图像信息的集合,从而节省内存开支。It can be understood that the first image set may be a set of all image information captured by the shooting component after detecting the preset object, thereby ensuring data integrity. The first image set may also be a set containing only image information of preset objects, thereby saving memory expenditure.
可以理解的,第一图像集中的图像均是自动保存的,并非是在用户触发拍照后进行保存的。It can be understood that the images in the first image set are all automatically saved, and are not saved after the user triggers taking a photo.
当接收到用户的拍摄输入,即上述第一输入时,电子设备利用自身的AI(Artificial Intelligence,人工智能)芯片、DSP(Digital Signal Processing,数字信号处理)芯片等高速处理能力,对拍摄得到的第一图像进行图像识别,从而判断出该第一图像是否满足预设条件,具体为判断该第一图像是否为拍摄效果较好的图像。能够理解的,若该第一图像满足预设条件,则认为该第一图像的拍摄效果较好,若该第一图像不满足预设条件,则认为该第一图像的拍摄效果不佳。When receiving the user's shooting input, that is, the above-mentioned first input, the electronic device uses its own AI (Artificial Intelligence, artificial intelligence) chip, DSP (Digital Signal Processing, digital signal processing) chip and other high-speed processing capabilities to process the captured image. Image recognition is performed on the first image to determine whether the first image satisfies the preset conditions, specifically to determine whether the first image is an image with good shooting effect. It can be understood that if the first image meets the preset conditions, the shooting effect of the first image is considered to be good; if the first image does not meet the preset conditions, the shooting effect of the first image is considered to be poor.
其中,可以根据第一图像的构图比例、曝光参数、对焦信息、色彩饱和度、目标对象在第一图像中的位置和所占面积的比例,来判断第一图像是否拍摄效果较好,即是否满足预设条件。Among them, it can be judged whether the first image has a better shooting effect based on the composition ratio, exposure parameters, focus information, color saturation, position of the target object in the first image and the proportion of the area it occupies. Meet the preset conditions.
在一些实施方式中,可以通过预先训练好的神经网络模型,来对第一图像是否满足预设条件进行判断。In some implementations, a pre-trained neural network model can be used to determine whether the first image meets the preset conditions.
在另一些实施方式中,用户可以手动输入一张或多张其认为拍摄效果较好的模版图像作为范例,根据第一图像与模板图像的差异信息,来确定第一图像是否是拍摄效果较好的图像,即是否满足预设条件。In other implementations, the user can manually input one or more template images that he thinks have better shooting effects as examples, and determine whether the first image has better shooting effects based on the difference information between the first image and the template image. image, that is, whether it meets the preset conditions.
在另一些实施方式中,可以根据用户后续对于手动拍摄的照片的处理方式,来确定第一图像不满足预设条件。例如,在检测到用户对于手动拍摄得到的第一图像的大量删除操作,则认为第一图像不满足预设条件。具体地,删除的第一图像的数量超过预设数量的时候,才会认为第一图像不满足预设条件,预设数量具体可以由用户自行确定。In other implementations, it may be determined that the first image does not meet the preset condition based on the user's subsequent processing of the manually taken photos. For example, when it is detected that the user has performed a large number of deletion operations on the first image captured manually, it is considered that the first image does not meet the preset conditions. Specifically, only when the number of deleted first images exceeds a preset number, the first image will be considered not to meet the preset conditions. The preset number can be determined by the user.
在确定出第一图像不满足预设条件,也就是用户手动拍摄的照片的拍摄效果不理想时,电子设备对第一图像集中的全部图像进行图像识别和分类,并按照预设的处理逻辑,从第一图像集中确定出拍摄效果较好的若干张图像,并形成为第二图像集进行显示。用户可以在第二图像集中,挑选出符合自身需求或自身喜好的照片,作为最终成片。When it is determined that the first image does not meet the preset conditions, that is, the shooting effect of the photo manually taken by the user is not ideal, the electronic device performs image recognition and classification on all the images in the first image set, and follows the preset processing logic. Several images with better shooting effects are determined from the first image set and formed into a second image set for display. Users can select photos that meet their needs or preferences from the second image set as the final photo.
本申请实施例通过电子设备拍摄照片时,电子设备的显示屏上实时显示的拍摄预览界面,如果检测到预览图像中包含了用户设置的目标对象,则将当前显示的预览图像中包含了预设对象的帧图像部分进行保存。在检测到用户触摸或按下快门按键的输入后,如果拍摄得到的第一图像的拍摄效果不好,则自动将用户按下快门之前已保存的多张图像,以第二图像集的形式进行显示,以供用户选择,用户可以在其中挑选满意的图像,作为最终的成片,因此能够有效避免用户按下快门时已经错过精彩瞬间的情况,提高拍摄的成片效率和拍摄体验。In the embodiment of the present application, when a photo is taken by an electronic device, the shooting preview interface is displayed in real time on the display screen of the electronic device. If it is detected that the preview image contains the target object set by the user, the currently displayed preview image will contain the preset The frame image portion of the object is saved. After detecting the input of the user touching or pressing the shutter button, if the shooting effect of the first image obtained is not good, the multiple images that have been saved before the user presses the shutter button are automatically stored in the form of a second image set. Display for users to choose, where users can select satisfactory images as the final film. Therefore, it can effectively avoid the situation where the user has missed the wonderful moment when pressing the shutter, and improve the shooting efficiency and shooting experience.
在本申请的一些实施例中,在显示第二图像集之前,方法还包括:In some embodiments of the present application, before displaying the second image set, the method further includes:
根据第一图像集中每两张图像之间的相似度,确定N个相似图像组,其中,在一个相似图像组中的图像数量大于1的情况下,相似图像组中任意两张图像之间的图像相似度均大于等于相似度阈值;According to the similarity between each two images in the first image set, N similar image groups are determined, where, when the number of images in a similar image group is greater than 1, the similarity between any two images in the similar image group The image similarity is greater than or equal to the similarity threshold;
确定出每个相似图像组中的目标图像,其中,目标图像为一个相似图像组中的一张图像;Determine the target image in each similar image group, where the target image is an image in a similar image group;
根据N张目标图像生成第二图像集,其中,第二图像集中任意两张图像之间的图像相似度均小于相似度阈值。A second image set is generated based on N target images, where the image similarity between any two images in the second image set is less than the similarity threshold.
在本申请实施例中,由于第一图像集中的图像是拍摄预览界面中包含有目标对象时,系统自动保存的所有图像,而当摄像头长时间捕捉到目标对象时,如用户手持电子设备并进行对焦、调整拍摄角度时,由于保存的多张图像帧在时间上是连续的,其图像内容可能也是十分接近的。In this embodiment of the present application, since the images in the first image set are all images automatically saved by the system when the target object is included in the shooting preview interface, and when the camera captures the target object for a long time, such as when the user holds an electronic device and performs When focusing and adjusting the shooting angle, since the multiple saved image frames are continuous in time, their image contents may also be very close.
为了避免向用户展示大量内容相近的照片,本申请实施例在保存的第一图像集中,确定每两张图片之间的相似度,并将彼此间的相似度大于等于相似度阈值的多张图像,确定为同一个相似图像组。In order to avoid showing the user a large number of photos with similar content, the embodiment of the present application determines the similarity between each two pictures in the saved first image set, and selects the multiple images whose similarity between them is greater than or equal to the similarity threshold. , determined to be the same similar image group.
能够理解的是,如果第一图像集中存在某一张照片,这张照片与其他所有照片的相似度均小于相似度阈值,则将该张照片单独为一个相似图像组。It can be understood that if there is a certain photo in the first image set and the similarity between this photo and all other photos is less than the similarity threshold, then the photo will be separated into a similar image group.
在生成第二图像集时,在每一个相似图像组中,选出一张目标图像,其中,目标图像可以是在相似图像组中随机选取的,也可以是根据相似图像组中的每张照片的生成时间选取的,具体可以是基于生成时间对这些相似照片进行排序,将生成时间最早或最晚的一张照片确定为目标图像。When generating the second image set, select a target image from each similar image group, where the target image may be randomly selected from the similar image group, or may be selected based on each photo in the similar image group. The generation time is selected. Specifically, these similar photos can be sorted based on the generation time, and the photo with the earliest or latest generation time is determined as the target image.
根据这N个相似图像组中选出的N张目标图像,生成第二图像集,能够使第二图像集中的每张图像与其他全部图像之间的相似度均小于相似度阈值,也就是第二图像集中的任两张图像之间均是不相似的,因此能够避免向用户展示大量内容相近的照片,有利于帮助用户高效地选出拍摄效果更好的最终成片。Based on the N target images selected from these N similar image groups, a second image set is generated so that the similarity between each image in the second image set and all other images is less than the similarity threshold, that is, the second image set is generated. Any two images in the two image sets are dissimilar, so it can avoid showing the user a large number of photos with similar content, which is helpful to help the user efficiently select the final photo with better shooting effects.
在本申请的一些实施例中,内容不满足预设条件的第一图像的数量为多张;在显示第二图像集之前,方法包括:In some embodiments of the present application, the number of first images whose content does not meet the preset conditions is multiple; before displaying the second image set, the method includes:
根据内容不满足预设条件的第一图像的第一数量,确定第二图像集中图像的第二数量,其中,第二数量与第一数量正相关。Determine a second number of images in the second image set according to the first number of first images whose content does not meet the preset condition, wherein the second number is positively correlated with the first number.
在本申请实施例中,当用户拍摄得到的第一图像的数量为多张,且存在较多数量的内容不满足预设条件的第一图像时,说明用户反复拍摄也没有得到满意的照片,此时,可以扩大展示给用户的第二图像集中的图像的数量,从而为用户提供更多的选择,帮助用户更好的挑选合适的照片。In the embodiment of the present application, when the number of first images taken by the user is multiple, and there are a large number of first images whose contents do not meet the preset conditions, it means that the user has not obtained satisfactory photos despite repeated shooting. At this time, the number of images in the second image set displayed to the user can be expanded, thereby providing the user with more choices and helping the user to better select suitable photos.
能够理解的是,如果第一图像的数量较少,则说明用户手动拍摄得到的照片中,不满意的第一图像的数量较少较,此时可以减少第二图像集中图像的数量,减少用户的挑选时间。It can be understood that if the number of first images is small, it means that among the photos taken manually by the user, the number of unsatisfactory first images is relatively small. In this case, the number of images in the second image set can be reduced, reducing the user's selection time.
在本申请实施例中,由于内容不满足预设条件的第一图像是用户不满意拍摄效果的图像,因此,展示给用户用于挑选的第二图像集中图像的数量应该与内容不满足预设条件的第一图像的数量相关,即,若用户手动拍摄的照片中效果不佳的照片越多,则展示给用户用于挑选的第二图像集中图像的数量越多,从而为用户提供更多的选择。若用户手动拍摄的照片中效果不佳的照片较少,则展示给用户用于挑选的第二图像集中图像的数量较少,降低用户的选择难度和挑选时间。In this embodiment of the present application, since the first image whose content does not meet the preset conditions is an image for which the user is dissatisfied with the shooting effect, the number of images in the second image set displayed to the user for selection should be equal to the number of images whose content does not meet the preset conditions. The number of first images of the condition is related, that is, if the more poor photos among the photos taken manually by the user, the greater the number of images in the second image set displayed to the user for selection, thereby providing the user with more s Choice. If there are fewer photos with poor results among the photos manually taken by the user, the number of images in the second image set displayed to the user for selection will be smaller, thereby reducing the user's selection difficulty and selection time.
在本申请的一些实施例中,在显示目标图像集之后,方法还包括:In some embodiments of the present application, after displaying the target image set, the method further includes:
接收对第二图像集中第二图像的第二输入,第二输入用于选中第二图像;receiving a second input for a second image in the second image set, the second input being used to select the second image;
响应于第二输入,保存第二图像,并删除第一图像集中,除第二图像之外的图像。In response to the second input, the second image is saved and images in the first image set except the second image are deleted.
能够理解的是,第二图像的数量可以是一个,也可以是多个。It can be understood that the number of second images may be one or multiple.
在本申请实施例中,在形成第二图像集后,根据第二图像集中的图像数量,按照适合的方式,在屏幕上显示第二图像集。用户可以在这些图像中,挑选出符合自身需求的照片,作为最终成片,此时,用户可以通过如触摸第二图像、点选第二图像或长按第二图像的方式,将第二图像作为最终的成片进行保存。In the embodiment of the present application, after the second image set is formed, the second image set is displayed on the screen in a suitable manner according to the number of images in the second image set. The user can select the photo that meets his or her needs among these images as the final photo. At this time, the user can change the second image to the second image by touching, clicking, or long-pressing the second image. Save it as the final piece.
在保存用户选择的成片效果较好的第二图像之后,系统自动删除缓存的第一图像集中,除了用户选定的第二图像之外的其他图像,从而释放所占用的内存。After saving the second image selected by the user with a better film-making effect, the system automatically deletes other images in the cached first image set except the second image selected by the user, thereby releasing the occupied memory.
在本申请的一些实施例中,在接收到用于拍摄的第一输入之后,方法还包括:根据接收到第一输入的时刻和预设时长,确定目标时间段;删除第一图像集中,生成时刻在目标时间段之外的图像。In some embodiments of the present application, after receiving the first input for shooting, the method further includes: determining the target time period based on the moment when the first input is received and the preset duration; deleting the first image set, and generating Images that are outside the target time period.
可以理解的,第一图像集中的图像均是电子设备自动保存的图像,如果保存的图像过多,则会占用过多内存从而进一步对电子设备的运行状况产生影响。It can be understood that the images in the first image set are all images automatically saved by the electronic device. If too many images are saved, too much memory will be occupied, which will further affect the operating status of the electronic device.
因此,在本申请实施例中,用户可以设定一个预设时长,只保存在接收到用户用于拍摄(对快门控件的输入)的输入之前预定时间内(即目标时间段内)自动保存的图像,从而减少运算压力。Therefore, in the embodiment of the present application, the user can set a preset time period, and only save the automatically saved data within a predetermined time (i.e., within the target time period) before receiving the user's input for shooting (input to the shutter control). images, thereby reducing computing pressure.
具体举例来说,在用户打开相机应用并未进行拍摄操作之前,若电子设备识别到拍摄预览界面中包括目标对象,则会自动生成并保存为若干张图像,以用户设置预设时长为10秒为例,当用户按下快门时,记录按下快门的时刻,如为10点20分12秒,那么目标时间段即为10点20分2秒到10点20分12秒,此时可以只保存第一图像集中,生成时刻处于10点20分2秒到10点20分12秒之间的图像,而删除生成时刻处于该目标时间段之外的图像,例如,生成时刻处于10点19分40秒的图像,从而节省内存开支。For example, before the user opens the camera application and performs the shooting operation, if the electronic device recognizes that the shooting preview interface includes the target object, it will automatically generate and save several images with a default duration of 10 seconds set by the user. For example, when the user presses the shutter, record the moment when the shutter is pressed. For example, if it is 10:20 minutes and 12 seconds, then the target time period is 10:20 minutes and 2 seconds to 10:20 minutes and 12 seconds. At this time, you can only Save the images in the first image set whose generation time is between 10:20 minutes and 2 seconds to 10:20 minutes and 12 seconds, and delete the images whose generation time is outside the target time period, for example, the generation time is at 10:19 40 seconds of images, thus saving memory expenses.
在本申请的一些实施例中,显示第二图像集,还包括:在第二图像集中的图像的数量为一个时,显示该图像;在第二图像集中的图像的数量为Q个时,在Q个显示区域中分别显示Q张图像,Q为大于1的正整数。In some embodiments of the present application, displaying the second image set further includes: when the number of images in the second image set is one, displaying the image; when the number of images in the second image set is Q, Q images are displayed in Q display areas respectively, and Q is a positive integer greater than 1.
在本申请实施例中,在形成第二图像集后,可以根据第二图像集中的图像数量,以适合的方式在屏幕上显示第二图像集中的图像。用户可以从这些图像中挑选出符合自身需求的图像,作为最终成片。In the embodiment of the present application, after the second image set is formed, the images in the second image set can be displayed on the screen in a suitable manner according to the number of images in the second image set. Users can select the images that meet their needs from these images as the final film.
具体地,如果第二图像集中仅有一张图像,则直接在电子设备的显示屏上显示该图像即可。如果第二图像集中存在多张图像,则对电子设备显示屏的显示区域进行划分,举例来说,图2示出了根据本申请实施例的电子设备的界面示意图,如图2所示,第二图像集中有9张照片,则将当前电子设备200的显示界面按照九宫格的方式划分,得到9个显示区域,在每个显示区域内显示一张图像202。Specifically, if there is only one image in the second image set, the image can be directly displayed on the display screen of the electronic device. If there are multiple images in the second image set, the display area of the electronic device display screen is divided. For example, Figure 2 shows a schematic interface diagram of the electronic device according to an embodiment of the present application. As shown in Figure 2, the first If there are 9 photos in the second image set, the display interface of the current electronic device 200 is divided into nine display areas to obtain 9 display areas, and one image 202 is displayed in each display area.
在本申请的一些实施例中,显示第二图像集,还包括:根据图像特征,对第二图像数据集中的图像进行排序,得到目标序列;根据目标序列,依次显示第二图像集中的每一张图像。In some embodiments of the present application, displaying the second image set further includes: sorting the images in the second image data set according to the image characteristics to obtain a target sequence; and displaying each image in the second image set in sequence according to the target sequence. images.
具体地,图像特征包括构图比例、对焦信息、预设对象的面积与图像总体面积的比例关系等,因此图像特征能够在一定程度上反应图像的拍摄效果。Specifically, image features include composition ratio, focus information, the proportional relationship between the area of the preset object and the overall area of the image, etc. Therefore, the image features can reflect the shooting effect of the image to a certain extent.
基于每张图像的图像特征,对第二图像集中的多张图像进行排序,也即按照这些图像的实际拍摄效果进行排序,从而将拍摄效果更好的图像排在目标序列的靠前位置,反之将拍摄效果较差的图像排在目标序列的靠后位置。在得到目标序列后,按照目标序列的顺序顺次显示第二图像集中的每一个图像,供用户选择。Based on the image characteristics of each image, the multiple images in the second image set are sorted, that is, according to the actual shooting effect of these images, so that the images with better shooting effects are ranked at the front of the target sequence, and vice versa. Arrange images with poor shooting quality later in the target sequence. After the target sequence is obtained, each image in the second image set is sequentially displayed in the order of the target sequence for the user to select.
本申请实施例提供的拍摄方法,执行主体可以为拍摄装置,或者该拍摄装置中的用于执行拍摄的方法的控制模块。本申请实施例中以拍摄装置执行拍摄方法为例,说明本申请实施例提供的拍摄装置For the photographing method provided by the embodiments of the present application, the execution subject may be a photographing device, or a control module in the photographing device for executing the photographing method. In the embodiment of the present application, the photographing device performs the photographing method as an example to illustrate the photographing device provided by the embodiment of the present application.
在本申请的一些实施例中,提供了一种拍摄装置,用于电子设备,电子设备包括拍摄组件,拍摄组件用于拍摄原始图像,图3示出了根据本申请实施例的拍摄装置的结构框图,如图3所示,拍摄装置300包括:In some embodiments of the present application, a photographing device is provided for use in electronic equipment. The electronic device includes a photographing component, and the photographing component is used to photograph original images. Figure 3 shows the structure of a photographing device according to an embodiment of the present application. Block diagram, as shown in Figure 3, the shooting device 300 includes:
生成模块302,用于在显示有拍摄预览界面的情况下,若检测到拍摄预览界面中包括目标对象,则根据拍摄预览界面中显示的内容生成第一图像集;The generation module 302 is configured to generate a first image set according to the content displayed in the shooting preview interface if it is detected that the shooting preview interface includes the target object when the shooting preview interface is displayed;
显示模块304,用于在接收到用户用于拍摄的第一输入的情况下,若确定出第一图像的内容不满足预设条件,则显示第二图像集,其中,第一图像为根据第一输入拍摄得到的图像;The display module 304 is configured to, upon receiving the user's first input for shooting, if it is determined that the content of the first image does not meet the preset condition, display the second image set, wherein the first image is the first image according to the first image. 1. Input the captured image;
其中,第一图像集包括第二图像集,第二图像集中的图像均处于第一图像集中。Wherein, the first image set includes a second image set, and the images in the second image set are all in the first image set.
本申请实施例通过电子设备拍摄照片时,电子设备的显示屏上实时显示的拍摄预览界面,如果检测到预览图像中包含了用户设置的目标对象,则将当前显示的预览图像中包含了预设对象的帧图像部分进行保存。在检测到用户触摸或按下快门按键的输入后,如果拍摄得到的第一图像的拍摄效果不好,则自动将用户按下快门之前已保存的多张图像,以第二图像集的形式进行显示,以供用户选择,用户可以在其中挑选满意的图像,作为最终的成片,因此能够有效避免用户按下快门时已经错过精彩瞬间的情况,提高拍摄的成片效率和拍摄体验。In the embodiment of the present application, when a photo is taken by an electronic device, the shooting preview interface is displayed in real time on the display screen of the electronic device. If it is detected that the preview image contains the target object set by the user, the currently displayed preview image will contain the preset The frame image portion of the object is saved. After detecting the input of the user touching or pressing the shutter button, if the shooting effect of the first image obtained is not good, the multiple images that have been saved before the user presses the shutter button are automatically stored in the form of a second image set. Display for users to choose, where users can select satisfactory images as the final film. Therefore, it can effectively avoid the situation where the user has missed the wonderful moment when pressing the shutter, and improve the shooting efficiency and shooting experience.
在本申请的一些实施例中,拍摄装置还包括:In some embodiments of the present application, the shooting device further includes:
第一确定模块,用于:The first determination module is used for:
根据第一图像集中每两张图像之间的相似度,确定N个相似图像组,其中,在一个相似图像组中的图像数量大于1的情况下,相似图像组中任意两张图像之间的图像相似度均大于等于相似度阈值,N为正整数;确定出每个相似图像组中的目标图像,其中,目标图像为一个相似图像组中的一张图像;According to the similarity between each two images in the first image set, N similar image groups are determined, where, when the number of images in a similar image group is greater than 1, the similarity between any two images in the similar image group The image similarities are all greater than or equal to the similarity threshold, and N is a positive integer; the target image in each similar image group is determined, where the target image is an image in a similar image group;
生成模块,还用于根据N张目标图像生成第二图像集,其中,第二图像集中任意两张图像之间的图像相似度均小于相似度阈值。The generation module is also used to generate a second image set based on the N target images, wherein the image similarity between any two images in the second image set is less than the similarity threshold.
在本申请实施例中,根据这N个相似图像组中选出的N张目标图像,生成第二图像集,能够使第二图像集中的每张图像与其他全部图像之间的相似度均小于相似度阈值,也就是第二图像集中的任两张图像之间均是不相似的,因此能够避免向用户展示大量内容相近的照片,有利于帮助用户高效地选出拍摄效果更好的最终成片。In the embodiment of the present application, the second image set is generated based on the N target images selected from the N similar image groups, so that the similarity between each image in the second image set and all other images is less than The similarity threshold means that any two images in the second image set are dissimilar. Therefore, it can avoid showing the user a large number of photos with similar content and help the user to efficiently select the final result with better shooting effect. piece.
在本申请的一些实施例中,内容不满足预设条件的第一图像的数量为多张;In some embodiments of the present application, the number of first images whose content does not meet the preset conditions is multiple;
拍摄装置还包括:Filming equipment also includes:
第二确定模块,用于根据内容不满足预设条件的第一图像的第一数量,确定第二图像集中图像的第二数量,其中,第二数量与第一数量正相关。The second determination module is configured to determine a second number of images in the second image set based on the first number of first images whose content does not meet the preset condition, where the second number is positively correlated with the first number.
在本申请实施例中,由于内容不满足预设条件的第一图像是用户不满意拍摄效果的图像,因此,展示给用户用于挑选的第二图像集中图像的数量应该与内容不满足预设条件的第一图像的数量相关,即,若用户手动拍摄的照片中效果不佳的照片越多,则展示给用户用于挑选的第二图像集中图像的数量越多,从而为用户提供更多的选择。若用户手动拍摄的照片中效果不佳的照片较少,则展示给用户用于挑选的第二图像集中图像的数量较少,降低用户的选择难度。In this embodiment of the present application, since the first image whose content does not meet the preset conditions is an image for which the user is dissatisfied with the shooting effect, the number of images in the second image set displayed to the user for selection should be equal to the number of images whose content does not meet the preset conditions. The number of first images of the condition is related, that is, if the more poor photos among the photos taken manually by the user, the greater the number of images in the second image set displayed to the user for selection, thereby providing the user with more s Choice. If there are fewer photos with poor results among the photos manually taken by the user, the number of images in the second image set displayed to the user for selection will be smaller, reducing the difficulty of the user's selection.
在本申请的一些实施例中,拍摄装置还包括:In some embodiments of the present application, the shooting device further includes:
接收模块,用于接收对第二图像集中第二图像的第二输入,第二输入用于选中第二图像;a receiving module, configured to receive a second input to the second image in the second image set, where the second input is used to select the second image;
存储模块,用于响应于第二输入,保存第二图像;a storage module configured to save the second image in response to the second input;
第一删除模块,用于删除第一图像集中,除第二图像之外的图像。The first deletion module is used to delete images in the first image set except the second image.
在本申请实施例中,在保存用户选择的第二图像之后,自动删除第一图像集中除了用户选定的第二图像之外的其他图像,从而释放所占用的内存。In the embodiment of the present application, after saving the second image selected by the user, other images in the first image set except the second image selected by the user are automatically deleted, thereby releasing the occupied memory.
在本申请的一些实施例中,拍摄装置还包括:In some embodiments of the present application, the shooting device further includes:
第三确定模块,用于根据接收到第一输入的时刻和预设时长,确定目标时间段;The third determination module is used to determine the target time period based on the moment when the first input is received and the preset duration;
第二删除模块,用于删除第一图像集中,生成时刻在目标时间段之外的图像。The second deletion module is used to delete the images generated in the first image set outside the target time period.
在本申请实施例中,用户可以设定一个预设时长,只保存在接收到用户用于拍摄(对快门控件的输入)的输入之前预定时间内(即目标时间段内)自动保存的图像,从而减少运算压力。In the embodiment of the present application, the user can set a preset time period and only save images that are automatically saved within a predetermined time (ie, within the target time period) before receiving the user's input for shooting (input to the shutter control). Thereby reducing computing pressure.
本申请实施例中的拍摄装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be an electronic device, or may be a component of the electronic device, such as an integrated circuit or chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR) Devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., can also be servers, network attached storage (Network Attached Storage, NAS) , personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.
本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的拍摄装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The shooting device provided by the embodiments of the present application can implement each process implemented by the above method embodiments. To avoid repetition, the details will not be described here.
可选地,本申请实施例还提供一种电子设备,图4示出了根据本申请实施例的电子设备的结构框图,如图4所示,电子设备400包括处理器402,存储器404,存储在存储器404上并可在处理器402上运行的程序或指令,该程序或指令被处理器402执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, the embodiment of the present application also provides an electronic device. Figure 4 shows a structural block diagram of the electronic device according to the embodiment of the present application. As shown in Figure 4, the electronic device 400 includes a processor 402, a memory 404, and a storage device 400. Programs or instructions on the memory 404 that can be run on the processor 402. When executed by the processor 402, the programs or instructions implement the various processes of the above method embodiments and can achieve the same technical effects. To avoid duplication, they are not included here. Again.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图5为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509以及处理器510等部件。The electronic device 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510 and other components. .
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 500 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 5 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
其中,处理器510用于在显示有拍摄预览界面的情况下,若检测到拍摄预览界面中包括目标对象,则根据拍摄预览界面中显示的内容生成第一图像集;Wherein, the processor 510 is configured to generate a first image set according to the content displayed in the shooting preview interface if it is detected that the shooting preview interface includes the target object when the shooting preview interface is displayed;
显示单元506用于在接收到用户用于拍摄的第一输入的情况下,若确定出第一图像的内容不满足预设条件,则显示第二图像集,第一图像为根据第一输入拍摄得到的图像;The display unit 506 is configured to, upon receiving the first input from the user for shooting, if it is determined that the content of the first image does not meet the preset condition, display the second image set, and the first image is shot according to the first input. the resulting image;
其中,第一图像集包括第二图像集,第二图像集中的图像均处于第一图像集中。Wherein, the first image set includes a second image set, and the images in the second image set are all in the first image set.
在本申请实施例中,在通过电子设备拍摄照片时,电子设备的显示屏上会实时显示拍摄预览界面,拍摄预览界面中显示有通过镜头捕捉到的画面的预览图像。如果检测到预览图像中,包含了用户设置的目标对象,如动物、人像等,则将当前显示的预览图像中,包含了预设对象的帧图像部分进行保存。在检测到用户触摸或按下快门按键的输入后,如果拍摄得到的第一图像的拍摄效果不好,则自动将用户按下快门之前已保存的多张图像,以第二图像集的形式进行显示,以供用户选择,用户可以在其中挑选满意的图像,作为最终的成片,因此能够有效避免用户按下快门时已经错过精彩瞬间的情况,提高拍摄的成片效率和拍摄体验。In the embodiment of the present application, when a photo is taken by an electronic device, a shooting preview interface will be displayed in real time on the display screen of the electronic device, and a preview image of the picture captured through the lens is displayed in the shooting preview interface. If it is detected that the preview image contains target objects set by the user, such as animals, portraits, etc., the frame image portion of the currently displayed preview image that contains the preset objects will be saved. After detecting the input of the user touching or pressing the shutter button, if the shooting effect of the first image obtained is not good, the multiple images that have been saved before the user presses the shutter button are automatically stored in the form of a second image set. Display for users to choose, where users can select satisfactory images as the final film. Therefore, it can effectively avoid the situation where the user has missed the wonderful moment when pressing the shutter, and improve the shooting efficiency and shooting experience.
可选地,处理器510还用于根据第一图像集中每两张图像之间的相似度,确定N个相似图像组,其中,在一个相似图像组中的图像数量大于1的情况下,相似图像组中任意两张图像之间的图像相似度均大于等于相似度阈值;确定出每个相似图像组中的目标图像,其中,目标图像为一个相似图像组中的一张图像;根据N张目标图像生成第二图像集,其中,第二图像集中任意两张图像之间的图像相似度均小于相似度阈值。Optionally, the processor 510 is also configured to determine N similar image groups based on the similarity between each two images in the first image set, wherein, when the number of images in a similar image group is greater than 1, the similarity The image similarity between any two images in the image group is greater than or equal to the similarity threshold; determine the target image in each similar image group, where the target image is an image in a similar image group; according to N The target image generates a second image set, wherein the image similarity between any two images in the second image set is less than a similarity threshold.
在本申请实施例中,根据这N个相似图像组中选出的N张目标图像,生成第二图像集,能够使第二图像集中的每张图像与其他全部图像之间的相似度,均小于相似度阈值,也就是第二图像集中的任两张图像之间均是不相似的,因此能够避免向用户展示大量内容相近的照片,有利于帮助用户高效地选出拍摄效果更好的最终成片In the embodiment of the present application, the second image set is generated based on the N target images selected from the N similar image groups, so that the similarity between each image in the second image set and all other images can be equal to Less than the similarity threshold, that is, any two images in the second image set are dissimilar. Therefore, it can avoid showing the user a large number of photos with similar content, which is helpful to help the user efficiently select the final photo with better shooting effect. Into pieces
可选地,内容不满足预设条件的第一图像的数量为多张;在显示第二图像集之前,方法包括:处理器510还用于根据内容不满足预设条件的第一图像的第一数量,确定第二图像集中图像的第二数量,其中,第二数量与第一数量正相关。Optionally, the number of first images whose content does not meet the preset condition is multiple; before displaying the second set of images, the method includes: the processor 510 is further configured to: based on the third image of the first image whose content does not meet the preset condition, A quantity that determines a second quantity of images in the second image set, wherein the second quantity is positively related to the first quantity.
可选地,显示单元506还用于接收对第二图像集中第二图像的第二输入,第二输入用于选中第二图像;响应于第二输入,保存第二图像,并删除第一图像集中,除第二图像之外的图像。Optionally, the display unit 506 is further configured to receive a second input of a second image in the second image set, the second input being used to select the second image; in response to the second input, save the second image, and delete the first image. Focus on the images except the second image.
可选地,处理器510还用于根据接收到第一输入的时刻和预设时长,确定目标时间段;删除第一图像集中,生成时刻在目标时间段之外的图像。Optionally, the processor 510 is also configured to determine a target time period based on the moment when the first input is received and the preset duration; delete the first image set and generate images whose time is outside the target time period.
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(GraphicsProcessing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042. The graphics processor 5041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072 . Touch panel 5071, also called touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。Memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 509 may include volatile memory or non-volatile memory, or memory 509 may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器510可包括一个或多个处理单元;可选的,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 510.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above method embodiments is implemented and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the above embodiment. Readable storage media include computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above method embodiments and can achieve the same technical effect. , to avoid repetition, will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement the processes of the above method embodiments and can achieve the same technical effect. To avoid repetition, we will not go into details here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN202210690042.7ACN114915730B (en) | 2022-06-17 | 2022-06-17 | Shooting methods and shooting equipment | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN202210690042.7ACN114915730B (en) | 2022-06-17 | 2022-06-17 | Shooting methods and shooting equipment | 
| Publication Number | Publication Date | 
|---|---|
| CN114915730A CN114915730A (en) | 2022-08-16 | 
| CN114915730Btrue CN114915730B (en) | 2023-10-27 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN202210690042.7AActiveCN114915730B (en) | 2022-06-17 | 2022-06-17 | Shooting methods and shooting equipment | 
| Country | Link | 
|---|---|
| CN (1) | CN114915730B (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN105138962A (en)* | 2015-07-28 | 2015-12-09 | 小米科技有限责任公司 | Image display method and image display device | 
| CN106528879A (en)* | 2016-12-14 | 2017-03-22 | 北京小米移动软件有限公司 | Picture processing method and device | 
| CN108419012A (en)* | 2018-03-18 | 2018-08-17 | 广东欧珀移动通信有限公司 | Photographing method, device, storage medium and electronic equipment | 
| CN109977247A (en)* | 2019-03-27 | 2019-07-05 | 联想(北京)有限公司 | Image processing method and image processing apparatus | 
| CN114125290A (en)* | 2021-11-22 | 2022-03-01 | 维沃移动通信有限公司 | Shooting method and device | 
| CN114372166A (en)* | 2021-12-03 | 2022-04-19 | 浙江大华技术股份有限公司 | Image management method and device | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN105138962A (en)* | 2015-07-28 | 2015-12-09 | 小米科技有限责任公司 | Image display method and image display device | 
| CN106528879A (en)* | 2016-12-14 | 2017-03-22 | 北京小米移动软件有限公司 | Picture processing method and device | 
| CN108419012A (en)* | 2018-03-18 | 2018-08-17 | 广东欧珀移动通信有限公司 | Photographing method, device, storage medium and electronic equipment | 
| CN109977247A (en)* | 2019-03-27 | 2019-07-05 | 联想(北京)有限公司 | Image processing method and image processing apparatus | 
| CN114125290A (en)* | 2021-11-22 | 2022-03-01 | 维沃移动通信有限公司 | Shooting method and device | 
| CN114372166A (en)* | 2021-12-03 | 2022-04-19 | 浙江大华技术股份有限公司 | Image management method and device | 
| Publication number | Publication date | 
|---|---|
| CN114915730A (en) | 2022-08-16 | 
| Publication | Publication Date | Title | 
|---|---|---|
| CN104767933B (en) | A method of having the portable digital equipment and screening photo of camera function | |
| WO2019137167A1 (en) | Photo album management method and apparatus, storage medium, and electronic device | |
| CN115176456B (en) | Content operation method, device, terminal and storage medium | |
| CN112954214B (en) | Shooting method, shooting device, electronic equipment and storage medium | |
| CN112887609B (en) | Shooting method and device, electronic equipment and storage medium | |
| CN111491102A (en) | Detection method, system, mobile terminal and storage medium of photographing scene | |
| CN103780839B (en) | A kind of photographic method and photo terminal | |
| JP7681690B2 (en) | Photographing method, photographing device, electronic device, and readable storage medium | |
| CN106815803B (en) | Picture processing method and device | |
| CN112822412B (en) | Exposure method, exposure device, electronic equipment and storage medium | |
| CN105391940B (en) | A kind of image recommendation method and device | |
| WO2023071933A1 (en) | Camera photographing parameter adjustment method and apparatus and electronic device | |
| WO2024022349A1 (en) | Image processing method and apparatus, and electronic device and storage medium | |
| CN111669495B (en) | Photographing method, photographing device and electronic equipment | |
| WO2024061134A1 (en) | Photographing method and apparatus, electronic device, and medium | |
| CN115842953A (en) | Shooting method and device thereof | |
| WO2025119132A1 (en) | Photographing method and apparatus, and electronic device | |
| CN115686359A (en) | Processing method and device for continuously shot images, electronic equipment and storage medium | |
| CN114025100B (en) | Shooting method, device, electronic device and readable storage medium | |
| CN113271378B (en) | Image processing method, device and electronic equipment | |
| CN112887515B (en) | Video generation method and device | |
| CN108495038A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
| CN114915730B (en) | Shooting methods and shooting equipment | |
| CN117278842A (en) | Shooting control method, shooting control device, electronic equipment and readable storage medium | |
| CN117479024A (en) | Image processing method and device | 
| 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 |