CN107729099A - Background method of adjustment and its system - Google Patents
Background method of adjustment and its system Download PDFInfo
- Publication number
- CN107729099A CN107729099A CN201710878048.6A CN201710878048A CN107729099A CN 107729099 A CN107729099 A CN 107729099A CN 201710878048 A CN201710878048 A CN 201710878048A CN 107729099 A CN107729099 A CN 107729099A
- Authority
- CN
- China
- Prior art keywords
- background
- feature information
- color
- target
- main color
- 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
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000012545 processing Methods 0.000 claims description 77
- 230000008569 process Effects 0.000 claims description 10
- 230000000873 masking effect Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000003313 weakening effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Vision & Pattern Recognition (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开提供了一种背景调整方法,其中,该方法包括:获取以目标背景为背景进行展示的对象的对象特征信息,其中,对象特征信息用于描述对象的色彩特征;获取目标背景的背景特征信息,其中,背景特征信息用于描述目标背景的色彩特征;判断对象特征信息与背景特征信息之间的差异度是否满足预设条件;以及若判断出对象特征信息与背景特征信息之间的差异度满足预设条件,则对目标背景进行调整或者提示。本公开还提供了一种背景调整系统。
The present disclosure provides a background adjustment method, wherein the method includes: acquiring object feature information of an object displayed with the target background as the background, wherein the object feature information is used to describe the color feature of the object; acquiring the background feature of the target background Information, wherein the background feature information is used to describe the color features of the target background; to determine whether the difference between the object feature information and the background feature information meets the preset conditions; and if the difference between the object feature information and the background feature information is judged If the degree meets the preset condition, the target background is adjusted or prompted. The present disclosure also provides a background adjustment system.
Description
技术领域technical field
本公开涉及一种背景调整方法及其系统。The present disclosure relates to a background adjustment method and system thereof.
背景技术Background technique
随着互联网技术的发展,在终端设备的桌面上设置壁纸的需求越来越普遍。With the development of Internet technology, it is more and more common to set a wallpaper on a desktop of a terminal device.
在实现本公开实施例的过程中,发明人发现相关技术至少存在以下缺陷:由于桌面上摆放的图标较多,导致图标和壁纸相互影响,达不到预期的呈现效果。In the process of implementing the embodiments of the present disclosure, the inventors found that the related technology has at least the following defects: because there are many icons placed on the desktop, the icons and the wallpaper interact with each other, and the expected presentation effect cannot be achieved.
发明内容Contents of the invention
本公开的一个方面提供了一种背景调整方法,包括:获取以目标背景为背景进行展示的对象的对象特征信息,其中,上述对象特征信息用于描述上述对象的色彩特征;获取上述目标背景的背景特征信息,其中,上述背景特征信息用于描述上述目标背景的色彩特征;判断上述对象特征信息与上述背景特征信息之间的差异度是否满足预设条件;以及若判断出上述对象特征信息与上述背景特征信息之间的上述差异度满足上述预设条件,则对上述目标背景进行调整或者提示。One aspect of the present disclosure provides a background adjustment method, including: acquiring object feature information of an object displayed with the target background as the background, wherein the above object feature information is used to describe the color feature of the above object; acquiring the above target background Background feature information, wherein the above-mentioned background feature information is used to describe the color features of the above-mentioned target background; judge whether the difference between the above-mentioned object feature information and the above-mentioned background feature information satisfies the preset condition; and if it is determined that the above-mentioned object feature information and If the degree of difference between the above-mentioned background feature information satisfies the above-mentioned preset condition, then the above-mentioned target background is adjusted or prompted.
可选地,获取以目标背景为背景进行展示的对象的对象特征信息包括:获取上述对象的主色的特征信息;以及获取上述目标背景的背景特征信息包括:获取上述目标背景的主色的特征信息。Optionally, acquiring the object feature information of the object displayed with the target background as the background includes: acquiring feature information of the main color of the above-mentioned object; and acquiring the background feature information of the above-mentioned target background includes: acquiring the feature of the main color of the above-mentioned target background information.
可选地,判断上述对象特征信息与上述背景特征信息之间的差异度是否满足预设条件包括:计算对象主色与背景主色之间的颜色距离,其中,上述对象主色包括与上述对象的主色的特征信息对应的主色,上述背景主色包括与上述目标背景的主色的特征信息对应的主色;判断上述颜色距离是否小于颜色距离阈值;以及若判断出上述颜色距离小于上述颜色距离阈值,则确定上述对象特征信息与上述背景特征信息之间的上述差异度满足上述预设条件。Optionally, judging whether the degree of difference between the above-mentioned object feature information and the above-mentioned background feature information satisfies a preset condition includes: calculating the color distance between the main color of the object and the main color of the background, wherein the main color of the object includes The main color corresponding to the feature information of the main color of the above-mentioned background main color includes the main color corresponding to the feature information of the main color of the above-mentioned target background; judge whether the above-mentioned color distance is less than the color distance threshold; and if it is judged that the above-mentioned color distance is less than the above-mentioned If the color distance threshold is used, it is determined that the degree of difference between the object feature information and the background feature information satisfies the preset condition.
可选地,获取上述目标背景的背景特征信息包括获取上述目标背景中未被上述对象遮挡住的部分的背景特征信息。Optionally, acquiring background feature information of the target background includes acquiring background feature information of a part of the target background that is not blocked by the object.
可选地,对上述目标背景进行调整包括以下之一,对整个上述目标背景进行蒙版处理和/或渐变处理和/或模糊处理;根据上述对象的对象特征信息,对上述目标背景中被上述对象遮挡住的部分进行处理;对上述目标背景中未被上述对象遮挡住的部分进行上述蒙版处理和/或上述渐变处理和/或上述模糊处理;对上述目标背景中未被上述对象遮挡住的部分中的预设区域进行上述蒙版处理和/或上述渐变处理和/或上述模糊处理;以及根据上述对象特征信息推荐相应的替代背景,以替换上述目标背景来作为展示上述对象的背景,其中,上述替代背景的背景特征信息与上述对象特征信息之间的差异度满足上述预设条件。Optionally, adjusting the above-mentioned target background includes one of the following, performing mask processing and/or gradient processing and/or blurring processing on the entire above-mentioned target background; Process the part covered by the object; perform the above-mentioned mask processing and/or the above-mentioned gradient processing and/or the above-mentioned blur processing on the part of the above-mentioned target background that is not covered by the above-mentioned object; performing the above-mentioned mask processing and/or the above-mentioned gradient processing and/or the above-mentioned blurring processing on the preset area in the part; and recommending a corresponding replacement background according to the above-mentioned object feature information, so as to replace the above-mentioned target background as the background for displaying the above-mentioned object, Wherein, the degree of difference between the background feature information of the substitute background and the object feature information satisfies the above preset condition.
本公开的另一个方面提供了一种背景调整系统,该背景调整系统包括第一获取模块,用于获取以目标背景为背景进行展示的对象的对象特征信息,其中,上述对象特征信息用于描述上述对象的色彩特征;第二获取模块,用于获取上述目标背景的背景特征信息,其中,上述背景特征信息用于描述上述目标背景的色彩特征;判断模块,用于判断上述对象特征信息与上述背景特征信息之间的差异度是否满足预设条件;以及调整模块,用于在判断出上述对象特征信息与上述背景特征信息之间的上述差异度满足上述预设条件的情况下,对上述目标背景进行调整或者提示。Another aspect of the present disclosure provides a background adjustment system, the background adjustment system includes a first acquisition module, configured to acquire object feature information of an object displayed with the target background as the background, wherein the above object feature information is used to describe The color feature of the above-mentioned object; the second acquisition module is used to obtain the background feature information of the above-mentioned target background, wherein the above-mentioned background feature information is used to describe the color feature of the above-mentioned target background; the judgment module is used to judge the above-mentioned object feature information and the above-mentioned Whether the degree of difference between the background feature information satisfies the preset condition; and the adjustment module is used to adjust the target The background is adjusted or prompted.
可选地,上述第一获取模块,还用于获取上述对象的主色的特征信息;以及上述第二获取模块,还用于获取上述目标背景的主色的特征信息。Optionally, the first obtaining module is further configured to obtain characteristic information of the dominant color of the object; and the second obtaining module is further configured to obtain characteristic information of the dominant color of the target background.
可选地,上述判断模块包括计算单元,用于计算对象主色与背景主色之间的颜色距离,其中,上述对象主色包括与上述对象的主色的特征信息对应的主色,上述背景主色包括与上述目标背景的主色的特征信息对应的主色;判断单元,用于判断上述颜色距离是否小于颜色距离阈值;以及确定单元,用于在判断出上述颜色距离小于上述颜色距离阈值的情况下,确定上述对象特征信息与上述背景特征信息之间的上述差异度满足上述预设条件。Optionally, the judgment module includes a calculation unit, configured to calculate the color distance between the main color of the object and the main color of the background, wherein the main color of the object includes a main color corresponding to the feature information of the main color of the object, and the background The main color includes the main color corresponding to the characteristic information of the main color of the above-mentioned target background; the judging unit is used to judge whether the above-mentioned color distance is less than the color distance threshold; and the determination unit is used to judge that the above-mentioned color distance is less than the above-mentioned color distance threshold In the case of , it is determined that the degree of difference between the object feature information and the background feature information satisfies the preset condition.
可选地,上述第二获取模块,还用于获取上述目标背景中未被上述对象遮挡住的部分的背景特征信息。Optionally, the above-mentioned second obtaining module is further configured to obtain background feature information of a part of the above-mentioned target background that is not blocked by the above-mentioned object.
可选地,上述调整模块包括以下之一,第一处理单元,用于对整个上述目标背景进行蒙版处理和/或渐变处理和/或模糊处理;第二处理单元,用于根据上述对象的对象特征信息,对上述目标背景中被上述对象遮挡住的部分进行处理;第三处理单元,用于对上述目标背景中未被上述对象遮挡住的部分进行上述蒙版处理和/或上述渐变处理和/或上述模糊处理;第四处理单元,用于对上述目标背景中未被上述对象遮挡住的部分中的预设区域进行上述蒙版处理和/或上述渐变处理和/或上述模糊处理;以及第五处理单元,用于根据上述对象特征信息推荐相应的替代背景,以替换上述目标背景来作为展示上述对象的背景,其中,上述替代背景的背景特征信息与上述对象特征信息之间的差异度满足上述预设条件。Optionally, the adjustment module includes one of the following: a first processing unit configured to perform mask processing and/or gradient processing and/or blur processing on the entire aforementioned target background; a second processing unit configured to perform Object feature information, processing the part of the target background covered by the object; a third processing unit, configured to perform the mask processing and/or the gradient processing on the part of the target background not covered by the object and/or the aforementioned blurring processing; a fourth processing unit, configured to perform the aforementioned masking processing and/or the aforementioned gradient processing and/or the aforementioned blurring processing on a preset area in the portion of the aforementioned target background that is not blocked by the aforementioned object; and a fifth processing unit, configured to recommend a corresponding substitute background according to the above-mentioned object feature information, so as to replace the above-mentioned target background as the background for displaying the above-mentioned object, wherein the difference between the background feature information of the above-mentioned substitute background and the above-mentioned object feature information meet the above preconditions.
本公开的另一方面提供了一种非易失性存储介质,存储有计算机可执行指令,上述指令在被处理器执行时用于实现如上所述的背景调整方法。Another aspect of the present disclosure provides a non-volatile storage medium storing computer-executable instructions, which are used to implement the above-mentioned background adjustment method when executed by a processor.
本公开的另一方面提供了一种计算机程序,上述计算机程序包括计算机可执行指令,上述指令在被处理器执行时用于实现如上所述的背景调整方法。Another aspect of the present disclosure provides a computer program, the above-mentioned computer program includes computer-executable instructions, and the above-mentioned instructions are used to implement the above-mentioned background adjustment method when executed by a processor.
本公开的另一方面提供了一种计算机系统,包括:一个或者多个处理器;存储器,存储有计算机可执行程序,上述程序在被上述一个或者多个处理器执行时用于实现如上所述的背景调整方法。Another aspect of the present disclosure provides a computer system, including: one or more processors; a memory storing a computer executable program, the above program is used to implement the above-mentioned The background adjustment method.
附图说明Description of drawings
为了更完整地理解本公开及其优势,现在将参考结合附图的以下描述,其中:For a more complete understanding of the present disclosure and its advantages, reference should now be made to the following description taken in conjunction with the accompanying drawings, in which:
图1示意性示出了根据本公开实施例的适于背景调整方法和背景调整系统的应用场景;FIG. 1 schematically shows an application scenario suitable for a background adjustment method and a background adjustment system according to an embodiment of the present disclosure;
图2示意性示出了根据本公开实施例的背景调整方法的流程图;FIG. 2 schematically shows a flow chart of a background adjustment method according to an embodiment of the present disclosure;
图3A示意性示出了根据本公开另一实施例的背景调整方法的流程图;FIG. 3A schematically shows a flowchart of a background adjustment method according to another embodiment of the present disclosure;
图3B示意性示出了根据本公开实施例的判断对象特征信息与背景特征信息之间的差异度是否满足预设条件的流程图;Fig. 3B schematically shows a flow chart of judging whether the degree of difference between object feature information and background feature information satisfies a preset condition according to an embodiment of the present disclosure;
图3C示意性示出了根据本公开实施例的背景调整方法的示意图;FIG. 3C schematically shows a schematic diagram of a background adjustment method according to an embodiment of the present disclosure;
图4示意性示出了根据本公开实施例的背景调整系统的框图;Fig. 4 schematically shows a block diagram of a background adjustment system according to an embodiment of the present disclosure;
图5示意性示出了根据本公开实施例的判断模块的框图;以及Fig. 5 schematically shows a block diagram of a judging module according to an embodiment of the present disclosure; and
图6示意性示出了根据本公开实施例的可实现背景调整方法和背景调整系统的计算机系统的框图。Fig. 6 schematically shows a block diagram of a computer system capable of implementing the background adjustment method and the background adjustment system according to an embodiment of the present disclosure.
具体实施方式detailed description
以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the present disclosure. The terms "comprising", "comprising", etc. used herein indicate the presence of stated features, steps, operations and/or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted to have a meaning consistent with the context of this specification, and not be interpreted in an idealized or overly rigid manner.
附图中示出了一些方框图和/或流程图。应理解,方框图和/或流程图中的一些方框或其组合可以由计算机程序指令来实现。这些计算机程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,从而这些指令在由该处理器执行时可以创建用于实现这些方框图和/或流程图中所说明的功能/操作的装置。Some block diagrams and/or flowcharts are shown in the figures. It will be understood that some or combinations of blocks in the block diagrams and/or flowcharts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, so that these instructions, when executed by the processor, can be created to implement the functions illustrated in these block diagrams and/or flowcharts /operated device.
因此,本公开的技术可以硬件和/或软件(包括固件、微代码等)的形式来实现。另外,本公开的技术可以采取存储有指令的计算机可读介质上的计算机程序产品的形式,该计算机程序产品可供指令执行系统使用或者结合指令执行系统使用。在本公开的上下文中,计算机可读介质可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,计算机可读介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。计算机可读介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。Accordingly, the techniques of the present disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). Additionally, the technology of the present disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system. In the context of the present disclosure, a computer-readable medium is any medium that can contain, store, convey, propagate or transport instructions. For example, a computer readable medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of computer-readable media include: magnetic storage, such as magnetic tape or hard disk (HDD); optical storage, such as compact disc (CD-ROM); memory, such as random access memory (RAM) or flash memory; and/or wired / wireless communication link.
本公开的实施例提供了一种背景调整方法以及能够应用该方法的背景调整系统。该方法包括获取以目标背景为背景进行展示的对象的对象特征信息,其中,该对象特征信息用于描述该对象的色彩特征;获取该目标背景的背景特征信息,其中,该背景特征信息用于描述该目标背景的色彩特征;判断该对象特征信息与该背景特征信息之间的差异度是否满足预设条件;以及若判断出该对象特征信息与该背景特征信息之间的该差异度满足该预设条件,则对该目标背景进行调整或者提示。Embodiments of the present disclosure provide a background adjustment method and a background adjustment system to which the method can be applied. The method includes acquiring object feature information of an object displayed with a target background as a background, wherein the object feature information is used to describe the color feature of the object; acquiring background feature information of the target background, wherein the background feature information is used for Describe the color characteristics of the target background; judge whether the difference degree between the object characteristic information and the background characteristic information satisfies the preset condition; and if it is judged that the difference degree between the object characteristic information and the background characteristic information satisfies the If the preset condition is used, the target background is adjusted or prompted.
图1示意性示出了根据本公开实施例的背景调整方法和背景调整系统的应用场景。Fig. 1 schematically shows an application scenario of a background adjustment method and a background adjustment system according to an embodiment of the present disclosure.
如图1所示,在该应用场景中,用户可以根据个人喜好为手机110的桌面设置个性化的壁纸作为桌面背景,由于手机110的桌面上同时还展示有多个应用程序(比如,谷歌浏览器、优酷视频、有道词典,等等)的各色各样的图标。这种情况下,图标和壁纸就会相互影响,达不到预期的呈现效果,导致壁纸的设置失去了意义,用户体验较差。此时,可以使用本公开提供的背景调整方案对桌面背景进行调整。As shown in Figure 1, in this application scenario, the user can set a personalized wallpaper as the desktop background for the desktop of the mobile phone 110 according to personal preferences. Device, Youku Video, Youdao Dictionary, etc.). In this case, the icon and the wallpaper will affect each other, and the expected presentation effect cannot be achieved, resulting in meaningless setting of the wallpaper and poor user experience. At this point, the desktop background can be adjusted using the background adjustment solution provided in the present disclosure.
此外,本公开提供的技术方案的应用场景还可以包括微信、QQ等客户端的聊天背景的调整,在此不做限定。In addition, the application scenarios of the technical solution provided by the present disclosure may also include the adjustment of the chat background of WeChat, QQ and other clients, which is not limited here.
下面结合图1所示的应用场景,参考图2、图3A~3C来描述根据本公开示例性实施方式的背景调整方法。需要注意的是,上述应用场景仅是为了便于理解本公开的精神和原理而示出,本公开的实施方式在此方面不受任何限制。相反,本公开的实施方式可以应用于适用的任何应用场景。The background adjustment method according to an exemplary embodiment of the present disclosure will be described below with reference to FIG. 2 and FIGS. 3A to 3C in conjunction with the application scenario shown in FIG. 1 . It should be noted that the above-mentioned application scenarios are only shown to facilitate understanding of the spirit and principle of the present disclosure, and implementations of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable application scenarios.
图2示意性示出了根据本公开实施例的背景调整方法的流程图。Fig. 2 schematically shows a flowchart of a background adjustment method according to an embodiment of the present disclosure.
如图2所示,该背景调整方法可以包括操作S201~S204。其中:As shown in FIG. 2, the background adjustment method may include operations S201-S204. in:
在操作S201,获取以目标背景为背景进行展示的对象的对象特征信息,其中,对象特征信息用于描述对象的色彩特征。In operation S201, object characteristic information of an object displayed with the target background as the background is acquired, wherein the object characteristic information is used to describe the color characteristic of the object.
在本公开的实施例中,上述背景可以是终端设备的各种背景,包括但不限于桌面背景、聊天对话框的背景,等等。这些背景可以根据用户需求任意设置,比如,可以将任意图片或者照片作为终端设备的桌面背景。此处,终端设备可以包括但不限于手机、平板等。上述对象可以是一个,也可以是多个,在此不做限定。此外,该对象可以包括但不限于应用程序的图标、文字、图片、数字、字母,等等。比如,以桌面背景为例,其上可以展示各种应用程序的图标。In the embodiments of the present disclosure, the aforementioned backgrounds may be various backgrounds of the terminal device, including but not limited to desktop backgrounds, backgrounds of chat dialog boxes, and the like. These backgrounds can be set arbitrarily according to user requirements, for example, any picture or photo can be used as the desktop background of the terminal device. Here, the terminal device may include, but not limited to, a mobile phone, a tablet, and the like. There may be one or more objects mentioned above, which is not limited here. In addition, the object may include, but is not limited to, application program icons, text, pictures, numbers, letters, and so on. For example, taking the desktop background as an example, icons of various application programs can be displayed on it.
以对象为桌面图标为例,获取对象的对象特征信息,可以是获取桌面图标的能量特征、色彩特征,等等。其中,对象特征信息可以包括但不限于对象的主色的特征信息和/或对象的明度的特征信息和/或对象的纯度的特征信息。Taking the object as a desktop icon as an example, acquiring the object feature information of the object may be acquiring the energy feature, color feature, etc. of the desktop icon. Wherein, the object characteristic information may include but not limited to characteristic information of the main color of the object and/or characteristic information of the lightness of the object and/or characteristic information of the purity of the object.
例如,用户在手机中下载了多种应用程序,包括“应用程序1”、“应用程序2”、“应用程序3”和“应用程序4”,并选择将图片1作为“目标背景”设置成为手机的桌面壁纸(又称为桌面背景),这样,桌面上不仅会展示“目标背景”,而且还会以图片1为背景,同时展示“应用程序1”的图标1、“应用程序2”的图标2、“应用程序3”的图标3以及“应用程序4”的图标4。由于桌面壁纸有自己的色彩和明亮度等特征,每个图标也有自己的色彩和明亮度等特征,因此,如果桌面背景选择不当,很容易导致桌面背景和图标互相影响,使得桌面看起来杂乱无章,不够美观,达不到预期显示效果,在这种情况下,就需要根据各图标的图标特征以及桌面背景的背景特征之间的差异度来决定是否调整当前的目标背景或者更换为其他背景,以克服上述缺陷。For example, the user downloads various applications in the mobile phone, including "Application 1", "Application 2", "Application 3" and "Application 4", and chooses to set picture 1 as the "target background" to be The desktop wallpaper (also known as the desktop background) of the mobile phone. In this way, not only the "target background" will be displayed on the desktop, but also the icon 1 of "Application 1" and the icon of "Application 2" will be displayed with Picture 1 as the background. Icon 2, Icon 3 for "App 3", and Icon 4 for "App 4". Because the desktop wallpaper has its own color and brightness characteristics, and each icon also has its own color and brightness characteristics, so if the desktop background is not properly selected, it is easy to cause the desktop background and icons to affect each other, making the desktop look messy, In this case, it is necessary to decide whether to adjust the current target background or replace it with another background based on the difference between the icon characteristics of each icon and the background characteristics of the desktop background. Overcome the above defects.
在操作S202,获取目标背景的背景特征信息,其中,背景特征信息用于描述目标背景的色彩特征。In operation S202, background feature information of the target background is acquired, wherein the background feature information is used to describe color features of the target background.
在本公开的实施例中,目标背景可以包括但不限于终端设备的桌面壁纸、聊天工具的对话框背景等等。背景特征信息可以包括背景的主色的特征信息和/或背景的明度的特征信息和/或背景的纯度的特征信息,在此不做限定。In the embodiment of the present disclosure, the target background may include, but not limited to, the desktop wallpaper of the terminal device, the dialog background of the chat tool, and the like. The background feature information may include feature information of the main color of the background and/or feature information of the brightness of the background and/or feature information of the purity of the background, which is not limited herein.
在操作S203,判断对象特征信息与背景特征信息之间的差异度是否满足预设条件。In operation S203, it is judged whether the degree of difference between the object feature information and the background feature information satisfies a preset condition.
一般地,如果对象和背景之间的差异较大,则表明两者特征比较明显,放在一起很容易区分;相反,如果对象和背景之间的差异较小,则表明两者特征不够明显,放在一起很难区分。因此,为了防止展示时对象和背景相互影响,一般会希望两者之间的差异越大越好,如果差异程度不够,则需要调整当前的目标背景或者提醒用户更换其他背景,以满足对象和背景之间的差异度的要求。Generally, if the difference between the object and the background is large, it indicates that the characteristics of the two are more obvious, and it is easy to distinguish them together; on the contrary, if the difference between the object and the background is small, it indicates that the characteristics of the two are not obvious enough. Put together it is difficult to distinguish. Therefore, in order to prevent the object and the background from interacting during display, it is generally hoped that the difference between the two is as large as possible. If the difference is not enough, it is necessary to adjust the current target background or remind the user to replace another background to meet the gap between the object and the background. The requirements for the degree of difference between.
根据本公开的实施例,对象特征信息与背景特征信息之间的差异度可以包括但不限于对象的主色的特征信息与背景的主色的特征信息之间的差异度,和/或对象的明度的特征信息与背景的明度的特征信息之间的差异度,和/或对象的纯度的特征信息与背景的纯度的特征信息之间的差异度。According to an embodiment of the present disclosure, the degree of difference between the characteristic information of the object and the characteristic information of the background may include but not limited to the degree of difference between the characteristic information of the main color of the object and the characteristic information of the main color of the background, and/or the The degree of difference between the characteristic information of brightness and the characteristic information of brightness of the background, and/or the degree of difference between the characteristic information of the purity of the object and the characteristic information of the background.
例如,将预设条件设置为:对象的主色的特征信息与背景的主色的特征信息之间的差异度A小于预先设定的差异度1,对象的明度的特征信息与背景的明度的特征信息之间的差异度B小于预先设定的差异度2,对象的纯度的特征信息与背景的纯度的特征信息之间的差异度C小于预先设定的差异度3。其中,若对象特征信息包括对象的主色的特征信息和对象的明度的特征信息,背景特征信息包括背景的主色的特征信息和背景的明度的特征信息,则对象特征信息与背景特征信息之间的差异度可以包括对象的主色的特征信息与背景的主色的特征信息之间的差异度A和对象的明度的特征信息与背景的明度的特征信息之间的差异度B,这样,实施时,可以判断差异度A是否小于预先设定的差异度1以及判断差异度B是否小于预先设定的差异度2。For example, the preset condition is set as follows: the difference A between the characteristic information of the main color of the object and the characteristic information of the main color of the background is less than the preset difference 1, and the difference between the characteristic information of the lightness of the object and the lightness of the background The degree of difference B between the characteristic information is less than a preset degree of difference 2, and the degree of difference C between the characteristic information of the purity of the object and the characteristic information of the purity of the background is less than the predetermined degree of difference 3. Wherein, if the object characteristic information includes the characteristic information of the main color of the object and the characteristic information of the brightness of the object, and the background characteristic information includes the characteristic information of the main color of the background and the characteristic information of the brightness of the background, then the difference between the object characteristic information and the background characteristic information The degree of difference may include the degree of difference A between the characteristic information of the main color of the object and the characteristic information of the main color of the background and the degree of difference B between the characteristic information of the lightness of the object and the characteristic information of the lightness of the background. In this way, During implementation, it can be judged whether the difference degree A is smaller than the preset difference degree 1 and whether the difference degree B is smaller than the preset difference degree 2.
在操作S204,若判断出对象特征信息与背景特征信息之间的差异度满足预设条件,则对目标背景进行调整或者提示。In operation S204, if it is determined that the degree of difference between the object feature information and the background feature information satisfies a preset condition, the target background is adjusted or prompted.
在本公开的实施例中,若对象特征信息与背景特征信息之间的差异度满足预设条件,则可以直接对目标背景进行调整或者显示可以对目标背景进行调整的提示信息。In the embodiments of the present disclosure, if the degree of difference between the object feature information and the background feature information satisfies a preset condition, the target background may be directly adjusted or a prompt message for adjusting the target background may be displayed.
例如,结合上述示例,预先设定“差异度1”为25,“差异度2”为30,经计算,“差异度A”为24,“差异度B”为27,由于“24<25”且“27<30”,则表明对象的主色的特征信息与背景的主色的特征信息之间的“差异度A”满足预设条件,以及对象的明度的特征信息与背景的明度的特征信息之间的“差异度B”满足预设条件,也就是对象特征信息与背景特征信息之间的差异度满足预设条件。此时,可以直接对目标背景进行调整,或者显示提示信息,以提醒用户目前的背景显示效果较差,最好更换成其他背景。For example, in combination with the above example, the preset "difference degree 1" is 25, "difference degree 2" is 30, after calculation, "difference degree A" is 24, "difference degree B" is 27, because "24<25" And "27<30", it means that the "difference degree A" between the characteristic information of the main color of the object and the characteristic information of the main color of the background meets the preset condition, and the characteristic information of the lightness of the object and the lightness of the background The "degree of difference B" between the information satisfies the preset condition, that is, the degree of difference between the object feature information and the background feature information satisfies the preset condition. At this time, the target background can be directly adjusted, or a prompt message can be displayed to remind the user that the current background display effect is poor, and it is better to replace it with another background.
需要说明的是,如果对象特征信息与背景特征信息之间的差异度不满足预设条件,则不需要对目标背景进行调整或者提示,即保持本目标背景变。It should be noted that if the degree of difference between the object feature information and the background feature information does not meet the preset condition, there is no need to adjust or prompt the target background, that is, keep the target background change.
通过本公开的实施例,在对象特征信息与背景特征信息之间的差异度满足预设条件时,对目标背景进行调整或者提示,可以使目标背景能够达到预期呈现效果的目的。Through the embodiments of the present disclosure, when the difference between the object feature information and the background feature information satisfies the preset condition, the target background can be adjusted or prompted, so that the target background can achieve the purpose of expected presentation effect.
下面参考图3A~图3C,结合具体实施例对图2所示的方法做进一步说明。Referring to FIG. 3A to FIG. 3C , the method shown in FIG. 2 will be further described in conjunction with specific embodiments.
作为一种可选的实施例,获取以目标背景为背景进行展示的对象的对象特征信息可以包括:获取对象的主色的特征信息;以及获取目标背景的背景特征信息包括:获取目标背景的主色的特征信息。As an optional embodiment, acquiring the object feature information of the object displayed with the target background as the background may include: acquiring feature information of the main color of the object; and acquiring the background feature information of the target background includes: acquiring the main color of the target background Color characteristic information.
图3A示意性示出了根据本公开另一实施例的背景调整方法的流程图。Fig. 3A schematically shows a flowchart of a background adjustment method according to another embodiment of the present disclosure.
在该实施例中,该背景调整方法除了可以包括上文参考图2描述的相应操作之外,图2中的操作S201可以包括操作S301,操作S202可以包括操作S302。为了描述的简洁起见,这里省略对图2中相应操作的描述。如图3A所示,其中:In this embodiment, the background adjustment method may include the corresponding operations described above with reference to FIG. 2 , operation S201 in FIG. 2 may include operation S301 , and operation S202 may include operation S302 . For the sake of brevity, descriptions of corresponding operations in FIG. 2 are omitted here. As shown in Figure 3A, where:
在操作S301,获取对象的主色的特征信息。In operation S301, characteristic information of a dominant color of an object is acquired.
在操作S302,获取目标背景的主色的特征信息。In operation S302, characteristic information of a dominant color of the target background is acquired.
为了便于阐述,在本公开的实施例中,以桌面图标和桌面背景为例详细阐述本公开。For ease of illustration, in the embodiments of the present disclosure, the present disclosure is described in detail by taking desktop icons and desktop backgrounds as examples.
由于图标的特征信息和背景的特征信息如上所述都可以包括多种信息,为了便于处理,可以只采用其中的一种或者几种信息来确定两者之间的差异度。比如,只采用两者各自的主色的特征信息。Since both the feature information of the icon and the feature information of the background may include a variety of information as described above, for the convenience of processing, only one or several kinds of information may be used to determine the degree of difference between the two. For example, only the characteristic information of the main colors of the two are used.
通过本公开的实施例,采用获取对象的主色的特征信息并获取目标背景的主色的特征信息来确定两者的差异度,进而决定是否调整或者提示更换背景,进而达到了简化处理过程,减小处理的复杂度的目的。Through the embodiments of the present disclosure, the characteristic information of the main color of the object is obtained and the characteristic information of the main color of the target background is used to determine the degree of difference between the two, and then decide whether to adjust or prompt to change the background, thereby simplifying the processing process. The purpose of reducing the complexity of processing.
图3B示意性示出了根据本公开实施例的判断所述对象特征信息与所述背景特征信息之间的差异度是否满足预设条件的流程图。Fig. 3B schematically shows a flow chart of judging whether the degree of difference between the object feature information and the background feature information satisfies a preset condition according to an embodiment of the present disclosure.
在该实施例中,参考图2描述的操作S203(即判断对象特征信息与背景特征信息之间的差异度是否满足预设条件)可以包括操作S401~S403。如图3B所示,其中:In this embodiment, the operation S203 described with reference to FIG. 2 (that is, judging whether the degree of difference between the object characteristic information and the background characteristic information satisfies a preset condition) may include operations S401-S403. As shown in Figure 3B, where:
在操作S401,计算对象主色与背景主色之间的颜色距离,其中,对象主色包括与对象的主色的特征信息对应的主色,背景主色包括与目标背景的主色的特征信息对应的主色。In operation S401, the color distance between the main color of the object and the main color of the background is calculated, wherein the main color of the object includes the main color corresponding to the characteristic information of the main color of the object, and the main color of the background includes the characteristic information of the main color of the target background corresponding main color.
在操作S402,判断颜色距离是否小于颜色距离阈值。In operation S402, it is determined whether the color distance is smaller than a color distance threshold.
在操作S403,若判断出颜色距离小于颜色距离阈值,则确定对象特征信息与背景特征信息之间的差异度满足预设条件。In operation S403, if it is determined that the color distance is smaller than the color distance threshold, it is determined that the degree of difference between the object feature information and the background feature information satisfies a preset condition.
在本公开的实施例中,计算颜色距离的方式可以包括多种,比如可以利用欧氏距离计算,在此不做限定。In the embodiments of the present disclosure, there may be multiple ways to calculate the color distance, for example, Euclidean distance may be used for calculation, which is not limited here.
例如,r1和r2表示“红绿蓝(Red Green Blue,可简称为RGB)”颜色空间的两个像素值,则r1和r2的颜色距离可以通过计算r1和r2的欧氏距离得到,具体可以表示为:dist(r1,r2)=||r1-r2||。For example, r1 and r2 represent two pixel values in the "Red Green Blue (RGB)" color space, then the color distance between r1 and r2 can be obtained by calculating the Euclidean distance between r1 and r2, specifically, Expressed as: dist(r1,r2)=||r1-r2||.
根据本公开的实施例,颜色距离阈值可以由用户自定义设置,在此不做限定。判断计算出的颜色距离是否小于颜色距离阈值,也就是判断对象主色所呈现出的颜色和背景主色所呈现出的颜色是否过于相近,导致目标背景无法达到预期的呈现效果。若颜色距离小于颜色距离阈值,则表明差异度满足预设条件。此时,如图3C所示,可以利用蒙版和/或渐变和/或模糊等技术对目标背景进行处理,以克服背景显示效果差的缺陷。According to an embodiment of the present disclosure, the color distance threshold can be set by the user, which is not limited here. Judging whether the calculated color distance is less than the color distance threshold, that is, judging whether the color presented by the main color of the object and the color presented by the main color of the background are too similar, causing the target background to fail to achieve the expected presentation effect. If the color distance is smaller than the color distance threshold, it indicates that the degree of difference satisfies the preset condition. At this time, as shown in FIG. 3C , the target background can be processed by using techniques such as masking and/or gradient and/or blurring, so as to overcome the defect of poor background display effect.
通过本公开的实施例,利用颜色距离计算对象和背景在主色维度上的差异度是否满足预设条件,进而对目标背景进行调整或者提示,可以简单、快速地确定对象和背景在主色维度上的差异度。Through the embodiments of the present disclosure, the color distance is used to calculate whether the difference between the object and the background in the main color dimension meets the preset conditions, and then the target background is adjusted or prompted, and the object and the background in the main color dimension can be determined simply and quickly. difference in the above.
作为一种可选的实施例,获取目标背景的背景特征信息可以包括:获取目标背景中未被对象遮挡住的部分的背景特征信息。As an optional embodiment, acquiring the background feature information of the target background may include: acquiring background feature information of a part of the target background that is not blocked by the object.
在本公开的实施例中,由于目标背景上展示的对象会遮挡住部分目标背景,因此未被遮挡住的目标背景部分对用户来说才是可视部分,基于此,在背景调整过程中,为了减少工作量,无需获取整个目标背景的背景特征,只需要获取未被遮挡的目标背景部分的背景特征信息即可。In the embodiment of the present disclosure, since the objects displayed on the target background will block part of the target background, the part of the target background that is not covered is the visible part for the user. Based on this, during the background adjustment process, In order to reduce the workload, it is not necessary to obtain the background features of the entire target background, but only the background feature information of the unoccluded target background part.
通过本公开的实施例,获取未被对象遮挡住的部分的背景特征信息,从而对未被对象遮挡住的目标背景部分进行调整或者提示,减少了系统的工作量,提高了系统的工作效率。Through the embodiments of the present disclosure, the background characteristic information of the part not covered by the object is acquired, thereby adjusting or prompting the part of the target background not covered by the object, reducing the workload of the system and improving the working efficiency of the system.
作为一种可选的实施例,对目标背景进行调整可以包括以下之一:对整个目标背景进行蒙版处理和/或渐变处理和/或模糊处理;根据对象的对象特征信息,对目标背景中被对象遮挡住的部分进行处理;对目标背景中未被对象遮挡住的部分进行蒙版处理和/或渐变处理和/或模糊处理;对目标背景中未被对象遮挡住的部分中的预设区域进行蒙版处理和/或渐变处理和/或模糊处理;以及根据对象特征信息推荐相应的替代背景,以替换目标背景来作为展示对象的背景,其中,替代背景的背景特征信息与对象特征信息之间的差异度满足预设条件。As an optional embodiment, adjusting the target background may include one of the following: performing mask processing and/or gradient processing and/or blur processing on the entire target background; Object occlusion; masking and/or gradient and/or blurring of the target background not occluded by the object; presets in the target background not occluded by the object Perform mask processing and/or gradient processing and/or blur processing on the region; and recommend a corresponding replacement background according to the object feature information to replace the target background as the background of the display object, wherein the background feature information of the replacement background and the object feature information The degree of difference between satisfies the preset condition.
在本公开的实施例中,对目标背景进行调整可以包括但不限于以下五种方式之一。其中,方式一,为了使图标的排布不再影响目标背景内容信息的表达,可以对整个目标背景利用蒙版和/或渐变和/或模糊等技术进行自动处理。方式二,由于目标背景会被其上展示的对象遮挡住一部分,因此可以对目标背景中被对象遮挡住的部分进行调整,从而实现削弱对象和目标背景之间的相互影响的目的。方式三,通常未遮挡住的背景部分其显示效果受对象影响最大,因此对于目标背景中未被对象遮挡住的部分,可以通过蒙版和/或渐变和/或模糊等技术手段实现对未被遮挡住的目标背景部分的调整。方式四,对于目标背景中未被对象遮挡住的部分,可能只有“区域1”与对象之间相互影响,进而可以将“区域1”设置为预设区域,并对预设区域进行蒙版处理和/或渐变处理和/或模糊处理。方式五,在目标背景的背景特征信息和对象特征信息之间的差异度不满足预设条件时,系统可以根据获取的对象特征信息推荐相应的替代背景,其中,对象展示在该替代背景上,且替代背景的背景特征信息与对象特征信息之间的差异度满足预设条件。因此,本公开的实施例实现了对象可以在目标背景上清晰显示的目的,提高了用户的体验效果。In the embodiment of the present disclosure, adjusting the target background may include but not limited to one of the following five ways. Among them, method 1, in order to prevent the arrangement of icons from affecting the expression of target background content information, the entire target background can be automatically processed by using technologies such as masking and/or gradient and/or blurring. Method 2, since the target background will be partly blocked by the objects displayed on it, the part of the target background that is blocked by the objects can be adjusted, so as to achieve the purpose of weakening the mutual influence between the object and the target background. Method 3, usually the display effect of the unoccluded background part is most affected by the object, so for the unoccluded part of the target background, it can be achieved by masking and/or gradient and/or blurring and other technical means. Adjustment of occluded parts of the target background. Method 4, for the part of the target background that is not blocked by the object, only "Area 1" may interact with the object, and then "Area 1" can be set as the preset area, and the preset area can be masked and/or gradation and/or blurring. Mode 5, when the difference between the background feature information of the target background and the object feature information does not meet the preset conditions, the system can recommend a corresponding alternative background according to the acquired object feature information, wherein the object is displayed on the alternative background, And the degree of difference between the background feature information of the substitute background and the object feature information satisfies a preset condition. Therefore, the embodiments of the present disclosure achieve the object that the object can be clearly displayed on the target background, and improve the experience effect of the user.
需要说明的是,蒙版处理技术是指在不损坏素材的情况下,对选区以外的部分进行处理;渐变处理技术是指使素材呈现出渐变的效果;模糊处理技术是指将素材模糊化。It should be noted that the mask processing technology refers to processing the part outside the selected area without damaging the material; the gradient processing technology refers to making the material show a gradient effect; the blur processing technology refers to blurring the material.
图4示意性示出了根据本公开实施例的背景调整系统的框图。Fig. 4 schematically shows a block diagram of a background adjustment system according to an embodiment of the present disclosure.
如图4所示,背景调整系统400可以包括第一获取模块410、第二获取模块420、判断模块430和调整模块440。其中:As shown in FIG. 4 , the background adjustment system 400 may include a first acquisition module 410 , a second acquisition module 420 , a judgment module 430 and an adjustment module 440 . in:
第一获取模块410用于获取以目标背景为背景进行展示的对象的对象特征信息,其中,对象特征信息用于描述对象的色彩特征。The first acquiring module 410 is configured to acquire object feature information of an object displayed with the target background as the background, wherein the object feature information is used to describe the color feature of the object.
第二获取模块420用于获取目标背景的背景特征信息,其中,背景特征信息用于描述目标背景的色彩特征。The second obtaining module 420 is used to obtain background characteristic information of the target background, wherein the background characteristic information is used to describe the color characteristics of the target background.
判断模块430用于判断对象特征信息与背景特征信息之间的差异度是否满足预设条件。The judging module 430 is used to judge whether the degree of difference between the object feature information and the background feature information satisfies a preset condition.
调整模块440用于在判断出对象特征信息与背景特征信息之间的差异度满足预设条件的情况下,对目标背景进行调整或者提示。The adjustment module 440 is configured to adjust or prompt the target background when it is determined that the degree of difference between the object feature information and the background feature information satisfies a preset condition.
通过本公开的实施例,在对象特征信息与背景特征信息之间的差异度满足预设条件时,对目标背景进行调整或者提示,可以使目标背景能够达到预期呈现效果的目的。Through the embodiments of the present disclosure, when the difference between the object feature information and the background feature information satisfies the preset condition, the target background can be adjusted or prompted, so that the target background can achieve the purpose of expected presentation effect.
作为一种可选的实施例,第一获取模块还用于获取对象的主色的特征信息;以及第二获取模块还用于获取目标背景的主色的特征信息。As an optional embodiment, the first obtaining module is further configured to obtain characteristic information of the main color of the object; and the second obtaining module is further configured to obtain characteristic information of the main color of the target background.
通过本公开的实施例,采用获取对象的主色的特征信息并获取目标背景的主色的特征信息来确定两者的差异度,进而决定是否调整或者提示更换背景,进而达到了简化处理过程,减小处理的复杂度的目的。Through the embodiments of the present disclosure, the characteristic information of the main color of the object is obtained and the characteristic information of the main color of the target background is used to determine the degree of difference between the two, and then decide whether to adjust or prompt to change the background, thereby simplifying the processing process. The purpose of reducing the complexity of processing.
图5示意性示出了根据本公开实施例的判断模块的框图。Fig. 5 schematically shows a block diagram of a judging module according to an embodiment of the present disclosure.
在该实施例中,参考图4中的判断模块430可以包括计算单元431、判断单元432和确定单元433。如图5所示,其中:In this embodiment, referring to the judging module 430 in FIG. 4 may include a computing unit 431 , a judging unit 432 and a determining unit 433 . As shown in Figure 5, where:
计算单元431用于计算对象主色与背景主色之间的颜色距离,其中,对象主色包括与对象的主色的特征信息对应的主色,背景主色与目标背景的主色的特征信息对应的主色。The calculation unit 431 is used to calculate the color distance between the main color of the object and the main color of the background, wherein the main color of the object includes the main color corresponding to the characteristic information of the main color of the object, and the characteristic information of the main color of the background main color and the main color of the target background corresponding main color.
判断单元432用于判断颜色距离是否小于颜色距离阈值。The judging unit 432 is used to judge whether the color distance is smaller than the color distance threshold.
确定单元433用于在判断出颜色距离小于颜色距离阈值的情况下,确定对象特征信息与背景特征信息之间的差异度满足预设条件。The determination unit 433 is configured to determine that the degree of difference between the object feature information and the background feature information satisfies a preset condition when it is determined that the color distance is smaller than the color distance threshold.
通过本公开的实施例,利用颜色距离计算对象和背景在主色维度上的差异度是否满足预设条件,进而对目标背景进行调整或者提示,可以简单、快速地确定对象和背景在主色维度上的差异度。Through the embodiments of the present disclosure, the color distance is used to calculate whether the difference between the object and the background in the main color dimension meets the preset conditions, and then the target background is adjusted or prompted, and the object and the background in the main color dimension can be determined simply and quickly. difference in the above.
作为一种可选的实施例,第二获取模块还用于获取目标背景中未被对象遮挡住的部分的背景特征信息。As an optional embodiment, the second acquiring module is further configured to acquire background feature information of a part of the target background that is not blocked by the object.
通过本公开的实施例,获取未被对象遮挡住的部分的背景特征信息,从而对未被对象遮挡住的目标背景部分进行调整或者提示,减少了系统的工作量,提高了系统的工作效率。Through the embodiments of the present disclosure, the background characteristic information of the part not covered by the object is acquired, thereby adjusting or prompting the part of the target background not covered by the object, reducing the workload of the system and improving the working efficiency of the system.
作为一种可选的实施例,调整模块包括以下之一:第一处理单元,用于对整个目标背景进行蒙版处理和/或渐变处理和/或模糊处理;第二处理单元,用于根据对象的对象特征信息,对目标背景中被对象遮挡住的部分进行处理;第三处理单元,用于对目标背景中未被对象遮挡住的部分进行蒙版处理和/或渐变处理和/或模糊处理;第四处理单元,用于对目标背景中未被对象遮挡住的部分中的预设区域进行蒙版处理和/或渐变处理和/或模糊处理;以及第五处理单元,用于根据对象特征信息推荐相应的替代背景,以替换目标背景来作为展示对象的背景,其中,替代背景的背景特征信息与对象特征信息之间的差异度满足预设条件。As an optional embodiment, the adjustment module includes one of the following: a first processing unit configured to perform mask processing and/or gradient processing and/or blur processing on the entire target background; a second processing unit configured to perform The object feature information of the object is used to process the part of the target background that is occluded by the object; the third processing unit is used to perform mask processing and/or gradient processing and/or blurring on the part of the target background that is not occluded by the object processing; the fourth processing unit is used to perform mask processing and/or gradient processing and/or blur processing on the preset area in the part of the target background that is not blocked by the object; and the fifth processing unit is used to perform according to the object The feature information recommends a corresponding alternative background to replace the target background as the background for displaying the object, wherein the degree of difference between the background feature information of the substitute background and the object feature information satisfies a preset condition.
通过本公开的实施例,实现了对象可以在目标背景上清晰显示的目的,提高了用户的体验效果。Through the embodiments of the present disclosure, the object can be clearly displayed on the target background, and the user's experience effect is improved.
可以理解的是,第一获取模块410、第二获取模块420、判断模块430以及调整模块440可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本发明的实施例,第一获取模块410、第二获取模块420、判断模块430以及调整模块440中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以以对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式的适当组合来实现。或者,第一获取模块410、第二获取模块420、判断模块430以及调整模块440中的至少一个可以至少被部分地实现为计算机程序模块,当该程序被计算机运行时,可以执行相应模块的功能。It can be understood that the first acquiring module 410, the second acquiring module 420, the judging module 430 and the adjusting module 440 may be implemented in one module, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first acquiring module 410, the second acquiring module 420, the judging module 430 and the adjusting module 440 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), Programmable Logic Array (PLA), System on a Chip, System on a Substrate, System on a Package, Application Specific Integrated Circuit (ASIC), or in hardware or firmware that may be implemented in any other reasonable manner that integrates or packages circuits, Or it may be realized by an appropriate combination of software, hardware and firmware. Alternatively, at least one of the first obtaining module 410, the second obtaining module 420, the judging module 430 and the adjusting module 440 may be at least partially implemented as a computer program module, and when the program is run by a computer, the functions of the corresponding modules may be performed. .
作为一种可选的实施例,本公开的另一方面提供了一种非易失性存储介质,存储有计算机可执行指令,上述指令在被处理器执行时用于实现如上所述的背景调整方法。As an optional embodiment, another aspect of the present disclosure provides a non-volatile storage medium storing computer-executable instructions, and the above-mentioned instructions are used to implement the above-mentioned background adjustment when executed by a processor method.
作为一种可选的实施例,本公开的另一方面提供了一种计算机程序,上述计算机程序包括计算机可执行指令,上述指令在被处理器执行时用于实现如上所述的背景调整方法。As an optional embodiment, another aspect of the present disclosure provides a computer program, the above computer program includes computer executable instructions, and the above instructions are used to implement the background adjustment method as described above when executed by a processor.
作为一种可选的实施例,本公开的另一方面提供了一种计算机系统,包括:一个或者多个处理器;存储器,存储有计算机可执行程序,上述程序在被上述一个或者多个处理器执行时用于实现如上所述的背景调整方法。As an optional embodiment, another aspect of the present disclosure provides a computer system, including: one or more processors; a memory storing a computer executable program, and the above program is processed by the one or more implements the background adjustment method described above.
图6示意性示出了根据本公开实施例的可实现背景调整方法和背景调整系统的计算机系统的框图。Fig. 6 schematically shows a block diagram of a computer system capable of implementing the background adjustment method and the background adjustment system according to an embodiment of the present disclosure.
如图6所示,计算机系统500包括处理器510和存储器520。该计算机系统500可以执行上面参考图2、图3A~图3C描述的方法。As shown in FIG. 6 , computer system 500 includes processor 510 and memory 520 . The computer system 500 can execute the methods described above with reference to FIG. 2 , and FIG. 3A to FIG. 3C .
具体地,处理器510例如可以包括通用微处理器、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC)),等等。处理器510还可以包括用于缓存用途的板载存储器。处理器510可以是用于执行参考图2、图3A~图3C描述的根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。Specifically, the processor 510 may include, for example, a general-purpose microprocessor, an instruction set processor and/or a related chipset and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), and the like. Processor 510 may also include on-board memory for caching purposes. The processor 510 may be a single processing unit or a plurality of processing units for performing different actions of the method flow described with reference to FIG. 2 and FIG. 3A to FIG. 3C according to the embodiments of the present disclosure.
计算机可读存储介质520,例如可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,可读存储介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。可读存储介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。The computer-readable storage medium 520, for example, may be any medium capable of containing, storing, transmitting, propagating or transmitting instructions. For example, a readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, device, or propagation medium. Specific examples of readable storage media include: magnetic storage, such as magnetic tape or hard disk (HDD); optical storage, such as compact disc (CD-ROM); memory, such as random access memory (RAM) or flash memory; and/or wired / wireless communication link.
计算机可读存储介质520可以包括计算机程序521,该计算机程序521可以包括代码/计算机可执行指令,其在由处理器510执行时使得处理器510执行例如上面结合图2、图3A~图3C所描述的方法流程及其任何变形。The computer-readable storage medium 520 may include a computer program 521, which may include code/computer-executable instructions that, when executed by the processor 510, cause the processor 510 to perform, for example, the above in conjunction with FIGS. 2, 3A-3C. The described method procedure and any variations thereof.
计算机程序521可被配置为具有例如包括计算机程序模块的计算机程序代码。例如,在示例实施例中,计算机程序521中的代码可以包括一个或多个程序模块,例如包括521A、模块521B、……。应当注意,模块的划分方式和个数并不是固定的,本领域技术人员可以根据实际情况使用合适的程序模块或程序模块组合,当这些程序模块组合被处理器510执行时,使得处理器510可以执行例如上面结合图2、图3A~图3C所描述的方法流程及其任何变形。The computer program 521 may be configured to have, for example, computer program codes including computer program modules. For example, in an example embodiment, the code in the computer program 521 may include one or more program modules, such as including 521A, module 521B, . . . . It should be noted that the division method and number of modules are not fixed, and those skilled in the art can use appropriate program modules or program module combinations according to actual conditions. When these program module combinations are executed by the processor 510, the processor 510 can Execute, for example, the flow of the method described above in conjunction with FIGS. 2 , 3A-3C and any variants thereof.
本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合或/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art can understand that various combinations and/or combinations of the features described in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the various embodiments of the present disclosure and/or the features described in the claims can be combined and/or combined in various ways. All such combinations and/or combinations fall within the scope of the present disclosure.
尽管已经参照本公开的特定示例性实施例示出并描述了本公开,但是本领域技术人员应该理解,在不背离所附权利要求及其等同物限定的本公开的精神和范围的情况下,可以对本公开进行形式和细节上的多种改变。因此,本公开的范围不应该限于上述实施例,而是应该不仅由所附权利要求来进行确定,还由所附权利要求的等同物来进行限定。While the present disclosure has been shown and described with reference to certain exemplary embodiments thereto, it should be understood by those skilled in the art that other modifications may be made without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Various changes in form and details have been made to this disclosure. Therefore, the scope of the present disclosure should not be limited to the above-described embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710878048.6A CN107729099A (en) | 2017-09-25 | 2017-09-25 | Background method of adjustment and its system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710878048.6A CN107729099A (en) | 2017-09-25 | 2017-09-25 | Background method of adjustment and its system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107729099A true CN107729099A (en) | 2018-02-23 |
Family
ID=61206822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710878048.6A Pending CN107729099A (en) | 2017-09-25 | 2017-09-25 | Background method of adjustment and its system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729099A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108492246A (en) * | 2018-03-12 | 2018-09-04 | 维沃移动通信有限公司 | A kind of image processing method, device and mobile terminal |
CN109471631A (en) * | 2018-11-21 | 2019-03-15 | 北京京东尚科信息技术有限公司 | The generation method and device of masking-out material |
CN110866138A (en) * | 2018-08-17 | 2020-03-06 | 京东数字科技控股有限公司 | Background generation method and system, computer system, and computer-readable storage medium |
CN110875982A (en) * | 2019-11-08 | 2020-03-10 | 西安广和通无线软件有限公司 | Logo display method and device, computer equipment and storage medium |
CN111145194A (en) * | 2019-12-31 | 2020-05-12 | 联想(北京)有限公司 | Processing method, processing device and electronic equipment |
WO2020215861A1 (en) * | 2019-04-22 | 2020-10-29 | 京东方科技集团股份有限公司 | Picture display method, picture display apparatus, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176761A (en) * | 2011-12-23 | 2013-06-26 | 中国移动通信集团公司 | Screen background setting method and movable terminal |
CN104679380A (en) * | 2013-11-30 | 2015-06-03 | 富泰华工业(深圳)有限公司 | System and method for adjusting background color of user interface |
CN104978189A (en) * | 2015-06-19 | 2015-10-14 | 深圳天珑无线科技有限公司 | Method, device and mobile terminal for changing text color of application description |
CN105204807A (en) * | 2015-09-24 | 2015-12-30 | 北京金山安全软件有限公司 | Method and device for adjusting color of display content at front end of screen |
-
2017
- 2017-09-25 CN CN201710878048.6A patent/CN107729099A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176761A (en) * | 2011-12-23 | 2013-06-26 | 中国移动通信集团公司 | Screen background setting method and movable terminal |
CN104679380A (en) * | 2013-11-30 | 2015-06-03 | 富泰华工业(深圳)有限公司 | System and method for adjusting background color of user interface |
CN104978189A (en) * | 2015-06-19 | 2015-10-14 | 深圳天珑无线科技有限公司 | Method, device and mobile terminal for changing text color of application description |
CN105204807A (en) * | 2015-09-24 | 2015-12-30 | 北京金山安全软件有限公司 | Method and device for adjusting color of display content at front end of screen |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108492246A (en) * | 2018-03-12 | 2018-09-04 | 维沃移动通信有限公司 | A kind of image processing method, device and mobile terminal |
CN110866138A (en) * | 2018-08-17 | 2020-03-06 | 京东数字科技控股有限公司 | Background generation method and system, computer system, and computer-readable storage medium |
CN109471631A (en) * | 2018-11-21 | 2019-03-15 | 北京京东尚科信息技术有限公司 | The generation method and device of masking-out material |
WO2020215861A1 (en) * | 2019-04-22 | 2020-10-29 | 京东方科技集团股份有限公司 | Picture display method, picture display apparatus, electronic device and storage medium |
CN110875982A (en) * | 2019-11-08 | 2020-03-10 | 西安广和通无线软件有限公司 | Logo display method and device, computer equipment and storage medium |
CN111145194A (en) * | 2019-12-31 | 2020-05-12 | 联想(北京)有限公司 | Processing method, processing device and electronic equipment |
CN111145194B (en) * | 2019-12-31 | 2024-09-20 | 联想(北京)有限公司 | Processing method, processing device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729099A (en) | Background method of adjustment and its system | |
US10958850B2 (en) | Electronic device and method for capturing image by using display | |
US8913068B1 (en) | Displaying video on a browser | |
US20140372945A1 (en) | Method for outputting images, apparatus and mobile terminal therefor | |
WO2020063030A1 (en) | Theme color adjusting method and apparatus, storage medium, and electronic device | |
US9558542B2 (en) | Method and device for image processing | |
TWI546775B (en) | Image processing method and device | |
US9672414B2 (en) | Enhancement of skin, including faces, in photographs | |
WO2017076026A1 (en) | Application icon changing method and apparatus | |
US10593018B2 (en) | Picture processing method and apparatus, and storage medium | |
US9877000B2 (en) | Self-adaptive adjustment method and device of projector, and computer storage medium | |
CN104539843A (en) | Terminal shooting method | |
WO2017032233A1 (en) | Image generation method and device | |
CN107917755A (en) | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus | |
US11347465B2 (en) | Display device array | |
US20160180558A1 (en) | Display apparatus and controlling method | |
TWI717317B (en) | Method and device for taking screenshot of display image of display device | |
US20200082514A1 (en) | Rendering Information into Images | |
US20150181085A1 (en) | Method of providing information configuration function in video play device and video play device | |
CN104580890A (en) | Terminal | |
US20130322748A1 (en) | Method for creating thumbnail images of videos and an electronic device for display thereof | |
US10699384B2 (en) | Image processing apparatus and control method thereof | |
US20190311464A1 (en) | Tuning for deep-learning-based color enhancement systems | |
JP2016156987A (en) | Display method and program for image | |
US9665926B2 (en) | Method for object displaying and electronic device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |