CN113610897A - Testing method, device and equipment of cursor control device - Google Patents

Testing method, device and equipment of cursor control device Download PDF

Info

Publication number
CN113610897A
CN113610897A CN202110955022.3A CN202110955022A CN113610897A CN 113610897 A CN113610897 A CN 113610897A CN 202110955022 A CN202110955022 A CN 202110955022A CN 113610897 A CN113610897 A CN 113610897A
Authority
CN
China
Prior art keywords
cursor
control device
movement
target
cursor control
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.)
Pending
Application number
CN202110955022.3A
Other languages
Chinese (zh)
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/CN113610897A/en
Publication of CN113610897A publication Critical patent/CN113610897A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a test method, a test device and test equipment of a cursor control device. The moving device is used for carrying the cursor control device to move, so that the moving mode of the cursor control device is controlled accurately, and errors caused by manual moving tests 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. Acquiring device movement data according to the movement process of the cursor control device; and acquiring cursor movement data according to the movement process of the target cursor. The device movement data can 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 for controlling the target cursor can be obtained.

Description

Testing method, device and equipment of cursor control device
Technical Field
The present application relates to the field of testing technologies, and in particular, to a method, an apparatus, and a device 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 attitude change of 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 movement of a cursor on the controlled device.
At present, when a 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 relatively accurate test result is a technical problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a device for testing a cursor control device, which can obtain a more accurate test result for the cursor control device.
Based on this, the technical scheme that this application embodiment provided 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 motion device carrying a cursor control device to move according to a test path; the test path is a preset moving path of the motion device;
acquiring device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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 testing apparatus for a cursor control device, where the apparatus includes:
the control unit is used for controlling the motion device carrying the cursor control device to move according to the test path; the test path is a preset moving path of the motion device;
an acquisition unit configured to acquire device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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 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,
when executed by the one or more processors, cause the one or more processors to implement a method as in any one of the embodiments described above.
In a fourth aspect, the present application provides a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method according to any one of the above embodiments.
Therefore, 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 of a cursor control device. The moving device is used for carrying the cursor control device to move, so that the moving mode of the cursor control device is controlled accurately, and errors caused by manual moving tests 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. Acquiring device movement data according to the movement process of the cursor control device; and acquiring cursor movement data according to the movement process of the target cursor. The device movement data can 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 for controlling the target cursor can be obtained.
Drawings
Fig. 1 is a schematic diagram of a framework of an exemplary application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a testing method for a cursor control device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a testing apparatus of a cursor control device according to an embodiment of the present disclosure;
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 to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
In order to facilitate understanding of the technical solutions provided in the present application, the following description will be made on the background related to the present application.
After research on the conventional cursor control device, it is found that when a user uses the cursor control device, the cursor control device needs to accurately restore the user's operation in real time, so that the controlled cursor is matched with the user's operation. Therefore, the cursor control device needs to be tested, and the cursor control device needs to be adjusted according to the test result, so that the performance of the cursor control device meets the use requirement of a user. However, when testing the cursor control device, it is often relied on a person to move the cursor control device to observe whether the cursor on the controlled device moves in a matching manner. The adoption of the artificial experience mode can cause errors in the test result, so that the obtained test result is not accurate enough.
Based on this, embodiments of the present application provide a method, an apparatus, and a device for testing a cursor control device, where a motion device carries the cursor control device to move along a predetermined test path. The moving device is used for carrying the cursor control device to move, so that the moving mode of the cursor control device is controlled accurately, and errors caused by manual moving tests 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. Acquiring device movement data according to the movement process of the cursor control device; and acquiring cursor movement data according to the movement process of the target cursor. The device movement data can 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 for controlling the target cursor can be obtained.
In order to facilitate understanding of the testing method of the cursor control device provided in the embodiment of the present application, the following description is made with reference to a scenario example shown in fig. 1. Referring to fig. 1, the figure is a schematic diagram of a framework 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 camera device 103, respectively. The motion device 102 carries a cursor control device 104 thereon. The cursor control device 104 controls the movement of a target cursor on the controlled device 105. The computer 101 determines a test path and controls the motion device 102 to move along the test path with the cursor control device 104. The target cursor moves on the display interface of the controlled device 105 as the cursor control device 104 moves. The image pickup device 103 picks up the movement process of the motion device 102 and generates corresponding device movement data. The image pickup device 103 picks up the moving 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 104 according to the device movement data and the cursor movement data.
Those skilled in the art will appreciate that the block diagram shown in fig. 1 is only one example in which embodiments of the present application may be implemented. The scope of applicability of the embodiments of the present application is not limited in any way by this framework.
Based on the above description, the following describes in detail a testing method of the cursor control device provided in the present application with reference to the drawings.
It should be noted that the test method for the cursor control device provided in the embodiments of the present application may be applied to a terminal with a test function, such as a computer, a test 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:
s201: controlling a motion device carrying a cursor control device to move according to a test path; the test path is a preset moving path of the motion 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 smartphone, or the like.
The controlled device may be a device having a cursor on the display interface. Such as computers, televisions, etc. The cursor refers to an identifier indicating a position on a display interface of the controlled apparatus where the user is operating. For example, when the controlled device is a computer, the cursor may be a mouse pointer on a display interface of the computer. For another example, when the controlled device is a television, the cursor may be a selection box on the display interface of the television.
The cursor control device can perform information interaction with the controlled device in a wireless mode and control the cursor on the display interface of the controlled device. For example, the air mouse may be bluetooth-matched with a computer as a controlled device, so that the air mouse is connected with the computer, and then the air mouse is used to control a cursor on a display interface of the computer.
A motion device is a device that enables movement. The motion device may be, for example, a robot arm, a motor slider, or the like that moves within a certain range. The mechanical arm can simulate the action of a human arm and a wrist. The process that the user uses the cursor control device can be simulated by utilizing the mechanical arm, and a test result which is more in line 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, and imitates the process of using a cursor control device by a user, so that the test result is more comprehensive.
The test path is a predetermined movement path for testing the cursor control device. The test path may be set according to the need for testing the cursor 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 horizontal line, a vertical line, a diagonal line, a right angle, a circle, a wavy line, and the like. The test path may also include information on the movement pattern, such as the movement speed and the number of executions.
In a possible implementation manner, 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 path to be selected in a database, and selecting the test path corresponding to the function to be tested when testing.
And after the test path is determined, controlling the motion device to carry the cursor control device to move according to the test path.
In a possible implementation manner, the method for testing a cursor control device provided in the embodiment of the present application may be applied to a computer, and the computer may establish a connection with a motion device, and send a control instruction to the motion device to implement movement control of the motion device.
The embodiment of the application does not limit the way of carrying the cursor control device by the motion device. In one possible implementation, the cursor control device may be fixed to the motion device in advance, so that the motion device moves with the cursor control device when moving. In another possible implementation manner, for a part of the motion device with a grabbing function, such as a mechanical arm, the motion device can be controlled to grab the cursor control device, so that the motion device moves together with the cursor control device.
S202: acquiring device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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 to move by the cursor control device on an interface of a controlled device.
When the control motion 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 moving 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 the moving process by the camera device. It should be noted that, the motion device moves together with the cursor control device, and the moving tracks of the motion device and the cursor control device may be considered to be consistent or have a small difference. When the image pickup device takes an image, the motion device may be used as the target device, the cursor control device may be used as the target device, or both the motion device and the cursor control device may be used as the target device. Among them, the device movement data obtained by using the cursor control device as the target device is more accurate.
The image pickup device is a device capable of photographing a moving process of a target device. For example, the imaging device may be a video camera, a high-speed camera, or the like. By utilizing the camera device, the moving process of the target device can be recorded, and the obtained device moving data and cursor moving data can be conveniently used for testing and analyzing. The obtained device movement data may specifically be video data or image data. For video data, the position of the target device in the video can be analyzed frame by frame to determine the actual moving path and moving speed of the target device. The image data can specify the actual movement path and movement speed of the target device by the position of the target device in a plurality of images obtained by continuous shooting.
When the cursor control device moves, a target cursor controlled by the cursor control device on a display interface of the controlled device correspondingly moves along with the movement of the cursor control device. Correspondingly, the moving process of the target cursor is recorded, and cursor moving data is obtained. The cursor movement data is used to represent the course of movement of the target cursor on the controlled device.
In a possible implementation manner, the cursor movement data may be obtained by the camera device during the movement of the shooting target device, and simultaneously the shooting target cursor during the movement of the display interface of the controlled device. In the shooting process, one camera device can be adopted to shoot the target device and the target cursor at the same time. It is also possible to use a plurality of image pickup devices, for example, two image pickup devices, for shooting. Wherein, some shooting devices shoot the target device, and the other shooting devices shoot the target cursor. The cursor movement data generated based on the camera may be video data or image data.
In another possible implementation manner, the cursor movement data may also be generated by drawing a movement track of the target cursor on the controlled device by a 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 cursor moving data is obtained. The cursor movement data generated by the drawing device can be position data of the target cursor on the display interface of the controlled device at different moments.
S203: and 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 may be obtained.
The embodiment of the present application provides two specific implementation manners for obtaining a 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 relevant contents of S201 to S203, it can be known that the motion device carrying the cursor control device moves, 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, by using the device movement data generated by the camera device and the cursor movement data, the difference between the movement of the cursor control device and the movement of the target cursor can be obtained accurately, and the first test result of the cursor control device can be obtained accurately.
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 movement of the target cursor can be obtained.
In a possible implementation manner, an embodiment of the present application provides a specific implementation manner for obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data, and the specific implementation manner includes the following three steps:
a1: determining, from the device movement data, a first time at which the target device performed a first action.
The device movement data is processed to obtain the time when the target device executes each action. A first time instant 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 during movement along the test path. The first operation may be, for example, an operation such as a start operation, a turning operation and a stop operation in the test route, or a moving operation during the movement. The first time is a time at which the target device performs the first action. Specifically, for example, the time may be a time when the first action starts to be executed. Or may be the time when the execution of the first action is finished. The first time may be a time measured from a time at which the test of the target device is started, or may be a time measured by another time measurement method.
For example, the first action is an action to initiate a movement. A first time, such as the 1 st second, at which the target device performs the first action may be determined from the device movement data.
A2: determining, from the cursor movement data, a second time at which the target cursor performed the first action in response to the cursor control device performing the first action.
The cursor movement data is processed to obtain the time when the cursor performs each action in response to the execution of the action by the cursor control device. And determining a second moment when the target cursor executes the first action in the cursor movement data.
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: and calculating the time interval between the first moment and the second moment 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 cursor control device control target cursor executing corresponding actions, thereby reflecting the response speed of the cursor control device control target cursor.
Taking the first time as the 1 st second and the second time as the 2 nd second as examples, the time interval between the first time and the second time is calculated to obtain the response delay of 1 second, that is, the response test result of the cursor control device.
In a possible implementation manner, if the device movement data and the cursor movement data are both video data obtained by shooting by the same camera device, the video can be analyzed frame by frame, the first time and the second time are determined, and a response test result of the cursor control device is obtained.
If the timing systems of the first time and the second time are consistent, the time interval between the first time and the second time can be directly calculated, and a response test result is obtained. If the timing systems of the first time and the second time are not consistent, the timing systems of the first time and the second time need to be converted first, so that the timing systems of the first time and the second time are consistent. And calculating the time interval between the first moment and the second moment to obtain a response test result.
In the embodiment of the application, by determining the time corresponding to the target device and the target cursor executing the first action and calculating the time interval, the response delay of the target cursor controlled by the cursor control device can be counted to obtain the response test result of the cursor control device.
In another possible implementation manner, the cursor control device may cause a situation of unsmooth movement of the control target cursor. For example, the cursor control device moves at a constant speed, but the moving speed of the target cursor changes greatly, which causes the target cursor to be stuck in the moving process.
The movement test result for representing the fluency of the cursor control device for controlling the cursor can be obtained according to the device movement data and the cursor movement data. The embodiment of the present application provides a specific implementation manner for obtaining a first test result of a cursor control device according to the device movement data and the cursor movement data, which includes the following three steps:
b1: and obtaining a first movement distance of the target device for executing a second action in a target time period according to the device movement data.
Analysis of the device movement data may determine the time at which the target device performs each action and the distance traveled. A first movement distance is determined for the target device to perform the second action within the target time period based on the device movement data.
B2: and according to the cursor movement data, obtaining a second movement distance within the target time period when the target cursor executes the second action in response to the cursor control device executing the second action.
Analyzing the cursor movement data, the time and distance the target cursor performs each action in response to the cursor control device performing the action may be determined. And determining a second movement distance of the target cursor in the target time period in the process of executing the second action according to the cursor movement data.
It should be noted that the target time period for determining the second moving distance may be different from the start time of the target time period for determining the first moving distance. In one possible implementation, the timing of the target time period may be started upon detection of the same second action performed by the cursor control device in the cursor movement data, taking into account the effect of the response delay. For example, the start time of the second action by the target device is 4 th second, and the moving distance of the target device within 2 seconds is calculated as the first moving distance from the 4 th second. Correspondingly, the starting time of the target cursor executing the second action is determined to be the 5 th second by using the cursor movement data, and the movement distance of the target cursor within 2 seconds is calculated from the 5 th second as the second movement distance.
B3: and 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, over the 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 in the target time are consistent or not can be determined, and therefore whether the cursor control device is stuck or not in the process of controlling the target cursor or not can be determined.
Specifically, a certain proportional relationship may exist between the first movement distance of the target device and the second movement distance of the target cursor, and before comparing the first movement distance and the second movement distance, the first movement distance or the second movement distance may be converted according to the proportional relationship. And comparing the first moving distance and the second moving distance obtained after conversion to obtain a moving test result.
In a possible implementation manner, if the device movement data and the cursor movement data are both video data obtained by shooting by the same camera device, the video may be analyzed frame by frame 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 obtaining the first moving distance and the second moving distance, so that the fluency test of the cursor control device for controlling the movement of the target cursor is realized.
In a possible implementation manner, the moving tracks of the cursor control device and the target cursor can be compared, and the restoration degree of the cursor control device to the test path is determined.
The embodiment of the application also provides a test method of the cursor control device, and in addition to the steps, the method further comprises the following three steps:
c1: and 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 movement of the target cursor can be obtained.
For example, when the cursor movement data is video data or image data generated by capturing an image by an image capturing device, the video data or the image data may be recognized for the target cursor, a change in the position of the target cursor may be specified, 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 trajectory may be directly obtained from the movement trajectory of the target cursor drawn by the drawing device.
C2: and generating a device moving track according to the device moving data.
The device movement data is movement data generated based on a movement process of the target device. The device movement trajectory along which the target device moves can be obtained from the device movement data.
In one possible implementation, the device movement data may be identified for the target device, a change in the position of the target device may be determined, and a device movement trajectory may be generated.
C3: 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.
And obtaining a second test result of the cursor movement of the cursor device control target based on the first cursor movement track and the device movement track.
The second test result is a test result for the movement locus of the cursor control device control target cursor. Specifically, the test can be performed from two aspects of the reduction degree and the coincidence degree of the movement tracks. The embodiment of the present application provides two specific implementation manners for 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, please refer to the following description.
In one possible implementation, the degree of reduction of the movement trajectory of the target cursor may be tested. Specifically, the obtaining of the second test result of the target cursor controlled by the cursor control device according to the first cursor movement track and the device movement track includes 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 moving track with the device moving track to obtain the similarity of the first cursor moving track and the device moving track. The similarity measures how similar the first cursor movement trajectory and the device movement trajectory are in graphical terms. For example, when the device movement trajectory is a triangle and the first cursor movement trajectory is a broken line, the similarity between the device movement trajectory and the first cursor movement trajectory is low. If the device moving track is an equilateral triangle and the first cursor moving track is a triangle, the similarity between the device moving track and the first cursor moving track is higher.
And determining a first control test result of the cursor control device according to the similarity between the obtained first cursor moving track and the device moving track. In one possible implementation, a threshold value of the similarity between the first cursor movement trajectory and the device movement trajectory may be set in advance. 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 device movement track, the control effect of the cursor control device on the target cursor can be determined, and the cursor control device can be tested comprehensively and accurately.
In another possible implementation manner, the degree of coincidence between the movement track of the target cursor and the movement track of the device can be tested. Specifically, the obtaining of the second test result of the target cursor controlled by the cursor control device according to the first cursor movement track and the device movement track includes the following two steps:
calculating the coincidence degree 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 degree of the first cursor movement track and the device movement track. The degree of coincidence is to balance the first cursor movement trajectory to the same extent as the device movement trajectory. In a possible implementation manner, the starting points of the first cursor movement track and the device movement track may be coincided, and then the coincidence degree of the first cursor movement track and the device movement track is calculated. By calculating the contact ratio, whether the cursor control device controls the target cursor to move or not can be determined, and the accuracy of the cursor control device in controlling the target cursor is tested.
In some cases, the degree of displacement of the target cursor is greater as the time for which the cursor control device controls the target cursor increases. It may be arranged to perform the same test path multiple times. After the motion device repeatedly executes the test path, the contact ratio is calculated based on the obtained first cursor movement track and the device movement track, and the obtained movement test result is more accurate.
Based on the above, by determining the coincidence degree of the first cursor movement track and the device movement track, the control effect of the cursor control device on the target cursor can be determined, and the cursor control device can be comprehensively and accurately tested.
In a possible implementation manner, an embodiment of the present 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 is not described herein again.
And comparing the second cursor moving 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 of the cursor control device and the second cursor movement track obtained by the actual control 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 the cursor control device can be tested more accurately.
When the cursor control device controls the target cursor, it needs to occupy the system resource of the controlled device. When the system resources occupying the controlled device occupy more than the system resources of the controlled device, the operation of the controlled device is affected.
Based on this, an embodiment of the present application further provides a method for testing a cursor control device, where in addition to the above steps, the method further includes the following 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.
And when the cursor control device controls the target cursor on the 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, and the resource occupation condition of the cursor control device can be counted.
And obtaining a resource occupation test result of the cursor control device based on the obtained occupied resources. The resource occupation test result is used for measuring the performance of the cursor control device in the aspect of resource occupation.
Based on the above, the performance of the cursor control device can be measured through the resource occupation test result, and the relatively comprehensive test of the cursor control device is realized.
Based on the test method of the cursor control device provided by the above method embodiment, the embodiment of the present application also provides a test device of the cursor control device, and the test device of the cursor control device will be described with reference to the accompanying drawings.
Referring to fig. 3, the figure is a schematic structural diagram of a testing apparatus of a cursor control device according to an embodiment of the present application. As shown in fig. 3, the testing apparatus 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; the test path is a preset moving path of the motion device;
an acquisition unit 302 for acquiring device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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;
a first generating unit 303, 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 moment and the second moment to obtain a response test result of the cursor control device.
In one possible implementation manner, the first generating unit includes:
the first obtaining subunit is configured to obtain, according to the device movement data, a first movement distance at which the target device executes a second action within a target time period;
the second acquiring subunit is configured to acquire, according to the cursor movement data, a second movement distance within the target time period when the target cursor executes the second action in response to the cursor control device executing the second action;
and the first comparison subunit is used for comparing the first movement distance with the second movement distance to obtain a movement 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 generating unit, configured to generate a device movement trajectory 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 a possible implementation manner, the fourth generating unit includes:
the second comparison subunit is configured to compare the first cursor movement track with the device movement track to obtain a similarity between the first cursor movement track and the device movement track;
and the generating subunit is used for obtaining a first control test result of the cursor control device according to the similarity.
In a possible implementation manner, the fourth generating unit is specifically configured to calculate a coincidence degree of the first cursor movement trajectory and the device movement trajectory; and obtaining a second control test result of the cursor control device according to the contact ratio.
In one possible implementation, the apparatus further includes:
a fifth generating unit, configured to generate a second cursor movement trajectory 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 a possible implementation manner, the cursor movement data is generated by the camera shooting device shooting the movement process of the target cursor while shooting the movement of the cursor control device and/or the motion device;
alternatively, the first and second electrodes may be,
drawing the 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 the sixth generating unit is used for obtaining a resource occupation test result of the cursor control device according to the occupied resource.
Based on the testing method for the cursor control device provided by the above method embodiment, the present application further provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement a method of testing a cursor control device as described in any of the embodiments above.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present application. 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 PMP (Portable multimedia Player), a car terminal (e.g., 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 bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 408 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing device 401, performs the above-described functions defined in the methods of the embodiments of the present application.
The electronic device provided by the embodiment of the present application and the method for testing a cursor control device provided by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.
Based on the method for testing a cursor control device provided in the foregoing method embodiments, an embodiment of the present application provides a computer storage medium, on which a computer program is stored, where the program is executed by a processor to implement the method for testing a cursor control device according to any one of the foregoing embodiments.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the 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 present application, 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 this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 wires, optical cables, RF (radio frequency), etc., 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 interconnect with any form or medium of digital data communication (e.g., a communications 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 network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled 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 for testing the cursor control device.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 described in the embodiments of the present application may be implemented by software or hardware. Where the name of a unit/module does not in some cases constitute a limitation on the unit itself, for example, a voice data collection module may also be described as a "data collection module".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components 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 this 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. A 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, [ example one ] there is provided a method of testing a cursor control device, the method comprising:
controlling a motion device carrying a cursor control device to move according to a test path; the test path is a preset moving path of the motion device;
acquiring device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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, an example two method for testing a cursor control device, where obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data includes:
determining, from the device movement data, a first time at which the target device performed a first action;
determining, from the cursor movement data, a second time at which the target cursor performed the first action in response to the cursor control device performing the first action;
and calculating the time interval between the first moment and the second moment to obtain a response test result of the cursor control device.
According to one or more embodiments of the present application, in an example iii, there is provided a method for testing a cursor control device, where obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data includes:
obtaining a first movement distance of the target device for executing a second action in a target time period according to the device movement data;
obtaining a second movement distance within the target time period when the target cursor executes the second action in response to the cursor control device executing the second action 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, [ example four ] there is provided a method of 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, in an example five, there is provided a method for testing a cursor control device, where 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 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, an example six provides a method for testing a cursor control device, where obtaining a second test result of the target cursor control device controlling the cursor according to the first cursor movement track and the device movement track includes:
calculating the coincidence degree 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, [ example seven ] 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, an [ example eight ] provides a test method of a cursor control device, wherein the cursor movement data is generated by the image pickup device capturing a movement process of the target cursor while capturing a movement of the cursor control device and/or the motion device;
alternatively, the first and second electrodes may be,
drawing the moving track of the target cursor on the controlled device by a drawing device.
According to one or more embodiments of the present application, [ example nine ] 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, [ example ten ] there is provided a testing apparatus of a cursor control apparatus, the apparatus including:
the control unit is used for controlling the motion device carrying the cursor control device to move according to the test path; the test path is a preset moving path of the motion device;
an acquisition unit configured to acquire device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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 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, [ example eleven ] there is provided a test apparatus of a cursor control apparatus, the first generation 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 moment and the second moment to obtain a response test result of the cursor control device.
According to one or more embodiments of the present application, [ example twelve ] there is provided a testing apparatus of a cursor control apparatus, the first generation unit including:
the first obtaining subunit is configured to obtain, according to the device movement data, a first movement distance at which the target device executes a second action within a target time period;
the second acquiring subunit is configured to acquire, according to the cursor movement data, a second movement distance within the target time period when the target cursor executes the second action in response to the cursor control device executing the second action;
and the first comparison subunit is used for comparing the first movement distance with the second movement distance to obtain a movement test result of the cursor control device.
According to one or more embodiments of the present application, [ example thirteen ] there is provided a testing apparatus of a cursor control apparatus, the apparatus further including:
the second generation unit is used for generating a first cursor movement track according to the cursor movement data;
a third generating unit, configured to generate a device movement trajectory 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 [ example fourteen ] a test apparatus of a cursor control apparatus, the fourth generation unit including:
the second comparison subunit is configured to compare the first cursor movement track with the device movement track to obtain a similarity between the first cursor movement track and the device movement track;
and the generating 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, in [ example fifteen ], there is provided a testing apparatus for a cursor control apparatus, where the fourth generating unit is specifically configured to calculate a coincidence ratio of the first cursor movement trajectory and the apparatus movement trajectory; 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, [ example sixteen ] there is provided a testing apparatus of a cursor control apparatus, the apparatus further comprising:
a fifth generating unit, configured to generate a second cursor movement trajectory 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, an example seventeenth provides a testing apparatus of a cursor control apparatus, the cursor movement data being generated by a movement process of the image pickup apparatus photographing the movement of the cursor control apparatus and/or the motion apparatus while photographing the movement of the target cursor;
alternatively, the first and second electrodes may be,
drawing the moving track of the target cursor on the controlled device by a drawing device.
According to one or more embodiments of the present application, [ example eighteen ] there is provided a testing apparatus of a cursor control apparatus, the apparatus further including:
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 the sixth generating unit is used for 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 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, cause the one or more processors to implement a method as in any one of the embodiments described above.
According to one or more embodiments of the present application [ example twenty ] there is provided a computer readable medium having a computer program stored thereon, wherein said program, when executed by a processor, implements the method as described in any of the above embodiments.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (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, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the 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. A software module may reside 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 (12)

1. A method for testing a cursor control device, the method comprising:
controlling a motion device carrying a cursor control device to move according to a test path; the test path is a preset moving path of the motion device;
acquiring device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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.
2. The method of claim 1, wherein obtaining a first test result for the cursor control device based on the device movement data and the cursor movement data comprises:
determining, from the device movement data, a first time at which the target device performed a first action;
determining, from the cursor movement data, a second time at which the target cursor performed the first action in response to the cursor control device performing the first action;
and calculating the time interval between the first moment and the second moment to obtain a response test result of the cursor control device.
3. The method of claim 1, wherein obtaining a first test result for the cursor control device based on the device movement data and the cursor movement data comprises:
obtaining a first movement distance of the target device for executing a second action in a target time period according to the device movement data;
obtaining a second movement distance within the target time period when the target cursor executes the second action in response to the cursor control device executing the second action 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 of claim 1, 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.
5. The method according to claim 4, wherein 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 obtaining a second test result of the target cursor control device controlling the cursor according to the first cursor movement trajectory and the device movement trajectory comprises:
calculating the coincidence degree 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 of claim 1, 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.
8. The method according to any one of claims 1 to 7, wherein the cursor movement data is generated by the camera device capturing the movement of the cursor control device and/or the motion device while capturing the movement of the target cursor;
alternatively, the first and second electrodes may be,
drawing the moving track of the target cursor on the controlled device by a drawing device.
9. 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.
10. A testing apparatus for a cursor control device, the apparatus comprising:
the control unit is used for controlling the motion device carrying the cursor control device to move according to the test path; the test path is a preset moving path of the motion device;
an acquisition unit configured to acquire device movement data and cursor movement data; the device movement data is generated by shooting a movement process of a target device moving 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 a movement 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 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.
11. 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, cause the one or more processors to implement the method of any one of claims 1-9.
12. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-9.
CN202110955022.3A 2021-08-19 2021-08-19 Testing method, device and equipment of cursor control device Pending CN113610897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110955022.3A CN113610897A (en) 2021-08-19 2021-08-19 Testing method, device and equipment of cursor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110955022.3A CN113610897A (en) 2021-08-19 2021-08-19 Testing method, device and equipment of cursor control device

Publications (1)

Publication Number Publication Date
CN113610897A true CN113610897A (en) 2021-11-05

Family

ID=78341305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110955022.3A Pending CN113610897A (en) 2021-08-19 2021-08-19 Testing method, device and equipment of cursor control device

Country Status (1)

Country Link
CN (1) CN113610897A (en)

Citations (7)

* 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 platform
CN105339866A (en) * 2013-03-01 2016-02-17 托比股份公司 Delay warp gaze interaction
CN105487689A (en) * 2015-12-22 2016-04-13 广东欧珀移动通信有限公司 Ring mouse and method for operating mobile terminal through same
CN110248245A (en) * 2019-06-21 2019-09-17 维沃移动通信有限公司 A kind of video locating method, device, mobile terminal and storage medium
CN210155652U (en) * 2019-12-16 2020-03-17 上海云丁微电子有限公司 Mouse test system
CN111880422A (en) * 2020-07-20 2020-11-03 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 (7)

* 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 platform
CN105339866A (en) * 2013-03-01 2016-02-17 托比股份公司 Delay warp gaze interaction
CN105487689A (en) * 2015-12-22 2016-04-13 广东欧珀移动通信有限公司 Ring mouse and method for operating mobile terminal through same
CN110248245A (en) * 2019-06-21 2019-09-17 维沃移动通信有限公司 A kind of video locating method, device, mobile terminal and storage medium
CN210155652U (en) * 2019-12-16 2020-03-17 上海云丁微电子有限公司 Mouse test system
CN111880422A (en) * 2020-07-20 2020-11-03 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

Similar Documents

Publication Publication Date Title
CN108877770B (en) Method, device and system for testing intelligent voice equipment
CN112488783B (en) Image acquisition method and device and electronic equipment
CN115616937B (en) Automatic driving simulation test method, device, equipment and computer readable medium
WO2020253716A1 (en) Image generation method and device
CN112907652B (en) Camera pose acquisition method, video processing method, display device, and storage medium
CN108387757B (en) Method and apparatus for detecting moving state of movable device
CN112818898B (en) Model training method and device and electronic equipment
CN111586295B (en) Image generation method and device and electronic equipment
WO2023151558A1 (en) Method and apparatus for displaying images, and electronic device
CN111382701B (en) Motion capture method, motion capture device, electronic equipment and computer readable storage medium
CN111857482B (en) Interaction method, device, equipment and readable medium
CN111710046A (en) Interaction method and device and electronic equipment
CN113610897A (en) Testing method, device and equipment of cursor control device
CN114584709B (en) Method, device, equipment and storage medium for generating zooming special effects
CN110348374B (en) Vehicle detection method and device, electronic equipment and storage medium
CN111949860B (en) Method and apparatus for generating a relevance determination model
CN111540009A (en) Method, apparatus, electronic device, and medium for generating detection information
CN111912528A (en) Body temperature measuring system, method, device and equipment storage medium
CN112416146A (en) Method, device, terminal and storage medium for processing information
CN110991312A (en) Method, apparatus, electronic device, and medium for generating detection information
CN109842738A (en) Method and apparatus for shooting image
CN113032282B (en) Method, device and equipment for testing gesture recognition device
CN112418233B (en) Image processing method and device, readable medium and electronic equipment
CN114630081B (en) Video playing sequence determining method, device, equipment and medium
WO2023005725A1 (en) Pose estimation method and apparatus, and device and medium

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