CN109710123B - Method and device for detecting function button - Google Patents

Method and device for detecting function button Download PDF

Info

Publication number
CN109710123B
CN109710123B CN201711013390.6A CN201711013390A CN109710123B CN 109710123 B CN109710123 B CN 109710123B CN 201711013390 A CN201711013390 A CN 201711013390A CN 109710123 B CN109710123 B CN 109710123B
Authority
CN
China
Prior art keywords
icon
function
recognizability
function button
identifiable
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.)
Active
Application number
CN201711013390.6A
Other languages
Chinese (zh)
Other versions
CN109710123A (en
Inventor
李泓涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201711013390.6A priority Critical patent/CN109710123B/en
Publication of CN109710123A publication Critical patent/CN109710123A/en
Application granted granted Critical
Publication of CN109710123B publication Critical patent/CN109710123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to a method and a device for detecting a function button, and belongs to the field of communication. The method comprises the following steps: acquiring an icon of a function button to be detected and function meaning information corresponding to the function button; acquiring icon identification parameters and/or function identification degrees of the icons according to the icons, wherein the icon identification parameters are used for representing the degree of difference between the icons and an interface, the interface is the interface where the function button is located, and the function identification degrees are used for representing the accuracy degree of the function button expressing the function corresponding to the function meaning information; and detecting whether the function button meets a preset identification condition or not according to the icon identification parameter, the function identifiability and the function meaning information. The device comprises: the device comprises a first acquisition module, a second acquisition module and a detection module. The application can improve the detection efficiency.

Description

Method and device for detecting function button
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for detecting a function button.
Background
Many APPs (applications) are currently available, which provide an interface and include function buttons that a user can use to control the APP. The function button is a graphic mark which is used for man-machine interface interaction and is arranged for identifying a specific function.
Whether a function button can exactly express the meaning of the function represented by the function button can bring different influences to the use of a user. For example, it is assumed that each function button in the interface can exactly express the function meaning represented by each function button, and the user can know the function used for triggering by each function button in the interface according to each function button, so that the user can conveniently find the function button corresponding to the function required to be used by the user.
In the process of implementing the present application, the inventors found that the above manner has at least the following defects:
in order to determine whether the function button can exactly express the function meaning represented by the function button, it is currently possible to manually detect whether the function button can exactly express the function meaning represented by the function button, and this detection method has a low detection efficiency.
Disclosure of Invention
In order to improve detection efficiency, the embodiment of the application provides a method and a device for detecting a function button. The technical scheme is as follows:
according to a first aspect of embodiments of the present application, there is provided a method of detecting a function button, the method including:
acquiring an icon of a function button to be detected and function meaning information corresponding to the function button;
acquiring icon identification parameters and/or function identification degrees of the icons according to the icons, wherein the icon identification parameters are used for representing the degree of difference between the icons and an interface, the interface is the interface where the function button is located, and the function identification degrees are used for representing the accuracy degree of the function button expressing the function corresponding to the function meaning information;
and detecting whether the function button meets a preset identification condition or not according to the icon identification parameter, the function identifiability and the function meaning information.
Optionally, the icon identification parameter includes at least one of a color recognizability, a size recognizability, and a contrast between a color of the function button and a color of an interface of the user.
Optionally, the obtaining, according to the icon, an icon identifiable parameter of the icon includes:
acquiring the area size of the icon of the function button;
acquiring a preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is located;
and calculating a first ratio between the acquired area size and the acquired preset area size, wherein the first ratio is size identifiability.
Optionally, the color recognizability comprises a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon;
the acquiring identifiable icon parameters of the icon according to the icon comprises the following steps:
respectively calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button, and calculating the first tone identifiability of the icon according to the tone value of each pixel point;
and respectively determining a maximum channel value and a minimum channel value corresponding to each pixel point from the channel values of the color channels of each pixel point, and calculating a first brightness recognizability and a first saturation recognizability of the icon according to the maximum channel value and the minimum channel value.
Optionally, the obtaining, according to the icon, an icon identifiable parameter of the icon further includes:
obtaining a second hue recognizability, a second lightness recognizability and a second saturation recognizability of the interface;
and calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first lightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second lightness recognizability and the second saturation recognizability of the interface.
Optionally, the obtaining the function recognizability of the icon according to the icon includes:
acquiring a picture for expressing the functional meaning information according to the functional meaning information;
and calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
Optionally, the detecting whether the function button meets a preset condition according to the icon identification parameter, the function recognizability, and the function meaning information includes:
acquiring a preset parameter range corresponding to the icon identifiable parameter and/or a preset parameter range corresponding to the function identifiability according to the function meaning information;
and if the icon identifiable parameter is within the preset parameter range and/or the function identifiability is within the preset numerical range, determining that the function button meets the preset identification condition.
According to a second aspect of embodiments of the present application, there is provided an apparatus for detecting a function button, the apparatus including:
the first acquisition module is used for acquiring an icon of a function button to be detected and function meaning information corresponding to the function button;
the second obtaining module is used for obtaining icon identification parameters and/or function identification degrees of the icons according to the icons, wherein the icon identification parameters are used for representing the degree of difference between the icons and the interface, the interface is the interface where the function button is located, and the function identification degrees are used for representing the accuracy degree of the function button expressing the function corresponding to the function meaning information;
and the detection module is used for detecting whether the function button meets a preset identification condition or not according to the icon identification parameter, the function identifiability and the function meaning information.
Optionally, the icon identification parameter includes at least one of a color recognizability, a size recognizability, and a contrast between a color of the function button and a color of an interface of the user.
Optionally, the second obtaining module includes:
a first acquiring unit configured to acquire an area size of an icon of the function button;
the second obtaining unit is used for obtaining the preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is located;
and the first calculating unit is used for calculating a first ratio between the acquired area size and the acquired preset area size, and the first ratio is size identifiability.
Optionally, the color recognizability comprises a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon;
the second acquisition module includes:
the second calculation unit is used for calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button, and calculating the first tone identifiability of the icon according to the tone value of each pixel point;
and the third calculating unit is used for determining the maximum channel value and the minimum channel value corresponding to each pixel point from the channel values of the color channels of each pixel point respectively, and calculating the first lightness recognizability and the first saturation recognizability of the icon according to the maximum channel value and the minimum channel value.
Optionally, the second obtaining module further includes:
a third obtaining unit, configured to obtain a second hue recognizability, a second lightness recognizability, and a second saturation recognizability of the interface;
and the fourth calculating unit is used for calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first brightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second brightness recognizability and the second saturation recognizability of the interface.
Optionally, the second obtaining module includes:
a fourth acquiring unit configured to acquire a picture for expressing the functional meaning information according to the functional meaning information;
and the fifth calculating unit is used for calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
Optionally, the detection module includes:
a fifth obtaining unit, configured to obtain, according to the function meaning information, a preset parameter range corresponding to the icon identifiable parameter and/or a preset parameter range corresponding to the function identifiability;
the detection unit is used for determining that the function button meets the preset identification condition if the icon identifiable parameter is within the preset parameter range and/or the function identifiability is within the preset numerical range.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the icon of the function button to be detected and the function meaning information corresponding to the function button are obtained, the icon identifiable parameter and/or the function identifiability of the icon are/is obtained according to the icon, whether the function button can meet the preset identification condition is detected according to the icon identifying parameter, the function identifiability and the function meaning information, therefore, whether the function button can express the function corresponding to the function meaning information can be automatically detected, and the detection efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flowchart of a method for detecting a function button according to embodiment 1 of the present application;
FIG. 2 is a flowchart of a method for detecting a function button according to embodiment 2 of the present application;
fig. 3 is a block diagram of a device for detecting a function button according to embodiment 3 of the present application;
fig. 4 is a block diagram of a device for detecting a function button according to embodiment 4 of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Example 1
Referring to fig. 1, an embodiment of the present application provides a method for detecting a function button, including:
step 101: and acquiring the icon of the function button to be detected and the function meaning information corresponding to the function button.
Step 102: and acquiring icon identification parameters and/or function identification degree of the icon according to the icon, wherein the icon identification parameters are used for representing the degree of difference between the icon and an interface, the interface is the interface where the function button is located, and the function identification degree is used for representing the accuracy degree of the function button expressing the function corresponding to the function meaning information.
Step 103: and detecting whether the function button meets a preset identification condition or not according to the icon identification parameter, the function identifiability and the function meaning information.
In the embodiment of the application, whether the function button meets the preset identification condition or not is detected by acquiring the icon of the function button to be detected and the function meaning information corresponding to the function button, acquiring the icon identifiable parameter and/or the function identifiable degree of the icon according to the icon, and detecting whether the function button meets the preset identification condition or not according to the icon identifying parameter, the function identifiable degree and the function meaning information, so that whether the function button can express the function corresponding to the function meaning information or not can be automatically detected, and the detection efficiency is improved.
Example 2
Referring to fig. 2, an embodiment of the present application provides a method for detecting a function button, including:
step 201: and acquiring the icon of the function button to be detected and the function meaning information corresponding to the function button.
The function button to be detected is a button in the interface of the APP, and whether the function button can exactly express the function meaning represented by the function button can be detected by the method of the embodiment.
The user can select a function button needing to be detected in the APP interface and input function meaning information corresponding to the function button. Or, the device may randomly select one function button from the interface as the function button to be detected and the function meaning information corresponding to the function button.
For example, the user may click on a function button in the interface that needs to be detected. Accordingly, upon detecting a click operation by the user, an input box and a confirmation button may be displayed in the interface. The user may click the confirm button after inputting the function meaning information in the input box. Correspondingly, when the clicking operation of the confirmation button is detected, the icon of the clicked function button is obtained as the icon of the function button to be detected, and the function meaning information is obtained from the input box and is used as the function meaning information corresponding to the function button to be detected.
Step 202: and acquiring the icon recognizable parameters and/or the function recognizable degree of the icon according to the icon.
The icon identification parameter is used for representing the degree of difference between the icon and the interface, the interface is the interface where the function button is located, and the icon identification parameter is used for representing the accuracy degree of the function button expressing the function corresponding to the function meaning information.
The icon recognizable parameter includes at least one of a color recognizability of the icon, a size recognizability of the icon, and a contrast between a color of the function button and a color of the interface.
Next, a detailed description is given to the manner of acquiring the recognizable parameter and the function recognizable degree of each icon, specifically:
for the color recognizability of the icon, the color recognizability of the icon may include at least one of a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon. The process of obtaining the color recognizability of the icon may be:
a1: and respectively calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button.
The color channel of each pixel point comprises a red channel, a green channel and a blue channel, and the channel value of each color channel is an integer value from 0 to 255.
For any pixel point included in the icon of the function button, calculating a hue value H of the pixel point according to the following formula (1) according to the channel value R of the red color channel, the channel value G of the green color channel and the channel value B of the blue color channel of the pixel point;
Figure BDA0001445970360000071
alternatively, the first and second electrodes may be,
for any pixel point included in the icon of the function button, the maximum channel value and the minimum channel value are determined from the channel values of the color channels of the pixel point, namely the maximum channel value and the minimum channel value are determined from the channel value of the red channel, the channel value of the green channel and the channel value of the blue channel of the pixel point.
If the channel value of the red channel is the maximum of the three channel values, the channel value G of the green channel, the channel value B of the blue channel and the maximum channel value I are determined according to the channel value G of the green channelmaxAnd a minimum channel value IminCalculating the hue value H of the pixel point according to the following formula (2);
Figure BDA0001445970360000072
if the channel value of the green channel is the maximum of the three channel values, the channel value R of the red channel, the channel value B of the blue channel and the maximum channel value I are usedmaxAnd a minimum channel value IminCalculating the hue value H of the pixel point according to the following formula (3);
Figure BDA0001445970360000073
if the channel value of the blue channel is the maximum of the three channel values, the channel value R of the red channel, the channel value G of the green channel and the maximum channel value I are determined according to the channel value R of the green channelmaxAnd a minimum channel value IminCalculating the hue value H of the pixel point according to the following formula (4);
Figure BDA0001445970360000074
a2: calculating the first tone identifiability of the icon according to the tone value of each pixel point,
specifically, an average hue value is calculated according to the hue value of each pixel point, and the average hue value is used as the first hue identifiability of the icon.
A3: and calculating a first lightness recognizability and a first saturation recognizability of the icon according to the maximum channel value and the minimum channel value of each pixel point.
For the first lightness recognizability, the calculation process may be that firstly, the lightness value L of each pixel point is calculated according to the following formula (5) according to the maximum channel value and the minimum channel value of each pixel point, and then, the average lightness value is calculated according to the lightness value of each pixel point, and the average lightness value is determined as the first lightness recognizability.
Figure BDA0001445970360000081
For the first saturation intelligibility, the calculation process may be: firstly, according to the maximum channel value and the minimum channel value of each pixel point, respectively calculating the saturation value S of each pixel point according to the following formula (6); and then calculating an average saturation value according to the saturation value of each pixel point, and determining the average saturation value as the first saturation identifiability.
Figure BDA0001445970360000082
The obtaining process of the size recognizability of the icon can be as follows:
b1: the area size of the icon of the function button is acquired.
The icon of the function button is usually in a rectangular structure, so that coordinates of two diagonal points of the icon on any diagonal line in an interface can be acquired, the length and the width of the icon are calculated according to the coordinates of the two diagonal points, and the area of the icon is calculated according to the length and the width of the icon.
B2: and acquiring the preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is positioned.
The device type of the display device can be a mobile phone, a notebook computer, a tablet computer and the like. The preset area size corresponding to each type of display equipment is set in advance, and the equipment type and the preset area size of each type of display equipment are stored in the corresponding relation between the equipment type and the preset area size.
The method comprises the following steps: and acquiring the equipment type of the display equipment where the interface is positioned, and acquiring the corresponding preset area size from the corresponding relation between the equipment type and the preset area size according to the equipment type.
B3: and calculating a first ratio between the acquired area size and the acquired preset area size, and taking the first ratio as size identifiability.
The obtaining process of the function recognizability of the icon may be as follows:
acquiring a picture for expressing the function meaning information according to the function meaning information; and calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
Optionally, according to the function meaning information, a corresponding picture may be obtained from the correspondence between the function meaning information and the picture.
Alternatively, the picture corresponding to any one of the correspondence relationships between the function meaning information and the picture may be preset by a technician, or an icon or the like of a function button that has been detected to be capable of expressing the function meaning information.
The obtaining process of the contrast between the color of the function button of the icon and the color of the interface may be:
c1: and acquiring a second hue recognizability, a second lightness recognizability and a second saturation recognizability of the interface.
The detailed process of obtaining the second hue recognizability, the second lightness recognizability and the second saturation recognizability of the interface can be referred to the process of obtaining the first hue recognizability, the first lightness recognizability and the first saturation recognizability of the icon of the function button, which is not described in detail herein.
C2: and calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first brightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second brightness recognizability and the second saturation recognizability of the interface.
The method comprises the following steps: calculating a first intelligibility ratio between the first tonal intelligibility and the second tonal intelligibility, calculating a second intelligibility ratio between the first lightness intelligibility and the second lightness intelligibility, calculating a third intelligibility ratio between the first saturation intelligibility and the second saturation intelligibility, calculating an average value between the first intelligibility ratio, the second intelligibility ratio and the third intelligibility ratio, and taking the average value as a contrast between the color of the function button and the color of the interface.
Step 203: and acquiring a preset parameter range corresponding to the icon identifiable parameter and/or a preset parameter range corresponding to the function identifiability according to the function meaning information.
Presetting a preset parameter range corresponding to each icon identifiable parameter corresponding to each function meaning information and a preset parameter range corresponding to the function identifiability in advance, and storing the preset parameter range corresponding to each function meaning information, each icon identifiable parameter and the preset parameter range corresponding to the function identifiability in the corresponding relation between the function meaning information and the preset parameter range.
In this step, according to the function meaning information, a preset parameter range corresponding to each icon identifiable parameter and/or a preset parameter range corresponding to the function identifiability may be obtained from a corresponding relationship between the function meaning information and the preset parameter range.
For example, referring to the correspondence relationship between the function meaning information and the preset parameter range shown in table 1 below, the function meaning information corresponding to the play button for playing the video in table 1 is "play video", and the preset parameter range corresponding to the icon recognizable parameter of the play button and the preset parameter range corresponding to the function recognizable degree.
TABLE 1
Figure BDA0001445970360000101
In table 1, the range of the predetermined parameter corresponding to the color tone recognizable degree is 0.4-0.6, which means that the predetermined parameter is greater than or equal to 0.4 and less than or equal to 0.6, or greater than 0.4 and less than 0.6, or greater than or equal to 0.4 and less than 0.6, or greater than 0.4 and less than or equal to 0.6. Other similar contents in table 1 have the same meaning, and are not listed here.
Step 204: and if the icon recognizable parameter is in a preset parameter range and/or the function recognizable degree is in a preset numerical value range, determining that the function button meets a preset recognition condition.
If each icon identifiable parameter is respectively located in the corresponding preset parameter range and/or the function identifiability is located in the corresponding preset parameter range, determining that the function button can express the function corresponding to the function meaning information, and otherwise, determining that the function button cannot express the function corresponding to the function meaning information.
When determining that the function button can express the function corresponding to the function meaning information, the acquired device type and the icon corresponding to the function button can be correspondingly stored in the corresponding relation between the device type and the picture.
In the embodiment of the application, the icon of the function button to be detected and the function meaning information corresponding to the function button are obtained, the icon identifiable parameter and/or the function identifiability of the icon are/is obtained according to the icon, and the preset parameter range corresponding to the icon identifiable parameter and/or the preset parameter range corresponding to the function identifiability are/is obtained according to the function meaning information; if the icon recognizable parameter is located in the corresponding preset parameter range and/or the function recognizable degree is located in the corresponding preset numerical value range, the function button is determined to meet the preset recognition condition, namely the function button is determined to be capable of expressing the function corresponding to the function meaning information, otherwise, the function button is determined to be incapable of expressing the function corresponding to the function meaning information, so that whether the function button is capable of expressing the function corresponding to the function meaning information or not can be automatically detected, and the detection efficiency is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Example 3
Referring to fig. 3, an embodiment of the present application provides an apparatus 300 for detecting a function button, where the apparatus 300 includes:
a first obtaining module 301, configured to obtain an icon of a function button to be detected and function meaning information corresponding to the function button;
a second obtaining module 302, configured to obtain an icon identification parameter and/or a function identification degree of the icon according to the icon, where the icon identification parameter is used to indicate a degree of difference between the icon and an interface, the interface is an interface where the function button is located, and the function identification degree is used to indicate an accuracy degree of the function button expressing the function corresponding to the function meaning information;
the detecting module 303 is configured to detect whether the function button meets a preset identification condition according to the icon identification parameter, the function recognizability, and the function meaning information.
Optionally, the icon identification parameter includes at least one of a color recognizability, a size recognizability, and a contrast between a color of the function button and a color of the interface.
Optionally, the second obtaining module 302 includes:
a first acquiring unit configured to acquire an area size of an icon of the function button;
the second obtaining unit is used for obtaining the preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is located;
and the first calculating unit is used for calculating a first ratio between the acquired area size and the acquired preset area size, and the first ratio is size identifiability.
Optionally, the color recognizability comprises a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon;
the second obtaining module 302 includes:
the second calculation unit is used for calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button, and calculating the first tone identifiability of the icon according to the tone value of each pixel point;
and the third calculating unit is used for determining the maximum channel value and the minimum channel value corresponding to each pixel point from the channel values of the color channels of each pixel point respectively, and calculating the first lightness recognizability and the first saturation recognizability of the icon according to the maximum channel value and the minimum channel value.
Optionally, the second obtaining module 302 further includes:
a third obtaining unit, configured to obtain a second hue recognizability, a second lightness recognizability, and a second saturation recognizability of the interface;
and the fourth calculating unit is used for calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first brightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second brightness recognizability and the second saturation recognizability of the interface.
Optionally, the second obtaining module 302 includes:
a fourth acquiring unit configured to acquire a picture for expressing the functional meaning information according to the functional meaning information;
and the fifth calculating unit is used for calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
Optionally, the detecting module 303 includes:
a fifth obtaining unit, configured to obtain, according to the function meaning information, a preset parameter range corresponding to the icon identifiable parameter and/or a preset parameter range corresponding to the function identifiability;
the detection unit is used for determining that the function button meets the preset identification condition if the icon identifiable parameter is within the preset parameter range and/or the function identifiability is within the preset numerical range.
In the embodiment of the application, whether the function button meets the preset identification condition or not is detected by acquiring the icon of the function button to be detected and the function meaning information corresponding to the function button, acquiring the icon identifiable parameter and/or the function identifiable degree of the icon according to the icon, and detecting whether the function button meets the preset identification condition or not according to the icon identifying parameter, the function identifiable degree and the function meaning information, so that whether the function button can express the function corresponding to the function meaning information or not can be automatically detected, and the detection efficiency is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Example 4
Referring to fig. 4, an embodiment of the present application provides a block diagram of an apparatus 400 for detecting a function button. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and a user, in some embodiments, the screen may include a liquid crystal display (L CD) 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 a user.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an apparatus 400, enable the apparatus 400 to perform a method of detecting a function button, the method comprising:
acquiring an icon of a function button to be detected and function meaning information corresponding to the function button;
acquiring icon identification parameters and/or function identification degrees of the icons according to the icons, wherein the icon identification parameters are used for representing the degree of difference between the icons and an interface, the interface is the interface where the function button is located, and the function identification degrees are used for representing the accuracy degree of the function button expressing the function corresponding to the function meaning information;
and detecting whether the function button meets a preset identification condition or not according to the icon identification parameter, the function identifiability and the function meaning information.
Optionally, the icon identification parameter includes at least one of a color recognizability, a size recognizability, and a contrast between a color of the function button and a color of the interface.
Optionally, the obtaining of the icon identifiable parameter of the icon according to the icon includes:
acquiring the area size of the icon of the function button;
acquiring a preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is located;
and calculating a first ratio between the acquired area size and the acquired preset area size, wherein the first ratio is size identifiability.
Optionally, the color recognizability comprises a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon;
the acquiring identifiable icon parameters of the icon according to the icon comprises the following steps:
respectively calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button, and calculating the first tone identifiability of the icon according to the tone value of each pixel point;
and respectively determining a maximum channel value and a minimum channel value corresponding to each pixel point from the channel values of the color channels of each pixel point, and calculating a first brightness recognizability and a first saturation recognizability of the icon according to the maximum channel value and the minimum channel value.
Optionally, the obtaining of the icon identifiable parameter of the icon according to the icon further includes:
obtaining a second hue recognizability, a second lightness recognizability and a second saturation recognizability of the interface;
and calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first lightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second lightness recognizability and the second saturation recognizability of the interface.
Optionally, the obtaining the function recognizability of the icon according to the icon includes:
acquiring a picture for expressing the functional meaning information according to the functional meaning information;
and calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
Optionally, the detecting whether the function button meets a preset condition according to the icon identification parameter, the function recognizability, and the function meaning information includes:
acquiring a preset parameter range corresponding to the icon identifiable parameter and/or a preset parameter range corresponding to the function identifiability according to the function meaning information;
and if the icon identifiable parameter is within the preset parameter range and/or the function identifiability is within the preset numerical range, determining that the function button meets the preset identification condition.
In the embodiment of the application, the icon of the function button to be detected and the function meaning information corresponding to the function button are obtained, the icon identifiable parameter and/or the function identifiable degree of the icon are/is obtained according to the icon, and whether the function button can meet the preset identification condition is detected according to the icon identifiable parameter, the function identifiable degree and the function meaning information, so that whether the function button can express the function corresponding to the function meaning information can be automatically detected, and the detection efficiency is improved.
Other embodiments of the present application will be 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 invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (14)

1. A method of detecting a function button, the method comprising:
acquiring an icon of a function button to be detected and function meaning information corresponding to the function button;
acquiring icon identifiable parameters and/or function identifiable degrees of the icons according to the icons, wherein the icon identifiable parameters are used for representing the distinguishing degrees between the icons and interfaces, the interfaces are the interfaces where the function buttons are located, and the function identifiable degrees are used for representing the accuracy degrees of the function buttons expressing the functions corresponding to the function meaning information;
and detecting whether the function button meets a preset identification condition or not according to the icon identifiable parameter, the function identifiability and the function meaning information.
2. The method of claim 1, wherein the icon identifiable parameters include at least one of a color identifiable degree of the icon, a size identifiable degree, and a contrast between a color of the function button and a color of an interface.
3. The method of claim 2, wherein the obtaining icon identifiable parameters for the icon based on the icon comprises:
acquiring the area size of the icon of the function button;
acquiring a preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is located;
and calculating a first ratio between the area size and the preset area size, wherein the first ratio is size identifiability.
4. The method of claim 2, wherein the color recognizability comprises a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon;
the acquiring identifiable icon parameters of the icon according to the icon comprises the following steps:
respectively calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button, and calculating the first tone identifiability of the icon according to the tone value of each pixel point;
and respectively determining a maximum channel value and a minimum channel value corresponding to each pixel point from the channel values of the color channels of each pixel point, and calculating a first brightness recognizability and a first saturation recognizability of the icon according to the maximum channel value and the minimum channel value.
5. The method of claim 4, wherein said obtaining icon identifiable parameters for the icon based on the icon, further comprises:
obtaining a second hue recognizability, a second lightness recognizability and a second saturation recognizability of the interface;
and calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first lightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second lightness recognizability and the second saturation recognizability of the interface.
6. The method of claim 1, wherein said obtaining the functional recognizability of the icon according to the icon comprises:
acquiring a picture for expressing the functional meaning information according to the functional meaning information;
and calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
7. The method of claim 1, wherein the detecting whether the function button satisfies a preset condition according to the icon recognizable parameter, the function recognizable degree and the function meaning information comprises:
acquiring a preset parameter range corresponding to the icon identifiable parameter and/or a preset numerical value range corresponding to the function identifiability according to the function meaning information;
and if the icon identifiable parameter is within the preset parameter range and/or the function identifiability is within the preset numerical range, determining that the function button meets the preset identification condition.
8. An apparatus for detecting a function button, the apparatus comprising:
the first acquisition module is used for acquiring an icon of a function button to be detected and function meaning information corresponding to the function button;
the second obtaining module is used for obtaining icon identifiable parameters and/or function identifiable degrees of the icons according to the icons, wherein the icon identifiable parameters are used for representing the distinguishing degrees between the icons and interfaces, the interfaces are the interfaces where the function buttons are located, and the function identifiable degrees are used for representing the accuracy degrees of the function buttons expressing the functions corresponding to the function meaning information;
and the detection module is used for detecting whether the function button meets a preset identification condition or not according to the icon identifiable parameter, the function identifiability and the function meaning information.
9. The apparatus of claim 8, wherein the icon identifiable parameters include at least one of a color identifiable degree of the icon, a size identifiable degree, and a contrast between a color of the function button and a color of an interface.
10. The apparatus of claim 9, wherein the second obtaining module comprises:
a first acquiring unit configured to acquire an area size of an icon of the function button;
the second obtaining unit is used for obtaining the preset area size corresponding to the equipment type according to the equipment type of the display equipment where the interface is located;
the first calculating unit is used for calculating a first ratio between the area size and the preset area size, and the first ratio is size identifiability.
11. The apparatus of claim 9, wherein the color recognizability comprises a first hue recognizability, a first lightness recognizability, and a first saturation recognizability of the icon;
the second acquisition module includes:
the second calculation unit is used for calculating the tone value of each pixel point according to the channel value of each color channel of each pixel point included by the icon of the function button, and calculating the first tone identifiability of the icon according to the tone value of each pixel point;
and the third calculating unit is used for determining the maximum channel value and the minimum channel value corresponding to each pixel point from the channel values of the color channels of each pixel point respectively, and calculating the first lightness recognizability and the first saturation recognizability of the icon according to the maximum channel value and the minimum channel value.
12. The apparatus of claim 11, wherein the second obtaining module further comprises:
a third obtaining unit, configured to obtain a second hue recognizability, a second lightness recognizability, and a second saturation recognizability of the interface;
and the fourth calculating unit is used for calculating the contrast between the color of the function button and the color of the interface according to the first tone recognizability, the first brightness recognizability and the first saturation recognizability of the icon and the second tone recognizability, the second brightness recognizability and the second saturation recognizability of the interface.
13. The apparatus of claim 8, wherein the second obtaining module comprises:
a fourth acquiring unit configured to acquire a picture for expressing the functional meaning information according to the functional meaning information;
and the fifth calculating unit is used for calculating the similarity between the icon of the function button and the acquired picture, and taking the similarity as the function recognizability.
14. The apparatus of claim 8, wherein the detection module comprises:
a fifth obtaining unit, configured to obtain, according to the function meaning information, a preset parameter range corresponding to the icon identifiable parameter and/or a preset numerical value range corresponding to the function identifiability;
the detection unit is used for determining that the function button meets the preset identification condition if the icon identifiable parameter is within the preset parameter range and/or the function identifiability is within the preset numerical range.
CN201711013390.6A 2017-10-26 2017-10-26 Method and device for detecting function button Active CN109710123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711013390.6A CN109710123B (en) 2017-10-26 2017-10-26 Method and device for detecting function button

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711013390.6A CN109710123B (en) 2017-10-26 2017-10-26 Method and device for detecting function button

Publications (2)

Publication Number Publication Date
CN109710123A CN109710123A (en) 2019-05-03
CN109710123B true CN109710123B (en) 2020-08-04

Family

ID=66252651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711013390.6A Active CN109710123B (en) 2017-10-26 2017-10-26 Method and device for detecting function button

Country Status (1)

Country Link
CN (1) CN109710123B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717357A (en) * 2013-10-10 2015-06-17 Lg电子株式会社 Mobile terminal and method of controlling therefor
CN105045489A (en) * 2015-08-27 2015-11-11 广东欧珀移动通信有限公司 Button control method and apparatus
CN105808054A (en) * 2016-02-29 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Control method and control device for control icon, terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717357A (en) * 2013-10-10 2015-06-17 Lg电子株式会社 Mobile terminal and method of controlling therefor
CN105045489A (en) * 2015-08-27 2015-11-11 广东欧珀移动通信有限公司 Button control method and apparatus
CN105808054A (en) * 2016-02-29 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Control method and control device for control icon, terminal

Also Published As

Publication number Publication date
CN109710123A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
EP3035738B1 (en) Method for connecting appliance to network and corresponding device
US10129044B2 (en) Method and apparatus for controlling smart device
US10452890B2 (en) Fingerprint template input method, device and medium
EP3041206A1 (en) Method and device for displaying notification information
EP2985991B1 (en) Method and device for time-lapse photographing
US10045163B2 (en) Methods and apparatuses for controlling a wireless access point
EP3145164A1 (en) Method and device for displaying answer extension function
CN107155060A (en) Image processing method and device
US11243660B2 (en) Method and device for displaying application, and storage medium
RU2669683C2 (en) METHOD AND DEVICE FOR DISPLAYING WiFi SIGNAL ICON AND MOBILE TERMINAL
CN105094549A (en) Method and device for displaying messages
EP3232314A1 (en) Method and device for processing an operation
US10922444B2 (en) Method and apparatus for displaying application interface
CN104484111A (en) Content display method and device for touch screen
EP3015965A1 (en) Method and apparatus for prompting device connection
CN104464674B (en) Liquid crystal display method of adjustment and device
CN105487805A (en) Object operating method and device
CN107168543A (en) Control method of keyboard and device
CN105677352B (en) Method and device for setting application icon color
CN104010129A (en) Image processing method, device and terminal
EP3896982A1 (en) Method and apparatus for inputting information on display interface, and storage medium
US9641737B2 (en) Method and device for time-delay photographing
EP3104282A1 (en) Search method and search apparatus
US20170075671A1 (en) Method and apparatus for installing application and smart device using the same
CN107656616B (en) Input interface display method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant