CN108765485A - The displaying of image, processing method and processing device - Google Patents
The displaying of image, processing method and processing device Download PDFInfo
- Publication number
- CN108765485A CN108765485A CN201810317411.1A CN201810317411A CN108765485A CN 108765485 A CN108765485 A CN 108765485A CN 201810317411 A CN201810317411 A CN 201810317411A CN 108765485 A CN108765485 A CN 108765485A
- Authority
- CN
- China
- Prior art keywords
- image
- color
- presented
- rendering
- mark
- 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
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
- G06T7/593—Depth or shape recovery from multiple images from stereo images
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N3/00—Scanning details of television systems; Combination thereof with generation of supply voltages
- H04N3/36—Scanning of motion picture films, e.g. for telecine
- H04N3/40—Scanning of motion picture films, e.g. for telecine with intermittently moving film
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Generation (AREA)
Abstract
本申请公开了一种图像的展示、处理方法及装置。其中,该方法包括:获取待展示三维3D图像中的标识,其中,该标识用于指示所述待展示3D图像的3D格式;依据标识确定待展示3D图像的3D格式;依据3D格式展示待展示3D图像。本申请解决了相关技术中无法准确地识别出待识别视频的3D格式的技术问题。
The application discloses an image display and processing method and device. Wherein, the method includes: acquiring the logo in the 3D image to be displayed, wherein the logo is used to indicate the 3D format of the 3D image to be displayed; determining the 3D format of the 3D image to be displayed according to the logo; 3D images. The present application solves the technical problem in the related art that the 3D format of the video to be recognized cannot be accurately identified.
Description
技术领域technical field
本申请涉及三维(Three Dimensions,简称为3D)图像展示领域,具体而言,涉及一种图像的展示、处理方法及装置。The present application relates to the field of three-dimensional (Three Dimensions, 3D for short) image display, and in particular, relates to an image display and processing method and device.
背景技术Background technique
由于目前大多数3D内容均使用和2D格式相同的方式进行编码和封装,因此显示设备需要一定的技术手段才能正确识别,然而市面上的3D电视、广告机等显示设备,均没有完全实现根据所显示画面的3D格式自动做相应的合图模式(例如左右格式或上下格式)切换,尤其是对于2DPZ格式的自动识别;在播放本地视频的情况下可以通过识别文件名的方式获取3D格式,但此方法在播放通过HDMI/DVI外接PC信号源的情况下无效,而目前大多数PC都不支持蓝光3D标准,此时要准确无误地识别出信号的3D格式就较为困难。Since most 3D content is currently encoded and packaged in the same way as 2D formats, display devices require certain technical means to correctly identify them. The 3D format of the display screen is automatically switched to the corresponding picture combination mode (such as left-right format or top-bottom format), especially for the automatic recognition of the 2DPZ format; in the case of playing local videos, the 3D format can be obtained by identifying the file name, but This method is invalid when the signal source is connected to an external PC via HDMI/DVI, and currently most PCs do not support the Blu-ray 3D standard, so it is difficult to accurately identify the 3D format of the signal.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容Contents of the invention
本申请实施例提供了一种图像的展示、处理方法及装置,以至少解决相关技术中无法准确地识别出待识别视频的3D格式的技术问题。Embodiments of the present application provide an image display and processing method and device, so as to at least solve the technical problem in the related art that the 3D format of the video to be recognized cannot be accurately identified.
根据本申请实施例的一个方面,提供了一种图像的展示方法,包括:获取待展示3D图像中的标识,其中,该标识用于指示待展示3D图像的3D格式;依据标识确定待展示3D图像的3D格式;依据3D格式展示待展示3D图像。According to an aspect of an embodiment of the present application, there is provided a method for displaying an image, including: acquiring an identifier in the 3D image to be displayed, wherein the identifier is used to indicate the 3D format of the 3D image to be displayed; determining the 3D image to be displayed according to the identifier The 3D format of the image; display the 3D image to be displayed according to the 3D format.
可选地,上述标识携带于当前第一图像或第二图像中,其中,第一图像和第二图像用于构建待展示3D图像。Optionally, the above identifier is carried in the current first image or the second image, where the first image and the second image are used to construct a 3D image to be displayed.
可选地,标识通过以下方式获取:检测第一图像和/或第二图像中至少一个预设区域的颜色,得到至少一个颜色;判断至少一个颜色是否和预设颜色组合相同,并在至少一个颜色和预设颜色组合相同时,确定至少一个颜色为标识。Optionally, the identification is obtained by: detecting the color of at least one preset area in the first image and/or the second image to obtain at least one color; judging whether at least one color is the same as the preset color combination, and at least one When the combination of colors and preset colors is the same, at least one color is determined as the logo.
可选地,判断至少一个颜色是否和预设颜色组合相同,包括:判断至少一个颜色中的各个颜色以及各个颜色的排列顺序,是否和预设颜色组合中的颜色和排列顺序相同。Optionally, judging whether the at least one color is the same as the preset color combination includes: judging whether each color in the at least one color and the arrangement order of each color are the same as the colors and arrangement order in the preset color combination.
可选地,判断至少一个颜色是否和预设颜色组合相同,包括:判断预设集合中是否存在与至少一个颜色对应的预设颜色组合,其中,在判断结果指示存在时,则确定至少一个颜色和预设颜色组合相同,预设集合中不同的预设颜色组合对应不同的3D格式。Optionally, judging whether at least one color is the same as the preset color combination includes: judging whether there is a preset color combination corresponding to at least one color in the preset set, wherein, when the judging result indicates that there is, then determining at least one color combination Same as the preset color combinations, different preset color combinations in the preset collection correspond to different 3D formats.
可选地,上述方法还包括:在判断结果指示预设集合中不存在与至少一个颜色对应的预设颜色组合的情况下,确定当前显示设备采用二维2D格式展示数据。Optionally, the above method further includes: when the judgment result indicates that there is no preset color combination corresponding to at least one color in the preset set, determining that the current display device displays data in a two-dimensional 2D format.
可选地,上述至少一个颜色包括:在至少一个预设区域中间隔设置的不同区域的颜色。Optionally, the above at least one color includes: colors of different regions arranged at intervals in at least one preset region.
可选地,不同区域之间使用颜色为黑色的区域隔开。Optionally, use black areas to separate different areas.
可选地,检测第一图像和/或第二图像中至少一个预设区域的颜色,包括:检测至少一个区域的中心点像素的RGB值,依据RGB值确定至少一个预设区域的颜色。Optionally, detecting the color of at least one preset area in the first image and/or the second image includes: detecting the RGB value of a central pixel of the at least one area, and determining the color of the at least one preset area according to the RGB value.
可选地,依据3D格式展示待展示3D图像之前,方法还包括:确定用于构成待展示3D图像的二维2D格式的第三图像和第四图像,其中,第三图像和第四图像中的其中一个图像携带有标识;基于第三图像和第四图像确定待展示3D图像的深度图;依据深度图以及指定图像确定输出的3D图像,其中,指定图像为第三图像和第四图像中未携带有标识的图像。Optionally, before displaying the 3D image to be displayed according to the 3D format, the method further includes: determining a third image and a fourth image in a two-dimensional 2D format used to form the 3D image to be displayed, wherein the third image and the fourth image One of the images carries a logo; determine the depth map of the 3D image to be displayed based on the third image and the fourth image; determine the output 3D image according to the depth map and the specified image, wherein the specified image is the third image and the fourth image No logo image is carried.
根据本申请实施例的一个方面,提供了一种图像的处理方法,包括:将标识嵌入3D图像中,得到待展示3D图像,其中,该标识用于指示待展示3D图像的3D格式;将待展示图像发送至显示设备。According to an aspect of an embodiment of the present application, an image processing method is provided, including: embedding a logo into a 3D image to obtain a 3D image to be displayed, wherein the logo is used to indicate the 3D format of the 3D image to be displayed; The display image is sent to the display device.
根据本申请实施例的又一个方面,提供了一种图像的展示装置,包括:获取模块,用于获取待展示3D图像中的标识,其中,该标识用于指示待展示3D图像的3D格式;确定模块,用于依据标识确定待展示3D图像的3D格式;展示模块,用于依据3D格式展示待展示3D图像。According to still another aspect of the embodiments of the present application, an image display device is provided, including: an acquisition module configured to acquire an identifier in a 3D image to be displayed, wherein the identifier is used to indicate a 3D format of the 3D image to be displayed; The determination module is used to determine the 3D format of the 3D image to be displayed according to the identification; the display module is used to display the 3D image to be displayed according to the 3D format.
根据本申请实施例的又一个方面,提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行以上所述的图像的展示方法。According to still another aspect of the embodiments of the present application, a storage medium is provided, and the storage medium includes a stored program, wherein, when the program is running, the device where the storage medium is located is controlled to execute the image display method described above.
根据本申请实施例的又一个方面,提供了一种处理器,处理器用于运行程序,其中,程序运行时执行以上所述的图像的展示方法。According to still another aspect of the embodiments of the present application, a processor is provided, and the processor is configured to run a program, wherein the above-mentioned method for displaying an image is executed when the program is running.
在本申请实施例中,利用3D图像中的标识确定当前3D图像的3D格式,并按照该3D格式展示上述3D图像的方式,从而实现了准确识别图像所属3D格式的技术效果,尤其对于3D图像信号来自外接设备(例如PC)的情况,可以实现3D格式的自动识别,进而解决了相关技术中无法准确地识别出待识别视频的3D格式的技术问题。In the embodiment of the present application, the 3D format of the current 3D image is determined by using the identification in the 3D image, and the above-mentioned 3D image is displayed according to the 3D format, so as to achieve the technical effect of accurately identifying the 3D format of the image, especially for 3D images When the signal comes from an external device (such as a PC), the automatic identification of the 3D format can be realized, thereby solving the technical problem in the related art that the 3D format of the video to be identified cannot be accurately identified.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1a是根据本申请实施例的一种可选的图像的生成方法示意图;Fig. 1a is a schematic diagram of an optional method for generating an image according to an embodiment of the present application;
图1b是根据本申请实施例的一种图像的展示方法的流程示意图;Fig. 1b is a schematic flowchart of an image display method according to an embodiment of the present application;
图2是根据本申请实施例的一种可选的颜色组合的示意图;Fig. 2 is a schematic diagram of an optional color combination according to an embodiment of the present application;
图3是根据本申请实施例的另一种可选的颜色组合的示意图;Fig. 3 is a schematic diagram of another optional color combination according to an embodiment of the present application;
图4是根据本申请实施例的一种可选的颜色组合的示意图;Fig. 4 is a schematic diagram of an optional color combination according to an embodiment of the present application;
图5a是根据本申请实施例的一种可选的3D图像的展示方法的流程示意图Fig. 5a is a schematic flowchart of an optional 3D image display method according to an embodiment of the present application
图5b是根据本申请实施例的一种可选的3D图像的左右图示意图;Fig. 5b is a schematic diagram of left and right views of an optional 3D image according to an embodiment of the present application;
图5c是根据本申请实施例的一种可选的3D图像的深度图的示意图;Fig. 5c is a schematic diagram of an optional depth map of a 3D image according to an embodiment of the present application;
图5d是根据本申请实施例的一种可选的3D图像的立体图示意图;Fig. 5d is a schematic perspective view of an optional 3D image according to an embodiment of the present application;
图6是根据本申请实施例的一种图像的展示装置的结构框图;Fig. 6 is a structural block diagram of an image display device according to an embodiment of the present application;
图7是根据本申请实施例的另一种3D图像的展示方法的流程示意图。Fig. 7 is a schematic flowchart of another method for displaying a 3D image according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
相关技术中,在3D播放终端接收来自第三方终端的3D图像信号并进行播放时,无法识别3D图像的格式,从而使得3D播放终端无法按照正常的模式进行播放。为解决上述问题,本申请实施例提供了相应的解决方案,以下详细说明。In related technologies, when a 3D playback terminal receives and plays a 3D image signal from a third-party terminal, it cannot recognize the format of the 3D image, so that the 3D playback terminal cannot play in a normal mode. In order to solve the above problems, the embodiments of the present application provide corresponding solutions, which will be described in detail below.
如图1a所示,步骤1,第三方终端利用添加水印方式在左右3D格式的视频图像中添加相应标识;步骤2,第三方终端播放3D图像;步骤3,第三方终端与3D播放终端建立连接,将播放的3D图像通过HDMI接口传输至3D播放终端;步骤4,3D播放终端识别3D图像中的标识,并依据该标识确定3D图像的3D格式,以按照该3D格式播放上述3D图像。其中,上述第三方终端包括但不限于:智能终端、PC机等。As shown in Figure 1a, in step 1, the third-party terminal adds corresponding logos to the left and right 3D format video images by adding watermarks; in step 2, the third-party terminal plays 3D images; in step 3, the third-party terminal establishes a connection with the 3D playback terminal , transmitting the played 3D image to the 3D playback terminal through the HDMI interface; step 4, the 3D playback terminal recognizes the logo in the 3D image, and determines the 3D format of the 3D image according to the logo, so as to play the above-mentioned 3D image according to the 3D format. Wherein, the above-mentioned third-party terminals include but are not limited to: smart terminals, PCs, and the like.
根据本申请实施例,提供了一种图像的展示方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, a method embodiment of an image display method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
图1b是根据本申请实施例的一种图像的展示方法的流程示意图,如图1b所示,该方法包括如下步骤:Fig. 1b is a schematic flowchart of an image display method according to an embodiment of the present application. As shown in Fig. 1b, the method includes the following steps:
步骤S102,获取待展示3D图像中的标识,其中,该标识用于指示待展示3D图像的3D格式;其中,待展示3D图像包括但不限于:依据外界可穿戴设备实现3D立体观看效果的图像,也可以为裸眼3D展示图像(例如,裸眼3D显示终端,该裸眼3D显示终端包括但不限于裸眼3D电视、裸眼3D手机等)。Step S102, obtaining the identification in the 3D image to be displayed, wherein the identification is used to indicate the 3D format of the 3D image to be displayed; wherein, the 3D image to be displayed includes but is not limited to: an image that achieves a 3D stereoscopic viewing effect based on an external wearable device , and can also display images for glasses-free 3D (for example, glasses-free 3D display terminals, which include but are not limited to glasses-free 3D TVs, glasses-free 3D mobile phones, etc.).
其中,上述标识可以携带于当前第一图像或第二图像中,其中,第一图像和第二图像用于构建待展示3D图像。上述“携带于”的含义包括但不限于:将上述标识嵌入至第一图像或第二图像中,例如,以添加水印的方式将上述标识添加至第一图像或第二图像中,为避免影响观看效果,可以将上述标识设置于第一图像或第二图像的顶角区域,例如,设置于左上角、右上角、左下角和右下角中的一个。上述标识包括但不限于图标或图片、数字、字符串、色块等。其中,上述图标或图片可以表现为分辨率小于预设阈值的色块组合,该色块组合由多个色块按照一定的顺序排列组成,且相邻色块的颜色不同。例如,上述标识为分辨率为6*30的图片。Wherein, the above-mentioned identification may be carried in the current first image or the second image, wherein the first image and the second image are used to construct the 3D image to be displayed. The meaning of the above-mentioned "carried in" includes but is not limited to: embedding the above-mentioned logo into the first image or the second image, for example, adding the above-mentioned logo to the first image or the second image by adding a watermark, in order to avoid affecting For viewing effect, the above logo can be set in the top corner area of the first image or the second image, for example, in one of the upper left corner, upper right corner, lower left corner and lower right corner. The above-mentioned signs include but are not limited to icons or pictures, numbers, character strings, color blocks, etc. Wherein, the above-mentioned icon or picture may represent a combination of color blocks with a resolution smaller than a preset threshold, the combination of color blocks is composed of a plurality of color blocks arranged in a certain order, and the colors of adjacent color blocks are different. For example, the above identification is a picture with a resolution of 6*30.
作为一个可选实施例,上述至少一个颜色包括:在至少一个预设区域中间隔设置的不同区域的颜色。在一个可选实施例中,为避免图像处理过程中的相互干扰,可以在至少一个颜色中的不同颜色或相同颜色之间插入黑色,即不同区域之间使用颜色为黑色的区域隔开。As an optional embodiment, the at least one color includes: colors of different regions arranged at intervals in at least one preset region. In an optional embodiment, in order to avoid mutual interference during image processing, black may be inserted between different colors or the same color in at least one color, that is, different areas are separated by areas of black color.
以上述标识为图标为例,该图标为分别率为6*30的图片,主要由纯红、纯绿、纯蓝三个大小相同的方块组成,中间可以加黑色方块隔开,减小图像处理过程中相互干扰,如图2、图3和图4所示,红、绿、蓝方块的排列顺序对应不同的3D格式,例如图2所示颜色组合对应的格式为2DPZ、图3所示颜色组合对应的格式为左右格式、图4所示颜色组合对应的格式为上下格式。为描述方便,图2、图3和图4中用方框内的数字表示颜色,例如,1表示红色、2表示黑色、3表示绿色、4表示蓝色。Take the above logo as an example. The icon is a picture with a resolution of 6*30. It is mainly composed of three squares of the same size: pure red, pure green, and pure blue. Black squares can be added in the middle to reduce image processing. Mutual interference in the process, as shown in Figure 2, Figure 3, and Figure 4, the arrangement order of red, green, and blue squares corresponds to different 3D formats, for example, the color combination shown in Figure 2 corresponds to the format 2DPZ, and the color shown in Figure 3 The format corresponding to the combination is the left and right format, and the format corresponding to the color combination shown in Figure 4 is the top and bottom format. For the convenience of description, the numbers in the boxes in Fig. 2, Fig. 3 and Fig. 4 represent colors, for example, 1 represents red, 2 represents black, 3 represents green, and 4 represents blue.
例如,上述标识可以通过以下方式获取:检测第一图像和/或第二图像中至少一个预设区域的颜色,得到至少一个颜色;判断至少一个颜色是否和预设颜色组合相同,并在至少一个颜色和预设颜色组合相同时,确定至少一个颜色为上述标识。其中,上述预设颜色组合与3D格式的一一对应的,即不同的预设颜色组合对应不同的3D格式。其中,上述预设区域包括但不限于:不同颜色的方形区域、圆形区域等。For example, the above identification can be obtained in the following ways: detecting the color of at least one preset area in the first image and/or the second image to obtain at least one color; judging whether at least one color is the same as the preset color combination, and When the combination of colors and preset colors is the same, at least one color is determined to be the above-mentioned logo. Wherein, the preset color combinations are in one-to-one correspondence with the 3D formats, that is, different preset color combinations correspond to different 3D formats. Wherein, the aforementioned preset areas include, but are not limited to: square areas, circular areas, etc. of different colors.
其中,在检测上述至少一个预设区域的颜色时,可以将上述预设区域的像素值取平均值,依据该平均值确定预设区域的颜色,也可以采用其他方式,例如,考虑到图像的边缘处可能会存在干扰,影响颜色识别,因此,可以指定一个中心区域中像素点RGB平均值作为确定颜色的依据,也可以检测至少一个区域的中心点像素的RGB值,依据RGB值确定至少一个预设区域的颜色。在利用上述中心区域确定预设区域的颜色时,上述中心区域小于其对应的预设区域。Wherein, when detecting the color of the above-mentioned at least one preset area, the pixel values of the above-mentioned preset area can be averaged, and the color of the preset area can be determined according to the average value, and other methods can also be used, for example, considering the image There may be interference at the edge, which affects color recognition. Therefore, the RGB average value of pixels in a central area can be specified as the basis for determining the color, or the RGB value of the central point pixel in at least one area can be detected, and at least one color can be determined based on the RGB value. The color of the preset area. When using the central area to determine the color of the preset area, the central area is smaller than its corresponding preset area.
其中,在判断至少一个颜色是否和预设颜色组合相同时,可以表现为判断颜色种类和/或排列顺序是否与预设颜色组合相同,具体地可以通过以下方式确定:判断至少一个颜色中的各个颜色以及各个颜色的排列顺序,是否和预设颜色组合中的颜色和排列顺序相同。Wherein, when judging whether at least one color is the same as the preset color combination, it can be expressed as judging whether the color type and/or arrangement order are the same as the preset color combination, specifically, it can be determined in the following manner: judging each of the at least one color Whether the color and the arrangement order of each color are the same as those in the preset color combination.
其中,可以通过以下方式判断至少一个颜色是否和预设颜色组合相同,但不限于此:判断预设集合中是否存在与至少一个颜色对应的预设颜色组合,其中,在判断结果指示存在时,则确定至少一个颜色和预设颜色组合相同,预设集合中不同的预设颜色组合对应不同的3D格式。在一个可选实施例中,在判断结果指示预设集合中不存在与至少一个颜色对应的预设颜色组合的情况下,确定当前显示设备采用二维2D格式展示数据。Wherein, whether at least one color is the same as the preset color combination can be judged in the following manner, but not limited thereto: judging whether there is a preset color combination corresponding to at least one color in the preset set, wherein, when the judgment result indicates that there is, Then it is determined that at least one color is the same as the preset color combination, and different preset color combinations in the preset set correspond to different 3D formats. In an optional embodiment, when the judgment result indicates that there is no preset color combination corresponding to at least one color in the preset set, it is determined that the current display device displays data in a two-dimensional 2D format.
步骤S104,依据标识确定待展示3D图像的3D格式。正如上面所述,标识和相应的3D格式之间是存在对应关系的,基于此,步骤S104可以根据标识确定待展示3D图像所属的3D格式,从而以正确的方式展示上述待展示3D图像。Step S104, determine the 3D format of the 3D image to be displayed according to the identifier. As mentioned above, there is a correspondence between the logo and the corresponding 3D format. Based on this, step S104 can determine the 3D format of the 3D image to be displayed according to the logo, so as to display the 3D image to be displayed in a correct manner.
例如,裸眼3D电视或广告机等显示设备在开始播放视频或接收到视频信号(例如,HDMI信号)后,不停地循环采集显示画面的右上角对应图标中红、绿、蓝三个方块位置中心的像素点,判断这三个点的R、G、B值可得出其对应的颜色,当三个点的位置和颜色与原先给定的所有图标中任何一种完全吻合时,表示识别到了相对应的3D格式,此时显示设备自动切换到相应的合图模式(即播放模式)以显示正确的3D画面,并继续不停采集像素点信息,当像素点信息不再符合任何一种3D格式时,显示设备自动切换到2D模式。For example, after a display device such as a naked-eye 3D TV or an advertising machine starts to play a video or receives a video signal (for example, an HDMI signal), it continuously collects the three square positions of red, green, and blue in the corresponding icon in the upper right corner of the display screen. For the center pixel point, judge the R, G, and B values of these three points to get the corresponding color. When the position and color of the three points are completely consistent with any of the previously given icons, it means recognition When the corresponding 3D format is reached, the display device will automatically switch to the corresponding image combination mode (play mode) to display the correct 3D picture, and continue to collect pixel information. When the pixel information no longer conforms to any When in 3D format, the display device automatically switches to 2D mode.
步骤S106,依据3D格式展示待展示3D图像。Step S106, displaying the 3D image to be displayed according to the 3D format.
可选地,为保证观看效果,在展示上述待展示3D图像时,可以将上述标识进行隐藏或删除,例如,在依据3D格式展示待展示3D图像之前,可以执行以下步骤:确定用于构成待展示3D图像的二维2D格式的第三图像和第四图像,其中,第三图像和第四图像中的其中一个图像携带有标识;基于第三图像和第四图像确定待展示3D图像的深度图(Depth Map);依据深度图以及指定图像确定输出的3D图像,其中,指定图像为第三图像和第四图像中未携带有标识的图像。Optionally, in order to ensure the viewing effect, when displaying the above-mentioned 3D images to be displayed, the above-mentioned identification can be hidden or deleted. For example, before displaying the 3D images to be displayed according to the 3D format, the following steps can be performed: Displaying a third image and a fourth image in a two-dimensional 2D format of a 3D image, wherein one of the images in the third image and the fourth image carries a logo; determining the depth of the 3D image to be displayed based on the third image and the fourth image Depth Map: determining an output 3D image according to the depth map and a designated image, wherein the designated image is an image that does not carry a logo among the third image and the fourth image.
需要说明的是,所述第三图像和第四图像可以分别对应于上述第一图像和第二图像,也可以是与第一图像和第二图像不同的图像。对于前者,第三图像为第一图像,第四图像为第二图像和第四图像,以及第一图像和第二图像;对于后者,例如,第三图像和第四图像为经过了特殊处理的处理,该特殊处理包括但不限于:去除边缘噪声等处理,而第一图像和第二图像为初始图像,即未经过特殊处理的图像。It should be noted that, the third image and the fourth image may respectively correspond to the above-mentioned first image and the second image, or may be images different from the first image and the second image. For the former, the third image is the first image, the fourth image is the second image and the fourth image, and the first image and the second image; for the latter, for example, the third image and the fourth image are specially processed The special processing includes but is not limited to: processing such as edge noise removal, and the first image and the second image are initial images, that is, images that have not undergone special processing.
以裸眼3D电视为例,如图5a所示,3D图像的展示方法包括以下处理步骤:Taking naked-eye 3D TV as an example, as shown in Figure 5a, the method for displaying 3D images includes the following processing steps:
步骤S502,裸眼3D电视中的电视信号处理器解码出图像并识别图标,然后将结果告知3D图像处理器;Step S502, the TV signal processor in the naked-eye 3D TV decodes the image and recognizes the icon, and then informs the 3D image processor of the result;
步骤S504,3D图像处理器从整幅图像中分离出左右图,如图5b所示,右图中设置有标识;Step S504, the 3D image processor separates the left and right images from the entire image, as shown in Figure 5b, and the right image is provided with a logo;
步骤S506,3D图像处理器将左右图对比后得出深度图,如图5c所示;Step S506, the 3D image processor compares the left and right images to obtain a depth image, as shown in Figure 5c;
步骤S508,3D图像处理器将左图和深度图混合处理后,把图像送给带有光栅的显示屏显示出3D画面,即通过显示屏展示3D图像,如图5d所示。In step S508, the 3D image processor mixes the left image and the depth image, and then sends the image to a display screen with a grating to display a 3D image, that is, display a 3D image through the display screen, as shown in Figure 5d.
其中,深度图是指包含与视点的场景对象的表面的距离有关的信息的图像或图像通道。其类似于灰度图像,只是它的每个像素值是传感器距离物体的实际距离。通常RGB图像和Depth图像是配准的,因而像素点之间具有一对一的对应关系。Herein, a depth map refers to an image or an image channel that contains information about distances to surfaces of scene objects from viewpoints. It is similar to a grayscale image, except that each pixel value is the actual distance from the sensor to the object. Usually the RGB image and the Depth image are registered, so there is a one-to-one correspondence between pixels.
基于深度图的上述特性,在利用上述深度图和指定图像确定的3D图像中并不存在上述标识,即将上述标识进行了删除或隐藏处理,提升了用户体验。Based on the above-mentioned characteristics of the depth map, the above-mentioned mark does not exist in the 3D image determined by using the above-mentioned depth map and the specified image, that is, the above-mentioned mark is deleted or hidden, which improves user experience.
需要说明的是,步骤S102-S106的执行主体包括但不限于:视频播放终端,也可以表现为视频播放终端中的应用,例如播放器应用等。It should be noted that the subject of execution of steps S102-S106 includes but is not limited to: a video playback terminal, and may also be an application in the video playback terminal, such as a player application.
图6是根据本申请实施例的一种图像的展示装置的结构框图。如图6所示,该图像的展示装置包括:获取模块60,用于获取待展示3D图像中的标识,其中,该标识用于指示待展示3D图像的3D格式;确定模块62,用于依据标识确定待展示3D图像的3D格式;展示模块64,用于依据3D格式展示待展示3D图像。Fig. 6 is a structural block diagram of an image display device according to an embodiment of the present application. As shown in Figure 6, the image display device includes: an acquisition module 60, configured to acquire an identifier in the 3D image to be displayed, wherein the identifier is used to indicate the 3D format of the 3D image to be displayed; a determination module 62, configured to Identify and determine the 3D format of the 3D image to be displayed; the display module 64 is configured to display the 3D image to be displayed according to the 3D format.
需要说明的是,图6所示实施例的优选实施方式可以参见图1(图1a、图1b)至图5(图5a、图5b、图5c、图5d)所示实施例的相关描述,此处不再赘述。It should be noted that the preferred implementation of the embodiment shown in Figure 6 can refer to the relevant description of the embodiment shown in Figure 1 (Figure 1a, Figure 1b) to Figure 5 (Figure 5a, Figure 5b, Figure 5c, Figure 5d), I won't repeat them here.
图7是根据本申请实施例的另一种3D图像的展示方法的流程示意图。如图7所示,该方法包括:Fig. 7 is a schematic flowchart of another method for displaying a 3D image according to an embodiment of the present application. As shown in Figure 7, the method includes:
步骤S702,将标识嵌入3D图像中,得到待展示3D图像,其中,该标识用于指示待展示3D图像的3D格式;其中,嵌入方式包括但不限于加水印的方式。以左右视图格式的3D图像为例,可以将上述标识嵌入至右视图中。Step S702, embedding the logo into the 3D image to obtain the 3D image to be displayed, where the logo is used to indicate the 3D format of the 3D image to be displayed; where the embedding method includes but not limited to watermarking. Taking a 3D image in a left and right view format as an example, the above logo can be embedded in the right view.
步骤S704,将待展示图像发送至显示设备。Step S704, sending the image to be displayed to the display device.
图7所示实施例的优选实施方式可以参见实施例图1至图5所示实施例的相关描述,此处不再赘述。For preferred implementation manners of the embodiment shown in FIG. 7 , reference may be made to relevant descriptions of the embodiments shown in FIG. 1 to FIG. 5 , and details are not repeated here.
本申请实施例还提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行以上所述的图像的展示方法。The embodiment of the present application also provides a storage medium, the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned image display method.
该存储介质用于存储执行以下功能的程序:获取待展示3D图像中的标识,其中,该标识用于指示待展示3D图像的3D格式;依据标识确定待展示3D图像的3D格式;依据3D格式展示待展示3D图像。The storage medium is used to store a program for performing the following functions: obtain the logo in the 3D image to be displayed, wherein the logo is used to indicate the 3D format of the 3D image to be displayed; determine the 3D format of the 3D image to be displayed according to the logo; according to the 3D format Display the 3D image to be displayed.
根据本申请实施例的又一个方面,提供了一种处理器,处理器用于运行程序,其中,程序运行时执行以上所述的图像的展示方法。According to still another aspect of the embodiments of the present application, a processor is provided, and the processor is configured to run a program, wherein the above-mentioned method for displaying an image is executed when the program is running.
该处理器用于执行实现以下功能的程序:将标识嵌入3D图像中,得到待展示3D图像,其中,该标识用于指示待展示3D图像的3D格式;将待展示图像发送至显示设备The processor is used to execute a program to realize the following functions: embedding the logo into the 3D image to obtain the 3D image to be displayed, wherein the logo is used to indicate the 3D format of the 3D image to be displayed; sending the image to be displayed to the display device
采用本申请实施例提供的方案,显示设备可以根据视频3D格式自动切换,准确度高,识别速度快,运算量少,可减少人工操作,实现无人值守。Using the solution provided by the embodiment of the present application, the display device can automatically switch according to the 3D format of the video, with high accuracy, fast recognition speed, less calculation, less manual operation, and unattended operation.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be realized in other ways. Wherein, the device embodiments described above are only illustrative. For example, the division of the units may be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for enabling a computer device (which may be a personal computer, server or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above description is only the preferred embodiment of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, some improvements and modifications can also be made. These improvements and modifications are also It should be regarded as the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810317411.1A CN108765485A (en) | 2018-04-10 | 2018-04-10 | The displaying of image, processing method and processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810317411.1A CN108765485A (en) | 2018-04-10 | 2018-04-10 | The displaying of image, processing method and processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108765485A true CN108765485A (en) | 2018-11-06 |
Family
ID=63981675
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810317411.1A Pending CN108765485A (en) | 2018-04-10 | 2018-04-10 | The displaying of image, processing method and processing device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108765485A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112333519A (en) * | 2020-09-23 | 2021-02-05 | 深圳Tcl新技术有限公司 | Color filling method, system, equipment and storage medium for icon spacing area |
| US11381713B2 (en) * | 2020-11-10 | 2022-07-05 | Warner Bros. Entertainment Inc. | Perfless and cadenceless scanning and digitization of motion picture film |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100026783A1 (en) * | 2008-08-01 | 2010-02-04 | Real D | Method and apparatus to encode and decode stereoscopic video data |
| EP2384008A1 (en) * | 2010-04-30 | 2011-11-02 | Acer Incorporated | Stereoscopic content auto-judging mechanism |
| JP2012015570A (en) * | 2010-06-02 | 2012-01-19 | Hitachi Consumer Electronics Co Ltd | Receiver, reception method, and transmission/reception method |
| CN102577410A (en) * | 2009-10-16 | 2012-07-11 | Lg电子株式会社 | Method for indicating 3D content and device for processing signal |
| CN102648633A (en) * | 2009-11-03 | 2012-08-22 | Lg电子株式会社 | Image display device, method of controlling image display device, and image display system |
| CN103747360A (en) * | 2013-12-26 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | Intelligent television video playing method and equipment |
| CN105681777A (en) * | 2016-01-20 | 2016-06-15 | 深圳创维-Rgb电子有限公司 | Glasses-free 3D display method and system |
-
2018
- 2018-04-10 CN CN201810317411.1A patent/CN108765485A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100026783A1 (en) * | 2008-08-01 | 2010-02-04 | Real D | Method and apparatus to encode and decode stereoscopic video data |
| CN102577410A (en) * | 2009-10-16 | 2012-07-11 | Lg电子株式会社 | Method for indicating 3D content and device for processing signal |
| CN102648633A (en) * | 2009-11-03 | 2012-08-22 | Lg电子株式会社 | Image display device, method of controlling image display device, and image display system |
| EP2384008A1 (en) * | 2010-04-30 | 2011-11-02 | Acer Incorporated | Stereoscopic content auto-judging mechanism |
| JP2012015570A (en) * | 2010-06-02 | 2012-01-19 | Hitachi Consumer Electronics Co Ltd | Receiver, reception method, and transmission/reception method |
| CN103747360A (en) * | 2013-12-26 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | Intelligent television video playing method and equipment |
| CN105681777A (en) * | 2016-01-20 | 2016-06-15 | 深圳创维-Rgb电子有限公司 | Glasses-free 3D display method and system |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112333519A (en) * | 2020-09-23 | 2021-02-05 | 深圳Tcl新技术有限公司 | Color filling method, system, equipment and storage medium for icon spacing area |
| US11381713B2 (en) * | 2020-11-10 | 2022-07-05 | Warner Bros. Entertainment Inc. | Perfless and cadenceless scanning and digitization of motion picture film |
| US11902688B2 (en) | 2020-11-10 | 2024-02-13 | Warner Bros. Entertainment Inc. | Perfless and cadenceless scanning and digitization of motion picture film |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA2827621C (en) | Image processing apparatus and image processing method | |
| TWI536801B (en) | 3d video format detection | |
| CN102761758A (en) | Depth map generation device and stereo image generation method | |
| CN106060520B (en) | A kind of display mode switching method and its device, intelligent terminal | |
| CN101180658A (en) | sense of depth | |
| RU2012101829A (en) | INSERTING THREE-DIMENSIONAL OBJECTS IN A STEREOSCOPIC IMAGE TO A RELATIVE DEPTH | |
| US20130070052A1 (en) | Video procesing device, system, video processing method, and video processing program capable of changing depth of stereoscopic video images | |
| WO2013108285A1 (en) | Image recording device, three-dimensional image reproduction device, image recording method, and three-dimensional image reproduction method | |
| CN104683787A (en) | Method and device for identifying video types, display equipment and video projecting method thereof | |
| CN101199210A (en) | Image processing apparatus | |
| CN103946871A (en) | Image processing device, image recognition device, image recognition method, and program | |
| US20130300767A1 (en) | Method and system for augmented reality | |
| US20130027396A1 (en) | Device and method for 2d to 3d conversion | |
| US11436788B2 (en) | File generation apparatus, image generation apparatus, file generation method, and storage medium | |
| EP2717247A2 (en) | Image processing apparatus and method for performing image rendering based on orientation of display | |
| CN108765485A (en) | The displaying of image, processing method and processing device | |
| CN103339658A (en) | Method, device and computer program product for three-dimensional stereoscopic display | |
| US9113153B2 (en) | Determining a stereo image from video | |
| JPWO2012120880A1 (en) | Stereoscopic image output apparatus and stereoscopic image output method | |
| CN102447863A (en) | Multi-view stereo video subtitle processing method | |
| KR100827133B1 (en) | Method and apparatus for determining 3D stereoscopic image in mobile communication terminal | |
| TWI825892B (en) | 3d format image detection method and electronic apparatus using the same method | |
| CN102595154A (en) | Image display system and method | |
| CN116546180B (en) | Naked eye suspension 3D video generation method, device, equipment and storage medium | |
| US20130038695A1 (en) | Playback apparatus, display apparatus, recording apparatus 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 | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181106 |