WO2020147434A1 - 基于手势识别的测试方法、装置、存储介质及终端设备 - Google Patents
基于手势识别的测试方法、装置、存储介质及终端设备 Download PDFInfo
- Publication number
- WO2020147434A1 WO2020147434A1 PCT/CN2019/121672 CN2019121672W WO2020147434A1 WO 2020147434 A1 WO2020147434 A1 WO 2020147434A1 CN 2019121672 W CN2019121672 W CN 2019121672W WO 2020147434 A1 WO2020147434 A1 WO 2020147434A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- gesture
- test
- test object
- feature vector
- trajectory
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/273—Tester hardware, i.e. output processing circuits
Definitions
- This application belongs to the field of computer technology, and in particular relates to a test method, device, computer non-volatile readable storage medium, and terminal equipment based on gesture recognition.
- the embodiments of the present application provide a test method and device based on gesture recognition, a computer non-volatile readable storage medium, and terminal equipment, so as to solve the problem of cumbersome and costly operations when performing interactive tests on terminal equipment. A lot of time, the problem of extremely low test efficiency.
- the first aspect of the embodiments of the present application provides a test method based on gesture recognition, which may include:
- the test terminal collects a user's gesture trajectory sequence, where the gesture trajectory sequence includes more than one gesture trajectory;
- the interactive tests between the test terminal and each test object are sequentially executed, and the test results of each interactive test are sequentially output.
- the interactive test includes a device connection test, a device disconnection test, and a device switching test.
- test device which may include various modules for implementing the steps of the foregoing test method.
- the third aspect of the embodiments of the present application provides a computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor When realizing the steps of the above test method.
- the fourth aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and computer-readable instructions stored in the memory and running on the processor, and the processor executes the computer
- the steps of the above test method are implemented when the instructions are readable.
- the correspondence between gestures and test objects is established in advance, the test sequence of each test object for interactive testing can be determined through gesture recognition, and interactive tests such as connection, disconnection, and switching are automatically performed in sequence It saves the tedious interface operation process, saves the time required for the test operation, and improves the test efficiency.
- FIG. 1 is a flowchart of an embodiment of a testing method in an embodiment of the application
- Figure 2 is a schematic flow chart of determining a gesture corresponding to a gesture feature vector
- FIG. 3 is a structural diagram of an embodiment of a testing device in an embodiment of the application.
- Fig. 4 is a schematic block diagram of a terminal device in an embodiment of the application.
- an embodiment of a test method in the embodiment of the present application may include:
- Step S101 The test terminal collects the user's gesture trajectory sequence.
- the gesture track sequence includes more than one gesture track.
- Pressure sensing or measuring components are provided at the bottom of the touch screen of the test terminal to perceive the user’s behavior of pressing the screen. For example, when the user’s fingertips are pressed on the screen, the glass screen is bent and deformed after being pressed.
- the pressure sensing device at the bottom of the screen can measure the deformation of the glass to obtain the user's gesture input on the touch screen.
- the test terminal can accurately obtain the position coordinates of the touch screen corresponding to the user's gesture operation by calling the touch coordinate function provided by the system:
- counting unit of coordinates is pixels.
- the pixels corresponding to these coordinates are combined to obtain the user's gesture trajectory.
- Step S102 Extract each gesture feature vector in the gesture trajectory sequence in sequence.
- each gesture track corresponds to a gesture feature vector.
- T is the total number of gesture trajectories in the gesture trajectory sequence
- n is the number of each pixel in the t-th gesture trajectory
- 1 ⁇ n ⁇ N is the number of the t-th gesture trajectory
- N is the number of the t-th gesture trajectory
- the total number of pixels, (AxisX n , AxisY n ) is the coordinate of the nth pixel in the t-th gesture trajectory, and (CentreX, CentreY) is the coordinate of the center point of the t-th gesture trajectory.
- Dis n is the distance between the n-th pixel point in the t-th gesture trajectory and the coordinate of the center point.
- each pixel point in the t-th gesture trajectory is divided into M pixel point sets according to the distance from the center point coordinates, and the number of pixel points in each pixel point set is counted respectively.
- the value of M can be set according to actual conditions, for example, it can be set to 3, 5, 10 or other values.
- the maximum distance between the pixel point in the t-th gesture track and the coordinate of the center point can be obtained according to the following formula:
- MaxDis Max(Dis 1 ,Dis 2 ,...,Dis n ,...,Dis N )
- Max is the maximum value function
- MaxDis is the maximum distance between the pixel point in the t-th gesture track and the coordinate of the center point.
- each pixel in the t-th gesture trajectory into M pixel sets according to the distance from the center point coordinates, where each pixel in the first pixel set is different from the center point coordinates.
- the distance between is in the following range:
- the distance between each pixel point in the second pixel point set and the coordinate of the center point is within the following interval range:
- the distance between each pixel point in the third pixel point set and the coordinate of the center point is within the following interval range:
- the distance between each pixel point in the m-th pixel point set and the coordinate of the center point is within the following interval range:
- the distance between each pixel point in the M-th pixel point set and the coordinate of the center point is within the following interval range:
- m is the number of each pixel set, 1 ⁇ m ⁇ M
- the m-th component setNum m is the number of pixels m-th set of pixels
- FeatureVec is the gesture feature vector of the t-th gesture trajectory.
- step S103 the gestures corresponding to each gesture feature vector are sequentially selected from the preset gesture database.
- step S103 may specifically include the following process:
- Step S1031. Obtain reference feature vectors corresponding to each gesture from the gesture database.
- the gesture database can be preset by the user. Specifically, the holder enters each of his own gestures in the test terminal in advance, and the test terminal calculates the gesture feature vector of each gesture, and These are used as reference feature vectors respectively corresponding to each gesture, and combined into the gesture database.
- Step S1032 respectively calculate the matching degree between the gesture feature vector of the t-th gesture trajectory and each reference feature vector.
- the matching degree between the gesture feature vector of the t-th gesture trajectory and the f-th reference feature vector can be calculated according to the following formula:
- Step S1033 Construct a matching degree sequence of the t-th gesture trajectory.
- the matching degree sequence of the t-th gesture trajectory can be constructed according to the following formula:
- SimDegSq (SimDeg 1 ,SimDeg 2 ,...,SimDeg f ,...,SimDeg F )
- SimDegSq is the matching degree sequence of the t-th gesture trajectory.
- Step S1034 Select a preferred reference feature vector, and determine the gesture corresponding to the preferred reference feature vector as the gesture corresponding to the t-th gesture feature vector.
- the preferred reference feature vector can be selected according to the following formula:
- argmax is the largest independent variable function
- TgtEmo is the number of the preferred reference feature vector.
- the gesture corresponding to the preferred reference feature vector can be determined as the gesture corresponding to the t-th gesture feature vector.
- Step S104 Inquire test objects corresponding to each gesture in the preset test object list in turn.
- the test object list includes at least one gesture, and each gesture in the list corresponds to a test object, as shown in the following table:
- Test object Gesture 1 (tick) Test object 1 (headphone) Gesture 2 (draw a circle) Test object 2 (speaker) Gesture 3 (Draw a wavy line) Test object 3 (mobile phone) ... ...
- the test object list can be preset by the user according to his actual usage habits.
- Step S105 Perform interactive tests between the test terminal and each test object in sequence, and output the test results of each interactive test in sequence.
- the interactive test includes a device connection test, a device disconnection test, and a device switching test.
- the device connection state of the test terminal is acquired. If the test terminal is in an unconnected state, perform a device connection test, that is, send a device connection request to the t-th test object to establish a device connection with the t-th test object;
- the device connection request includes the address of the t-th test object, such as the Media Access Control (MAC) address of the t-th test object.
- MAC Media Access Control
- the t-th test object After receiving the device connection request, the t-th test object extracts the MAC address from the device connection request. The t-th test object determines whether the extracted MAC address is the same as its own MAC address. If the two are the same, A device connection is established with the test terminal, and if the two are not the same, the device connection request is rejected.
- the device disconnection test is performed, that is, a device disconnect request is sent to the t-th test object to disconnect the device with the t-th test object connection.
- the t-th test object After the t-th test object receives the device disconnect request, it extracts the MAC address from the device disconnect request, and the t-th test object determines whether the extracted MAC address is the same as its own MAC address If the two are the same, the device connection with the test terminal is disconnected; if the two are not the same, the device disconnect request is rejected.
- test terminal If the test terminal is in the connected state with the existing test object, the connection priority of the t-th test object and the connection priority of the existing test object are queried in the test terminal list respectively, and the existing test object The test object is a different test object from the t-th test object.
- connection priority of the t-th test object is lower than the connection priority of the existing test object, no interactive test is required; if the connection priority of the t-th test object is higher than or equal to the existing test According to the connection priority of the object, the device switching test is performed, that is, a device disconnect request is sent to the existing test object to disconnect the device connection with the existing test object. After the device connection between the test objects, a device connection request is sent to the t-th test object to establish a device connection with the t-th test object.
- the test terminal collects the user's gesture trajectory sequence, and sequentially extracts each gesture feature vector in the gesture trajectory sequence, and then selects each gesture feature in sequence from a preset gesture database.
- the vectors correspond to the gestures, and the test objects corresponding to each gesture are sequentially queried in the preset test object list, and finally the interaction test between the test terminal and each test object is executed in turn, and each interaction test is output in turn The test results.
- the correspondence between gestures and test objects is established in advance, the test sequence of each test object for interactive testing can be determined through gesture recognition, and interactive tests such as connection, disconnection, and switching are automatically performed in sequence It saves the tedious interface operation process, saves the time required for the test operation, and improves the test efficiency.
- FIG. 3 shows a structural diagram of an embodiment of a test device provided in an embodiment of the present application.
- a testing device may include:
- the gesture trajectory sequence collection module 301 is used for the test terminal to collect the user's gesture trajectory sequence, the gesture trajectory sequence includes more than one gesture trajectory;
- the gesture feature vector extraction module 302 is configured to sequentially extract each gesture feature vector in the gesture trajectory sequence, where each gesture trajectory corresponds to a gesture feature vector;
- the gesture selection module 303 is configured to sequentially select gestures corresponding to each gesture feature vector from a preset gesture database
- the test object query module 304 is configured to sequentially query the test objects corresponding to each gesture in the preset test object list;
- the interactive test module 305 is used to execute interactive tests between the test terminal and each test object in turn, and output the test results of each interactive test in turn.
- the interactive tests include device connection test, device disconnection test, and device switching test.
- gesture feature vector extraction module may include:
- a center point coordinate calculation unit configured to calculate the center point coordinates of the t-th gesture trajectory in the gesture trajectory sequence
- the coordinate distance calculation unit is used to calculate the distance between each pixel point in the t-th gesture trajectory and the center point coordinates;
- the pixel point set dividing unit is used to divide each pixel point in the t-th gesture trajectory into M pixel point sets according to the distance from the center point coordinates, and respectively count the number of pixel points in each pixel point set number;
- the gesture feature vector construction unit is used to construct the gesture feature vector of the t-th gesture trajectory.
- the gesture selection module may include:
- a reference feature vector acquiring unit configured to respectively acquire a reference feature vector corresponding to each gesture from the gesture database
- the matching degree calculation unit is used to calculate the matching degree between the gesture feature vector of the t-th gesture trajectory and the f-th reference feature vector;
- the matching degree sequence construction unit is used to construct the matching degree sequence of the t-th gesture trajectory
- the preferred reference feature vector selection unit is used to select the preferred reference feature vector
- the gesture determination unit is configured to determine the gesture corresponding to the preferred reference feature vector as the gesture corresponding to the t-th gesture feature vector.
- the interactive test module may include:
- connection state obtaining unit is configured to obtain the device connection state of the test terminal when the interactive test between the test terminal and the t-th test object is performed;
- the connection test unit is configured to perform a device connection test if the test terminal is in an unconnected state, that is, send a device connection request to the t-th test object to establish a device connection with the t-th test object;
- the disconnection test unit is configured to perform a device disconnection test if the test terminal is in a connection state with the t-th test object, that is, send a device disconnection request to the t-th test object to disconnect from the t-th test object.
- the interactive test module may also include:
- the priority query unit is configured to query the connection priority of the t-th test object and the connection of the existing test object in the test terminal list if the test terminal is in a connection state with an existing test object Priority, the existing test object is a test object different from the t-th test object;
- the switching test unit is configured to perform a device switching test if the connection priority of the t-th test object is higher than or equal to the connection priority of the existing test object, that is, send a device disconnect request to the existing test object .
- a device switching test if the connection priority of the t-th test object is higher than or equal to the connection priority of the existing test object, that is, send a device disconnect request to the existing test object .
- To disconnect the device connection with the existing test object after disconnecting the device connection with the existing test object, send a device connection request to the t-th test object to establish a connection with the t-th test object Device connection between two test subjects.
- FIG. 4 shows a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
- the terminal device 4 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device 4 may include a processor 40, a memory 41, and computer-readable instructions 42 stored in the memory 41 and running on the processor 40, such as computer-readable instructions for executing the above-mentioned test method.
- the processor 40 executes the computer-readable instructions 42
- the steps in the foregoing test method embodiments are implemented, such as steps S101 to S105 shown in FIG. 1.
- the processor 40 executes the computer-readable instructions 42
- the functions of the modules/units in the foregoing device embodiments are implemented, for example, the functions of the modules 301 to 305 shown in FIG. 3.
- the computer-readable instructions 42 may be divided into one or more modules/units, the one or more modules/units are stored in the memory 41, and executed by the processor 40, To complete this application.
- the one or more modules/units may be a series of computer-readable instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 42 in the terminal device 4.
- the processor 40 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or memory of the terminal device 4.
- the memory 41 may also be an external storage device of the terminal device 4, for example, a plug-in hard disk equipped on the terminal device 4, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) Card, Flash Card, etc. Further, the memory 41 may also include both an internal storage unit of the terminal device 4 and an external storage device.
- the memory 41 is used to store the computer-readable instructions and other instructions and data required by the terminal device 4.
- the memory 41 can also be used to temporarily store data that has been output or will be output.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or software function unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer non-volatile readable storage medium.
- the technical solution of this application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several computer-readable instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc., which can store computer readable instructions. Medium.
- Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM random access memory
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDRSDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous chain (Synchlink) DRAM
- RDRAM direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请属于计算机技术领域,尤其涉及一种基于手势识别的测试方法、装置、计算机非易失性可读存储介质及终端设备。在所述方法中,测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势,并在预设的测试对象列表中依次查询与各个手势分别对应的测试对象;依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。省去了繁琐的界面操作过程,提高了测试效率。
Description
本申请要求于2019年1月16日提交中国专利局、申请号为201910041250.2、发明名称为“基于手势识别的测试方法、装置、存储介质及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请属于计算机技术领域,尤其涉及一种基于手势识别的测试方法、装置、计算机非易失性可读存储介质及终端设备。
在物联网技术蓬勃发展的时代背景下,对于众多的智能终端设备而言,与其它终端设备之间的互联互通是其所必备的基本功能。为了保证终端设备的可靠性,在将其投入市场销售之前,往往需要对其与其它终端设备之间进行大量的交互测试,每次交互测试均需要测试人员反复调用终端设备的操作界面,在界面中选择不同的对象来执行交互测试,操作非常繁琐,耗费大量的时间,测试效率极低。
有鉴于此,本申请实施例提供了一种基于手势识别的测试方法、装置、计算机非易失性可读存储介质及终端设备,以解决在对终端设备进行交互测试时,操作非常繁琐,耗费大量的时间,测试效率极低的问题。
本申请实施例的第一方面提供了一种基于手势识别的测试方法,可以包括:
测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;
依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;
从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势,并在预设的测试对象列表中依次查询与各个手势分别对应的测试对象;
依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
本申请实施例的第二方面提供了一种测试装置,可以包括用于实现上述测试方法的步骤的各个模块。
本申请实施例的第三方面提供了一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述测试方法的步骤。
本申请实施例的第四方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现上述测试方法的步骤。
通过本申请实施例,预先建立了手势与测试对象之间的对应关系,通过手势识别即可确定出进行交互测试的各个测试对象的测试次序,并自动依次执行连接、断开、切换等交互测试,省去了繁琐的界面操作过程,节省了测试操作所需的时间,提高了测试效率。
图1为本申请实施例中一种测试方法的一个实施例流程图;
图2为确定与手势特征向量对应的手势的示意流程图;
图3为本申请实施例中一种测试装置的一个实施例结构图;
图4为本申请实施例中一种终端设备的示意框图。
请参阅图1,本申请实施例中一种测试方法的一个实施例可以包括:
步骤S101、测试终端采集用户的手势轨迹序列。
所述手势轨迹序列中包括一个以上的手势轨迹。
在所述测试终端的触控屏幕底部设置有压力感应或测量元器件以对用户按压屏幕的行为进行感知,例如,用户指尖施压于屏幕上时,玻璃屏幕受到按压产生弯曲形变后,其屏幕底部的压力感应器件可以通过测量玻璃的形变来获取用户在触控屏幕上输入的手势。所述测试终端可以通过调用系统提供的触控坐标函数,可以准确获取与用户手势操作对应的触控屏幕位置坐标:
CGPoint point=[touch locationInView:[touch view]]
若使用x表示其中的横坐标,y表示其中的纵坐标,则:
Int x=point.x;
Int y=point.y;
需要注意的是,这里的坐标的计数单位为像素。
将获取到用户手势经过的各个触控屏幕位置坐标之后,将这些坐标对应的像素点组合在一起,即可得到用户的手势轨迹。
步骤S102、依次提取所述手势轨迹序列中的各个手势特征向量。
其中,每个手势轨迹均对应于一个手势特征向量。
在提取所述手势轨迹中的手势特征向量的过程中,首先,根据下式计算所述手势 轨迹序列中的第t个手势轨迹的中心点坐标:
其中,1≤t≤T,T为所述手势轨迹序列中的手势轨迹总数,n为第t个手势轨迹中各个像素点的序号,1≤n≤N,N为第t个手势轨迹中的像素点总数,(AxisX
n,AxisY
n)为第t个手势轨迹中第n个像素点的坐标,(CentreX,CentreY)为第t个手势轨迹的中心点坐标。
然后,根据下式分别计算第t个手势轨迹中各个像素点与所述中心点坐标之间的距离:
其中,Dis
n为第t个手势轨迹中第n个像素点与所述中心点坐标之间的距离。
再将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,并分别统计各个像素点集合中的像素点个数。
M的取值可以根据实际情况进行设置,例如,可以将其设置为3、5、10或者其它取值。在本实施例的一种具体实现中,可以根据下式获取第t个手势轨迹中的像素点与所述中心点坐标之间的最大距离:
MaxDis=Max(Dis
1,Dis
2,...,Dis
n,...,Dis
N)
其中,Max为求最大值函数,MaxDis为第t个手势轨迹中的像素点与所述中心点坐标之间的最大距离。
将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,其中,第1个像素点集合中的各个像素点与所述中心点坐标之间的距离处于以下区间范围:
第2个像素点集合中的各个像素点与所述中心点坐标之间的距离处于以下区间范围:
第3个像素点集合中的各个 像素点与所述中心点坐标之间的距离处于以下区间范围:
第m个像素点集合中的各个像素点与所述中心点坐标之间的距离处于以下区间范围:
第M个像素点集合中的各个像素点与所述中心点坐标之间的距离处于以下区间范围:
需要注意的是,以上是按照等间距划分像素点集合的方式,在实际使用中,还可以根据具体情况采用非等间距划分的方式。
最后,根据下式构造第t个手势轨迹的手势特征向量:
其中,m为各个像素点集合的序号,1≤m≤M,SetNum
m为第m个像素点集合中的像素点个数,FtVal
m为第t个手势轨迹的手势特征向量的第m个分量,且
FeatureVec为第t个手势轨迹的手势特征向量。
步骤S103、从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势。
如图2所示,步骤S103具体可以包括如下过程:
步骤S1031、从所述手势数据库中分别获取与各个手势对应的基准特征向量。
所述手势数据库可以由所述用户进行预先设置,具体地,该持有者预先在所述测试终端中录入自己的各个手势,所述测试终端分别计算出其中每个手势的手势特征向量,将之作为分别与各个手势对应的基准特征向量,并组合成所述手势数据库。
步骤S1032、分别计算第t个手势轨迹的手势特征向量与各个基准特征向量之间的匹配度。
在本实施例中,可以根据下式计算第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度:
其中,StdVec
f为所述手势数据库中的第f个基准特征向量,1≤f≤F,F为所述手势数据库中的基准特征向量的总数,且StdVec
f=(StdVal
f,1,StdVal
f,2,...,StdVal
f,m,...,StdVal
f,M),StdVal
f,m为所述手势数据库中的第f个基准特征向量的第m个分量,Abs为求绝对值函数,SimDeg
f为第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度。
步骤S1033、构造第t个手势轨迹的匹配度序列。
例如,可以根据下式构造第t个手势轨迹的匹配度序列:
SimDegSq=(SimDeg
1,SimDeg
2,...,SimDeg
f,...,SimDeg
F)
其中,SimDegSq为第t个手势轨迹的匹配度序列。
步骤S1034、选取优选基准特征向量,并将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
例如,可以根据下式选取优选基准特征向量:
TgtEmo=argmax(SimDegSq)
=argmax(SimDeg
1,SimDeg
2,...,SimDeg
f,...,SimDeg
F)
其中,argmax为最大自变量函数,TgtEmo为优选基准特征向量的序号。
在选取出优选基准特征向量后,即可将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
步骤S104、在预设的测试对象列表中依次查询与各个手势分别对应的测试对象。
所述测试对象列表中包括至少一个手势,且该列表中每个手势均对应一个测试对象,如下表所示:
| 手势 | 测试对象 |
| 手势1(打勾) | 测试对象1(耳机) |
| 手势2(画圈) | 测试对象2(音箱) |
| 手势3(画波浪线) | 测试对象3(手机) |
| …… | …… |
所述测试对象列表可以由所述用户根据自己的实际使用习惯预先进行设置。
步骤S105、依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果。
所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
具体地,在执行所述测试终端与第t个测试对象之间的交互测试时,获取所述测试终端的设备连接状态。若所述测试终端处于未连接状态,则执行设备连接测试,即向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接;
所述设备连接请求中包括所述第t个测试对象的地址,比如第t个测试对象的媒体访问控制(Media Access Control,MAC)地址。
第t个测试对象接收到所述设备连接请求后,从所述设备连接请求中提取其中的MAC地址,第t个测试对象判断提取的MAC地址与自身的MAC地址是否相同,若两者相同,则与所述测试终端建立设备连接,若两者不相同,则拒绝所述设备连接请求。
若所述测试终端处于与第t个测试对象的连接状态,则执行设备断开测试,即则向第t个测试对象发送设备断开请求,以断开与第t个测试对象之间的设备连接。
所述第t个测试对象接收到所述设备断开请求后,从所述设备断开请求中提取其中的MAC地址,所述第t个测试对象判断提取的MAC地址与自身的MAC地址是否相同,若两者相同,则断开与所述测试终端之间设备连接,若两者不相同,则拒绝所述设备断开请求。
若所述测试终端处于与既有测试对象的连接状态,则在所述测试终端列表中分别查询第t个测试对象的连接优先级以及所述既有测试对象的连接优先级,所述既有测试对象为与第t个测试对象不同的测试对象。
添加了连接优先级的测试终端列表如下所示:
| 手势 | 测试对象 | 连接优先级 |
| 手势1(打勾) | 测试对象1(耳机) | 1 |
| 手势2(画圈) | 测试对象2(音箱) | 2 |
| 手势3(画波浪线) | 测试对象3(手机) | 3 |
| …… | …… | …… |
即各个测试对象的优先级关系为:
测试对象1>测试对象2>测试对象3>……。
若第t个测试对象的连接优先级低于所述既有测试对象的连接优先级,则无需执行任何的交互测试;若第t个测试对象的连接优先级高于或等于所述既有测试对象的连接优先级,则执行设备切换测试,即向所述既有测试对象发送设备断开请求,以断开与 所述既有测试对象之间的设备连接,在断开与所述既有测试对象之间的设备连接之后,向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接。
综上所述,在本申请实施例中,测试终端采集用户的手势轨迹序列,并依次提取所述手势轨迹序列中的各个手势特征向量,然后从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势,并在预设的测试对象列表中依次查询与各个手势分别对应的测试对象,最后依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果。通过本申请实施例,预先建立了手势与测试对象之间的对应关系,通过手势识别即可确定出进行交互测试的各个测试对象的测试次序,并自动依次执行连接、断开、切换等交互测试,省去了繁琐的界面操作过程,节省了测试操作所需的时间,提高了测试效率。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的一种测试方法,图3示出了本申请实施例提供的一种测试装置的一个实施例结构图。
本实施例中,一种测试装置可以包括:
手势轨迹序列采集模块301,用于测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;
手势特征向量提取模块302,用于依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;
手势选取模块303,用于从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势;
测试对象查询模块304,用于在预设的测试对象列表中依次查询与各个手势分别对应的测试对象;
交互测试模块305,用于依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
进一步地,所述手势特征向量提取模块可以包括:
中心点坐标计算单元,用于计算所述手势轨迹序列中的第t个手势轨迹的中心点坐标;
坐标距离计算单元,用于分别计算第t个手势轨迹中各个像素点与所述中心点坐标之间的距离;
像素点集合划分单元,用于将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,并分别统计各个像素点集合中的像素点个数;
手势特征向量构造单元,用于构造第t个手势轨迹的手势特征向量。
进一步地,所述手势选取模块可以包括:
基准特征向量获取单元,用于从所述手势数据库中分别获取与各个手势对应的基准特征向量;
匹配度计算单元,用于计算第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度;
匹配度序列构造单元,用于构造第t个手势轨迹的匹配度序列;
优选基准特征向量选取单元,用于选取优选基准特征向量;
手势确定单元,用于将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
进一步地,所述交互测试模块可以包括:
连接状态获取单元,用于在执行所述测试终端与第t个测试对象之间的交互测试时,获取所述测试终端的设备连接状态;
连接测试单元,用于若所述测试终端处于未连接状态,则执行设备连接测试,即向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接;
断开测试单元,用于若所述测试终端处于与第t个测试对象的连接状态,则执行设备断开测试,即则向第t个测试对象发送设备断开请求,以断开与第t个测试对象之间的设备连接。
进一步地,所述交互测试模块还可以包括:
优先级查询单元,用于若所述测试终端处于与既有测试对象的连接状态,则在所述测试终端列表中分别查询第t个测试对象的连接优先级以及所述既有测试对象的连接优先级,所述既有测试对象为与第t个测试对象不同的测试对象;
切换测试单元,用于若第t个测试对象的连接优先级高于或等于所述既有测试对象的连接优先级,则执行设备切换测试,即向所述既有测试对象发送设备断开请求,以断开与所述既有测试对象之间的设备连接,在断开与所述既有测试对象之间的设备连接之后,向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置,模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记 载的部分,可以参见其它实施例的相关描述。
图4示出了本申请实施例提供的一种终端设备的示意框图,为了便于说明,仅示出了与本申请实施例相关的部分。
在本实施例中,所述终端设备4可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该终端设备4可包括:处理器40、存储器41以及存储在所述存储器41中并可在所述处理器40上运行的计算机可读指令42,例如执行上述的测试方法的计算机可读指令。所述处理器40执行所述计算机可读指令42时实现上述各个测试方法实施例中的步骤,例如图1所示的步骤S101至S105。或者,所述处理器40执行所述计算机可读指令42时实现上述各装置实施例中各模块/单元的功能,例如图3所示模块301至305的功能。
示例性的,所述计算机可读指令42可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器41中,并由所述处理器40执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令42在所述终端设备4中的执行过程。
所述处理器40可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器41可以是所述终端设备4的内部存储单元,例如终端设备4的硬盘或内存。所述存储器41也可以是所述终端设备4的外部存储设备,例如所述终端设备4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器41还可以既包括所述终端设备4的内部存储单元也包括外部存储设备。所述存储器41用于存储所述计算机可读指令以及所述终端设备4所需的其它指令和数据。所述存储器41还可以用于暂时地存储已经输出或者将要输出的数据。
在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机非易失性可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件 产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干计算机可读指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储计算机可读指令的介质。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机非易失性可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种基于手势识别的测试方法,其特征在于,包括:测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势,并在预设的测试对象列表中依次查询与与各个手势分别对应的测试对象;依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
- 根据权利要求1所述的测试方法,其特征在于,所述依次提取所述手势轨迹序列中的各个手势特征向量包括:根据下式计算所述手势轨迹序列中的第t个手势轨迹的中心点坐标:其中,1≤t≤T,T为所述手势轨迹序列中的手势轨迹总数,n为第t个手势轨迹中各个像素点的序号,1≤n≤N,N为第t个手势轨迹中的像素点总数,(AxisX n,AxisY n)为第t个手势轨迹中第n个像素点的坐标,(CentreX,CentreY)为第t个手势轨迹的中心点坐标;根据下式分别计算第t个手势轨迹中各个像素点与所述中心点坐标之间的距离:其中,Dis n为第t个手势轨迹中第n个像素点与所述中心点坐标之间的距离;将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,并分别统计各个像素点集合中的像素点个数;根据下式构造第t个手势轨迹的手势特征向量:
- 根据权利要求1所述的测试方法,其特征在于,所述从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势包括:从所述手势数据库中分别获取与各个手势对应的基准特征向量;根据下式计算第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度:其中,StdVec f为所述手势数据库中的第f个基准特征向量,1≤f≤F,F为所述手势数据库中的基准特征向量的总数,且StdVec f=(StdVal f,1,StdVal f,2,...,StdVal f,m,...,StdVal f,M),StdVal f,m为所述手势数据库中的第f个基准特征向量的第m个分量,Abs为求绝对值函数,SimDeg f为第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度;根据下式构造第t个手势轨迹的匹配度序列:SimDegSq=(SimDeg 1,SimDeg 2,...,SimDeg f,...,SimDeg F)其中,SimDegSq为第t个手势轨迹的匹配度序列;根据下式选取优选基准特征向量:TgtEmo=argmax(SimDegSq)=argmax(SimDeg 1,SimDeg 2,...,SimDeg f,...,SimDeg F)其中,argmax为最大自变量函数,TgtEmo为优选基准特征向量的序号;将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
- 根据权利要求1所述的测试方法,其特征在于,所述依次执行所述测试终端与各个测试对象之间的交互测试包括:在执行所述测试终端与第t个测试对象之间的交互测试时,获取所述测试终端的设备连接状态;若所述测试终端处于未连接状态,则执行设备连接测试,即向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接;若所述测试终端处于与第t个测试对象的连接状态,则执行设备断开测试,即则向第t个测试对象发送设备断开请求,以断开与第t个测试对象之间的设备连接。
- 根据权利要求4所述的测试方法,其特征在于,还包括:若所述测试终端处于与既有测试对象的连接状态,则在所述测试终端列表中分别查询第t个测试对象的连接优先级以及所述既有测试对象的连接优先级,所述既有测试对象为与第t个测试对象不同的测试对象;若第t个测试对象的连接优先级高于或等于所述既有测试对象的连接优先级,则执行设备切换测试,即向所述既有测试对象发送设备断开请求,以断开与所述既有测试对象之间的设备连接,在断开与所述既有测试对象之间的设备连接之后,向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接。
- 一种测试装置,其特征在于,包括:手势轨迹序列采集模块,用于测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;手势特征向量提取模块,用于依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;手势选取模块,用于从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势;测试对象查询模块,用于在预设的测试对象列表中依次查询与各个手势分别对应的测试对象;交互测试模块,用于依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
- 根据权利要求6所述的测试装置,其特征在于,所述手势特征向量提取模块包括:中心点坐标计算单元,用于根据下式计算所述手势轨迹序列中的第t个手势轨迹的中心点坐标:其中,1≤t≤T,T为所述手势轨迹序列中的手势轨迹总数,n为第t个手势轨迹中各个像素点的序号,1≤n≤N,N为第t个手势轨迹中的像素点总数,(AxisX n,AxisY n)为第t个手势轨迹中第n个像素点的坐标,(CentreX,CentreY)为第t个手势轨迹的中心点坐标;坐标距离计算单元,用于根据下式分别计算第t个手势轨迹中各个像素点与所述中心点坐标之间的距离:其中,Dis n为第t个手势轨迹中第n个像素点与所述中心点坐标之间的距离;像素点集合划分单元,用于将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,并分别统计各个像素点集合中的像素点个数;手势特征向量构造单元,用于根据下式构造第t个手势轨迹的手势特征向量:
- 根据权利要求6所述的测试装置,其特征在于,所述手势选取模块包括:基准特征向量获取单元,用于从所述手势数据库中分别获取与各个手势对应的基准特征向量;匹配度计算单元,用于根据下式计算第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度:其中,StdVec f为所述手势数据库中的第f个基准特征向量,1≤f≤F,F为所述手势数据库中的基准特征向量的总数,且StdVec f=(StdVal f,1,StdVal f,2,...,StdVal f,m,...,StdVal f,M),StdVal f,m为所述手势数据库中的第f个基准特征向量的第m个分量,Abs为求绝对值函数,SimDeg f为第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度;匹配度序列构造单元,用于根据下式构造第t个手势轨迹的匹配度序列:SimDegSq=(SimDeg 1,SimDeg 2,...,SimDeg f,...,SimDeg F)其中,SimDegSq为第t个手势轨迹的匹配度序列;优选基准特征向量选取单元,用于根据下式选取优选基准特征向量:TgtEmo=argmax(SimDegSq)=argmax(SimDeg 1,SimDeg 2,...,SimDeg f,...,SimDeg F)其中,argmax为最大自变量函数,TgtEmo为优选基准特征向量的序号;手势确定单元,用于将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
- 根据权利要求6所述的测试装置,其特征在于,所述交互测试模块包括:连接状态获取单元,用于在执行所述测试终端与第t个测试对象之间的交互测试时,获取所述测试终端的设备连接状态;连接测试单元,用于若所述测试终端处于未连接状态,则执行设备连接测试,即向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接;断开测试单元,用于若所述测试终端处于与第t个测试对象的连接状态,则执行设备断开测试,即则向第t个测试对象发送设备断开请求,以断开与第t个测试对象之间的设备连接。
- 根据权利要求9所述的测试装置,其特征在于,所述交互测试模块还包括:优先级查询单元,用于若所述测试终端处于与既有测试对象的连接状态,则在所述测试终端列表中分别查询第t个测试对象的连接优先级以及所述既有测试对象的连 接优先级,所述既有测试对象为与第t个测试对象不同的测试对象;切换测试单元,用于若第t个测试对象的连接优先级高于或等于所述既有测试对象的连接优先级,则执行设备切换测试,即向所述既有测试对象发送设备断开请求,以断开与所述既有测试对象之间的设备连接,在断开与所述既有测试对象之间的设备连接之后,向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接。
- 一种计算机非易失性可读存储介质,所述计算机可读存储介质计算机非易失性可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势,并在预设的测试对象列表中依次查询与与各个手势分别对应的测试对象;依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
- 根据权利要求11所述的计算机非易失性可读存储介质,其特征在于,所述依次提取所述手势轨迹序列中的各个手势特征向量包括:计算所述手势轨迹序列中的第t个手势轨迹的中心点坐标,1≤t≤T,T为所述手势轨迹序列中的手势轨迹总数;分别计算第t个手势轨迹中各个像素点与所述中心点坐标之间的距离;将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,并分别统计各个像素点集合中的像素点个数;构造第t个手势轨迹的手势特征向量。
- 根据权利要求11所述的计算机非易失性可读存储介质,其特征在于,所述从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势包括:从所述手势数据库中分别获取与各个手势对应的基准特征向量;计算第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度,1≤f≤F,F为所述手势数据库中的基准特征向量的总数;构造第t个手势轨迹的匹配度序列;选取优选基准特征向量;将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
- 根据权利要求11所述的计算机非易失性可读存储介质,其特征在于,所述依次执行所述测试终端与各个测试对象之间的交互测试包括:在执行所述测试终端与第t个测试对象之间的交互测试时,获取所述测试终端的设备连接状态;若所述测试终端处于未连接状态,则执行设备连接测试,即向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接;若所述测试终端处于与第t个测试对象的连接状态,则执行设备断开测试,即则向第t个测试对象发送设备断开请求,以断开与第t个测试对象之间的设备连接。
- 根据权利要求14所述的计算机非易失性可读存储介质,其特征在于,还包括:若所述测试终端处于与既有测试对象的连接状态,则在所述测试终端列表中分别查询第t个测试对象的连接优先级以及所述既有测试对象的连接优先级,所述既有测试对象为与第t个测试对象不同的测试对象;若第t个测试对象的连接优先级高于或等于所述既有测试对象的连接优先级,则执行设备切换测试,即向所述既有测试对象发送设备断开请求,以断开与所述既有测试对象之间的设备连接,在断开与所述既有测试对象之间的设备连接之后,向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接。
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:测试终端采集用户的手势轨迹序列,所述手势轨迹序列中包括一个以上的手势轨迹;依次提取所述手势轨迹序列中的各个手势特征向量,其中,每个手势轨迹均对应于一个手势特征向量;从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势,并在预设的测试对象列表中依次查询与与各个手势分别对应的测试对象;依次执行所述测试终端与各个测试对象之间的交互测试,并依次输出各次交互测试的测试结果,所述交互测试包括设备连接测试、设备断开测试和设备切换测试。
- 根据权利要求16所述的终端设备,其特征在于,所述依次提取所述手势轨迹序列中的各个手势特征向量包括:计算所述手势轨迹序列中的第t个手势轨迹的中心点坐标,1≤t≤T,T为所述手势轨迹序列中的手势轨迹总数;分别计算第t个手势轨迹中各个像素点与所述中心点坐标之间的距离;将第t个手势轨迹中的各个像素点按照与所述中心点坐标之间的距离划分为M个像素点集合,并分别统计各个像素点集合中的像素点个数;构造第t个手势轨迹的手势特征向量。
- 根据权利要求16所述的终端设备,其特征在于,所述从预设的手势数据库中依次选取与各个手势特征向量分别对应的手势包括:从所述手势数据库中分别获取与各个手势对应的基准特征向量;计算第t个手势轨迹的手势特征向量与第f个基准特征向量之间的匹配度,1≤f≤F,F为所述手势数据库中的基准特征向量的总数;构造第t个手势轨迹的匹配度序列;选取优选基准特征向量;将与所述优选基准特征向量对应的手势确定为与第t个手势特征向量对应的手势。
- 根据权利要求16所述的终端设备,其特征在于,所述依次执行所述测试终端与各个测试对象之间的交互测试包括:在执行所述测试终端与第t个测试对象之间的交互测试时,获取所述测试终端的设备连接状态;若所述测试终端处于未连接状态,则执行设备连接测试,即向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接;若所述测试终端处于与第t个测试对象的连接状态,则执行设备断开测试,即则向第t个测试对象发送设备断开请求,以断开与第t个测试对象之间的设备连接。
- 根据权利要求19所述的终端设备,其特征在于,还包括:若所述测试终端处于与既有测试对象的连接状态,则在所述测试终端列表中分别查询第t个测试对象的连接优先级以及所述既有测试对象的连接优先级,所述既有测试对象为与第t个测试对象不同的测试对象;若第t个测试对象的连接优先级高于或等于所述既有测试对象的连接优先级,则执行设备切换测试,即向所述既有测试对象发送设备断开请求,以断开与所述既有测试对象之间的设备连接,在断开与所述既有测试对象之间的设备连接之后,向第t个测试对象发送设备连接请求,以建立与第t个测试对象之间的设备连接。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910041250.2 | 2019-01-16 | ||
| CN201910041250.2A CN109885444B (zh) | 2019-01-16 | 2019-01-16 | 基于手势识别的测试方法、装置、存储介质及终端设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020147434A1 true WO2020147434A1 (zh) | 2020-07-23 |
Family
ID=66926136
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/121672 Ceased WO2020147434A1 (zh) | 2019-01-16 | 2019-11-28 | 基于手势识别的测试方法、装置、存储介质及终端设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109885444B (zh) |
| WO (1) | WO2020147434A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113190106A (zh) * | 2021-03-16 | 2021-07-30 | 青岛小鸟看看科技有限公司 | 手势识别方法、装置及电子设备 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109885444B (zh) * | 2019-01-16 | 2022-03-15 | 深圳壹账通智能科技有限公司 | 基于手势识别的测试方法、装置、存储介质及终端设备 |
| CN113672159B (zh) * | 2021-08-24 | 2024-03-15 | 数贸科技(北京)有限公司 | 风控方法、装置、计算设备及计算机存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012143603A2 (en) * | 2011-04-21 | 2012-10-26 | Nokia Corporation | Methods and apparatuses for facilitating gesture recognition |
| CN103399632A (zh) * | 2013-07-16 | 2013-11-20 | 深圳市金立通信设备有限公司 | 一种手势控制的方法和移动终端 |
| CN105389113A (zh) * | 2015-11-03 | 2016-03-09 | 小米科技有限责任公司 | 基于手势的应用控制方法、装置及终端 |
| CN107783867A (zh) * | 2017-07-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | 手势测试方法、装置、计算机设备和存储介质 |
| CN109885444A (zh) * | 2019-01-16 | 2019-06-14 | 深圳壹账通智能科技有限公司 | 基于手势识别的测试方法、装置、存储介质及终端设备 |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6249606B1 (en) * | 1998-02-19 | 2001-06-19 | Mindmaker, Inc. | Method and system for gesture category recognition and training using a feature vector |
| CN104571823B (zh) * | 2015-01-12 | 2015-12-02 | 济南大学 | 一种基于智能电视的非接触式虚拟人机交互方法 |
| CN105760301B (zh) * | 2016-02-24 | 2019-07-09 | 惠州Tcl移动通信有限公司 | 一种基于Monkey命令的自动化测试方法及系统 |
| CN205566642U (zh) * | 2016-04-05 | 2016-09-07 | 东莞市猎声电子科技有限公司 | 一种蓝牙耳机测试装置 |
| CN106778141B (zh) * | 2017-01-13 | 2019-09-20 | 北京元心科技有限公司 | 基于手势识别的解锁方法、装置及移动终端 |
| CN107463331B (zh) * | 2017-08-15 | 2020-08-07 | 上海闻泰电子科技有限公司 | 手势轨迹模拟方法、装置及电子设备 |
| CN108009499A (zh) * | 2017-11-30 | 2018-05-08 | 宁波高新区锦众信息科技有限公司 | 一种基于动态手势识别的智能家居控制系统 |
-
2019
- 2019-01-16 CN CN201910041250.2A patent/CN109885444B/zh not_active Expired - Fee Related
- 2019-11-28 WO PCT/CN2019/121672 patent/WO2020147434A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012143603A2 (en) * | 2011-04-21 | 2012-10-26 | Nokia Corporation | Methods and apparatuses for facilitating gesture recognition |
| CN103399632A (zh) * | 2013-07-16 | 2013-11-20 | 深圳市金立通信设备有限公司 | 一种手势控制的方法和移动终端 |
| CN105389113A (zh) * | 2015-11-03 | 2016-03-09 | 小米科技有限责任公司 | 基于手势的应用控制方法、装置及终端 |
| CN107783867A (zh) * | 2017-07-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | 手势测试方法、装置、计算机设备和存储介质 |
| CN109885444A (zh) * | 2019-01-16 | 2019-06-14 | 深圳壹账通智能科技有限公司 | 基于手势识别的测试方法、装置、存储介质及终端设备 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113190106A (zh) * | 2021-03-16 | 2021-07-30 | 青岛小鸟看看科技有限公司 | 手势识别方法、装置及电子设备 |
| CN113190106B (zh) * | 2021-03-16 | 2022-11-22 | 青岛小鸟看看科技有限公司 | 手势识别方法、装置及电子设备 |
| US12118152B2 (en) | 2021-03-16 | 2024-10-15 | Qingdao Pico Technology Co., Ltd. | Method, device for gesture recognition and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109885444A (zh) | 2019-06-14 |
| CN109885444B (zh) | 2022-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110019896B (zh) | 一种图像检索方法、装置及电子设备 | |
| CN111816312B (zh) | 基于模型解释的健康状态检测方法、设备及可读存储介质 | |
| CN111523569B (zh) | 一种用户身份确定方法、装置及电子设备 | |
| CN109474483A (zh) | 一种设备异常情况的检测方法、检测装置及终端设备 | |
| WO2019169704A1 (zh) | 一种数据分类方法、装置、设备及计算机可读存储介质 | |
| WO2020147434A1 (zh) | 基于手势识别的测试方法、装置、存储介质及终端设备 | |
| CN109447023B (zh) | 确定图像相似度的方法、视频场景切换识别方法及装置 | |
| WO2020220646A1 (zh) | 基于分布式存储系统的数据存储方法、存储节点及介质 | |
| WO2019052162A1 (zh) | 提高数据清洗效率的方法、装置、设备及可读存储介质 | |
| CN107197489A (zh) | 网络切换方法、移动终端及计算机可读存储介质 | |
| CN108833595A (zh) | 用于在线客服服务的计算机可读存储介质 | |
| CN114495126A (zh) | 基于视图对象识别的测试方法及其装置、电子设备 | |
| CN111652955A (zh) | 一种数据展示方法、装置、计算机设备及存储介质 | |
| CN107318140A (zh) | 网络切换方法、移动终端及计算机可读存储介质 | |
| WO2021027149A1 (zh) | 基于画像相似性的信息检索推荐方法、装置及存储介质 | |
| CN107295592A (zh) | 网络切换方法、移动终端及计算机可读存储介质 | |
| WO2019120024A1 (zh) | 用户性别识别方法、装置、存储介质及电子设备 | |
| CN106021852B (zh) | 基于密度聚类算法的血糖数据异常值计算方法和装置 | |
| CN120372241A (zh) | 基于多维特征的案件串并分析方法、装置和计算机设备 | |
| CN119417530A (zh) | 一种基于相似度计算的ID Mapping方法装置、存储介质及系统 | |
| CN112507987A (zh) | 指纹识别方法、存储介质及计算机设备 | |
| WO2021036681A1 (zh) | 数据验证方法、装置、计算机设备和存储介质 | |
| CN115237322A (zh) | 一种智能终端处理方法、智能终端处理装置及其智能终端 | |
| CN108021648B (zh) | 一种搜题的方法、装置及智能终端 | |
| CN116340179A (zh) | 一种兼容性测试方法、电子设备和计算机可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19910040 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.11.2021) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19910040 Country of ref document: EP Kind code of ref document: A1 |











