CN116800883A - A function control method, device and storage medium - Google Patents
A function control method, device and storage medium Download PDFInfo
- Publication number
- CN116800883A CN116800883A CN202210253685.5A CN202210253685A CN116800883A CN 116800883 A CN116800883 A CN 116800883A CN 202210253685 A CN202210253685 A CN 202210253685A CN 116800883 A CN116800883 A CN 116800883A
- Authority
- CN
- China
- Prior art keywords
- terminal
- function
- spectrum analyzer
- identification
- triggered
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/17—Systems in which incident light is modified in accordance with the properties of the material investigated
- G01N21/25—Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Life Sciences & Earth Sciences (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
本公开是关于一种功能控制方法、装置以及存储介质。本公开的功能控制方法包括:响应于确定光谱分析仪被触发进行材质识别,获取光谱分析仪检测到的光谱分析线;基于光谱分析线,得到光谱分析仪进行材质识别的识别结果;控制终端执行匹配识别结果的功能。通过本公开实现了基于终端进行材质识别,并执行匹配材质识别结果的功能。
The present disclosure relates to a function control method, device and storage medium. The function control method of the present disclosure includes: in response to determining that the spectrum analyzer is triggered for material identification, obtaining the spectrum analysis line detected by the spectrum analyzer; based on the spectrum analysis line, obtaining the identification result of the spectrum analyzer for material identification; controlling the terminal execution Function to match recognition results. Through the present disclosure, the function of performing material recognition based on the terminal and performing matching material recognition results is realized.
Description
技术领域Technical field
本公开涉及终端技术领域,尤其涉及一种功能控制方法、装置以及存储介质。The present disclosure relates to the field of terminal technology, and in particular, to a function control method, device and storage medium.
背景技术Background technique
随着终端技术的发展,终端提供的功能也越来越多。例如,基于终端安装的光线传感器,可以实现的终端控制功能的种类也愈加丰富。比如,可以基于光线传感器进行终端口袋模式的识别,也可基于光线传感器进行显示画面的调整。With the development of terminal technology, terminals provide more and more functions. For example, based on the light sensor installed on the terminal, the types of terminal control functions that can be realized are becoming more and more abundant. For example, the terminal pocket mode can be recognized based on the light sensor, and the display screen can also be adjusted based on the light sensor.
然而,目前基于终端的光线传感器进行终端功能控制时,实现功能比较单一,主要用于进行光线的检测。However, when current terminal-based light sensors are used to control terminal functions, their functions are relatively simple and are mainly used for light detection.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种功能控制方法、装置以及存储介质。In order to overcome problems existing in related technologies, the present disclosure provides a function control method, device and storage medium.
根据本公开实施例的第一方面,提供一种功能控制方法,应用于终端,所述终端中安装有用于光线感应的光谱分析仪,所述功能控制方法包括:According to a first aspect of an embodiment of the present disclosure, a function control method is provided, applied to a terminal, and a spectrum analyzer for light sensing is installed in the terminal. The function control method includes:
响应于确定所述光谱分析仪被触发进行材质识别,获取所述光谱分析仪检测到的光谱分析线;基于所述光谱分析线,得到所述光谱分析仪进行材质识别的识别结果;控制所述终端执行匹配所述识别结果的功能。In response to determining that the spectrum analyzer is triggered for material identification, obtain the spectrum analysis line detected by the spectrum analyzer; based on the spectrum analysis line, obtain the identification result of the spectrum analyzer for material identification; control the The terminal performs functions matching the recognition results.
在一种实施方式中,所述终端支持在材质识别模式下执行材质识别功能,所述确定所述光谱分析仪被触发进行材质识别,包括:若检测到触发开启材质识别模式的操作指令,则确定所述光谱分析仪被触发进行材质识别。In one implementation, the terminal supports the execution of the material identification function in the material identification mode, and determining that the spectrum analyzer is triggered to perform material identification includes: if an operation instruction that triggers the material identification mode is detected, then It is determined that the spectrum analyzer is triggered to perform material identification.
在又一种实施方式中,所述检测到触发开启材质识别模式的操作指令,包括:若检测到所述终端菜单栏中的材质识别功能被触发开启,则确定检测到触发开启材质识别模式的操作指令。In yet another embodiment, the detection of an operation instruction that triggers the activation of the material recognition mode includes: if it is detected that the material recognition function in the terminal menu bar is triggered, then determining that the activation of the material recognition mode is detected. Operating instructions.
在又一种实施方式中,所述控制所述终端执行匹配所述识别结果的功能,包括:执行材质识别功能,并在执行所述材质识别功能的显示界面上显示所述识别结果。In yet another embodiment, controlling the terminal to execute a function that matches the recognition result includes: executing a material recognition function, and displaying the recognition result on a display interface that executes the material recognition function.
在又一种实施方式中,控制所述终端执行匹配所述识别结果的功能,包括:若所述识别结果为识别到布质材料,则控制所述终端进入口袋模式。In yet another embodiment, controlling the terminal to perform a function matching the recognition result includes: if the recognition result is that cloth material is recognized, controlling the terminal to enter pocket mode.
在又一种实施方式中,所述确定所述光谱分析仪被触发进行材质识别,包括:若所述终端处于息屏状态,且所述终端的加速度传感器识别到所述终端处于运动状态,则确定所述光谱分析仪被触发进行材质识别。In yet another embodiment, determining that the spectrum analyzer is triggered to perform material identification includes: if the terminal is in a screen-off state, and the acceleration sensor of the terminal recognizes that the terminal is in a moving state, then It is determined that the spectrum analyzer is triggered to perform material identification.
根据本公开实施例的第二方面,提供一种功能控制装置,应用于终端,所述终端中安装有光谱分析仪,所述功能控制装置包括:处理单元,用于确定所述光谱分析仪被触发进行材质识别,并获取所述光谱分析仪检测到的光谱分析线;获取单元,用于基于所述光谱分析线,得到所述光谱分析仪进行材质识别的识别结果;执行单元,用于控制所述终端执行匹配所述识别结果的功能。According to a second aspect of the embodiment of the present disclosure, a function control device is provided, which is applied to a terminal. A spectrum analyzer is installed in the terminal. The function control device includes: a processing unit for determining that the spectrum analyzer is used. Trigger material identification and obtain the spectrum analysis line detected by the spectrum analyzer; the acquisition unit is used to obtain the identification result of the material identification by the spectrum analyzer based on the spectrum analysis line; the execution unit is used to control The terminal performs a function of matching the recognition result.
在一种实施方式中,所述终端支持在材质识别模式下执行材质识别功能,所述处理单元采用如下方式确定所述光谱分析仪被触发进行材质识别:若检测到触发开启材质识别模式的操作指令,则确定所述光谱分析仪被触发进行材质识别。In one implementation, the terminal supports the execution of the material identification function in the material identification mode, and the processing unit determines that the spectrum analyzer is triggered to perform material identification in the following manner: if an operation that triggers the material identification mode is detected instruction, it is determined that the spectrum analyzer is triggered to perform material identification.
在又一种实施方式中,所述处理单元采用如下方式确定检测到触发开启材质识别模式的操作指令:若检测到所述终端菜单栏中的材质识别功能被触发开启,则确定检测到触发开启材质识别模式的操作指令。In another embodiment, the processing unit determines that the operation instruction that triggers the turning on of the material identification mode is detected in the following manner: if it is detected that the material identification function in the terminal menu bar is triggered on, then it is determined that the triggering on is detected. Operation instructions for material recognition mode.
在又一种实施方式中,所述执行单元采用如下方式控制所述终端执行匹配所述识别结果的功能:执行材质识别功能,并在执行所述材质识别功能的显示界面上显示所述识别结果。In yet another embodiment, the execution unit controls the terminal to execute a function matching the recognition result in the following manner: executes a material recognition function, and displays the recognition result on a display interface that executes the material recognition function. .
在又一种实施方式中,所述执行单元采用如下方式控制所述终端执行匹配所述识别结果的功能:若所述识别结果为识别到布质材料,则控制所述终端进入口袋模式。In yet another embodiment, the execution unit controls the terminal to execute a function matching the recognition result in the following manner: if the recognition result is that cloth material is recognized, then controls the terminal to enter the pocket mode.
在又一种实施方式中,所述处理单元采用如下方式确定所述光谱分析仪被触发进行材质识别:若所述终端处于息屏状态,且所述终端的加速度传感器识别到所述终端处于运动状态,则确定所述光谱分析仪被触发进行材质识别。In yet another implementation, the processing unit determines that the spectrum analyzer is triggered to perform material identification in the following manner: if the terminal is in a screen-off state, and the acceleration sensor of the terminal recognizes that the terminal is in motion. status, it is determined that the spectrum analyzer is triggered to perform material identification.
根据本公开实施例第三方面,提供一种功能控制装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:用于执行第一方面或第一方面任意一种所述实施方式中的功能控制方法。According to a third aspect of the embodiment of the present disclosure, a function control device is provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the first aspect or the third aspect. On the one hand, the function control method in any of the embodiments.
根据本公开实施例第四方面,提供一种存储介质,存储介质中存储有指令,当存储介质中的指令由终端的处理器执行时,使得包括处理器的终端能够执行第一方面或者第一方面任意一种实施方式中的功能控制方法。According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided. Instructions are stored in the storage medium. When the instructions in the storage medium are executed by a processor of the terminal, the terminal including the processor can execute the first aspect or the first aspect. The function control method in any embodiment.
本公开的实施例提供的技术方案可以包括以下有益效果:终端中安装有用于光线感应的光谱分析仪,即该光谱分析仪可以作为光线传感器进行光线感应。在确定光谱分析仪被触发进行材质识别的情况下,确定光谱分析仪进行材质识别的识别结果,并控制终端执行匹配材质识别结果的功能。通过本公开,光谱分析仪兼具光线感应以及材质识别功能,故终端基于光谱分析仪可以实现基于材质识别的相关功能。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: a spectrum analyzer for light sensing is installed in the terminal, that is, the spectrum analyzer can be used as a light sensor for light sensing. When it is determined that the spectrum analyzer is triggered to perform material identification, the identification result of the material identification performed by the spectrum analyzer is determined, and the terminal is controlled to perform a function of matching the material identification result. Through the present disclosure, the spectrum analyzer has both light sensing and material identification functions, so the terminal can implement related functions based on material identification based on the spectrum analyzer.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种功能控制方法的流程图。FIG. 1 is a flow chart of a function control method according to an exemplary embodiment.
图2是根据一示例性实施例示出的终端确定光谱分析仪被触发进行材质识别的流程图。FIG. 2 is a flow chart illustrating a terminal determining that a spectrum analyzer is triggered to perform material identification according to an exemplary embodiment.
图3是根据一示例性实施例示出的终端执行材质识别功能的方法流程图。Figure 3 is a flowchart of a method for a terminal to perform a material recognition function according to an exemplary embodiment.
图4是根据一示例性实施例示出的终端执行材质识别功能的场景示意图。FIG. 4 is a schematic diagram of a scene in which a terminal performs a material recognition function according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种触发终端进入口袋模式的方法流程图。Figure 5 is a flow chart of a method for triggering a terminal to enter pocket mode according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种功能控制装置框图。Figure 6 is a block diagram of a function control device according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种用于功能控制的装置的框图。FIG. 7 is a block diagram of a device for function control according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of the disclosure as detailed in the appended claims.
光谱分析仪是一类物质分析仪器,它能够将复杂光分解成光谱线,并进行测量和计算,以便能够进行质谱分析,实现材质识别。其中,光谱分析仪的体积越来越小进而可以集成至相关的传感器中。利用这个发展趋势,我们可以将质谱分析的结果与手机的应用场景结合,提高手机的体验。A spectrum analyzer is a type of material analysis instrument that can decompose complex light into spectral lines and perform measurements and calculations to enable mass spectrometry analysis and material identification. Among them, the size of spectrum analyzers is getting smaller and smaller and can be integrated into related sensors. Taking advantage of this development trend, we can combine the results of mass spectrometry analysis with mobile phone application scenarios to improve the mobile phone experience.
本公开实施例中,将光谱分析仪集成到终端中用作光线传感器,以进行光线感应,使终端可以基于光谱分析仪采集并感应的光线执行相应的功能。其中,终端可以基于作为光线传感器的光谱分析仪执行相关技术中基于光线传感器的进行光线感应执行的相应功能,其中,终端执行基于光谱分析仪进行光线感应所执行的相应功能与相关技术相似,故具体执行过程本公开实施例在此不再详述,以下仅就不同之处进行说明。In the embodiment of the present disclosure, a spectrum analyzer is integrated into a terminal and used as a light sensor for light sensing, so that the terminal can perform corresponding functions based on the light collected and sensed by the spectrum analyzer. Among them, the terminal can perform the corresponding functions of light sensing based on the light sensor in the related technology based on the spectrum analyzer as the light sensor. The terminal performs the corresponding functions of light sensing based on the spectrum analyzer and the related technology. Therefore, The specific implementation process of the disclosed embodiments will not be described in detail here, and only the differences will be described below.
本公开实施例中,在原有光线传感器的布局位置处,集成光谱分析仪,或者也可以理解为是在终端的光线传感器中集成光谱分析仪。In the embodiment of the present disclosure, the spectrum analyzer is integrated at the layout position of the original light sensor, or it can also be understood as integrating the spectrum analyzer in the light sensor of the terminal.
其中,终端中普遍具有一颗或者两颗光线传感器,例如包括顶部光线传感器,也称为前置光线传感器。例如还包括屏下光线传感器。再例如还包括背部光线传感器,也称为后置光线传感器。Among them, terminals generally have one or two light sensors, including, for example, a top light sensor, also called a front light sensor. For example, it also includes an under-screen light sensor. Another example also includes a back light sensor, also called a rear light sensor.
其中,屏下光线传感器会由于屏幕材质的影响,对光谱分析仪采集光线进行光谱分析计算产生偏差。背部光线传感器可能易被遮挡,使得光谱分析仪的应用场景具有局限性。故,本公开实施例中可以在顶部光线传感器中集成光谱分析仪,以避免遮挡,更适用于结合光谱分析仪进行相应功能执行的场景。Among them, the under-screen light sensor will cause deviations in the spectrum analysis calculation of the light collected by the spectrum analyzer due to the influence of the screen material. The backlight sensor may be easily blocked, which limits the application scenarios of the spectrum analyzer. Therefore, in the embodiment of the present disclosure, a spectrum analyzer can be integrated in the top light sensor to avoid occlusion, and is more suitable for scenarios in which the spectrum analyzer is combined to perform corresponding functions.
可以理解的是,本公开实施例中也可以是在原有顶部光线传感器的安装位置处安装光谱分析仪,由光谱分析仪替代原有的顶部光线传感器。It can be understood that in the embodiment of the present disclosure, a spectrum analyzer can also be installed at the installation position of the original top light sensor, and the original top light sensor can be replaced by the spectrum analyzer.
本公开实施例提供一种功能控制方法,该功能控制方法应用于安装有光谱分析仪的终端。终端基于光谱分析仪采集光线并进行测量和计算得到的光谱分析线,进行材质识别,并基于进行材质识别得到的识别结果,与终端的实际使用场景相结合,以执行相应的功能,丰富终端执行功能的多样性,提高用户使用体验。Embodiments of the present disclosure provide a function control method, which is applied to a terminal equipped with a spectrum analyzer. The terminal performs material identification based on the spectral analysis lines collected by the spectrum analyzer and measured and calculated. Based on the identification results obtained by the material identification, the terminal is combined with the actual usage scenario of the terminal to perform corresponding functions and enrich the terminal execution. Diversity of functions improves user experience.
图1是根据一示例性实施例示出的一种功能控制方法的流程图,如图1所示,功能控制方法用于终端中,该终端中安装用于进行光线感应的光谱分析仪,其中,该功能控制方法包括以下步骤。Figure 1 is a flow chart of a function control method according to an exemplary embodiment. As shown in Figure 1, the function control method is used in a terminal, and a spectrum analyzer for light sensing is installed in the terminal, wherein, The function control method includes the following steps.
在步骤S11中,响应于确定光谱分析仪被触发进行材质识别,获取光谱分析仪检测到的光谱分析线。In step S11, in response to determining that the spectrum analyzer is triggered to perform material identification, a spectrum analysis line detected by the spectrum analyzer is obtained.
其中,本公开实施例中,光谱分析仪具有进行光线感应,并对感应的光线进行计算和测量得到光谱分析线的能力。其中,光谱分析仪检测光谱分析线的过程可以采用相关技术中的方案,例如:Among them, in the embodiment of the present disclosure, the spectrum analyzer has the ability to sense light, and calculate and measure the sensed light to obtain spectral analysis lines. Among them, the process of detecting spectral analysis lines by a spectrum analyzer can adopt solutions in related technologies, such as:
可以采用光学耦合装置接收由光源发出的光信号,将光信号耦合器入射到光学谐振谱,采集光学谐振腔输出的光信号,并以采集到的数据为基础数据,制作光谱分析线。An optical coupling device can be used to receive the optical signal emitted by the light source, the optical signal coupler is incident on the optical resonance spectrum, the optical signal output by the optical resonance cavity is collected, and the spectral analysis line is produced based on the collected data.
在步骤S12中,基于光谱分析线,得到光谱分析仪进行材质识别的识别结果。In step S12, based on the spectral analysis lines, the identification result of the material identification performed by the spectrum analyzer is obtained.
其中,本公开实施例中,基于光谱分析线得到进行材质识别的识别结果,可以采用相关技术中的方式。Among them, in the embodiments of the present disclosure, the identification results for material identification are obtained based on the spectral analysis lines, and methods in related technologies can be used.
一种实施方式中,本公开实施例中可以基于预训练的材质类别识别模型确定光谱分析仪进行材质识别的识别结果。In one implementation, in the embodiment of the present disclosure, the recognition result of the material recognition performed by the spectrum analyzer can be determined based on the pre-trained material category recognition model.
其中,在对待识别物材质的进行材质类别识别之前,需要首先训练得到材质类别识别模型。其中,材质类别识别模型的训练过程可以采用如下方式:以大量图像样本作为输入,以图像样本的材质类别作为输出标签,对光谱分析仪进行训练,得到材质类别识别模型。Among them, before identifying the material category of the material of the object to be identified, it is necessary to first train the material category recognition model. Among them, the training process of the material category recognition model can adopt the following method: use a large number of image samples as input, use the material category of the image sample as the output label, train the spectrum analyzer, and obtain the material category recognition model.
需要注意的是,这里训练时的图像样本应与实际进行材质类别识别的输入到材质类别模型的图像的特点是相同的。因此,可以对一些原始图像进行训练后得到用于训练材质类别识别模型的图像样本。It should be noted that the image samples during training here should have the same characteristics as the images input to the material category model for actual material category recognition. Therefore, some original images can be trained to obtain image samples for training the material category recognition model.
需要将识别的物体图像输入到预先训练好的材质类别识别模型中,输出相应物体图像的吸收谱图和样品浓度信息结果。其中,各种材质类别是训练材质类别识别模型时所设定的各种材质类别,如包括水果皮、胶质、布质、蜡质等。The recognized object image needs to be input into the pre-trained material category recognition model, and the absorption spectrum and sample concentration information results of the corresponding object image are output. Among them, various material categories are various material categories set when training the material category recognition model, such as fruit peel, gum, cloth, wax, etc.
在步骤S13中,控制终端执行匹配材质识别所对应识别结果的功能。In step S13, the control terminal executes a function of matching the recognition results corresponding to the material recognition.
本公开实施例中,匹配材质识别所对应识别结果的功能,可以是基于终端实际应用的场景设置的功能。例如,可以是终端新提供的材质识别功能,或者也可以是终端中原有的功能,比如可以是口袋模式的识别功能。In the embodiments of the present disclosure, the function of matching recognition results corresponding to material recognition may be a function based on scene settings of actual terminal applications. For example, it can be a new material recognition function provided by the terminal, or it can be an original function in the terminal, such as a pocket mode recognition function.
本公开实施例提供的功能控制方法,终端中安装有用于光线感应的光谱分析仪,即该光谱分析仪可以作为光线传感器进行光线感应。在确定光谱分析仪被触发进行材质识别的情况下,确定光谱分析仪进行材质识别的识别结果,并控制终端执行匹配材质识别结果的功能。通过本公开,光谱分析仪兼具光线感应以及材质识别功能,故终端基于光谱分析仪可以实现基于材质识别的相关功能。本公开仅以以上两种应用场景为例,实际使用的场景很多,不局限于此两种场景。In the function control method provided by the embodiment of the present disclosure, a spectrum analyzer for light sensing is installed in the terminal, that is, the spectrum analyzer can be used as a light sensor for light sensing. When it is determined that the spectrum analyzer is triggered to perform material identification, the identification result of the material identification performed by the spectrum analyzer is determined, and the terminal is controlled to perform a function of matching the material identification result. Through the present disclosure, the spectrum analyzer has both light sensing and material identification functions, so the terminal can implement related functions based on material identification based on the spectrum analyzer. This disclosure only takes the above two application scenarios as examples. There are many actual usage scenarios and are not limited to these two scenarios.
本公开实施例以下对上述实施例涉及的功能控制方法进行说明。Embodiments of the present disclosure The following describes the function control method related to the above embodiments.
本公开实施例中,首先对触发终端中光谱分析仪进行材质识别的过程进行说明。In the embodiment of the present disclosure, the process of triggering the material identification by the spectrum analyzer in the terminal is first described.
本公开实施例一种方式中,终端中的光谱分析仪可以一直处于运行状态,实时进行材质识别功能的检测。然而此种方式,可能会造成终端功耗较大。故,本公开实施例另一种方式中,可以是在确定满足触发光谱分析仪进行材质识别的模式,触发光谱分析仪进行材质识别。In one embodiment of the present disclosure, the spectrum analyzer in the terminal can be always running and detect the material recognition function in real time. However, this method may cause the terminal to consume large amounts of power. Therefore, in another embodiment of the present disclosure, the spectrum analyzer may be triggered to perform material identification after determining a pattern that satisfies the triggering spectrum analyzer for material identification.
其中,本公开实施例中,触发终端中光谱分析仪进行材质识别的模式可以包括如下两种模式。一种是主动模式,用户可以主动触发终端识别扫描物体,从而实现对物体表面材质的识别;一种是被动模式,当终端运行过程中,可以基于终端的状态触发光谱分析仪进行材质识别。例如,为避免误触的场景下,识别出终端在发生误触时与其接触的物体的材质,进而执行防误触功能,比如识别到布质材质的情形下进入口袋模式,防止误触。Among them, in the embodiment of the present disclosure, the mode for triggering the spectrum analyzer in the terminal to perform material identification may include the following two modes. One is the active mode, the user can actively trigger the terminal to recognize the scanning object, thereby realizing the identification of the surface material of the object; the other is the passive mode, when the terminal is running, the spectrum analyzer can be triggered based on the status of the terminal for material identification. For example, in order to avoid accidental touches, the material of the object that the terminal comes into contact with when an accidental touch occurs is identified, and then the accidental touch prevention function is performed. For example, when the cloth material is recognized, the device enters pocket mode to prevent accidental touches.
一种实施方式中,本公开实施例中可以在终端中设置可以用于进行物体材质识别的材质识别功能。其中,该材质识别功能可以是由用户触发终端进入材质识别模式下执行的一种功能。例如,该材质识别功能通常由进入材质识别模式的操作指令触发。In one implementation, in the embodiment of the present disclosure, a material identification function that can be used for object material identification can be provided in the terminal. The material recognition function may be a function executed when the user triggers the terminal to enter the material recognition mode. For example, the material recognition function is usually triggered by an operation command to enter the material recognition mode.
图2是本公开实施例提供的终端确定光谱分析仪被触发进行材质识别的流程图。如图2所示,功能控制方法用于终端中,包括以下步骤。FIG. 2 is a flow chart for the terminal to determine that the spectrum analyzer is triggered to perform material identification provided by an embodiment of the present disclosure. As shown in Figure 2, the function control method is used in the terminal and includes the following steps.
在步骤S21中,检测触发开启材质识别模式的操作指令。In step S21, an operation instruction that triggers turning on the material recognition mode is detected.
在步骤S22中,若检测到触发开启材质识别模式的操作指令,则确定光谱分析仪被触发进行材质识别。In step S22, if an operation instruction that triggers turning on the material identification mode is detected, it is determined that the spectrum analyzer is triggered to perform material identification.
其中,本公开实施例中开启材质识别模式的操作指令例如可以是由触发执行材质识别模式的应用程序的运行指令,也可以是对进入材质识别模式的控件进行操作的触控指令。In this embodiment of the present disclosure, the operation instruction for turning on the material recognition mode may be, for example, a running instruction that triggers an application program to execute the material recognition mode, or it may be a touch instruction for operating a control that enters the material recognition mode.
可以理解的是,本公开实施例中,光谱分析仪对于物体材质识别对应的功能需要设备能够支持执行该功能的硬件能力。比如水果表面材质的识别执行指令,识别水果打蜡状况需要具有支持识别材质的能力。It can be understood that in the embodiments of the present disclosure, the function of the spectrum analyzer corresponding to object material identification requires that the device be able to support the hardware capability of performing this function. For example, to execute instructions for identifying the surface material of fruits, identifying the waxing status of fruits requires the ability to support material identification.
本公开实施例一种实施方式中,可以在终端的菜单栏或中设置功能栏,在该功能栏中设置开启材质识别功能的功能图标,用户通过对菜单栏中的材质识别功能进行操作,例如触碰,触发材质识别功能的开启,进而执行材质识别功能。In one implementation of the embodiment of the present disclosure, a function bar can be set in the menu bar or in the terminal, and a function icon for turning on the material recognition function is set in the function bar. The user operates the material recognition function in the menu bar, for example Touch to trigger the material recognition function to turn on, and then execute the material recognition function.
一示例中,本公开实施例中若检测到终端菜单栏中的材质识别功能被触发开启,则确定检测到触发开启材质识别模式的操作指令,进而执行材质识别功能。本公开实施例中执行材质识别功能,终端通过光谱分析仪可以采集到待识别材质的物体反射的光线,进而得到光谱分析线,并得到材质识别结果。In one example, in the embodiment of the present disclosure, if it is detected that the material recognition function in the terminal menu bar is triggered to be turned on, it is determined that an operation command that triggers turning on the material recognition mode is detected, and then the material recognition function is executed. In the embodiment of the present disclosure, the material identification function is performed. The terminal can collect the light reflected by the object of the material to be identified through the spectrum analyzer, thereby obtaining the spectrum analysis line and obtaining the material identification result.
本公开实施例中,终端执行材质识别功能并得到材质识别结果后,可在终端执行材质识别功能的显示界面上显示识别结果。In the embodiment of the present disclosure, after the terminal executes the material recognition function and obtains the material recognition result, the recognition result can be displayed on the display interface of the terminal executing the material recognition function.
图3是本公开实施例提供的终端执行材质识别功能的方法流程图。如图3所示,执行材质识别功能的方法包括以下步骤。FIG. 3 is a flow chart of a method for a terminal to perform material recognition functions provided by an embodiment of the present disclosure. As shown in Figure 3, the method of performing the material identification function includes the following steps.
在步骤S31中,若检测到终端菜单栏中的材质识别功能被触发开启,则确定检测到触发开启材质识别模式的操作指令。In step S31, if it is detected that the material recognition function in the terminal menu bar is triggered to be turned on, it is determined that the operation instruction triggering the turning on of the material recognition mode is detected.
在步骤S32中,执行材质识别功能,并在执行材质识别功能的显示界面上显示识别结果。In step S32, the material recognition function is executed, and the recognition result is displayed on the display interface for executing the material recognition function.
其中,本公开实施例中,执行材质识别功能的显示界面上显示材质识别的识别结果。材质识别的识别结果包括:胶质,布质,果皮,蜡质等。Among them, in the embodiment of the present disclosure, the recognition result of the material recognition is displayed on the display interface that executes the material recognition function. The identification results of material identification include: gum, cloth, peel, wax, etc.
图4所示是本公开一示例中终端执行材质识别功能的场景示意图。图4中,以进行物体材质识别为例进行说明。例如,进行水果(苹果)表面材质的识别。用户在终端菜单栏中点击材质识别功能,终端执行材质识别功能,并跳转至材质识别功能界面。其中,在该材质识别功能界面上可显示“扫一扫”提示信息。用户操作终端对准物体,扫描物体。终端通过光谱分析仪可以采集到待识别材质的物体反射的光线,进而得到光谱分析线,并得到材质识别结果,显示在材质识别功能的显示界面上。比如图4中进行苹果表面是否打蜡的识别,可以在材质识别功能的显示界面上“苹果表面材质为蜡质”的识别结果。Figure 4 shows a schematic diagram of a scene in which a terminal performs a material recognition function in an example of the present disclosure. In Figure 4, object material recognition is taken as an example for explanation. For example, identify the surface material of fruit (apple). The user clicks the material identification function in the terminal menu bar, and the terminal executes the material identification function and jumps to the material identification function interface. Among them, the "scan" prompt message can be displayed on the material recognition function interface. The user operates the terminal to aim at the object and scan the object. The terminal can collect the light reflected by the object of the material to be identified through the spectrum analyzer, and then obtain the spectral analysis line, and obtain the material identification result, which is displayed on the display interface of the material identification function. For example, in Figure 4, to identify whether the surface of an apple is waxed or not, the identification result of "the surface material of the apple is waxy" can be displayed on the display interface of the material identification function.
本公开实施例另一实施场景中,基于光谱分析仪对于物体材质识别的功能,可以识别口袋材质,并触发进入口袋模式。In another implementation scenario of this disclosed embodiment, based on the function of the spectrum analyzer for object material identification, the material of the pocket can be identified and the pocket mode is triggered.
其中,本公开实施例中,通常口袋为布质材料。故一种实施方式中,若材质识别的识别结果为识别到布质材料,则控制终端进入口袋模式。Wherein, in the embodiment of the present disclosure, the pocket is usually made of cloth material. Therefore, in one implementation, if the recognition result of material recognition is that cloth material is recognized, the terminal is controlled to enter the pocket mode.
本公开实施例中为了提高触发进入口袋模式的准确度,可以在确定终端状态满足是在运动状态下且识别到材质为布质材料的情况下,控制所述终端进入口袋模式。例如,一种场景中,终端在床上,或者其他可能出现布质遮挡终端的情况下,用户正在使用终端,终端是不应该进入口袋模式的,此种情况下,虽然材质识别的识别结果为识别到布质材料,也不会控制终端进入口袋模式。In the embodiment of the present disclosure, in order to improve the accuracy of triggering the entry into the pocket mode, the terminal can be controlled to enter the pocket mode when it is determined that the terminal state is in a motion state and the material is recognized to be cloth material. For example, in a scenario where the terminal is on the bed, or in other situations where cloth may block the terminal, and the user is using the terminal, the terminal should not enter pocket mode. In this case, although the recognition result of material recognition is recognition Even if it is made of cloth material, it will not control the terminal to enter pocket mode.
一种实施方式中,本公开实施例中可以结合终端中的加速度传感器辅助光谱分析仪触发进入口袋模式。In one implementation, the embodiment of the present disclosure can be combined with an acceleration sensor in the terminal to assist the spectrum analyzer to trigger entry into the pocket mode.
其中,本公开实施例中还可以是确定终端处于使用状态,亮屏状态下不进行口袋模式的触发。即,终端需要在灭屏状态,处于运动状态时,进行材质识别的识别结果为布质材料时,触发进入口袋模式。In the embodiment of the present disclosure, it may also be determined that the terminal is in use state, and the pocket mode is not triggered in the screen-on state. That is, the terminal needs to be in a screen-off state, in a moving state, and when the recognition result of material recognition is cloth material, it is triggered to enter the pocket mode.
图5是本发明本公开实施例提供的一种触发终端进入口袋模式的方法流程图。如图5所示,触发终端进入口袋模式的方法,包括以下步骤。FIG. 5 is a flow chart of a method for triggering a terminal to enter pocket mode according to an embodiment of the present disclosure. As shown in Figure 5, the method of triggering the terminal to enter pocket mode includes the following steps.
在步骤S51中,响应于检测到终端处于息屏状态,且终端的加速度传感器识别到终端处于运动状态,确定光谱分析仪被触发进行材质识别。In step S51, in response to detecting that the terminal is in a screen-off state and the acceleration sensor of the terminal recognizes that the terminal is in a moving state, it is determined that the spectrum analyzer is triggered to perform material identification.
在步骤S52中,获取光谱分析仪检测到的光谱分析线,基于光谱分析线,得到光谱分析仪进行材质识别的识别结果。In step S52, the spectral analysis line detected by the spectrum analyzer is obtained, and based on the spectral analysis line, the identification result of the material identification performed by the spectrum analyzer is obtained.
在步骤S53中,若材质识别结果为识别到布质材料,则控制终端进入口袋模式。In step S53, if the material recognition result is that cloth material is recognized, the terminal is controlled to enter the pocket mode.
本公开实施例提供的功能控制方法,结合终端的加速度传感器以及光谱分析仪,能够快速且准确的触发终端进入口袋模式,以防误触。The function control method provided by the embodiment of the present disclosure, combined with the terminal's acceleration sensor and spectrum analyzer, can quickly and accurately trigger the terminal to enter pocket mode to prevent accidental touches.
本公开实施例中,终端中安装有用于光线感应的光谱分析仪,即该光谱分析仪可以作为光线传感器进行光线感应。在确定光谱分析仪被触发进行材质识别的情况下,确定光谱分析仪进行材质识别的识别结果,并控制终端执行匹配材质识别结果的功能。通过本公开,光谱分析仪兼具光线感应以及材质识别功能,故终端基于光谱分析仪可以实现基于材质识别的相关功能。In the embodiment of the present disclosure, a spectrum analyzer for light sensing is installed in the terminal, that is, the spectrum analyzer can be used as a light sensor for light sensing. When it is determined that the spectrum analyzer is triggered to perform material identification, the identification result of the material identification performed by the spectrum analyzer is determined, and the terminal is controlled to perform a function of matching the material identification result. Through the present disclosure, the spectrum analyzer has both light sensing and material identification functions, so the terminal can implement related functions based on material identification based on the spectrum analyzer.
基于相同的构思,本公开实施例还提供一种功能控制装置。Based on the same concept, embodiments of the present disclosure also provide a function control device.
可以理解的是,本公开实施例提供的功能控制装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本公开实施例的技术方案的范围。It can be understood that, in order to realize the above functions, the function control device provided by the embodiment of the present disclosure includes corresponding hardware structures and/or software modules for executing each function. Combined with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of the technical solutions of the embodiments of the present disclosure.
图6是根据一示例性实施例示出的一种功能控制装置框图。参照图6,功能控制装置100包括处理单元101,获取单元102和执行单元103.Figure 6 is a block diagram of a function control device according to an exemplary embodiment. Referring to Figure 6, the function control device 100 includes a processing unit 101, an acquisition unit 102 and an execution unit 103.
该处理单元101用于响应于确定光谱分析仪被触发进行材质识别,获取光谱分析仪检测到的光谱分析线。The processing unit 101 is configured to obtain the spectrum analysis line detected by the spectrum analyzer in response to determining that the spectrum analyzer is triggered to perform material identification.
该获取单元102用于基于光谱分析线,得到光谱分析仪进行材质识别的识别结果。The acquisition unit 102 is used to obtain the identification result of the material identification performed by the spectrum analyzer based on the spectrum analysis line.
该执行单元103被配置为控制终端执行匹配识别结果的功能。The execution unit 103 is configured to control the terminal to execute the function of matching the recognition result.
一种实施方式中,处理单元101采用如下方式确定所述光谱分析仪被触发进行材质识别:若检测到触发开启材质识别模式的操作指令,则确定所述光谱分析仪被触发进行材质识别。In one implementation, the processing unit 101 determines that the spectrum analyzer is triggered to perform material identification in the following manner: if an operation instruction that triggers turning on the material identification mode is detected, it is determined that the spectrum analyzer is triggered to perform material identification.
又一种实施方式中,处理单元101采用如下方式确定检测到触发开启材质识别模式的操作指令:若检测到所述终端菜单栏中的材质识别功能被触发开启,则确定检测到触发开启材质识别模式的操作指令。In another embodiment, the processing unit 101 determines that the operation instruction that triggers the material recognition mode is detected in the following manner: if it is detected that the material recognition function in the terminal menu bar is triggered, it determines that the material recognition trigger is detected. mode operating instructions.
在又一种实施方式中,执行单元103采用如下方式控制所述终端执行匹配所述识别结果的功能:执行材质识别功能,并在执行所述材质识别功能的显示界面上显示所述识别结果。In another embodiment, the execution unit 103 controls the terminal to execute the function matching the recognition result in the following manner: executes the material recognition function, and displays the recognition result on a display interface that executes the material recognition function.
又一种实施方式中,执行单元103采用如下方式控制所述终端执行匹配所述识别结果的功能:若所述识别结果为识别到布质材料,则控制所述终端进入口袋模式。In another embodiment, the execution unit 103 controls the terminal to execute the function matching the recognition result in the following manner: if the recognition result is that cloth material is recognized, then controls the terminal to enter the pocket mode.
又一种实施方式中,处理单元101采用如下方式确定所述光谱分析仪被触发进行材质识别:若所述终端处于息屏状态,且所述终端的加速度传感器识别到所述终端处于运动状态,则确定所述光谱分析仪被触发进行材质识别。In yet another implementation, the processing unit 101 determines that the spectrum analyzer is triggered to perform material identification in the following manner: if the terminal is in the screen-off state, and the acceleration sensor of the terminal recognizes that the terminal is in motion, Then it is determined that the spectrum analyzer is triggered to perform material identification.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图7是根据一示例性实施例示出的一种用于功能控制的装置200的框图。例如,装置200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 7 is a block diagram of a device 200 for function control according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
参照图7,装置200可以包括以下一个或多个组件:处理组件202,存储器204,电力组件206,多媒体组件208,音频组件210,输入/输出(I/O)接口212,传感器组件214,以及通信组件216。Referring to Figure 7, device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input/output (I/O) interface 212, sensor component 214, and Communication component 216.
处理组件202通常控制装置200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件202可以包括一个或多个处理器220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件202可以包括一个或多个模块,便于处理组件202和其他组件之间的交互。例如,处理组件202可以包括多媒体模块,以方便多媒体组件208和处理组件202之间的交互。Processing component 202 generally controls the overall operations of device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 202 may include one or more modules that facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.
存储器204被配置为存储各种类型的数据以支持在装置200的操作。这些数据的示例包括用于在装置200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 204 is configured to store various types of data to support operations at device 200 . Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电力组件206为装置200的各种组件提供电力。电力组件206可以包括电源管理系统,一个或多个电源,及其他与为装置200生成、管理和分配电力相关联的组件。Power component 206 provides power to various components of device 200 . Power components 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 200 .
多媒体组件208包括在所述装置200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件208包括一个前置摄像头和/或后置摄像头。当装置200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 208 includes a front-facing camera and/or a rear-facing camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件210被配置为输出和/或输入音频信号。例如,音频组件210包括一个麦克风(MIC),当装置200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器204或经由通信组件216发送。在一些实施例中,音频组件210还包括一个扬声器,用于输出音频信号。Audio component 210 is configured to output and/or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when device 200 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or sent via communications component 216 . In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
I/O接口212为处理组件202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 212 provides an interface between the processing component 202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件214包括一个或多个传感器,用于为装置200提供各个方面的状态评估。例如,传感器组件214可以检测到装置200的打开/关闭状态,组件的相对定位,例如所述组件为装置200的显示器和小键盘,传感器组件214还可以检测装置200或装置200一个组件的位置改变,用户与装置200接触的存在或不存在,装置200方位或加速/减速和装置200的温度变化。传感器组件214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 214 includes one or more sensors for providing various aspects of status assessment for device 200 . For example, the sensor component 214 can detect the open/closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, and the sensor component 214 can also detect a change in position of the device 200 or a component of the device 200. , the presence or absence of user contact with the device 200 , device 200 orientation or acceleration/deceleration and temperature changes of the device 200 . Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件216被配置为便于装置200和其他设备之间有线或无线方式的通信。装置200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 216 is configured to facilitate wired or wireless communication between apparatus 200 and other devices. Device 200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 216 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 200 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器204,上述指令可由装置200的处理器220执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 204 including instructions, which can be executed by the processor 220 of the device 200 to complete the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
可以理解的是,本公开中“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。It can be understood that "plurality" in this disclosure refers to two or more, and other quantifiers are similar. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship. The singular forms "a", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
进一步可以理解的是,术语“第一”、“第二”等用于描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,并不表示特定的顺序或者重要程度。实际上,“第一”、“第二”等表述完全可以互换使用。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other and do not imply a specific order or importance. In fact, expressions such as "first" and "second" can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information may also be called second information, and similarly, the second information may also be called first information.
进一步可以理解的是,除非有特殊说明,“连接”包括两者之间不存在其他构件的直接连接,也包括两者之间存在其他元件的间接连接。It should be further understood that, unless otherwise specified, "connection" includes a direct connection without other components between the two, and also includes an indirect connection with other elements between the two.
进一步可以理解的是,本公开实施例中尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。It will be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, this should not be understood as requiring that these operations be performed in the specific order shown or in a serial order, or that it is required that Perform all operations shown to obtain the desired results. In certain circumstances, multitasking and parallel processing may be advantageous.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the disclosure. .
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利范围来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended rights.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210253685.5A CN116800883A (en) | 2022-03-15 | 2022-03-15 | A function control method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210253685.5A CN116800883A (en) | 2022-03-15 | 2022-03-15 | A function control method, device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116800883A true CN116800883A (en) | 2023-09-22 |
Family
ID=88035073
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210253685.5A Pending CN116800883A (en) | 2022-03-15 | 2022-03-15 | A function control method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116800883A (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100341A (en) * | 2015-09-22 | 2015-11-25 | 贾波 | Mobile phone with infrared spectrum material analysis function |
| CN105890760A (en) * | 2016-02-05 | 2016-08-24 | 四川长虹电器股份有限公司 | Intelligent mobile terminal for identifying object molecule spectra and using method thereof |
| CN108462986A (en) * | 2018-02-05 | 2018-08-28 | 广东欧珀移动通信有限公司 | Screen control method and device of terminal, readable storage medium and terminal |
| CN109142279A (en) * | 2018-06-29 | 2019-01-04 | 努比亚技术有限公司 | A kind of spectral method of detection, mobile terminal and computer readable storage medium |
| CN109240541A (en) * | 2018-09-26 | 2019-01-18 | Oppo广东移动通信有限公司 | The screen false-touch prevention method, apparatus and electronic equipment of electronic equipment |
| CN111665201A (en) * | 2020-04-30 | 2020-09-15 | 华为技术有限公司 | Spectral detection method, mobile terminal and chip system |
| CN114070928A (en) * | 2020-07-31 | 2022-02-18 | 华为技术有限公司 | Method for preventing false touch and electronic equipment |
-
2022
- 2022-03-15 CN CN202210253685.5A patent/CN116800883A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100341A (en) * | 2015-09-22 | 2015-11-25 | 贾波 | Mobile phone with infrared spectrum material analysis function |
| CN105890760A (en) * | 2016-02-05 | 2016-08-24 | 四川长虹电器股份有限公司 | Intelligent mobile terminal for identifying object molecule spectra and using method thereof |
| CN108462986A (en) * | 2018-02-05 | 2018-08-28 | 广东欧珀移动通信有限公司 | Screen control method and device of terminal, readable storage medium and terminal |
| CN109142279A (en) * | 2018-06-29 | 2019-01-04 | 努比亚技术有限公司 | A kind of spectral method of detection, mobile terminal and computer readable storage medium |
| CN109240541A (en) * | 2018-09-26 | 2019-01-18 | Oppo广东移动通信有限公司 | The screen false-touch prevention method, apparatus and electronic equipment of electronic equipment |
| CN111665201A (en) * | 2020-04-30 | 2020-09-15 | 华为技术有限公司 | Spectral detection method, mobile terminal and chip system |
| CN114070928A (en) * | 2020-07-31 | 2022-02-18 | 华为技术有限公司 | Method for preventing false touch and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10956706B2 (en) | Collecting fingreprints | |
| US10997477B2 (en) | Foreign matter recognition method and device | |
| CN110555333B (en) | Fingerprint identification method, electronic device and storage medium | |
| CN105260117B (en) | Application control method and device | |
| CN107025419B (en) | Fingerprint template inputting method and device | |
| CN107798309B (en) | Fingerprint entry method, device and computer-readable storage medium | |
| CN107102772B (en) | Touch control method and device | |
| WO2020088069A1 (en) | Hand gesture keypoints detection method and apparatus, electronic device, and storage medium | |
| WO2016112699A1 (en) | Method and device for switching display mode | |
| CN112905103B (en) | Accidental touch processing method, device and storage medium | |
| CN107885418B (en) | Terminal, split screen display method and device | |
| CN110555336A (en) | Fingerprint acquisition method and device, electronic equipment and storage medium | |
| KR20180037235A (en) | Information processing method and apparatus | |
| WO2019019347A1 (en) | Optical fingerprint recognition method and apparatus, and computer readable storage medium | |
| CN107544802A (en) | device identification method and device | |
| WO2022116523A1 (en) | Image processing method, image recognition apparatus, electronic device, and medium | |
| CN106951114A (en) | Scan control method and device, electronic equipment | |
| WO2016095395A1 (en) | Method and device for activating operation state of mobile terminal | |
| CN107273173B (en) | Fingerprint sensor control method, device and storage medium | |
| CN107390929A (en) | Control method, device and the storage medium of touch-control system | |
| CN116800883A (en) | A function control method, device and storage medium | |
| CN106446827B (en) | Iris recognition function detection method and device | |
| CN107168631B (en) | Application program closing method and device and terminal electronic equipment | |
| CN109144587B (en) | Terminal control method, device, equipment and storage medium | |
| CN108319899A (en) | Fingerprint identification method and device |
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 |