CN106203300A - Content item display packing and device - Google Patents
Content item display packing and device Download PDFInfo
- Publication number
- CN106203300A CN106203300A CN201610511598.XA CN201610511598A CN106203300A CN 106203300 A CN106203300 A CN 106203300A CN 201610511598 A CN201610511598 A CN 201610511598A CN 106203300 A CN106203300 A CN 106203300A
- Authority
- CN
- China
- Prior art keywords
- content item
- video image
- display
- size
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开揭示了一种内容项显示方法及装置,属于互联网技术领域。所述内容项显示方法包括:对视频图像中预定的特征点进行识别;确定识别出的特征点在所述视频图像中的位置;将接收到的内容项叠加在所述位置上进行显示。通过识别视频图像中的特征点,将接收的内容项叠加在特征点的位置进行显示,解决了相关技术中的互动形式只是进行机械的展示,导致互动形式过于单一的问题,达到了根据视频图像中的特征点的位置决定内容项的显示位置,使得内容项与视频图像关联起来,丰富了互动形式的效果。
The disclosure discloses a method and device for displaying content items, which belong to the technical field of the Internet. The content item display method includes: identifying predetermined feature points in the video image; determining the position of the identified feature point in the video image; superimposing the received content item on the position for display. By identifying the feature points in the video image, superimposing the received content items on the position of the feature points for display, it solves the problem that the interactive form in the related technology is only a mechanical display, resulting in an excessively single interactive form, and achieves the goal based on the video image. The position of the feature point in determines the display position of the content item, so that the content item is associated with the video image, and the effect of the interactive form is enriched.
Description
技术领域technical field
本公开涉及互联网技术领域,特别涉及一种内容项显示方法及装置。The present disclosure relates to the field of Internet technologies, and in particular to a method and device for displaying content items.
背景技术Background technique
随着科技的发展,人们可以通过一些应用程序进行视频通话或是视频直播。With the development of technology, people can make video calls or live video through some applications.
在视频直播中,录制视频的人被称为主播,观看视频的人被称为观众,观众在观看视频的过程中,可以与主播之间有一定形式的互动,可能是在应用程序的界面上展示静态图片,也可能是发送按照预定轨迹移动的动画,比如发送动态表情或是扔鲜花、扔飞吻等等。In a live video broadcast, the person who records the video is called the anchor, and the person who watches the video is called the audience. During the process of watching the video, the audience can have a certain form of interaction with the anchor, which may be on the interface of the application Display static pictures, or send animations that move according to a predetermined trajectory, such as sending dynamic emoticons or throwing flowers, blowing kisses, etc.
这些互动形式通常只是进行机械的展示,互动形式过于单一。These interactive forms are usually just a mechanical display, and the interactive form is too single.
发明内容Contents of the invention
本公开提供一种内容项显示方法及装置。所述技术方案如下:The present disclosure provides a method and device for displaying content items. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种内容项显示方法,所述方法包括:对视频图像中预定的特征点进行识别;确定识别出的特征点在所述视频图像中的位置;将接收到的内容项叠加在所述位置上进行显示。通过识别视频图像中的特征点的位置,利用特征点的位置决定内容项显示的位置,解决了相关技术中由于只进行机械的展示导致互动形式单一的技术问题,达到了将内容项与视频图像关联,丰富互动形式的效果。According to the first aspect of an embodiment of the present disclosure, there is provided a content item display method, the method comprising: identifying predetermined feature points in a video image; determining the position of the identified feature point in the video image; The received content item is displayed superimposed on said location. By identifying the position of the feature point in the video image, using the position of the feature point to determine the display position of the content item, it solves the technical problem in the related art that the interaction form is single due to only mechanical display, and achieves the integration of the content item and the video image. Correlation, enriching the effect of interactive forms.
可选的,所述将接收到的内容项叠加在所述位置上进行显示,包括:当所述特征点的位置变化时,移动所述内容项,在所述内容项的指定点与所述特征点变化后的位置重合后停止移动所述内容项。通过在特征点的位置变化时,移动内容项的指定点直到与特征点位置重合,使得内容项能够与视频的特征点的位置保持一致,实时的进行调整。Optionally, the superimposing the received content item on the position for display includes: when the position of the feature point changes, moving the content item, at the specified point of the content item and the Stop moving the content item after the changed positions of the feature points coincide. By moving the specified point of the content item until it coincides with the position of the feature point when the position of the feature point changes, the content item can be kept consistent with the position of the feature point of the video and adjusted in real time.
可选的,所述方法还包括:实时获取播放所述视频图像的终端设备的重力方向;根据所述重力方向实时确定所述内容项的显示方向,使得所述内容项的显示方向符合所述重力方向。通过实时获取终端设备的重力方向,根据该重力方向调整内容项的显示方向,在终端设备发生旋转时,视频图像也会进行相应旋转,使得内容项也进行相应的方向调整,能够按照预定效果显示在视频图像中。Optionally, the method further includes: obtaining in real time the direction of gravity of the terminal device playing the video image; determining the display direction of the content item in real time according to the direction of gravity, so that the display direction of the content item conforms to the Gravity direction. By obtaining the gravity direction of the terminal device in real time and adjusting the display direction of the content item according to the gravity direction, when the terminal device rotates, the video image will also be rotated accordingly, so that the content item can also be adjusted in the corresponding direction, and can be displayed according to the predetermined effect in the video image.
可选的,所述对视频图像中预定的特征点进行识别,包括:识别出所述视频图像中的人脸区域;在所述人脸区域中识别出预定的特征点,所述预定的特征点包括人脸区域的中心点。通过识别视频图像中的人脸区域的中心点,使得在显示内容项时将人脸区域的中心点作为特征点。Optionally, the identifying predetermined feature points in the video image includes: identifying a face area in the video image; identifying predetermined feature points in the face area, and the predetermined feature The points include the center point of the face area. By identifying the center point of the face area in the video image, the center point of the face area is used as the feature point when the content item is displayed.
可选的,所述方法还包括:实时获取所述人脸区域的大小;根据人脸区域的大小与内容项的大小之间的预定比值,实时调整所述内容项的大小,使得所述人脸区域的大小与调整后的所述内容项的大小符合所述预定比值。通过根据人脸区域的大小和内容项的大小的预定比值调整内容项的大小,使得在人脸区域的大小发生变化时,调整内容项的大小以匹配人脸区域的大小。Optionally, the method further includes: obtaining the size of the face area in real time; adjusting the size of the content item in real time according to a predetermined ratio between the size of the face area and the size of the content item, so that the person The size of the face area and the adjusted size of the content item conform to the predetermined ratio. By adjusting the size of the content item according to a predetermined ratio between the size of the face area and the size of the content item, when the size of the face area changes, the size of the content item is adjusted to match the size of the face area.
可选的,所述方法还包括:累加所述内容项的显示时长;在所述内容项的显示时长达到预定时长阈值时,清除显示的所述内容项。通过设定每个内容项显示的时长,清除达到预定时长的内容项,使得一个内容项不会在视频图像上持续显示,能够让其他的内容项也有机会进行显示。Optionally, the method further includes: accumulating the display duration of the content item; and clearing the displayed content item when the display duration of the content item reaches a predetermined duration threshold. By setting the display duration of each content item and clearing the content items reaching the predetermined duration, one content item will not be continuously displayed on the video image, and other content items can also have a chance to be displayed.
根据本公开实施例的第二方面,提供一种内容项显示装置,所述装置包括:识别模块,被配置为对视频图像中预定的特征点进行识别;第一确定模块,被配置为确定所述识别模块识别出的特征点在所述视频图像中的位置;显示模块,被配置为将接收到的内容项叠加在所述第一确定模块确定出的所述位置上进行显示。According to a second aspect of an embodiment of the present disclosure, there is provided a content item display device, the device comprising: an identification module configured to identify predetermined feature points in a video image; a first determination module configured to determine the The position of the feature point identified by the identification module in the video image; the display module configured to superimpose the received content item on the position determined by the first determination module for display.
可选的,所述显示模块,还被配置为当所述特征点的位置变化时,移动所述内容项,在所述内容项的指定点与所述特征点变化后的位置重合后停止移动所述内容项。Optionally, the display module is further configured to move the content item when the position of the feature point changes, and stop moving when the specified point of the content item coincides with the changed position of the feature point said content item.
可选的,所述装置还包括:第一获取模块,被配置为实时获取播放所述视频图像的终端设备的重力方向;第二确定模块,被配置为根据所述第一获取模块获取到的所述重力方向实时确定所述内容项的显示方向,使得所述内容项的显示方向符合所述重力方向。Optionally, the apparatus further includes: a first obtaining module configured to obtain in real time the direction of gravity of the terminal device playing the video image; a second determining module configured to obtain the gravity direction according to the first obtaining module The direction of gravity determines the display direction of the content item in real time, so that the display direction of the content item conforms to the direction of gravity.
可选的,所述识别模块,包括:第一识别子模块,被配置为识别出所述视频图像中的人脸区域;第二识别子模块,被配置为在所述第一识别子模块识别到的所述人脸区域中识别出预定的特征点,所述预定的特征点包括人脸区域的中心点。Optionally, the recognition module includes: a first recognition submodule configured to recognize a human face area in the video image; a second recognition submodule configured to recognize A predetermined feature point is identified in the detected face area, and the predetermined feature point includes a center point of the face area.
可选的,所述装置还包括:第二获取模块,被配置为实时获取所述人脸区域的大小;调整模块,被配置为根据人脸区域的大小与内容项的大小之间的预定比值,实时调整所述内容项的大小,使得所述人脸区域的大小与调整后的所述内容项的大小符合所述预定比值。Optionally, the device further includes: a second acquisition module configured to acquire the size of the face area in real time; an adjustment module configured to obtain the size according to a predetermined ratio between the size of the face area and the size of the content , adjusting the size of the content item in real time, so that the size of the face area and the adjusted size of the content item conform to the predetermined ratio.
可选的,所述装置还包括:累加模块,被配置为累加所述内容项的显示时长;清除模块,被配置为在所述累加模块累加的所述内容项的显示时长达到预定时长阈值时,清除显示的所述内容项。Optionally, the device further includes: an accumulating module, configured to accumulate the display duration of the content item; a clearing module, configured to, when the display duration of the content item accumulated by the accumulating module reaches a predetermined duration threshold to clear the display of said content item.
根据本公开实施例的第三方面,提供一种内容项显示装置,所述装置包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为:对视频图像中预定的特征点进行识别;确定识别出的特征点在所述视频图像中的位置;将接收到的内容项叠加在所述位置上进行显示。According to a third aspect of an embodiment of the present disclosure, there is provided a content item display device, the device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: Identifying predetermined feature points in the video image; determining the position of the identified feature point in the video image; superimposing the received content item on the position for display.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种内容项显示方法的流程图;Fig. 1 is a flowchart of a method for displaying content items according to an exemplary embodiment;
图2A是根据另一示例性实施例示出的一种内容项显示方法的流程图;Fig. 2A is a flowchart of a method for displaying content items according to another exemplary embodiment;
图2B是根据一示例性实施例中提供的对视频图像中预定的特征点进行识别的流程图;Fig. 2B is a flow chart of identifying predetermined feature points in a video image according to an exemplary embodiment;
图2C是根据一示例性实施例中示出的终端设备竖直摆放位置的重力方向的示意图;Fig. 2C is a schematic diagram of the direction of gravity in a vertically placed position of a terminal device according to an exemplary embodiment;
图2D是根据一示例性实施例中示出的终端设备由竖直摆放位置旋转90度后的重力方向的示意图;Fig. 2D is a schematic diagram of the direction of gravity after the terminal device is rotated 90 degrees from the vertical placement position according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种内容项显示装置的框图;Fig. 3 is a block diagram of a content item display device according to an exemplary embodiment;
图4是根据另一示例性实施例示出的一种内容项显示装置的框图;Fig. 4 is a block diagram of a content item display device according to another exemplary embodiment;
图5是根据一示例性实施例示出的一种用于显示内容项的装置的框图;Fig. 5 is a block diagram of an apparatus for displaying content items according to an exemplary embodiment;
图6是根据另一示例性实施例示出的一种用于显示内容项的装置的框图。Fig. 6 is a block diagram of an apparatus for displaying content items according to another exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种内容项显示方法的流程图,该内容项显示方法可以应用在产生视频图像的终端设备中,也可以应用在接收视频图像的终端设备中,还可以应用在服务器中。这里所讲的终端设备包括智能手机、平板电脑、多媒体播放设备等。这里所讲的服务器可以为一台服务器,也可以为多台服务器的集合,多台服务器之间信息可以共享。如图1所示,该内容项显示方法可以包括如下几个步骤。Fig. 1 is a flow chart showing a method for displaying a content item according to an exemplary embodiment. The method for displaying a content item can be applied to a terminal device that generates a video image, and can also be applied to a terminal device that receives a video image. Can be applied to the server. The terminal devices mentioned here include smart phones, tablet computers, multimedia playback devices, and the like. The server mentioned here can be one server or a collection of multiple servers, and information can be shared between multiple servers. As shown in FIG. 1 , the method for displaying content items may include the following steps.
在步骤110中,对视频图像中预定的特征点进行识别。In step 110, predetermined feature points in the video image are identified.
在步骤120中,确定识别出的特征点在视频图像中的位置。In step 120, the positions of the identified feature points in the video image are determined.
在步骤130中,将接收到的内容项叠加在该位置上进行显示。In step 130, the received content item is superimposed on the position for display.
可选的,当该内容项显示方法应用在接收视频图像的终端设备中时,在终端设备上接收并播放一段视频图像,确定视频图像中的特征点,将需要显示的内容项叠加到特征点的位置显示。Optionally, when the method for displaying content items is applied to a terminal device receiving video images, a video image is received and played on the terminal device, feature points in the video image are determined, and content items to be displayed are superimposed on the feature points location is displayed.
可选的,当该内容项显示方法应用在产生视频图像的终端设备中时,用户录制完一段视频图像,希望为视频图像增加一些效果,可以选择将内容项添加进视频图像中进行叠加显示。Optionally, when the method for displaying content items is applied to a terminal device that generates video images, and the user wishes to add some effects to the video image after recording a video image, he may choose to add the content item to the video image for superimposed display.
可选的,当该内容项显示方法应用在服务器中时,在服务器将获取的视频图像与内容项按照该方法进行叠加,将叠加后的视频图像发送给需要播放的终端设备。Optionally, when the method for displaying content items is applied to the server, the server superimposes the acquired video image and the content item according to the method, and sends the superimposed video image to the terminal device that needs to be played.
在一种可能的实现方式中,多台终端设备共享服务器传输的视频图像数据,可以由一个终端设备选择需要显示的内容项,将该内容项的显示请求发送至服务器,服务器根据显示请求,将内容项与视频图像按照该方法进行叠加,将叠加后的视频图像发送至各个终端设备进行播放显示。In a possible implementation manner, multiple terminal devices share the video image data transmitted by the server, and one terminal device can select the content item to be displayed, and send the display request of the content item to the server, and the server will display the content item according to the display request. Content items and video images are superimposed according to this method, and the superimposed video images are sent to each terminal device for playback and display.
综上所述,本公开实施例提供的内容项显示方法,通过识别视频图像中的特征点的位置,利用特征点的位置决定内容项显示的位置,解决了相关技术中由于只进行机械的展示导致互动形式单一的技术问题,达到了将内容项与视频图像关联,丰富互动形式的效果。In summary, the content item display method provided by the embodiment of the present disclosure, by identifying the position of the feature point in the video image, using the position of the feature point to determine the position of the content item display, solves the problem of only mechanical display in the related art. The technical problem that leads to a single form of interaction achieves the effect of associating content items with video images and enriching the form of interaction.
图2A是根据另一示例性实施例示出的一种内容项显示方法的流程图,该内容项显示方法可以应用在产生视频图像的终端设备中,也可以应用在接收视频图像的终端设备中,还可以应用在服务器中。这里所讲的终端设备包括智能手机、平板电脑、多媒体播放设备等。这里所讲的服务器可以为一台服务器,也可以为多台服务器的集合,多台服务器之间信息可以共享。如图2A所示,该内容项显示方法可以包括以下步骤。Fig. 2A is a flow chart showing a method for displaying content items according to another exemplary embodiment. The method for displaying content items can be applied to a terminal device that generates video images, and can also be applied to a terminal device that receives video images. It can also be used in servers. The terminal devices mentioned here include smart phones, tablet computers, multimedia playback devices, and the like. The server mentioned here can be one server or a collection of multiple servers, and information can be shared between multiple servers. As shown in FIG. 2A, the method for displaying content items may include the following steps.
在步骤201中,对视频图像中预定的特征点进行识别。In step 201, predetermined feature points in a video image are identified.
在一种可能的实现方式中,这里的视频图像可能是在直播类应用程序上或是在直播网站上播放的视频图像,这类视频图像由一个终端设备录制并同步至建立的直播间,录制该视频图像的用户一般称为主播,观众只要进入直播间,就可以同步观看直播视频,观众可以与主播通过文字、图片、动画等形式进行互动。In a possible implementation, the video image here may be a video image played on a live broadcast application program or a live broadcast website. This type of video image is recorded by a terminal device and synchronized to the established live broadcast room. The user of the video image is generally called the anchor. As long as the audience enters the live broadcast room, they can watch the live video synchronously. The audience can interact with the anchor through text, pictures, animations, etc.
在另一种可能的实现方式中,这里所讲的视频图像还可能是至少双方进行视频通话时的视频图像,而通话双方也可以通过图片和动画等形式进行互动。In another possible implementation, the video image mentioned here may also be a video image when at least two parties are in a video call, and the two parties in the call may also interact through pictures and animations.
这里所讲的特征点可以是人脸区域的中心点,也可以是眼睛、嘴巴、鼻子等生理特征点,还可以是衣领、口袋或其他符合预定条件的特征点。The feature points mentioned here can be the center point of the face area, or physiological feature points such as eyes, mouth, nose, etc., or collars, pockets, or other feature points that meet predetermined conditions.
在实际应用中,进行互动时通常是人与人之间进行互动,因此在实际应用时,通常可能会识别人脸,来增加互动的趣味性。如图2B所示,对视频图像中预定的特征点进行识别时,可以包括以下步骤。In practical applications, the interaction is usually between people. Therefore, in practical applications, it is usually possible to recognize faces to increase the fun of the interaction. As shown in FIG. 2B , when identifying predetermined feature points in a video image, the following steps may be included.
在步骤201a中,识别出视频图像中的人脸区域。In step 201a, the face area in the video image is identified.
人脸区域的识别属于本领域技术人员都能够实现的人脸识别技术,比如通过人脸检测技术,对于任意一幅给定的图像,采用包括人工智能、数字图像处理、计算机图形学、生理学等领域的方法进行搜索,来确定其中是否包含人脸,若包含则返回人脸的位置和大小等信息;再比如预先建立人脸的模型,通过将视频图像中的图形与模型进行比对,若是匹配程度达到一个预定值,则认为视频图像中包含人脸,返回视频图像中人脸的位置和大小等信息。在实际应用中,还可以采用其他技术来进行人脸的识别,这里就不再赘述。The recognition of face area belongs to the face recognition technology that can be realized by those skilled in the art. The methods in the domain are searched to determine whether it contains a face, and if so, information such as the position and size of the face is returned; another example is to build a face model in advance, by comparing the graphics in the video image with the model, if it is If the matching degree reaches a predetermined value, it is considered that the video image contains a human face, and information such as the position and size of the human face in the video image is returned. In practical applications, other technologies can also be used for face recognition, which will not be repeated here.
在步骤201b中,在人脸区域中识别出预定的特征点。In step 201b, predetermined feature points are identified in the face area.
这里所讲的预定的特征点可以为人脸区域的中心点,还可以是眼睛、嘴巴、鼻子等生理特征点。The predetermined feature point mentioned here may be the center point of the face area, and may also be physiological feature points such as eyes, mouth, and nose.
以人脸区域为例,一般来说,当人脸正对摄像头时,采集到的视频图像中的人脸区域通常为对称图形,人脸区域的中心点可以选取人脸区域中距离最远的两点的连线的中点位置。Take the face area as an example. Generally speaking, when the face is facing the camera, the face area in the collected video image is usually a symmetrical figure, and the center point of the face area can be selected from the farthest point in the face area. The position of the midpoint of the line connecting two points.
以眼睛的识别为例,可以通过训练建立眼睛的模型,在识别图像时,通过与模型进行比对,判断出其中人眼的位置。Taking eye recognition as an example, an eye model can be established through training. When recognizing an image, the position of the human eye can be determined by comparing it with the model.
对于人脸或者眼睛等特征点的识别,本领域的技术人员还可以采用其他的方法,这里就不再赘述。For the recognition of feature points such as faces or eyes, those skilled in the art can also use other methods, which will not be repeated here.
在步骤202中,确定识别出的特征点在视频图像中的位置。In step 202, the positions of the identified feature points in the video image are determined.
由于视频图像在视频播放的过程中是动态变化的,因此视频图像中的特征点在不同的视频帧中的位置可能不同,因此针对每帧视频图像,都可以先确定识别出的特征点在视频图像中的位置。Since the video image is dynamically changing during video playback, the positions of the feature points in the video image may be different in different video frames. Therefore, for each frame of video image, the identified feature points can be determined first. position in the image.
在步骤203中,当特征点的位置变化时,移动内容项,在内容项的指定点与该特征点变化后的位置重合后停止移动该内容项。In step 203, when the position of the feature point changes, the content item is moved, and the content item is stopped after the designated point of the content item coincides with the changed position of the feature point.
这里所讲的内容项可以是按照预定形状设计的虚拟的物品图片,比如可以是眼镜图片,可以用来显示在视频图像中主播的眼睛位置,还可以是胡子图片,显示在主播的嘴巴位置,也可以是徽章图片,显示在主播的衣领位置。The content item mentioned here can be a virtual item picture designed according to a predetermined shape, such as a picture of glasses, which can be used to display the anchor’s eye position in the video image, or a beard picture, which is displayed at the position of the anchor’s mouth. It can also be a badge picture, which is displayed on the anchor's collar.
内容项还可以是其他类型的标记信息,比如指代名字的文本信息、微视频等。The content item may also be other types of marking information, such as text information referring to a name, micro-video, and the like.
为了使内容项的位置始终与特征点的位置重合,在特征点的位置变化时,也要相应的调整内容项的位置,直至内容项的位置与特征点的位置重合。In order to make the position of the content item always coincide with the position of the feature point, when the position of the feature point changes, the position of the content item should be adjusted accordingly until the position of the content item coincides with the position of the feature point.
在步骤204中,实时获取播放视频图像的终端设备的重力方向。In step 204, the direction of gravity of the terminal device playing the video image is acquired in real time.
播放视频图像的终端设备一般可以自动旋转屏幕以适应用户观看终端设备屏幕的方向。也就是说,在终端设备的摆放方向改变时,重力方向也会发生改变,对应的,根据重力方向在显示视频图像时也会发生变化。Generally, a terminal device playing video images can automatically rotate the screen to adapt to the direction in which the user watches the screen of the terminal device. That is to say, when the placement direction of the terminal device changes, the direction of gravity will also change, and correspondingly, the video image will also change according to the direction of gravity.
如图2C所示,终端设备通常会具备横向边框22和纵向边框21,纵向边框21的长度通常大于横向边框22的长度。当终端设备是竖直摆放时,则终端设备的重力方向G是竖直向下的,此时的重力方向G与终端设备的纵向边框21平行。当终端设备经过90度的旋转变成如图2D所示的横向摆放方式,此时的重力方向G’依然是竖直向下的,但相对于终端设备来说,重力方向G’却是垂直于终端设备的纵向边框21。其中,内容项23在终端设备发生旋转后,也相应的调整了显示方向,以适应视频图像的显示方向的变化。As shown in FIG. 2C , the terminal device usually has a horizontal frame 22 and a vertical frame 21 , and the length of the vertical frame 21 is usually greater than the length of the horizontal frame 22 . When the terminal device is placed vertically, the gravity direction G of the terminal device is vertically downward, and the gravity direction G at this time is parallel to the longitudinal frame 21 of the terminal device. When the terminal device has been rotated by 90 degrees to be placed horizontally as shown in Figure 2D, the direction of gravity G' at this time is still vertically downward, but compared to the terminal device, the direction of gravity G' is perpendicular to the longitudinal frame 21 of the terminal device. Wherein, after the terminal device is rotated, the display direction of the content item 23 is correspondingly adjusted to adapt to the change of the display direction of the video image.
在步骤205中,根据重力方向实时确定内容项的显示方向,使得内容项的显示方向符合重力方向。In step 205, the display direction of the content item is determined in real time according to the direction of gravity, so that the display direction of the content item conforms to the direction of gravity.
为了使得用户在面向终端设备观看视频图像时,始终观看到一个正向的视频图像,终端设备中播放的视频图像也会自动调整为与终端设备的摆放方向保持一致。这时,为了使内容项与视频图像的内容相匹配,对内容项的方向也会进行相应调整。In order to make the user always watch a positive video image when viewing the video image facing the terminal device, the video image played in the terminal device will also be automatically adjusted to be consistent with the placement direction of the terminal device. At this time, in order to make the content item match the content of the video image, the orientation of the content item will also be adjusted accordingly.
在实际应用时,若是人脸出现在视频图像中,会随着人脸距离摄像头的远近,导致视频图像中的人脸区域的大小发生变化,为了使显示在人脸区域的内容项与人脸区域的大小相匹配,一般会设置人脸区域的大小与内容项的大小的预定比值,当人脸区域的大小改变时,为了保持预定比值的稳定,会对内容项的大小进行调整,请参见如下对步骤206至步骤208的描述。In practical applications, if a face appears in a video image, the size of the face area in the video image will change with the distance between the face and the camera. In order to make the content items displayed in the face area consistent with the face The size of the face area matches the size of the content item. Generally, a predetermined ratio between the size of the face area and the size of the content item is set. When the size of the face area changes, in order to maintain the stability of the predetermined ratio, the size of the content item will be adjusted. Please refer to The description of step 206 to step 208 is as follows.
在步骤206中,实时获取人脸区域的大小。In step 206, the size of the face area is acquired in real time.
想要确定人脸区域的大小,可以根据识别出的人脸区域对应地绘制闭合图形,计算该闭合图形的面积,也可以计算识别出的人脸区域的像素点的数量,根据像素点的数量多少判断人脸区域的大小。If you want to determine the size of the face area, you can draw a closed figure corresponding to the recognized face area, calculate the area of the closed figure, or calculate the number of pixels in the recognized face area, according to the number of pixels How much to judge the size of the face area.
在步骤207中,根据人脸区域的大小与内容项的大小之间的预定比值,实时调整内容项的大小,使得人脸区域的大小与调整后的内容项的大小符合预定比值。In step 207, according to the predetermined ratio between the size of the face area and the size of the content item, the size of the content item is adjusted in real time, so that the size of the face area and the adjusted size of the content item meet the predetermined ratio.
人脸区域的大小与内容项的大小之间需要设定一个预定比值,使得内容项能够与人脸区域的大小匹配。比如,当内容项为一个面具图片,则人脸区域的大小与面具图片的大小为1:1时,看起来才像给人脸戴上了一个面具。人脸区域的大小由于人距离摄像头的远近发生变化时,根据预定比值调整内容项,才能使内容项的大小与人脸区域的大小相匹配。A predetermined ratio needs to be set between the size of the face area and the size of the content item, so that the content item can match the size of the face area. For example, when the content item is a mask picture, the size of the face area and the size of the mask picture are 1:1, so it looks like a mask is put on the face. When the size of the face area changes due to the distance between the person and the camera, the content item is adjusted according to a predetermined ratio so that the size of the content item matches the size of the face area.
在步骤208中,将接收到的内容项叠加在该位置上进行显示。In step 208, the received content item is superimposed on the position for display.
在完成了以上关于内容项的位置、方向和大小的调整后,将内容项叠加在视频图像上显示。在显示过程中,根据视频图像的内容的变化,还需要对内容项进行实时调整。After the above adjustments about the position, direction and size of the content item are completed, the content item is superimposed on the video image for display. During the display process, according to the change of the content of the video image, the content item needs to be adjusted in real time.
需要说明的是,在本实施例中,步骤204至步骤207是在步骤208之前执行的。可选的,步骤204至步骤207也可以在步骤208之后执行。可选的,步骤204与步骤207还可以与步骤208并行执行。It should be noted that, in this embodiment, steps 204 to 207 are performed before step 208 . Optionally, steps 204 to 207 may also be performed after step 208 . Optionally, step 204 and step 207 may also be executed in parallel with step 208 .
在实际应用中,比如在直播场景中,可能有不止一位观众发送内容项的显示请求,因此每一个内容项显示一段时间后便清除,以便满足更多观众的互动需求,请参见如下对步骤209和步骤210的描述。In practical applications, such as in a live broadcast scene, there may be more than one viewer sending a display request for a content item, so each content item will be cleared after being displayed for a period of time to meet the interactive needs of more viewers, please refer to the following steps 209 and description of step 210.
在步骤209中,累加内容项的显示时长。In step 209, the display duration of the content item is accumulated.
在步骤210中,在内容项的显示时长达到预定时长阈值时,清除显示的内容项。In step 210, when the display duration of the content item reaches a predetermined duration threshold, the displayed content item is cleared.
一般来讲,当内容项被显示在特征点位置处后,会为内容项设置一个定时器,该定时器的时长设置为预定时长阈值。当该定时器结束,则表明该内容项的显示时长达到预定时长阈值,此时则清除显示的内容项。Generally speaking, after the content item is displayed at the position of the feature point, a timer is set for the content item, and the duration of the timer is set to a predetermined duration threshold. When the timer expires, it indicates that the display duration of the content item reaches the predetermined duration threshold, and at this time, the displayed content item is cleared.
可选的,还可以对内容项进行计时,当计时得到的显示时长达到预定时长阈值时,则清除显示的内容项。Optionally, the content item may also be timed, and when the timed display duration reaches a predetermined duration threshold, the displayed content item is cleared.
为了保持视频图像的画面整洁度,保证视频图像的观看效果,这里的内容项可以设置为禁止同时显示,因此一个内容项被清除后才能显示下一个内容项。In order to keep the screen cleanness of the video image and ensure the viewing effect of the video image, the content items here can be set to prohibit simultaneous display, so that the next content item can only be displayed after one content item is cleared.
可选的,还可以设置为同时显示预定数量的内容项,为了视频图像的观看效果,可以设置同时显示的内容项对应不同的特征点位置。Optionally, it can also be set to display a predetermined number of content items at the same time. For the viewing effect of video images, it can be set that the content items displayed at the same time correspond to different feature point positions.
综上所述,本公开实施例中提供的内容项显示方法,通过识别视频图像中的特征点的位置,利用特征点的位置决定内容项显示的位置,解决了相关技术中由于只进行机械的展示导致互动形式单一的技术问题,达到了将内容项与视频图像关联,丰富互动形式的效果。To sum up, the content item display method provided in the embodiment of the present disclosure, by identifying the position of the feature point in the video image, using the position of the feature point to determine the position of the content item display, solves the problem of only mechanical Displaying the technical problems that lead to a single form of interaction has achieved the effect of associating content items with video images and enriching the form of interaction.
另外,通过在特征点的位置变化时,移动内容项的指定点直到与特征点位置重合,使得内容项能够与视频的特征点的位置保持一致,实时的进行调整。In addition, when the position of the feature point changes, the specified point of the content item is moved until it coincides with the position of the feature point, so that the content item can be kept consistent with the position of the feature point of the video and adjusted in real time.
另外,通过实时获取终端设备的重力方向,根据该重力方向调整内容项的显示方向,在终端设备发生旋转时,视频图像也会进行相应旋转,使得内容项也进行相应的方向调整,能够按照预定效果显示在视频图像中。In addition, by obtaining the gravity direction of the terminal device in real time, and adjusting the display direction of the content item according to the gravity direction, when the terminal device rotates, the video image will also be rotated accordingly, so that the content item will also be adjusted in the corresponding direction, and the content item can be adjusted according to the predetermined direction. The effect is shown in the video image.
另外,通过识别视频图像中的人脸区域的中心点,使得在显示内容项时将人脸区域的中心点作为特征点。In addition, by identifying the center point of the face area in the video image, the center point of the face area is used as the feature point when the content item is displayed.
另外,通过根据人脸区域的大小和内容项的大小的预定比值调整内容项的大小,使得在人脸区域的大小发生变化时,调整内容项的大小以匹配人脸区域的大小。In addition, the size of the content item is adjusted according to the predetermined ratio between the size of the face area and the size of the content item, so that when the size of the face area changes, the size of the content item is adjusted to match the size of the face area.
另外,通过设定每个内容项显示的时长,清除达到预定时长的内容项,使得一个内容项不会在视频图像上持续显示,能够让其他的内容项也有机会进行显示。In addition, by setting the display duration of each content item and clearing the content items reaching the predetermined duration, one content item will not be continuously displayed on the video image, and other content items can also have a chance to be displayed.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图3是根据一示例性实施例示出的一种内容项显示装置的框图,该内容项显示装置可以应用在产生视频图像的终端设备中,也可以应用在接收视频图像的终端设备中,还可以应用在服务器中。这里所讲的终端设备包括智能手机、平板电脑、多媒体播放设备等。这里所讲的服务器可以为一台服务器,也可以为多台服务器的集合,多台服务器之间信息可以共享。如图3所示,该内容项显示装置包括但不限于:识别模块310、第一确定模块320和显示模块330。Fig. 3 is a block diagram showing an apparatus for displaying content items according to an exemplary embodiment. The apparatus for displaying content items can be applied in a terminal device that generates video images, or in a terminal device that receives video images. applied in the server. The terminal devices mentioned here include smart phones, tablet computers, multimedia playback devices, and the like. The server mentioned here can be one server or a collection of multiple servers, and information can be shared between multiple servers. As shown in FIG. 3 , the content item display device includes but not limited to: an identification module 310 , a first determination module 320 and a display module 330 .
识别模块310,被配置为对视频图像中预定的特征点进行识别。The identification module 310 is configured to identify predetermined feature points in the video image.
第一确定模块320,被配置为确定识别模块310识别出的特征点在视频图像中的位置。The first determination module 320 is configured to determine the position of the feature point identified by the identification module 310 in the video image.
显示模块330,被配置为将接收到的内容项叠加在第一确定模块320确定出的位置上进行显示。The display module 330 is configured to superimpose the received content item on the position determined by the first determination module 320 for display.
综上所述,本公开实施例中提供的内容项显示装置,通过识别视频图像中的特征点的位置,利用特征点的位置决定内容项显示的位置,解决了相关技术中由于只进行机械的展示导致互动形式单一的技术问题,达到了将内容项与视频图像关联,丰富互动形式的效果。To sum up, the content item display device provided in the embodiment of the present disclosure, by identifying the position of the feature point in the video image, using the position of the feature point to determine the position of the content item display, solves the problem of only mechanical Displaying the technical problems that lead to a single form of interaction has achieved the effect of associating content items with video images and enriching the form of interaction.
图4是根据另一示例性实施例示出的一种内容项显示装置的框图,该内容项显示装置可以应用在产生视频图像的终端设备中,也可以应用在接收视频图像的终端设备中,还可以应用在服务器中。这里所讲的终端设备包括智能手机、平板电脑、多媒体播放设备等。这里所讲的服务器可以为一台服务器,也可以为多台服务器的集合,多台服务器之间信息可以共享。如图4所示,该内容项显示装置包括但不限于:识别模块410、第一确定模块420和显示模块430。Fig. 4 is a block diagram of an apparatus for displaying content items according to another exemplary embodiment. The apparatus for displaying content items can be applied in a terminal device that generates video images, or in a terminal device that receives video images. Can be applied to the server. The terminal devices mentioned here include smart phones, tablet computers, multimedia playback devices, and the like. The server mentioned here can be one server or a collection of multiple servers, and information can be shared between multiple servers. As shown in FIG. 4 , the content item display device includes but not limited to: an identification module 410 , a first determination module 420 and a display module 430 .
识别模块410,被配置为对视频图像中预定的特征点进行识别。The identification module 410 is configured to identify predetermined feature points in the video image.
这里所讲的特征点可以是人脸区域的中心点,也可以是眼睛、嘴巴、鼻子等生理特征点,还可以是衣领、口袋或其他符合预定条件的特征点。The feature points mentioned here can be the center point of the face area, or physiological feature points such as eyes, mouth, nose, etc., or collars, pockets, or other feature points that meet predetermined conditions.
第一确定模块420,被配置为确定识别模块410识别出的特征点在视频图像中的位置。The first determination module 420 is configured to determine the position of the feature point identified by the identification module 410 in the video image.
由于视频图像在视频播放的过程中是动态变化的,因此视频图像中的特征点在不同的视频帧中的位置可能不同,因此针对每帧视频图像,都可以先确定识别出的特征点在视频图像中的位置。Since the video image is dynamically changing during video playback, the positions of the feature points in the video image may be different in different video frames. Therefore, for each frame of video image, the identified feature points can be determined first. position in the image.
显示模块430,被配置为将接收到的内容项叠加在第一确定模块420确定出的位置上进行显示。The display module 430 is configured to superimpose the received content item on the position determined by the first determination module 420 for display.
这里所讲的内容项可以是按照预定形状设计的虚拟的物品图片,还可以是其他类型的标记信息。The content item mentioned here may be a virtual item picture designed according to a predetermined shape, and may also be other types of marking information.
在实际应用中,进行互动时通常是人与人之间进行互动,因此在实际应用时,通常可能会识别人脸,来增加互动的趣味性。这种情况下,识别模块410可以包括:第一识别子模块411和第二识别子模块412。In practical applications, the interaction is usually between people. Therefore, in practical applications, it is usually possible to recognize faces to increase the fun of the interaction. In this case, the identification module 410 may include: a first identification submodule 411 and a second identification submodule 412 .
第一识别子模块411,被配置为识别出视频图像中的人脸区域。The first identification sub-module 411 is configured to identify the human face area in the video image.
第二识别子模块412,被配置为在第一识别子模块411识别到的人脸区域中识别出预定的特征点。The second recognition submodule 412 is configured to recognize predetermined feature points in the face area recognized by the first recognition submodule 411 .
这里所讲的预定的特征点可以为人脸区域的中心点,还可以是眼睛、嘴巴、鼻子等生理特征点。The predetermined feature point mentioned here may be the center point of the face area, and may also be physiological feature points such as eyes, mouth, and nose.
可选的,显示模块430还被配置为当特征点的位置变化时,移动内容项,在内容项的指定点与特征点变化后的位置重合后停止移动该内容项。Optionally, the display module 430 is further configured to move the content item when the position of the feature point changes, and stop moving the content item after the specified point of the content item coincides with the changed position of the feature point.
为了使内容项的位置始终与特征点的位置重合,在特征点的位置变化时,也要相应的调整内容项的位置,直至内容项的位置与特征点的位置重合。In order to make the position of the content item always coincide with the position of the feature point, when the position of the feature point changes, the position of the content item should be adjusted accordingly until the position of the content item coincides with the position of the feature point.
播放视频图像的终端设备一般可以自动旋转屏幕以适应用户观看终端设备屏幕的方向。也就是说,在终端设备的摆放方向改变时,重力方向也会发生改变,对应的,根据重力方向在显示视频图像时也会发生变化。Generally, a terminal device playing video images can automatically rotate the screen to adapt to the direction in which the user watches the screen of the terminal device. That is to say, when the placement direction of the terminal device changes, the direction of gravity will also change, and correspondingly, the video image will also change according to the direction of gravity.
对应的,该内容项显示装置还可以包括:第一获取模块440和第二确定模块450。Correspondingly, the apparatus for displaying content items may further include: a first acquiring module 440 and a second determining module 450 .
第一获取模块440,被配置为实时获取播放视频图像的终端设备的重力方向。The first obtaining module 440 is configured to obtain in real time the direction of gravity of the terminal device playing the video image.
为了使得用户在面向终端设备观看视频图像时,始终观看到一个正向的视频图像,终端设备中播放的视频图像也会自动调整为与终端设备的摆放方向保持一致。这时,为了使内容项与视频图像的内容相匹配,对内容项的方向也会进行相应调整。In order to make the user always watch a positive video image when viewing the video image facing the terminal device, the video image played in the terminal device will also be automatically adjusted to be consistent with the placement direction of the terminal device. At this time, in order to make the content item match the content of the video image, the orientation of the content item will also be adjusted accordingly.
第二确定模块450,被配置为根据第一获取模块440获取到的重力方向实时确定内容项的显示方向,使得该内容项的显示方向符合重力方向。The second determination module 450 is configured to determine the display direction of the content item in real time according to the gravity direction acquired by the first acquisition module 440, so that the display direction of the content item conforms to the gravity direction.
在实际应用时,若是人脸出现在视频图像中,会随着人脸距离摄像头的远近,导致视频图像中的人脸区域的大小发生变化,为了使显示在人脸区域的内容项与人脸区域的大小相匹配,一般会设置人脸区域的大小与内容项的大小的预定比值,当人脸区域的大小改变时,为了保持预定比值的稳定,会对内容项的大小进行调整。对应的,该内容项显示装置还可以包括:第二获取模块460和调整模块470。In practical applications, if a face appears in a video image, the size of the face area in the video image will change with the distance between the face and the camera. In order to make the content items displayed in the face area consistent with the face To match the size of the area, a predetermined ratio between the size of the face area and the size of the content item is generally set. When the size of the face area changes, in order to keep the predetermined ratio stable, the size of the content item will be adjusted. Correspondingly, the device for displaying content items may further include: a second acquiring module 460 and an adjusting module 470 .
第二获取模块460,被配置为实时获取人脸区域的大小。The second obtaining module 460 is configured to obtain the size of the face area in real time.
想要确定人脸区域的大小,可以根据识别出的人脸区域对应地绘制闭合图形,计算该闭合图形的面积,也可以计算识别出的人脸区域的像素点的数量,根据像素点的数量多少判断人脸区域的大小。If you want to determine the size of the face area, you can draw a closed figure corresponding to the recognized face area, calculate the area of the closed figure, or calculate the number of pixels in the recognized face area, according to the number of pixels How much to judge the size of the face area.
调整模块470,被配置为根据人脸区域的大小与内容项的大小之间的预定比值,实时调整内容项的大小,使得人脸区域的大小与调整后的内容项的大小符合预定比值。The adjustment module 470 is configured to adjust the size of the content item in real time according to the predetermined ratio between the size of the face area and the size of the content item, so that the size of the face area and the adjusted size of the content item meet the predetermined ratio.
人脸区域的大小与内容项的大小之间需要设定一个预定比值,使得内容项能够与人脸区域的大小匹配。人脸区域的大小由于人距离摄像头的远近发生变化时,根据预定比值调整内容项,才能使内容项的大小与人脸区域的大小相匹配。A predetermined ratio needs to be set between the size of the face area and the size of the content item, so that the content item can match the size of the face area. When the size of the face area changes due to the distance between the person and the camera, the content item is adjusted according to a predetermined ratio so that the size of the content item matches the size of the face area.
在实际应用中,比如在直播场景中,可能有不止一位观众发送内容项的显示请求,因此每一个内容项显示一段时间后便清除,以便满足更多观众的互动需求。在这种情况下,该内容项显示装置还可以包括:累加模块480和清除模块490。In practical applications, such as live broadcasting, there may be more than one viewer sending a display request for a content item, so each content item will be cleared after being displayed for a period of time, so as to meet the interaction needs of more viewers. In this case, the content item display device may further include: an accumulating module 480 and a clearing module 490 .
累加模块480,被配置为累加内容项的显示时长。The accumulation module 480 is configured to accumulate the display duration of the content item.
清除模块490,被配置为在累加模块480累加的内容项的显示时长达到预定时长阈值时,清除显示的内容项。The clearing module 490 is configured to clear the displayed content item when the display duration of the content item accumulated by the accumulating module 480 reaches a predetermined duration threshold.
一般来讲,当内容项被显示在特征点位置处后,会为内容项设置一个定时器,该定时器的时长设置为预定时长阈值。当该定时器结束,则表明该内容项的显示时长达到预定时长阈值,此时则清除显示的内容项。Generally speaking, after the content item is displayed at the position of the feature point, a timer is set for the content item, and the duration of the timer is set to a predetermined duration threshold. When the timer expires, it indicates that the display duration of the content item reaches the predetermined duration threshold, and at this time, the displayed content item is cleared.
可选的,还可以对内容项进行计时,当计时得到的显示时长达到预定时长阈值时,则清除显示的内容项。Optionally, the content item may also be timed, and when the timed display duration reaches a predetermined duration threshold, the displayed content item is cleared.
为了保持视频图像的画面整洁度,保证视频图像的观看效果,这里的内容项可以设置为禁止同时显示,因此一个内容项被清除后才能显示下一个内容项。In order to keep the screen cleanness of the video image and ensure the viewing effect of the video image, the content items here can be set to prohibit simultaneous display, so that the next content item can only be displayed after one content item is cleared.
可选的,还可以设置为同时显示预定数量的内容项,为了视频图像的观看效果,可以设置同时显示的内容项对应不同的特征点位置。Optionally, it can also be set to display a predetermined number of content items at the same time. For the viewing effect of video images, it can be set that the content items displayed at the same time correspond to different feature point positions.
综上所述,本公开实施例中提供的内容项显示装置,通过识别视频图像中的特征点的位置,利用特征点的位置决定内容项显示的位置,解决了相关技术中由于只进行机械的展示导致互动形式单一的技术问题,达到了将内容项与视频图像关联,丰富互动形式的效果。To sum up, the content item display device provided in the embodiment of the present disclosure, by identifying the position of the feature point in the video image, using the position of the feature point to determine the position of the content item display, solves the problem of only mechanical Displaying the technical problems that lead to a single form of interaction has achieved the effect of associating content items with video images and enriching the form of interaction.
另外,通过在特征点的位置变化时,移动内容项的指定点直到与特征点位置重合,使得内容项能够与视频的特征点的位置保持一致,实时的进行调整。In addition, when the position of the feature point changes, the specified point of the content item is moved until it coincides with the position of the feature point, so that the content item can be kept consistent with the position of the feature point of the video and adjusted in real time.
另外,通过实时获取终端设备的重力方向,根据该重力方向调整内容项的显示方向,在终端设备发生旋转时,视频图像也会进行相应旋转,使得内容项也进行相应的方向调整,能够按照预定效果显示在视频图像中。In addition, by obtaining the gravity direction of the terminal device in real time, and adjusting the display direction of the content item according to the gravity direction, when the terminal device rotates, the video image will also be rotated accordingly, so that the content item will also be adjusted in the corresponding direction, and the content item can be adjusted according to the predetermined direction. The effect is shown in the video image.
另外,通过识别视频图像中的人脸区域的中心点,使得在显示内容项时将人脸区域的中心点作为特征点。In addition, by identifying the center point of the face area in the video image, the center point of the face area is used as the feature point when the content item is displayed.
另外,通过根据人脸区域的大小和内容项的大小的预定比值调整内容项的大小,使得在人脸区域的大小发生变化时,调整内容项的大小以匹配人脸区域的大小。In addition, the size of the content item is adjusted according to the predetermined ratio between the size of the face area and the size of the content item, so that when the size of the face area changes, the size of the content item is adjusted to match the size of the face area.
另外,通过设定每个内容项显示的时长,清除达到预定时长的内容项,使得一个内容项不会在视频图像上持续显示,能够让其他的内容项也有机会进行显示。In addition, by setting the display duration of each content item and clearing the content items reaching the predetermined duration, one content item will not be continuously displayed on the video image, and other content items can also have a chance to be displayed.
本公开一示例性实施例提供了一种内容项显示装置,能够实现本公开提供的内容项显示方法,该内容项显示装置包括:处理器、用于存储处理器可执行指令的存储器;An exemplary embodiment of the present disclosure provides a content item display device capable of implementing the content item display method provided in the present disclosure, and the content item display device includes: a processor and a memory for storing processor-executable instructions;
其中,处理器被配置为:where the processor is configured as:
对视频图像中预定的特征点进行识别;Recognize predetermined feature points in the video image;
确定识别出的特征点在视频图像中的位置;Determine the position of the identified feature point in the video image;
将接收到的内容项叠加在该位置上进行显示。The received content item is superimposed on the position for display.
图5是根据一示例性实施例示出的一种用于显示内容项的装置的框图。例如,装置500可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 5 is a block diagram of an apparatus for displaying content items according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)接口512,传感器组件514,以及通信组件516。5, apparatus 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and Communication component 516 .
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器518来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。The processing component 502 generally controls the overall operations of the device 500, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 518 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 502 may include one or more modules that facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502 .
存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 504 is configured to store various types of data to support operations at the device 500 . Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。The power supply component 506 provides power to various components of the device 500 . Power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500 .
多媒体组件508包括在装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a microphone (MIC), which is configured to receive external audio signals when the device 500 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 504 or sent via communication component 516 . In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500 . For example, the sensor component 514 can detect the open/closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor component 514 can also detect a change in the position of the device 500 or a component of the device 500, the user Presence or absence of contact with device 500 , device 500 orientation or acceleration/deceleration and temperature change of device 500 . Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 516 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The device 500 can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述内容项显示方法。In an exemplary embodiment, apparatus 500 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), controller, microcontroller, microprocessor or other electronic components for performing the above content item display method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器518执行以完成上述内容项显示方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, which can be executed by the processor 518 of the device 500 to implement the above content item display method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
图6是根据另一示例性实施例示出的一种用于显示内容项的装置的框图。例如,装置600可以被提供为一网络侧设备。参照图6,装置600包括处理组件602,其进一步包括一个或多个处理器,以及由存储器604所代表的存储器资源,用于存储可由处理组件602的执行的指令,例如应用程序。存储器604中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件602被配置为执行指令,以执行上述内容项显示方法。Fig. 6 is a block diagram of an apparatus for displaying content items according to another exemplary embodiment. For example, the apparatus 600 may be provided as a network side device. 6, apparatus 600 includes processing component 602, which further includes one or more processors, and memory resources represented by memory 604 for storing instructions executable by processing component 602, such as application programs. The application program stored in memory 604 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 602 is configured to execute instructions to perform the above content item display method.
装置600还可以包括一个电源组件606被配置为执行装置600的电源管理,一个有线或无线网络接口608被配置为将装置600连接到网络,和一个输入输出(I/O)接口610。装置600可以操作基于存储在存储器604的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 600 may also include a power component 606 configured to perform power management of device 600 , a wired or wireless network interface 608 configured to connect device 600 to a network, and an input-output (I/O) interface 610 . The apparatus 600 may operate based on an operating system stored in the memory 604, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610511598.XA CN106203300A (en) | 2016-06-30 | 2016-06-30 | Content item display packing and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610511598.XA CN106203300A (en) | 2016-06-30 | 2016-06-30 | Content item display packing and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106203300A true CN106203300A (en) | 2016-12-07 |
Family
ID=57464210
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610511598.XA Pending CN106203300A (en) | 2016-06-30 | 2016-06-30 | Content item display packing and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106203300A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107454433A (en) * | 2017-08-09 | 2017-12-08 | 广州视源电子科技股份有限公司 | Live broadcasting annotation method and device, terminal and live broadcasting system |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1866292A (en) * | 2005-05-19 | 2006-11-22 | 上海凌锐信息技术有限公司 | Dynamic glasses try-on method |
| CN101354789A (en) * | 2008-08-22 | 2009-01-28 | 北京中星微电子有限公司 | Method and device for realizing image mask special effects |
| CN102055912A (en) * | 2009-10-29 | 2011-05-11 | 北京中星微电子有限公司 | Video application system, video special effect processing system and method |
| CN102262788A (en) * | 2010-05-24 | 2011-11-30 | 上海一格信息科技有限公司 | Method and device for processing interactive makeup information data of personal three-dimensional (3D) image |
| CN103236066A (en) * | 2013-05-10 | 2013-08-07 | 苏州华漫信息服务有限公司 | Virtual trial make-up method based on human face feature analysis |
| CN104077024A (en) * | 2013-03-29 | 2014-10-01 | 索尼公司 | Information processing apparatus, information processing method, and recording medium |
| CN104217350A (en) * | 2014-06-17 | 2014-12-17 | 北京京东尚科信息技术有限公司 | Virtual try-on realization method and device |
| CN104780458A (en) * | 2015-04-16 | 2015-07-15 | 美国掌赢信息科技有限公司 | Method and electronic equipment for loading effects in instant video |
| CN104809638A (en) * | 2015-05-20 | 2015-07-29 | 成都通甲优博科技有限责任公司 | Virtual glasses trying method and system based on mobile terminal |
| CN105096241A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Face image beautifying device and method |
| CN105334963A (en) * | 2015-10-29 | 2016-02-17 | 广州华多网络科技有限公司 | Method and system for displaying virtual article |
-
2016
- 2016-06-30 CN CN201610511598.XA patent/CN106203300A/en active Pending
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1866292A (en) * | 2005-05-19 | 2006-11-22 | 上海凌锐信息技术有限公司 | Dynamic glasses try-on method |
| CN101354789A (en) * | 2008-08-22 | 2009-01-28 | 北京中星微电子有限公司 | Method and device for realizing image mask special effects |
| CN102055912A (en) * | 2009-10-29 | 2011-05-11 | 北京中星微电子有限公司 | Video application system, video special effect processing system and method |
| CN102262788A (en) * | 2010-05-24 | 2011-11-30 | 上海一格信息科技有限公司 | Method and device for processing interactive makeup information data of personal three-dimensional (3D) image |
| CN104077024A (en) * | 2013-03-29 | 2014-10-01 | 索尼公司 | Information processing apparatus, information processing method, and recording medium |
| CN103236066A (en) * | 2013-05-10 | 2013-08-07 | 苏州华漫信息服务有限公司 | Virtual trial make-up method based on human face feature analysis |
| CN104217350A (en) * | 2014-06-17 | 2014-12-17 | 北京京东尚科信息技术有限公司 | Virtual try-on realization method and device |
| CN104780458A (en) * | 2015-04-16 | 2015-07-15 | 美国掌赢信息科技有限公司 | Method and electronic equipment for loading effects in instant video |
| CN104809638A (en) * | 2015-05-20 | 2015-07-29 | 成都通甲优博科技有限责任公司 | Virtual glasses trying method and system based on mobile terminal |
| CN105096241A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Face image beautifying device and method |
| CN105334963A (en) * | 2015-10-29 | 2016-02-17 | 广州华多网络科技有限公司 | Method and system for displaying virtual article |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107454433A (en) * | 2017-08-09 | 2017-12-08 | 广州视源电子科技股份有限公司 | Live broadcasting annotation method and device, terminal and live broadcasting system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11503377B2 (en) | Method and electronic device for processing data | |
| CN106791893B (en) | Video live broadcast method and device | |
| US9674395B2 (en) | Methods and apparatuses for generating photograph | |
| KR101834674B1 (en) | Method and device for image photographing | |
| CN106165430B (en) | Live video method and device | |
| US11641493B2 (en) | Method and electronic device for displaying bullet screens | |
| CN106559696A (en) | Method for sending information and device | |
| CN106507178B (en) | Video playback method and device | |
| CN104469437A (en) | Advertisement pushing method and device | |
| CN107018333A (en) | Shoot template and recommend method, device and capture apparatus | |
| CN107707954A (en) | Video broadcasting method and device | |
| CN110677734B (en) | Video synthesis method and device, electronic equipment and storage medium | |
| CN106131393A (en) | Take pictures reminding method and device | |
| US20190122641A1 (en) | Controlling field of view | |
| CN111240623A (en) | Information processing method and device, and storage medium | |
| CN105120301A (en) | Video processing method and apparatus, and intelligent equipment | |
| CN106997281A (en) | The method and smart machine of shared virtual objects | |
| CN108108671A (en) | Description of product information acquisition method and device | |
| KR101701814B1 (en) | Method and apparatus for displaying framing information | |
| CN107170048A (en) | Information displaying method and device | |
| CN108986803B (en) | Scene control method and device, electronic equipment and readable storage medium | |
| CN107124658B (en) | Live video method and device | |
| CN108040280A (en) | Content item display methods and device, storage medium | |
| CN106231207A (en) | Image processing method and device | |
| EP3799415A2 (en) | Method and device for processing videos, and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
| RJ01 | Rejection of invention patent application after publication |