WO2017092346A1 - 图像处理方法及设备 - Google Patents

图像处理方法及设备 Download PDF

Info

Publication number
WO2017092346A1
WO2017092346A1 PCT/CN2016/089475 CN2016089475W WO2017092346A1 WO 2017092346 A1 WO2017092346 A1 WO 2017092346A1 CN 2016089475 W CN2016089475 W CN 2016089475W WO 2017092346 A1 WO2017092346 A1 WO 2017092346A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
preset
virtual
display feature
virtual data
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.)
Ceased
Application number
PCT/CN2016/089475
Other languages
English (en)
French (fr)
Inventor
黄波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/246,472 priority Critical patent/US20170161954A1/en
Publication of WO2017092346A1 publication Critical patent/WO2017092346A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • G06T19/006Mixed reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/60Creating or editing images; Combining images with text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4781Games
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/816Monomedia components thereof involving special video data, e.g 3D video
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8545Content authoring for generating interactive applications

Definitions

  • Embodiments of the present invention relate to the field of information technology, and in particular, to an image processing method and device.
  • the embodiment of the invention provides an image processing method and device, which are used to solve the problem that the image generated by superimposing the real scene data and the virtual data in the prior art has poor effect and the image processing precision is low.
  • the virtual data corresponding to the preset data display feature value is obtained from the preset storage location, where the preset storage location stores virtual data corresponding to different preset data display feature values respectively;
  • the real scene data is superimposed with the virtual data and the superimposed data is saved.
  • An obtaining unit configured to acquire a data display feature value corresponding to the real scene data
  • a superimposing unit configured to superimpose the real scene data and the virtual data
  • a saving unit configured to save the superimposed unit to perform superimposed data.
  • FIG. 1 is an image processing method according to an embodiment of the present invention
  • FIG. 3 is an image processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is another image processing apparatus according to an embodiment of the present invention.
  • the embodiment of the present invention provides an image processing method, which can be applied to a terminal device, such as a mobile phone, a computer, a personal computer, etc., as shown in FIG. 1 , the method includes:
  • the real-time data may be a real-time image acquired in real time.
  • the real-time data may be acquired by using a preset camera.
  • the data display feature value is used to identify a specific display position of the live view data.
  • the data display feature value may specifically be a gray value and/or a contrast value of the data display, which is not limited in the embodiment of the present invention. Since the gray value and/or the contrast value corresponding to different positions are also different, the specific position of the real scene data can be reflected by the gray value and/or the contrast value.
  • Each image data corresponds to one or a set of gray values and/or contrast values, respectively.
  • Step 102 Determine whether a similarity between the data display feature value and the preset data display feature value is less than or equal to a preset threshold.
  • the preset threshold may be configured according to actual requirements, which is not limited in the embodiment of the present invention. For example, when the precision of the superimposed data is high, the preset threshold may be configured to be relatively small. When the accuracy of the superimposed data is not high, the preset threshold may be configured to be relatively large. .
  • the preset storage location stores virtual data corresponding to different preset data display feature values. Since the display positions of the real scene data reflected by the different preset data display feature values are different, the corresponding virtual data is respectively configured for the display values of the different preset data, so that the positions of the virtual data and the real scene data do not overlap when the virtual data is superimposed. Guarantee the display effect of the superimposed data.
  • the virtual data can be calculated by generating data content in a smart device such as a 3D model, a picture, or a video.
  • the preset storage location may be divided into different layers, which may be different layers divided according to the hierarchical display manner of the system display framework of the smart Android device, for example, divided into different layers by Layer layering, when passing When the layer layering method is divided into three layers, they are Layer 1, Layer 2, and Layer 3.
  • the data attribute can be a file type attribute.
  • the file type attribute can be data of a multimedia file, for example, the video file is saved in Layer 1, and the file type attribute is data of the model file, for example, an icon, a 3D model, etc. are saved in Layer 2 in.
  • the photo icon, the other icon, the real scene data, and the virtual data are saved in different layers of the preset storage location, for example, the photo icon is saved in Layer 1 and the other icon is saved in Layer 2,
  • the virtual data is saved in Layer 3, and the real-life data is saved in Layer 4, and before the data superimposing operation, the virtual data is selectively acquired from the layer in which the virtual data is stored as the data for performing the superimposing operation, and the superimposed image can be improved.
  • the display effect improves the image processing accuracy.
  • the global screen capture function of the terminal device is used to obtain all the content data in the screen, and then all the content data is compared with the captured real-world data, and the embodiment of the present invention is based on the real scene view.
  • the data of the slice shows the feature value, and the virtual data matched with the real scene image is obtained from the preset storage position for superposition, which can improve the image display effect after the superposition and improve the image processing precision.
  • the embodiment of the present invention provides another image processing method, which can be applied to a terminal device, such as a mobile phone, a computer, a personal computer, etc., as shown in FIG. 2, the method includes:
  • the preset data display feature value is used to reflect the display position of the real scene data, and the display values of the real scene data reflected by the different preset data display feature values are different.
  • the virtual data can ensure that the position of the virtual data and the real-time data are not overlapped, and the display effect of the superimposed data is ensured.
  • the different preset data display feature values may specifically be gray value and/or contrast value of the data display. Since the gray value and/or the contrast value corresponding to different positions are also different, the specific position of the real scene data can be reflected by the gray value and/or the contrast value.
  • Each image data corresponds to one or a set of gray values and/or contrast values, respectively.
  • the data attribute may be a file category, for example, the multimedia file and the model file are respectively saved in different layers of the preset storage location.
  • the different layers of the preset storage location may be different layers divided according to the hierarchical display manner of the system display framework of the smart Android device, for example, layered into different layers by Layer layering, when layered by Layer When the mode is divided into three layers, they are Layer 1, Layer 2, and Layer 3.
  • data of a file type as a multimedia file such as a video file
  • a model file such as an icon, a 3D model, and the like
  • the photo icon, the other icon, the real scene data, and the virtual data are saved in different layers of the preset storage location, for example, the photo icon is saved in Layer 1 and the other icon is saved in Layer 2,
  • the virtual data is saved in Layer 3, and the real-life data is saved in Layer 4, and before the data superimposing operation, the virtual data is selectively acquired from the layer in which the virtual data is stored as the data for performing the superimposing operation, and the superimposed image can be improved.
  • the display effect improves the image processing accuracy.
  • the real-time data may be a real-time image acquired in real time, and the data display feature value is used to identify a specific display position of the real-world data.
  • the data display feature value may specifically be a gray value and/or a contrast value of the data display, which is not limited in the embodiment of the present invention. For example, when a shooting instruction is received, real-time data can be acquired by a preset camera.
  • the preset threshold may be configured according to actual requirements, which is not limited in the embodiment of the present invention. For example, when the precision of the superimposed data is high, the preset threshold may be configured to be relatively small. When the accuracy of the superimposed data is not high, the preset threshold may be configured to be relatively large. .
  • the superimposed data may be saved in a preset save path, so that the subsequent acquired data may be further processed and applied to improve the acquisition efficiency of the superimposed data. For example, when the superimposed data needs to be shared, the superimposed data can be directly obtained according to the preset save path, thereby improving data acquisition efficiency and image sharing efficiency.
  • the method may further include: if there is a plurality of virtual data, acquiring, from the plurality of virtual data, the virtuality with the highest similarity to the content of the real-world data data.
  • the real scene data displays a photo of a certain character currently in the snow scene.
  • the virtual data related to the scene and the snowing theme may be obtained from the plurality of virtual data as the real scene.
  • the data is superimposed on the virtual data, so that the display effect of the superimposed data can be further improved.
  • the method further includes: determining whether the content similarity between the virtual data and the real-world data is greater than or equal to a preset threshold; if less than the preset threshold, outputting prompt information,
  • the prompt message is used to confirm whether the data is superimposed.
  • the content similarity between the virtual data and the real scene data is less than a preset threshold, it indicates that the content of the virtual data and the real scene data that need to be superimposed at this time is low, and the user is prompted by outputting the prompt information.
  • the prompt information may be text information, audio information, video information, vibration information, and the like, which are not limited in the embodiment of the present invention.
  • the method may further include: detecting whether the sharing instruction corresponding to the data is received; if yes, acquiring the data from the storage path corresponding to the data and sharing.
  • the virtual data used in the superimposition operation in the embodiment of the present invention is the filtered data, before the data that is superimposed on the current data is shared, and the content that is not related to the real data is included in the superimposed data. Therefore, it is not necessary to adjust the superimposed data and directly share the data, thereby improving the sharing efficiency of the data.
  • Another image processing method provided by the embodiment of the present invention first obtains a data display feature value corresponding to the real scene data, and then determines whether the similarity between the data display feature value and the preset data display feature value is less than or equal to a preset. a threshold value, if yes, acquiring virtual data corresponding to the preset data display feature value from a preset storage location, where the preset storage location stores virtual data corresponding to different preset data display feature values, and finally The real-world data is superimposed with the virtual data and the superimposed data is saved.
  • the global screen capture function of the terminal device is used to obtain all the content data in the screen, and then all the content data is compared with the captured real-time data, and the embodiment of the present invention is based on the real-life picture.
  • the data shows the feature value, and the virtual image matching the real scene image is obtained from the preset storage location.
  • the data is superimposed to improve the image display effect after superimposition and improve the image processing accuracy.
  • an embodiment of the present invention provides an image processing apparatus.
  • the image processing apparatus includes: an obtaining unit 31, a determining unit 32, and a superimposing unit 33.
  • the unit 34 is saved.
  • the determining unit 32 is configured to determine whether the similarity between the data display feature value and the preset data display feature value is less than or equal to a preset threshold.
  • the acquiring unit 31 is further configured to: if less than or equal to the preset threshold, acquire virtual data corresponding to the preset data display feature value from the preset storage location, where the preset storage location stores different preset data. The virtual data corresponding to the feature values is displayed.
  • the superimposing unit 33 is configured to superimpose the real scene data and the virtual data.
  • the saving unit 34 is configured to save the superimposed data of the superimposing unit 33.
  • An image processing apparatus first obtains a data display feature value corresponding to real scene data, and then determines whether a similarity between the data display feature value and the preset data display feature value is less than or equal to a preset threshold. And if yes, acquiring virtual data corresponding to the preset data display feature value from the preset storage location, where the preset storage location stores virtual data corresponding to different preset data display feature values, and finally the real scene The data is superimposed with the virtual data and the superimposed data is saved.
  • the obtaining unit 41 is configured to obtain a data display feature value corresponding to the real scene data.
  • the determining unit 42 is configured to determine whether the similarity between the data display feature value and the preset data display feature value is less than or equal to a preset threshold.
  • the acquiring unit 41 is further configured to: if less than or equal to the preset threshold, acquire virtual data corresponding to the preset data display feature value from the preset storage location, where the preset storage location stores different preset data. The virtual data corresponding to the feature values is displayed.
  • the superimposing unit 43 is configured to superimpose the real scene data and the virtual data.
  • the saving unit 44 is configured to save the superimposed data of the superimposing unit 43.
  • the device further includes: a configuration unit 44;
  • the configuration unit 45 is configured to configure virtual data corresponding to different data display feature values.
  • the superimposing unit 43 is specifically configured to superimpose the real scene data and the virtual data according to an arrangement order of the real scene data and the preset layer in which the virtual data is located.
  • the acquiring unit 41 is further configured to: if there is a plurality of virtual data, obtain virtual data with the highest similarity to the content of the real-world data from the plurality of virtual data.
  • the device further includes an output unit 46.
  • the determining unit 42 is further configured to determine whether the content similarity between the virtual data and the real-world data is greater than or equal to a preset threshold.
  • the output unit 46 is configured to output prompt information if it is less than the preset threshold, and the prompt information is used to confirm whether data overlay is performed.
  • the sharing unit 48 is configured to: when receiving the sharing instruction corresponding to the data, acquire the data from the storage path corresponding to the data and share the data.
  • Another image processing apparatus provided by the embodiment of the present invention first acquires a data display feature value corresponding to the real scene data, and then determines the data display feature value and the preset data display feature value. Whether the similarity between the two is less than or equal to the preset threshold, and if yes, acquiring virtual data corresponding to the preset data display feature value from the preset storage location, where the preset storage location stores different preset data display feature values The corresponding virtual data is respectively superimposed, and the real scene data is superimposed with the virtual data and the superimposed data is saved.
  • the global screen capture function of the terminal device is used to obtain all the content data in the screen, and then all the content data is compared with the captured real-time data, and the embodiment of the present invention is based on the real-life picture.
  • the data display feature value, and the virtual data matching the real scene picture is obtained from the preset storage position for superimposition, which can improve the image display effect after the superposition and improve the image processing precision.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种图像处理方法及设备,涉及视频技术领域,可以提高叠加后的图像显示效果,提高图像处理精度。所述方法包括:首先获取实景数据对应的数据显示特征值,然后判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值,若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据,最后将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。本申请适用于实景数据与虚拟数据进行叠加显示。

Description

图像处理方法及设备
本申请基于申请号为2015108861342、申请日为2015年12月4日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明实施例涉及信息技术领域,尤其涉及图像处理方法及设备。
背景技术
随着信息技术的不断发展,终端设备的功能也越来越强大。用户可以通过终端设备进行当前实景的拍摄,而随着终端设备的不断发展,终端设备还可以生成各种虚拟内容,其中,虚拟内容可以为三维模型、图片、视频等终端设备通过计算生成的内容。因此,如何将用户拍摄的图片与虚拟内容进行结合生成效果更好的图像是需要解决的问题。
目前,在进行虚拟内容与实景数据叠加时,通常通过终端设备的全局截屏功能,获取屏幕内的所有内容数据,然后将内容数据与拍摄的实景图片结合,从而完成实景图片与虚拟内容数据结合的操作。然而发明人在实现本发明的过程中发现:通过全局截屏功能获取虚拟内容数据时,会获取到除虚拟数据外当前屏幕中显示的应用图标,功能按钮图标等其他数据,造成叠加后生成的图像的显示效果较差,图像处理精度较低。
发明内容
本发明实施例提供一种图像处理方法及设备,用以解决现有技术中实景数据与虚拟数据叠加后生成的图像的效果较差,图像处理精度较低的问题。
本发明实施例提供一种图像处理方法,包括:
获取实景数据对应的数据显示特征值;
判断所述数据显示特征值与预置数据显示特征值之间的相似度是否 小于或等于预设阈值;
若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据;
将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。
本发明实施例提供一种图像处理装置,包括:
获取单元,用于获取实景数据对应的数据显示特征值;
判断单元,用于判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值;
所述获取单元,还用于若小于或等于预设阈值,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据
叠加单元,用于将所述实景数据与所述虚拟数据进行叠加;
保存单元,用于保存所述叠加单元进行叠加后的数据。
本发明实施例提供的图像处理方法及设备,首先获取实景数据对应的数据显示特征值,然后判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值,若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据,最后将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。与目前在进行虚拟内容与实景数据叠加时,通常通过终端设备的全局截屏功能,获取屏幕内的所有内容数据,然后将所有内容数据与拍摄的实景数据结合相比,本发明实施例根据实景图片的数据显示特征值,从预置存储位置中获取与实景图片相匹配的虚拟数据进行叠加,可以提高叠加后的图像显示效果,提高图像处理精度。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附 图。
图1为本发明实施例提供的一种图像处理方法;
图2为本发明实施例提供的另一种图像处理方法;
图3为本发明实施例提供的一种图像处理装置;
图4为本发明实施例提供的另一种图像处理装置。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种图像处理方法,可以应用于终端设备,例如,手机、计算机、个人电脑等,如图1所示,所述方法包括:
101、获取实景数据对应的数据显示特征值。
其中,实景数据可以为当前实时获取的现实图像,例如,当接收到拍摄指令时,可以通过预置摄像头获取实景数据。所述数据显示特征值用于标识实景数据具体的显示位置。数据显示特征值具体可以为数据显示的灰度值和/或对比度值,本发明实施例不做限定。由于不同位置对应的灰度值和/或对比度值也不同,因此通过灰度值和/或对比度值可以反映出实景数据的具体位置。每一个图像数据分别对应一个或者一组灰度值和/或对比度值。
102、判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值。
其中,预设阈值可以根据实际需求进行配置,本发明实施例不做限定。例如,当对叠加后的数据的精度要求较高时,可以将预设阈值配置的相对小一些,当对叠加后的数据的精度要求不高时,则可以将预设阈值配置的相对大一些。
103、若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据。
其中,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据。由于不同的预置数据显示特征值所反映的实景数据显示位置不同,因此,为不同预置数据显示特征值分别配置对应的虚拟数据,可以保证虚拟数据与实景数据叠加时位置不会出现重叠,保证叠加后数据的显示效果。虚拟数据可以为3维模型、图片、视频等智能设备中通过计算生成的数据内容。所述预置存储位置可以划分为不同的分层,具体可以为按照智能安卓设备的系统显示框架分层方式划分的不同分层,例如,通过Layer分层的方式划分为不同分层,当通过Layer分层的方式划分为三层时,分别为Layer1、Layer2、Layer3。数据属性可以为文件类型属性,例如,可以将文件类型属性为多媒体文件的数据,例如,视频文件保存在Layer1中,将文件类型属性为模型文件的数据,例如,图标、3D模型等保存在Layer2中。
对于本发明实施例,通过将拍照图标、其他图标、实景数据、虚拟数据保存在预置存储位置的不同分层中,例如,将拍照图标保存在Layer1中,将其他图标保存在Layer2中,将虚拟数据保存在Layer3中,将实景数据保存在Layer4中,并且在进行数据叠加操作前,从保存有虚拟数据的分层中有选择的获取虚拟数据作为进行叠加操作的数据,可以提高叠加后图像的显示效果,提高图像处理精度。
104、将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。
对于本发明实施例,可以将叠加后的数据保存在预置保存路径中,以便后续需要对叠加后的数据进行进一步处理和应用时,提升叠加后的数据的获取效率。
本发明实施例提供的一种图像处理方法,首先获取实景数据对应的数据显示特征值,然后判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值,若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据,最后将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。与目前在进行虚拟内容与实景数据叠加时,通常通过终端设备的全局截屏功能,获取屏幕内的所有内容数据,然后将所有内容数据与拍摄的实景数据结合相比,本发明实施例根据实景图 片的数据显示特征值,从预置存储位置中获取与实景图片相匹配的虚拟数据进行叠加,可以提高叠加后的图像显示效果,提高图像处理精度。
本发明实施例提供了另一种图像处理方法,可以应用于终端设备,例如,手机、计算机、个人电脑等,如图2所示,所述方法包括:
201、配置不同预置数据显示特征值分别对应的虚拟数据。
其中,所述预置数据显示特征值用于反映实景数据的显示位置,由于不同的预置数据显示特征值所反映的实景数据显示位置不同,因此,为不同预置数据显示特征值分别配置对应的虚拟数据,可以保证虚拟数据与实景数据叠加时位置不会出现重叠,保证叠加后数据的显示效果。不同预置数据显示特征值具体可以为数据显示的灰度值和/或对比度值。由于不同位置对应的灰度值和/或对比度值也不同,因此通过灰度值和/或对比度值可以反映出实景数据的具体位置。每一个图像数据分别对应一个或者一组灰度值和/或对比度值。
202、将不同数据属性的虚拟数据和实时获取的实景数据分别保存在所述预置存储位置的不同分层中,将不同虚拟数据对应的数据显示特征值分别保存在对应的虚拟数据所在的分层中。
其中,数据属性可以为文件类别,例如,将多媒体文件和模型文件分别保存在预置存储位置的不同分层中。所述预置存储位置的不同分层具体可以为按照智能安卓设备的系统显示框架分层方式划分的不同分层,例如,通过Layer分层的方式划分为不同分层,当通过Layer分层的方式划分为三层时,分别为Layer1、Layer2、Layer3。例如,将文件类别为多媒体文件的数据,如视频文件保存在Layer1中,将文件类别为模型文件的数据,如图标、3D模型等保存在Layer2中。
对于本发明实施例,通过将拍照图标、其他图标、实景数据、虚拟数据保存在预置存储位置的不同分层中,例如,将拍照图标保存在Layer1中,将其他图标保存在Layer2中,将虚拟数据保存在Layer3中,将实景数据保存在Layer4中,并且在进行数据叠加操作前,从保存有虚拟数据的分层中有选择的获取虚拟数据作为进行叠加操作的数据,可以提高叠加后图像的显示效果,提高图像处理精度。
203、获取实景数据对应的数据显示特征值。
其中,实景数据可以为当前实时获取的现实图像,所述数据显示特征值用于标识实景数据具体的显示位置。数据显示特征值具体可以为数据显示的灰度值和/或对比度值,本发明实施例不做限定。例如,当接收到拍摄指令时,可以通过预置摄像头获取实景数据。
204、判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值。
其中,预设阈值可以根据实际需求进行配置,本发明实施例不做限定。例如,当对叠加后的数据的精度要求较高时,可以将预设阈值配置的相对小一些,当对叠加后的数据的精度要求不高时,则可以将预设阈值配置的相对大一些。
205、若是,从预置存储位置的不同分层中分别获取与所述预置数据显示特征值对应的虚拟数据。
对于本发明实施例,由于不同的预置数据显示特征值所反映的实景数据显示位置不同,因此,从预置存储位置的不同分层中分别获取与所述预置数据显示特征值对应的虚拟数据,可以保证获取的虚拟数据与实景数据叠加时位置不会出现重叠,保证叠加后数据的显示效果。
206、将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。
其中,可以将叠加后的数据保存在预置保存路径中,以便后续需要对叠加后的数据进行进一步处理和应用时,提升叠加后的数据的获取效率。例如,当需要对叠加后的数据进行分享时,直接可以根据预置保存路径获取叠加后的数据,从而可以提高数据的获取效率以及图片的分享效率。
对于本发明实施例,所述将所述实景数据与所述虚拟数据进行叠加具体可以包括:根据所述实景数据和所述虚拟数据所在预置分层的排列顺序,将所述实景数据与所述虚拟数据进行叠加。由于不同分层对应的显示优先级不同,因此按照预置分层的排列顺序进行实景数据与虚拟数据的叠加,可以进一步提升叠加后数据的显示效果。例如,实景数据位于Layer3,虚拟数据中的视频位于Layer1、虚拟数据中的3D模型位于Layer2,则按照视频、3D模型、实景数据的顺序显示叠加后的数据。
对于本发明实施例,步骤205之前还可以包括:若存在多个虚拟数据,则从所述多个虚拟数据中获取与所述实景数据的内容相似度最高的虚拟 数据。通过从所述多个虚拟数据中获取与所述实景数据的内容相似度最高的虚拟数据,作为进行叠加的虚拟数据,可以进一步提升叠加后数据的显示效果和图像处理精度。
例如,实景数据中显示的是当前在雪景下某一个人物的照片,当存在多个虚拟数据时,可以从所述多个虚拟数据中获取包含的场景与下雪主题相关的虚拟数据作为与实景数据进行叠加的虚拟数据,从而可以进一步提升叠加后数据的显示效果。
对于本发明实施例,步骤205之前还可以包括:判断所述虚拟数据与所述实景数据的内容相似度是否大于或等于预设阈值;若小于所述预设阈值,则输出提示信息,所述提示信息用于确认是否进行数据叠加。在本发明实施例中,虚拟数据与所述实景数据的内容相似度小于预设阈值时,说明此时需要叠加的虚拟数据与实景数据的内容相关度较低,此时通过输出提示信息提示用户是否进行叠加操作,可以提升用户体验,避免进行不必要的叠加操作。其中,所述提示信息可以为文本信息、音频信息、视频信息、振动信息等,本发明实施例不做限定。
进一步地,步骤205之后还可以包括:检测是否接收到所述数据对应的共享指令;若是,则从所述数据对应的保存路径获取所述数据并进行共享。与目前进行叠加后的数据进行共享前,需要对叠加后的数据中包含的与实景数据不相关的内容进行调整过滤相比,由于本发明实施例中叠加操作采用的虚拟数据为筛选后的数据,因此不需要对叠加后的数据进行调整,直接进行共享,从而可以提高数据的共享效率。
本发明实施例提供的另一种图像处理方法,首先获取实景数据对应的数据显示特征值,然后判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值,若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据,最后将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。与目前在进行虚拟内容与实景数据叠加时,通常通过终端设备的全局截屏功能,获取屏幕内的所有内容数据,然后将所有内容数据与拍摄的实景数据结合相比,本发明实施例根据实景图片的数据显示特征值,从预置存储位置中获取与实景图片相匹配的虚拟 数据进行叠加,可以提高叠加后的图像显示效果,提高图像处理精度。
进一步地,作为图1所述方法的具体实现,本发明实施例提供了一种图像处理装置,如图3所示,所述图像处理装置包括:获取单元31、判断单元32、叠加单元33、保存单元34。
获取单元31,用于获取实景数据对应的数据显示特征值。
判断单元32,用于判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值。
所述获取单元31,还用于若小于或等于预设阈值,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据。
叠加单元33,用于将所述实景数据与所述虚拟数据进行叠加。
保存单元34,用于保存所述叠加单元33进行叠加后的数据。
需要说明的是,本发明实施例提供的图像处理装置中所涉及各功能单元的其他相应描述,可以参照图1所示方法中的对应描述,在此不再赘述,
本发明实施例提供的一种图像处理装置,首先获取实景数据对应的数据显示特征值,然后判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值,若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据,最后将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。与目前在进行虚拟内容与实景数据叠加时,通常通过终端设备的全局截屏功能,获取屏幕内的所有内容数据,然后将所有内容数据与拍摄的实景数据结合相比,本发明实施例根据实景图片的数据显示特征值,从预置存储位置中获取与实景图片相匹配的虚拟数据进行叠加,可以提高叠加后的图像显示效果,提高图像处理精度。
进一步地,作为图2所述方法的具体实现,本发明实施例提供了另一种图像处理装置,如图4所示,所述图像处理装置包括:获取单元41、判断单元42、叠加单元43、保存单元44。
获取单元41,用于获取实景数据对应的数据显示特征值。
判断单元42,用于判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值。
所述获取单元41,还用于若小于或等于预设阈值,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据。
叠加单元43,用于将所述实景数据与所述虚拟数据进行叠加。
保存单元44,用于保存所述叠加单元43进行叠加后的数据。
进一步地,所述装置还包括:配置单元44;
所述配置单元45,用于配置不同数据显示特征值分别对应的虚拟数据。
所述保存单元44,还用于将不同数据属性的虚拟数据和实时获取的实景数据分别保存在所述预置存储位置的不同分层中,将不同虚拟数据对应的数据显示特征值分别保存在对应的虚拟数据所在的分层中。
所述获取单元41,具体用于从预置存储位置的不同分层中分别获取与所述预置数据显示特征值对应的虚拟数据。
所述叠加单元43,具体用于根据所述实景数据和所述虚拟数据所在预置分层的排列顺序,将所述实景数据与所述虚拟数据进行叠加。
所述获取单元41,还用于若存在多个虚拟数据,则从所述多个虚拟数据中获取与所述实景数据的内容相似度最高的虚拟数据。
进一步地,所述装置还包括:输出单元46。
所述判断单元42,还用于判断所述虚拟数据与所述实景数据的内容相似度是否大于或等于预设阈值。
所述输出单元46,用于若小于所述预设阈值,则输出提示信息,所述提示信息用于确认是否进行数据叠加。
进一步地,所述装置还包括:
检测单元47,用于检测是否接收到所述数据对应的共享指令。
共享单元48,用于若接收到所述数据对应的共享指令,则从所述数据对应的保存路径获取所述数据并进行共享。
需要说明的是,本发明实施例提供的图像处理装置中所涉及各功能单元的其他相应描述,可以参照图2所示方法中的对应描述,在此不再赘述,
本发明实施例提供的另一种图像处理装置,首先获取实景数据对应的数据显示特征值,然后判断所述数据显示特征值与预置数据显示特征值之 间的相似度是否小于或等于预设阈值,若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据,最后将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。与目前在进行虚拟内容与实景数据叠加时,通常通过终端设备的全局截屏功能,获取屏幕内的所有内容数据,然后将所有内容数据与拍摄的实景数据结合相比,本发明实施例根据实景图片的数据显示特征值,从预置存储位置中获取与实景图片相匹配的虚拟数据进行叠加,可以提高叠加后的图像显示效果,提高图像处理精度。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (12)

  1. 一种图像处理方法,其特征在于,包括:
    获取实景数据对应的数据显示特征值;
    判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值;
    若是,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据;
    将所述实景数据与所述虚拟数据进行叠加并保存叠加后的数据。
  2. 根据权利要求1所述的图像处理方法,其特征在于,所述获取实景数据之前,所述方法还包括:
    配置不同预置数据显示特征值分别对应的虚拟数据;
    将不同数据属性的虚拟数据和实时获取的实景数据分别保存在所述预置存储位置的不同分层中,将不同虚拟数据对应的数据显示特征值分别保存在对应的虚拟数据所在的分层中;
    所述从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据包括:
    从预置存储位置的不同分层中分别获取与所述预置数据显示特征值对应的虚拟数据。
  3. 根据权利要求2所述的图像处理方法,其特征在于,将所述实景数据与所述虚拟数据进行叠加包括:
    根据所述实景数据和所述虚拟数据所在分层的排列顺序,将所述实景数据与所述虚拟数据进行叠加。
  4. 根据权利要求1所述的图像处理方法,其特征在于,所述将所述实景数据与所述虚拟数据进行叠加之前,所述方法还包括:
    若存在多个虚拟数据,则从所述多个虚拟数据中获取与所述实景数据内容相似度最高的虚拟数据。
  5. 根据权利要求1所述的图像处理方法,其特征在于,所述将所述实景数据与所述虚拟数据进行叠加之前,所述方法还包括:
    判断所述虚拟数据与所述实景数据的内容相似度是否大于或等于预设阈值;
    若小于所述预设阈值,则输出提示信息,所述提示信息用于确认是否进行数据叠加。
  6. 根据权利要求1所述的图像处理方法,其特征在于,所述方法还包括:
    检测是否接收到所述数据对应的共享指令;
    若是,则从所述数据对应的保存路径获取所述数据并进行共享。
  7. 一种图像处理装置,其特征在于,包括:
    获取单元,用于获取实景数据对应的数据显示特征值;
    判断单元,用于判断所述数据显示特征值与预置数据显示特征值之间的相似度是否小于或等于预设阈值;
    所述获取单元,还用于若小于或等于预设阈值,则从预置存储位置获取与所述预置数据显示特征值对应的虚拟数据,所述预置存储位置保存有不同预置数据显示特征值分别对应的虚拟数据;
    叠加单元,用于将所述实景数据与所述虚拟数据进行叠加;
    保存单元,用于保存所述叠加单元进行叠加后的数据。
  8. 根据权利要求7所述的图像处理装置,其特征在于,所述装置还包括:配置单元;
    所述配置单元,用于配置不同数据显示特征值分别对应的虚拟数据;
    所述保存单元,还用于将不同数据属性的虚拟数据和实时获取的实景数据分别保存在所述预置存储位置的不同分层中,将不同虚拟数据对应的数据显示特征值分别保存在对应的虚拟数据所在的分层中;
    所述获取单元,具体用于从预置存储位置的不同分层中分别获取与所述预置数据显示特征值对应的虚拟数据。
  9. 根据权利要求8所述的图像处理装置,其特征在于,
    所述叠加单元,具体用于根据所述实景数据和所述虚拟数据所在预置分层的排列顺序,将所述实景数据与所述虚拟数据进行叠加。
  10. 根据权利要求7所述的图像处理装置,其特征在于,
    所述获取单元,还用于若存在多个虚拟数据,则从所述多个虚拟数据中获取与所述实景数据内容相似度最高的虚拟数据。
  11. 根据权利要求7所述的图像处理装置,其特征在于,所述装置还包括:输出单元;
    所述判断单元,还用于判断所述虚拟数据与所述实景数据的内容相似度是否大于或等于预设阈值;
    所述输出单元,用于若小于所述预设阈值,则输出提示信息,所述提示信息用于确认是否进行数据叠加。
  12. 根据权利要求7所述的图像处理装置,其特征在于,所述装置还包括:
    检测单元,用于检测是否接收到所述数据对应的共享指令;
    共享单元,用于若接收到所述数据对应的共享指令,则从所述数据对应的保存路径获取所述数据并进行共享。
PCT/CN2016/089475 2015-12-04 2016-07-08 图像处理方法及设备 Ceased WO2017092346A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/246,472 US20170161954A1 (en) 2015-12-04 2016-08-24 Method and Electronic Device for Processing Image

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510886134.2A CN105872408A (zh) 2015-12-04 2015-12-04 图像处理方法及设备
CN201510886134.2 2015-12-04

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/246,472 Continuation US20170161954A1 (en) 2015-12-04 2016-08-24 Method and Electronic Device for Processing Image

Publications (1)

Publication Number Publication Date
WO2017092346A1 true WO2017092346A1 (zh) 2017-06-08

Family

ID=56624358

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089475 Ceased WO2017092346A1 (zh) 2015-12-04 2016-07-08 图像处理方法及设备

Country Status (3)

Country Link
US (1) US20170161954A1 (zh)
CN (1) CN105872408A (zh)
WO (1) WO2017092346A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411277A (zh) * 2001-09-26 2003-04-16 Lg电子株式会社 视频通信系统
CN1729934A (zh) * 2005-07-21 2006-02-08 高春平 交互式多媒体生物反馈装置
CN101753851A (zh) * 2008-12-17 2010-06-23 华为终端有限公司 背景更换的方法、虚拟场景合成的方法及相关系统和设备
US20100238325A1 (en) * 2009-03-19 2010-09-23 Casio Computer Co., Ltd. Image processor and recording medium
US20130279799A1 (en) * 2010-12-03 2013-10-24 Sharp Kabushiki Kaisha Image processing device, image processing method, and image processing program
CN104951440A (zh) * 2014-03-24 2015-09-30 联想(北京)有限公司 一种图像处理方法及电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8933889B2 (en) * 2005-07-29 2015-01-13 Nokia Corporation Method and device for augmented reality message hiding and revealing
CN101183450A (zh) * 2006-11-14 2008-05-21 朱滨 虚拟服装真人试穿系统及其构建方法
JP4870546B2 (ja) * 2006-12-27 2012-02-08 株式会社岩根研究所 レイヤー生成・選択機能を備えたcvタグ映像表示装置
CN101794189A (zh) * 2009-09-22 2010-08-04 俞长根 图像显示方法
US9652046B2 (en) * 2011-01-06 2017-05-16 David ELMEKIES Augmented reality system
CN203311825U (zh) * 2012-08-03 2013-11-27 甲壳虫(上海)网络科技有限公司 动态显示图像的电子设备
CN103164809A (zh) * 2013-04-03 2013-06-19 陈东坡 产品使用效果显示方法和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411277A (zh) * 2001-09-26 2003-04-16 Lg电子株式会社 视频通信系统
CN1729934A (zh) * 2005-07-21 2006-02-08 高春平 交互式多媒体生物反馈装置
CN101753851A (zh) * 2008-12-17 2010-06-23 华为终端有限公司 背景更换的方法、虚拟场景合成的方法及相关系统和设备
US20100238325A1 (en) * 2009-03-19 2010-09-23 Casio Computer Co., Ltd. Image processor and recording medium
US20130279799A1 (en) * 2010-12-03 2013-10-24 Sharp Kabushiki Kaisha Image processing device, image processing method, and image processing program
CN104951440A (zh) * 2014-03-24 2015-09-30 联想(北京)有限公司 一种图像处理方法及电子设备

Also Published As

Publication number Publication date
CN105872408A (zh) 2016-08-17
US20170161954A1 (en) 2017-06-08

Similar Documents

Publication Publication Date Title
US10609332B1 (en) Video conferencing supporting a composite video stream
US11482192B2 (en) Automated object selection and placement for augmented reality
CN105701863B (zh) 图像处理的方法和装置
US9361731B2 (en) Method and apparatus for displaying video on 3D map
US8644467B2 (en) Video conferencing system, method, and computer program storage device
CN109582122B (zh) 增强现实信息提供方法、装置及电子设备
JP2020507136A (ja) Vrオブジェクトの合成方法、装置、プログラム及び記録媒体
WO2018119786A1 (zh) 一种显示数据处理方法及装置
CN104680480A (zh) 一种图像处理的方法及装置
JP2018026064A (ja) 画像処理装置、画像処理方法、システム
CN109584358A (zh) 一种三维人脸重建方法及装置、设备和存储介质
CN117201883A (zh) 用于图像编辑的方法、装置、设备和存储介质
WO2018000619A1 (zh) 一种数据展示方法、装置、电子设备与虚拟现实设备
US20210166485A1 (en) Method and apparatus for generating augmented reality images
JP7101269B2 (ja) ポーズ補正
CN106200918A (zh) 一种基于ar的信息显示方法、装置和移动终端
WO2019114328A1 (zh) 一种基于增强现实的视频处理方法及其装置
CN105512136A (zh) 一种基于图层的处理方法及装置
US20220207848A1 (en) Method and apparatus for generating three dimensional images
CN105791390A (zh) 数据传输方法、装置及系统
CN116126182A (zh) 特效处理方法、装置、电子设备及存储介质
US20250069190A1 (en) Iterative background generation for video streams
CN105930535A (zh) 自适应图像呈现系统和自适应图像呈现方法
US11127218B2 (en) Method and apparatus for creating augmented reality content
CN112634339B (zh) 商品对象信息展示方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16869659

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16869659

Country of ref document: EP

Kind code of ref document: A1