[go: up one dir, main page]

CN116703706A - Blackboard display processing method, device, equipment and storage medium - Google Patents

Blackboard display processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116703706A
CN116703706A CN202310612030.7A CN202310612030A CN116703706A CN 116703706 A CN116703706 A CN 116703706A CN 202310612030 A CN202310612030 A CN 202310612030A CN 116703706 A CN116703706 A CN 116703706A
Authority
CN
China
Prior art keywords
image
area
frame
blackboard
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310612030.7A
Other languages
Chinese (zh)
Other versions
CN116703706B (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.)
Ava Electronic Technology Co Ltd
Original Assignee
Ava Electronic Technology 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 Ava Electronic Technology Co Ltd filed Critical Ava Electronic Technology Co Ltd
Priority to CN202310612030.7A priority Critical patent/CN116703706B/en
Publication of CN116703706A publication Critical patent/CN116703706A/en
Application granted granted Critical
Publication of CN116703706B publication Critical patent/CN116703706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Drawing Aids And Blackboards (AREA)

Abstract

本发明公开一种板书显示处理方法、装置、设备及存储介质。其中,该方法包括步骤:获取上一图像帧中的遮挡物区域的第一区域位置信息和当前图像帧中的遮挡物区域的第二区域位置信息;根据第一区域位置信息和第二区域位置信息确定第三区域;获取板书图像和当前图像帧;提取板书图像中在第三区域的位置上的第一子图像,提取当前图像帧中在第三区域的位置上的第二子图像;叠加第一子图像和第二子图像,得到第三子图像;获取上一帧效果图像;用第三子图像替换上一帧效果图像中的在第三区域的位置上的子图像,得到替换后的图像,用替换后的图像作为当前帧效果图像。本发明对于超高清输入图像,也做到实时处理,不会出现播放卡顿或掉帧的情况。

The invention discloses a blackboard writing display processing method, device, equipment and storage medium. Wherein, the method includes the steps of: obtaining the first area position information of the occluder area in the previous image frame and the second area position information of the occluder area in the current image frame; according to the first area position information and the second area position The information determines the third area; obtain the blackboard image and the current image frame; extract the first sub-image at the position of the third area in the blackboard image, and extract the second sub-image at the position of the third area in the current image frame; overlay The first sub-image and the second sub-image to obtain the third sub-image; obtain the previous frame effect image; replace the sub-image at the position of the third area in the previous frame effect image with the third sub-image, and obtain after replacement , and use the replaced image as the effect image of the current frame. The present invention also achieves real-time processing of ultra-high-definition input images, and there will be no situation of playback freeze or frame drop.

Description

板书显示处理方法、装置、设备及存储介质Blackboard display processing method, device, equipment and storage medium

技术领域technical field

本发明涉及人工智能视觉识别的技术领域,更具体地,涉及一种板书显示处理方法、装置、设备及存储介质。The present invention relates to the technical field of artificial intelligence visual recognition, and more specifically, to a blackboard writing display processing method, device, equipment and storage medium.

背景技术Background technique

用于会议、演讲、教学等的在白板或黑板等书写对象上的板书记录是信息传递的重要载体,参会者、观众或学生透过观看板书记录可以更好地理解主讲人要传达的信息。因此,在远程会议或教学中,也会拍摄板书的视频,让参与者能够观看主讲人的板书,但是在拍摄板书视频时,主讲人在讲解时往往会挡住板书内容,导致参与者无法观看全部的板书内容。The blackboard recordings on whiteboards or blackboards used for meetings, speeches, teaching, etc. are important carriers of information transmission. Participants, audiences or students can better understand the information that the speaker wants to convey by watching the blackboard recordings . Therefore, in remote conferences or teaching, videos of blackboard writing are also shot so that participants can watch the speaker’s writing on blackboard. blackboard content.

现有技术中,为了解决视频中板书内容被遮挡的问题,通常通过多帧视频合成得到无遮挡的板书图像,然后板书图像与有主讲人的当前图像帧进行叠加,得到既有主讲人又能够看清板书内容的目标视频帧。然而,现在视频的分辨率越来越高,导致叠加过程花费的时间也越来越长,对于超高清输入图像,无法做到实时处理,会出现播放卡顿或掉帧的情况。In the prior art, in order to solve the problem that the blackboard writing content in the video is occluded, an unoccluded blackboard writing image is usually obtained through multi-frame video synthesis, and then the blackboard writing image is superimposed on the current image frame with the speaker to obtain both the speaker and the image frame. The target video frame for clearly reading the contents of the writing on the blackboard. However, the resolution of video is getting higher and higher, which leads to the longer and longer time spent in the superimposition process. For ultra-high-definition input images, it cannot be processed in real time, and playback freezes or frame drops will occur.

发明内容Contents of the invention

为克服现有技术中的至少一种缺陷,本发明提供一种板书显示处理方法、视频切换方法、装置、设备及存储介质。为解决上述技术问题,本发明采用的技术方案如下。In order to overcome at least one defect in the prior art, the present invention provides a blackboard writing display processing method, video switching method, device, equipment and storage medium. In order to solve the above-mentioned technical problems, the technical scheme adopted in the present invention is as follows.

第一方面,本发明提供一种板书显示处理方法,包括步骤:In a first aspect, the present invention provides a blackboard display processing method, comprising the steps of:

获取上一图像帧中的遮挡物区域的第一区域位置信息和当前图像帧中的遮挡物区域的第二区域位置信息,其中,所述上一图像帧和当前图像帧均为摄像机拍摄到的图像;Obtain the first area position information of the occluder area in the previous image frame and the second area position information of the occluder area in the current image frame, wherein the previous image frame and the current image frame are both captured by the camera image;

根据第一区域位置信息和第二区域位置信息确定第三区域,其中,所述第三区域的范围包含第一区域和第二区域;determining a third area according to the location information of the first area and the location information of the second area, wherein the scope of the third area includes the first area and the second area;

获取板书图像和当前图像帧,其中,所述板书图像是关于板书内容的无遮挡图像;Obtaining the blackboard image and the current image frame, wherein the blackboard image is an unblocked image about the content of the blackboard;

提取板书图像中在第三区域的位置上的第一子图像,提取当前图像帧中在第三区域的位置上的第二子图像;Extract the first sub-image at the position of the third area in the blackboard image, and extract the second sub-image at the position of the third area in the current image frame;

叠加第一子图像和第二子图像,得到第三子图像;superimposing the first sub-image and the second sub-image to obtain a third sub-image;

获取上一帧效果图像;Get the effect image of the last frame;

用所述第三子图像替换上一帧效果图像中的在第三区域的位置上的子图像,得到替换后的图像,输出所述替换后的图像,用所述替换后的图像作为当前帧效果图像。Using the third sub-image to replace the sub-image at the position of the third area in the previous frame effect image to obtain a replaced image, output the replaced image, and use the replaced image as the current frame effect image.

在一种实施方式中,还包括步骤:In one embodiment, further comprising the steps of:

在连续输出N帧所述替换后的图像作为效果图像时,获取最新更新的板书图像,将所述最新更新的板书图像和第N+1帧图像帧叠加,得到初始效果图像,输出所述初始效果图像,用所述初始效果图像作为第N+1帧效果图像,其中,所述N为预设数量阈值,所述第N+1帧图像帧为所述摄像机拍摄到的图像。When continuously outputting the replaced image of N frames as the effect image, the latest updated blackboard image is obtained, and the newly updated blackboard image and the N+1th frame image frame are superimposed to obtain an initial effect image, and the initial An effect image, using the initial effect image as the N+1th frame effect image, wherein the N is a preset number threshold, and the N+1th image frame is an image captured by the camera.

在一种实施方式中,所述根据第一区域位置信息和第二区域位置信息确定第三区域之前,还包括步骤:In one embodiment, before determining the third area according to the position information of the first area and the position information of the second area, the step further includes:

根据第一区域位置信息和第二区域位置信息计算第一区域与第二区域的重合度;calculating the coincidence degree between the first area and the second area according to the position information of the first area and the position information of the second area;

在所述重合度在预设阈值区间内时,执行所述根据第一区域位置信息和第二区域位置信息确定第三区域。When the coincidence degree is within the preset threshold interval, the determining of the third area according to the position information of the first area and the position information of the second area is performed.

在一种实施方式中,还包括步骤:In one embodiment, further comprising the steps of:

在所述重合度不在预设阈值区间内时,叠加板书图像和当前图像帧,得到初始效果图像,输出所述初始效果图像,用所述初始效果图像作为当前帧效果图像。When the coincidence degree is not within the preset threshold interval, the blackboard image and the current image frame are superimposed to obtain an initial effect image, and the initial effect image is output, and the initial effect image is used as the current frame effect image.

在一种实施方式中,所述位置信息为掩码图;In one embodiment, the location information is a mask image;

所述根据第一区域位置信息和第二区域位置信息确定第三区域的过程,包括步骤:The process of determining the third area according to the location information of the first area and the location information of the second area includes the steps of:

将第一区域位置信息和第二区域位置信息进行逻辑相或,得到第三区域。A logical OR is performed on the position information of the first area and the position information of the second area to obtain the third area.

在一种实施方式中,所述位置信息为矩形坐标信息;In one embodiment, the position information is rectangular coordinate information;

所述根据第一区域位置信息和第二区域位置信息确定第三区域的过程,包括步骤:The process of determining the third area according to the location information of the first area and the location information of the second area includes the steps of:

取第一区域位置信息对应的第一矩形区域和第二区域位置信息对应的第二矩形区域的最小外接矩形作为第三区域。The smallest circumscribed rectangle of the first rectangular area corresponding to the first area position information and the second rectangular area corresponding to the second area position information is taken as the third area.

在一种实施方式中,所述板书图像与生成所述上一帧效果图像中所采用的板书图像一致。In an implementation manner, the blackboard writing image is consistent with the blackboard writing image used in generating the last frame of effect image.

第二方面,本发明提供一种板书显示处理装置,包括:In a second aspect, the present invention provides a blackboard writing display processing device, comprising:

获取模块,用于获取上一图像帧中的遮挡物区域的第一区域位置信息和当前图像帧中的遮挡物区域的第二区域位置信息,获取板书图像和当前图像帧,获取上一帧效果图像,其中,所述上一图像帧和当前图像帧均为摄像机拍摄到的图像,所述板书图像是关于板书内容的无遮挡图像;The obtaining module is used to obtain the first region position information of the occluder region in the previous image frame and the second region position information of the occluder region in the current image frame, obtain the blackboard image and the current image frame, and obtain the effect of the previous frame image, wherein, the last image frame and the current image frame are images captured by a camera, and the blackboard image is an unblocked image about the content of the blackboard writing;

确定模块,用于根据第一区域位置信息和第二区域位置信息确定第三区域,其中,所述第三区域的范围包含第一区域和第二区域;A determining module, configured to determine a third area according to the location information of the first area and the location information of the second area, wherein the scope of the third area includes the first area and the second area;

提取模块,用于提取板书图像中在第三区域的位置上的第一子图像,提取当前图像帧中在第三区域的位置上的第二子图像;Extraction module, for extracting the first sub-image at the position of the third area in the blackboard image, and extracting the second sub-image at the position of the third area in the current image frame;

叠加模块,用于叠加第一子图像和第二子图像,得到第三子图像;A superposition module, used to superimpose the first sub-image and the second sub-image to obtain the third sub-image;

替换模块,用于用所述第三子图像替换上一帧效果图像中的在第三区域的位置上的子图像,得到替换后的图像,输出所述替换后的图像,用所述替换后的图像作为当前帧效果图像。A replacement module, configured to replace the sub-image at the position of the third area in the previous frame of the effect image with the third sub-image to obtain a replaced image, output the replaced image, and use the replaced The image of is used as the effect image of the current frame.

第三方面,本发明提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任一实施方式的方法。In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, the method of any of the above-mentioned embodiments is implemented .

第四方面,本发明提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述任一实施方式的方法。In a fourth aspect, the present invention provides a computer-readable storage medium on which a computer program is stored, which is characterized in that, when the program is executed by a processor, the method in any one of the above-mentioned implementation modes is implemented.

本发明中,通过获取局部变化的区域位置信息,只对发生变化的局部区域进行图像叠加,用该叠加的图像替换原有图像的对应位置,由于只对局部区域进行图像叠加,减少了叠加时的开销,能够快速生成叠加后的效果图,即使是对于超高清输入图像,也做到实时处理,不会出现播放卡顿或掉帧的情况。In the present invention, by acquiring locally changed area position information, image superimposition is only performed on the changed local area, and the corresponding position of the original image is replaced with the superimposed image. Overhead, it can quickly generate superimposed renderings, even for ultra-high-definition input images, it can be processed in real time, and there will be no playback freezes or frame drops.

附图说明Description of drawings

图1是本发明实施例一的流程示意图。Fig. 1 is a schematic flow chart of Embodiment 1 of the present invention.

图2是本发明实施例一的上一图像帧。Fig. 2 is the last image frame of Embodiment 1 of the present invention.

图3是本发明实施例一的当前图像帧。FIG. 3 is a current image frame of Embodiment 1 of the present invention.

图4是本发明实施例一的板书图像。Fig. 4 is an image of blackboard writing in Embodiment 1 of the present invention.

图5是本发明实施例一的上一帧效果图像。Fig. 5 is an effect image of the previous frame according to Embodiment 1 of the present invention.

图6是本发明实施例一的上一图像帧的掩码图。FIG. 6 is a mask diagram of the last image frame according to Embodiment 1 of the present invention.

图7是本发明实施例一的当前图像帧的掩码图。Fig. 7 is a mask diagram of the current image frame according to Embodiment 1 of the present invention.

图8是本发明实施例一的一实施方式的第三区域。Fig. 8 is the third area of an implementation manner of the first embodiment of the present invention.

图9是本发明实施例一的上一图像帧的矩形区域。FIG. 9 is a rectangular area of the previous image frame according to Embodiment 1 of the present invention.

图10是本发明实施例一的当前图像帧的矩形区域。Fig. 10 is a rectangular area of the current image frame according to Embodiment 1 of the present invention.

图11是本发明实施例一的另一实施方式的第三区域。Fig. 11 is the third area of another embodiment of the first embodiment of the present invention.

图12是本发明实施例一的一实施方式的板书图像的第一子区域。Fig. 12 is the first sub-area of the blackboard writing image in an implementation manner of the first embodiment of the present invention.

图13是本发明实施例一的一实施方式的当前图像帧的第二子区域。Fig. 13 is a second sub-area of the current image frame in an implementation manner of the first embodiment of the present invention.

图14是本发明实施例一的另一实施方式的板书图像的第一子区域。Fig. 14 is the first sub-area of the blackboard writing image according to another implementation of the first embodiment of the present invention.

图15是本发明实施例一的另一实施方式的当前图像帧的第二子区域。Fig. 15 is another implementation manner of the first embodiment of the present invention, the second sub-region of the current image frame.

图16是本发明实施例一的一实施方式的第三子区域。Fig. 16 is the third sub-area of an implementation manner of the first embodiment of the present invention.

图17是本发明实施例一的另一实施方式的第三子区域。Fig. 17 is the third sub-area of another embodiment of the first embodiment of the present invention.

图18是本发明实施例一的当前帧效果图像。Fig. 18 is an effect image of the current frame according to Embodiment 1 of the present invention.

图19是本发明实施例二的整体结构示意图。Fig. 19 is a schematic diagram of the overall structure of Embodiment 2 of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

需要说明的是,本发明实施例所涉及的术语“第一\第二\……”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\……”在允许的情况下可以互换特定的顺序或先后次序。应该理解“第一\第二\……”区分的对象在适当情况下可以互换,以使这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。It should be noted that the term "first\second\..." involved in the embodiment of the present invention is only to distinguish similar objects, and does not represent a specific ordering of objects. Understandably, "first\second\ ..." are interchangeable in specific order or sequence where permissible. It should be understood that "first\second\..." distinctions are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein.

实施例一Embodiment one

请参见图1,图1为本发明实施例一提供的一种板书显示处理方法的流程示意图,该方法包括:步骤S110、步骤S120、步骤S130、步骤S140、步骤S150、步骤S160和步骤S170。需要注意的是,步骤S110到步骤S170仅为附图标记,用于清晰解释实施例与附图1的对应关系,不代表对本实施例中的各方法步骤的顺序限定。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a blackboard writing display processing method provided by Embodiment 1 of the present invention. The method includes: step S110, step S120, step S130, step S140, step S150, step S160 and step S170. It should be noted that steps S110 to S170 are only reference numerals, which are used to clearly explain the corresponding relationship between the embodiment and FIG. 1 , and do not represent a limitation on the order of the method steps in this embodiment.

步骤S110,获取上一图像帧中的遮挡物区域的第一区域位置信息和当前图像帧中的遮挡物区域的第二区域位置信息,其中,所述上一图像帧和当前图像帧均为摄像机拍摄到的图像;Step S110, acquiring the first area position information of the occluder area in the previous image frame and the second area position information of the occluder area in the current image frame, wherein both the previous image frame and the current image frame are camera captured images;

步骤S120,根据第一区域位置信息和第二区域位置信息确定第三区域,其中,所述第三区域的范围包含第一区域和第二区域;Step S120, determining a third area according to the location information of the first area and the location information of the second area, wherein the scope of the third area includes the first area and the second area;

步骤S130,获取板书图像和当前图像帧,其中,所述板书图像是关于板书内容的无遮挡图像;Step S130, acquiring the blackboard image and the current image frame, wherein the blackboard image is an unobstructed image about the contents of the blackboard;

步骤S140,提取板书图像中在第三区域的位置上的第一子图像,提取当前图像帧中在第三区域的位置上的第二子图像;Step S140, extracting the first sub-image at the position of the third area in the blackboard image, and extracting the second sub-image at the position of the third area in the current image frame;

步骤S150,叠加第一子图像和第二子图像,得到第三子图像;Step S150, superimposing the first sub-image and the second sub-image to obtain a third sub-image;

步骤S160,获取上一帧效果图像;Step S160, acquiring the effect image of the last frame;

步骤S170,用所述第三子图像替换上一帧效果图像中的在第三区域的位置上的子图像,得到替换后的图像,输出所述替换后的图像,用所述替换后的图像作为当前帧效果图像。Step S170, using the third sub-image to replace the sub-image at the position of the third area in the previous frame of the effect image to obtain a replaced image, output the replaced image, and use the replaced image As the current frame effect image.

如图2所示,图2是摄像机拍摄到的上一图像帧,图3是摄像机拍摄到的当前图像帧。图4是通过多帧视频合成,对板书笔迹进行提取后得到的无遮挡的板书图像,图5是将板书图像与上一图像帧叠加而成的上一帧效果图像,该效果图像既包含了老师又包含了板书图像。可以理解的是,本方法能用于各种能够展示板书的场景,其中的板书展示板可以但不限于黑板、白板、多媒体展示板、智慧黑板等。但为了方便叙述,本实施方式以教室教学场景为例进行说明,其中的板书展示板为黑板,黑板上的内容即为教师书写的板书内容。As shown in FIG. 2 , FIG. 2 is the last image frame captured by the camera, and FIG. 3 is the current image frame captured by the camera. Figure 4 is an unoccluded blackboard writing image obtained by extracting handwriting on the blackboard through multi-frame video synthesis. Figure 5 is the previous frame effect image obtained by superimposing the blackboard image and the previous image frame. The effect image contains both The teacher also includes the blackboard image. It can be understood that this method can be used in various scenarios where blackboard writing can be displayed, and blackboard display boards can be but not limited to blackboards, whiteboards, multimedia display boards, and smart blackboards. However, for the convenience of description, this implementation mode takes a classroom teaching scene as an example for illustration, wherein the blackboard display board is a blackboard, and the content on the blackboard is the blackboard writing content written by the teacher.

这里需要说明的是,摄像机拍摄到的图像帧可以是如图3所示,其大小与板书图像的大小差不多,也可以是远远大于板书图像,即板书区域只是图像帧中的一部分,这时的效果图像是部分区域叠加的图像,即将板书图像置于图像帧中板书区域位置上进行叠加而生成的图像。What needs to be explained here is that the image frame captured by the camera can be as shown in Figure 3, and its size is similar to the size of the blackboard image, or it can be much larger than the blackboard image, that is, the blackboard area is only a part of the image frame. The effect image of is an image superimposed in some areas, that is, an image generated by superimposing the blackboard writing image on the position of the blackboard writing area in the image frame.

这里需要说明的是,图像叠加融合,主要是完整板书内容图像与拍摄到的图像帧进行透明度叠加,包括以下两种:What needs to be explained here is that the image superposition and fusion mainly refers to the transparency superposition of the complete blackboard content image and the captured image frame, including the following two types:

1、可以是alpha线性叠加,O_t=alpha*I_t+(1-alpha)*K_t,其中,O_t是效果图像,I_t是拍摄到的图像帧数据,K_t完整板书内容图像;1. It can be alpha linear superposition, O_t=alpha*I_t+(1-alpha)*K_t, where O_t is the effect image, I_t is the captured image frame data, and K_t is the complete blackboard content image;

2、可以是字迹内容替换:非板书内容区域:O_t=alpha*I_t,板书内容区域:O_t=K_t。通过降低非板书内容区域透明度,突显板书内容信息;2. It can be handwriting content replacement: non-blackboard content area: O_t=alpha*I_t, blackboard content area: O_t=K_t. Highlight the content information of blackboard writing by reducing the transparency of non-blackboard writing content areas;

步骤S110中,获取上一图像帧中的遮挡物区域的第一区域位置信息和当前图像帧中的遮挡物区域的第二区域位置信息。在教室场景下,遮挡物一般是教师人体,当然也有可能是讲课的教具或教师手中的物件等,另外,摄像机拍摄的画面是定焦画面,且摄像机拍摄时是不会转动的,所以摄像机拍摄到的画面内容是基本不变的,只有在教师在移动时,第一区域位置与第二区域位置才会发生变化。In step S110, the first area position information of the obstruction area in the last image frame and the second area position information of the obstruction area in the current image frame are acquired. In the classroom scene, the occluder is generally the teacher's body, of course, it may also be teaching aids or objects in the hands of the teacher. In addition, the picture captured by the camera is a fixed-focus picture, and the camera will not rotate when shooting, so the camera shoots The content of the screen is basically unchanged, and only when the teacher is moving, the position of the first area and the second area will change.

在获得了第一区域位置信息和第二区域位置信息后,可以根据第一区域位置信息和第二区域位置信息确定第三区域,该第三区域包含第一区域和第二区域。该第三区域实际上就是上一视频帧和当前视频帧中,画面发生变化了的区域。After obtaining the location information of the first area and the location information of the second area, a third area may be determined according to the location information of the first area and the location information of the second area, where the third area includes the first area and the second area. The third area is actually the area where the picture has changed between the previous video frame and the current video frame.

在一种实施方式中,如图6和7所示,该区域位置信息为掩码图。图6是上一图像帧中的遮挡物区域的第一位置信息,图7是当前图像帧中的遮挡物区域的第二位置信息。In one implementation manner, as shown in FIGS. 6 and 7 , the area location information is a mask map. FIG. 6 is the first position information of the occluder region in the last image frame, and FIG. 7 is the second position information of the occluder region in the current image frame.

其中,步骤S120的过程,包括:步骤S121。Wherein, the process of step S120 includes: step S121.

步骤S121,将第一区域位置信息和第二区域位置信息进行逻辑相或,得到第三区域。In step S121, a logical OR is performed on the location information of the first area and the location information of the second area to obtain a third area.

如图8所示,图8中的白色部分就是将第一区域位置信息和第二区域位置信息进行逻辑相或后得到的第三区域。As shown in FIG. 8 , the white part in FIG. 8 is the third area obtained by logically ORing the position information of the first area and the position information of the second area.

本实施方式可以更精准地找出需要替换的区域,但算力会有所增加。This embodiment can find out the area that needs to be replaced more accurately, but the computing power will increase.

在一种实施方式中,如图9和10所示,该区域位置信息为矩形坐标信息。图9中的虚线框是上一图像帧中的遮挡物区域的矩形坐标信息对应的第一矩形区域,图10中的虚线框是当前图像帧中的遮挡物区域的矩形坐标信息对应的第二矩形区域。In one implementation manner, as shown in FIGS. 9 and 10 , the area location information is rectangular coordinate information. The dotted line frame in Fig. 9 is the first rectangular area corresponding to the rectangular coordinate information of the occluder area in the last image frame, and the dotted line frame in Fig. 10 is the second rectangular area corresponding to the rectangular coordinate information of the occluder area in the current image frame. rectangular area.

其中,步骤S120的过程,包括:步骤S122。Wherein, the process of step S120 includes: step S122.

步骤S122,取第一区域位置信息对应的第一矩形区域和第二区域位置信息对应的第二矩形区域的最小外接矩形作为第三区域。Step S122, taking the smallest circumscribed rectangle of the first rectangular area corresponding to the first area position information and the second rectangular area corresponding to the second area position information as the third area.

如图11所示,图中的虚线框就是第一矩形区域和第二矩形区域的最小外接矩形,即第三区域。As shown in FIG. 11 , the dotted frame in the figure is the smallest circumscribed rectangle of the first rectangular area and the second rectangular area, that is, the third area.

步骤S130获取图4所示的板书图像和图3所示的当前图像帧。Step S130 acquires the blackboard image shown in FIG. 4 and the current image frame shown in FIG. 3 .

这里需要指出的是,对于步骤S130中获取的板书图像,该完整板书图像的提取及更新分为两种情况:It should be pointed out here that, for the blackboard writing image acquired in step S130, the extraction and update of the complete blackboard writing image are divided into two situations:

1、外部直接输入记录着完整板书内容的图像,例如,书写在电子屏幕上的字迹,可以通过直接获取当前电子屏幕输出,即可获得完整板书内容,每次都用新的板书内容替换上一次的板书内容图像;1. External direct input of images that record the content of the complete blackboard writing, for example, handwriting written on the electronic screen, you can obtain the complete blackboard writing content by directly obtaining the output of the current electronic screen, and replace the last one with the new blackboard writing content every time The blackboard content image;

2、根据之前的帧图像更新生成的完整板书内容图像。首先,提取第一帧板书内容,通过目标检测结构去除目标遮挡物,用与板书背景颜色相同的像素值补充,得到初始的完整板书内容;然后,下一次更新时,通过目标检测获取目标遮挡物位置,将当前帧的提取内容的目标遮挡物区域替换成上一次完整板书内容的对应区域内容,并将当前帧的提取内容作为新的完整板书内容图像输出。2. Update the generated complete blackboard content image according to the previous frame image. First, extract the content of the first frame of blackboard writing, remove the target occluder through the target detection structure, and supplement it with the pixel value of the same color as the background color of the blackboard writing to obtain the initial complete content of the blackboard writing; then, in the next update, obtain the target occluder through target detection Replace the target occluder area of the extracted content of the current frame with the corresponding area content of the last complete blackboard content, and output the extracted content of the current frame as a new complete blackboard content image.

这里还需要指出的是,由于板书图像是会发生更新的,所以步骤S130获取板书图像图像时是可以选择上一帧效果图像中所采用的板书图像或最新更新的板书图像的。这里优选的,是选择获取上一帧效果图像中所采用的板书图像,这样子出来的效果会比较好。It should also be pointed out here that since the blackboard writing image will be updated, the blackboard writing image used in the previous frame of effect image or the latest updated blackboard writing image can be selected when acquiring the blackboard writing image in step S130. It is preferred here to choose to obtain the blackboard image used in the previous frame of effect image, so that the effect will be better.

步骤S140中,分别提取板书图像和当前图像帧中的在第三区域位置上的子图像。如果第三区域是如图8所示的话,那么关于板书图像的第一子区域则如图12所示,关于当前图像帧的第二子区域则如图13所示;如果第三区域是如图11所示的话,那么关于板书图像的第一子区域则如图14所示,关于当前图像帧的第二子区域则如图15所示。In step S140, the blackboard image and the sub-image at the position of the third area in the current image frame are respectively extracted. If the third area is as shown in Figure 8, then as shown in Figure 12 about the first sub-area of the blackboard image, then as shown in Figure 13 about the second sub-area of the current image frame; if the third area is as shown in Figure 13 If it is shown in FIG. 11 , then the first sub-region of the blackboard image is as shown in FIG. 14 , and the second sub-region of the current image frame is as shown in FIG. 15 .

步骤S150中,将两个子图像叠加,得到第三子图像。图12和图13叠加的第三子图像如图16所示,图14和图15叠加的第三子图像如图17所示。In step S150, the two sub-images are superimposed to obtain a third sub-image. FIG. 12 and FIG. 13 superimpose the third sub-image as shown in FIG. 16 , and FIG. 14 and FIG. 15 superimpose the third sub-image as shown in FIG. 17 .

然后获取上一帧效果图像,将第三子图像替换上一帧效果图像中的在第三区域位置上的子图像,得到替换后的图像,图18所示,输出该替换后的图像,用该替换后的图像作为当前帧效果图像。Then obtain the last frame of effect image, replace the third sub-image with the sub-image at the third area position in the last frame of effect image, obtain the replaced image, as shown in Figure 18, output the replaced image, use The replaced image is used as the effect image of the current frame.

这里需要说明的是,用本方法得到的当前帧效果图像到了下一时刻就会成了上一帧效果图像,所以步骤S160中获取的上一帧效果图像有可能是图5的类型,即通过板书图像和图像帧直接叠加而成的,也有可能是图18的类型,通过替换部分子图像而成的。What needs to be explained here is that the current frame effect image obtained by this method will become the previous frame effect image at the next moment, so the previous frame effect image obtained in step S160 may be the type shown in Figure 5, that is, through The blackboard image and image frame are directly superimposed, or it may be the type shown in Figure 18 by replacing some sub-images.

本方法中,通过获取局部变化的区域位置信息,只对发生变化的局部区域进行图像叠加,用该叠加的图像替换原有图像的对应位置,由于只对局部区域进行图像叠加,减少了叠加时的开销,能够快速生成叠加后的效果图,即使是对于超高清输入图像,也做到实时处理,不会出现播放卡顿或掉帧的情况。In this method, by obtaining the location information of the locally changed area, only the image superposition is performed on the changed local area, and the corresponding position of the original image is replaced with the superimposed image. Overhead, it can quickly generate superimposed renderings, even for ultra-high-definition input images, it can be processed in real time, and there will be no playback freezes or frame drops.

在一种实施方式中,还包括:步骤S180。In one implementation manner, it further includes: step S180.

步骤S180,在连续输出N帧所述替换后的图像作为效果图像时,获取最新更新的板书图像,将所述最新更新的板书图像和第N+1帧图像帧叠加,得到初始效果图像,输出所述初始效果图像,用所述初始效果图像作为第N+1帧效果图像,其中,所述N为预设数量阈值,所述第N+1帧图像帧为所述摄像机拍摄到的图像。Step S180, when continuously outputting the replaced image of N frames as the effect image, obtain the latest updated blackboard image, superimpose the latest updated blackboard image and the N+1th image frame to obtain an initial effect image, and output For the initial effect image, use the initial effect image as the N+1th frame effect image, wherein the N is a preset number threshold, and the N+1th image frame is an image captured by the camera.

替换部分子图像生成效果图像的过程中,会出现错误,这些错误有可能会累积到之后的效果图像中,造成叠加的效果逐渐变差,所以当连续很多帧都是采用替换部分子图像生成效果图像后,要对效果图像进行“重置”,即设置一阈值N,当局部叠加而成的图像超过连接N帧,就通过板书图像和图像帧直接叠加生成效果图像(即初始效果图像),使用该初始效果图像作为输出。为了能够保证该初始效果图像中的板书内容是最新的,叠加时所使用的板书图像应该为最新更新的板书图像。In the process of replacing part of the sub-image to generate the effect image, there will be errors. These errors may be accumulated in the subsequent effect image, causing the superimposed effect to gradually deteriorate. Therefore, when many consecutive frames are generated by replacing part of the sub-image After the image, it is necessary to "reset" the effect image, that is, set a threshold N, and when the partially superimposed image exceeds the number of connected N frames, the effect image (that is, the initial effect image) is generated by directly superimposing the blackboard image and the image frame. Use this initial effect image as output. In order to ensure that the content of the writing on the blackboard in the initial effect image is up-to-date, the writing on the blackboard image used for superimposition should be the latest updated blackboard writing image.

这里需要说明的是,如果步骤S130选择获取上一帧效果图像中所采用的板书图像的话,这里优选N为板书图像内容刷新的间隔阈值,这样可以保证每次都是使用刚刚实时更新的板书图像生成初始效果图像,使得板书显示处理速度达到实时速度。What needs to be explained here is that if step S130 chooses to acquire the blackboard image used in the previous frame of effect image, N is preferably the interval threshold for refreshing the content of the blackboard image, which can ensure that the blackboard image that has just been updated in real time is used every time The initial effect image is generated, so that the blackboard display processing speed reaches real-time speed.

在一种实施方式中,步骤S120之前,还包括:步骤S210。In one implementation manner, before step S120, further include: step S210.

步骤S210,根据第一区域位置信息和第二区域位置信息计算第一区域与第二区域的重合度;Step S210, calculating the coincidence degree of the first area and the second area according to the position information of the first area and the position information of the second area;

在所述重合度在预设阈值区间内时,执行步骤S120。When the coincidence degree is within the preset threshold interval, step S120 is executed.

在一种实施方式中,还包括:步骤S220。In one implementation manner, it further includes: Step S220.

步骤S220,在所述重合度不在预设阈值区间内时,叠加板书图像和当前图像帧,得到初始效果图像,输出所述初始效果图像,用所述初始效果图像作为当前帧效果图像。Step S220, when the coincidence degree is not within the preset threshold interval, superimpose the blackboard writing image and the current image frame to obtain an initial effect image, output the initial effect image, and use the initial effect image as the current frame effect image.

以上两种实施方式中均加入了重合度的计算,通过重合度可以看出摄像机拍摄到的前后两帧图像帧中的区域是否出现较大区域的变化。如果计算出来的重合度在预设阈值区间内,说明了图像没有出现较大区域的变化,说明使用局部替换得到效果图像的方法还是合适的,如果计算出来的重合度不在预设阈值区间内,说明出现了较大区域的变化,这时就不适合使用局部替换得到效果图像的方法了,需要重新通过板书图像和图像帧直接叠加生成效果图像。Both of the above two implementations add the calculation of coincidence degree, through which it can be seen whether there is a large area change in the area in the two frames of image frames captured by the camera. If the calculated coincidence degree is within the preset threshold range, it means that there is no large area change in the image, which means that the method of using local replacement to obtain the effect image is still appropriate. If the calculated coincidence degree is not within the preset threshold range, It shows that there have been changes in a large area. At this time, it is not suitable to use the method of partial replacement to obtain the effect image. It is necessary to directly superimpose the image on the blackboard and the image frame to generate the effect image.

实施例二Embodiment two

与实施例一的板书显示处理方法相对应,如图19所示,本发明还提供一种板书显示处理装置19,包括:获取模块191、确定模块192、提取模块193、叠加模块194和替换模块195。Corresponding to the blackboard writing display processing method in Embodiment 1, as shown in FIG. 19 , the present invention also provides a blackboard writing display processing device 19, including: an acquisition module 191, a determination module 192, an extraction module 193, a superposition module 194 and a replacement module 195.

获取模块191,用于获取上一图像帧中的遮挡物区域的第一区域位置信息和当前图像帧中的遮挡物区域的第二区域位置信息,获取板书图像和当前图像帧,获取上一帧效果图像,其中,所述上一图像帧和当前图像帧均为摄像机拍摄到的图像,所述板书图像是关于板书内容的无遮挡图像;The acquiring module 191 is configured to acquire the first area position information of the occluder area in the previous image frame and the second area position information of the occluder area in the current image frame, acquire the blackboard image and the current image frame, and acquire the previous frame Effect image, wherein, the last image frame and the current image frame are images captured by a camera, and the blackboard image is an unblocked image about the blackboard content;

确定模块192,用于根据第一区域位置信息和第二区域位置信息确定第三区域,其中,所述第三区域的范围包含第一区域和第二区域;A determining module 192, configured to determine a third area according to the location information of the first area and the location information of the second area, wherein the range of the third area includes the first area and the second area;

提取模块193,用于提取板书图像中在第三区域的位置上的第一子图像,提取当前图像帧中在第三区域的位置上的第二子图像;The extraction module 193 is used to extract the first sub-image at the position of the third area in the blackboard image, and extract the second sub-image at the position of the third area in the current image frame;

叠加模块194,用于叠加第一子图像和第二子图像,得到第三子图像;A superposition module 194, configured to superimpose the first sub-image and the second sub-image to obtain a third sub-image;

替换模块195,用于用所述第三子图像替换上一帧效果图像中的在第三区域的位置上的子图像,得到替换后的图像,输出所述替换后的图像,用所述替换后的图像作为当前帧效果图像。The replacement module 195 is used to replace the sub-image at the position of the third area in the effect image of the previous frame with the third sub-image to obtain a replaced image, output the replaced image, and use the replaced The final image is used as the effect image of the current frame.

本装置中,通过获取局部变化的区域位置信息,只对发生变化的局部区域进行图像叠加,用该叠加的图像替换原有图像的对应位置,由于只对局部区域进行图像叠加,减少了叠加时的开销,能够快速生成叠加后的效果图,即使是对于超高清输入图像,也做到实时处理,不会出现播放卡顿或掉帧的情况。In this device, by acquiring the location information of the locally changed area, only the changed local area is image superimposed, and the corresponding position of the original image is replaced with the superimposed image. Overhead, it can quickly generate superimposed renderings, even for ultra-high-definition input images, it can be processed in real time, and there will be no playback freezes or frame drops.

在一种实施方式中,所述叠加模块还用于在连续输出N帧所述替换后的图像作为效果图像时,获取最新更新的板书图像,将所述最新更新的板书图像和当前图像帧叠加,得到初始效果图像,输出所述初始效果图像,用所述初始效果图像作为第N+1帧效果图像,其中,所述N为预设数量阈值,所述第N+1帧图像帧为所述摄像机拍摄到的图像。In one embodiment, the overlay module is further configured to obtain the latest updated blackboard image when continuously outputting N frames of the replaced image as the effect image, and superimpose the latest updated blackboard image with the current image frame , to obtain an initial effect image, output the initial effect image, and use the initial effect image as the N+1th frame effect image, wherein the N is a preset number threshold, and the N+1th frame image frame is all images captured by the camera.

在一种实施方式中,还包括判断模块。In one embodiment, a judging module is also included.

判断模块,用于根据第一区域位置信息和第二区域位置信息计算第一区域与第二区域的重合度,在所述重合度在预设阈值区间内时,控制确定模块执行所述根据第一区域位置信息和第二区域位置信息确定第三区域。The judgment module is used to calculate the coincidence degree of the first region and the second region according to the position information of the first region and the position information of the second region, and when the degree of coincidence is within a preset threshold interval, the control determination module executes the The first area location information and the second area location information determine the third area.

在一种实施方式中,判断模块还用于在所述重合度不在预设阈值区间内时,控制叠加模块叠加板书图像和当前图像帧,得到初始效果图像,输出所述初始效果图像,用所述初始效果图像作为当前帧效果图像。In one embodiment, the judging module is further configured to control the superimposing module to superimpose the blackboard writing image and the current image frame to obtain an initial effect image, and output the initial effect image when the coincidence degree is not within the preset threshold interval. The above initial effect image is used as the current frame effect image.

在一种实施方式中,所述位置信息为掩码图;确定模块执行所述根据第一区域位置信息和第二区域位置信息确定第三区域的过程,包括步骤:In one embodiment, the location information is a mask image; the determination module executes the process of determining the third area according to the location information of the first area and the location information of the second area, including steps:

将第一区域位置信息和第二区域位置信息进行逻辑相或,得到第三区域。A logical OR is performed on the position information of the first area and the position information of the second area to obtain the third area.

在一种实施方式中,所述位置信息为矩形坐标信息;确定模块执行所述根据第一区域位置信息和第二区域位置信息确定第三区域的过程,包括步骤:In one embodiment, the location information is rectangular coordinate information; the determination module executes the process of determining the third area according to the location information of the first area and the location information of the second area, including steps:

取第一区域位置信息对应的第一矩形区域和第二区域位置信息对应的第二矩形区域的最小外接矩形作为第三区域。The smallest circumscribed rectangle of the first rectangular area corresponding to the first area position information and the second rectangular area corresponding to the second area position information is taken as the third area.

在一种实施方式中,获取模块获取的所述板书图像与生成所述上一帧效果图像中所采用的板书图像一致。In one embodiment, the blackboard image acquired by the acquisition module is consistent with the blackboard image used in generating the last frame of effect image.

实施例三Embodiment Three

本发明实施例还提供了一种存储介质,其上存储有计算机指令,该指令被处理器执行时实现上述任一实施例的板书显示处理方法。An embodiment of the present invention also provides a storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the blackboard writing display processing method in any of the above embodiments is implemented.

本领域的技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the Including the steps of the foregoing method embodiment; and the aforementioned storage medium includes: various A medium on which program code can be stored.

或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、终端、或者网络设备等)执行本发明各个实施例方法的全部或部分。而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present invention are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the embodiment of the present invention or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable A computer device (which may be a personal computer, a terminal, or a network device, etc.) executes all or part of the methods in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, RAM, ROM, magnetic disks or optical disks.

与上述的计算机存储介质对应的是,在一个实施例中还提供一种计算机设备,该计算机设备包括存储器、编码器及存储在存储器上并可在编码器上运行的计算机程序,其中,编码器执行程序时实现如上述各实施例中的任意一种板书显示处理方法。Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, the computer device includes a memory, an encoder, and a computer program stored in the memory and operable on the encoder, wherein the encoder When the program is executed, any blackboard writing display processing method in the above-mentioned embodiments is implemented.

上述计算机设备,通过获取局部变化的区域位置信息,只对发生变化的局部区域进行图像叠加,用该叠加的图像替换原有图像的对应位置,由于只对局部区域进行图像叠加,减少了叠加时的开销,能够快速生成叠加后的效果图,即使是对于超高清输入图像,也做到实时处理,不会出现播放卡顿或掉帧的情况。The above-mentioned computer equipment only performs image superimposition on the changed local area by acquiring the position information of the locally changed area, and replaces the corresponding position of the original image with the superimposed image. Overhead, it can quickly generate superimposed effect images, even for ultra-high-definition input images, it can be processed in real time, and there will be no playback freezes or frame drops.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.

显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明权利要求的保护范围之内。Apparently, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, rather than limiting the implementation of the present invention. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all the implementation manners here. All modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the claims of the present invention.

Claims (10)

1. The board book display processing method is characterized by comprising the following steps:
acquiring first area position information of a shielding object area in a previous image frame and second area position information of a shielding object area in a current image frame, wherein the previous image frame and the current image frame are images shot by the same camera;
determining a third area according to the first area position information and the second area position information, wherein the range of the third area comprises the first area and the second area;
acquiring an blackboard-writing image and a current image frame, wherein the blackboard-writing image is a non-shielding image related to blackboard-writing content;
extracting a first sub-image at the position of a third area in the blackboard-writing image, and extracting a second sub-image at the position of the third area in the current image frame;
overlapping the first sub-image and the second sub-image to obtain a third sub-image;
acquiring an effect image of the previous frame;
and replacing the sub-image in the position of the third area in the previous frame effect image with the third sub-image to obtain a replaced image, outputting the replaced image, and taking the replaced image as the current frame effect image.
2. The blackboard writing display processing method according to claim 1, characterized by further comprising the steps of:
and when continuously outputting N frames of the replaced images as effect images, acquiring a latest updated blackboard-writing image, superposing the latest updated blackboard-writing image and the N+1th frame of image frames to obtain an initial effect image, outputting the initial effect image, and using the initial effect image as the N+1th frame of effect image, wherein N is a preset quantity threshold value, and the N+1th frame of image frames are images shot by the camera.
3. The blackboard writing display processing method according to claim 1, characterized in that before the third area is determined based on the first area position information and the second area position information, further comprising the steps of:
calculating the coincidence ratio of the first area and the second area according to the first area position information and the second area position information;
and when the overlap ratio is within a preset threshold value interval, executing the third area determination according to the first area position information and the second area position information.
4. The blackboard writing display processing method according to claim 3, characterized by further comprising the step of:
and when the overlap ratio is not within a preset threshold value interval, superposing the blackboard-writing image and the current image frame to obtain an initial effect image, outputting the initial effect image, and taking the initial effect image as the current frame effect image.
5. The blackboard writing display processing method according to any one of claims 1 to 4, characterized in that the position information is a mask map;
the process of determining the third area according to the first area position information and the second area position information comprises the following steps:
and carrying out logical OR on the first area position information and the second area position information to obtain a third area.
6. The blackboard writing display processing method according to any one of claims 1 to 4, characterized in that the position information is rectangular coordinate information;
the process of determining the third area according to the first area position information and the second area position information comprises the following steps:
and taking the minimum circumscribed rectangle of the first rectangular area corresponding to the first area position information and the second rectangular area corresponding to the second area position information as a third area.
7. The method according to claim 1, wherein the board image coincides with a board image used in generating the last frame effect image.
8. An apparatus for displaying and processing a board book, comprising:
the device comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring first area position information of a shielding object area in a previous image frame and second area position information of a shielding object area in a current image frame, acquiring an blackboard-writing image and the current image frame, and acquiring a previous frame effect image, wherein the previous image frame and the current image frame are images shot by a camera, and the blackboard-writing image is an unoccluded image related to blackboard-writing content;
the determining module is used for determining a third area according to the first area position information and the second area position information, wherein the range of the third area comprises the first area and the second area;
the extraction module is used for extracting a first sub-image at the position of the third area in the blackboard-writing image and extracting a second sub-image at the position of the third area in the current image frame;
the superposition module is used for superposing the first sub-image and the second sub-image to obtain a third sub-image;
and the replacing module is used for replacing the sub-image in the position of the third area in the previous frame effect image with the third sub-image to obtain a replaced image, outputting the replaced image, and taking the replaced image as the current frame effect image.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when the program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202310612030.7A 2023-05-29 2023-05-29 Blackboard display processing method, device, equipment and storage medium Active CN116703706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310612030.7A CN116703706B (en) 2023-05-29 2023-05-29 Blackboard display processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310612030.7A CN116703706B (en) 2023-05-29 2023-05-29 Blackboard display processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116703706A true CN116703706A (en) 2023-09-05
CN116703706B CN116703706B (en) 2025-08-22

Family

ID=87828552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310612030.7A Active CN116703706B (en) 2023-05-29 2023-05-29 Blackboard display processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116703706B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170092333A1 (en) * 2015-09-29 2017-03-30 International Business Machines Corporation Method and apparatus to extract key video frames from online education
CN111008969A (en) * 2019-12-06 2020-04-14 浙江蓝鸽科技有限公司 Blackboard writing extraction and intelligent recognition method and system
WO2021196014A1 (en) * 2020-03-31 2021-10-07 深圳市大疆创新科技有限公司 Image processing method and apparatus, photographing system and photographing apparatus
CN114120163A (en) * 2021-09-14 2022-03-01 南京谦萃智能科技服务有限公司 Video frame processing method and device, and related equipment and storage medium thereof
CN116091970A (en) * 2022-12-28 2023-05-09 北京奕斯伟计算技术股份有限公司 Processing method and related device for blackboard writing display

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170092333A1 (en) * 2015-09-29 2017-03-30 International Business Machines Corporation Method and apparatus to extract key video frames from online education
CN111008969A (en) * 2019-12-06 2020-04-14 浙江蓝鸽科技有限公司 Blackboard writing extraction and intelligent recognition method and system
WO2021196014A1 (en) * 2020-03-31 2021-10-07 深圳市大疆创新科技有限公司 Image processing method and apparatus, photographing system and photographing apparatus
CN114120163A (en) * 2021-09-14 2022-03-01 南京谦萃智能科技服务有限公司 Video frame processing method and device, and related equipment and storage medium thereof
CN116091970A (en) * 2022-12-28 2023-05-09 北京奕斯伟计算技术股份有限公司 Processing method and related device for blackboard writing display

Also Published As

Publication number Publication date
CN116703706B (en) 2025-08-22

Similar Documents

Publication Publication Date Title
CN114120163B (en) Video frame processing method, device and related equipment and storage medium
JP5280503B2 (en) Image display method, shared board system
US9390171B2 (en) Segmenting and playback of whiteboard video capture
CN107909022B (en) A video processing method, apparatus, terminal device and storage medium
US11659134B2 (en) Image processing apparatus and image processing method
US12284458B2 (en) Processing device, system and method for board writing display
CN109803172B (en) Live video processing method and device and electronic equipment
CN112995678B (en) A video motion compensation method, device and computer equipment
US12154305B2 (en) Information processing apparatus and information processing method
CN114821048A (en) Object segmentation method and related device
CN108737852A (en) A kind of method for processing video frequency, terminal, the device with store function
CN115801983A (en) Image superposition method and device and electronic equipment
CN116703706A (en) Blackboard display processing method, device, equipment and storage medium
CN112492375A (en) Video processing method, storage medium, electronic device and video live broadcast system
CN116664464A (en) Image processing method, device, equipment and storage medium
JP4830105B2 (en) Image processing apparatus, image processing program, and image processing method
CN116091970A (en) Processing method and related device for blackboard writing display
CN111988520B (en) Picture switching method and device, electronic equipment and storage medium
CN114943663A (en) a teaching system
CN115205873B (en) Image information processing method, device and storage medium
CN119383424B (en) Classroom video generation method, device and system
CN115515005B (en) A method, device and display device for obtaining cover of program switching
Bennett Computational video enhancement
CN117831041A (en) Blackboard writing detection method, device, equipment and readable storage medium
CN115601258A (en) Video image frame processing method, device, equipment and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: 21st Floor, No. 48 Science Avenue, Huangpu District, Guangzhou City, Guangdong Province 510670

Applicant after: GUANGZHOU AVA ELECTRONIC CO.,LTD.

Address before: Room 501, No. 15, Kehui Second Street, Kehui Development Center, Science Avenue, Science City, Luogang District, Guangzhou City, Guangdong Province, 510670

Applicant before: GUANGZHOU AVA ELECTRONIC CO.,LTD.

Country or region before: China

GR01 Patent grant
GR01 Patent grant