CN114285978A - Video processing method, video processing device and electronic equipment - Google Patents

Video processing method, video processing device and electronic equipment Download PDF

Info

Publication number
CN114285978A
CN114285978A CN202111630459.6A CN202111630459A CN114285978A CN 114285978 A CN114285978 A CN 114285978A CN 202111630459 A CN202111630459 A CN 202111630459A CN 114285978 A CN114285978 A CN 114285978A
Authority
CN
China
Prior art keywords
video
frame rate
video data
main control
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111630459.6A
Other languages
Chinese (zh)
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 CN202111630459.6A priority Critical patent/CN114285978A/en
Publication of CN114285978A publication Critical patent/CN114285978A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a video processing method, a video processing device and electronic equipment, and belongs to the technical field of data processing. The electronic device includes: the image processing device comprises a main control chip, an image processing chip and an image sensor, wherein a first interface of the main control chip is electrically connected with the image processing chip, and a second interface of the main control chip is electrically connected with the image sensor; the method comprises the following steps: the image sensor acquires video data and sends the video data to the main control chip; the main control chip receives the video data, and sends the video data to the image processing chip under the condition that the target parameter of the image sensor meets a preset condition; the image processing chip performs frame interpolation on the video data to generate a target video and sends the target video to the main control chip; wherein the target parameters include at least one of: frame rate, image resolution, image sensor type, exposure time.

Description

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

技术领域technical field

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

背景技术Background technique

为了满足各种特殊场景的视频拍摄需求,用户对摄像头的要求也越来越高。而目前电子设备中的摄像头支持的视频参数十分有限,拍摄出来的视频很难满足用户的多样化需求,导致用户的拍摄体验较差。例如:部分支持慢动作拍摄的摄像头对应的帧速率(以下简称为“帧率”)只能选择120fps(帧/秒),用户无法选择更高的帧率拍摄慢动作视频。In order to meet the video shooting needs of various special scenes, users have higher and higher requirements for cameras. However, the video parameters supported by the camera in the current electronic device are very limited, and the video captured is difficult to meet the diverse needs of the user, resulting in a poor shooting experience for the user. For example, the frame rate corresponding to some cameras that support slow-motion shooting (hereinafter referred to as "frame rate") can only be selected at 120fps (frames per second), and users cannot select a higher frame rate to shoot slow-motion video.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种视频处理方法、视频处理装置和电子设备,能够解决用户拍摄体验较差的问题。The purpose of the embodiments of the present application is to provide a video processing method, a video processing apparatus, and an electronic device, which can solve the problem of poor user shooting experience.

第一方面,本申请实施例提供了一种视频处理方法,应用于电子设备,该电子设备包括:主控芯片、图像处理芯片和图像传感器,所述主控芯片的第一接口与所述图像处理芯片电连接,所述主控芯片的第二接口与所述图像传感器电连接;In a first aspect, an embodiment of the present application provides a video processing method, which is applied to an electronic device. The electronic device includes: a main control chip, an image processing chip, and an image sensor, and a first interface of the main control chip is connected to the image The processing chip is electrically connected, and the second interface of the main control chip is electrically connected to the image sensor;

该方法包括:The method includes:

所述图像传感器获取视频数据,将所述视频数据发送至所述主控芯片;The image sensor acquires video data, and sends the video data to the main control chip;

所述主控芯片接收所述视频数据,在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;The main control chip receives the video data, and sends the video data to the image processing chip when the target parameter of the image sensor meets a preset condition;

所述图像处理芯片对所述视频数据进行插帧,生成目标视频,并将所述目标视频发送至所述主控芯片;The image processing chip inserts frames on the video data, generates a target video, and sends the target video to the main control chip;

其中,所述目标参数包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Wherein, the target parameter includes at least one of the following: frame rate, image resolution, image sensor type, and exposure time.

第二方面,本申请实施例提供了一种视频处理装置,该装置应用上述电子设备,且该装置包括:In a second aspect, an embodiment of the present application provides a video processing apparatus, the apparatus applies the above-mentioned electronic equipment, and the apparatus includes:

获取模块,用于使所述图像传感器获取视频数据,将所述视频数据发送至所述主控芯片;an acquisition module, configured to enable the image sensor to acquire video data and send the video data to the main control chip;

第一接收模块,用于使所述主控芯片接收所述视频数据,在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;a first receiving module, configured to enable the main control chip to receive the video data, and send the video data to the image processing chip when the target parameter of the image sensor meets a preset condition;

生成模块,用于使所述图像处理芯片对所述视频数据进行插帧,生成目标视频,并将所述目标视频发送至所述主控芯片;A generation module, configured to make the image processing chip perform frame insertion on the video data, generate a target video, and send the target video to the main control chip;

其中,所述目标参数包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Wherein, the target parameter includes at least one of the following: frame rate, image resolution, image sensor type, and exposure time.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an 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 configured to run a program or an instruction, and implement the first aspect the method described.

在本申请实施例中,通过在电子设备中加入图像处理芯片,使得主控芯片可以根据图像传感器的目标参数,将图像传感器获取的视频数据发送至图像处理芯片进行插帧,以提高视频帧数,进而可以提高视频流畅度,优化视频数据;同时还可以达到不同拍摄模式下所需视频帧数的要求,从而可以实现更多的拍摄功能,提高了用户的拍摄体验。In the embodiment of the present application, by adding an image processing chip to the electronic device, the main control chip can send the video data acquired by the image sensor to the image processing chip according to the target parameters of the image sensor for frame interpolation, so as to increase the number of video frames , which can improve video fluency and optimize video data; at the same time, it can also meet the requirements of the number of video frames required in different shooting modes, so that more shooting functions can be realized and the shooting experience of users can be improved.

附图说明Description of drawings

图1是本申请实施例提供的视频处理方法的流程示意图;1 is a schematic flowchart of a video processing method provided by an embodiment of the present application;

图2是应用本申请实施例提供的电子设备的结构示意图;2 is a schematic structural diagram of an electronic device provided by applying an embodiment of the present application;

图3是应用本申请实施例提供的视频处理方法的界面示意图;3 is a schematic diagram of an interface for applying the video processing method provided by an embodiment of the present application;

图4是应用本申请实施例提供的视频处理方法的流程示意图之一;4 is one of the schematic flowcharts of applying the video processing method provided by the embodiment of the present application;

图5是应用本申请实施例提供的视频处理方法的流程示意图之二;5 is the second schematic flowchart of applying the video processing method provided by the embodiment of the present application;

图6是本申请实施例提供的视频处理装置的结构示意图;6 is a schematic structural diagram of a video processing apparatus provided by an embodiment of the present application;

图7是本申请实施例提供的电子设备的结构示意图;7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图8是本申请实施例提供的电子设备的硬件示意图。FIG. 8 is a schematic diagram of hardware of an electronic device provided by 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 protection scope of this application.

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

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频处理方法、视频处理装置、电子设备和可读存储介质进行详细地说明。The video processing method, video processing apparatus, electronic device, and readable storage medium provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

本申请实施例提供的视频处理方法,该视频处理方法的执行主体可以为电子设备或者电子设备中能够实现该视频处理方法的功能模块或功能实体,本申请实施例提及的电子设备包括但不限于手机、平板电脑、电脑、相机、可穿戴设备等,下面以电子设备作为执行主体为例对本申请实施例提供的视频处理方法进行说明。In the video processing method provided by the embodiments of the present application, the executive body of the video processing method may be an electronic device or a functional module or functional entity capable of implementing the video processing method in the electronic device. The electronic devices mentioned in the embodiments of the present application include but not Limited to a mobile phone, a tablet computer, a computer, a camera, a wearable device, etc., the video processing method provided by the embodiment of the present application is described below by taking an electronic device as an execution subject as an example.

在一些实施例中,如图1所示,该视频处理方法包括:步骤110、步骤120和步骤130。In some embodiments, as shown in FIG. 1 , the video processing method includes: step 110 , step 120 and step 130 .

如图2所示,该视频处理方法可以应用于电子设备,该电子设备包括:图像传感器210、主控芯片220和图像处理芯片230。主控芯片220的第一接口与图像处理芯片230电连接,主控芯片220的第二接口与图像传感器210电连接。可以理解的是,本申请实施例中各模块间的连接关系,仅用作示例,本申请实施例对电子设备的结构不作具体限定。As shown in FIG. 2 , the video processing method can be applied to an electronic device, and the electronic device includes an image sensor 210 , a main control chip 220 and an image processing chip 230 . The first interface of the main control chip 220 is electrically connected to the image processing chip 230 , and the second interface of the main control chip 220 is electrically connected to the image sensor 210 . It can be understood that the connection relationship between the modules in the embodiment of the present application is only used as an example, and the structure of the electronic device is not specifically limited in the embodiment of the present application.

可选地,图像传感器210可以为不同摄像头类型对应的图像传感器。摄像头类型例如包括:广角摄像头、变焦摄像头或微距摄像头等。主控芯片220可以为电子设备的主应用芯片,即应用处理器(Application Processor,AP)芯片,主控芯片220具体可以包括:动态随机存取存储模块(Dynamic Random Access Memory,DRAM)、图形处理器(GraphicsProcessing Unit,GPU)模块或中央处理器(Central Processing Unit,CPU)模块等。图像处理芯片230可以是独立图形处理芯片。Optionally, the image sensor 210 may be an image sensor corresponding to different camera types. The camera types include, for example, a wide-angle camera, a zoom camera, or a macro camera. The main control chip 220 may be the main application chip of the electronic device, that is, an application processor (Application Processor, AP) chip, and the main control chip 220 may specifically include: a dynamic random access memory module (Dynamic Random Access Memory, DRAM), a graphics processing A graphics processing unit (GPU) module or a central processing unit (Central Processing Unit, CPU) module, etc. The image processing chip 230 may be an independent graphics processing chip.

可选地,在步骤110中,在电子设备进入视频拍摄模式或录像模式的情况下,图像传感器210开始获取视频数据,并将视频数据发送至主控芯片220。Optionally, in step 110 , when the electronic device enters a video shooting mode or a video recording mode, the image sensor 210 starts to acquire video data, and sends the video data to the main control chip 220 .

可选地,在步骤120中,主控芯片接收视频数据,在图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;Optionally, in step 120, the main control chip receives video data, and sends the video data to the image processing chip when the target parameter of the image sensor meets a preset condition;

在一些实施例中,在主控芯片接收所述视频数据之后,还包括:In some embodiments, after the main control chip receives the video data, it further includes:

电子设备接收用户的第一输入;The electronic device receives the user's first input;

主控芯片220响应于第一输入,切换目标参数。The main control chip 220 switches the target parameter in response to the first input.

可选地,电子设备可以通过接收用户的第一输入,在主控芯片220获取视频数据的过程中对图像传感器210的目标参数进行调整。目标参数可以包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Optionally, the electronic device may adjust the target parameters of the image sensor 210 during the process of acquiring the video data by the main control chip 220 by receiving the first input from the user. The target parameters may include at least one of the following: frame rate, image resolution, image sensor type, exposure time.

其中,第一输入可以表现为如下至少一种方式:Wherein, the first input can be expressed in at least one of the following ways:

其一,第一输入可以表现为触控操作,包括但不限于点击操作、滑动操作和按压操作等。在该实施方式中,用户通过触控目标控件,切换图像传感器210的目标参数。First, the first input can be expressed as a touch operation, including but not limited to a click operation, a sliding operation, a pressing operation, and the like. In this embodiment, the user switches the target parameters of the image sensor 210 by touching the target control.

其二,第一输入可以表现为实体按键输入。Second, the first input can be represented as a physical key input.

在该实施方式中,终端的机身上设有与图像传感器210的目标参数对应的实体按键,接收用户的第一输入,可以表现为,接收用户按压对应的实体按键的第一输入;第一输入还可以为同时按压多个实体按键的组合操作。In this embodiment, the body of the terminal is provided with a physical button corresponding to the target parameter of the image sensor 210, and receiving the first input from the user can be expressed as receiving the first input of the user pressing the corresponding physical button; The input can also be a combined operation of pressing multiple physical keys at the same time.

其三,第一输入可以表现为语音输入。Third, the first input can be expressed as a voice input.

在该实施方式中,终端可以在接收到语音如“帧率切换至960fps”时,触发执行帧率切换的操作。In this embodiment, the terminal may trigger the frame rate switching operation when receiving a voice such as "frame rate switching to 960fps".

当然,在其他实施例中,第一输入也可以表现为其他形式,包括但不限于字符输入等,具体可根据实际需要决定,本申请实施例对此不作限定。Of course, in other embodiments, the first input may also be expressed in other forms, including but not limited to character input, etc., which may be determined according to actual needs, which is not limited in this embodiment of the present application.

例如,用户在录像的过程中,点击拍摄预览界面上的放大倍数控件,即可实现第一输入;或者,用户拖动拍摄预览界面上的放大倍数拖动条,即可实现第一输入,从而完成图像传感器类型的切换。For example, during the recording process, the user can click the magnification control on the shooting preview interface to realize the first input; or, the user can drag the magnification drag bar on the shooting preview interface to realize the first input, thereby Complete the switching of the image sensor type.

可选地,主控芯片220响应于第一输入,可以完成图像传感器的目标参数的切换。Optionally, the main control chip 220 can complete the switching of target parameters of the image sensor in response to the first input.

本申请实施例提供的视频处理方法,可以实现不同目标参数的切换,以使图像传感器可以针对不同目标参数的反馈,确定是否向图像处理芯片发送视频数据。The video processing method provided by the embodiment of the present application can realize switching of different target parameters, so that the image sensor can determine whether to send video data to the image processing chip according to the feedback of different target parameters.

可选地,在切换目标参数之后,主控芯片220判断图像传感器210的目标参数是否满足预设条件。则有在步骤120中,在图像传感器210的目标参数满足预设条件的情况下,主控芯片220可以将视频数据发送至图像处理芯片230。其中,预设条件可以包括:图像传感器210不支持目标帧率、图像传感器210的曝光时间低于第一阈值、图像传感器210的帧率降低至第二阈值等。Optionally, after switching the target parameter, the main control chip 220 determines whether the target parameter of the image sensor 210 satisfies a preset condition. Then, in step 120 , when the target parameter of the image sensor 210 satisfies the preset condition, the main control chip 220 may send the video data to the image processing chip 230 . The preset conditions may include: the image sensor 210 does not support the target frame rate, the exposure time of the image sensor 210 is lower than the first threshold, the frame rate of the image sensor 210 is reduced to the second threshold, and the like.

可选地,如图3所示,在电子设备的拍摄预览界面增加目标参数对应的控件。例如包括:切换帧率、图像分辨率和图像传感器类型的控件等,以实现切换图像传感器类型、帧率或图像分辨率的功能。图3中可选择的帧率范围为120fps至960fps,可选择的图像分辨率包括:720p、1080p或4K等,不同图像传感器类型对应的放大倍数包括:0.6x、1x、2x或5x等。Optionally, as shown in FIG. 3 , a control corresponding to the target parameter is added to the shooting preview interface of the electronic device. For example, it includes controls for switching frame rate, image resolution and image sensor type, etc., to realize the function of switching image sensor type, frame rate or image resolution. In Figure 3, the selectable frame rate ranges from 120fps to 960fps, and the selectable image resolutions include: 720p, 1080p, or 4K, etc., and the corresponding magnifications for different image sensor types include: 0.6x, 1x, 2x, or 5x, etc.

步骤130、图像处理芯片230对视频数据进行插帧,生成目标视频,并将目标视频发送至主控芯片220。Step 130 , the image processing chip 230 inserts frames into the video data, generates a target video, and sends the target video to the main control chip 220 .

可选地,在步骤130中,图像处理芯片230接收到视频数据后,对视频数据进行插帧。其中,插帧操作可以基于运动补偿技术完成。运动补偿技术是通过检测特定帧中的运动,并估计后续帧的外观,再通过添加相关帧进行补偿的技术。Optionally, in step 130, after receiving the video data, the image processing chip 230 performs frame interpolation on the video data. Wherein, the frame insertion operation can be completed based on the motion compensation technology. Motion compensation techniques work by detecting motion in a particular frame, estimating the appearance of subsequent frames, and then compensating by adding related frames.

在本申请实施例中,可以是对视频数据中的视频帧进行预测,并将预测的视频帧添加到连续的视频帧之间,以弥补视频帧数量不足的问题。除了可以提高视频数据的视频帧数,图像处理芯片230还可以优化每一帧画面,提高画面清晰度和对比度。由于图像处理芯片230可以承担一部分视频帧的运算量,从而可以减少主控芯片220的功耗。In this embodiment of the present application, the video frames in the video data may be predicted, and the predicted video frames may be added between consecutive video frames to make up for the problem of insufficient number of video frames. In addition to increasing the number of video frames of video data, the image processing chip 230 can also optimize each frame of picture to improve picture definition and contrast. Since the image processing chip 230 can undertake the calculation amount of a part of the video frame, the power consumption of the main control chip 220 can be reduced.

可选地,图像处理芯片230将插帧后的视频数据作为目标视频,发送给主控芯片220。主控芯片220接收到目标视频,并保存该目标视频。Optionally, the image processing chip 230 sends the video data after frame insertion to the main control chip 220 as the target video. The main control chip 220 receives the target video and saves the target video.

本申请实施例提供的视频处理方法可以应用于如下场景:The video processing method provided in the embodiment of the present application can be applied to the following scenarios:

假设电子设备不具有支持慢动作拍摄的图像传感器210,则在电子设备没有设置图像处理芯片230的情况下,电子设备将无法拍摄慢动作视频。而在电子设备加入图像处理芯片230之后,可以对视频进行插帧,以输出慢动作视频。例如:视频数据的视频帧数为3600帧,视频时长为1分钟。可以将视频数据输入至图像处理芯片230进行插帧,并将插帧后的视频数据作为目标视频。此时视频数据的视频帧数增加为7200帧,则在视频播放的帧率保持不变的情况下,目标视频的视频时长变为2分钟,从而实现将视频数据转换为慢动作视频,即通过在电子设备中加入图像处理芯片230,可以使不支持慢动作拍摄的图像传感器210对应的电子设备也能够获取到慢动作拍摄效果的目标视频。Assuming that the electronic device does not have the image sensor 210 that supports slow-motion shooting, if the electronic device is not provided with the image processing chip 230, the electronic device will not be able to shoot slow-motion video. After the image processing chip 230 is added to the electronic device, frame interpolation can be performed on the video to output a slow-motion video. For example, the number of video frames of the video data is 3600 frames, and the video duration is 1 minute. The video data can be input to the image processing chip 230 for frame interpolation, and the video data after frame interpolation can be used as the target video. At this time, the number of video frames of the video data is increased to 7200 frames, and when the frame rate of the video playback remains unchanged, the video duration of the target video becomes 2 minutes, so that the video data can be converted into a slow-motion video, that is, by By adding the image processing chip 230 to the electronic device, the electronic device corresponding to the image sensor 210 that does not support slow-motion shooting can also obtain the target video with the slow-motion shooting effect.

在实际执行中,将本申请实施例提供的视频处理方法结合图2来说明本申请实施例提供的视频处理方法。如图2所示,电子设备的视频处理流程可以为:图像传感器210获取视频数据,并将视频数据通过第二接口发送至主控芯片220。主控芯片220将接收到的图像数据通过第一接口发送至图像处理芯片230进行插帧。图像处理芯片230将插帧后的视频数据再传回至主控芯片220。主控芯片220保存插帧后的视频数据。In actual implementation, the video processing method provided by the embodiment of the present application is described with reference to FIG. 2 . As shown in FIG. 2 , the video processing flow of the electronic device may be as follows: the image sensor 210 acquires video data, and sends the video data to the main control chip 220 through the second interface. The main control chip 220 sends the received image data to the image processing chip 230 through the first interface for frame insertion. The image processing chip 230 transmits the video data after frame insertion to the main control chip 220 . The main control chip 220 saves the video data after frame insertion.

本申请实施例提供的视频处理方法,通过在电子设备中加入图像处理芯片,使得主控芯片可以根据图像传感器的目标参数,将图像传感器获取的视频数据发送至图像处理芯片进行插帧,以提高视频帧数,进而可以提高视频流畅度,优化视频数据;同时还可以达到不同拍摄模式下所需视频帧数的要求,从而可以实现更多的拍摄功能,提高了用户的拍摄体验。In the video processing method provided by the embodiment of the present application, by adding an image processing chip to the electronic device, the main control chip can send the video data acquired by the image sensor to the image processing chip according to the target parameters of the image sensor for frame interpolation, so as to improve the The number of video frames can improve the fluency of the video and optimize the video data; at the same time, it can also meet the requirements of the number of video frames required in different shooting modes, so that more shooting functions can be realized, and the shooting experience of the user can be improved.

在一些实施例中,在目标参数包括所述传感器类型、帧率、图像分辨率中的任意一项的情况下,预设条件为目标参数不支持目标帧率。由此可知,目标参数包括如下三种情形且预设条件为目标参数不支持目标帧率时,主控芯片220会将视频数据发送至图像处理芯片230。In some embodiments, when the target parameter includes any one of the sensor type, frame rate, and image resolution, the preset condition is that the target parameter does not support the target frame rate. It can be seen that the target parameter includes the following three situations and the preset condition is that the target parameter does not support the target frame rate, the main control chip 220 will send the video data to the image processing chip 230 .

情形一:目标参数为图像传感器类型,则有在图像传感器210切换后的图像传感器类型不支持目标帧率的情况下,将视频数据发送至图像处理芯片230。Scenario 1: The target parameter is the image sensor type, and the video data is sent to the image processing chip 230 when the image sensor type switched by the image sensor 210 does not support the target frame rate.

可选地,用户在切换图像传感器类型后,如果图像传感器类型不支持目标帧率时,主控芯片220会将视频数据发送至图像处理芯片230。或者是图像传感器类型输出的图像分辨率不支持目标帧率时,主控芯片220会将视频数据发送至图像处理芯片230。Optionally, after the user switches the image sensor type, if the image sensor type does not support the target frame rate, the main control chip 220 will send the video data to the image processing chip 230 . Or when the image resolution output by the image sensor type does not support the target frame rate, the main control chip 220 will send the video data to the image processing chip 230 .

可选地,不同图像传感器类型支持的帧率不同。例如:通常情况下,电子设备仅能在主摄像头的图像传感器210下进行慢动作视频的拍摄,而广角摄像头的图像传感器210等其他摄像头的图像传感器210不支持慢动作视频的拍摄。Optionally, different image sensor types support different frame rates. For example, under normal circumstances, the electronic device can only shoot slow-motion video under the image sensor 210 of the main camera, while the image sensor 210 of other cameras such as the image sensor 210 of the wide-angle camera does not support slow-motion video shooting.

在一些实施例中,目标帧率可以为慢动作视频的拍摄帧率。由于在慢动作视频拍摄时,每秒需要记录更多的画面,所以与正常拍摄模式相比,慢动作拍摄模式下单位时间内产生的数据量将是成倍的。所以用户在慢动作拍摄模式下,想要切换不同的图像传感器类型,需要考虑当前图像传感器类型是否支持慢动作拍摄模式。In some embodiments, the target frame rate may be the shooting frame rate of the slow-motion video. Since more frames need to be recorded per second during slow-motion video shooting, compared with the normal shooting mode, the amount of data generated per unit of time in the slow-motion shooting mode will be doubled. Therefore, users who want to switch between different image sensor types in the slow-motion shooting mode need to consider whether the current image sensor type supports the slow-motion shooting mode.

例如:假设用户在慢动作拍摄模式下将主摄像头切换至广角摄像头,通常在电子设备没有设置图像处理芯片230的情况下,广角摄像头支持的帧率为60fps,而慢动作视频的拍摄帧率需要达到120fps,则此时用户使用广角摄像头无法拍摄出慢动作视频。而在电子设备设置有图像处理芯片230的情况下,图像处理芯片230可以对广角摄像头下拍摄的视频进行插帧,提高视频帧数,弥补广角摄像头采集的帧数不足的问题,从而可以解决电子设备在广角摄像头下无法拍摄慢动作视频的问题。For example: Suppose the user switches the main camera to the wide-angle camera in the slow-motion shooting mode. Usually, if the electronic device does not have the image processing chip 230, the frame rate supported by the wide-angle camera is 60fps, while the shooting frame rate of the slow-motion video needs to be When it reaches 120fps, the user cannot shoot slow-motion video with the wide-angle camera at this time. In the case where the electronic device is provided with the image processing chip 230, the image processing chip 230 can insert frames into the video captured by the wide-angle camera, increase the number of video frames, and make up for the insufficient number of frames collected by the wide-angle camera, thereby solving the problem of electronic The device cannot shoot slow-motion video under the wide-angle camera.

具体的,假设广角摄像头支持的帧率为60fps,则广角摄像头1分钟可以采集的视频帧数为3600帧。而慢动作视频的拍摄帧率需要达到120fps,则在慢动作拍摄模式下广角摄像头1分钟内需要采集的视频帧数为7200帧。因此,可以通过图像处理芯片230对广角摄像头拍摄的视频进行插帧,使得广角摄像头1分钟采集的3600帧视频变为1分钟7200帧的视频,即达到了慢动作拍摄模式需要采集的视频帧数。Specifically, assuming that the frame rate supported by the wide-angle camera is 60 fps, the number of video frames that can be collected by the wide-angle camera in one minute is 3600 frames. The slow-motion video shooting frame rate needs to reach 120fps, then in the slow-motion shooting mode, the wide-angle camera needs to collect 7200 video frames in 1 minute. Therefore, the image processing chip 230 can be used to insert frames into the video captured by the wide-angle camera, so that the 3,600-frame video captured by the wide-angle camera in 1 minute becomes 7,200 frames in 1 minute, that is, the number of video frames that need to be captured in the slow-motion shooting mode is reached. .

如图3所示,“0.6x、1x、2x或5x”可以对应不同的图像传感器类型。其中,“0.6x”对应的是广角摄像头的图像传感器210;“1x”对应的是主摄像头的图像传感器210;“2x”对应的是人像摄像头的图像传感器210;“5x”对应的是长焦摄像头的图像传感器210。本申请实施例提供的视频处理方法,可以使原本不支持拍摄慢动作视频的图像传感器210也可以拍出慢动作视频,这样用户在拍慢动作视频的时候就可以在广角、1x、2x或5x等镜头之间随意切换,让慢动作视频可以根据用户的需求实时的变成广角摄像头或者是多倍镜头。As shown in Figure 3, "0.6x, 1x, 2x or 5x" can correspond to different image sensor types. Among them, "0.6x" corresponds to the image sensor 210 of the wide-angle camera; "1x" corresponds to the image sensor 210 of the main camera; "2x" corresponds to the image sensor 210 of the portrait camera; "5x" corresponds to the telephoto camera The image sensor 210 of the camera. The video processing method provided in this embodiment of the present application can enable the image sensor 210 that does not originally support slow-motion video shooting to also shoot slow-motion video, so that the user can shoot slow-motion video in wide-angle, 1x, 2x, or 5x Switch between the lenses at will, so that the slow-motion video can be turned into a wide-angle camera or a multiple lens in real time according to the user's needs.

进一步地,基于图像处理芯片230的插帧功能,可以使得用户在拍摄或录像过程中,可以根据需求在“0.6x、1x、2x或5x”等镜头中自由切换。且在图像传感器类型不支持当前拍摄模式的目标帧率时,通过图像处理芯片230对当前拍摄模式下拍摄的视频进行插帧,从而可以达到目标帧率。Further, based on the frame insertion function of the image processing chip 230, the user can freely switch between shots such as "0.6x, 1x, 2x, or 5x" according to requirements during the shooting or video recording process. And when the image sensor type does not support the target frame rate of the current shooting mode, the image processing chip 230 performs frame interpolation on the video shot in the current shooting mode, so that the target frame rate can be achieved.

在一些实施例中,用户采用广角摄像头拍摄慢动作视频,假设广角摄像头输出的图像分辨率为4K,由于慢动作拍摄模式下需要采集的数据量是成倍的,所以为了减轻主控芯片处理压力和拍摄出稳定帧率的视频,通常会降低慢动作视频的图像分辨率或色彩丰富度等。所以,在电子设备没有设置图像处理芯片230的情况下,用户使用广角摄像头无法拍摄出图像分辨率较高的慢动作视频。而在电子设备设置有图像处理芯片230的情况下,图像处理芯片230可以对拍摄的视频进行插帧,不仅可以提高视频帧数,还可以提高视频帧的图像分辨率,从而解决了广角摄像头无法拍摄出图像分辨率较高的慢动作视频的问题,即可以满足不同类型摄像头下的帧率需求,实现了更多的拍摄功能,提高了拍摄灵活性。In some embodiments, the user uses a wide-angle camera to shoot slow-motion video. Assuming that the image resolution output by the wide-angle camera is 4K, since the amount of data to be collected in the slow-motion shooting mode is doubled, in order to reduce the processing pressure of the main control chip and shooting video with a stable frame rate, usually reducing the image resolution or color richness of slow-motion video. Therefore, in the case where the electronic device is not provided with the image processing chip 230, the user cannot shoot a slow-motion video with a higher image resolution by using the wide-angle camera. In the case where the electronic device is provided with the image processing chip 230, the image processing chip 230 can insert frames into the captured video, which can not only increase the number of video frames, but also increase the image resolution of the video frames, thus solving the problem that the wide-angle camera cannot The problem of shooting slow-motion video with high image resolution can meet the frame rate requirements of different types of cameras, realize more shooting functions, and improve shooting flexibility.

本申请实施例提供的视频处理方法,通过在图像传感器类型不支持目标帧率的情况下,主控芯片将视频数据发送至图像处理芯片,并通过图像处理芯片实现插帧,可以实现不同的拍摄效果。In the video processing method provided by the embodiment of the present application, when the image sensor type does not support the target frame rate, the main control chip sends the video data to the image processing chip, and the image processing chip realizes frame insertion, so that different shootings can be realized. Effect.

情形二:目标参数为帧率,则有在图像传感器210切换后的帧率不支持目标帧率的情况下,主控芯片220将视频数据发送至图像处理芯片230。Scenario 2: The target parameter is the frame rate, and the main control chip 220 sends the video data to the image processing chip 230 when the frame rate after the switching of the image sensor 210 does not support the target frame rate.

可选地,用户在选定图像传感器210的情况下,调节目标帧率。在当前图像传感器210的帧率不支持目标帧率的情况下,主控芯片220将会把视频数据发送至图像处理芯片230进行插帧。Optionally, the user adjusts the target frame rate when the image sensor 210 is selected. When the frame rate of the current image sensor 210 does not support the target frame rate, the main control chip 220 will send the video data to the image processing chip 230 for frame interpolation.

例如:假设当前图像传感器210支持的帧率为120fps,用户想要将目标帧率调节至480fps。在电子设备没有设置图像处理芯片230的情况下,电子设备无法以480fps的帧率拍摄视频。而在电子设备加入图像处理芯片230的情况下,主控芯片220可以先以120fps拍摄视频数据,再将视频数据发送至图像处理芯片230进行插帧。图像处理芯片230对视频数据进行插帧后,可以获取目标帧率为480fps的目标视频。For example, it is assumed that the frame rate currently supported by the image sensor 210 is 120fps, and the user wants to adjust the target frame rate to 480fps. In the case where the electronic device is not provided with the image processing chip 230, the electronic device cannot shoot video at a frame rate of 480fps. In the case where the image processing chip 230 is added to the electronic device, the main control chip 220 can first capture video data at 120 fps, and then send the video data to the image processing chip 230 for frame insertion. After the image processing chip 230 performs frame interpolation on the video data, a target video with a target frame rate of 480 fps can be obtained.

在一些实施例中,目标帧率可以为慢动作视频的拍摄帧率。则用户在调节慢动作视频的拍摄帧率的情况下,如果当前图像传感器210不支持目标帧率,主控芯片220会将视频数据发送至图像处理芯片230进行插帧。In some embodiments, the target frame rate may be the shooting frame rate of the slow-motion video. When the user adjusts the shooting frame rate of the slow motion video, if the current image sensor 210 does not support the target frame rate, the main control chip 220 will send the video data to the image processing chip 230 for frame interpolation.

例如:慢动作视频的拍摄帧率通常为120fps、240fps或480fps,所以用户在拍摄慢动作视频时可以选择的帧率较少。为了使用户在拍摄慢动作视频时可以根据需求调节帧率,且能够在更大的范围内的调节目标帧率,则可以通过主控芯片220将慢动作视频发送给图像处理芯片230进行插帧。因此,在用户选择1000fps拍摄慢动作视频时,当前图像传感器210支持的帧率为480fps,此时电子设备先以480fps拍摄视频数据,并将拍摄完成的视频数据发送至图像处理芯片230进行插帧。图像处理芯片230以对视频数据进行插帧后,可以获取目标帧率为1000fps的目标视频,从而增加了慢动作拍摄模式的目标帧率选择范围,进而可以满足不同拍摄模式下的帧率需求,实现了更多的拍摄功能,提高了拍摄灵活性。For example, the frame rate of slow motion video is usually 120fps, 240fps or 480fps, so users can choose less frame rate when shooting slow motion video. In order to enable the user to adjust the frame rate according to requirements when shooting slow-motion video, and to adjust the target frame rate in a wider range, the slow-motion video can be sent to the image processing chip 230 through the main control chip 220 for frame interpolation . Therefore, when the user selects 1000fps to shoot a slow-motion video, the current frame rate supported by the image sensor 210 is 480fps. At this time, the electronic device first captures video data at 480fps, and sends the captured video data to the image processing chip 230 for frame interpolation. . The image processing chip 230 can obtain a target video with a target frame rate of 1000 fps after interpolating the video data, thereby increasing the selection range of the target frame rate in the slow-motion shooting mode, thereby meeting the frame rate requirements in different shooting modes, Realize more shooting functions and improve shooting flexibility.

本申请实施例提供的视频处理方法,通过在图像传感器的帧率不支持目标帧率的情况下,使得主控芯片将视频数据发送至图像处理芯片进行插帧,可以增大拍摄过程中可选择的帧率范围,进而可以使用户在拍摄过程中动态选择帧率,提升用户的拍摄体验。In the video processing method provided by the embodiment of the present application, when the frame rate of the image sensor does not support the target frame rate, the main control chip sends the video data to the image processing chip for frame interpolation, which can increase the number of optional frames during the shooting process. This allows users to dynamically select the frame rate during the shooting process, improving the user’s shooting experience.

情形二:目标参数为帧率,则有在图像传感器210切换后的图像分辨率不支持目标帧率对应的图像分辨率的情况下,主控芯片220将视频数据发送至图像处理芯片230。Scenario 2: The target parameter is the frame rate, and the main control chip 220 sends the video data to the image processing chip 230 when the image resolution after switching by the image sensor 210 does not support the image resolution corresponding to the target frame rate.

可选地,用户在拍摄视频之前,可以根据需求调节图像传感器210的图像分辨率。在图像传感器210的图像分辨率不支持目标帧率对应的图像分辨率的情况下,主控芯片220将视频数据发送至图像处理芯片230。例如:假设图像传感器210的图像分辨率为720p,目标帧率对应的图像分辨率为1080p,即此时图像传感器210的图像分辨率达不到目标帧率对应的图像分辨率,则将当前图像传感器210拍摄的视频数据发送至图像处理芯片230进行插帧,以生成更高分辨率的目标视频。Optionally, the user can adjust the image resolution of the image sensor 210 as required before shooting a video. When the image resolution of the image sensor 210 does not support the image resolution corresponding to the target frame rate, the main control chip 220 sends the video data to the image processing chip 230 . For example, assuming that the image resolution of the image sensor 210 is 720p, and the image resolution corresponding to the target frame rate is 1080p, that is, the image resolution of the image sensor 210 cannot reach the image resolution corresponding to the target frame rate, the current image The video data captured by the sensor 210 is sent to the image processing chip 230 for frame interpolation to generate a higher resolution target video.

在一些实施例中,目标帧率可以为慢动作视频的拍摄帧率。用户在进入慢动作拍摄模式之前,可以切换慢动作拍摄模式所支持的图像分辨率。在电子设备没有设置图像处理芯片230的情况下,当前图像传感器210在慢动作拍摄模式下仅支持的图像分辨率为1080p或720p,当用户将目标帧率对应的图像分辨率调节为4K时,会导致当前图像传感器210的图像分辨率达不到4K,所以用户将无法拍摄到图像分辨率为4K的慢动作视频。在电子设备加入图像处理芯片230的情况下,先将以当前图像传感器210的图像分辨率拍摄的视频数据发送至图像处理芯片进行插帧,图像处理芯片230对视频数据进行插帧后,可以生成图像分辨率为4K的目标视频,从而增加了慢动作拍摄模式的图像分辨率选择范围,进而可以满足不同拍摄模式下的图像分辨率需求,实现了更多的拍摄功能,提高了拍摄灵活性。In some embodiments, the target frame rate may be the shooting frame rate of the slow-motion video. Before entering the slow-motion shooting mode, the user can switch the image resolution supported by the slow-motion shooting mode. In the case where the electronic device does not have the image processing chip 230, the current image sensor 210 in the slow motion shooting mode only supports an image resolution of 1080p or 720p. When the user adjusts the image resolution corresponding to the target frame rate to 4K, As a result, the image resolution of the current image sensor 210 cannot reach 4K, so the user cannot shoot a slow-motion video with an image resolution of 4K. In the case where the image processing chip 230 is added to the electronic device, the video data captured at the current image resolution of the image sensor 210 is first sent to the image processing chip for frame interpolation. After the image processing chip 230 performs frame interpolation on the video data, it can generate The target video with an image resolution of 4K increases the selection range of image resolution in the slow-motion shooting mode, thereby meeting the image resolution requirements in different shooting modes, realizing more shooting functions and improving shooting flexibility.

本申请实施例提供的视频处理方法,通过在图像传感器对应的图像分辨率不支持目标帧率对应的图像分辨率的情况下,使得主控芯片将视频数据发送至图像处理芯片进行插帧,可以获取高分辨率的目标视频,从而提高了目标视频的清晰度。In the video processing method provided by the embodiment of the present application, in the case where the image resolution corresponding to the image sensor does not support the image resolution corresponding to the target frame rate, the main control chip sends the video data to the image processing chip for frame insertion, so that the frame can be inserted. Get high-resolution target video, which improves the clarity of the target video.

在一些实施例中,在目标参数包括曝光时间和帧率的情况下,在图像传感器的目标参数满足预设条件的情况下,将视频数据发送至图像处理芯片,包括:In some embodiments, when the target parameters include exposure time and frame rate, and when the target parameters of the image sensor meet preset conditions, sending the video data to the image processing chip includes:

在曝光时间满足第一预设条件的情况下,降低图像传感器的帧率;In the case that the exposure time satisfies the first preset condition, reducing the frame rate of the image sensor;

在帧率满足第二预设条件的情况下,将视频数据发送至图像处理芯片;In the case that the frame rate satisfies the second preset condition, sending the video data to the image processing chip;

其中,第一预设条件为曝光时间低于第一阈值;Wherein, the first preset condition is that the exposure time is lower than the first threshold;

第二预设条件为帧率低于第二阈值。The second preset condition is that the frame rate is lower than the second threshold.

可选地,在用户进行拍摄或录像时,先检测电子设备所处的环境是否为暗环境。暗环境下图像传感器210的曝光时间会影响拍摄画面的亮度,也会导致拍摄画面的噪点较多。所以如果检测到电子设备所处的环境为暗环境,即在图像传感器210的曝光时间低于第一阈值的情况下,可以通过降低帧率增加图像传感器210的曝光时间。曝光时间越长,拍摄画面越亮,成像画面越清晰。例如:假设第一阈值为1/100(秒/帧),当前拍摄帧率为120fps,则曝光时间为1/120(秒/帧),即有图像传感器210的曝光时间低于第一阈值,此时可以将拍摄帧率降低为30fps,以使曝光时间增加为1/30(秒/帧)。Optionally, when the user is shooting or recording, it is first detected whether the environment where the electronic device is located is a dark environment. The exposure time of the image sensor 210 in a dark environment will affect the brightness of the photographed image, and will also cause more noise in the photographed image. Therefore, if it is detected that the environment where the electronic device is located is a dark environment, that is, when the exposure time of the image sensor 210 is lower than the first threshold, the exposure time of the image sensor 210 can be increased by reducing the frame rate. The longer the exposure time, the brighter the shooting picture and the clearer the imaging picture. For example, assuming that the first threshold is 1/100 (seconds/frame), and the current shooting frame rate is 120fps, the exposure time is 1/120 (seconds/frame), that is, the exposure time of the image sensor 210 is lower than the first threshold. At this time, the shooting frame rate can be reduced to 30fps to increase the exposure time to 1/30 (second/frame).

可选地,由于拍摄帧率下降会导致视频流畅度降低。因此,在图像传感器210的帧率低于第二阈值的情况下,主控芯片220可以将在暗环境下拍摄的视频数据发送至图像处理芯片230进行插帧。例如:当前拍摄帧率降低为30fps,假设第二阈值为40fps,则此时图像传感器的拍摄帧率低于第二阈值,可以将拍摄的视频数据发送至图像处理芯片230。图像处理芯片230对视频数据进行插帧后,不仅可以提高目标视频的视频帧数,还能够对每一帧进行降噪处理,从而可以在确保视频亮度和视频流畅度的同时,也可以保证视频画面的纯净度。Optionally, the video fluency will be reduced due to the reduction of the shooting frame rate. Therefore, when the frame rate of the image sensor 210 is lower than the second threshold, the main control chip 220 can send the video data captured in a dark environment to the image processing chip 230 for frame interpolation. For example, if the current shooting frame rate is reduced to 30 fps, assuming that the second threshold is 40 fps, then the shooting frame rate of the image sensor is lower than the second threshold, and the shot video data can be sent to the image processing chip 230 . After the image processing chip 230 interpolates the video data, it can not only increase the number of video frames of the target video, but also perform noise reduction processing on each frame, so as to ensure the video brightness and video fluency, and also ensure the video quality. The purity of the screen.

其中,第一阈值可以为预先设置的数值,也可以是默认的数值,本申请实施例不作具体限定。第二阈值可以为预先设置的数值,也可以是默认的数值,本申请实施例不作具体限定。The first threshold may be a preset value or a default value, which is not specifically limited in this embodiment of the present application. The second threshold may be a preset value or a default value, which is not specifically limited in this embodiment of the present application.

本申请实施例提供的视频处理方法,通过在曝光时间低于第一阈值的情况下降低图像传感器的帧率,可以适当增加图像传感器的曝光时间,避免曝光时间过低而导致图像噪点过大的问题,同时可以提高视频帧的亮度和纯净度;采用图像处理芯片对降低帧率后拍摄的视频数据进行插帧,以使目标视频保持稳定的帧率,并能够根据用户需求达到目标拍摄模式下的帧率。In the video processing method provided by the embodiment of the present application, by reducing the frame rate of the image sensor when the exposure time is lower than the first threshold, the exposure time of the image sensor can be appropriately increased to avoid excessive image noise caused by the exposure time being too short. At the same time, it can improve the brightness and purity of the video frame; the image processing chip is used to interpolate the video data shot after the frame rate is reduced, so that the target video maintains a stable frame rate and can reach the target shooting mode according to user needs. frame rate.

在一些实施例中,电子设备可以包括AP端、图像传感器sensor和独立图形处理芯片。如图4所示,本申请实施例提供的视频处理方法的流程可以包括:In some embodiments, the electronic device may include an AP, an image sensor sensor, and an independent graphics processing chip. As shown in FIG. 4 , the flow of the video processing method provided by the embodiment of the present application may include:

步骤401、用户点击录像按钮,进入视频拍摄模式。Step 401: The user clicks the video recording button to enter the video shooting mode.

步骤402、用户可以在拍摄预览界面切换sensor、切换帧率或切换图像尺寸size。其中,图像size可以与图像分辨率相对应。Step 402 , the user can switch sensors, switch frame rates, or switch image sizes on the shooting preview interface. Among them, the image size may correspond to the image resolution.

步骤403、判断sensor是否支持目标帧率。若支持,则进入步骤404。若不支持,则进入步骤405。Step 403: Determine whether the sensor supports the target frame rate. If yes, go to step 404 . If not supported, go to step 405 .

步骤404、AP端保存目标视频。Step 404: The AP saves the target video.

步骤405、sensor将获取的视频数据发送至独立图形处理芯片,独立图形处理芯片对视频数据进行插帧,并将插帧后的视频数据作为目标视频发送至AP端。Step 405 , the sensor sends the acquired video data to the independent graphics processing chip, and the independent graphics processing chip inserts frames on the video data, and sends the frame-inserted video data to the AP as the target video.

步骤406、AP端接收到目标视频,进入404。Step 406 , the AP receives the target video and goes to 404 .

在一些实施例中,电子设备可以包括AP端、图像传感器sensor和独立图形处理芯片。如图5所示,本申请实施例提供的视频处理方法的流程可以包括:In some embodiments, the electronic device may include an AP, an image sensor sensor, and an independent graphics processing chip. As shown in FIG. 5 , the flow of the video processing method provided by the embodiment of the present application may include:

步骤501、用户点击录像按钮,进入视频拍摄模式。Step 501: The user clicks the video recording button to enter the video shooting mode.

步骤502、判断电子设备所处环境是否为暗环境。若不是,进入步骤503;若是,进入步骤504。Step 502: Determine whether the environment where the electronic device is located is a dark environment. If not, go to step 503; if yes, go to step 504.

步骤503、AP端保存目标视频。Step 503: The AP saves the target video.

步骤504、sensor降低拍摄帧率,以增加曝光时间。Step 504, the sensor reduces the shooting frame rate to increase the exposure time.

步骤505、sensor将获取的视频数据发送至独立图形处理芯片,独立图形处理芯片对视频数据进行插帧和降噪,并将处理后的视频数据作为目标视频发送至AP端。Step 505: The sensor sends the acquired video data to the independent graphics processing chip, and the independent graphics processing chip performs frame interpolation and noise reduction on the video data, and sends the processed video data to the AP as the target video.

步骤506、AP端接收到目标视频,进入步骤503。Step 506 , the AP receives the target video, and proceeds to step 503 .

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

本申请实施例还提供一种视频处理装置。Embodiments of the present application further provide a video processing apparatus.

如图6所示,该视频处理装置包括:获取模块610、第一接收模块620和生成模块630。As shown in FIG. 6 , the video processing apparatus includes: an acquiring module 610 , a first receiving module 620 and a generating module 630 .

获取模块610,用于使所述图像传感器获取视频数据,将所述视频数据发送至所述主控芯片;an acquisition module 610, configured to enable the image sensor to acquire video data, and send the video data to the main control chip;

第一接收模块620,用于使所述主控芯片接收所述视频数据,在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;a first receiving module 620, configured to enable the main control chip to receive the video data, and send the video data to the image processing chip when the target parameter of the image sensor meets a preset condition;

生成模块630,用于使所述图像处理芯片对所述视频数据进行插帧,生成目标视频,并将所述目标视频发送至所述主控芯片;A generation module 630, configured to make the image processing chip perform frame insertion on the video data, generate a target video, and send the target video to the main control chip;

其中,所述目标参数包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Wherein, the target parameter includes at least one of the following: frame rate, image resolution, image sensor type, and exposure time.

本申请实施例提供的视频处理装置,通过在电子设备中加入图像处理芯片,使得主控芯片可以根据图像传感器的目标参数,将图像传感器获取的视频数据发送至图像处理芯片进行插帧,以提高视频帧数,进而可以提高视频流畅度,优化视频数据;同时还可以达到不同拍摄模式下所需视频帧数的要求,从而可以实现更多的拍摄功能,提高了用户的拍摄体验。In the video processing device provided by the embodiment of the present application, by adding an image processing chip to the electronic device, the main control chip can send the video data obtained by the image sensor to the image processing chip according to the target parameters of the image sensor for frame interpolation, so as to improve the The number of video frames can improve the fluency of the video and optimize the video data; at the same time, it can also meet the requirements of the number of video frames required in different shooting modes, so that more shooting functions can be realized, and the shooting experience of the user can be improved.

在一些实施例中,在所述目标参数包括所述传感器类型、所述帧率、所述图像分辨率中的任意一项的情况下,所述预设条件为所述目标参数不支持所述目标帧率。In some embodiments, when the target parameter includes any one of the sensor type, the frame rate, and the image resolution, the preset condition is that the target parameter does not support the target frame rate.

在一些实施例中,在所述目标参数包括所述曝光时间和所述帧率的情况下,所述第一接收模块620具体用于:In some embodiments, when the target parameter includes the exposure time and the frame rate, the first receiving module 620 is specifically configured to:

在所述曝光时间满足第一预设条件的情况下,降低所述帧率;In the case that the exposure time satisfies the first preset condition, reducing the frame rate;

在所述帧率满足第二预设条件的情况下,将所述视频数据发送至所述图像处理芯片;sending the video data to the image processing chip under the condition that the frame rate satisfies the second preset condition;

其中,所述第一预设条件为所述曝光时间低于第一阈值;Wherein, the first preset condition is that the exposure time is lower than a first threshold;

所述第二预设条件为所述帧率低于第二阈值。The second preset condition is that the frame rate is lower than a second threshold.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

第二接收模块(图中未示出),用于使所述电子设备接收用户的第一输入;a second receiving module (not shown in the figure), configured to enable the electronic device to receive the user's first input;

切换模块(图中未示出),用于使所述主控芯片响应于第一输入,切换所述目标参数。A switching module (not shown in the figure), configured to make the main control chip switch the target parameter in response to the first input.

在一些实施例中,所述目标帧率为慢动作视频的拍摄帧率。In some embodiments, the target frame rate is the shooting frame rate of the slow motion video.

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

本申请实施例中的视频处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The video processing apparatus in this embodiment of the present application may be an apparatus having 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 the embodiments of the present application.

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

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

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

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

该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809以及处理器810等部件。The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810 and other components .

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

其中,处理器810,用于使所述图像传感器获取视频数据,将所述视频数据发送至所述主控芯片;The processor 810 is configured to enable the image sensor to acquire video data and send the video data to the main control chip;

还用于使所述主控芯片接收所述视频数据,在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;is also used to make the main control chip receive the video data, and send the video data to the image processing chip when the target parameter of the image sensor meets a preset condition;

还用于使所述图像处理芯片对所述视频数据进行插帧,生成目标视频,并将所述目标视频发送至所述主控芯片;It is also used to make the image processing chip perform frame insertion on the video data, generate a target video, and send the target video to the main control chip;

其中,所述目标参数包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Wherein, the target parameter includes at least one of the following: frame rate, image resolution, image sensor type, and exposure time.

本申请实施例提供的电子设备,通过在电子设备中加入图像处理芯片,使得主控芯片可以根据图像传感器的目标参数,将图像传感器获取的视频数据发送至图像处理芯片进行插帧,以提高视频帧数,进而可以提高视频流畅度,优化视频数据;同时还可以达到不同拍摄模式下所需视频帧数的要求,从而可以实现更多的拍摄功能,提高了用户的拍摄体验。In the electronic device provided by the embodiments of the present application, by adding an image processing chip to the electronic device, the main control chip can send the video data acquired by the image sensor to the image processing chip according to the target parameters of the image sensor for frame interpolation, so as to improve the video quality. The number of frames can improve the fluency of the video and optimize the video data; at the same time, it can also meet the requirements of the number of video frames required in different shooting modes, so that more shooting functions can be realized and the shooting experience of users can be improved.

可选地,在所述目标参数包括所述传感器类型、所述帧率、所述图像分辨率中的任意一项的情况下,所述预设条件为所述目标参数不支持所述目标帧率。Optionally, when the target parameter includes any one of the sensor type, the frame rate, and the image resolution, the preset condition is that the target parameter does not support the target frame. Rate.

可选地,处理器810,还用于使所述电子设备接收用户的第一输入;Optionally, the processor 810 is further configured to enable the electronic device to receive the first input of the user;

还用于使所述主控芯片响应于第一输入,切换所述目标参数。It is also used to make the main control chip switch the target parameter in response to the first input.

可选地,所述目标帧率为慢动作视频的拍摄帧率。Optionally, the target frame rate is the shooting frame rate of the slow-motion video.

应理解的是,本申请实施例中,输入单元804可以包括图形处理器(GraphicsProcessing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器809可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。It should be understood that, in this embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042. camera) to process the image data of still pictures or videos. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 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 herein again. Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.

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

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

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

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

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

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of computer software products that are essentially or contribute to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk , CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the 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 embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (10)

1.一种视频处理方法,应用于电子设备,其特征在于,所述电子设备包括:主控芯片、图像处理芯片和图像传感器,所述主控芯片的第一接口与所述图像处理芯片电连接,所述主控芯片的第二接口与所述图像传感器电连接;所述方法包括:1. A video processing method, applied to electronic equipment, is characterized in that, described electronic equipment comprises: main control chip, image processing chip and image sensor, the first interface of described main control chip is electrically connected with described image processing chip. connected, the second interface of the main control chip is electrically connected to the image sensor; the method includes: 所述图像传感器获取视频数据,将所述视频数据发送至所述主控芯片;The image sensor acquires video data, and sends the video data to the main control chip; 所述主控芯片接收所述视频数据,在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;The main control chip receives the video data, and sends the video data to the image processing chip when the target parameter of the image sensor meets a preset condition; 所述图像处理芯片对所述视频数据进行插帧,生成目标视频,并将所述目标视频发送至所述主控芯片;The image processing chip inserts frames on the video data, generates a target video, and sends the target video to the main control chip; 其中,所述目标参数包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Wherein, the target parameter includes at least one of the following: frame rate, image resolution, image sensor type, and exposure time. 2.根据权利要求1所述的视频处理方法,其特征在于,在所述目标参数包括所述传感器类型、所述帧率、所述图像分辨率中的任意一项的情况下,所述预设条件为所述目标参数不支持所述目标帧率。2 . The video processing method according to claim 1 , wherein when the target parameter includes any one of the sensor type, the frame rate, and the image resolution, the pre- Let the condition be that the target parameter does not support the target frame rate. 3.根据权利要求1所述的视频处理方法,其特征在于,在所述目标参数包括所述曝光时间和所述帧率的情况下,所述在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片,包括:3 . The video processing method according to claim 1 , wherein, when the target parameter includes the exposure time and the frame rate, the target parameter on the image sensor satisfies a preset condition. 4 . In the case of sending the video data to the image processing chip, including: 在所述曝光时间满足第一预设条件的情况下,降低所述帧率;In the case that the exposure time satisfies the first preset condition, reducing the frame rate; 在所述帧率满足第二预设条件的情况下,将所述视频数据发送至所述图像处理芯片;sending the video data to the image processing chip under the condition that the frame rate satisfies the second preset condition; 其中,所述第一预设条件为所述曝光时间低于第一阈值;Wherein, the first preset condition is that the exposure time is lower than a first threshold; 所述第二预设条件为所述帧率低于第二阈值。The second preset condition is that the frame rate is lower than a second threshold. 4.根据权利要求1所述的视频处理方法,其特征在于,在所述主控芯片接收所述视频数据之后,还包括:4. The video processing method according to claim 1, wherein after the main control chip receives the video data, it further comprises: 所述电子设备接收用户的第一输入;the electronic device receives the user's first input; 所述主控芯片响应于第一输入,切换所述目标参数。The main control chip switches the target parameter in response to the first input. 5.根据权利要求2所述的视频处理方法,其特征在于,所述目标帧率为慢动作视频的拍摄帧率。5 . The video processing method according to claim 2 , wherein the target frame rate is the shooting frame rate of the slow-motion video. 6 . 6.一种视频处理装置,其特征在于,应用于如权利要求1所述的电子设备,所述装置包括:6. A video processing apparatus, characterized in that, applied to the electronic device as claimed in claim 1, the apparatus comprising: 获取模块,用于使所述图像传感器获取视频数据,将所述视频数据发送至所述主控芯片;an acquisition module, configured to enable the image sensor to acquire video data and send the video data to the main control chip; 第一接收模块,用于使所述主控芯片接收所述视频数据,在所述图像传感器的目标参数满足预设条件的情况下,将所述视频数据发送至所述图像处理芯片;a first receiving module, configured to enable the main control chip to receive the video data, and send the video data to the image processing chip when the target parameter of the image sensor meets a preset condition; 生成模块,用于使所述图像处理芯片对所述视频数据进行插帧,生成目标视频,并将所述目标视频发送至所述主控芯片;A generation module, configured to make the image processing chip perform frame insertion on the video data, generate a target video, and send the target video to the main control chip; 其中,所述目标参数包括以下至少一项:帧率、图像分辨率、图像传感器类型、曝光时间。Wherein, the target parameter includes at least one of the following: frame rate, image resolution, image sensor type, and exposure time. 7.根据权利要求6所述的视频处理装置,其特征在于,在所述目标参数包括所述传感器类型、所述帧率、所述图像分辨率中的任意一项的情况下,所述预设条件为所述目标参数不支持所述目标帧率。7 . The video processing apparatus according to claim 6 , wherein, when the target parameter includes any one of the sensor type, the frame rate, and the image resolution, the preset Let the condition be that the target parameter does not support the target frame rate. 8.根据权利要求6所述的视频处理装置,其特征在于,在所述目标参数包括所述曝光时间和所述帧率的情况下,所述第一接收模块具体用于:8 . The video processing apparatus according to claim 6 , wherein, when the target parameter includes the exposure time and the frame rate, the first receiving module is specifically configured to: 在所述曝光时间满足第一预设条件的情况下,降低所述帧率;In the case that the exposure time satisfies the first preset condition, reducing the frame rate; 在所述帧率满足第二预设条件的情况下,将所述视频数据发送至所述图像处理芯片;sending the video data to the image processing chip under the condition that the frame rate satisfies the second preset condition; 其中,所述第一预设条件为所述曝光时间低于第一阈值;Wherein, the first preset condition is that the exposure time is lower than a first threshold; 所述第二预设条件为所述帧率低于第二阈值。The second preset condition is that the frame rate is lower than a second threshold. 9.一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的视频处理方法的步骤。9. An electronic device, characterized in that it comprises a processor and a memory, wherein the memory stores a program or an instruction that can be run on the processor, and when the program or instruction is executed by the processor, the implementation as claimed in the claims Steps of the video processing method described in any one of 1-5. 10.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的视频处理方法的步骤。10. A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the video processing according to any one of claims 1-5 is realized steps of the method.
CN202111630459.6A 2021-12-28 2021-12-28 Video processing method, video processing device and electronic equipment Pending CN114285978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111630459.6A CN114285978A (en) 2021-12-28 2021-12-28 Video processing method, video processing device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111630459.6A CN114285978A (en) 2021-12-28 2021-12-28 Video processing method, video processing device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114285978A true CN114285978A (en) 2022-04-05

Family

ID=80877372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111630459.6A Pending CN114285978A (en) 2021-12-28 2021-12-28 Video processing method, video processing device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114285978A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514890A (en) * 2022-09-09 2022-12-23 维沃移动通信有限公司 Image processing apparatus, image processing method, and electronic device
CN115514902A (en) * 2022-09-09 2022-12-23 维沃移动通信有限公司 Image processing circuits and electronic devices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412451A (en) * 2015-07-28 2017-02-15 联发科技股份有限公司 Image processing method, device and system
CN110636375A (en) * 2019-11-11 2019-12-31 RealMe重庆移动通信有限公司 Video stream processing method and device, terminal equipment and computer readable storage medium
CN111918098A (en) * 2020-09-16 2020-11-10 Oppo广东移动通信有限公司 Video processing method, device, electronic device, server and storage medium
CN112004086A (en) * 2020-08-21 2020-11-27 Oppo广东移动通信有限公司 Video data processing method and device
CN112532865A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Slow-motion video shooting method and electronic equipment
WO2021093712A1 (en) * 2019-11-11 2021-05-20 华为技术有限公司 Image processing method and related product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412451A (en) * 2015-07-28 2017-02-15 联发科技股份有限公司 Image processing method, device and system
CN112532865A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Slow-motion video shooting method and electronic equipment
CN110636375A (en) * 2019-11-11 2019-12-31 RealMe重庆移动通信有限公司 Video stream processing method and device, terminal equipment and computer readable storage medium
WO2021093712A1 (en) * 2019-11-11 2021-05-20 华为技术有限公司 Image processing method and related product
CN112004086A (en) * 2020-08-21 2020-11-27 Oppo广东移动通信有限公司 Video data processing method and device
CN111918098A (en) * 2020-09-16 2020-11-10 Oppo广东移动通信有限公司 Video processing method, device, electronic device, server and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514890A (en) * 2022-09-09 2022-12-23 维沃移动通信有限公司 Image processing apparatus, image processing method, and electronic device
CN115514902A (en) * 2022-09-09 2022-12-23 维沃移动通信有限公司 Image processing circuits and electronic devices
WO2024051674A1 (en) * 2022-09-09 2024-03-14 维沃移动通信有限公司 Image processing circuit and electronic device

Similar Documents

Publication Publication Date Title
CN104333701B (en) Method and device for displaying camera preview pictures as well as terminal
CN111601040B (en) Camera control method and device and electronic equipment
CN107920182B (en) Portable electronic device, electronic device and display method
US8106991B2 (en) Image processing apparatus and image processing method
CN112312016B (en) Shooting processing method and device, electronic equipment and readable storage medium
WO2018036164A1 (en) Screen flash photographing method, device and mobile terminal
CN112866576B (en) Image preview method, storage medium and display device
WO2022111717A1 (en) Image processing method and apparatus, and electronic device
CN112672060A (en) Shooting method and device and electronic equipment
US10911686B2 (en) Zoom control device, zoom control method, and program
CN114286007B (en) Image processing circuit, image processing method, electronic device and readable storage medium
US20200059597A1 (en) Shooting method and terminal
CN114285978A (en) Video processing method, video processing device and electronic equipment
CN112437237B (en) Shooting method and device
CN111866401A (en) Shooting method, device and electronic device
CN114286003A (en) Shooting method, shooting device and electronic device
WO2022095878A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
CN113891018A (en) Shooting method, device and electronic device
CN114745505A (en) Shooting method, apparatus, electronic device and readable storage medium
CN115633251A (en) Image processing method, circuit and electronic equipment
CN114285956A (en) Video sharing circuit, method and device and electronic equipment
CN112312024A (en) Photographic processing method, device and storage medium
CN117278687A (en) Image processing method and device
CN118354198A (en) Camera starting method, device, medium and electronic equipment
CN118317203A (en) Image processing method and device, electronic equipment and chip

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220405