CN109710123A - A kind of method and device of detection function button - Google Patents
A kind of method and device of detection function button Download PDFInfo
- Publication number
- CN109710123A CN109710123A CN201711013390.6A CN201711013390A CN109710123A CN 109710123 A CN109710123 A CN 109710123A CN 201711013390 A CN201711013390 A CN 201711013390A CN 109710123 A CN109710123 A CN 109710123A
- Authority
- CN
- China
- Prior art keywords
- icon
- degree
- function
- identification degree
- function button
- 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.)
- Granted
Links
Abstract
The application is to belong to the communications field about a kind of method and device of detection function button.The described method includes: obtaining the icon and the corresponding functional meaning information of the function button of function button to be detected;According to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, the icon-based programming parameter is used to indicate the difference degree between the icon and interface, the interface is the interface where the function button, and the function intelligibility is for indicating that the function button expresses the order of accuarcy of the functional meaning information corresponding function;According to the icon-based programming parameter, the function identification degree and the functional meaning information, detect whether the function button meets default identification condition.Described device includes: the first acquisition module, the second acquisition module and detection module.The application can be improved detection efficiency.
Description
Technical field
This application involves the communications field, in particular to a kind of method and device of detection function button.
Background technique
Occur many APP (Application, using) at present, these APP, which can be provided, to be pressed in interface and interface including function
Function button control APP can be used in button, user.Function button is that a kind of mark set out for man-machine interface interaction is specific
The logotype of function.
Function button whether can functional meaning of the formulated representated by it, different shadows can be brought to user's use
It rings.For example, it is assumed that each function button in interface can each functional meaning representated by it of exact expression, user is according to each
Function button can know each function button in the interface for triggering function, such user can easily find oneself
The corresponding function button of oneself required function.
During realizing the application, discovery aforesaid way at least has following defects that inventor
In order to judge function button whether can functional meaning of the formulated representated by it, people can be used at present
Work mode detection function button whether can functional meaning of the formulated representated by it, the efficiency of this detection mode detection
It is relatively low.
Summary of the invention
In order to improve detection efficiency, the embodiment of the present application provides a kind of method and device of detection function button.It is described
Technical solution is as follows:
According to the embodiment of the present application in a first aspect, providing a kind of method of detection function button, which comprises
Obtain the icon and the corresponding functional meaning information of the function button of function button to be detected;
According to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, the map logo
Other parameter is used to indicate the difference degree between the icon and interface, and the interface is the interface where the function button,
The function intelligibility is for indicating that the function button expresses the order of accuarcy of the functional meaning information corresponding function;
According to the icon-based programming parameter, the function identification degree and the functional meaning information, the function is detected
Whether button meets default identification condition.
Optionally, the icon-based programming parameter includes the color identification degree of the icon, size identification degree and described
At least one of contrast between the color of function button and the color at interface.
Optionally, described according to the icon, the icon for obtaining the icon can recognize parameter, comprising:
Obtain the size of the icon of the function button;
It is big to obtain the corresponding preset area of the device type for the device type of display equipment where the interface
It is small;
Calculate the first ratio between the size of the acquisition and the preset area size of the acquisition, described first
Ratio is size identification degree.
Optionally, the color identification degree include the first tone identification degree of the icon, the first lightness can recognize
Degree and the first saturation degree identification degree;
It is described according to the icon, the icon for obtaining the icon can recognize parameter, comprising:
The channel value of each Color Channel for each pixel that icon according to the function button includes, calculates separately institute
The tone value for stating each pixel can recognize according to the first tone that the tone value of each pixel calculates the icon
Degree;
The corresponding maximum of each pixel is determined from the channel value of each Color Channel of each pixel respectively
Channel value and smallest passage value, can according to the first lightness that the largest passages value and the smallest passage value calculate the icon
Resolution and the first saturation degree identification degree.
Optionally, described according to the icon, the icon for obtaining the icon can recognize parameter, further includes:
Obtain the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface;
According to the first tone identification degree, the first lightness identification degree and the first saturation degree identification degree of the icon with
And the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface, calculate the function
Contrast between the color of energy button and the color at interface.
Optionally, described according to the icon, obtain the function identification degree of the icon, comprising:
According to the functional meaning information, the picture for expressing the functional meaning information is obtained;
The similarity between the icon of the function button and the picture of acquisition is calculated, it can as function using the similarity
Resolution.
Optionally, described according to the icon-based programming parameter, the function identification degree and the functional meaning information, inspection
Survey whether the function button meets preset condition, comprising:
According to the functional meaning information, obtaining the icon can recognize the corresponding preset parameter range of parameter and/or institute
State the corresponding preset parameter range of function identification degree;
If the icon can recognize that parameter is located at the preset parameter range and/or the function identification degree is located at institute
It states within the scope of default value, it is determined that the function button meets the default identification condition.
According to the second aspect of the embodiment of the present application, a kind of device of detection function button is provided, described device includes:
First obtains module, and icon and the corresponding function of the function button for obtaining function button to be detected contain
Adopted information;
Second obtains module, for according to the icon, the icon for obtaining the icon to can recognize that parameter and/or function can
Resolution, the icon-based programming parameter are used to indicate the difference degree between the icon and interface, and the interface is the function
Interface where energy button, the function intelligibility correspond to function for indicating that the function button expresses the functional meaning information
The order of accuarcy of energy;
Detection module is used for according to the icon-based programming parameter, the function identification degree and the functional meaning information,
Detect whether the function button meets default identification condition.
Optionally, the icon-based programming parameter includes the color identification degree of the icon, size identification degree and described
At least one of contrast between the color of function button and the color at interface.
Optionally, the second acquisition module includes:
First acquisition unit, the size of the icon for obtaining the function button;
Second acquisition unit obtains the equipment class for the device type according to the display equipment where the interface
The corresponding preset area size of type;
First computing unit, for calculating between the size of the acquisition and the preset area size of the acquisition
First ratio, first ratio are size identification degree.
Optionally, the color identification degree include the first tone identification degree of the icon, the first lightness can recognize
Degree and the first saturation degree identification degree;
Described second, which obtains module, includes:
Second computing unit, each Color Channel of each pixel for including according to the icon of the function button
Channel value calculates separately the tone value of each pixel, calculates the icon according to the tone value of each pixel
The first tone identification degree;
Third computing unit is determined for respectively from the channel value of each Color Channel of each pixel described each
The corresponding largest passages value of pixel and smallest passage value, according to the largest passages value and smallest passage value calculating
The the first lightness identification degree and the first saturation degree identification degree of icon.
Optionally, described second module is obtained further include:
Third acquiring unit, for obtaining the second tone identification degree, the second lightness identification degree and at the interface
Two saturation degree identification degrees;
4th computing unit, for according to the first tone identification degree of the icon, the first lightness identification degree and
One saturation degree identification degree and the second tone identification degree at the interface, the second lightness identification degree and the second saturation degree can
Resolution calculates the contrast between the color of the function button and the color at interface.
Optionally, the second acquisition module includes:
4th acquiring unit, for obtaining for expressing the functional meaning information according to the functional meaning information
Picture;
5th computing unit, for calculating the similarity between the icon of the function button and the picture of acquisition, by institute
Similarity is stated as function identification degree.
Optionally, the detection module includes:
5th acquiring unit, for according to the functional meaning information, obtaining the icon to can recognize that parameter is corresponding pre-
Setting parameter range and/or the corresponding preset parameter range of the function identification degree;
Detection unit, if can recognize that parameter is located at the preset parameter range and/or the function for the icon
Identification degree is located within the scope of the default value, it is determined that the function button meets the default identification condition.
Technical solution provided by the embodiments of the present application can include the following benefits:
By obtaining the icon functional meaning information corresponding with the function button of function button to be detected, according to the figure
Mark, the icon for obtaining the icon can recognize parameter and/or function identification degree, can recognize according to the icon-based programming parameter, function
Degree and functional meaning information, detect whether the function button can meet default identification condition, so as to detect the function automatically
Can button express the corresponding function of functional meaning information, improve detection efficiency.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application
Example, and together with specification it is used to explain the principle of the application.
Fig. 1 is a kind of method flow diagram for detection function button that the embodiment of the present application 1 provides;
Fig. 2 is a kind of method flow diagram for detection function button that the embodiment of the present application 2 provides;
Fig. 3 is a kind of apparatus structure block diagram for detection function button that the embodiment of the present application 3 provides;
Fig. 4 is a kind of apparatus structure block diagram for detection function button that the embodiment of the present application 4 provides.
Through the above attached drawings, it has been shown that the specific embodiment of the application will be hereinafter described in more detail.These attached drawings
It is not intended to limit the range of the application design in any manner with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
Embodiment 1
Referring to Fig. 1, the embodiment of the present application provides a kind of method of detection function button, comprising:
Step 101: obtaining the icon functional meaning information corresponding with the function button of function button to be detected.
Step 102: according to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, the icon
Identification parameter is used to indicate the difference degree between the icon and interface, which is the interface where the function button, the function
Energy intelligibility is for indicating that the function button expresses the order of accuarcy of the functional meaning information corresponding function.
Step 103: according to the icon-based programming parameter, the function identification degree and the functional meaning information, detecting the function
Whether button meets default identification condition.
In the embodiment of the present application, pass through the icon function corresponding with the function button of acquisition function button to be detected
Meaning information, according to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, according to the map logo
Other parameter, the function identification degree and the functional meaning information, detect whether the function button meets default identification condition, thus
Can the function button be can automatically detect express the corresponding function of functional meaning information, improve detection efficiency.
Embodiment 2
Referring to fig. 2, the embodiment of the present application provides a kind of method of detection function button, comprising:
Step 201: obtaining the icon functional meaning information corresponding with the function button of function button to be detected.
Function button to be detected is the button in the interface of APP, and whether function button being capable of its generation of formulated
The functional meaning of table, can method through this embodiment detect.
User can select the function button for needing to detect in the interface of APP, and it is corresponding to input the function button
Functional meaning information.It is pressed alternatively, a function button can be randomly choosed from interface as function to be detected by equipment
Button functional meaning information corresponding with the function button etc..
For example, user can click the function button for needing to detect in interface.Correspondingly, in the click for detecting user
When operation, input frame and ACK button can be shown in the interface.User input function meaning can believe in the input frame
After breath, the ACK button can be clicked.Correspondingly, obtaining this when detecting the clicking operation to the ACK button and being clicked
Function button icon of the icon as function button to be detected, and the conduct of functional meaning information is obtained from input frame
The corresponding functional meaning information of function button to be detected.
Step 202: according to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree.
Wherein, which is used to indicate the difference degree between the icon and interface, which is the function
Interface where button, the icon can recognize parameter for indicating that the function button expresses the functional meaning information corresponding function
Order of accuarcy.
Icon can recognize that parameter includes the color of the color identification degree of the icon, size identification degree and the function button
At least one of contrast between the color at interface.
Next the acquisition modes of parameter and function identification degree carry out in detail one by one respectively can recognize to above-mentioned each icon
Describe in detail it is bright, specifically:
For the color identification degree of the icon, the color identification degree of the icon may include the first tone of the icon
At least one of identification degree, the first lightness identification degree and first saturation degree identification degree.So for the face of the icon
The acquisition process of color identification degree can be with are as follows:
A1: the channel value of each Color Channel for each pixel that the icon according to the function button includes calculates separately
The tone value of each pixel.
Wherein, the Color Channel of each pixel includes red channel, green channel and blue channel, each Color Channel
Channel value be all integer value in 0 to 255.
Any one pixel that icon for the function button includes, according to the logical of the red color channel of the pixel
The channel value B of road value R, the channel value G of green channel and blue channel, (1) calculates the tone of the pixel as follows
Value H;
Alternatively,
Any one pixel that icon for the function button includes, from the channel value of each Color Channel of the pixel
In determine largest passages value and smallest passage value, i.e., from the channel value of the red channel of the pixel, the channel of green channel
Largest passages value and smallest passage value are determined in value and the channel value of blue channel.
It is logical according to the channel value G of green channel, blue if the channel value of red channel is maximum in three channel values
Channel value B, the largest passages value I in roadmaxWith smallest passage value Imin, (2) calculate the tone value H of the pixel as follows;
It is logical according to the channel value R of red channel, blue if the channel value in three channel value Green channels is maximum
Channel value B, the largest passages value I in roadmaxWith smallest passage value Imin, (3) calculate the tone value H of the pixel as follows;
It is logical according to the channel value R of red channel, green if the channel value of blue channel is maximum in three channel values
Channel value G, the largest passages value I in roadmaxWith smallest passage value Imin, (4) calculate the tone value H of the pixel as follows;
A2: calculating the first tone identification degree of the icon according to the tone value of each pixel,
Specifically, according to the tone value of each pixel, average tone value is calculated, using the tone value that is averaged as the figure
Target the first tone identification degree.
A3: the first lightness identification degree of the icon is calculated according to the largest passages value of each pixel and smallest passage value
With the first saturation degree identification degree.
For the first lightness identification degree, calculating process can be with are as follows: first according to the largest passages value of each pixel
With smallest passage value, (5) calculate separately the brightness value L of each pixel as follows;Then according to the bright of each pixel
Angle value calculates mean lightness value, which is determined as the first lightness identification degree.
For the first saturation degree identification degree, calculating process can be with are as follows: first according to the largest passages of each pixel
Value and smallest passage value, (6) calculate separately the intensity value S of each pixel as follows;Then according to each pixel
Intensity value, calculate average staturation value, which be determined as the first saturation degree identification degree.
It can be with for the acquisition process of the size identification degree of the icon are as follows:
B1: the size of the icon of the function button is obtained.
The generally rectangular structure of the icon of the function button, therefore two on the available icon a pair of of linea angulata in office
Coordinate of the angle steel joint in interface calculates the length and width of the icon according to the coordinate of two angle steel joints, according to the figure
Target length and width calculates the size of the icon.
B2: it is big to obtain the corresponding preset area of the device type for the device type of the display equipment where the interface
It is small.
The device type for showing equipment can be mobile phone, this computer of pen and tablet computer etc..Every kind of display is arranged in advance to set
For corresponding preset area size, and by the device type of every kind of display equipment with preset area size preservation device type and in advance
If in the corresponding relationship of size.
This step can be with are as follows: the device type for obtaining the display equipment where the interface, according to the device type, from equipment
Corresponding preset area size is obtained in type and the corresponding relationship of preset area size.
B3: calculating the first ratio between the size of acquisition and the preset area size of acquisition, and the first ratio is made
For size identification degree.
It can be with for the acquisition process of the function identification degree of the icon are as follows:
According to the functional meaning information, the picture for expressing the functional meaning information is obtained;Calculate the function button
Similarity between icon and the picture of acquisition, using the similarity as function identification degree.
It optionally, can be according to the functional meaning information, from acquisition pair in the corresponding relationship of functional meaning information and picture
The picture answered.
Optionally, functional meaning information picture corresponding with any one functional meaning information in the corresponding relationship of picture can
It can be pre-set by technical staff, or detect the icon for the function button that can express the functional meaning information
Deng.
The acquisition process of color for the function button of the icon and the contrast between the color at the interface can be with are as follows:
C1: the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface are obtained.
Obtain the detailed of the second tone identification degree at the interface, the second lightness identification degree and the second saturation degree identification degree
Thin process, may refer to the first tone identification degree of the icon of the above-mentioned acquisition function button, the first lightness identification degree and
The process of first saturation degree identification degree, is no longer described in detail herein.
C2: according to the first tone identification degree, the first lightness identification degree and the first saturation degree identification degree of the icon
And the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface, calculate the function
Contrast between the color of button and the color at interface.
This step can be with are as follows: calculates the first identification degree between the first tone identification degree and the second tone identification degree
Ratio calculates the second identification degree ratio between the first lightness identification degree and the second lightness identification degree, and it is full to calculate first
Degree identification degree and the second saturation degree identification degree between third identification degree ratio, calculate the first identification degree ratio,
Average value between second identification degree ratio and third identification degree ratio, using the average value as the color of the function button
Contrast between the color at interface.
Step 203: according to the functional meaning information, obtain icon can recognize the corresponding preset parameter range of parameter and/or
The corresponding preset parameter range of function identification degree.
Preset in advance the corresponding each icon of each functional meaning information can recognize the corresponding preset parameter range of parameter and
The corresponding preset parameter range of function identification degree, and by each functional meaning information, each icon can recognize that parameter is corresponding
Preset parameter range and the corresponding preset parameter range of function identification degree are stored in functional meaning information and preset parameter range
Corresponding relationship in.
This step can be, according to the functional meaning information, to close from functional meaning information is corresponding with preset parameter range
Each icon is obtained in system can recognize the corresponding preset parameter range of parameter and/or the corresponding parameter preset model of function identification degree
It encloses.
Middle packet for example, with reference to the corresponding relationship of functional meaning information and preset parameter range shown in the following table 1, in table 1
Including the corresponding functional meaning information of the broadcast button for playing video is that " playing video " and the icon of the broadcast button can be known
The corresponding preset parameter range of other parameter and the corresponding preset parameter range of function identification degree.
Table 1
In table 1 above, the corresponding preset parameter range of tone identification degree is 0.4-0.6, indicates to be greater than or equal to 0.4
And it is less than or equal to 0.6, or greater than 0.4 and less than 0.6, or more than or equal to 0.4 and less than 0.6, or greater than 0.4 and be less than
Or it is equal to 0.6.The meaning of other similar content in table 1 is identical, will not enumerate explanation herein.
Step 204: if the icon can recognize that parameter is located at preset parameter range and/or the function identification degree is located in advance
If in numberical range, it is determined that the function button meets default identification condition.
Wherein, if each icon can recognize that parameter is located at corresponding preset parameter range and/or the function
Identification degree is located at its corresponding preset parameter range, it is determined that the function button can express the corresponding function of functional meaning information
Can, otherwise, it determines the function button cannot express the corresponding function of functional meaning information.
When determining that the function button can express the corresponding function of the functional meaning information, the equipment class that can also will acquire
The icon of type and function button correspondence is stored in the corresponding relationship of device type and picture.
In the embodiment of the present application, pass through the icon function corresponding with the function button of acquisition function button to be detected
Meaning information, according to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, be contained according to the function
Adopted information, obtaining icon can recognize the corresponding preset parameter range of parameter and/or the corresponding parameter preset model of function identification degree
It encloses;If if the icon can recognize that parameter is located at its corresponding preset parameter range and/or the function identification degree is located at it
Within the scope of corresponding default value, it is determined that the function button meets default identification condition, that is, determines that the function button can express
The corresponding function of functional meaning information, otherwise, it determines the function button cannot express the corresponding function of functional meaning information,
The corresponding function of functional meaning information can be expressed so as to detect the function button automatically, improves detection efficiency.
Following is the application Installation practice, can be used for executing the application embodiment of the method.It is real for the application device
Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Embodiment 3
Referring to Fig. 3, the embodiment of the present application provides a kind of device 300 of detection function button, and described device 300 includes:
First obtains module 301, for obtaining the icon and the corresponding function of the function button of function button to be detected
It can meaning information;
Second obtains module 302, for according to the icon, the icon for obtaining the icon to can recognize parameter and/or function
Energy identification degree, for the icon-based programming parameter for indicating the difference degree between the icon and interface, the interface is institute
The interface where function button is stated, the function intelligibility is for indicating that the function button expresses the functional meaning information pair
Answer the order of accuarcy of function;
Detection module 303, for being believed according to the icon-based programming parameter, the function identification degree and the functional meaning
Breath, detects whether the function button meets default identification condition.
Optionally, the icon-based programming parameter includes the color identification degree of the icon, size identification degree and described
At least one of contrast between the color of function button and the color at interface.
Optionally, the second acquisition module 302 includes:
First acquisition unit, the size of the icon for obtaining the function button;
Second acquisition unit obtains the equipment class for the device type according to the display equipment where the interface
The corresponding preset area size of type;
First computing unit, for calculating between the size of the acquisition and the preset area size of the acquisition
First ratio, first ratio are size identification degree.
Optionally, the color identification degree include the first tone identification degree of the icon, the first lightness can recognize
Degree and the first saturation degree identification degree;
Described second, which obtains module 302, includes:
Second computing unit, each Color Channel of each pixel for including according to the icon of the function button
Channel value calculates separately the tone value of each pixel, calculates the icon according to the tone value of each pixel
The first tone identification degree;
Third computing unit is determined for respectively from the channel value of each Color Channel of each pixel described each
The corresponding largest passages value of pixel and smallest passage value, according to the largest passages value and smallest passage value calculating
The the first lightness identification degree and the first saturation degree identification degree of icon.
Optionally, described second module 302 is obtained further include:
Third acquiring unit, for obtaining the second tone identification degree, the second lightness identification degree and at the interface
Two saturation degree identification degrees;
4th computing unit, for according to the first tone identification degree of the icon, the first lightness identification degree and
One saturation degree identification degree and the second tone identification degree at the interface, the second lightness identification degree and the second saturation degree can
Resolution calculates the contrast between the color of the function button and the color at interface.
Optionally, the second acquisition module 302 includes:
4th acquiring unit, for obtaining for expressing the functional meaning information according to the functional meaning information
Picture;
5th computing unit, for calculating the similarity between the icon of the function button and the picture of acquisition, by institute
Similarity is stated as function identification degree.
Optionally, the detection module 303 includes:
5th acquiring unit, for according to the functional meaning information, obtaining the icon to can recognize that parameter is corresponding pre-
Setting parameter range and/or the corresponding preset parameter range of the function identification degree;
Detection unit, if can recognize that parameter is located at the preset parameter range and/or the function for the icon
Identification degree is located within the scope of the default value, it is determined that the function button meets the default identification condition.
In the embodiment of the present application, pass through the icon function corresponding with the function button of acquisition function button to be detected
Meaning information, according to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, according to the map logo
Other parameter, the function identification degree and the functional meaning information, detect whether the function button meets default identification condition, thus
Can the function button be can automatically detect express the corresponding function of functional meaning information, improve detection efficiency.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Embodiment 4
Referring to fig. 4, the embodiment of the present application provides a kind of block diagram of the device 400 of detection function button.For example, device
400 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Referring to Fig. 4, device 400 may include following one or more components: processing component 402, memory 404, power supply
Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414, and
Communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 402 may include that one or more processors 420 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just
Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate
Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown
Example includes the instruction of any application or method for operating on device 400, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 may include power management system
System, one or more power supplys and other with for device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between described device 400 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set
Part 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented
Estimate.For example, sensor module 414 can detecte the state that opens/closes of device 400, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or device
Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400
Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device
400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 400
When device executes, so that a kind of method that device 400 is able to carry out detection function button, which comprises
Obtain the icon and the corresponding functional meaning information of the function button of function button to be detected;
According to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, the map logo
Other parameter is used to indicate the difference degree between the icon and interface, and the interface is the interface where the function button,
The function intelligibility is for indicating that the function button expresses the order of accuarcy of the functional meaning information corresponding function;
According to the icon-based programming parameter, the function identification degree and the functional meaning information, the function is detected
Whether button meets default identification condition.
Optionally, the icon-based programming parameter includes the color identification degree of the icon, size identification degree and described
At least one of contrast between the color of function button and the color at interface.
Optionally, described according to the icon, the icon for obtaining the icon can recognize parameter, comprising:
Obtain the size of the icon of the function button;
It is big to obtain the corresponding preset area of the device type for the device type of display equipment where the interface
It is small;
Calculate the first ratio between the size of the acquisition and the preset area size of the acquisition, described first
Ratio is size identification degree.
Optionally, the color identification degree include the first tone identification degree of the icon, the first lightness can recognize
Degree and the first saturation degree identification degree;
It is described according to the icon, the icon for obtaining the icon can recognize parameter, comprising:
The channel value of each Color Channel for each pixel that icon according to the function button includes, calculates separately institute
The tone value for stating each pixel can recognize according to the first tone that the tone value of each pixel calculates the icon
Degree;
The corresponding maximum of each pixel is determined from the channel value of each Color Channel of each pixel respectively
Channel value and smallest passage value, can according to the first lightness that the largest passages value and the smallest passage value calculate the icon
Resolution and the first saturation degree identification degree.
Optionally, described according to the icon, the icon for obtaining the icon can recognize parameter, further includes:
Obtain the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface;
According to the first tone identification degree, the first lightness identification degree and the first saturation degree identification degree of the icon with
And the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface, calculate the function
Contrast between the color of energy button and the color at interface.
Optionally, described according to the icon, obtain the function identification degree of the icon, comprising:
According to the functional meaning information, the picture for expressing the functional meaning information is obtained;
The similarity between the icon of the function button and the picture of acquisition is calculated, it can as function using the similarity
Resolution.
Optionally, described according to the icon-based programming parameter, the function identification degree and the functional meaning information, inspection
Survey whether the function button meets preset condition, comprising:
According to the functional meaning information, obtaining the icon can recognize the corresponding preset parameter range of parameter and/or institute
State the corresponding preset parameter range of function identification degree;
If the icon can recognize that parameter is located at the preset parameter range and/or the function identification degree is located at institute
It states within the scope of default value, it is determined that the function button meets the default identification condition.
In the embodiment of the present application, pass through the icon function corresponding with the function button of acquisition function button to be detected
Meaning information, according to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, according to the map logo
Other parameter, function identification degree and functional meaning information, detect whether the function button can meet default identification condition, so as to
Enough can the function button detected automatically express the corresponding function of functional meaning information, improve detection efficiency.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (14)
1. a kind of method of detection function button, which is characterized in that the described method includes:
Obtain the icon and the corresponding functional meaning information of the function button of function button to be detected;
According to the icon, the icon for obtaining the icon can recognize parameter and/or function identification degree, the icon-based programming ginseng
For number for indicating the difference degree between the icon and interface, the interface is the interface where the function button, described
Function intelligibility is for indicating that the function button expresses the order of accuarcy of the functional meaning information corresponding function;
According to the icon-based programming parameter, the function identification degree and the functional meaning information, the function button is detected
Whether satisfaction presets identification condition.
2. the method as described in claim 1, which is characterized in that the icon-based programming parameter includes that the color of the icon can be known
Not Du, at least one of the contrast between the color of size identification degree and the function button and the color at interface.
3. method according to claim 2, which is characterized in that described according to the icon, the icon for obtaining the icon can
Identification parameter, comprising:
Obtain the size of the icon of the function button;
The device type of display equipment where the interface obtains the corresponding preset area size of the device type;
Calculate the first ratio between the size of the acquisition and the preset area size of the acquisition, first ratio
For size identification degree.
4. method according to claim 2, which is characterized in that the color identification degree includes the first tone of the icon
Identification degree, the first lightness identification degree and the first saturation degree identification degree;
It is described according to the icon, the icon for obtaining the icon can recognize parameter, comprising:
The channel value of each Color Channel for each pixel that icon according to the function button includes calculates separately described every
The tone value of a pixel calculates the first tone identification degree of the icon according to the tone value of each pixel;
The corresponding largest passages of each pixel are determined from the channel value of each Color Channel of each pixel respectively
Value and smallest passage value can recognize according to the first lightness that the largest passages value and the smallest passage value calculate the icon
Degree and the first saturation degree identification degree.
5. method as claimed in claim 4, which is characterized in that described according to the icon, the icon for obtaining the icon can
Identification parameter, further includes:
Obtain the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree at the interface;
According to the first tone identification degree of the icon, the first lightness identification degree and the first saturation degree identification degree and institute
The the second tone identification degree, the second lightness identification degree and the second saturation degree identification degree for stating interface, calculate the function and press
Contrast between the color of button and the color at interface.
6. the method as described in claim 1, which is characterized in that described according to the icon, the function of obtaining the icon can
Resolution, comprising:
According to the functional meaning information, the picture for expressing the functional meaning information is obtained;
The similarity between the icon of the function button and the picture of acquisition is calculated, can recognize using the similarity as function
Degree.
7. the method as described in claim 1, which is characterized in that described to be known according to the icon-based programming parameter, the function
It Du not detect whether the function button meets preset condition with the functional meaning information, comprising:
According to the functional meaning information, obtaining the icon can recognize the corresponding preset parameter range of parameter and/or the function
It can the corresponding preset parameter range of identification degree;
If the icon can recognize that parameter is located at the preset parameter range and/or the function identification degree positioned at described pre-
If in numberical range, it is determined that the function button meets the default identification condition.
8. a kind of device of detection function button, which is characterized in that described device includes:
First obtains module, the corresponding functional meaning letter of the icon and the function button for obtaining function button to be detected
Breath;
Second obtains module, for according to the icon, the icon for obtaining the icon to can recognize that parameter and/or function can recognize
Degree, the icon-based programming parameter are used to indicate the difference degree between the icon and interface, and the interface is that the function is pressed
Interface where button, the function intelligibility is for indicating that the function button expresses the functional meaning information corresponding function
Order of accuarcy;
Detection module, for according to the icon-based programming parameter, the function identification degree and the functional meaning information, detection
Whether the function button meets default identification condition.
9. device as claimed in claim 8, which is characterized in that the icon-based programming parameter includes that the color of the icon can be known
Not Du, at least one of the contrast between the color of size identification degree and the function button and the color at interface.
10. device as claimed in claim 9, which is characterized in that described second, which obtains module, includes:
First acquisition unit, the size of the icon for obtaining the function button;
Second acquisition unit obtains the device type pair for the device type according to the display equipment where the interface
The preset area size answered;
First computing unit, for calculating first between the size of the acquisition and the preset area size of the acquisition
Ratio, first ratio are size identification degree.
11. device as claimed in claim 9, which is characterized in that the color identification degree includes the first color of the icon
Adjust identification degree, the first lightness identification degree and the first saturation degree identification degree;
Described second, which obtains module, includes:
Second computing unit, the channel of each Color Channel of each pixel for including according to the icon of the function button
Value, calculates separately the tone value of each pixel, calculates the of the icon according to the tone value of each pixel
One tone identification degree;
Third computing unit, for determining each pixel from the channel value of each Color Channel of each pixel respectively
The corresponding largest passages value of point and smallest passage value calculate the icon according to the largest passages value and the smallest passage value
The first lightness identification degree and the first saturation degree identification degree.
12. device as claimed in claim 11, which is characterized in that described second obtains module further include:
Third acquiring unit, for obtaining the second tone identification degree at the interface, the second lightness identification degree and second is satisfied
With degree identification degree;
4th computing unit, for full according to the first tone identification degree of the icon, the first lightness identification degree and first
It can recognize with degree identification degree and the second tone identification degree at the interface, the second lightness identification degree and the second saturation degree
Degree, calculates the contrast between the color of the function button and the color at interface.
13. device as claimed in claim 8, which is characterized in that described second, which obtains module, includes:
4th acquiring unit, for obtaining the picture for expressing the functional meaning information according to the functional meaning information;
5th computing unit, for calculating the similarity between the icon of the function button and the picture of acquisition, by the phase
Function identification degree is used as like degree.
14. device as claimed in claim 8, which is characterized in that the detection module includes:
5th acquiring unit, for according to the functional meaning information, obtaining the icon to can recognize the corresponding default ginseng of parameter
Number range and/or the corresponding preset parameter range of the function identification degree;
Detection unit, if can recognize that parameter is located at the preset parameter range and/or the function and can know for the icon
Du it not be located within the scope of the default value, it is determined that the function button meets the default identification condition.
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 true CN109710123A (en) | 2019-05-03 |
CN109710123B 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)
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 |
-
2017
- 2017-10-26 CN CN201711013390.6A patent/CN109710123B/en active Active
Patent Citations (3)
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 |
---|---|
CN109710123B (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104318741B (en) | Bluetooth equipment control method and device | |
CN106454336B (en) | The method and device and terminal that detection terminal camera is blocked | |
CN104182313B (en) | Be delayed the method and apparatus taken pictures | |
CN105094549B (en) | Show the method and device of message | |
CN105204808B (en) | Projective techniques, device and the terminal device of picture | |
CN104156915A (en) | Skin color adjusting method and device | |
CN105957037B (en) | Image enchancing method and device | |
CN105391621B (en) | Information communicating method and device | |
CN105208284B (en) | Shoot based reminding method and device | |
CN105224174B (en) | The display methods and device of Paste | |
CN106101433B (en) | Notification message display methods and device | |
CN105183755B (en) | A kind of display methods and device of picture | |
CN107463052A (en) | Shoot exposure method and device | |
CN107529699A (en) | Control method of electronic device and device | |
CN105528765A (en) | Method and device for processing image | |
CN107896355A (en) | The control method and device of AI audio amplifiers | |
CN105938412A (en) | Volume icon display method and device | |
CN107330391A (en) | Product information reminding method and device | |
CN107168543A (en) | Control method of keyboard and device | |
CN105094539B (en) | Reference information display methods and device | |
CN104010129A (en) | Image processing method, device and terminal | |
CN105573747B (en) | The test method and device of user interface | |
CN107845094A (en) | Pictograph detection method, device and computer-readable recording medium | |
CN106557294A (en) | Color adjustment method and device | |
CN106527871B (en) | The display methods and device of application icon |
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 |