技术领域technical field
本发明涉及终端技术领域,尤其涉及一种终端中盖板玻璃颜色识别方法和装置。The present invention relates to the technical field of terminals, in particular to a method and device for identifying the color of a cover glass in a terminal.
背景技术Background technique
随着电子技术和通信技术的发展,终端的使用越来越广泛。在终端的一些应用场景下,需要对终端中贴在显示屏上的器件盖板玻璃的颜色进行识别,该识别出的颜色可以作为终端中相关应用的输入参数,相关应用可以例如为对终端的性能进行测试的应用。With the development of electronic technology and communication technology, terminals are used more and more widely. In some application scenarios of the terminal, it is necessary to identify the color of the device cover glass attached to the display screen in the terminal. The identified color can be used as an input parameter for related applications in the terminal. The performance of the application is tested.
发明内容Contents of the invention
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
为此,本发明的一个目的在于提出一种终端中盖板玻璃颜色识别方法,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。Therefore, an object of the present invention is to provide a method for identifying the color of a cover glass in a terminal, which can realize efficient identification of the color of the cover glass and improve the appearance of the terminal.
本发明的另一个目的在于提出一种终端中盖板玻璃颜色识别装置。Another object of the present invention is to provide a device for identifying the color of a cover glass in a terminal.
为达到上述目的,本发明第一方面实施例提出的终端中盖板玻璃颜色识别方法,包括:检测终端中盖板玻璃所反射光线的强度值;根据所述光线的强度值对所述盖板玻璃的颜色进行识别。In order to achieve the above purpose, the method for identifying the color of the cover glass in the terminal proposed by the embodiment of the first aspect of the present invention includes: detecting the intensity value of the light reflected by the cover glass in the terminal; The color of the glass is identified.
本发明第一方面实施例提出的终端中盖板玻璃颜色识别方法,通过检测终端中盖板玻璃所反射光线的强度值,并根据光线的强度值对盖板玻璃的颜色进行识别,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。The method for identifying the color of the cover glass in the terminal proposed by the embodiment of the first aspect of the present invention detects the intensity value of the light reflected by the cover glass in the terminal, and identifies the color of the cover glass according to the intensity value of the light, so as to realize the identification of the color of the cover glass in the terminal. Efficiently identify the color of the cover glass to improve the appearance of the terminal.
为达到上述目的,本发明第二方面实施例提出的终端中盖板玻璃颜色识别装置,包括:第一检测模块,用于检测终端中盖板玻璃所反射光线的强度值;识别模块,用于根据所述光线的强度值对所述盖板玻璃的颜色进行识别。In order to achieve the above purpose, the device for identifying the color of the cover glass in the terminal proposed by the embodiment of the second aspect of the present invention includes: a first detection module for detecting the intensity value of light reflected by the cover glass in the terminal; an identification module for The color of the cover glass is identified according to the intensity value of the light.
本发明第二方面实施例提出的终端中盖板玻璃颜色识别装置,通过检测终端中盖板玻璃所反射光线的强度值,并根据光线的强度值对盖板玻璃的颜色进行识别,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。The device for identifying the color of the cover glass in the terminal proposed by the embodiment of the second aspect of the present invention detects the intensity value of the light reflected by the cover glass in the terminal and identifies the color of the cover glass according to the intensity value of the light. Efficiently identify the color of the cover glass to improve the appearance of the terminal.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1是本发明一实施例提出的终端中盖板玻璃颜色识别方法的流程示意图;FIG. 1 is a schematic flowchart of a method for identifying the color of a cover glass in a terminal proposed by an embodiment of the present invention;
图2是本发明另一实施例提出的终端中盖板玻璃颜色识别方法的流程示意图;2 is a schematic flowchart of a method for identifying the color of a cover glass in a terminal proposed by another embodiment of the present invention;
图3是本发明另一实施例提出的终端中盖板玻璃颜色识别方法的流程示意图;3 is a schematic flowchart of a method for identifying the color of a cover glass in a terminal proposed by another embodiment of the present invention;
图4是本发明一实施例提出的终端中盖板玻璃颜色识别装置的结构示意图;Fig. 4 is a schematic structural diagram of a cover glass color recognition device in a terminal proposed by an embodiment of the present invention;
图5是本发明另一实施例提出的终端中盖板玻璃颜色识别装置的结构示意图;5 is a schematic structural diagram of a cover glass color recognition device in a terminal proposed by another embodiment of the present invention;
图6是本发明一个实施例提出的终端的结构示意图。Fig. 6 is a schematic structural diagram of a terminal proposed by an embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.
图1是本发明一实施例提出的终端中盖板玻璃颜色识别方法的流程示意图。FIG. 1 is a schematic flowchart of a method for identifying the color of a cover glass in a terminal proposed by an embodiment of the present invention.
该终端中盖板玻璃颜色识别方法应用于终端中。The method for identifying the color of the cover glass in the terminal is applied to the terminal.
其中,终端可以是智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。Wherein, the terminal may be a smart phone, a tablet computer, a personal digital assistant, an e-book, and other hardware devices with various operating systems.
在终端的一些应用场景下,需要对终端中贴在显示屏上的器件盖板玻璃的颜色进行识别,该识别出的颜色可以作为终端中相关应用的输入参数,相关应用可以例如为对终端的性能进行测试的应用,也可以为其它,对此不作限制。In some application scenarios of the terminal, it is necessary to identify the color of the device cover glass attached to the display screen in the terminal. The identified color can be used as an input parameter for related applications in the terminal. The application for performance testing may also be other, which is not limited.
进一步地,可以在终端发生预设事件时,触发执行该终端中盖板玻璃颜色识别方法,其中,预设事件为触发识别盖板玻璃颜色的事件,对此不作限制。Further, when a preset event occurs in the terminal, the execution of the method for identifying the color of the cover glass in the terminal can be triggered, wherein the preset event is an event that triggers the recognition of the color of the cover glass, which is not limited.
参见图1,该方法包括:Referring to Figure 1, the method includes:
S11:检测终端中盖板玻璃所反射光线的强度值。S11: Detect the intensity value of light reflected by the cover glass in the terminal.
在本发明的实施例中,可以在检测终端中盖板玻璃所反射光线的强度值之前,检测是否发生预设事件,其中,所述预设事件为触发识别所述盖板玻璃颜色的事件,在发生所述预设事件时,生成识别指令,通过该识别指令触发检测终端中盖板玻璃所反射光线的强度值,对此不作限制。In an embodiment of the present invention, before detecting the intensity value of light reflected by the cover glass in the terminal, it is possible to detect whether a preset event occurs, wherein the preset event is an event that triggers recognition of the color of the cover glass, When the preset event occurs, an identification instruction is generated, and the identification instruction is used to trigger the detection of the intensity value of the light reflected by the cover glass in the terminal, which is not limited.
其中,识别指令可以是预先生成的,识别指令用于触发终端执行该终端中盖板玻璃颜色识别方法。Wherein, the recognition instruction may be pre-generated, and the recognition instruction is used to trigger the terminal to execute the method for recognizing the color of the cover glass in the terminal.
具体地,识别指令可以由用户对终端中的相关功能进行设置所生成,或者,识别指令也可以由终端发生预设事件时所生成,对此不作限制。Specifically, the recognition instruction may be generated by the user setting related functions in the terminal, or the recognition instruction may also be generated when a preset event occurs in the terminal, which is not limited.
在本发明的实施例中,可以通过设置在盖板玻璃背面的红外传感器检测终端中盖板玻璃所反射光线的强度值,或者,也可以通过相关技术中的光检测器,例如,光电倍增管、热电探测器、或者光电二极管检测盖板玻璃所反射光线的光信号,通过终端中的中央处理器(Central Processing Unit,CPU)对该光信号进行相应的分析处理,得到该光线的强度值,对此不作限制。In the embodiment of the present invention, the intensity value of light reflected by the cover glass in the terminal can be detected by an infrared sensor arranged on the back of the cover glass, or can also be detected by a photodetector in the related art, such as a photomultiplier tube , pyroelectric detector, or photodiode to detect the optical signal of the light reflected by the cover glass, and the central processing unit (Central Processing Unit, CPU) in the terminal performs corresponding analysis and processing on the optical signal to obtain the intensity value of the light. There is no limit to this.
通过设置在盖板玻璃背面的红外传感器检测终端中盖板玻璃所反射光线的强度值,实现简单且成本较低,有效提升方法适用范围。The intensity value of light reflected by the cover glass in the terminal is detected by an infrared sensor arranged on the back of the cover glass, which is simple to implement and low in cost, and effectively improves the scope of application of the method.
S12:根据光线的强度值对盖板玻璃的颜色进行识别。S12: Identify the color of the cover glass according to the intensity value of the light.
可以理解的是,由于盖板玻璃的颜色是通过印刷油墨进行颜色处理,将盖板玻璃安装在终端的显示屏上,在终端处于启动状态时,不同颜色的盖板玻璃所反射光线的强度值不同,因此,可以通过检测终端中盖板玻璃所反射光线的强度值,来识别盖板玻璃颜色,实现简便,且识别精准度高。It can be understood that since the color of the cover glass is color-processed by printing ink, the cover glass is installed on the display screen of the terminal. Therefore, the color of the cover glass can be identified by detecting the intensity value of light reflected by the cover glass in the terminal, which is easy to implement and has high identification accuracy.
本实施例中,通过检测终端中盖板玻璃所反射光线的强度值,并根据光线的强度值对盖板玻璃的颜色进行识别,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。In this embodiment, by detecting the intensity value of the light reflected by the cover glass in the terminal, and identifying the color of the cover glass according to the intensity value of the light, it is possible to efficiently identify the color of the cover glass and improve the appearance of the terminal Effect.
图2是本发明另一实施例提出的终端中盖板玻璃颜色识别方法的流程示意图。FIG. 2 is a schematic flowchart of a method for identifying the color of a cover glass in a terminal proposed by another embodiment of the present invention.
参见图2,该方法包括:Referring to Figure 2, the method includes:
S21:检测是否发生预设事件,其中,预设事件为触发识别盖板玻璃颜色的事件,若是,执行S23及其后续步骤,否则,执行S22。S21: Detect whether a preset event occurs, wherein the preset event is an event that triggers identification of the color of the cover glass, if yes, execute S23 and subsequent steps, otherwise, execute S22.
在终端的一些应用场景下,该识别出的颜色可以作为终端中相关应用的输入参数,相关应用可以例如为对终端的性能进行测试的应用,也可以为其它,对此不作限制。In some application scenarios of the terminal, the identified color may be used as an input parameter of a related application in the terminal, and the related application may be, for example, an application for testing the performance of the terminal, or other applications, which are not limited.
预设事件可以例如,在终端中启动对终端的性能进行测试的应用。The preset event may, for example, start an application in the terminal to test the performance of the terminal.
在本发明的实施例中,通过检测终端是否发生预设事件,由检测结果触发或者不触发终端识别盖板玻璃颜色,识别灵敏度高且实用。In the embodiment of the present invention, by detecting whether a preset event occurs in the terminal, the detection result triggers or does not trigger the terminal to recognize the color of the cover glass, which has high recognition sensitivity and is practical.
S22:不作任何处理。S22: Do not do any processing.
在本发明的实施例中,在检测终端未发生预设事件时,不触发终端识别盖板玻璃颜色,即,不作任何处理,可以节省终端运行程序所耗损的内存空间。In the embodiment of the present invention, when no preset event occurs in the detection terminal, the terminal is not triggered to identify the color of the cover glass, that is, no processing is performed, which can save the memory space consumed by the terminal running the program.
S23:生成识别指令。S23: Generate a recognition instruction.
在本发明的实施例中,在检测终端发生预设事件时,触发终端识别盖板玻璃颜色,保障终端中相关应用获得准确的颜色参数,实现终端的功能完备性。In the embodiment of the present invention, when a preset event occurs in the detection terminal, the terminal is triggered to identify the color of the cover glass, so as to ensure that relevant applications in the terminal obtain accurate color parameters and realize the functional integrity of the terminal.
S24:通过设置在盖板玻璃背面的红外传感器检测终端中盖板玻璃所反射光线的强度值。S24: Detect the intensity value of the light reflected by the cover glass in the terminal through the infrared sensor arranged on the back of the cover glass.
例如,黑色的盖板玻璃和白色的盖板玻璃所反射光线的强度值不同,因此,可以由红外传感器检测终端中盖板玻璃所反射光线的光信号,并将该光信号发送至终端中的CPU,由CPU对该光信号进行相应的分析处理,得到该光线的强度值,进而后续根据光线的强度值对盖板玻璃的颜色进行识别。For example, the intensity value of the light reflected by the black cover glass and the white cover glass is different. Therefore, the infrared sensor can detect the light signal of the light reflected by the cover glass in the terminal, and send the light signal to the terminal in the terminal. The CPU performs corresponding analysis and processing on the light signal to obtain the intensity value of the light, and then subsequently recognizes the color of the cover glass according to the intensity value of the light.
通过设置在盖板玻璃背面的红外传感器检测终端中盖板玻璃所反射光线的强度值,实现简单且成本较低,有效提升方法适用范围。The intensity value of light reflected by the cover glass in the terminal is detected by an infrared sensor arranged on the back of the cover glass, which is simple to implement and low in cost, and effectively improves the scope of application of the method.
S25:从预设颜色对应关系表中,确定出与光线的强度值对应的颜色。S25: Determine the color corresponding to the intensity value of the light from the preset color correspondence table.
其中,预设颜色对应关系表可以是预先建立的。Wherein, the preset color correspondence table may be established in advance.
预设颜色对应关系表的建立过程可以参见后续实施例。For the establishment process of the preset color correspondence table, refer to the subsequent embodiments.
预设颜色对应关系表中可以保存多个光线的强度值,及每个光线的强度值对应的颜色。The intensity values of multiple light rays and the color corresponding to each light intensity value can be stored in the preset color correspondence table.
S26:将对应的颜色作为盖板玻璃的颜色,以对盖板玻璃颜色进行识别。S26: Use the corresponding color as the color of the cover glass to identify the color of the cover glass.
通过直接根据终端中预存的预设颜色对应关系表确定出与光线的强度值对应的颜色,并将对应的颜色作为盖板玻璃的颜色,有效保证了盖板玻璃颜色识别效率和精准度。By directly determining the color corresponding to the light intensity value according to the preset color correspondence table stored in the terminal, and using the corresponding color as the color of the cover glass, the efficiency and accuracy of color recognition of the cover glass are effectively guaranteed.
本实施例中,通过检测终端是否发生预设事件,由检测结果触发或者不触发终端识别盖板玻璃颜色,识别灵敏度高且实用。在检测终端未发生预设事件时,不触发终端识别盖板玻璃颜色,即,不作任何处理,可以节省终端运行程序所耗损的内存空间。在检测终端发生预设事件时,触发终端识别盖板玻璃颜色,保障终端中相关应用获得准确的颜色参数,实现终端的功能完备性。通过设置在盖板玻璃背面的红外传感器检测终端中盖板玻璃所反射光线的强度值,实现简单且成本较低,有效提升方法适用范围。通过直接根据终端中预存的预设颜色对应关系表确定出与光线的强度值对应的颜色,并将对应的颜色作为盖板玻璃的颜色,有效保证了盖板玻璃颜色识别效率和精准度。通过在接收到识别指令时,检测终端中盖板玻璃所反射光线的强度值,并根据光线的强度值对盖板玻璃的颜色进行识别,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。In this embodiment, by detecting whether a preset event occurs in the terminal, the detection result triggers or does not trigger the terminal to recognize the color of the cover glass, which has high recognition sensitivity and is practical. When no preset event occurs in the detection terminal, the terminal is not triggered to identify the color of the cover glass, that is, no processing is performed, which can save the memory space consumed by the terminal running the program. When a preset event occurs in the detection terminal, the terminal is triggered to identify the color of the cover glass to ensure that the relevant applications in the terminal obtain accurate color parameters and realize the functional integrity of the terminal. The intensity value of light reflected by the cover glass in the terminal is detected by an infrared sensor arranged on the back of the cover glass, which is simple to implement and low in cost, and effectively improves the scope of application of the method. By directly determining the color corresponding to the light intensity value according to the preset color correspondence table stored in the terminal, and using the corresponding color as the color of the cover glass, the efficiency and accuracy of color recognition of the cover glass are effectively guaranteed. By detecting the intensity value of the light reflected by the cover glass in the terminal when receiving the recognition instruction, and identifying the color of the cover glass according to the intensity value of the light, it is possible to realize efficient identification of the color of the cover glass and improve the terminal Appearance performance.
图3是本发明另一实施例提出的终端中盖板玻璃颜色识别方法的流程示意图。FIG. 3 is a schematic flowchart of a method for identifying the color of a cover glass in a terminal proposed by another embodiment of the present invention.
参见图3,在图1所示实施例中S11之前,该方法包括:Referring to Fig. 3, before S11 in the embodiment shown in Fig. 1, the method includes:
S31:获取多种颜色,及每种颜色对应的光线的强度值。S31: Obtain multiple colors and the intensity value of light corresponding to each color.
S32:根据多种颜色和对应的光线的强度值建立预设颜色对应关系表。S32: Establish a preset color correspondence table according to multiple colors and corresponding light intensity values.
在本发明的实施例中,可以预先根据多种颜色,及每种颜色对应的光线的强度值之间的一一对应关系建立预设颜色对应关系表,并将该预设颜色对应关系表保存在终端的数据库中,后续直接根据终端中预存的预设颜色对应关系表确定出与光线的强度值对应的颜色,有效保证了盖板玻璃颜色识别效率和精准度。In the embodiment of the present invention, a preset color correspondence table can be established in advance according to the one-to-one correspondence between multiple colors and the intensity values of light corresponding to each color, and the preset color correspondence table can be saved In the database of the terminal, the color corresponding to the light intensity value is determined directly according to the preset color correspondence table stored in the terminal, which effectively ensures the efficiency and accuracy of color recognition of the cover glass.
本实施例中,通过获取多种颜色,及每种颜色对应的光线的强度值,根据多种颜色和对应的光线的强度值建立预设颜色对应关系表,有效保证了盖板玻璃颜色识别效率和精准度。In this embodiment, by acquiring multiple colors and the intensity value of the light corresponding to each color, a preset color correspondence table is established according to the multiple colors and the intensity value of the corresponding light, which effectively ensures the color recognition efficiency of the cover glass and precision.
图4是本发明一实施例提出的终端中盖板玻璃颜色识别装置的结构示意图。FIG. 4 is a schematic structural diagram of a cover glass color recognition device in a terminal proposed by an embodiment of the present invention.
参见图4,该终端中盖板玻璃颜色识别装置40包括:第一检测模块401和识别模块402。其中,Referring to FIG. 4 , the cover glass color recognition device 40 in the terminal includes: a first detection module 401 and a recognition module 402 . in,
第一检测模块401,用于检测终端中盖板玻璃所反射光线的强度值。The first detection module 401 is configured to detect the intensity value of the light reflected by the cover glass in the terminal.
可选地,一些实施例中,第一检测模块401具体用于:Optionally, in some embodiments, the first detection module 401 is specifically configured to:
通过设置在盖板玻璃背面的红外传感器检测终端中盖板玻璃所反射光线的强度值。The intensity value of light reflected by the cover glass in the terminal is detected by an infrared sensor arranged on the back of the cover glass.
识别模块402,用于根据光线的强度值对盖板玻璃的颜色进行识别。The identification module 402 is configured to identify the color of the cover glass according to the intensity value of the light.
可选地,一些实施例中,参见图5,识别模块402,包括:Optionally, in some embodiments, referring to FIG. 5, the identification module 402 includes:
确定子模块4021,用于从预设颜色对应关系表中,确定出与光线的强度值对应的颜色。The determination sub-module 4021 is configured to determine the color corresponding to the intensity value of the light from the preset color correspondence table.
识别子模块4022,用于将对应的颜色作为盖板玻璃的颜色,以对盖板玻璃颜色进行识别。The identifying sub-module 4022 is configured to use the corresponding color as the color of the cover glass to identify the color of the cover glass.
可选地,一些实施例中,参见图5,该终端中盖板玻璃颜色识别装置40还包括:Optionally, in some embodiments, referring to FIG. 5 , the cover glass color identification device 40 in the terminal further includes:
第二检测模块403,用于检测是否发生预设事件,其中,预设事件为触发识别盖板玻璃颜色的事件。The second detection module 403 is configured to detect whether a preset event occurs, wherein the preset event is an event that triggers recognition of the color of the cover glass.
触发模块404,用于在发生预设事件时,触发第一检测模块401检测终端中盖板玻璃所反射光线的强度值。The trigger module 404 is configured to trigger the first detection module 401 to detect the intensity value of light reflected by the cover glass in the terminal when a preset event occurs.
获取模块405,用于获取多种颜色,及每种颜色对应的光线的强度值。The acquiring module 405 is configured to acquire multiple colors and the intensity value of light corresponding to each color.
建立模块406,用于根据多种颜色和对应的光线的强度值建立预设颜色对应关系表。The establishment module 406 is configured to establish a preset color correspondence table according to various colors and corresponding light intensity values.
需要说明的是,前述图1-图3实施例中对终端中盖板玻璃颜色识别方法实施例的解释说明也适用于该实施例的终端中盖板玻璃颜色识别装置40,其实现原理类似,此处不再赘述。It should be noted that the explanations of the embodiment of the method for identifying the color of the cover glass in the terminal in the foregoing embodiments in FIGS. 1-3 are also applicable to the device 40 for identifying the color of the cover glass in the terminal in this embodiment. I won't repeat them here.
本实施例中,通过检测终端中盖板玻璃所反射光线的强度值,并根据光线的强度值对盖板玻璃的颜色进行识别,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。In this embodiment, by detecting the intensity value of the light reflected by the cover glass in the terminal, and identifying the color of the cover glass according to the intensity value of the light, it is possible to efficiently identify the color of the cover glass and improve the appearance of the terminal Effect.
图6是本发明一个实施例提出的终端的结构示意图。Fig. 6 is a schematic structural diagram of a terminal proposed by an embodiment of the present invention.
该终端可以是手机、平板电脑等。The terminal may be a mobile phone, a tablet computer, or the like.
参见图6,本实施例的终端60包括:壳体601、处理器602、存储器603、电路板604、电源电路605,电路板604安置在壳体601围成的空间内部,处理器602、存储器603设置在电路板604上;电源电路605,用于为终端60各个电路或器件供电;存储器603用于存储可执行程序代码;其中,处理器602通过读取存储器603中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行:Referring to FIG. 6, the terminal 60 of this embodiment includes: a housing 601, a processor 602, a memory 603, a circuit board 604, and a power supply circuit 605. 603 is set on the circuit board 604; the power supply circuit 605 is used to supply power to each circuit or device of the terminal 60; the memory 603 is used to store executable program code; wherein, the processor 602 reads the executable program code stored in the memory 603 to run the program corresponding to the executable program code for the execution of:
检测终端中盖板玻璃所反射光线的强度值;Detect the intensity value of light reflected by the cover glass in the terminal;
根据光线的强度值对盖板玻璃的颜色进行识别。The color of the cover glass is identified based on the intensity value of the light.
需要说明的是,前述图1-图3实施例中对终端中盖板玻璃颜色识别方法实施例的解释说明也适用于该实施例的终端60,其实现原理类似,此处不再赘述。It should be noted that the explanations of the embodiment of the method for identifying the color of the cover glass in the terminal in the foregoing embodiments in FIGS.
本实施例中,通过检测终端中盖板玻璃所反射光线的强度值,并根据光线的强度值对盖板玻璃的颜色进行识别,能够实现对盖板玻璃的颜色进行高效识别,提升终端外观表现效果。In this embodiment, by detecting the intensity value of the light reflected by the cover glass in the terminal, and identifying the color of the cover glass according to the intensity value of the light, it is possible to efficiently identify the color of the cover glass and improve the appearance of the terminal Effect.
需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that, in the description of the present invention, the terms "first", "second" and so on are only used for description purposes, and should not be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710073608.0ACN106908391A (en) | 2017-02-10 | 2017-02-10 | Terminal cover plate glass colour recognition methods and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710073608.0ACN106908391A (en) | 2017-02-10 | 2017-02-10 | Terminal cover plate glass colour recognition methods and device |
| Publication Number | Publication Date |
|---|---|
| CN106908391Atrue CN106908391A (en) | 2017-06-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710073608.0APendingCN106908391A (en) | 2017-02-10 | 2017-02-10 | Terminal cover plate glass colour recognition methods and device |
| Country | Link |
|---|---|
| CN (1) | CN106908391A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE3706056A1 (en)* | 1986-06-10 | 1988-05-11 | Baeckmann Reinhard | Process for generating and detecting optical spectra and a switching and sensor system, in particular for sewing and textiles automation |
| JP2006332774A (en)* | 2005-05-23 | 2006-12-07 | Nagasaki Univ | Terminal device |
| CN201130057Y (en)* | 2007-08-15 | 2008-10-08 | 广东威创视讯科技股份有限公司 | Color detector and color recognition device |
| CN201897568U (en)* | 2010-11-30 | 2011-07-13 | 福州前景彩印纸品有限公司 | Color analyzer |
| CN104316190A (en)* | 2014-11-03 | 2015-01-28 | 苏州精创光学仪器有限公司 | Method for measuring color, brightness and reflectance spectrum of glass at different angles |
| CN104571490A (en)* | 2013-10-15 | 2015-04-29 | Lg电子株式会社 | Terminal and operating method thereof |
| CN105230003A (en)* | 2013-04-15 | 2016-01-06 | 微软技术许可有限责任公司 | Extract True Colors from Color and IR Sensors |
| CN105279003A (en)* | 2015-11-23 | 2016-01-27 | 小米科技有限责任公司 | Terminal software configuration method and apparatus |
| CN105606542A (en)* | 2016-03-08 | 2016-05-25 | 京东方科技集团股份有限公司 | Color identification device and color identification method |
| CN106095316A (en)* | 2016-06-14 | 2016-11-09 | 广州华欣电子科技有限公司 | Touch objects color characteristic recognition methods, operating method of touch panel and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE3706056A1 (en)* | 1986-06-10 | 1988-05-11 | Baeckmann Reinhard | Process for generating and detecting optical spectra and a switching and sensor system, in particular for sewing and textiles automation |
| JP2006332774A (en)* | 2005-05-23 | 2006-12-07 | Nagasaki Univ | Terminal device |
| CN201130057Y (en)* | 2007-08-15 | 2008-10-08 | 广东威创视讯科技股份有限公司 | Color detector and color recognition device |
| CN201897568U (en)* | 2010-11-30 | 2011-07-13 | 福州前景彩印纸品有限公司 | Color analyzer |
| CN105230003A (en)* | 2013-04-15 | 2016-01-06 | 微软技术许可有限责任公司 | Extract True Colors from Color and IR Sensors |
| CN104571490A (en)* | 2013-10-15 | 2015-04-29 | Lg电子株式会社 | Terminal and operating method thereof |
| CN104316190A (en)* | 2014-11-03 | 2015-01-28 | 苏州精创光学仪器有限公司 | Method for measuring color, brightness and reflectance spectrum of glass at different angles |
| CN105279003A (en)* | 2015-11-23 | 2016-01-27 | 小米科技有限责任公司 | Terminal software configuration method and apparatus |
| CN105606542A (en)* | 2016-03-08 | 2016-05-25 | 京东方科技集团股份有限公司 | Color identification device and color identification method |
| CN106095316A (en)* | 2016-06-14 | 2016-11-09 | 广州华欣电子科技有限公司 | Touch objects color characteristic recognition methods, operating method of touch panel and device |
| Title |
|---|
| 谢广明 等: "《机器人编程基础》", 30 September 2013, 哈尔滨工程大学出版社* |
| 谭立新 等: "《智能家居机器人设计与控制》", 31 January 2015, 北京理工大学出版社* |
| Publication | Publication Date | Title |
|---|---|---|
| CN105025159B (en) | proximity sensor adjusting method and device | |
| US9449561B1 (en) | Light sensor obstruction detection | |
| US11094267B2 (en) | Proximity detection method, storage medium, and electronic device | |
| WO2019000409A1 (en) | Colour detection method and terminal | |
| CN105959492A (en) | A control method, device and mobile terminal of an infrared proximity sensor | |
| RU2016115731A (en) | METHOD AND DEVICE FOR MANAGING INTELLECTUAL DEVICE | |
| CN105606542A (en) | Color identification device and color identification method | |
| US9377366B2 (en) | Navigation device including thermal sensor | |
| CN105930809B (en) | Method for controlling fingerprint identification, fingerprint recognition control device and electronic installation | |
| WO2017114368A1 (en) | Method and device for processing photosensitive quality of camera module, and storage medium | |
| CN103823213A (en) | Method and terminal for measuring distance through proximity sensor | |
| WO2018161540A1 (en) | Fingerprint registration method and related product | |
| CN105187596B (en) | A kind of automatic device for testing temperature rise and method | |
| CN106131334B (en) | Method and device for controlling screen state of mobile terminal | |
| CN111473887A (en) | Shell temperature acquisition method and device, storage medium and electronic equipment | |
| CN111262986A (en) | Proximity sensor calibration method, calibration device and mobile terminal | |
| CN108322737A (en) | Camera frame rate measurement method and device | |
| CN108093118A (en) | The test method of device, test device and computer readable storage medium on mainboard | |
| CN106131311B (en) | Adjust the method, device and mobile terminal of the screen backlight brightness of mobile terminal | |
| CN104569673A (en) | Test circuit, method and device | |
| CN111815552A (en) | A workpiece detection method, device, readable storage medium and terminal device | |
| CN106412194A (en) | Method and device for testing flashlight of intelligent device | |
| CN106908391A (en) | Terminal cover plate glass colour recognition methods and device | |
| CN106448523A (en) | Method and system for testing display screens | |
| CN118746859A (en) | Triggered anti-interference signal method, system, device and storage medium |
| 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 | ||
| CB02 | Change of applicant information | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CB02 | Change of applicant information | ||
| TA01 | Transfer of patent application right | Effective date of registration:20211129 Address after:518057 Fuan Science and Technology Building, Block B, No. 13, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 207-2 Applicant after:Shenzhen Huantai Technology Co.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| TA01 | Transfer of patent application right | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170630 | |
| RJ01 | Rejection of invention patent application after publication |