Key configuration method and device, electronic equipment and storage medium

文档序号:1627673 发布日期:2020-01-14 浏览:7次 中文

阅读说明:本技术 按键配置方法、装置、电子设备及存储介质 (Key configuration method and device, electronic equipment and storage medium ) 是由 乔爱国 李晓滨 于 2019-09-29 设计创作,主要内容包括:本申请实施例公开了一种按键配置方法及相关产品,所述方法应用于电子设备,所述电子设备包括:一个或多个传感器;所述方法包括如下步骤:通过一个或多个传感器采集目标对象的触控数据;依据所述触控数据配置电子设备的按键参数。本申请提供的技术方案具有提高用户体验度的优点。(The embodiment of the application discloses a key configuration method and a related product, wherein the method is applied to electronic equipment, and the electronic equipment comprises the following steps: one or more sensors; the method comprises the following steps: acquiring touch data of a target object through one or more sensors; and configuring key parameters of the electronic equipment according to the touch data. The technical scheme provided by the application has the advantage of improving the user experience.)

1. A key configuration method is applied to an electronic device, and the electronic device comprises the following steps: one or more sensors; the method comprises the following steps:

acquiring touch data of a target object through the one or more sensors;

and configuring key parameters of the electronic equipment according to the touch data.

2. The method of claim 1, wherein configuring key parameters of an electronic device according to the touch data comprises:

and configuring at least one of a key position, a key function and a key gesture of the electronic equipment according to the touch data.

3. The method of claim 2, wherein configuring at least one of a key position, a key function, and a key gesture of an electronic device according to the touch data comprises:

determining the key position and the key gesture of the target object according to the touch data;

acquiring a key function input by a target object;

and establishing a mapping relation among the key positions, the key gestures and the key functions.

4. A method according to claim 2 or 3, characterized in that the method further comprises:

and when the gesture of the target object is determined to be a first gesture, acquiring a key function corresponding to the first gesture according to the mapping relation, and controlling the electronic equipment to execute an operation instruction corresponding to the key function.

5. The method according to any one of claims 1-3, further comprising:

and acquiring the use habit data of the target object, and updating the key parameters according to the use habit data.

6. The method according to claim 5, wherein the obtaining usage habit data of the target object specifically comprises:

and acquiring the use habit data according to historical touch data or the identity of the target object.

7. A key configuration device is characterized by comprising a processing unit and an acquisition unit, wherein,

the acquisition unit is used for acquiring touch data of a target object;

and the processing unit is used for configuring key parameters of the electronic equipment according to the touch data.

8. The apparatus of claim 7,

the processing unit is specifically configured to acquire a usage habit of a target object, and reconfigure the key according to the usage habit.

9. An electronic device comprising a processor, a memory, one or more sensors, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.

Technical Field

The present application relates to the field of electronic device technologies, and in particular, to a key configuration method and apparatus, an electronic device, and a storage medium.

Background

The smart phone is an electronic device which is provided with an independent operating system and an independent running space like a personal computer and can be used for installing software by a user. The existing smart phone controls the smart phone through keys and a display screen, and the key positions of the existing smart phone are relatively fixed, so that the requirement of a user on key personalized configuration cannot be met, and the user experience is influenced.

Disclosure of Invention

The embodiment of the application provides a key configuration method and device, electronic equipment and a storage medium, so that the configuration of any position of a key can be realized, and the user experience of the electronic equipment can be improved.

In a first aspect, an embodiment of the present application provides a key configuration method, where the method is applied to an electronic device, and the electronic device includes: one or more sensors; the method comprises the following steps:

acquiring touch data of a target object through one or more sensors;

and configuring key parameters of the electronic equipment according to the touch data.

In an optional scheme, the configuring key parameters of the electronic device according to the touch data includes:

and configuring at least one of a key position, a key function and a key gesture of the electronic equipment according to the touch data.

In an optional scheme, the configuring at least one of a key position, a key function, and a key gesture of the electronic device according to the touch data includes:

determining the key position and the key gesture of the target object according to the touch data;

acquiring a key function input by a target object;

and establishing a mapping relation among the key positions, the key gestures and the key functions.

In an optional aspect, the method further comprises:

and acquiring the use habit data of the target object, and updating the key parameters according to the use habit data.

In an optional aspect, the method further comprises:

and when the gesture of the target object is determined to be the identity of the target object, acquiring a key function corresponding to the first gesture according to the mapping relation, and controlling the electronic equipment to execute an operation instruction corresponding to the key function.

In an optional scheme, the acquiring usage habit data of the target object specifically includes:

and determining the use habit according to historical touch data or the identity of the target object.

In an optional scheme, the determining the identity of the target object specifically includes:

acquiring a target object face image, performing feature extraction on the face image to obtain N features, and comparing the N features with N set thresholds respectively to obtain M features larger than the set thresholds and W feature values smaller than the set thresholds, wherein N is M + W; inputting the M characteristics as M input neurons into a face recognition algorithm based on a neural network, performing calculation to obtain a first calculation result, obtaining second calculation results of a plurality of preset face images based on the face recognition algorithm, performing subtraction calculation on the first calculation result and the second calculation results to obtain a plurality of difference results, selecting a minimum value from the plurality of difference results, and determining the identity of the preset face image corresponding to the minimum value as the identity of the target object if the minimum value is smaller than a difference threshold value.

In a second aspect, a key configuration device is provided, comprising a processing unit and an acquisition unit, wherein,

the acquisition unit is used for acquiring touch data of a target object;

and the processing unit is used for configuring key parameters of the electronic equipment according to the touch data.

In an optional scheme, the processing unit is specifically configured to obtain a usage habit of the target object, and reconfigure the key according to the usage habit.

In an optional scheme, the processing unit is further configured to determine a gesture of the target object according to the touch data, and acquire a key function input by the target object; and establishing a mapping relation among the key positions, the key gestures and the key functions.

In an optional scheme, the processing unit is further configured to, when it is determined that the touch data of the target object is the first gesture, obtain a key function corresponding to the first gesture according to the mapping relationship, and control the electronic device to execute an operation corresponding to the key function.

In a third aspect, an electronic device is provided that includes a processor, a memory, one or more sensors, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps of the method provided in the first aspect.

In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the second aspect.

In a fifth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method provided by the first aspect.

According to the technical scheme, the key positions are configured by acquiring the touch data of the target object through one or more sensors, and compared with the fixed key, the individuation of the key position configuration can be improved by configuring the key positions according to the touch data. The technical scheme of this application can not shelter from the screen, and this technical scheme is not virtual button, need not show the button suggestion at the screen, consequently can perfectly solve the virtual button based on screen display and touch-control and shelter from the problem to the screen display content, and the technical scheme of this application can not influence electronic equipment's display effect promptly. Therefore, the technical scheme of the application has the advantage of high user experience.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of a key configuration method according to an embodiment of the present application;

fig. 3 is a schematic flowchart of a key configuration method according to an embodiment of the present application;

fig. 4 is a block diagram of functional units of a key configuration device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure, fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the display device comprises a shell 110, a circuit board 120, a battery 130 (optional), a cover plate 140, a display screen 150 and a sensor 170, wherein the circuit board 120, at least one sensor 170, the battery 130 and the cover plate 140 are arranged on the shell 110, and the circuit board 120 is also provided with a circuit connected with the display screen 150; the circuit board 120 may further include: an application processor 190. The sensor 170 may be disposed at a position of a frame of the housing 110, may be disposed in a region of the cover plate 140, or may be disposed on a surface of the display screen 150 facing the internal circuit board 120.

The Display screen may be a Thin Film Transistor-liquid crystal Display (TFT-LCD), a Light Emitting Diode (LED) Display screen, an Organic Light Emitting Diode (OLED) Display screen, or the like.

Referring to fig. 2, fig. 2 provides a key configuration method, which may be performed by the electronic device shown in fig. 1, and the electronic device may be a handheld device, an in-vehicle device, a wearable device (smart watch, smart bracelet, headset, augmented reality/virtual reality device, smart glasses), a household appliance, a computing device or other processing device, and various forms of User Equipment (UE), a Mobile Station (MS), a terminal device (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The method, as shown in fig. 2, includes the following steps:

step S201, the electronic equipment acquires touch data of a target object through one or more sensors;

in the embodiment of the present application, the target object may be a human or other animals.

The touch data in step S201 may be different according to different types of sensors, for example, in an alternative embodiment, if the sensor is a pressure sensor, the touch data may be pressure data; as yet another alternative, if the sensor is a distance sensor, the touch data may be distance data. If the sensor is a capacitive touch sensor, the touch data may be capacitive touch data. In practical applications, the sensor may also be another type of sensor, and the specific type of the sensor and the specific type of the collected touch data are not limited in the embodiments of the present application.

Step S202, the electronic equipment configures key parameters of the electronic equipment according to the touch data.

The key parameters of the electronic device may include at least one of a key position, a key function, and a key gesture of the electronic device.

For example, the implementation method of the step S202 may specifically include at least one of the following:

and determining the touch position of the target object according to the position of the sensor generating the touch data, and configuring the touch position of the target object as the position of a key of the electronic equipment.

Determining the touch gesture of the target object according to at least one of position change of a sensor generating touch data, change of pressure value output by the sensor, time change of touch data output by the sensor and the like, and configuring the touch gesture of the target object as a key gesture of the electronic equipment.

And configuring the function input or selected by the target object as a key function, and establishing a mapping relation between the key function and the key position and/or the key gesture.

In an optional scheme, the electronic device may obtain an identifier of a sensor that collects the touch data, and determine a key position according to the identifier of the sensor that collects the touch data. To illustrate a practical example, the electronic device is provided with 10 sensors, the left frame is provided with 3 sensors, the right frame is provided with 3 sensors, and the cover is provided with 4 sensors, for example. For convenience of description, the numbers are uniformly numbered: the sensor 1, the sensor 2 … and the sensor 10, assuming that the sensor 1, the sensor 2 and the sensor 10 collect the touch data, determine the corresponding positions of the sensor 1, the sensor 2 and the sensor 10 as the positions of the keys.

In another alternative, the electronic device may obtain a plurality of touch data greater than a threshold value in the touch data, determine an identifier of a sensor corresponding to the plurality of touch data, and determine a position of the sensor corresponding to the identifier as a key position. To illustrate a practical example, for example, the electronic device is provided with 10 sensors, the left frame is provided with 3 sensors, the right frame is provided with 3 sensors, the cover plate is provided with 4 sensors, and for convenience of description, the sensors are numbered as follows: the sensor 1, the sensor 2 … and the sensor 10, wherein it is assumed that the sensor 1, the sensor 2 and the sensor 10 collect the touch data, where the touch data collected by the sensor 2 and the sensor 10 is greater than a threshold value, it is determined that the corresponding positions of the sensor 2 and the sensor 10 are positions of keys.

According to the technical scheme, the key positions are configured by acquiring the touch data of the target object through one or more sensors, and compared with fixed keys, the individuation of the key position configuration can be improved by configuring the key positions according to the touch data. The technical scheme of this application can not shelter from the screen, and this technical scheme is not virtual suspension button, need not show the button suggestion at the screen, consequently can perfectly solve the virtual button based on screen display and touch-control and shelter from the problem to screen display content, and the technical scheme of this application can not influence electronic equipment's display effect promptly. Therefore, the technical scheme of the application has the advantage of high user experience.

In some embodiments, optionally, configuring key parameters of the electronic device according to the touch data includes: and configuring at least one of a key position, a key function and a key gesture of the electronic equipment according to the touch data.

In some embodiments, optionally, configuring at least one of a key position, a key function, and a key gesture of the electronic device according to the touch data includes: determining the key position and the key gesture of the target object according to the touch data; acquiring a key function input by a target object; and establishing a mapping relation among the key positions, the key gestures and the key functions.

The gesture determination mode may be determined according to the touch position, the duration of the touch data, the acquisition time of the touch data, and the value of the touch data. For example, the frame of the housing of the electronic device is provided with 6 pressure sensors, wherein the left frame is provided with 3 pressure sensors, and the right frame is provided with 3 pressure sensors, for convenience of description, the pressure sensors are numbered and distinguished, and are respectively defined as: pressure sensor 1, pressure sensor 2 … pressure sensor 6, if the set key position is the position of pressure sensor 1, pressure sensor 2 and pressure sensor 6, then when the touch data includes the pressure data output by pressure sensor 6, pressure sensor 1, pressure sensor 2, the gesture of the target object, such as a holding gesture, a multi-touch, a sliding gesture, can be determined according to the position of pressure sensor 6, pressure sensor 1, pressure sensor 2 and the magnitude of the pressure value output by each sensor, the duration of outputting the pressure data, the time sequence of outputting the pressure data, etc.

According to the technical scheme, the corresponding gesture can be obtained through the time sequence of the data collected by the pressure sensors and the pressure data synthesis, so that the gesture of the target object can be recognized, and the electronic equipment can be controlled according to the gesture.

In some embodiments, optionally, after establishing the mapping relationship between the gesture and the key function, the method may further include:

and when the gesture of the target object is determined to be a preset first gesture, acquiring a key function corresponding to the first gesture according to the mapping relation, and controlling the electronic equipment to execute the operation corresponding to the key function.

Optionally, the specific implementation manner of controlling the electronic device to execute the operation corresponding to the key function may include:

the method comprises the steps of obtaining a first application program currently operated by the electronic equipment, generating a control command of a first gesture in the first application program according to the first gesture, and executing the control command on the first application program.

The implementation method for generating the control command of the first gesture in the first application program according to the first gesture specifically includes:

and acquiring a mapping relation between the gesture corresponding to the first application program and the control command, searching the control command corresponding to the first gesture from the mapping relation, and generating the control command.

For example, the mapping relationship may be specifically as shown in table 1:

table 1:

Figure BDA0002221430950000071

for example, the first gesture may be in an audio application, and the corresponding control command may be a previous control command or a next control command, and for example, in a video application, the first gesture may be in a fast forward mode or a fast backward mode. Of course, in practical applications, the application does not limit the specific corresponding relationship between the gestures and the application programs.

Optionally, the specific implementation manner of controlling the electronic device to execute the operation corresponding to the key function may include: and if the electronic device is in the screen locking state, unlocking the electronic device according to the first gesture.

According to the technical scheme, different control commands can be generated for different states of the electronic equipment, for example, when the electronic equipment is in a screen locking state, the corresponding operation can be unlocking operation. Wherein the unlocking operation can be at least one of the following: entering a main page by locking or black screen, or starting a preset application by locking or black screen, or the operation may also be a preset operation, and the preset operation may be at least one of the following operations: deletion operation, modification operation, compression operation, selection operation, photographing operation, payment operation, and the like, without limitation. The electronic device may perform an unlocking operation when a matching value between the first gesture and the preset gesture template is greater than a target gesture recognition threshold, otherwise, prompt a user of a gesture recognition error or a gesture input error when the matching value between the first gesture and the preset gesture template is less than or equal to the target gesture recognition threshold.

According to the technical scheme, the control instruction matched with the state can be configured according to different states, so that the corresponding state of the electronic equipment can be attached, and the using effect of a user can be attached.

In some embodiments, optionally, the method may further include:

and acquiring the use habit data of the target object, and updating the configuration of the key according to the use habit data.

Usage habits may be habits of operations carried by different target objects themselves, including, but not limited to: operating habits, pressing data habits, and the like.

The above configurations for updating the key include but are not limited to: and updating at least one of the configuration of the key position, the configuration of the key function, the configuration of the key gesture and the like, or updating the mapping relation among the key position, the key gesture and the key function.

In some embodiments, the usage habit data may be obtained from historical touch data or the identity of the target object. Alternatively, the usage habits may be determined by historical touch data. For example, this electronic equipment is provided with 10 sensors, and the left frame is provided with 3 sensors, and the right frame is provided with 3 sensors, and the apron is provided with 4 sensors, and for the convenience of description, the uniform numbering is: the number of times that the 10 sensors detect the touch data is counted by the sensor 1 and the sensor 2 …, and the position where the sensor with the number of times greater than the preset number threshold is located is updated to be the key position. Optionally, the key function may also be updated according to the historical touch data, for example, the sensor 1 and the sensor 2 in the historical touch data are the most commonly used gestures, and if the gesture is determined to be a music app, the sensor 1 and the sensor 2 are directly set to be the volume "+", "). Set up the habit of laminating user that the button function can be more through historical touch data, improved user experience.

Optionally, the usage habit may also be determined according to an identity of the target object, for example, a mapping relationship between a preset home identity and the usage habit is preset, and when the identity of the target object is determined to be the first identity, the usage habit corresponding to the first identity is directly extracted, where the usage habit may include at least one of the following: and selecting the positions of the sensors as key positions, effective key gestures corresponding to the key positions, namely touch data, the key positions and functions corresponding to the effective key gestures.

In some embodiments, optionally, before obtaining the usage habit data according to the historical touch data or the identity of the target object, the method may further include: the identity of the target object is determined. The identity of the target object is determined, for example, by means of biometric identification, including but not limited to: fingerprint identification, face identification, vein identification, pupil identification and the like.

The identity determination method is described below by taking face recognition as an example. The determining the identity of the target object by face recognition may specifically include: acquiring a target object face image, performing feature extraction on the face image to obtain N features, and comparing the N features with N set thresholds respectively to obtain M features larger than the set thresholds and W feature values smaller than the set thresholds, wherein N is M + W; inputting the M characteristics as M input neurons into a face recognition algorithm based on a neural network, performing calculation to obtain a first calculation result, obtaining second calculation results of a plurality of preset face images based on the face recognition algorithm, performing subtraction calculation on the first calculation result and the second calculation results to obtain a plurality of difference results, selecting a minimum value from the plurality of difference results, and determining the identity of the preset face image corresponding to the minimum value as the identity of the target object if the minimum value is smaller than a difference threshold value.

The above-mentioned facial image of gathering target object can gather through the camera module, and this camera module mould can be for, set up the leading camera module at the terminal, and certainly in practical application, also can gather facial image through the rearmounted camera module that sets up at the terminal. The specific implementation of the present invention does not limit the specific camera module for acquiring the face image. The human face image can be acquired through the infrared camera module or the visible light camera module.

The above feature extraction may be performed in various manners, for example, N features are obtained by extracting features of a face image through a feature face algorithm, and of course, other feature extraction manners may also be used in practical applications, for example, N features are obtained by extracting features of a face image through a local binary pattern algorithm. The value range of N may be an integer greater than or equal to 2, and specifically, the N features include but are not limited to: any combination of eye features, ear features, facial features, contour features, skin tone features, and the like. The present invention is not limited to the N representations.

Optionally, if the electronic device includes multiple cores, the face recognition operation may be performed by multiple cores in parallel.

The identity determination method is described below by taking face recognition as an example. The determining the identity of the target object by face recognition may specifically include: acquiring a face image of a target object, and analyzing the face image to obtain a first environment light intensity value corresponding to the face image; and extracting a face recognition model corresponding to the first intensity interval, and inputting the face image into the face recognition model to calculate to obtain the identity of the target object.

There are various ways to obtain the first ambient light intensity value, and the specific implementation manner of the first ambient light intensity value is not limited in the embodiments of the present invention. Such as a ray casting algorithm or a ray tracing algorithm, etc.

The intensity intervals may be set by a user, for example, the user may set α intensity intervals, so that after the first ambient light intensity value is obtained, the first intensity interval to which the first ambient light intensity value belongs can be directly queried. The α may be an integer of 2 or more. The present invention does not limit the specific value of α, and in addition, the span of each of the plurality of intensity intervals may be the same span, that is, the same span, but in practical application, the spans of different intensity intervals may be set to be different spans, that is, non-equal spans, according to the characteristics of face recognition, specifically, the spans of the intensity intervals at the two ends of the ambient light intensity may be set to be smaller, and the span of the intensity interval in the middle may be set to be larger, because the ambient light intensity at the two ends has a great influence on the accuracy of face recognition, it is necessary to subdivide the intensity intervals to improve the accuracy of recognition.

The provided face recognition can determine the identity of the user, the face recognition method can effectively improve the face recognition precision by determining the identity of the user through the minimum value of a plurality of difference results, and the adjustment of the light intensity value can also improve the image acquisition precision of the acquired face recognition, so that the recognition precision is improved.

Referring to fig. 3, fig. 3 provides a key configuration method, where the key configuration method shown in fig. 3 is implemented on a smart phone, and a bezel of a housing of the smart phone is provided with 6 pressure sensors, where a left bezel is provided with 3 pressure sensors, and a right bezel is provided with 3 pressure sensors, for convenience of description, the pressure sensors are distinguished by reference numerals and are respectively defined as: pressure sensor 1, pressure sensor 2 … pressure sensor 6, the method is shown in fig. 3, comprising the steps of:

step S301, when the smart phone meets set conditions, 6 pressure sensors are started;

the setting condition in step S301 may be a condition defined by the user, and may be a condition defined by the manufacturer when the manufacturer leaves the factory.

The above setting conditions include, but are not limited to: the conditions in the setting, which are selected by the user, may be, of course, that the smartphone is in a holding state, or may be other conditions.

The holding state of the smart phone may be determined in various ways, for example, in an embodiment of the present application, the holding state may be determined by acceleration data detected by an acceleration sensor. Of course, in another embodiment, the above-mentioned holding state may also be determined by the gesture detected by the ultrasonic sensor. The present application does not limit the specific determination manner of the above-described grip state.

Step S302, the smart phone acquires 3 pressure data of a target object through 6 pressure sensors;

step S303, the smart phone determines that the pressure sensors corresponding to the 3 pieces of pressure data are a pressure sensor 1, a pressure sensor 2 and a pressure sensor 5;

step S304, the smart phone configures the pressure sensor 1, the pressure sensor 2 and the pressure sensor 5 into keys and sets functions corresponding to the keys;

the function corresponding to the setting key can be determined according to an application program of the smart phone. For example, in an alternative embodiment, if the application is a reading-class app, the functions corresponding to the 3 buttons may be page up, page down, and returning to the directory. As another alternative embodiment, if the application program is a game app, the functions corresponding to the 3 keys may be: acceleration, function keys, and shortcut menus.

The function corresponding to the setting key can also be determined according to the state of the mobile phone. For example, in an optional embodiment, if the mobile phone is in a vehicle-mounted state, the functions corresponding to the 3 keys may be: calling to assist driving, starting navigation software and starting music software.

Step S305, the smart phone obtains the pressing data of the key, and executes the function operation corresponding to the case according to the pressing data.

The above-mentioned compression data include, but are not limited to: one or more combinations of the pressing times, the pressure values and the pressing duration time can be other types of pressing data in practical application, and the application does not limit the concrete expression form of the pressing data.

According to the technical scheme, the key positions are configured by acquiring the touch data of the target object through one or more sensors, and compared with fixed keys, the individuation of the key position configuration can be improved by configuring the key positions according to the touch data. The technical scheme of this application can not shelter from the screen, and this technical scheme is not virtual button, need not show the button suggestion at the screen, consequently can perfectly solve the virtual button based on screen display and touch-control and shelter from the problem to the screen display content, and the technical scheme of this application can not influence electronic equipment's display effect promptly. Therefore, the technical scheme of the application has the advantage of high user experience. The mobile phone frame is prevented from being perforated by keys, so that the production difficulty and cost of the mobile phone can be reduced, the perforation is reduced, and the risk of damaging the mobile phone by an external dangerous environment can be effectively reduced; the problem of service life caused by the fact that the mobile phone keys adopt physical keys is avoided.

Referring to fig. 4, fig. 4 provides a key configuration apparatus including a processing unit 401 and an acquisition unit 402, wherein,

the acquisition unit 401 is configured to acquire touch data of a target object;

in the embodiment of the present application, the target object may be a human or other animals.

The touch data in the acquisition unit 401 may be different according to different types of sensors, for example, in an alternative embodiment, if the sensor is a pressure sensor, the touch data may be pressure data; as yet another alternative, if the sensor is a distance sensor, the touch data may be distance data. In practical applications, the sensor may also be another type of sensor, and the specific type of the sensor and the specific type of the collected touch data are not limited in the embodiments of the present application.

The processing unit 402 is configured to configure a key parameter of the electronic device according to the touch data.

For a specific implementation method for configuring the key parameters of the electronic device by the processing unit, reference may be made to the description of the embodiment shown in fig. 2, which is not described herein again.

According to the technical scheme, the key positions are configured by acquiring the touch data of the target object through one or more sensors, and compared with fixed keys, the individuation of the key position configuration can be improved by configuring the key positions according to the touch data. The technical scheme of this application can not shelter from the screen, and this technical scheme is not virtual button, need not show the button suggestion at the screen, consequently can perfectly solve the virtual button based on screen display and touch-control and shelter from the problem to the screen display content, and the technical scheme of this application can not influence electronic equipment's display effect promptly. Therefore, the technical scheme of the application has the advantage of high user experience.

In an optional scheme, the processing unit 402 is specifically configured to obtain a usage habit of the target object, and reconfigure the key according to the usage habit.

The above usage habit determining method can be referred to the description of the embodiment shown in fig. 2, and is not described herein again.

In an optional scheme, the processing unit 402 is further configured to determine a gesture of the target object according to the touch data, and acquire a key function input by the target object; and establishing a mapping relation among the key positions, the key gestures and the key functions.

The gesture determination method may specifically refer to the description of the embodiment shown in fig. 2.

In an optional scheme, the processing unit 402 is further configured to, when it is determined that the touch data of the target object is the first gesture, obtain a key function corresponding to the first gesture according to the mapping relationship, and control the electronic device to execute an operation corresponding to the key function.

The specific manner of the operation corresponding to the above-mentioned key functions can be referred to the description of the embodiment shown in fig. 2.

The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.

The present application also provides an electronic device comprising a processor, a memory, one or more sensors, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method as provided in fig. 2.

Alternatively, the electronic device may be a handheld device, an in-vehicle device, a wearable device (such as a smart watch, a smart bracelet, an earphone, an augmented reality/virtual reality device, smart glasses, smart clothing, etc.), a household appliance, a computing device, or other processing device connected to a wireless modem, as well as various forms of User Equipment (UE), a Mobile Station (MS), a terminal device (terminal device), etc. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, and various electronic products such as an electronic scale, an intelligent toilet, an intelligent refrigerator, and a mobile power supply.

Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.

Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种能够对文件信息快速高度移植的飞行器测试装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类