[go: up one dir, main page]

CN113610897B - A method, device and apparatus for testing a cursor control device - Google Patents

A method, device and apparatus for testing a cursor control device Download PDF

Info

Publication number
CN113610897B
CN113610897B CN202110955022.3A CN202110955022A CN113610897B CN 113610897 B CN113610897 B CN 113610897B CN 202110955022 A CN202110955022 A CN 202110955022A CN 113610897 B CN113610897 B CN 113610897B
Authority
CN
China
Prior art keywords
cursor
movement
control device
cursor control
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110955022.3A
Other languages
Chinese (zh)
Other versions
CN113610897A (en
Inventor
谢昂
张红娜
黄翀宇
刘佳磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110955022.3A priority Critical patent/CN113610897B/en
Publication of CN113610897A publication Critical patent/CN113610897A/en
Application granted granted Critical
Publication of CN113610897B publication Critical patent/CN113610897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种光标控制装置的测试方法、装置及设备,由运动装置携带光标控制装置按照预先确定的测试路径移动。利用运动装置携带光标控制装置移动,便于对光标控制装置的移动方式进行较为准确的控制,避免人为移动测试导致的误差。响应于光标控制装置的移动,受控装置上被光标控制装置控制的目标光标对应移动。根据光标控制装置的移动过程,获取装置移动数据;根据目标光标的移动过程,获取光标移动数据。装置移动数据能够较为准确地反映光标控制装置的移动过程。根据装置移动数据和光标移动数据,能够得到对于光标控制装置控制目标光标的较为准确的测试结果。

The embodiments of the present application disclose a method, device and equipment for testing a cursor control device, in which a motion device carries the cursor control device and moves it along a predetermined test path. By using a motion device to carry the cursor control device to move, it is convenient to more accurately control the movement mode of the cursor control device and avoid errors caused by manual movement tests. In response to the movement of the cursor control device, the target cursor controlled by the cursor control device on the controlled device moves accordingly. According to the movement process of the cursor control device, the device movement data is obtained; according to the movement process of the target cursor, the cursor movement data is obtained. The device movement data can more accurately reflect the movement process of the cursor control device. According to the device movement data and the cursor movement data, a more accurate test result of the cursor control device controlling the target cursor can be obtained.

Description

Method, device and equipment for testing cursor control device
Technical Field
The application relates to the technical field of testing, in particular to a method, a device and equipment for testing a cursor control device.
Background
A cursor control device is a device for controlling a cursor on a controlled device. The cursor control device senses the gesture change of the hardware in the space by using an accelerometer, a gyroscope or a magnetometer and other inertial sensors arranged in the hardware, and correspondingly controls the cursor movement on the controlled device.
At present, when the cursor control device is tested, the obtained test result is not accurate enough, and the performance of the cursor control device is difficult to reflect. How to test the cursor control device to obtain a more accurate test result is a technical problem to be solved.
Disclosure of Invention
In view of the above, embodiments of the present application provide a method, an apparatus, and a device for testing a cursor control device, which can obtain a relatively accurate test result for the cursor control device.
Based on the above, the technical scheme provided by the embodiment of the application is as follows:
in a first aspect, an embodiment of the present application provides a method for testing a cursor control device, where the method includes:
Controlling a moving device carrying a cursor control device to move according to a test path, wherein the test path is a preset moving path of the moving device;
The method comprises the steps of acquiring device movement data and cursor movement data, wherein the device movement data is generated by shooting a moving process of a target device according to the test path by a camera device, the target device is one or more of the cursor control device and the motion device, the cursor movement data is generated according to the moving process of a target cursor corresponding to the movement of the cursor control device according to the test path, and the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device;
And obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
In a second aspect, an embodiment of the present application provides a test apparatus for a cursor control device, the apparatus including:
The control unit is used for controlling the movement device carrying the cursor control device to move according to a test path, wherein the test path is a preset movement path of the movement device;
The device movement data is generated by shooting a target device according to the movement process of the test path movement by the camera device, the target device is one or more of the cursor control device and the movement device, the cursor movement data is generated according to the movement process of a target cursor corresponding to the movement of the cursor control device according to the test path movement, and the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device;
And the first generating unit is used for obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
In a third aspect, an embodiment of the present application provides an electronic device, including:
One or more processors;
a storage device having one or more programs stored thereon,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as in any of the embodiments described above.
In a fourth aspect, embodiments of the present application provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements a method as in any of the above embodiments.
From this, the embodiment of the application has the following beneficial effects:
The embodiment of the application provides a test method, a test device and test equipment for a cursor control device, wherein a movement device carries the cursor control device to move according to a predetermined test path. The cursor control device is carried by the motion device to move, so that the movement mode of the cursor control device is controlled accurately, and errors caused by manual movement testing are avoided. In response to movement of the cursor control device, a target cursor on the controlled device controlled by the cursor control device moves correspondingly. And acquiring the moving data of the device according to the moving process of the target cursor. The device movement data can reflect the movement process of the cursor control device more accurately. According to the device movement data and the cursor movement data, more accurate test results for controlling the target cursor by the cursor control device can be obtained.
Drawings
Fig. 1 is a schematic diagram of a frame of an exemplary application scenario provided in an embodiment of the present application;
FIG. 2 is a flowchart of a testing method of a cursor control device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a testing device of a cursor control device according to an embodiment of the present application;
Fig. 4 is a schematic diagram of a basic structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of embodiments of the application will be rendered by reference to the appended drawings and appended drawings.
In order to facilitate understanding of the technical solution provided by the present application, the following description will first explain the background art related to the present application.
After studying the conventional cursor control device, it was found that when the user uses the cursor control device, the cursor control device is required to accurately restore the user's operation in real time so that the controlled cursor matches the user's operation. Therefore, it is necessary to test the cursor control device and adjust the cursor control device according to the test result, so that the performance of the cursor control device meets the requirement of the user. However, when testing the cursor control device, it is often relied on manually moving the cursor control device to see if the cursor on the controlled device is moving in a matching manner. The adoption of the artificial experience mode can lead to errors in the test result, so that the obtained test result is inaccurate.
Based on the above, the embodiment of the application provides a method, a device and equipment for testing a cursor control device, wherein the cursor control device is carried by a motion device to move according to a predetermined testing path. The cursor control device is carried by the motion device to move, so that the movement mode of the cursor control device is controlled accurately, and errors caused by manual movement testing are avoided. In response to movement of the cursor control device, a target cursor on the controlled device controlled by the cursor control device moves correspondingly. And acquiring the moving data of the device according to the moving process of the target cursor. The device movement data can reflect the movement process of the cursor control device more accurately. According to the device movement data and the cursor movement data, more accurate test results for controlling the target cursor by the cursor control device can be obtained.
In order to facilitate understanding of the test method of the cursor control device provided by the embodiment of the present application, the following description is made with reference to the scenario example shown in fig. 1. Referring to fig. 1, the diagram is a schematic frame diagram of an exemplary application scenario provided in an embodiment of the present application.
In practical applications, the computer 101 may be connected to the motion device 102 and the image pickup device 104, respectively. The cursor control device 103 is carried on the movement device 102. The cursor control device 103 controls the target cursor movement on the controlled device 105. The computer 101 determines the test path and controls the movement device 102 to carry the cursor control device 103 along the test path. The target cursor moves on the display interface of the controlled device 105 with the movement of the cursor control device 103. The imaging device 104 captures the movement process of the motion device 102 and generates corresponding device movement data. The imaging device 104 captures the movement process of the target cursor, and generates corresponding cursor movement data. The computer 101 obtains device movement data and cursor movement data, and obtains a first test result of the cursor control device 103 according to the device movement data and the cursor movement data.
Those skilled in the art will appreciate that the frame diagram shown in fig. 1 is but one example in which embodiments of the present application may be implemented. The scope of applicability of the embodiments of the application is not limited in any way by the framework.
Based on the foregoing description, a detailed description will be given below of a method for testing a cursor control device according to the present application, with reference to the accompanying drawings.
Firstly, it should be noted that the method for testing the cursor control device provided by the embodiment of the application can be applied to a terminal with a test function, such as a computer, a testing device and other devices.
Referring to fig. 2, which is a flowchart of a testing method of a cursor control device according to an embodiment of the present application, as shown in fig. 2, the method may include S201 to S203:
And S201, controlling a moving device carrying the cursor control device to move according to a test path, wherein the test path is a preset moving path of the moving device.
The cursor control device is a device for controlling a cursor on a display interface of a controlled device. The cursor control device may be an air mouse, a wireless remote control device, or the like for controlling a cursor. The cursor control device may be a device including software for realizing cursor control, for example, a remote controller including a cursor control program, a smart phone, or the like.
The controlled device may be a device having a cursor on a display interface. Such as a computer, television, etc. The cursor refers to an identification for indicating a position at which the user is operating on the display interface of the controlled apparatus. For example, when the controlled device is a computer, the cursor may be a mouse pointer on a computer display interface. For another example, when the controlled device is a television, the cursor may be a selection box on the television display interface.
The cursor control device can perform information interaction with the controlled device in a wireless mode, and control a cursor on a display interface of the controlled device. For example, an air mouse may be first bluetooth matched with a computer as a controlled device, so that the air mouse is connected with the computer, and then the cursor on the computer display interface is controlled by using the air mouse.
The movement means is a means capable of effecting movement. The movement device may be, for example, a device that moves in a certain range, such as a robot arm or an electric slider. The mechanical arm can simulate the actions of a human arm and a wrist. The mechanical arm can simulate the process of using the cursor control device by a user, and a test result which more accords with the application scene of the cursor control device is obtained.
In one possible implementation, a 6-axis robotic arm may be utilized as the motion device. The 6-axis mechanical arm has 6 degrees of freedom, can simulate actions such as rotation, lower arm movement, upper arm movement, wrist rotation, wrist swing, wrist rotation and the like, imitates a process of using the cursor control device by a user, and enables a test result to be more comprehensive.
The test path is a predetermined moving path for testing the optical control device. The test path may be set according to the requirements of the test of the optical control device and the function of the movement device. For example, for a robotic arm, the test path may be in the shape of a transverse line, a vertical line, a diagonal line, a right angle, a circle, a wavy line, or the like. The test path may include information on a movement pattern such as a movement speed and the number of executions.
In one possible implementation, a plurality of test paths to be selected may be preset based on testing different functions of the cursor control device. And storing the test paths to be selected into a database, and selecting the test paths corresponding to the functions to be tested when the test is performed.
After the test path is determined, the movement device is controlled to carry the cursor control device to move according to the test path.
In a possible implementation manner, the method for testing the cursor control device provided by the embodiment of the application can be applied to a computer, the computer can be connected with the motion device, and the motion control of the motion device is realized by sending a control instruction to the motion device.
The embodiment of the application does not limit the mode that the movement device carries the cursor control device. In one possible implementation, the cursor control device may be pre-fixed to the motion device such that the motion device moves while carrying the cursor control device. In another possible implementation, for a part of the movement device having a gripping function, such as a mechanical arm, the movement device may be controlled to grip the cursor control device first, so that the movement device moves together with the cursor control device.
And S202, acquiring device movement data and cursor movement data, wherein the device movement data is generated by shooting a moving process of a target device according to the test path movement by an imaging device, the target device is one or more of the cursor control device and the motion device, the cursor movement data is generated according to the moving process of a target cursor corresponding to the movement of the cursor control device according to the test path movement, and the target cursor is a cursor controlled to move by the cursor control device on an interface of a controlled device.
When the control movement device carries the cursor control device to move according to the test path, the camera device is used for recording the moving process of the target device, and device movement data are obtained.
Wherein the target device is one or more of a motion device and a cursor control device. The target device is a device for shooting a moving process by the camera device. It should be noted that the movement device moves together with the cursor control device, and the movement tracks of the movement device and the cursor control device may be considered to be identical or have a small phase difference. When the image pickup device picks up an image, the moving device may be the target device, the cursor control device may be the target device, or both the moving device and the cursor control device may be the target device. Wherein the device movement data obtained by taking the cursor control device as the target device is more accurate.
The imaging device is a device capable of capturing a moving process of the target device. For example, the imaging device may be a video camera, a high-speed camera, or the like. The camera device can be used for recording the moving process of the target device, so that the device moving data and the cursor moving data which are obtained by subsequent use can be conveniently used for testing and analyzing. The resulting device movement data may be in particular video data or image data. For video data, the position of a target device in video can be analyzed frame by frame, and the actual moving path and moving speed of the target device can be determined. The image data can determine the actual moving path and moving speed of the target device by capturing the positions of the target device in a plurality of images obtained by continuous imaging.
When the cursor control device moves, the cursor control device correspondingly moves along with the movement of the cursor control device on the target cursor controlled by the display interface of the controlled device. Correspondingly, the moving process of the target cursor is recorded, and cursor moving data are obtained. The cursor movement data is used to represent the movement process of the target cursor on the controlled device.
In one possible implementation, the cursor movement data may be obtained by the camera device during the movement of the shooting target device, while the shooting target cursor is moving on the display interface of the controlled device. In the shooting process, one image pickup device can be adopted to shoot the target device and the target cursor at the same time. A plurality of imaging devices, for example, two imaging devices may be used for imaging. Wherein, some shooting devices shoot the target device, and another shooting device shoots the target cursor. The cursor movement data generated based on the image pickup device may be video data or image data.
In another possible implementation, the cursor movement data may also be generated by drawing a movement track of the target cursor on the controlled device by the drawing device on the controlled device. The drawing means may be, for example, drawing software. The drawing device can record the moving track of the target cursor according to the position of the target cursor on the display interface of the controlled device, and obtain cursor moving data. The cursor movement data generated based on the drawing device may be position data of the target cursor on the display interface of the controlled device at different times.
S203, obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
Based on the device movement data and the cursor movement data, a first test result of the cursor control device controlling the target cursor can be obtained.
The embodiment of the application provides two specific embodiments for obtaining the first test result of the cursor control device according to the device movement data and the cursor movement data, please refer to the following.
Based on the above-mentioned related content of S201-S203, the cursor control device is moved by the motion device, so that the cursor control device can be controlled to move according to the test path more accurately, and errors caused by manually moving the cursor control device for testing are avoided. And then, utilizing the device movement data generated by the image pickup device and the cursor movement data, the more accurate difference between the cursor control device and the target cursor can be obtained, and the more accurate first test result of the cursor control device can be obtained.
Based on the device movement data and the cursor movement data, a test result of response delay of the cursor control device for controlling the target cursor and fluency of the target cursor movement can be obtained.
In one possible implementation manner, the embodiment of the present application provides a specific implementation manner of obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data, including the following three steps:
a1, determining a first moment when the target device executes a first action from the device movement data.
The device movement data is processed to obtain the time when each action is executed by the target device. A first time at which the target device performs the first action is determined from the device movement data. The first action is an action that the target device needs to complete in moving along the test path. The first operation may be, for example, a start operation, a turning operation in the test path, or a stop operation, or may be a movement operation during movement. The first time is a time at which the target device performs the first action. Specifically, for example, the first action may be started. The first action may be ended. The first time may be a time obtained by counting from a time when the test of the target device is started, or may be a time obtained by counting by another counting method.
For example, the first action is an action to initiate movement. A first time, such as 1 st second, at which the target device performs the first action may be determined from the device movement data.
A2, determining a second moment when the target cursor executes the first action in response to the first action executed by the cursor control device from the cursor movement data.
Processing the cursor movement data can obtain the time when the cursor performs each action in response to the action performed by the cursor control device. In the cursor movement data, a second moment when the target cursor performs the first action is determined.
For example, a second time, such as 2 seconds, at which the target cursor performs the first action in response to the cursor control device performing the first action may be determined from the cursor movement data.
A3, calculating the time interval between the first time and the second time to obtain a response test result of the cursor control device.
The time interval between the first time and the second time can reflect the time difference of the corresponding action of the cursor control device for controlling the target cursor, so that the response speed of the cursor control device for controlling the target cursor is embodied.
Taking the first time as 1 st second and the second time as 2 nd second as an example, calculating the time interval between the first time and the second time to obtain a response delay of 1 second, namely a response test result of the cursor control device.
In one possible implementation, if the device movement data and the cursor movement data are both video data captured by the same camera device, the video may be analyzed frame by frame, and the first time and the second time are determined, so as to obtain a response test result of the cursor control device.
If the timing system of the first moment is consistent with that of the second moment, the time interval between the first moment and the second moment can be directly calculated, and a response test result is obtained. If the timing systems of the first time and the second time are inconsistent, the timing systems of the first time or the second time need to be converted so that the timing systems of the first time and the second time are consistent. And calculating the time interval between the first time and the second time to obtain a response test result.
In the embodiment of the application, the response delay of the cursor control device for controlling the target cursor can be counted by determining the time corresponding to the first action of the target device and the target cursor and calculating the time interval, so that the response test result of the cursor control device can be obtained.
In another possible implementation, the cursor control device may be in a non-fluent state during the process of controlling the movement of the target cursor. For example, the cursor control device moves at a constant speed, but the movement speed of the target cursor changes greatly, so that the movement process of the target cursor is blocked.
According to the device movement data and the cursor movement data, a movement test result used for representing the smoothness of the cursor control device for controlling the cursor can be obtained. The embodiment of the application provides a specific implementation manner for obtaining a first test result of a cursor control device according to device movement data and cursor movement data, which comprises the following three steps:
B1, obtaining a first moving distance of the target device for executing a second action in a target time period according to the device moving data.
Analyzing the device movement data can determine the time at which the target device performs various actions and the distance moved. According to the device movement data, a first movement distance of the target device for executing the second action in the target time period is determined.
And B2, obtaining a second moving distance in the target time period when the target cursor executes the second action according to the cursor moving data and responding to the cursor control device to execute the second action.
Analysis of the cursor movement data may determine the time at which the target cursor performs each action and the distance moved in response to the cursor control device performing the action. And determining a second moving distance of the target cursor in the target time period in the process of executing the second action according to the cursor moving data.
The target period for determining the second movement distance may be different from the start time of the target period for determining the first movement distance. In one possible implementation, the timing of the target time period may be started when the same second action as the cursor control device is detected in the cursor movement data in consideration of the influence of the response delay. For example, the start time of the second action performed by the target device is 4 th second, and the movement distance of the target device within 2 seconds is calculated as the first movement distance from the 4 th second. Correspondingly, firstly, determining the starting moment of the second action of the target cursor to be 5 seconds by utilizing the cursor movement data, and calculating the movement distance of the target cursor within 2 seconds from the 5 th second as a second movement distance.
And B3, comparing the first moving distance with the second moving distance to obtain a moving test result of the cursor control device.
The first movement distance can represent a movement distance of the target device, i.e., the cursor control device, within a target time period. The second movement distance can represent a movement distance of the target cursor within the target time period. By comparing the first moving distance and the second moving distance, whether the moving distances of the cursor control device and the target cursor are consistent in the target time can be determined, and therefore whether the cursor control device is jammed in the process of controlling the target cursor is determined.
Specifically, a certain proportional relationship may exist between the first moving distance of the target device and the second moving distance of the target cursor, and before comparing the first moving distance with the second moving distance, the first moving distance or the second moving distance may be converted according to the proportional relationship. And comparing the converted first moving distance with the converted second moving distance to obtain a moving test result.
In one possible implementation manner, if the device movement data and the cursor movement data are both video data captured by the same image capturing device, the video may be analyzed frame by frame, so as to determine whether frame accumulation occurs in the cursor movement data, that is, whether the second movement distance between frames is smaller than the first movement distance.
In the embodiment of the application, whether the target cursor moves synchronously with the cursor control device can be determined by acquiring the first moving distance and the second moving distance, so that the smoothness test for controlling the movement of the target cursor by the cursor control device is realized.
In one possible implementation, the movement tracks of the cursor control device and the target cursor may also be compared to determine the degree of restoration of the cursor control device to the test path.
The embodiment of the application also provides a testing method of the cursor control device, which comprises the following three steps in addition to the steps:
and C1, generating a first cursor movement track according to the cursor movement data.
The cursor movement data represents movement data of the target cursor under control of the cursor control device. According to the cursor movement data, a first cursor movement track of the target cursor movement can be obtained.
For example, when the cursor movement data is video data or image data generated by photographing by the image pickup device, identification of the target cursor may be performed on the video data or image data, a change in the position of the target cursor may be determined, and the first cursor movement trajectory may be finally generated. When the cursor movement data is data drawn by the drawing device, the first cursor movement locus may be obtained directly from the movement locus of the target cursor drawn by the drawing device.
And C2, generating a device movement track according to the device movement data.
The device movement data is movement data generated based on a movement process of the target device. From the device movement data, a device movement trajectory of the target device movement can be obtained.
In one possible implementation, device movement data may be identified for a target device, a change in location of the target device determined, and a device movement trajectory generated.
And C3, obtaining a second test result of the cursor control device for controlling the target cursor according to the first cursor movement track and the device movement track.
Based on the first cursor movement track and the device movement track, a second test result of the cursor device for controlling the target cursor to move can be obtained.
The second test result is a test result for controlling the movement track of the target cursor by the cursor control device. Specifically, the test can be performed from two aspects of the reduction degree and the overlapping degree of the moving track. The embodiment of the application provides two specific embodiments of obtaining a second test result of the cursor control device for controlling the target cursor according to the first cursor movement track and the device movement track, please refer to the following.
In one possible implementation, the degree of restoration of the movement track of the target cursor may be tested. Specifically, the second test result of the cursor control device controlling the target cursor is obtained according to the first cursor movement track and the device movement track, and the method comprises the following two steps:
Comparing the first cursor movement track with the device movement track to obtain the similarity of the first cursor movement track and the device movement track;
and obtaining a first control test result of the cursor control device according to the similarity.
And comparing the obtained first cursor movement track with the device movement track to obtain the similarity of the first cursor movement track and the device movement track. The similarity is used for measuring the similarity of the first cursor movement track and the device movement track in terms of graphics. For example, when the device movement locus is a triangle and the first cursor movement locus is a broken line, the similarity between the device movement locus and the first cursor movement locus is low. If the device moving track is an equilateral triangle, the similarity between the device moving track and the first cursor moving track is higher when the first cursor moving track is a triangle.
And determining a first control test result of the cursor control device according to the obtained similarity between the first cursor movement track and the device movement track. In one possible implementation, a threshold value of similarity between the first cursor movement track and the device movement track may be preset. When the similarity between the first cursor movement track and the device movement track is greater than the threshold value, the performance of the cursor control device can be considered to be better, and the test result is better.
Based on the above, by determining the similarity between the first cursor movement track and the movement track of the device, the control effect of the cursor control device on the target cursor can be determined, so as to realize a more comprehensive and accurate test on the cursor control device.
In another possible implementation, the degree of coincidence of the movement track of the target cursor and the movement track of the device can be tested. Specifically, the second test result of the cursor control device controlling the target cursor is obtained according to the first cursor movement track and the device movement track, and the method comprises the following two steps:
calculating the coincidence ratio of the first cursor movement track and the device movement track;
And obtaining a second control test result of the cursor control device according to the contact ratio.
And calculating the coincidence ratio of the first cursor movement track and the device movement track. The coincidence degree is used for measuring the same degree of the first cursor movement track and the device movement track. In one possible implementation, the first cursor movement track and the starting point of the device movement track may be first overlapped, and then the overlap ratio of the first cursor movement track and the device movement track may be calculated. By calculating the overlap ratio, whether the cursor control device shifts when controlling the movement of the target cursor can be determined, and the accuracy of the cursor control device controlling the target cursor can be tested.
In some cases, as the time for which the cursor control device controls the target cursor increases, the degree of displacement of the target cursor increases. It may be arranged to perform the same test path a plurality of times. After the motion device repeatedly executes the test path, calculating the coincidence degree based on the obtained first cursor movement track and the device movement track, and obtaining a more accurate movement test result.
Based on the above, the control effect of the cursor control device on the target cursor can be determined by determining the coincidence ratio of the first cursor movement track and the device movement track, so as to realize more comprehensive and accurate test on the cursor control device.
In one possible implementation manner, the embodiment of the application provides a method for testing a cursor control device, which includes the following steps in addition to the above steps:
generating a second cursor movement track according to the cursor movement data;
and comparing the second cursor movement track with the test path to obtain a third test result of the cursor control device.
According to the cursor movement data, a second cursor movement track of the target cursor movement can be obtained. The method for generating the second cursor movement track is similar to the method for generating the first cursor movement track, and will not be described herein.
And comparing the second cursor movement track with the test path to obtain a third test result of the cursor control device. The third test result is used for measuring the difference between the test path operated by the cursor control device and the second cursor movement track obtained by actually controlling the target cursor movement.
In the embodiment of the application, the reduction degree of the cursor control device to the preset track can be determined by comparing the second cursor movement track with the test path, so that more accurate test of the cursor control device is realized.
When the cursor control device controls the target cursor, the system resource of the controlled device is required to be occupied. When the system resources of the controlled device are occupied more, the operation of the controlled device is affected.
Based on this, the embodiment of the application also provides a testing method of the cursor control device, which comprises the following steps in addition to the steps:
Monitoring system resources of the controlled device occupied by the cursor control device for controlling the target cursor to obtain occupied resources;
And obtaining a resource occupation test result of the cursor control device according to the occupied resource.
When the cursor control device controls a target cursor on a display interface of the controlled device, monitoring resources occupied by the cursor control device in system resources of the controlled device to obtain occupied resources. The occupied resources are obtained through monitoring, so that the resource occupation condition of the optical spectrum control device can be counted.
And obtaining a resource occupation test result of the cursor control device based on the obtained occupied resource. The resource occupation test result is used for measuring the performance of the cursor control device in terms of resource occupation.
Based on the above, the performance of the cursor control device can be measured through the resource occupation test result, so as to realize more comprehensive test of the cursor control device.
Based on the method for testing the cursor control device provided by the embodiment of the method, the embodiment of the application also provides a testing device for the cursor control device, and the testing device for the cursor control device is described below with reference to the accompanying drawings.
Referring to fig. 3, the schematic diagram of a testing device of a cursor control device according to an embodiment of the present application is shown. As shown in fig. 3, the test device of the cursor control device includes:
a control unit 301, configured to control a motion device carrying a cursor control device to move according to a test path, where the test path is a preset motion path of the motion device;
The device movement data is generated by shooting a movement process of a target device according to the test path movement by a camera device, the target device is one or more of the cursor control device and the movement device, the cursor movement data is generated according to a movement process of a target cursor corresponding to the movement of the cursor control device according to the test path movement, and the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device;
The first generating unit 303 is configured to obtain a first test result of the cursor control device according to the device movement data and the cursor movement data.
In one possible implementation manner, the first generating unit includes:
A first determining subunit, configured to determine, from the device movement data, a first time at which the target device performs a first action;
A second determining subunit configured to determine, from the cursor movement data, a second time at which the target cursor performs the first action in response to the cursor control device performing the first action;
And the calculating subunit is used for calculating the time interval between the first time and the second time to obtain a response test result of the cursor control device.
In one possible implementation manner, the first generating unit includes:
A first obtaining subunit, configured to obtain, according to the device movement data, a first movement distance of the target device for executing a second action in a target time period;
A second obtaining subunit, configured to obtain, according to the cursor movement data, a second movement distance within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action;
and the first comparison subunit is used for comparing the first moving distance and the second moving distance to obtain a moving test result of the cursor control device.
In one possible implementation, the apparatus further includes:
The second generation unit is used for generating a first cursor movement track according to the cursor movement data;
A third generation unit, configured to generate a device movement track according to the device movement data;
and the fourth generating unit is used for obtaining a second test result of the cursor control device for controlling the target cursor according to the first cursor movement track and the device movement track.
In one possible implementation manner, the fourth generating unit includes:
a second comparing subunit, configured to compare the first cursor movement track with the device movement track, so as to obtain a similarity between the first cursor movement track and the device movement track;
and the generation subunit is used for obtaining a first control test result of the cursor control device according to the similarity.
In one possible implementation manner, the fourth generating unit is specifically configured to calculate a degree of coincidence between the first cursor movement track and the device movement track, and obtain a second control test result of the cursor control device according to the degree of coincidence.
In one possible implementation, the apparatus further includes:
a fifth generation unit, configured to generate a second cursor movement track according to the cursor movement data;
And the comparison unit is used for comparing the second cursor movement track with the test path to obtain a third test result of the cursor control device.
In one possible implementation, the cursor movement data is generated by the camera shooting the movement of the cursor control device and/or the motion device and shooting the movement process of the target cursor;
Or alternatively
And drawing a moving track of the target cursor on the controlled device by a drawing device.
In one possible implementation, the apparatus further includes:
the monitoring unit is used for monitoring the system resources of the controlled device occupied by the cursor control device for controlling the target cursor to obtain occupied resources;
And a sixth generating unit, configured to obtain a resource occupation test result of the cursor control device according to the occupied resource.
The application further provides electronic equipment, which comprises one or more processors and a storage device, wherein one or more programs are stored in the storage device, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method for testing the cursor control device according to any one of the embodiments.
Referring now to fig. 4, a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present application is shown. The terminal device in the embodiment of the present application may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal DIGITAL ASSISTANT ), a PAD (Portable android device, a tablet computer), a PMP (Portable MEDIA PLAYER, a Portable multimedia player), a car-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV (television), a desktop computer, and the like. The electronic device shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, devices may be connected to I/O interface 405 including input devices 408 such as a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 407 including a Liquid Crystal Display (LCD), speaker, vibrator, etc., storage devices 408 including magnetic tape, hard disk, etc., and communications devices 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the method of the embodiment of the present application are performed when the computer program is executed by the processing means 401.
The electronic device provided by the embodiment of the present application and the method for testing the cursor control device provided by the foregoing embodiment belong to the same inventive concept, and technical details not described in detail in this embodiment can be seen in the foregoing embodiment, and this embodiment has the same beneficial effects as the foregoing embodiment.
Based on the method for testing a cursor control device provided in the foregoing method embodiment, an embodiment of the present application provides a computer storage medium having a computer program stored thereon, where the program when executed by a processor implements the method for testing a cursor control device according to any one of the foregoing embodiments.
The computer readable medium of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device.
The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the method of testing the cursor control device.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The name of the unit/module is not limited to the unit itself in some cases, and, for example, the voice data acquisition module may also be described as a "data acquisition module".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic that may be used include Field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems-on-a-chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of the present application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present application, there is provided a method of testing a cursor control device, the method comprising:
Controlling a moving device carrying a cursor control device to move according to a test path, wherein the test path is a preset moving path of the moving device;
The method comprises the steps of acquiring device movement data and cursor movement data, wherein the device movement data is generated by shooting a moving process of a target device according to the test path by a camera device, the target device is one or more of the cursor control device and the motion device, the cursor movement data is generated according to the moving process of a target cursor corresponding to the movement of the cursor control device according to the test path, and the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device;
And obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
According to one or more embodiments of the present application, there is provided a method for testing a cursor control device, where the obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data includes:
determining a first time at which the target device performs a first action from the device movement data;
determining, from the cursor movement data, a second time at which the target cursor performs the first action in response to the cursor control device performing the first action;
and calculating the time interval between the first time and the second time to obtain a response test result of the cursor control device.
According to one or more embodiments of the present application, there is provided a method for testing a cursor control device, the method for obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data, including:
obtaining a first moving distance of the target device for executing a second action in a target time period according to the device moving data;
Obtaining a second movement distance within the target time period when the target cursor executes the second action in response to the second action executed by the cursor control device according to the cursor movement data;
and comparing the first moving distance with the second moving distance to obtain a moving test result of the cursor control device.
According to one or more embodiments of the present application, there is provided a method for testing a cursor control device, the method further comprising:
Generating a first cursor movement track according to the cursor movement data;
Generating a device movement track according to the device movement data;
And obtaining a second test result of the cursor control device for controlling the target cursor according to the first cursor movement track and the device movement track.
According to one or more embodiments of the present application, there is provided a method for testing a cursor control device, where the method includes obtaining a second test result of controlling the target cursor by the cursor control device according to the first cursor movement track and the device movement track, where the second test result includes:
Comparing the first cursor movement track with the device movement track to obtain the similarity of the first cursor movement track and the device movement track;
and obtaining a first control test result of the cursor control device according to the similarity.
According to one or more embodiments of the present application, there is provided a method for testing a cursor control device, where the method includes obtaining a second test result of controlling the cursor by the cursor control device according to the first cursor movement track and the device movement track, where the second test result includes:
calculating the coincidence ratio of the first cursor movement track and the device movement track;
And obtaining a second control test result of the cursor control device according to the contact ratio.
According to one or more embodiments of the present application, there is provided a method of testing a cursor control device, the method further comprising:
generating a second cursor movement track according to the cursor movement data;
and comparing the second cursor movement track with the test path to obtain a third test result of the cursor control device.
According to one or more embodiments of the present application, there is provided a method of testing a cursor control device, the cursor movement data being generated by the camera device during shooting of movement of the cursor control device and/or the movement device while shooting of movement of the target cursor is taking place;
Or alternatively
And drawing a moving track of the target cursor on the controlled device by a drawing device.
According to one or more embodiments of the present application, there is provided a method of testing a cursor control device, the method further comprising:
Monitoring system resources of the controlled device occupied by the cursor control device for controlling the target cursor to obtain occupied resources;
And obtaining a resource occupation test result of the cursor control device according to the occupied resource.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device, the device comprising:
The control unit is used for controlling the movement device carrying the cursor control device to move according to a test path, wherein the test path is a preset movement path of the movement device;
The device movement data is generated by shooting a target device according to the movement process of the test path movement by the camera device, the target device is one or more of the cursor control device and the movement device, the cursor movement data is generated according to the movement process of a target cursor corresponding to the movement of the cursor control device according to the test path movement, and the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device;
And the first generating unit is used for obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device, the first generating unit including:
A first determining subunit, configured to determine, from the device movement data, a first time at which the target device performs a first action;
A second determining subunit configured to determine, from the cursor movement data, a second time at which the target cursor performs the first action in response to the cursor control device performing the first action;
And the calculating subunit is used for calculating the time interval between the first time and the second time to obtain a response test result of the cursor control device.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device, the first generating unit including:
A first obtaining subunit, configured to obtain, according to the device movement data, a first movement distance of the target device for executing a second action in a target time period;
A second obtaining subunit, configured to obtain, according to the cursor movement data, a second movement distance within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action;
and the first comparison subunit is used for comparing the first moving distance and the second moving distance to obtain a moving test result of the cursor control device.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device [ example thirteenth ], the device further comprising:
The second generation unit is used for generating a first cursor movement track according to the cursor movement data;
A third generation unit, configured to generate a device movement track according to the device movement data;
and the fourth generating unit is used for obtaining a second test result of the cursor control device for controlling the target cursor according to the first cursor movement track and the device movement track.
According to one or more embodiments of the present application, there is provided a test apparatus of a cursor control device [ example fourteen ], the fourth generating unit including:
a second comparing subunit, configured to compare the first cursor movement track with the device movement track, so as to obtain a similarity between the first cursor movement track and the device movement track;
and the generation subunit is used for obtaining a first control test result of the cursor control device according to the similarity.
According to one or more embodiments of the present application, an exemplary fifteen provides a test apparatus for a cursor control device, where the fourth generating unit is specifically configured to calculate a degree of coincidence between the first cursor movement track and the movement track of the device, and obtain a second control test result of the cursor control device according to the degree of coincidence.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device, the device further comprising:
a fifth generation unit, configured to generate a second cursor movement track according to the cursor movement data;
And the comparison unit is used for comparing the second cursor movement track with the test path to obtain a third test result of the cursor control device.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device, the cursor movement data being generated by the imaging device in a process of capturing movement of the cursor control device and/or the movement device while capturing movement of the target cursor;
Or alternatively
And drawing a moving track of the target cursor on the controlled device by a drawing device.
According to one or more embodiments of the present application, there is provided a test device of a cursor control device, the device further comprising:
the monitoring unit is used for monitoring the system resources of the controlled device occupied by the cursor control device for controlling the target cursor to obtain occupied resources;
And a sixth generating unit, configured to obtain a resource occupation test result of the cursor control device according to the occupied resource.
According to one or more embodiments of the present application, there is provided an electronic device, comprising:
One or more processors;
a storage device having one or more programs stored thereon,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as in any of the embodiments described above.
According to one or more embodiments of the present application, there is provided a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements a method as described in any of the above embodiments.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system or device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant points refer to the description of the method section.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" is used to describe an association relationship of an associated object, and indicates that three relationships may exist, for example, "a and/or B" may indicate that only a exists, only B exists, and three cases of a and B exist simultaneously, where a and B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one of a, b or c may represent a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method for testing a cursor control device, the method comprising:
Controlling a moving device carrying a cursor control device to move according to a test path, wherein the test path is a preset moving path of the moving device;
The method comprises the steps of acquiring device movement data and cursor movement data, wherein the device movement data is generated by shooting a moving process of a target device according to the test path movement by an image pickup device, the target device is one or more of the cursor control device and the motion device, the cursor movement data is generated according to the moving process of a target cursor corresponding to the movement of the cursor control device according to the test path movement, the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device, the cursor movement data is generated by shooting the moving process of the target cursor by the image pickup device while shooting the movement of the cursor control device and/or the motion device, and the cursor control device senses the gesture change of the cursor control device in space and correspondingly controls the movement of the target cursor by utilizing an inertial sensor arranged in hardware;
And obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
2. The method of claim 1, wherein the obtaining a first test result of the cursor control device based on the device movement data and the cursor movement data comprises:
determining a first time at which the target device performs a first action from the device movement data;
determining, from the cursor movement data, a second time at which the target cursor performs the first action in response to the cursor control device performing the first action;
and calculating the time interval between the first time and the second time to obtain a response test result of the cursor control device.
3. The method of claim 1, wherein the obtaining a first test result of the cursor control device based on the device movement data and the cursor movement data comprises:
obtaining a first moving distance of the target device for executing a second action in a target time period according to the device moving data;
Obtaining a second movement distance within the target time period when the target cursor executes the second action in response to the second action executed by the cursor control device according to the cursor movement data;
and comparing the first moving distance with the second moving distance to obtain a moving test result of the cursor control device.
4. The method according to claim 1, wherein the method further comprises:
Generating a first cursor movement track according to the cursor movement data;
Generating a device movement track according to the device movement data;
And obtaining a second test result of the cursor control device for controlling the target cursor according to the first cursor movement track and the device movement track.
5. The method of claim 4, wherein the obtaining a second test result of the cursor control device controlling the target cursor according to the first cursor movement track and the device movement track comprises:
Comparing the first cursor movement track with the device movement track to obtain the similarity of the first cursor movement track and the device movement track;
and obtaining a first control test result of the cursor control device according to the similarity.
6. The method of claim 4, wherein the obtaining a second test result of the cursor control device controlling the cursor according to the first cursor movement track and the device movement track comprises:
calculating the coincidence ratio of the first cursor movement track and the device movement track;
And obtaining a second control test result of the cursor control device according to the contact ratio.
7. The method according to claim 1, wherein the method further comprises:
generating a second cursor movement track according to the cursor movement data;
and comparing the second cursor movement track with the test path to obtain a third test result of the cursor control device.
8. The method according to any one of claims 1-7, further comprising:
Monitoring system resources of the controlled device occupied by the cursor control device for controlling the target cursor to obtain occupied resources;
And obtaining a resource occupation test result of the cursor control device according to the occupied resource.
9. A test device for a cursor control device, the device comprising:
The control unit is used for controlling the movement device carrying the cursor control device to move according to a test path, wherein the test path is a preset movement path of the movement device;
The device movement data is generated by shooting a movement process of a target device according to the test path movement by an imaging device, the target device is one or more of the cursor control device and the movement device, the cursor movement data is generated according to a movement process of a target cursor corresponding to the movement of the cursor control device according to the test path movement, the target cursor is a cursor controlled by the cursor control device on a display interface of a controlled device, the cursor movement data is generated by shooting the movement process of the target cursor by the imaging device while shooting the movement of the cursor control device and/or the movement device, and the cursor control device senses the gesture change of the cursor control device in space and correspondingly controls the movement of the target cursor by using an inertial sensor arranged in hardware;
And the first generating unit is used for obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data.
10. An electronic device, comprising:
One or more processors;
a storage device having one or more programs stored thereon,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-8.
11. A computer readable medium, characterized in that a computer program is stored thereon, wherein the program, when executed by a processor, implements the method according to any of claims 1-8.
CN202110955022.3A 2021-08-19 2021-08-19 A method, device and apparatus for testing a cursor control device Active CN113610897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110955022.3A CN113610897B (en) 2021-08-19 2021-08-19 A method, device and apparatus for testing a cursor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110955022.3A CN113610897B (en) 2021-08-19 2021-08-19 A method, device and apparatus for testing a cursor control device

Publications (2)

Publication Number Publication Date
CN113610897A CN113610897A (en) 2021-11-05
CN113610897B true CN113610897B (en) 2025-01-24

Family

ID=78341305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110955022.3A Active CN113610897B (en) 2021-08-19 2021-08-19 A method, device and apparatus for testing a cursor control device

Country Status (1)

Country Link
CN (1) CN113610897B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2854693Y (en) * 2005-08-31 2007-01-03 英群企业股份有限公司 Mouse test machine

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2962175B1 (en) * 2013-03-01 2019-05-01 Tobii AB Delay warp gaze interaction
CN105487689A (en) * 2015-12-22 2016-04-13 广东欧珀移动通信有限公司 A ring mouse and a method for controlling a mobile terminal by using the ring mouse
CN110248245B (en) * 2019-06-21 2022-05-06 维沃移动通信有限公司 A video positioning method, device, mobile terminal and storage medium
CN210155652U (en) * 2019-12-16 2020-03-17 上海云丁微电子有限公司 Mouse test system
CN111880422B (en) * 2020-07-20 2024-01-05 Oppo广东移动通信有限公司 Equipment control method and device, equipment and storage medium
CN113076053A (en) * 2021-05-07 2021-07-06 北京字节跳动网络技术有限公司 Cursor remote control method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2854693Y (en) * 2005-08-31 2007-01-03 英群企业股份有限公司 Mouse test machine

Also Published As

Publication number Publication date
CN113610897A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN112818898B (en) Model training method and device and electronic equipment
CN112488783A (en) Image acquisition method, device and electronic device
CN110347875B (en) Video scene classification method and device, mobile terminal and storage medium
CN113034580B (en) Image information detection method, device and electronic equipment
JP2022531186A (en) Information processing methods, devices, electronic devices, storage media and programs
CN111382701B (en) Motion capture method, motion capture device, electronic equipment and computer readable storage medium
WO2020155915A1 (en) Method and apparatus for playing back audio
WO2022017181A1 (en) Interaction method and apparatus, device, and readable medium
CN112486318A (en) Image display method, image display device, readable medium and electronic equipment
WO2023151558A1 (en) Method and apparatus for displaying images, and electronic device
CN116079697B (en) A monocular visual servoing method, device, equipment and medium based on image
CN113610897B (en) A method, device and apparatus for testing a cursor control device
CN111586295B (en) Image generation method and device and electronic equipment
CN111445499B (en) Method and device for identifying target information
CN112492230B (en) Video processing method and device, readable medium and electronic equipment
CN115690147B (en) Attitude estimation method, device, equipment and medium
CN110209581A (en) Trigger action analysis method and device based on application program
CN117193525A (en) Throwing interaction method of three-dimensional space, head-mounted display device and readable medium
CN106768856B (en) A kind of determination method and device of traveling time delay
CN110177270A (en) Video head frame test method and device
CN111782050B (en) Image processing method and apparatus, storage medium, and electronic device
CN112906551B (en) Video processing method, device, storage medium and electronic device
CN118260183A (en) Test method and device of augmented reality equipment, electronic equipment and storage medium
CN117308910A (en) Positioning method, device, electronic device, head-mounted display device and storage medium
CN113032282B (en) Method, device and equipment for testing gesture recognition device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant