WO2019000746A1 - Procédé permettant de modifier la couleur du texte d'une commande, système, dispositif électronique et support d'informations - Google Patents

Procédé permettant de modifier la couleur du texte d'une commande, système, dispositif électronique et support d'informations Download PDF

Info

Publication number
WO2019000746A1
WO2019000746A1 PCT/CN2017/108779 CN2017108779W WO2019000746A1 WO 2019000746 A1 WO2019000746 A1 WO 2019000746A1 CN 2017108779 W CN2017108779 W CN 2017108779W WO 2019000746 A1 WO2019000746 A1 WO 2019000746A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
text
background image
color value
significant
Prior art date
Application number
PCT/CN2017/108779
Other languages
English (en)
Chinese (zh)
Inventor
何兵
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019000746A1 publication Critical patent/WO2019000746A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the invention relates to the field of control display of an application program, in particular to a text color conversion method, system, electronic device and storage medium of a control.
  • the text color corresponding to each text control of the application is usually fixed, and the color of the text background image corresponding to the text control is not fixed, and the color of the background image of the text occurs.
  • the color of the background image of the text control is similar to the color of the text of the text control. In this case, it is difficult for the user to see the text content of the text control, resulting in the inability to operate the text control or often A situation in which a misoperation occurred.
  • the object of the present invention is to provide a text color conversion method for a control, which aims to solve the problem that the user can hardly see the text content of the control, which makes it impossible to operate the text control or frequently misoperation.
  • the present invention provides a text color conversion method for a control, the method comprising the following steps:
  • the configuration file of the application is obtained, and the configuration file includes controls of each control of the application.
  • the tree, and the attribute data of each control, the control structure tree includes at least one control node branch, and the master node of each control node branch corresponds to the first layer control of the application, and the control corresponding to the lower node of each control node branch Is the lower layer control corresponding to the corresponding node of the superior node;
  • the present invention also provides an electronic device memory, a processor, and a text color conversion system of a control stored on a memory and operable on the processor, the text color conversion system of the control is processed by the processor The following steps are implemented during execution:
  • the application configuration file is obtained, and the configuration file includes the application.
  • the control structure tree of each control, and the attribute data of each control, the control structure tree includes at least one control node branch, and the main node of each control node branch corresponds to the first layer control of the application, and each control node branches,
  • the control corresponding to the lower node is the lower control of the corresponding control corresponding to the upper node;
  • the present invention further provides a computer readable storage medium storing a text color conversion program of a control, wherein a text color conversion program of the control is executable by at least one processor to enable at least one The processor performs the following steps:
  • the present invention further provides a text color conversion system for a control, and the text color conversion system of the control includes:
  • a first obtaining module configured to acquire a configuration file of the application after the online running of an application, and/or after the text background image of the text control of the application is changed, in the configuration file a control structure tree including respective controls of the application, and attribute data of the respective controls, the control structure tree includes at least one control node branch, and a master node of each of the control node branches corresponds to the application
  • the first layer control under each of the control node branches, the control corresponding to the lower node is a lower layer control corresponding to the corresponding upper node;
  • a first identification module configured to identify a text control included in the application according to the configuration file, and determine a view control of a superior node of each text control according to a control structure tree of the text control;
  • the first color conversion module is configured to adjust a text color value of the text control corresponding to the background image according to a significant color value corresponding to the background image corresponding to the view control.
  • the beneficial effects of the present invention are: obtaining a configuration file of the application after the online operation of an application, and/or after the text background image of the text control having the application is changed, and identifying the configuration file in the configuration file
  • the text control included in the application determines the view control of the upper node of each text control according to the control structure tree in the configuration file; further obtains the background image corresponding to each view control in the configuration file, and separately counts each pixel in each background image Yan
  • the color value and the number of pixels corresponding to each color value in each background image are respectively counted, and the significant color values corresponding to the respective background images are determined according to the statistical result, and the corresponding background images are correspondingly adjusted according to the significant color values corresponding to the respective background images.
  • the text color value of the text control Therefore, the user can easily see the text content of the control, and solve the problem that the user can hardly see the text content of the control, and the operation of the text control cannot be performed or the operation is frequently performed.
  • step S3 is a schematic diagram of a refinement process of step S3 shown in FIG. 1;
  • FIG. 3 is a schematic diagram showing the refinement process of step S31-3 shown in FIG. 2;
  • step S3 is a schematic diagram showing the refinement process of step S3 shown in FIG. 1 in another embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing the refinement process of step S32-3 shown in FIG. 4;
  • FIG. 6 is a schematic diagram of an operating environment of an embodiment of a data source-based service customization system according to the present invention.
  • Figure 7 is a schematic structural view of an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a first color conversion module shown in FIG. 7;
  • FIG. 9 is a schematic structural diagram of a color value adjusting unit of the control shown in FIG. 8.
  • FIG. 1 is a schematic diagram of an optional hardware architecture of the electronic device 1 of the present invention.
  • the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, a network interface 13, and a display 14 that are communicably connected to each other through a system bus.
  • FIG. 1 only shows the electronic device 1 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static random access.
  • Memory SRAM
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • PROM programmable read only memory
  • magnetic memory magnetic disk, optical disk, and the like.
  • the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1.
  • the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and a secure digital (Secure Digital, SD). ) cards, flash cards, etc.
  • the memory 11 can also include both an internal storage unit of the electronic device 2 and an external storage device thereof.
  • the memory 11 is generally used to store an operating system installed in the electronic device 1 and various types of application software, such as program code of the character color conversion system 10 of the control. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the electronic device 1.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, such as the text color conversion system 10 of the running control, and the like.
  • the network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
  • the display 14 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like in some embodiments.
  • the display 14 is for displaying information processed in the electronic device 1 and a user interface for displaying visualization.
  • FIG. 2 is a schematic flowchart of an embodiment of the present invention, including the following steps:
  • the configuration file of the application is obtained as needed, or after the application is run online, if there is a text background image of the text control of the application Once the change has taken, get the application's configuration file.
  • S2 according to the configuration file, identify the text control included in the application, and determine the view control of the superior node of each text control.
  • the configuration file in step S1 includes a control structure tree of each control of the application, and attribute data of each control, the control structure tree includes at least one control node branch, and the master node of each control node branch corresponds to the application.
  • the first layer of the control, under each control node branch, the control corresponding to the lower node is the lower control corresponding to the corresponding control of the upper node.
  • the control display control system recognizes the control as a text control.
  • the attribute data of the control includes a pixel area of the control, a function of the control, a control name of the text control, a picture of the view control, and the like.
  • the lower-level control of the view control corresponds to a text control
  • the control corresponding to the lower-level node corresponding to the node corresponding to the view control is a text control.
  • step S2 is to identify a text control included in the application according to the configuration file, and determine a view control of the upper node of each text control according to the control structure tree.
  • step S3 includes the following steps:
  • step S31-3 includes the following steps:
  • S31-3a compares the number of pixels corresponding to each color value in each background picture.
  • S31-3b finds the color value with the largest number of corresponding pixels in each background image, and the color value with the largest number of pixels is the significant color value corresponding to the background image.
  • a color value found is randomly selected as the significant color value corresponding to the background image, if a background image corresponds to If there is one color value with the largest number of pixels, the color value found is the significant color value corresponding to the background image.
  • step S31-3 is refined into the following steps:
  • the text color value of the text control corresponding to the X1 background image is adjusted to the opposite color value a
  • the X2 background image is correspondingly The text color value of the text control is adjusted to the opposite color value b.
  • the embodiment obtains the configuration file of the application, identifies the text control included in the application according to the configuration file, and determines the view control of the upper node of each text control according to the control structure tree of the text control. Then, according to the significant color value corresponding to the background image corresponding to each view control, the text color value of the text control corresponding to each background image is adjusted. That is to say, in the case that the color of the text background image of the text control and the text color of the text control are very similar, the user can clearly see the text content of the control, further ensuring the normal operation of the text control by the user, and avoiding the user being unable to control the text control. Operation or misoperation.
  • FIG. 5 is a refinement flow chart of step S3 in another embodiment.
  • step S3 includes the following steps:
  • S32-1 Obtain a background image corresponding to each view control, and determine a pixel area of each text control.
  • the salient picture area in each background picture is consistent with the pixel area of the corresponding text control.
  • step S32-3 includes the following steps:
  • S32-3a separately counts the color values of each pixel in each significant picture area and separately counts the number of pixels corresponding to each color value in each significant picture area.
  • S32-3b determines the significant color value corresponding to each significant picture area according to the statistical result.
  • the embodiment obtains the configuration file of the application, identifies the text control included in the application according to the configuration file, and determines the view control of the upper node of each text control according to the control structure tree of the text control. Then, according to the significant color value corresponding to the background image corresponding to each view control, the text color value of the text control corresponding to each background image is adjusted. That is to say, in the case that the color of the text background image of the text control and the text color of the text control are very similar, the user can clearly see the text content of the control, further ensuring the normal operation of the text control by the user, and avoiding the user being unable to control the text control. Operation or misoperation.
  • the present embodiment replaces the text color value corresponding to the text control corresponding to each background image according to the significant color value corresponding to the background image corresponding to each view control, and determines the background image and the corresponding text control.
  • the significant image area corresponding to the pixel area is determined, and the significant color value corresponding to each significant picture area is determined, and the text color value of the text control corresponding to each background picture is adjusted according to the significant color value of the significant picture area. Furthermore, the adjustment accuracy of the text color value of the text control is further improved.
  • FIG. 7 is a functional block diagram of a preferred embodiment of the text color conversion system 10 of the control of the present invention.
  • the text color conversion system 10 of the control may be divided into one or more modules, one or more modules being stored in the memory 11 and being processed by one or more processors (this embodiment is a processor) 12) Executed to complete the present invention.
  • the text color conversion system 10 of the control may be divided into a first acquisition module 101, a first identification module 102, and a first color conversion module 103.
  • module refers to a series of computer program instruction segments capable of performing a specific function, which is more suitable for describing the execution process of the text color conversion system 10 of the control in the electronic device 1 than the program, wherein:
  • the first obtaining module 101 is configured to obtain an application configuration file after the online running of an application, and/or after the text background image of the text control of the application is changed.
  • the first identification module 102 is configured to identify a text control included in the application, and determine a view control of the upper node of each text control according to the control structure tree of the text control.
  • the first color conversion module 103 is configured to adjust the text color value of the text control corresponding to each background image according to the significant color value corresponding to the background image corresponding to each view control.
  • the first color conversion module 103 includes:
  • the obtaining unit 1031 is configured to acquire a background image corresponding to each view control.
  • the statistic unit 1032 is configured to separately count the color values of each pixel in each background image and separately count the number of pixels corresponding to each color value in each background image.
  • the control color value adjusting unit 1033 is configured to determine a significant color value corresponding to each background image according to the statistical result, and adjust each background image according to the significant color value corresponding to each background image.
  • control color value adjusting unit 1033 includes:
  • the analysis sub-unit 1033a is configured to respectively compare the sizes of the number of pixel points corresponding to the respective color values in the respective background pictures.
  • the value determining sub-unit 1033b is configured to respectively find the color value of the largest number of corresponding pixel points in each background image. If there are multiple color values of the corresponding pixel points in a background image, the random selection is performed. A color value found is used as a significant color value corresponding to the background image. If the number of corresponding pixels in a background image has a maximum color value, the color value found is the significant color value corresponding to the background image.
  • the color value adjustment sub-unit 1033c is configured to adjust the text color value of the text control corresponding to each background image according to the significant color value corresponding to the background image.
  • the text color conversion system of the control of the present invention further includes:
  • the second obtaining module is configured to obtain a background image corresponding to each view control, and determine a pixel area of each text control.
  • the second identification module is configured to separately count the color values of the respective pixels in each of the significant picture regions and separately count the number of pixels corresponding to the respective color values in each of the significant image regions.
  • the second statistic module is configured to separately count the color values of the respective pixels in each of the significant image regions, that is, respectively count the number of pixels corresponding to the respective color values in each of the significant image regions.
  • the second color conversion module is configured to determine a significant color value corresponding to each of the significant image regions according to the statistical result, and adjust the text color value of the text control corresponding to each background image according to the significant color value of each significant image region.
  • the configuration file of the application is obtained, and the configuration file is identified in the configuration file.
  • the text control included in the application determines the view control of the upper node of each text control according to the control structure tree in the configuration file; further obtains the background image corresponding to each view control in the configuration file, and separately counts each pixel in each background image.
  • the color value and the number of pixels corresponding to each color value in each background image are respectively counted, and the significant color values corresponding to the respective background images are determined according to the statistical result, and the corresponding background images are correspondingly adjusted according to the significant color values corresponding to the respective background images.
  • the text color value of the text control Therefore, the user can easily see the text content of the control, and solve the problem that the user can hardly see the text content of the control, and the operation of the text control cannot be performed or the operation is frequently performed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)
  • Processing Or Creating Images (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

La présente invention, qui concerne un procédé de modification de la couleur du texte d'une commande, un système, un dispositif électronique et un support d'informations, comprend les étapes consistant : à acquérir un fichier de configuration d'une application une fois que l'application s'exécute en ligne et/ou une fois qu'une image d'arrière-plan de texte d'une commande textuelle de l'application change ; selon le fichier de configuration, à identifier des commandes textuelles contenues dans l'application, et à déterminer des commandes de visualisation de nœuds de niveau supérieur de diverses commandes textuelles conformément à un arbre de structure de commandes des commandes textuelles ; et à ajuster, suivant des valeurs de couleurs notables correspondant à des images d'arrière-plan qui correspondent aux commandes de visualisation, des valeurs de couleur de texte de commandes textuelles correspondant aux images d'arrière-plan. La présente invention évite que le contenu textuel d'une commande textuelle soit difficilement visible pour un utilisateur lorsque la couleur d'une image d'arrière-plan de texte de la commande textuelle est très proche de la couleur du texte de la commande textuelle, et peut éviter qu'il soit impossible de réaliser une opération sur une commande textuelle, ou réduire la fréquence des opérations involontaires.
PCT/CN2017/108779 2017-06-25 2017-10-31 Procédé permettant de modifier la couleur du texte d'une commande, système, dispositif électronique et support d'informations WO2019000746A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710490394.7 2017-06-25
CN201710490394.7A CN107704253B (zh) 2017-06-25 2017-06-25 控件的文字颜色变换方法、***及电子装置

Publications (1)

Publication Number Publication Date
WO2019000746A1 true WO2019000746A1 (fr) 2019-01-03

Family

ID=61170486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108779 WO2019000746A1 (fr) 2017-06-25 2017-10-31 Procédé permettant de modifier la couleur du texte d'une commande, système, dispositif électronique et support d'informations

Country Status (2)

Country Link
CN (1) CN107704253B (fr)
WO (1) WO2019000746A1 (fr)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614723B (zh) * 2018-04-28 2019-09-13 北京字节跳动网络技术有限公司 防止界面控件的属性信息被窃取的方法及其装置
CN110858153B (zh) * 2018-08-22 2023-08-15 沈阳美行科技股份有限公司 一种控件自适应显示的方法和装置
CN109189682B (zh) * 2018-08-27 2022-03-22 北京云测信息技术有限公司 一种脚本录制方法和装置
CN111562955B (zh) * 2020-02-27 2022-02-08 华为技术有限公司 终端设备主题色彩的配置方法、装置和终端设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101776991A (zh) * 2009-12-28 2010-07-14 金蝶软件(中国)有限公司 一种控件的显示文本的替换方法和装置
CN104808998A (zh) * 2015-05-15 2015-07-29 深圳市欧珀通信软件有限公司 显示全局控件的方法、装置及移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605175B (zh) * 2009-07-13 2012-04-18 中兴通讯股份有限公司 一种移动终端显示桌面文字颜色的方法及装置
KR20110110390A (ko) * 2010-04-01 2011-10-07 가톨릭대학교 산학협력단 대화형 유전자 알고리즘을 기반으로 사용자 취향을 반영한 감정 기반 영상의 색변환 방법
CN103137103B (zh) * 2011-12-05 2016-09-14 南京中兴新软件有限责任公司 文字显示方法及装置
CN105700925B (zh) * 2016-01-13 2019-02-19 深圳市华讯方舟软件信息有限公司 一种app的界面实现方法和装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101776991A (zh) * 2009-12-28 2010-07-14 金蝶软件(中国)有限公司 一种控件的显示文本的替换方法和装置
CN104808998A (zh) * 2015-05-15 2015-07-29 深圳市欧珀通信软件有限公司 显示全局控件的方法、装置及移动终端

Also Published As

Publication number Publication date
CN107704253A (zh) 2018-02-16
CN107704253B (zh) 2021-05-07

Similar Documents

Publication Publication Date Title
US11605087B2 (en) Method and apparatus for identifying identity information
WO2019000746A1 (fr) Procédé permettant de modifier la couleur du texte d'une commande, système, dispositif électronique et support d'informations
WO2022105179A1 (fr) Procédé et appareil de reconnaissance d'image de caractéristiques biologiques, dispositif électronique et support de stockage lisible
CN112118286B (zh) 基于mdc多线程链路追踪方法、装置及计算机可读存储介质
WO2020253508A1 (fr) Procédé et appareil de détection de cellule anormale, et support d'informations lisible par ordinateur
WO2019080411A1 (fr) Appareil électrique, procédé de recherche de regroupement d'images faciales, et support d'informations lisible par ordinateur
WO2019019595A1 (fr) Procédé de mise en correspondance d'image, procédé de dispositif électronique, appareil, dispositif électronique et support
CN109446061B (zh) 一种页面检测方法、计算机可读存储介质及终端设备
JP2020515983A (ja) 対象人物の検索方法および装置、機器、プログラム製品ならびに媒体
CN112137591B (zh) 基于视频流的目标物位置检测方法、装置、设备及介质
WO2019056793A1 (fr) Dispositif, procédé et support d'enregistrement lisible par ordinateur pour l'identification de curriculum vitae
CN103765421A (zh) 内容控制方法、内容控制装置以及程序
CN111402120A (zh) 一种标注图像处理方法及装置
CN112149570B (zh) 多人活体检测方法、装置、电子设备及存储介质
CN112347512A (zh) 图像处理方法、装置、设备及存储介质
US20150320311A1 (en) Method and apparatus for iris recognition using natural light
CN108932703B (zh) 图片处理方法、图片处理装置及终端设备
US9767075B2 (en) System and method for implementing screen capture
CN112306473B (zh) 一种程序接口传参方法、***及相关设备
CN112528610A (zh) 一种数据标注方法、装置、电子设备及存储介质
US9685197B2 (en) Method for generating thumbnail and electronic device thereof
WO2023134080A1 (fr) Procédé et appareil d'identification de mystification de caméra, dispositif et support de stockage
CN111444253A (zh) 数据导入方法、装置、计算机可读存储介质和计算机设备
CN109189728B (zh) 智能硬件设备、磁盘数据处理方法和存储介质
CN109191379B (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: 17915563

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.05.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17915563

Country of ref document: EP

Kind code of ref document: A1