The disclosure generally relates to the technical field of motion sensing control and in particular relates to a motion-sensing key positioning method and a motion-sensing key positioning device.
Motion sensing control lies in that people can directly use body action to interact with surrounding devices or environments without using any complex control equipment so as to interact with the contents personally on the scene. For example, when a person stands in front of a TV, if certain motion-sensing equipment can sense action of the hands, then if the person waves the hands upwards, downwards, towards the left and towards the right respectively to control quick turn, fast backward, pause, termination and other functions of TV stations, an example of directly controlling the surrounding devices through motion sensing is obtained; or the four actions directly correspond to responses of game roles, and people can get game experiences personally on the scene.
In the previous motion-sensing control process, a “hand shape” similar to a cursor generally presents in a human-computer interaction interface, and movement of the “hand shape” and trigger of corresponding function keys are controlled by capturing body action of an operator. However, in the prior art, the body action is generally moved and switched in a wide range in the motion-sensing control process, so that the “hand shape” can be controlled; meanwhile, in the motion-sensing control process, the operator needs to pay attention to control of the “hand shape” at all times so as not to easily divide attention of the operator; and moreover, the body action is generated by wide-range movement, a blank part can be easily clicked, and control of the “hand shape” fails.
In consideration of the previous problems, the embodiment of the present disclosure discloses a motion-sensing key positioning method and a motion-sensing key positioning device used for solving the problems in the prior art that body action is generally moved and switched in a wide range in the motion-sensing control process, the attention of the operator is easily divided and a blank part can be easily clicked.
According to one aspect of the present disclosure, the embodiment of the present disclosure provides a motion-sensing key positioning method, including:
According to another aspect of the present disclosure, the embodiment of the present disclosure further discloses a motion-sensing key positioning device, including:
According to another aspect of the present disclosure, the present disclosure provides a computer program, including computer readable codes, and when the computer readable codes are operated on intelligent electrical device, a method for positioning motion-sensing keys executed on the intelligent electrical device is provided.
According to another aspect of the present disclosure, the present disclosure discloses a computer readable medium in which the previous computer program is stored.
The present disclosure has the beneficial effects that:
The description above is only the summary of the technical scheme of the present disclosure, in order to clearly know the technical measures of the present disclosure and implement the measures according to the contents of the specification, and in order to enable the previous and other aims, characteristics and advantages of the present disclosure to be obvious and easy to understand, the specific embodiments of the present disclosures are particularly listed in the followings:
One or more embodiments are illustrated by way of example, and not by limitation, in the figures of the accompanying drawings, wherein elements having the same reference numeral designations represent like elements throughout. The drawings are not to scale, unless otherwise disclosed.
In order to enable the aims, technical schemes and advantages of the embodiments of the present disclosure to be clear, the technical schemes in the embodiments of the present disclosure are clearly and completely described by combining the following figures in the embodiments of the present disclosure, the described embodiments are not total embodiments, but one part of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by the common technicians in the field under the condition that creative labor is not contributed belong to the protection scope of the present disclosure.
The motion-sensing key positioning method provided by the present disclosure is applied to intelligent electrical device such as smart televisions and the like. The intelligent electrical device is connected with an image acquisition device such as a motion-sensing camera. The intelligent electrical device can be connected with the image acquisition device by virtue of a USB cable, and the camera can be built in the intelligent electrical device.
The image acquisition device identifies the acquired image data, when a target object is identified, position information of the target object is analyzed and transmitted to the intelligent electrical device, and the intelligent electrical device acquires the position information of the target object, wherein the position information refers to a hand point. Certainly, the image acquisition device also can directly transmit the acquired image data to the intelligent electrical device, and the image data is identified by the intelligent electrical device so as to acquire the position information of the target object.
In order to well reflect the position in which the target object is positioned, a coordinate system is established at a position in which the image acquisition device is positioned in the present disclosure, and the position information of the present disclosure refers to point information (hand point) of the target object in the coordinate system, wherein the coordinate system CM be either a two-dimensional coordinate system, as three-dimensional coordinate system and a polar coordinate system.
The operation of identifying the acquired image in the present disclosure also refers to an operation of identifying the target object in the image so as to acquired the position information by using an existing image recognition algorithm, for example, a kinect and tof method is adopted to acquire the point information (hand point) of the target object in the coordinate system; and therefore, unnecessary details are avoided.
Specifically, the target object refers to hands, head or other limbs, even certain operating devices such as joysticks, sensing gloves and the like.
The acquisition device acquires hand points by taking preset time length as a period, the preset time length is set according to system needs, if an operating event of the identification object is hoped to be accurately identified, the preset time length is set to be shorter time length, otherwise longer time length, and the preset time length can be set according to performances of monitors and data processors, for example, when the identifier or data processor is powerful in performance and high in speed the preset time length can be set to be shorter. In the embodiment, when a firsthand point is acquired, the hand point acquired at the first time is recorded or saved, and the step of determining the reference point coordinate values of all motion-sensing keys according to hand point coordinate values acquired at the first time includes the sub-steps: determining a preset length by taking the hand point acquired at the first time as a center after the hand point is acquired at the first time, subtracting one half of the preset length from the hand point coordinate value acquired at the first time, and generating the reference point coordinate values of all the motion-sensing keys. For example, in a 2D rectangular coordinate system, the hand point coordinate value acquired at the first time can be a hand point XY coordinate value or a hand point YZ coordinate value; if in a 2D polar coordinate system, the hand point XY coordinate value can be converted into a hand point polar coordinate value according to a corresponding relationship of the 2D rectangular coordinate system and the 2D polar coordinate system, namely the hand point coordinate value acquired at the first time can be reflected by virtue of polar angle and polar diameter. Taking the 2D rectangular coordinate system as an example, when the hand point acquired at the first time is P0(X0, Y0) and the preset length is L, the reference point coordinate is P (X0−L/2, Y0−L/2).
To be described is that determination of the reference point coordinate value is not limited to determination of subtracting one half of the preset length from the hand point coordinate value acquired at the first time; and in the actual application process, the reference point coordinate values can be determined according to the number of the motion-sensing keys.
In the embodiment, modes of the acquisition device used for acquiring the motion-sensing action can include inertial sensing, optical sensing and inertia and optical combined sensing.
The inertial sensing mainly includes the steps of sensing physical parameters such as acceleration, angular velocity and magnetic field of body action of a user by using principle inertial sensors such as a gravity sensor, a gyroscope, a magnetic sensor and the like, and solving various types of action of the user in a space according to the physical parameters.
The optical sensing mainly includes the steps: acquiring a human body image through an optical sensor, and interacting body action of the human body image with contents in the game, wherein a 2D plane serves as a main plane, and most of the contents belong to simple types of interactive games. Furthermore, the human body image information can be acquired by using laser and cameras (RGB), and the 3D entire image of the human body can be acquired so as to provide more advanced depth information.
The inertia and optical combined sensing can be performed by placing a gravity sensor on a handle to be used for sensing three-axial acceleration of the hand, and placing an infrared sensor to be used for sensing an infrared emitter signal in front of the TV screen. The sensor can be used for mainly sensing displacement of the hand in the vertical and horizontal directions so as to control a space mouse, so that human wrist rotation and other action can be accurately sensed experience in the motion sensing aspect is enhanced.
Therefore, acquisition of the first-time hand point coordinate value can be based on an inertial sensor, or an optical sensor or a combination of the optical sensor and the inertial sensor.
S102, segmenting the pre-defined region so as to obtain segmented sub-regions according to the layout of the motion-sensing keys.
In the embodiment, the step of segmenting the pre-defined region so as to obtain the segmented sub-regions according to the layout of the motion-sensing keys includes the sub-steps:
When the pre-defined region is segmented to obtain the segmented sub-regions, the defined sub-regions are segmented into more rectangular segmented sub-regions, each motion-sensing key corresponds to multiple segmented sub-regions so as to accurately and subsequently position the motion-sensing keys.
Furthermore, the step of segmenting the pre-defined region along the layout direction of the motion-sensing keys so as to obtain segmented sub-regions of which the number corresponds to that of the motion-sensing keys according to the layout and number of the motion-sensing keys includes the following sub-steps: segmenting the pre-defined region along a transverse direction so as to obtain segmented sub-regions of which the number corresponds to that of the motion-sensing keys in the transverse direction according to the number of the motion-sensing keys in the transverse direction; and/or segmenting the pre-defined region along a longitudinal direction so as to obtain segmented sub-regions of which the number corresponds to that of the motion-sensing keys in the longitudinal direction according to the number of the motion-sensing keys in the longitudinal direction. When only a column or a row of motion-sensing keys exist, the pre-defined region only needs to be segmented along the arrangement direction, and when the motion-sensing keys have both transverse layout and longitudinal layout on the display interface, the pre-defined region. needs to be segmented in two directions.
Specifically,
When the target object drops in the segmented sub-regions, determining that the target object has selected corresponding motion-sensing keys in the segmented sub-regions at present, further identifying the operating event of the target object so as to determine whether to perform operating control on the motion-sensing keys for triggering a control instruction, wherein the operating event can be click, slide and the like, an application program is opened by clicking, and the volume is adjusted by sliding, and the like.
For a 3D coordinate system, segmentation processing is similar to that in the 2D rectangular coordinate system, unnecessary details are avoided, while the formed segmentation range is just three-dimensional.
In the embodiment of the present disclosure, after the pre-defined region is segmented, the percentages of the segmented sub-regions that correspond to the motion-sensing keys in the pre-defined region are further computed according to the size of the motion-sensing keys. The step of computing the percentage of each segmented sub-region in the pre-defined region can include the sub-steps: computing a proportion according to the size of the motion-sensing keys and the display interface, taking the pre-defined region as a unit, acquiring the percentages of the corresponding segmented sub-regions in the pre-defined region according to the proportion of the motion-sensing keys, wherein the display interface can have the size of a display screen or a display interface which corresponds to the motion-sensing keys; the step also can include the sub-steps: computing the proportion according to the size of the segmented sub-regions segmented according to the motion-sensing keys and the pre-defined region, for example, computing a longitudinal proportion of sub-regions which correspond to the motion-sensing keys in the pre-defined region according to width of the motion-sensing keys in the longitudinal direction and the longitudinal width of the motion-sensing key display interface, and obtaining the corresponding percentage of each segmented sub-region according to the positions of the motion-sensing keys in the display interface.
As shown in the
After the proportion of each segmented sub-region is computed, a percentage range of each segmented sub-region is obtained according to the position relation of each motion-sensing key or segmented sub-region, for example, the segmented sub-region 1, the segmented sub-region 2 and the segmented sub-region 3 are arranged in the transverse direction from the left to right, the proportion of any one in the transverse direction is 1/3, the width of the pre-defined region in the transverse direction is taken as a unit, the percentage range of the segmented sub-region 1 in the transverse direction is 1-33.3%, the percentage range of the segmented sub-region 2 is 33.4-66.6%, and the percentage range of the segmented sub-region 3 is 66.7-100%; in the longitudinal direction, the segmented sub-region 1, the segmented sub-region 4 and the segmented sub-region 7 are arranged from top to bottom, the proportion of any one in the longitudinal direction is 1/3, the width of the pre-defined region in the longitudinal direction is taken as a unit, the percentage range of the segmented sub-region 1 in the longitudinal direction is 1-33.3%, the percentage range of the segmented sub-region 4 is 33.4-66.6%, and the percentage range of the segmented sub-region 7 is 66.7-100%; and the corresponding percentage range of the segmented sub-region 1 in the transverse direction is 1-33.3%, the corresponding percentage range of the segmented sub-region 1 in the longitudinal direction is also 1-33.3%. the corresponding percentage range of the segmented sub-region 2 in the transverse direction is 33.4-66.6%, the corresponding percentage range of the segmented sub-region 2 in the longitudinal direction is the previous corresponding percentage range of 1-33.3%, the corresponding percentage range of the segmented sub-region 3 in the transverse direction is 66.7-100%, the corresponding percentage range of the segmented sub-region 3 in the longitudinal direction is 1-33.3%, the corresponding percentage range of the segmented sub-region 4 in the transverse direction is 1-33.3%, the corresponding percentage range of the segmented sub-region 4 in the longitudinal direction is the previous corresponding percentage range of 33.4-66.6%, the corresponding percentage range of the segmented sub-region 7 in the transverse direction is 1-33.3%, and the corresponding percentage range of the segmented sub-region 7 in the longitudinal direction is 66.7-100%. In a similar way, the corresponding percentage ranges of the segmented sub-region 5, the segmented sub-region 6 and the segmented sub-region 8 and the segmented sub-region 9 can be computed, so unnecessary details are avoided.
S103, determining the corresponding segmented sub-regions according to the hand point coordinate values acquired in real time after the first acquisition and the reference point coordinate values so as to position the corresponding motion-sensing keys.
The acquisition device acquires hand points by taking the preset time length as a period, and when the reference point is determined and a new real-time hand point is acquired, the segmented sub-regions are determined according to the real-time hand point coordinate values and the reference point coordinate values. The operation of determining the segmented sub-regions according to the real-time and point coordinate values and the reference point coordinate values can adopt different methods, the segmented sub-regions can be directly determined according to coordinates of real-time hand points or also can be determined according to differences between the real-time hand point coordinate values and the reference point coordinate values, and the segmented sub-regions are determined by a method according to the differences between the real-time hand point coordinate values and the reference point coordinate values in the embodiment. Under different coordinate systems, different difference computation modes and positioning methods exist. In the embodiment of the present disclosure, the reference point coordinate values are determined according to the hand point coordinate values acquired at the first time in the step S101, and when the new hand point is subsequently acquired, the difference between the hand point coordinate value acquired in real time and the reference point coordinate values is computed, a segmented sub-region in which the real-time hand point drops is determined by computing the percentage of the difference to the preset length and matching the percentage with the percentage of the segmented sub-region so as to position the corresponding motion-sensing keys. Specifically, the coordinate value of the real-time hand point is contrasted with the reference point coordinate value to obtain a difference Δt, if the preset length is L, the percentage of the difference between the real-time hand point coordinate value and the reference point coordinate value to the preset length is obtained through Δt/L*100%, the percentage is matched with the percentage in the step S102 so as to determine the segmented sub-region in which the real-time hand point is positioned, so that the motion-sensing keys which correspond to the segmented sub-regions are positioned.
In the previous computation process, the condition that the difference Δt is greater than the preset length L is possibly caused due to large preset time length or large operating amplitude of the target object, then a percentage of more than 100% is obtained, and the segmented sub-region in which the percentage is positioned is positioned in a segmented sub-region on the optimal edge and motion-sensing keys in the optimal edge segmented sub-region are positioned. When the difference Δt is a negative number and greater than the preset length L, the motion-sensing keys are positioned in the segmented sub-region on the leftmost side or the uppermost side, and when the difference Δt is a positive number and greater than the preset length L, the motion-sensing keys are positioned in the segmented sub-region on the rightmost side or lowest side.
The motion-sensing key positioning method provided by the embodiment of the present disclosure includes the steps: segmenting and computing the pre-defined area so as to obtain corresponding percentages of the segmented sub-regions, and determining corresponding segmented sub-regions of the current operation according to the percentage calculated by the differences between the real-time hand point coordinate value and the reference point coordinate value so as to position the corresponding motion-sensing keys. Therefore, specific motion-sensing keys can be positioned based on the corresponding relations of the segmented sub-regions and the motion-sensing keys, and therefore, the hand shape does not need to be displayed; and meanwhile, direct operation can be performed by small-amplitude motion-sensing action only, the blank part is not clicked, and the errors in operation are reduced.
Description is given in the following embodiments by taking the operations of specifically positioning the motion-sensing keys in the 2D rectangular coordinate system and positioning the motion-sensing keys in the 2D polar coordinate system. However, in as 3D coordinate system, the operation can be performed by referring to the 2D rectangular coordinate system, and unnecessary details are avoided in the embodiments.
S401, computing the difference between the hand point XY coordinate value acquired real time after the first acquisition and the reference point XY coordinate value;
in the motion-sensing operation process, action change of the target object (such as limbs) is intuitively reflected through hand point transfer, namely the hand point position continuously changes, and transfer route or trace of the hand point can be tracked by virtue of the real-time hand point coordinate relative to the reference point coordinate. Therefore, in the 2D rectangular coordinate system, coordinate value change of the hand point in the transverse direction and longitudinal direction relative to the reference point can be intuitively reflected. Specifically, the x coordinate value of the real-time hand point is contrasted with the x coordinate value of the reference point to obtain a difference Δx, and the y coordinate value of the real-time hand point is contrasted with the y coordinate value of the reference point to obtain a difference Δy;
S402, computing the percentage of the difference between the hand point XY coordinate value acquired in real time and the reference point XY coordinate value to the preset length;
Step S403, determining the segmented sub-regions matched with the percentage so as to position the motion-sensing keys which correspond to the segmented sub-regions;
S501, computing the difference between the hand point polar coordinate value acquired in real time after the first acquisition and the reference point polar coordinate value;
S502, computing the percentage of the difference between the hand point polar coordinate value acquired in real time and the reference point polar coordinate value to the preset length;
S503, positioning the segmented sub-region in which the percentage is positioned so as to position the motion-sensing keys that correspond to the segmented sub-region.
Data processing is performed in a related polar coordinate system based on the polar angle and polar diameter. Unnecessary details are avoided.
The present disclosure also discloses a motion-sensing key positioning device.
the reference point coordinate determining unit 601 is used for determining the reference point coordinate values of all the motion-sensing keys according to the hand point coordinate value acquired at the first time;
Preferably, in another embodiment of the present disclosure, the segmenting unit 602 is further used for segmenting the pre-defined region along the layout of the motion-sensing keys so as to obtain segmented sub-regions of which the number corresponds to that of the motion-sensing keys according to the layout and number of the motion-sensing keys, wherein the layout of the motion-sensing keys includes the position relation, size and layout direction of the motion-sensing keys.
Furthermore, in another embodiment of the present disclosure, the segmenting unit 602 is further used for segmenting the preset region along the transverse direction so as to obtain segmented sub-regions of which the number corresponds to that of the motion-sensing keys in the transverse direction according to the number of the motion-sensing keys in the transverse direction; and/or segmenting the preset region along the longitudinal direction so as to obtain segmented sub-regions of which the number corresponds to that of the motion-sensing keys in the longitudinal direction according to the number of the motion-sensing keys in the longitudinal direction.
Furthermore, in another embodiment of the present disclosure, the segmenting unit 602 is further used for computing the percentage of the segmented sub-regions that correspond to the motion-sensing keys in the pre-defined region according to the size of the motion-sensing keys.
Furthermore, in another embodiment of the present disclosure, the positioning unit 603 is further used for computing the difference between the hand point coordinate value acquired in real time after the first acquisition and the reference point coordinate value; computing the percentage of the difference between the hand point coordinate value acquired in real time and the reference point coordinate value to the preset length; and determining the segmented sub-region matched with the percentage so as to position the motion-sensing keys that correspond to the segmented sub-region.
Furthermore, in another embodiment of the present disclosure, the positioning unit 603 is further used for positioning the segmented sub-region in which the percentage is positioned to be an optimal edge segmented sub-region and positioning the motion-sensing keys that correspond to the optimal edge segmented sub-region when the percentage is greater than 100%.
The device in the embodiments of the present disclosure specifically can realize related function modules by virtue of a hardware processor.
The embodiments of the device described above are only schematic, wherein units serving as separate parts to describe can be physically separated, and parts serving as units to display can be physical units, namely the parts can be positioned in the same place or can be distributed onto multiple network units. Partial or total modules can be selected to achieve the aims of the scheme in the embodiments according to actual needs. The common technicians in the field can understand and implement under the condition that the creative labor is not contributed.
Each of devices according to the embodiments of the disclosure can be implemented by hardware, or implemented by software modules operating on one or more processors, or implemented by the combination thereof. A person skilled in the art should understand that, in practice, a microprocessor or a digital signal processor (DSP) may be used to realize some or all of the functions of some or all of the modules in the device according to the embodiments of the disclosure. The disclosure may further be implemented as device program (for example, computer program and computer program product) for executing some or all of the methods as described herein. Such program for implementing the disclosure may be stored in the computer readable medium, or have a form of one or more signals. Such a signal may be downloaded from the internet websites, or be provided in carrier, or be provided in other manners.
For example,
The “an embodiment”, “embodiments” or “one or more embodiments” mentioned in the disclosure means that the specific features, structures or performances described in combination with the embodiment(s) would be included in at least one embodiment of the disclosure. Moreover, it should be noted that, the wording “in an embodiment” herein may not necessarily refer to the same embodiment.
Many details are discussed in the specification provided herein. However, it should be understood that the embodiments of the disclosure can be implemented without these specific details. In some examples, the well-known methods, structures and technologies are not shown in detail so as to avoid an unclear understanding of the description.
It should be noted that the above-described embodiments are intended to illustrate but not to limit the disclosure, and alternative embodiments can be devised by the person skilled in the art without departing from the scope of claims as appended. In the claims, any reference symbols between brackets form no limit of the claims. The wording “include” does not exclude the presence of elements or steps not listed in a claim. The wording “a” or “an” in front of an element does not exclude the presence of a plurality of such elements. The disclosure may be realized by means of hardware comprising a number of different components and by means of a suitably programmed computer. In the unit claim listing a plurality of devices, some of these devices may be embodied in the same hardware. The wordings “first”, “second”, and “third”, etc. do not denote any order. These wordings can be interpreted as a name.
Also, it should be noticed that the language used in the present specification is chosen for the purpose of readability and teaching, rather than explaining or defining the subject matter of the disclosure. Therefore, it is obvious for an ordinary skilled person in the art that modifications and variations could be made without departing from the scope and spirit of the claims as appended. For the scope of the disclosure, the publication of the inventive disclosure is illustrative rather than restrictive, and the scope of the disclosure is defined by the appended claims.
The final description is that the previous embodiments are not used for limiting the technical scheme of the present disclosure, but only for describing. Although detailed description of the present disclosure is given with reference to the previous embodiments, the common technicians in the field should understand that the technical scheme recorded by each of the previous embodiments can be modified, or one part of technical characteristics can be equivalently replaced; however, the modification or replacement does not enable the essence of the corresponding technical scheme to get out of the spirit and scope of the technical scheme in each embodiment of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201510377342.X | Jul 2015 | CN | national |
This application is a continuation of International Application No. PCT/CN2016/088207 filed on Jul. 1, 2016 which is based upon and claims priority to Chinese Patent Application No. 201510377342.X, filed on Jul. 1, 2015, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2016/088207 | Jul 2016 | US |
Child | 15232543 | US |