[go: up one dir, main page]

CN112532904B - Video processing method and device and electronic equipment - Google Patents

Video processing method and device and electronic equipment Download PDF

Info

Publication number
CN112532904B
CN112532904B CN202011348814.6A CN202011348814A CN112532904B CN 112532904 B CN112532904 B CN 112532904B CN 202011348814 A CN202011348814 A CN 202011348814A CN 112532904 B CN112532904 B CN 112532904B
Authority
CN
China
Prior art keywords
video
target
entity
parameters
determining
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.)
Active
Application number
CN202011348814.6A
Other languages
Chinese (zh)
Other versions
CN112532904A (en
Inventor
林梦茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011348814.6A priority Critical patent/CN112532904B/en
Publication of CN112532904A publication Critical patent/CN112532904A/en
Application granted granted Critical
Publication of CN112532904B publication Critical patent/CN112532904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video processing method and device and electronic equipment, and belongs to the technical field of terminals. Comprising the following steps: determining a target entity, wherein the target entity is used for determining video parameters adopted when shooting target videos; determining a target video parameter corresponding to a target entity according to a corresponding relation between a preset entity and the video parameter; according to the target video parameters, shooting the target video, in the application, as the corresponding relation between the entity and the video parameters can be preset, the corresponding relation between the better video parameters and the entity can be established in advance, so that the target entity for determining the video parameters adopted when shooting the target video is acquired before shooting the target video, further, the better target video parameters corresponding to the target entity can be determined according to the corresponding relation, and the target video can be obtained according to the target video parameters, thereby the target video parameters of the shot target video can be determined quickly, and the target video with higher quality can be obtained.

Description

视频的处理方法、装置及电子设备Video processing method, device and electronic equipment

技术领域technical field

本申请属于终端技术领域,具体涉及一种视频的处理方法、装置及电子设备。The present application belongs to the technical field of terminals, and in particular relates to a video processing method, device and electronic equipment.

背景技术Background technique

随着电子设备技术的发展,利用电子设备进行图像和视频的摄制在人们日常生活中逐渐普及。With the development of electronic equipment technology, the use of electronic equipment to record images and videos has gradually become popular in people's daily life.

现有技术中,在利用电子设备摄制视频时,决定最终视频呈现效果的视频参数种类繁多、复杂,用户可以利用电子设备默认的视频参数进行视频的录制,也可以通过电子设备的相关界面根据经验或感官设置录制视频的视频参数,例如,可以选择为视频添加背景音乐,设定录制视频时的速度,选择需要添加在视频画面中的滤镜和特效,或预先设定录制的视频的时长等,从而获取具有一定视觉效果的视频。In the prior art, when electronic equipment is used to shoot video, the video parameters that determine the final video rendering effect are various and complex. Users can use the default video parameters of electronic equipment to record video, or use the relevant interface of electronic equipment according to experience. Or set the video parameters of the recorded video by sensory perception, for example, you can choose to add background music to the video, set the speed when recording the video, select the filters and special effects that need to be added to the video screen, or pre-set the duration of the recorded video, etc. , so as to obtain a video with a certain visual effect.

但是,在目前的方案中,默认的视频参数或用户通过经验或感官设置的视频参数,针对具体的场景而言,一般情况下均不是较优的参数,从而导致录制得到的视频质量较差。However, in the current solution, the default video parameters or the video parameters set by the user through experience or senses are generally not optimal parameters for specific scenarios, resulting in poor quality of the recorded video.

发明内容Contents of the invention

本申请实施例的目的是提供一种视频的处理方法、装置及电子设备,能够解决现有技术中在录制视频时,由于视频参数不是较优的参数,导致的视频质量较差的问题。The purpose of the embodiments of the present application is to provide a video processing method, device and electronic equipment, which can solve the problem of poor video quality caused by video parameters not being optimal when recording video in the prior art.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:

第一方面,本申请实施例提供了一种视频的处理方法,该方法包括:In the first aspect, the embodiment of the present application provides a video processing method, the method including:

确定目标实体,所述目标实体用于确定拍摄目标视频时采用的视频参数;Determine the target entity, the target entity is used to determine the video parameters used when shooting the target video;

根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;determining a target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter;

根据所述目标视频参数,拍摄所述目标视频。Shooting the target video according to the target video parameters.

第二方面,本申请实施例还提供了一种视频的处理方法,该方法包括:In the second aspect, the embodiment of the present application also provides a video processing method, the method including:

获取待处理视频,并确定所述待处理视频中包含的目标实体,所述目标实体用于确定目标视频具有的视频参数;Obtain the video to be processed, and determine the target entity contained in the video to be processed, and the target entity is used to determine the video parameters that the target video has;

根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;determining a target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter;

利用所述目标视频参数对所述待处理视频进行处理,使得所述待处理视频具有所述目标视频参数,得到所述目标视频。The video to be processed is processed by using the target video parameters, so that the video to be processed has the target video parameters, and the target video is obtained.

第三方面,本申请实施例提供了一种视频的处理装置,该装置包括:In a third aspect, the embodiment of the present application provides a video processing device, which includes:

第一确定模块,用于确定目标实体,所述目标实体用于确定拍摄目标视频时采用的视频参数;The first determining module is used to determine the target entity, and the target entity is used to determine the video parameters adopted when shooting the target video;

第二确定模块,用于根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;The second determination module is used to determine the target video parameters corresponding to the target entity according to the preset correspondence between the entity and the video parameters;

拍摄模块,用于根据所述目标视频参数,拍摄所述目标视频。A shooting module, configured to shoot the target video according to the target video parameters.

第四方面,本申请实施例还提供了一种视频的处理装置,该装置包括:In the fourth aspect, the embodiment of the present application also provides a video processing device, which includes:

第二获取模块,用于获取待处理视频,并确定所述待处理视频中包含的目标实体,所述目标实体用于确定目标视频具有的视频参数;The second acquisition module is used to acquire the video to be processed, and determine the target entity contained in the video to be processed, and the target entity is used to determine the video parameters of the target video;

第四确定模块,用于根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;The fourth determination module is used to determine the target video parameters corresponding to the target entity according to the preset correspondence between the entity and the video parameters;

生成模块,用于利用所述目标视频参数对所述待处理视频进行处理,使得所述待处理视频具有所述目标视频参数,得到所述目标视频。A generating module, configured to use the target video parameters to process the video to be processed so that the video to be processed has the target video parameters to obtain the target video.

第五方面,本申请实施例还提供了一种电子设备,该电子设备包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或第二方面所述的方法的步骤。In the fifth aspect, the embodiment of the present application also provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, the program or instruction When executed by the processor, the steps of the method described in the first aspect or the second aspect are realized.

第六方面,本申请实施例还提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或第二方面所述的方法的步骤。In the sixth aspect, the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the implementation of the first aspect or the second aspect can be realized. steps of the method described above.

第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或第二方面所述的方法。In the seventh aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect Or the method described in the second aspect.

在本申请实施例中,确定目标实体,目标实体用于确定拍摄目标视频时采用的视频参数;根据预设的实体与视频参数之间对应关系,确定与目标实体对应的目标视频参数;根据目标视频参数,拍摄目标视频,本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄目标视频前,可以先获取用于确定拍摄目标视频时采用的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,并根据该目标视频参数拍摄得到目标视频,从而可以快速的确定拍摄目标视频的目标视频参数,获得质量较高的目标视频。In the embodiment of the present application, the target entity is determined, and the target entity is used to determine the video parameters used when shooting the target video; according to the preset correspondence between the entity and the video parameters, determine the target video parameters corresponding to the target entity; according to the target Video parameters, shooting target video. In this application, since the corresponding relationship between the entity and the video parameters can be set in advance, it is possible to pre-store the optimal video parameters when shooting the video, and compare the optimal video parameters with the entity. Establish a corresponding relationship between them, so that before shooting the target video, the target entity used to determine the video parameters used when shooting the target video can be obtained first, and then the better target video parameters corresponding to the target entity can be determined according to the corresponding relationship, The target video is obtained by shooting according to the target video parameters, so that the target video parameters of shooting the target video can be quickly determined, and a high-quality target video can be obtained.

附图说明Description of drawings

图1是本申请实施例提供的一种视频的处理方法的步骤流程图;FIG. 1 is a flow chart of the steps of a video processing method provided in an embodiment of the present application;

图2是本申请实施例提供的一种拍摄目标视频的示意图;FIG. 2 is a schematic diagram of a shooting target video provided by an embodiment of the present application;

图3是本申请实施例提供的一种应用目标视频参数的示意图;FIG. 3 is a schematic diagram of an application target video parameter provided by an embodiment of the present application;

图4是本申请实施例提供的另一种视频的处理方法的步骤流程图;FIG. 4 is a flow chart of the steps of another video processing method provided by the embodiment of the present application;

图5是本申请实施例提供的一种目标视频参数的选择示意图;Fig. 5 is a schematic diagram of selection of a target video parameter provided by an embodiment of the present application;

图6是本申请实施例提供的又一种视频的处理方法的步骤流程图;FIG. 6 is a flow chart of the steps of another video processing method provided by the embodiment of the present application;

图7是本申请实施例提供的一种视频的处理装置的框图;FIG. 7 is a block diagram of a video processing device provided by an embodiment of the present application;

图8是本申请实施例提供的另一种视频的处理装置的框图;FIG. 8 is a block diagram of another video processing device provided by an embodiment of the present application;

图9是本申请实施例提供的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频的处理进行详细地说明。The video processing provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

图1是本申请实施例提供的一种视频的处理方法的步骤流程图,如图1所示,该方法可以包括:Fig. 1 is a flow chart of the steps of a video processing method provided in the embodiment of the present application. As shown in Fig. 1, the method may include:

步骤101、确定目标实体,所述目标实体用于确定拍摄目标视频时采用的视频参数。Step 101. Determine a target entity, and the target entity is used to determine video parameters used when shooting a target video.

在该步骤中,首先可以确定目标实体,其中,所述目标实体用于确定拍摄目标视频时采用的视频参数。In this step, the target entity may first be determined, wherein the target entity is used to determine video parameters used when shooting the target video.

具体的,所述目标实体可以是包含在所述目标视频中的实体对象,也可以是不包含在所述目标视频的内容中的一个独立的实体对象。Specifically, the target entity may be an entity object included in the target video, or an independent entity object not included in the content of the target video.

图2是本申请实施例提供的一种拍摄目标视频的示意图,如图2所示,所述目标视频包含一栋房屋,以及房屋周围的树木和草坪,相应的,用于确定拍摄该目标视频时采用的视频参数的目标实体,可以为该目标视频中包含的实体对象:房屋或树木,也可以不是该目标视频中包含的实体对象,例如,一个苹果或水杯等。Fig. 2 is a schematic diagram of a shooting target video provided by the embodiment of the present application. As shown in Fig. 2, the target video includes a house, trees and lawns around the house, correspondingly, it is used to determine the shooting of the target video The target entity of the video parameters used in the process may be a physical object contained in the target video: a house or a tree, or may not be a physical object contained in the target video, for example, an apple or a water cup.

其中,所述视频参数可以包括视频时长、视频中包含的音频、视频具有的滤镜模式和特效模式,以及视频的录制速度中的一种或多种。即在录制目标视频时,可以根据所述视频时长,确定录制的目标视频的时长;根据所述音频,为录制的目标视频中添加所述音频,从而使得目标视频具有背景音乐;根据确定的滤镜模式,为录制的目标视频添加相应的滤镜,从而使得目标视频的每一帧具有相应的滤镜;根据确定的特效模式,为录制的目标视频添加相应的特效,从而使得目标视频具有相应的特效;根据所述录制速度,确定录制目标视频时采用的录制速度。Wherein, the video parameters may include one or more of video duration, audio contained in the video, filter mode and special effect mode of the video, and video recording speed. That is, when recording the target video, the duration of the recorded target video can be determined according to the video duration; according to the audio, add the audio to the recorded target video, so that the target video has background music; Mirror mode, add corresponding filters to the recorded target video, so that each frame of the target video has a corresponding filter; according to the determined special effect mode, add corresponding special effects to the recorded target video, so that the target video has corresponding The special effect of ; according to the recording speed, determine the recording speed used when recording the target video.

步骤102、根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数。Step 102: Determine the target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter.

在该步骤中,可以根据预先设置的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数。In this step, the target video parameter corresponding to the target entity may be determined according to the preset correspondence between the entity and the video parameter.

具体的,所述对应关系中的视频参数可以是具有较高摄影水平的用户,在拍摄视频时设置的视频参数,即较优的视频参数,具有该视频参数的视频的质量较高,所述对应关系中的实体可以是该用户在拍摄得到视频之后,利用电子设备中的实体识别功能,扫描并确定的一个实体对象,并在所述实体对象与视频参数之间建立关联关系,得到所述对应关系,以供其他用户可以通过扫描实体,从而获取对应的视频参数,进而根据该较优的视频参数录制得到同样视频质量较高的视频。Specifically, the video parameter in the corresponding relationship may be a video parameter set by a user with a higher photography level when shooting a video, that is, a better video parameter, and the quality of the video with this video parameter is higher. The entity in the corresponding relationship may be an entity object that the user scans and determines by using the entity recognition function in the electronic device after taking the video, and establishes an association relationship between the entity object and the video parameters to obtain the Corresponding relationship, so that other users can scan the entity to obtain the corresponding video parameters, and then record a video with the same high video quality according to the better video parameters.

例如,用户在拍摄得到质量较高的视频A之后,可以将视频A以及对应的视频参数A上传至云服务器,同时,用户可以扫描并确定包含在视频A中的实体B,使得在云服务器中建立视频参数A与实体B之间的对应关系;或者用户可以扫描并确定不包含视频A中的实体C,使得在云服务器中建立视频参数a与实体C之间的对应关系。For example, after the user shoots a video A with high quality, he can upload the video A and the corresponding video parameters A to the cloud server. At the same time, the user can scan and determine the entity B contained in the video A, so that in the cloud server Establish the correspondence between video parameter A and entity B; or the user can scan and determine that entity C in video A is not included, so that the correspondence between video parameter a and entity C is established in the cloud server.

步骤103、根据所述目标视频参数,拍摄所述目标视频。Step 103: Shoot the target video according to the target video parameters.

在该步骤中,在确定了与目标实体对应的目标视频参数之后,可以根据所述目标视频参数,拍摄得到目标视频。In this step, after the target video parameters corresponding to the target entity are determined, the target video may be captured according to the target video parameters.

具体的,在确定了用于拍摄目标视频的目标视频参数之后,用于拍摄目标视频的电子设备中,录像应用的各项参数可以自动调整为所述目标视频参数,从而在用户利用电子设备中的录像应用拍摄视频时,电子设备可以在拍摄时根据已经调整的视频参数进行录制。Specifically, after determining the target video parameters for shooting the target video, in the electronic device for shooting the target video, various parameters of the video recording application can be automatically adjusted to the target video parameters, so that when the user uses the electronic device When the video recording application shoots a video, the electronic device can record according to the adjusted video parameters when shooting.

例如,若确定的所述目标视频参数包括:视频时长为10秒;视频中包含的音频为背景音乐“献给爱丽丝”;视频具有的滤镜模式为黑白模式;视频具有的特效模式为对称模式;视频的录制速度为0.5倍速录制,则可以将电子设备的录像界面设置为黑白模式,并且使摄像头采集到的图像呈现在电子设备录像界面时呈对称模式,同时,以0.5倍速录制10秒,并为录制的视频添加背景音乐“献给爱丽丝”,从而最终得到具有目标视频参数的目标视频。For example, if the determined target video parameters include: the duration of the video is 10 seconds; the audio contained in the video is the background music "For Alice"; the filter mode of the video is black and white mode; the special effect mode of the video is symmetrical mode; if the video recording speed is 0.5x speed recording, you can set the video recording interface of the electronic device to black and white mode, and make the images collected by the camera appear in a symmetrical mode when displayed on the video recording interface of the electronic device. At the same time, record at 0.5x speed for 10 seconds , and add background music "for Alice" to the recorded video, so as to finally obtain the target video with the target video parameters.

比如,用户A在游览大雁塔景区时,可以拍摄一段包括大雁塔的视频A,并通过电子设备中的增强现实(Augmented Reality,AR)识别功能识别实体大雁塔,从而可以建立该视频A具有的视频参数A与实体大雁塔之间的对应关系,并将该对应关系上传至云服务器,图3是本申请实施例提供的一种应用目标视频参数的示意图,如图3所示,用户B可以在游览大雁塔景区时,通过电子设备中的AR识别功能识别实体大雁塔,将其确定为目标实体,从而根据云服务器中存储的对应关系,确定与目标实体大雁塔对应的目标视频参数为视频参数A,进而电子设备可以弹出弹窗“是否运用关联的视频参数”,询问用户是否运用根据目标实体大雁塔确定的目标视频参数,若接收到用户输入的确认操作,则用户B录制得到的目标视频B,具有与用户A录制得到的视频A相同的视频参数A。For example, when user A is visiting the Big Wild Goose Pagoda scenic spot, he can shoot a video A including the Big Wild Goose Pagoda, and recognize the actual Big Wild Goose Pagoda through the augmented reality (Augmented Reality, AR) recognition function in the electronic device, so that the video A can be established. The corresponding relationship between the video parameter A and the entity Big Wild Goose Pagoda, and upload the corresponding relationship to the cloud server. Figure 3 is a schematic diagram of an application target video parameter provided by the embodiment of the application. As shown in Figure 3, user B can When visiting the Big Wild Goose Pagoda scenic spot, the entity Big Wild Goose Pagoda is identified by the AR recognition function in the electronic device, and it is determined as the target entity, so that according to the corresponding relationship stored in the cloud server, the target video parameters corresponding to the target entity Big Wild Goose Pagoda are determined as video Parameter A, and then the electronic device can pop up a pop-up window "whether to use the associated video parameters", asking the user whether to use the target video parameters determined according to the target entity Big Wild Goose Pagoda. If the confirmation operation input by the user is received, the target recorded by user B Video B has the same video parameter A as video A recorded by user A.

在本申请实施例中,在利用电子设备识别得到目标实体,并确定与目标实体对应的目标视频参数之后,电子设备可以弹出弹窗询问是否运用该目标视频参数,若接收到用户输入的确认操作,则可以将电子设备中拍摄时间最近的视频作为待处理视频,并自动根据所述目标视频参数对所述待处理视频进行处理,使得所述待处理视频具有所述目标视频参数,从而得到目标视频。In the embodiment of the present application, after the electronic device is used to identify the target entity and determine the target video parameters corresponding to the target entity, the electronic device can pop up a pop-up window to ask whether to use the target video parameters. If the confirmation operation input by the user is received , then the video with the latest shooting time in the electronic device can be used as the video to be processed, and the video to be processed is automatically processed according to the target video parameters, so that the video to be processed has the target video parameters, so as to obtain the target video.

综上所述,本申请实施例提供的一种视频的处理方法,包括:确定目标实体,目标实体用于确定拍摄目标视频时采用的视频参数;根据预设的实体与视频参数之间对应关系,确定与目标实体对应的目标视频参数;根据目标视频参数,拍摄目标视频,本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄目标视频前,可以先获取用于确定拍摄目标视频时采用的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,并根据该目标视频参数拍摄得到目标视频,从而可以快速的确定拍摄目标视频的目标视频参数,获得质量较高的目标视频。In summary, a video processing method provided by the embodiment of the present application includes: determining the target entity, which is used to determine the video parameters used when shooting the target video; according to the preset correspondence between the entity and the video parameters , determine the target video parameters corresponding to the target entity; shoot the target video according to the target video parameters, in this application, since the correspondence between the entity and the video parameters can be set in advance, therefore, it is possible to pre-store the better video when shooting the video Parameters, and establish a corresponding relationship between the better video parameters and the entity, so that before shooting the target video, the target entity that is used to determine the video parameters used when shooting the target video can be obtained first, and then according to the corresponding relationship The optimal target video parameters corresponding to the target entity are determined, and the target video is captured according to the target video parameters, so that the target video parameters for shooting the target video can be quickly determined, and a high-quality target video can be obtained.

图4是本申请实施例提供的另一种视频的处理方法的步骤流程图,如图4所示,该方法可以包括:Fig. 4 is a flow chart of the steps of another video processing method provided in the embodiment of the present application. As shown in Fig. 4, the method may include:

步骤201、获取标准视频,并识别所述标准视频中包含的实体。Step 201. Acquire a standard video, and identify entities contained in the standard video.

在该步骤中,可以获取标准视频,并识别所述标准视频中包含的实体。In this step, a standard video can be obtained, and entities included in the standard video can be identified.

在本申请实施例中,所述标准视频可以是具有较好呈现效果的视频,即标准视频可以是具有较高录像能力的专业人员拍摄得到的视频,因此,该标准视频具有较优的视频参数。In the embodiment of the present application, the standard video may be a video with a better presentation effect, that is, the standard video may be a video shot by a professional with a higher video recording ability, therefore, the standard video has better video parameters .

进一步的,可以识别该标准视频对应的实体,所述实体可以是标准视频中包含的实体对象,也可以是不包含在所述标准视频中的一个独立的实体对象。Further, the entity corresponding to the standard video may be identified, and the entity may be an entity object included in the standard video, or an independent entity object not included in the standard video.

具体的,由于所述实体的作用是与标准视频的视频参数之间建立对应关系,起到检索并确定视频对象的功能,因此,所述实体可以是标准视频中包含的实体对象,也可以是不包含在所述标准视频中的一个独立的实体对象。Specifically, since the function of the entity is to establish a corresponding relationship with the video parameters of the standard video, and to retrieve and determine the video object, the entity may be an entity object included in the standard video, or it may be A separate entity object not included in the standard video.

在所述实体为标准视频中包含的实体对象时,所述对应关系为实体与包含该实体的标准视频具有的视频参数之间的对应关系,即所述实体与视频参数之间具有直接的关联,在后用户若想使用该视频参数,则可以直观、快速的确定获取该视频参数所需识别的实体,例如,若所述对应关系包括:大雁塔与包含大雁塔的一段标准视频的视频参数之间的对应关系,则在后用户想要调用包含大雁塔的一段标准视频的视频参数时,可以直接将大雁塔确定为需要扫描的实体,调用视频参数快速、直观。When the entity is an entity object contained in a standard video, the corresponding relationship is the corresponding relationship between the entity and the video parameters of the standard video containing the entity, that is, there is a direct relationship between the entity and the video parameters , if the user wants to use the video parameters in the future, he can intuitively and quickly determine the entity that needs to be identified to obtain the video parameters. For example, if the correspondence includes: the video parameters of the Big Wild Goose Pagoda and a standard video containing the Big Wild Goose Pagoda The corresponding relationship between them, when the user wants to call the video parameters of a standard video containing the Big Wild Goose Pagoda, he can directly determine the Big Wild Goose Pagoda as the entity that needs to be scanned, and calling the video parameters is fast and intuitive.

在所述实体是不包含在所述标准视频中的一个独立的实体对象时,所述对应关系为实体与标准视频具有的视频参数之间的对应关系,即所述实体与视频参数之间并没有直接的关联,该实体可以是在先用户选定的任意一个实体对象,在后用户若想使用该标准视频具有的视频参数,可以不需要必须前往所述标准视频的拍摄现场,才能扫描获取该标准视频中包含的实体对象,而是在任意包含实体的场景中均可以调用该标准视频具有的视频参数,例如,若所述对应关系包括:苹果实体与包含大雁塔的一段标准视频的视频参数之间的对应关系,在后用户若处于兵马俑景区,且想要调用包含大雁塔的一段标准视频的视频参数时,可以不用前往大雁搭景区,而是直接扫描一个苹果实体,就可以获取标准视频的视频参数,该过程不受地域的显示,调用视频参数快捷、方便。When the entity is an independent entity object not included in the standard video, the corresponding relationship is the corresponding relationship between the entity and the video parameters of the standard video, that is, there is no relationship between the entity and the video parameters There is no direct connection. This entity can be any entity object selected by the user earlier. If the user later wants to use the video parameters of the standard video, he does not need to go to the shooting site of the standard video to scan and obtain it. The entity object contained in the standard video, but the video parameters of the standard video can be called in any scene containing the entity. For example, if the corresponding relationship includes: an Apple entity and a video containing a standard video of the Big Wild Goose Pagoda The corresponding relationship between parameters, if the user is in the Terracotta Warriors and Horses Scenic Area and wants to call the video parameters of a standard video including the Big Wild Goose Pagoda, he can directly scan an Apple entity without going to the Wild Goose Pagoda Scenic Spot to obtain the standard The video parameters of the video, the process is not affected by the display of the region, and it is quick and convenient to call the video parameters.

步骤202、确定所述标准视频具有的视频参数,并建立所述实体与所述标准视频具有的视频参数之间的对应关系。Step 202: Determine the video parameters of the standard video, and establish a correspondence between the entity and the video parameters of the standard video.

在该步骤中,可以在获取到标准视频之后,确定所述标准视频具有的视频参数,从而建立所述实体与标准视频具有的视频参数之间的对应关系,以供在后用户可以通过扫描实体,调用标准视频具有的视频参数。In this step, after the standard video is obtained, the video parameters of the standard video can be determined, so as to establish the correspondence between the entity and the video parameters of the standard video, so that the user can scan the entity , calling the video parameters standard video has.

步骤203、启动电子设备的实体识别功能,利用所述实体识别功能扫描拍摄场景。Step 203, start the entity recognition function of the electronic device, and use the entity recognition function to scan the shooting scene.

在该步骤中,在后用户可以启动电子设备的实体识别功能,从而利用实体识别功能扫描拍摄场景,从而从拍摄场景中识别出目标实体。In this step, the user can later activate the entity recognition function of the electronic device, so as to use the entity recognition function to scan the shooting scene, thereby identifying the target entity from the shooting scene.

其中,所述目标实体为所述拍摄场景中包含的实体对象,所述目标实体可以是包含在最终获得的目标视频中的实体对象,也可以是不包含在所述目标视频的内容中的一个独立的实体对象。Wherein, the target entity is an entity object included in the shooting scene, and the target entity may be an entity object included in the finally obtained target video, or one not included in the content of the target video. Individual entity objects.

在本申请实施例中,所述电子设备的实体识别功能为电子设备中能够识别出场景中存在的实体对象的功能,例如:AR识别功能,以及电子设备中基于卷积神经网络对拍摄得到的图像,或视频中的视频帧进行特征提取和识别,从而判断出拍摄场景中具有的实体对象。In the embodiment of the present application, the entity recognition function of the electronic device is a function that can recognize the physical objects existing in the scene in the electronic device, such as: AR recognition function, and the electronic device based on the convolutional neural network to obtain the Feature extraction and recognition are performed on images, or video frames in videos, so as to determine the physical objects in the shooting scene.

其中,所述AR识别功能可以是基于即时定位与地图构建(simultaneouslocalization and mapping,SLAM)的AR技术,即利用电子设备的摄像头扫描拍摄场景,利用基于SLAM的AR技术确定拍摄场景中物体的大小,以及物体与电子设备的摄像头之间的距离,从而判断该物体是否为具有三维结构的实体对象。Wherein, the AR recognition function may be an AR technology based on simultaneous localization and mapping (SLAM), that is, the camera of the electronic device is used to scan the shooting scene, and the AR technology based on SLAM is used to determine the size of the object in the shooting scene, And the distance between the object and the camera of the electronic device, so as to determine whether the object is a solid object with a three-dimensional structure.

步骤204、从所述拍摄场景中识别出所述目标实体。Step 204, identifying the target entity from the shooting scene.

在该步骤中,可以利用电子设备的实体识别功能扫描拍摄场景,从而从拍摄场景中识别出用于确定目标视频参数的目标实体。In this step, the shooting scene may be scanned by using the entity recognition function of the electronic device, so as to identify the target entity used to determine the target video parameters from the shooting scene.

可选的,在所述拍摄场景中包含多个实体的情况下,步骤204具体可以包括:Optionally, in the case that the shooting scene contains multiple entities, step 204 may specifically include:

子步骤2041、从所述拍摄场景中识别出所述拍摄场景中包含的多个实体。Sub-step 2041, identifying multiple entities included in the shooting scene from the shooting scene.

在该步骤中,在所述拍摄场景中包含多个实体的情况下,利用电子设备的实体识别功能扫描拍摄场景时,可以识别出拍摄场景中包含的多个实体。In this step, when the shooting scene contains multiple entities, when the shooting scene is scanned by the entity recognition function of the electronic device, the multiple entities contained in the shooting scene can be identified.

子步骤2042、在接收到针对所述多个实体中所述目标实体的选择操作的情况下,根据所述选择操作确定所述目标实体。Sub-step 2042, in the case of receiving a selection operation for the target entity among the multiple entities, determine the target entity according to the selection operation.

在该步骤中,若从拍摄场景中识别出了多个实体,则可以进生成实体列表,以供用户选择,并在接收到针对多个实体中目标实体的选择操作的情况下,根据所述选择操作从多个实体中确定目标实体,以供进一步确定与该目标实体对应的目标视频参数。In this step, if multiple entities are identified from the shooting scene, an entity list can be generated for the user to select, and when a selection operation for a target entity among the multiple entities is received, according to the The selection operation determines a target entity from multiple entities for further determination of target video parameters corresponding to the target entity.

具体的,所述实体列表可以包括从拍摄场景中识别出的多个实体,还可以包括根据所述对应关系确定的每个实体对应的视频参数,从而在将该列表展示在电子设备的显示屏中时,用户可以通过显示屏中的多个实体以及对应的视频参数,根据想要调用的视频参数,将该视频参数对应的实体确定为目标实体,从而在多个实体中选择该目标实体。Specifically, the entity list may include multiple entities identified from the shooting scene, and may also include video parameters corresponding to each entity determined according to the correspondence, so that the list is displayed on the display screen of the electronic device In the middle, the user can determine the entity corresponding to the video parameter as the target entity according to the desired video parameter through the multiple entities and the corresponding video parameters in the display screen, so as to select the target entity among the multiple entities.

步骤205、根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数。Step 205: Determine the target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter.

本步骤的实现方式与上述步骤102的实现过程类似,此处不再赘述。The implementation of this step is similar to the implementation process of the above-mentioned step 102, and will not be repeated here.

步骤206、在所述目标视频参数为多个的情况下,显示与所述目标实体对应的多个目标视频参数。Step 206 , if there are multiple target video parameters, display multiple target video parameters corresponding to the target entity.

在该步骤中,由于所述视频参数可以包括视频时长、视频中包含的音频、视频具有的滤镜模式和特效模式,以及视频的录制速度中的一种或多种,因此,在确定的目标视频参数为多个的情况下,可以在电子设备的显示屏中显示与目标实体对应的多个目标视频参数。In this step, since the video parameters may include one or more of the duration of the video, the audio contained in the video, the filter mode and special effect mode of the video, and the recording speed of the video, the determined target In the case of multiple video parameters, multiple target video parameters corresponding to the target entity may be displayed on the display screen of the electronic device.

图5是本申请实施例提供的一种目标视频参数的选择示意图,如图5所示,用户在扫描拍摄场景识别得到目标实体,并确定了与目标实体对应的目标视频参数之后,由于所述目标视频参数包括:视频时长、滤镜模式和录制速度等多个参数,因此,可以将多个目标视频参数显示在电子设备的显示屏中,以供用户选择最终拍摄目标视频所需要的录制视频参数。Fig. 5 is a schematic diagram of a selection of target video parameters provided by the embodiment of the present application. As shown in Fig. 5, after the user scans the shooting scene to identify the target entity and determines the target video parameters corresponding to the target entity, due to the Target video parameters include: multiple parameters such as video duration, filter mode, and recording speed. Therefore, multiple target video parameters can be displayed on the display screen of the electronic device for the user to select the recording video required for the final shooting of the target video parameter.

步骤207、在接收到针对所述多个目标视频参数中录制视频参数的选择操作的情况下,根据所述录制视频参数,拍摄所述目标视频。Step 207: Shooting the target video according to the recording video parameters when a selection operation for the recording video parameters among the plurality of target video parameters is received.

在该步骤中,在确定的目标视频参数为多个,并在电子设备的显示屏中显示与目标实体对应的多个目标视频参数之后,电子设备可以接收用户的选择操作从而确定用户选择最终拍摄目标视频所需要的录制视频参数。In this step, after determining multiple target video parameters and displaying multiple target video parameters corresponding to the target entity on the display screen of the electronic device, the electronic device may receive the user's selection operation so as to determine that the user selects the final shooting The recording video parameters required by the target video.

具体的,电子设备在接收到针对多个目标视频参数中录制视频参数的选择操作的情况下,根据确定的录制视频参数,拍摄得到目标视频。Specifically, when the electronic device receives a selection operation for recording video parameters among the multiple target video parameters, it captures the target video according to the determined recording video parameters.

例如,参照图5,若用户通过电子设备的AR识别功能,识别得到目标实体为大雁塔,并根据预置的实体与视频参数之间的对应关系,确定与目标实体大雁塔对应的多个目标视频参数包括:视频时长为10秒;视频具有的滤镜模式为黑白模式;视频的录制速度为0.5倍速录制,则可以将多个目标实体参数显示在电子设备的显示屏中共用户选择,若用户从目标视频参数中选择视频具有的滤镜模式为黑白模式作为录制视频参数,则可以调整电子设备的录像应用,使其具有黑白模式的滤镜,从而在用户利用电子设备进行拍摄时,可以得到具有黑白模式滤镜的目标视频。For example, referring to Figure 5, if the user recognizes the target entity as the Big Wild Goose Pagoda through the AR recognition function of the electronic device, and determines multiple targets corresponding to the target entity Big Wild Goose Pagoda according to the correspondence between the preset entity and video parameters The video parameters include: the video duration is 10 seconds; the filter mode of the video is black and white mode; the recording speed of the video is 0.5 times the recording speed, and multiple target entity parameters can be displayed on the display screen of the electronic device for the user to choose. Select the filter mode that the video has from the target video parameters as the black and white mode as the recording video parameter, then you can adjust the video recording application of the electronic device to have a filter in the black and white mode, so that when the user uses the electronic device to shoot, you can get Target video with black and white mode filter.

在本申请实施例中,在确定了录制视频参数之后,电子设备可以弹出弹窗询问是否运用该录制视频参数,若接收到用户输入的确认操作,则修改该电子设备的录像应用的各项参数,使得应用该电子设备的录像应用拍摄得到的目标视频具有所述录制视频参数。In this embodiment of the application, after determining the recording video parameters, the electronic device can pop up a pop-up window to ask whether to use the recording video parameters, and if the confirmation operation input by the user is received, then modify the various parameters of the recording application of the electronic device , so that the target video captured by the video recording application of the electronic device has the recorded video parameters.

综上所述,本申请实施例提供的一种视频的处理方法,包括:确定目标实体,目标实体用于确定拍摄目标视频时采用的视频参数;根据预设的实体与视频参数之间对应关系,确定与目标实体对应的目标视频参数;根据目标视频参数,拍摄目标视频,本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄目标视频前,可以先获取用于确定拍摄目标视频时采用的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,并根据该目标视频参数拍摄得到目标视频,从而可以快速的确定拍摄目标视频的目标视频参数,获得质量较高的目标视频。In summary, a video processing method provided by the embodiment of the present application includes: determining the target entity, which is used to determine the video parameters used when shooting the target video; according to the preset correspondence between the entity and the video parameters , determine the target video parameters corresponding to the target entity; shoot the target video according to the target video parameters, in this application, since the correspondence between the entity and the video parameters can be set in advance, therefore, it is possible to pre-store the better video when shooting the video Parameters, and establish a corresponding relationship between the better video parameters and the entity, so that before shooting the target video, the target entity that is used to determine the video parameters used when shooting the target video can be obtained first, and then according to the corresponding relationship The optimal target video parameters corresponding to the target entity are determined, and the target video is captured according to the target video parameters, so that the target video parameters for shooting the target video can be quickly determined, and a high-quality target video can be obtained.

此外,在确定的目标视频参数为多个的情况下,用户还可以从多个目标视频参数中自主选择最终拍摄目标视频所需要的录制视频参数,从而不需要将标准视频整体的呈现效果全部应用在待处理视频中,而根据用户的偏好,选择部分呈现效果进行应用,从而提高了用户的使用体验度,并提高了视频处理的灵活性。In addition, when there are multiple target video parameters determined, the user can also independently select the recording video parameters required for the final shooting of the target video from among the multiple target video parameters, so that it is not necessary to apply all the overall rendering effects of the standard video In the video to be processed, some rendering effects are selected and applied according to the user's preference, thereby improving the user experience and improving the flexibility of video processing.

图6是本申请实施例提供的又一种视频的处理方法的步骤流程图,如图6所示,该方法可以包括:Fig. 6 is a flow chart of the steps of another video processing method provided by the embodiment of the present application. As shown in Fig. 6, the method may include:

步骤301、获取待处理视频,并确定所述待处理视频中包含的目标实体,所述目标实体用于确定目标视频具有的视频参数。Step 301. Acquire a video to be processed, and determine a target entity included in the video to be processed, and the target entity is used to determine video parameters of the target video.

在该步骤中,首先可以获取需要重新确定视频参数的待处理视频,以供对所述待处理图像进行处理,修改其视频参数,从而得到目标视频。其中,所述待处理视频中包含用于确定目标视频具有的视频参数的目标实体。In this step, firstly, the video to be processed whose video parameters need to be re-determined can be acquired, so as to process the image to be processed, and modify its video parameters, so as to obtain the target video. Wherein, the video to be processed includes a target entity for determining video parameters of the target video.

需要说明的是,所述目标实体可以是包含在所述待处理视频中的实体对象,也可以是不包含在所述待处理视频的内容中的一个独立的实体对象。It should be noted that the target entity may be an entity object included in the video to be processed, or an independent entity object not included in the content of the video to be processed.

具体的,用户C可以利用电子设备中的录像应用,摄制得到待处理视频,一般情况下,若用户C不具有专业的录像能力,则所述待处理视频具有的视频参数不是较优的参数,待处理视频呈现的效果也不是较优的效果,此时,用户C可以利用电子设备中的实体识别功能,确定与该待处理视频对应的目标实体,从而可以进一步根据目标实体确定将待处理视频进行相应处理后得到,具有较优呈现效果的目标视频具有的视频参数,以供根据该视频参数对待处理视频进行处理。Specifically, user C can use the video recording application in the electronic device to obtain the video to be processed. Generally, if user C does not have professional video recording capabilities, the video parameters of the video to be processed are not optimal parameters. The effect of the video to be processed is not a good effect. At this time, user C can use the entity recognition function in the electronic device to determine the target entity corresponding to the video to be processed, so that the video to be processed can be further determined according to the target entity. After corresponding processing, the video parameters of the target video with better rendering effect are obtained, and are used for processing the video to be processed according to the video parameters.

其中,所述视频参数可以包括视频时长、视频中包含的音频、视频具有的滤镜模式和特效模式,以及视频的录制速度中的一种或多种。即在录制待处理视频时,可以根据所述视频时长,确定录制的待处理视频的时长;根据所述音频,为录制的待处理视频中添加所述音频,从而使得待处理视频具有背景音乐;根据确定的滤镜模式,为录制的待处理视频添加相应的滤镜,从而使得待处理视频的每一帧具有相应的滤镜;根据确定的特效模式,为录制的待处理视频添加相应的特效,从而使得待处理视频具有相应的特效;根据所述录制速度,确定录制待处理视频时采用的录制速度。Wherein, the video parameters may include one or more of video duration, audio contained in the video, filter mode and special effect mode of the video, and video recording speed. That is, when recording the video to be processed, the duration of the recorded video to be processed can be determined according to the duration of the video; according to the audio, the audio is added to the recorded video to be processed, so that the video to be processed has background music; According to the determined filter mode, add corresponding filters to the recorded video to be processed, so that each frame of the video to be processed has a corresponding filter; according to the determined special effect mode, add corresponding special effects to the recorded video to be processed , so that the video to be processed has a corresponding special effect; according to the recording speed, determine the recording speed used when recording the video to be processed.

步骤302、根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数。Step 302: Determine the target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter.

本步骤的实现方式与上述步骤102的实现过程类似,此处不再赘述。The implementation of this step is similar to the implementation process of the above-mentioned step 102, and will not be repeated here.

步骤303、利用所述目标视频参数对所述待处理视频进行处理,使得所述待处理视频具有所述目标视频参数,得到所述目标视频。Step 303: Process the video to be processed by using the target video parameters, so that the video to be processed has the target video parameters, and obtain the target video.

在该步骤中,在确定了与目标实体对应的目标视频参数之后,可以根据所述目标视频参数对待处理视频进行处理,使得待处理视频具有目标视频参数,得到目标视频。In this step, after the target video parameters corresponding to the target entity are determined, the video to be processed may be processed according to the target video parameters, so that the video to be processed has the target video parameters to obtain the target video.

具体的,在获取到待处理视频之后,可以首先分析该待处理视频,确定待处理视频具有的原视频参数,例如,所述待处理视频的时长为30秒、不包含音频、画面具有暖调滤镜、不具有特效、正常录制速度。Specifically, after the video to be processed is obtained, the video to be processed can be analyzed first to determine the original video parameters of the video to be processed, for example, the video to be processed is 30 seconds long, does not contain audio, and has a warm tone Filter, no special effects, normal recording speed.

进一步的,在确定了目标视频参数之后,可以将所处理视频具有的原视频参数,替换为所述目标视频参数,完成对所述待处理视频的处理,例如,若所述目标视频参数为:时长为10秒、视频中包含的音频为背景音乐“献给爱丽丝”、滤镜模式为黑白模式、特效模式为对称模式、录制速度为0.5倍速录制,则可以将待处理视频的原视频参数替换为目标视频参数,使得待处理视频具有目标视频参数,从而得到目标视频。Further, after the target video parameters are determined, the original video parameters of the processed video may be replaced with the target video parameters to complete the processing of the video to be processed. For example, if the target video parameters are: If the duration is 10 seconds, the audio contained in the video is the background music "For Alice", the filter mode is black and white mode, the special effect mode is symmetrical mode, and the recording speed is 0.5 times the recording speed, then the original video parameters of the video to be processed can be Replace with the target video parameters, so that the video to be processed has the target video parameters, so as to obtain the target video.

因此,所述目标视频包含的视频内容与待处理视频的视频内容相同,但其视频参数为根据目标实体确定的目标视频参数,由于所述目标视频参数是根据预先设置的实体与视频参数之间对应关系确定的,因此,可以将具有专业录像能力的用户拍摄得到的标准视频具有的视频参数,与某一实体之间建立对应关系并存储,使得其他用户可以通过扫描该实体获取到标准视频具有的视频参数,并将该视频参数运用在自己拍摄的视频中,使得自己拍摄的视频也具有较优的视频参数,从而得到具有较好呈现效果的视频。Therefore, the video content contained in the target video is the same as that of the video to be processed, but its video parameters are target video parameters determined according to the target entity. The corresponding relationship is determined. Therefore, the video parameters of the standard video captured by the user with professional video recording capabilities can be established and stored in a corresponding relationship with a certain entity, so that other users can obtain the standard video by scanning the entity. video parameters, and use the video parameters in the video shot by oneself, so that the video shot by oneself also has better video parameters, so as to obtain a video with better rendering effect.

综上所述,本申请实施例提供的一种视频的处理方法,包括:获取待处理视频,并确定待处理视频中包含的目标实体,目标实体用于确定目标视频具有的视频参数;根据预设的实体与视频参数之间对应关系,确定与目标实体对应的目标视频参数;利用目标视频参数对待处理视频进行处理,使得待处理视频具有目标视频参数,得到目标视频,本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄得到待处理视频之后,可以进一步获取用于确定待处理视频较优的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,从而可以快速的确定拍摄目标视频的目标视频参数,并利用目标视频参数对待处理视频进行处理,使得待处理视频具有较高的视频质量。To sum up, the video processing method provided by the embodiment of the present application includes: obtaining the video to be processed, and determining the target entity contained in the video to be processed, and the target entity is used to determine the video parameters of the target video; The corresponding relationship between the established entity and the video parameters is determined to determine the target video parameters corresponding to the target entity; the video to be processed is processed using the target video parameters, so that the video to be processed has the target video parameters, and the target video is obtained. In this application, due to the The correspondence between entities and video parameters is set in advance, therefore, it is possible to pre-store better video parameters when shooting videos, and establish a correspondence between the better video parameters and entities, so that after shooting the video to be processed , can further obtain the target entity used to determine the better video parameters of the video to be processed, and then can determine the better target video parameters corresponding to the target entity according to the correspondence, so that the target video for shooting the target video can be quickly determined parameters, and use the target video parameters to process the video to be processed, so that the video to be processed has a higher video quality.

需要说明的是,本申请实施例提供的视频的处理方法,执行主体可以为视频的处理装置,或者该视频的处理装置中的用于执行加载视频的处理方法的控制模块。本申请实施例中以视频的处理装置执行加载视频的处理方法为例,说明本申请实施例提供的视频的处理方法。It should be noted that, the video processing method provided in the embodiment of the present application may be executed by a video processing device, or a control module in the video processing device for executing the loading video processing method. In the embodiment of the present application, the video processing method provided by the embodiment of the present application is described by taking the video processing device executing the processing method of loading the video as an example.

图7是本申请实施例提供的一种视频的处理装置的框图,如图7所示,该装置400包括:FIG. 7 is a block diagram of a video processing device provided in an embodiment of the present application. As shown in FIG. 7, the device 400 includes:

第一确定模块401,用于确定目标实体,所述目标实体用于确定拍摄目标视频时采用的视频参数;The first determination module 401 is used to determine the target entity, and the target entity is used to determine the video parameters used when shooting the target video;

第二确定模块402,用于根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;The second determination module 402 is configured to determine the target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter;

拍摄模块403,用于根据所述目标视频参数,拍摄所述目标视频。The photographing module 403 is configured to photograph the target video according to the target video parameters.

可选的,所述装置还包括:Optionally, the device also includes:

第一获取模块,用于获取标准视频,并识别所述标准视频中包含的实体;A first acquisition module, configured to acquire a standard video and identify entities contained in the standard video;

第三确定模块,用于确定所述标准视频具有的视频参数,并建立所述实体与所述标准视频具有的视频参数之间的对应关系。The third determining module is configured to determine the video parameters of the standard video, and establish a correspondence between the entity and the video parameters of the standard video.

可选的,所述第一确定模块401,包括:Optionally, the first determining module 401 includes:

扫描子模块,用于启动电子设备的实体识别功能,利用所述实体识别功能扫描拍摄场景;The scanning sub-module is used to start the entity recognition function of the electronic device, and use the entity recognition function to scan the shooting scene;

识别子模块,用于从所述拍摄场景中识别出所述目标实体。The identification submodule is used to identify the target entity from the shooting scene.

可选的,在所述拍摄场景中包含多个实体的情况下,所述识别子模块,包括:Optionally, in the case that the shooting scene contains multiple entities, the identification submodule includes:

识别单元,用于从所述拍摄场景中识别出所述拍摄场景中包含的多个实体;An identification unit, configured to identify a plurality of entities included in the shooting scene from the shooting scene;

确定单元,用于在接收到针对所述多个实体中所述目标实体的选择操作的情况下,根据所述选择操作确定所述目标实体。A determining unit, configured to determine the target entity according to the selection operation when a selection operation for the target entity among the plurality of entities is received.

可选的,在所述目标视频参数为多个的情况下,所述拍摄模块403,包括:Optionally, when there are multiple target video parameters, the shooting module 403 includes:

显示子模块,用于显示与所述目标实体对应的多个目标视频参数;A display submodule, configured to display a plurality of target video parameters corresponding to the target entity;

拍摄子模块,用于在接收到针对所述多个目标视频参数中录制视频参数的选择操作的情况下,根据所述录制视频参数,拍摄所述目标视频。The shooting sub-module is configured to shoot the target video according to the recording video parameters when a selection operation for the recording video parameters among the plurality of target video parameters is received.

可选的,所述视频参数包括:视频时长、视频中包含的音频、视频具有的滤镜模式和特效模式,以及视频的录制速度中的一种或多种。Optionally, the video parameters include: one or more of video duration, audio contained in the video, filter mode and special effect mode of the video, and video recording speed.

本申请实施例中的视频的处理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The video processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). , PDA), etc., non-mobile electronic equipment can be server, network attached storage (NetworkAttached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., the embodiment of the present application Not specifically limited.

本申请实施例中的视频的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The video processing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

本申请实施例提供的视频的处理装置能够实现图1和图4的方法实施例中视频的处理装置实现的各个过程,为避免重复,这里不再赘述。The video processing device provided in the embodiment of the present application can implement various processes implemented by the video processing device in the method embodiments in FIG. 1 and FIG. 4 , and details are not repeated here to avoid repetition.

综上所述,本申请实施例提供的一种视频的处理装置,包括:确定目标实体,目标实体用于确定拍摄目标视频时采用的视频参数;根据预设的实体与视频参数之间对应关系,确定与目标实体对应的目标视频参数;根据目标视频参数,拍摄目标视频,本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄目标视频前,可以先获取用于确定拍摄目标视频时采用的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,并根据该目标视频参数拍摄得到目标视频,从而可以快速的确定拍摄目标视频的目标视频参数,获得质量较高的目标视频。To sum up, the embodiment of the present application provides a video processing device, including: determining the target entity, the target entity is used to determine the video parameters used when shooting the target video; according to the preset correspondence between the entity and the video parameters , determine the target video parameters corresponding to the target entity; shoot the target video according to the target video parameters, in this application, since the correspondence between the entity and the video parameters can be set in advance, therefore, it is possible to pre-store the better video when shooting the video Parameters, and establish a corresponding relationship between the better video parameters and the entity, so that before shooting the target video, the target entity that is used to determine the video parameters used when shooting the target video can be obtained first, and then according to the corresponding relationship The optimal target video parameters corresponding to the target entity are determined, and the target video is captured according to the target video parameters, so that the target video parameters for shooting the target video can be quickly determined, and a high-quality target video can be obtained.

图8是本申请实施例提供的另一种视频的处理装置的框图,如图8所示,该装置500包括:Fig. 8 is a block diagram of another video processing device provided by the embodiment of the present application. As shown in Fig. 8, the device 500 includes:

第二获取模块501,用于获取待处理视频,并确定所述待处理视频中包含的目标实体,所述目标实体用于确定目标视频具有的视频参数;The second obtaining module 501 is used to obtain the video to be processed, and determine the target entity contained in the video to be processed, and the target entity is used to determine the video parameters of the target video;

第四确定模块502,用于根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;The fourth determining module 502 is configured to determine target video parameters corresponding to the target entity according to the preset correspondence between entities and video parameters;

生成模块503,用于利用所述目标视频参数对所述待处理视频进行处理,使得所述待处理视频具有所述目标视频参数,得到所述目标视频。The generating module 503 is configured to use the target video parameters to process the video to be processed so that the video to be processed has the target video parameters to obtain the target video.

本申请实施例中的视频的处理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The video processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). , PDA), etc., non-mobile electronic equipment can be server, network attached storage (NetworkAttached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., the embodiment of the present application Not specifically limited.

本申请实施例中的视频的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The video processing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

本申请实施例提供的视频的处理装置能够实现图6的方法实施例中视频的处理装置实现的各个过程,为避免重复,这里不再赘述。The video processing device provided in the embodiment of the present application can implement various processes implemented by the video processing device in the method embodiment in FIG. 6 , and details are not repeated here to avoid repetition.

综上所述,本申请实施例提供的一种视频的处理装置,包括:获取待处理视频,并确定待处理视频中包含的目标实体,目标实体用于确定目标视频具有的视频参数;根据预设的实体与视频参数之间对应关系,确定与目标实体对应的目标视频参数;利用目标视频参数对待处理视频进行处理,使得待处理视频具有目标视频参数,得到目标视频,本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄得到待处理视频之后,可以进一步获取用于确定待处理视频较优的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,从而可以快速的确定拍摄目标视频的目标视频参数,并利用目标视频参数对待处理视频进行处理,使得待处理视频具有较高的视频质量。To sum up, the embodiment of the present application provides a video processing device, including: acquiring the video to be processed, and determining the target entity contained in the video to be processed, the target entity is used to determine the video parameters of the target video; The corresponding relationship between the established entity and the video parameters is determined to determine the target video parameters corresponding to the target entity; the video to be processed is processed using the target video parameters, so that the video to be processed has the target video parameters, and the target video is obtained. In this application, due to the The correspondence between entities and video parameters is set in advance, therefore, it is possible to pre-store better video parameters when shooting videos, and establish a correspondence between the better video parameters and entities, so that after shooting the video to be processed , can further obtain the target entity used to determine the better video parameters of the video to be processed, and then can determine the better target video parameters corresponding to the target entity according to the correspondence, so that the target video for shooting the target video can be quickly determined parameters, and use the target video parameters to process the video to be processed, so that the video to be processed has a higher video quality.

可选的,本申请实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序或指令,该程序或指令被处理器执行时实现上述视频的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor. When the program or instruction is executed by the processor, the above-mentioned Each process of the embodiment of the video processing method can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。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.

图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc. part.

本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 600 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 610 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .

其中,处理器610,用于确定目标实体,所述目标实体用于确定拍摄目标视频时采用的视频参数;Wherein, the processor 610 is configured to determine the target entity, and the target entity is used to determine the video parameters used when shooting the target video;

根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;determining a target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter;

根据所述目标视频参数,拍摄所述目标视频。Shooting the target video according to the target video parameters.

本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄目标视频前,可以先获取用于确定拍摄目标视频时采用的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,并根据该目标视频参数拍摄得到目标视频,从而可以快速的确定拍摄目标视频的目标视频参数,获得质量较高的目标视频。In this application, since the corresponding relationship between entities and video parameters can be set in advance, it is possible to pre-store better video parameters when shooting videos, and establish a corresponding relationship between the better video parameters and entities, so that in Before shooting the target video, the target entity used to determine the video parameters used when shooting the target video can be obtained first, and then the better target video parameters corresponding to the target entity can be determined according to the corresponding relationship, and the target video parameters can be taken according to the target video The target video is obtained, so that the target video parameters for shooting the target video can be quickly determined, and a high-quality target video can be obtained.

可选的,处理器610,还用于获取标准视频,并识别所述标准视频中包含的实体;Optionally, the processor 610 is further configured to acquire a standard video, and identify entities contained in the standard video;

确定所述标准视频具有的视频参数,并建立所述实体与所述标准视频具有的视频参数之间的对应关系。Determine the video parameters of the standard video, and establish a correspondence between the entity and the video parameters of the standard video.

可选的,处理器610,还用于启动电子设备的实体识别功能,利用所述实体识别功能扫描拍摄场景;Optionally, the processor 610 is further configured to start an entity recognition function of the electronic device, and use the entity recognition function to scan the shooting scene;

从所述拍摄场景中识别出所述目标实体。The target entity is identified from the shooting scene.

可选的,处理器610,还用于从所述拍摄场景中识别出所述拍摄场景中包含的多个实体;Optionally, the processor 610 is further configured to identify a plurality of entities contained in the shooting scene from the shooting scene;

在接收到针对所述多个实体中所述目标实体的选择操作的情况下,根据所述选择操作确定所述目标实体。In case a selection operation for the target entity among the plurality of entities is received, the target entity is determined according to the selection operation.

可选的,显示单元606,用于显示与所述目标实体对应的多个目标视频参数;Optionally, a display unit 606, configured to display multiple target video parameters corresponding to the target entity;

处理器610,还用于在接收到针对所述多个目标视频参数中录制视频参数的选择操作的情况下,根据所述录制视频参数,拍摄所述目标视频。The processor 610 is further configured to shoot the target video according to the recording video parameters in a case of receiving a selection operation for the recording video parameters among the plurality of target video parameters.

本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄目标视频前,可以先获取用于确定拍摄目标视频时采用的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,并根据该目标视频参数拍摄得到目标视频,从而可以快速的确定拍摄目标视频的目标视频参数,获得质量较高的目标视频。In this application, since the corresponding relationship between entities and video parameters can be set in advance, it is possible to pre-store better video parameters when shooting videos, and establish a corresponding relationship between the better video parameters and entities, so that in Before shooting the target video, the target entity used to determine the video parameters used when shooting the target video can be obtained first, and then the better target video parameters corresponding to the target entity can be determined according to the corresponding relationship, and the target video parameters can be taken according to the target video The target video is obtained, so that the target video parameters for shooting the target video can be quickly determined, and a high-quality target video can be obtained.

此外,处理器610,还用于获取待处理视频,并确定所述待处理视频中包含的目标实体,所述目标实体用于确定目标视频具有的视频参数;In addition, the processor 610 is further configured to acquire a video to be processed, and determine a target entity included in the video to be processed, and the target entity is used to determine video parameters of the target video;

根据预设的实体与视频参数之间对应关系,确定与所述目标实体对应的目标视频参数;determining a target video parameter corresponding to the target entity according to the preset correspondence between the entity and the video parameter;

利用所述目标视频参数对所述待处理视频进行处理,使得所述待处理视频具有所述目标视频参数,得到所述目标视频。The video to be processed is processed by using the target video parameters, so that the video to be processed has the target video parameters, and the target video is obtained.

本申请中,由于可以预先设置实体与视频参数之间的对应关系,因此,可以预先存储拍摄视频时较优的视频参数,并将该较优的视频参数与实体之间建立对应关系,从而在拍摄得到待处理视频之后,可以进一步获取用于确定待处理视频较优的视频参数的目标实体,进而可以根据所述对应关系确定与目标实体对应的较优的目标视频参数,从而可以快速的确定拍摄目标视频的目标视频参数,并利用目标视频参数对待处理视频进行处理,使得待处理视频具有较高的视频质量。In this application, since the corresponding relationship between entities and video parameters can be set in advance, it is possible to pre-store better video parameters when shooting videos, and establish a corresponding relationship between the better video parameters and entities, so that in After the video to be processed is captured, the target entity used to determine the better video parameters of the video to be processed can be further obtained, and then the better target video parameters corresponding to the target entity can be determined according to the corresponding relationship, so that it can be quickly determined The target video parameters of the target video are captured, and the target video parameters are used to process the video to be processed, so that the video to be processed has a higher video quality.

应理解的是,本申请实施例中,输入单元604可以包括图形处理器(GraphicsProcessing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。It should be understood that, in the embodiment of the present application, the input unit 604 may include a graphics processing unit (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processing unit 6041 is compatible with an image capture device (such as Camera) to process the image data of still pictures or videos. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts, a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 609 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by the processor, each process of the above-mentioned video processing method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述视频的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned embodiment of the video processing method Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising 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, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but 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 Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (9)

1. A method of processing video, the method comprising:
determining a target entity, wherein the target entity is used for determining video parameters adopted when shooting target videos;
determining a target video parameter corresponding to the target entity according to a corresponding relation between a preset entity and the video parameter;
shooting the target video according to the target video parameters;
the target entity comprises: entity objects not included in the content of the target video;
before the step of determining the target video parameter corresponding to the target entity according to the corresponding relation between the preset entity and the video parameter, the method further comprises:
acquiring standard videos and entities selected by users; the entity is an entity object not included in the standard video;
and determining video parameters of the standard video, and establishing a corresponding relation between the entity and the video parameters of the standard video.
2. The method of claim 1, wherein the step of determining the target entity comprises:
starting an entity identification function of the electronic equipment, and scanning a shooting scene by utilizing the entity identification function;
And identifying the target entity from the shooting scene.
3. The method according to claim 2, wherein in case a plurality of entities are contained in the shooting scene, the step of identifying the target entity from the shooting scene comprises:
identifying a plurality of entities contained in the shooting scene from the shooting scene;
upon receiving a selection operation for the target entity of the plurality of entities, determining the target entity according to the selection operation.
4. The method according to claim 1, wherein in the case where the target video parameter is plural, the step of photographing the target video according to the target video parameter includes:
displaying a plurality of target video parameters corresponding to the target entity;
and shooting the target video according to the recorded video parameters under the condition that a selection operation of the recorded video parameters in the plurality of target video parameters is received.
5. The method of claim 1, wherein the video parameters comprise: one or more of video duration, audio contained in the video, filter mode and special effect mode possessed by the video, and recording speed of the video.
6. A method of processing video, the method comprising:
acquiring a video to be processed, and determining a target entity corresponding to the video to be processed, wherein the target entity is used for determining video parameters of the target video; the target entity comprises: entity objects not included in the content of the video to be processed;
determining a target video parameter corresponding to the target entity according to a corresponding relation between a preset entity and the video parameter;
processing the video to be processed by utilizing the target video parameters so that the video to be processed has the target video parameters to obtain the target video;
before determining the target video parameter corresponding to the target entity according to the corresponding relation between the preset entity and the video parameter, the method further comprises:
acquiring standard videos and entities selected by users; the entity is an entity object not included in the standard video;
and determining video parameters of the standard video, and establishing a corresponding relation between the entity and the video parameters of the standard video.
7. A video processing apparatus, the apparatus comprising:
The first determining module is used for determining a target entity, wherein the target entity is used for determining video parameters adopted when shooting a target video;
the second determining module is used for determining a target video parameter corresponding to the target entity according to the corresponding relation between the preset entity and the video parameter;
the shooting module is used for shooting the target video according to the target video parameters;
the target entity comprises: entity objects not included in the content of the target video;
the device is also used for acquiring standard videos and entities selected by users; the entity is an entity object not included in the standard video; and determining video parameters of the standard video, and establishing a corresponding relation between the entity and the video parameters of the standard video.
8. A video processing apparatus, the apparatus comprising:
the second acquisition module is used for acquiring the video to be processed and determining a target entity corresponding to the video to be processed, wherein the target entity is used for determining video parameters of the target video; the target entity comprises: entity objects not included in the content of the video to be processed;
A fourth determining module, configured to determine a target video parameter corresponding to the target entity according to a corresponding relationship between a preset entity and the video parameter;
the generating module is used for processing the video to be processed by utilizing the target video parameters, so that the video to be processed has the target video parameters, and the target video is obtained;
the device is also used for acquiring standard videos and entities selected by users; the entity is an entity object not included in the standard video; and determining video parameters of the standard video, and establishing a corresponding relation between the entity and the video parameters of the standard video.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the method of processing video according to any one of claims 1 to 6.
CN202011348814.6A 2020-11-26 2020-11-26 Video processing method and device and electronic equipment Active CN112532904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011348814.6A CN112532904B (en) 2020-11-26 2020-11-26 Video processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011348814.6A CN112532904B (en) 2020-11-26 2020-11-26 Video processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112532904A CN112532904A (en) 2021-03-19
CN112532904B true CN112532904B (en) 2023-05-02

Family

ID=74993879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011348814.6A Active CN112532904B (en) 2020-11-26 2020-11-26 Video processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112532904B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596320B (en) * 2021-06-16 2022-07-01 荣耀终端有限公司 Video shooting variable speed recording method, device and storage medium
CN115442555A (en) * 2021-12-30 2022-12-06 佛山欧神诺云商科技有限公司 A method, device, medium and product for dynamically recording video frame by frame
CN115361516A (en) * 2022-08-24 2022-11-18 维沃移动通信有限公司 Video recording method and device, electronic equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566728A (en) * 2017-09-25 2018-01-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107809598B (en) * 2017-11-16 2019-11-29 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and server
CN108229369B (en) * 2017-12-28 2020-06-02 Oppo广东移动通信有限公司 Image capturing method, device, storage medium and electronic device
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjustment method, device and electronic device

Also Published As

Publication number Publication date
CN112532904A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN113727012B (en) A shooting method and terminal
CN108965982B (en) Video recording method and device, electronic equipment and readable storage medium
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US11094110B2 (en) Method, apparatus and electronic device for processing image
US11503205B2 (en) Photographing method and device, and related electronic apparatus
CN112532904B (en) Video processing method and device and electronic equipment
CN107566728A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN111065001B (en) Video production method, device, equipment and storage medium
CN109089043B (en) Captured image preprocessing method, device, storage medium and mobile terminal
JP2016531362A (en) Skin color adjustment method, skin color adjustment device, program, and recording medium
CN111756995A (en) Image processing method and device
US11996123B2 (en) Method for synthesizing videos and electronic device therefor
CN110798622B (en) Shared shooting method and electronic equipment
CN109104633B (en) Video screenshot method and device, storage medium and mobile terminal
CN108108079A (en) A kind of icon display processing method and mobile terminal
CN112532882A (en) Image display method and device
CN108848309A (en) A kind of camera programm starting method and mobile terminal
CN111954058A (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN107483826B (en) The method and apparatus for generating video file
CN112532885A (en) Anti-shake method and device and electronic equipment
CN112367487B (en) Video recording method and electronic equipment
CN112887615B (en) Shooting method and device
CN113596574A (en) Video processing method, video processing apparatus, electronic device, and readable storage medium
CN115589458B (en) Shooting method, device, electronic device and storage medium
CN113676734B (en) Image compression method and image compression device

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