A method, device and apparatus for testing a cursor control device
By using a motion device to move according to a preset path in the test method of the cursor control device and obtaining movement data of the device and the cursor, the problem of inaccurate test results of the cursor control device in the prior art is solved and more accurate test results are achieved. .
Patent Information
- Application Number
- CN202110955022.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-08-19
AI Technical Summary
When testing the cursor control device in the prior art, the test results obtained are not accurate enough and it is difficult to reflect the performance of the cursor control device.
A method for testing a cursor control device is provided. By controlling a moving device carrying a cursor control device to move according to a preset test path, device movement data and cursor movement data are obtained, and test results of the cursor control device are obtained based on these data.
The movement of the cursor control device through the motion device can control the movement method of the cursor control device more accurately, avoid errors caused by the people for mobile testing, and obtain the test results of the more accurate cursor control device.
Smart Images

Figure CN113610897B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a testing method, device and equipment for a cursor control device. Background Art
[0002] The cursor control device is a device used to control the cursor on the controlled device. The cursor control device uses inertial sensors such as accelerometers, gyroscopes or magnetometers set in the hardware to sense the posture changes of the hardware in space and control the movement of the cursor on the controlled device accordingly.
[0003] At present, when the cursor control device is tested, the test results obtained are not accurate enough and it is difficult to reflect the performance of the cursor control device. How to test the cursor control device and obtain more accurate test results is a technical problem that needs to be solved. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a method, device and apparatus for testing a cursor control device, which can obtain relatively accurate test results for the cursor control device.
[0005] Based on this, the technical solutions provided by the embodiments of the present application are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for testing a cursor control device, the method comprising:
[0007] Controlling a motion device carrying a cursor control device to move along a test path; the test path is a pre-set movement path of the motion device;
[0008] Acquire device movement data and cursor movement data; the device movement data is generated by a camera capturing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of the controlled device;
[0009] A first test result of the cursor control device is obtained according to the device movement data and the cursor movement data.
[0010] In a second aspect, an embodiment of the present application provides a test device for a cursor control device, the device comprising:
[0011] A control unit, used to control the motion device carrying the cursor control device to move along a test path; the test path is a pre-set movement path of the motion device;
[0012] an acquisition unit, configured to acquire device movement data and cursor movement data; the device movement data is generated by a camera capturing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of a controlled device;
[0013] The first generating unit is used to obtain a first test result of the cursor control device according to the device movement data and the cursor movement data.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0015] one or more processors;
[0016] a storage device having one or more programs stored thereon,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0019] It can be seen that the embodiments of the present application have the following beneficial effects:
[0020] The embodiments of the present application provide 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. Based on 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a framework of an exemplary application scenario provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of a method for testing a cursor control device provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the structure of a test device for a cursor control device provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of the basic structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0026] To facilitate understanding of the technical solution provided by this application, the background technology involved in this application will be described below.
[0027] After studying traditional cursor control devices, it was found that when users use cursor control devices, they need the cursor control device to accurately restore the user's operation in real time so that the controlled cursor matches the user's operation. To this end, it is necessary to test the cursor control device and adjust the cursor control device according to the test results so that the performance of the cursor control device meets the needs of users. However, when testing the cursor control device, most of them rely on manually moving the cursor control device to observe whether the cursor on the controlled device matches the movement. The use of manual experience will lead to errors in the test results, making the obtained test results inaccurate.
[0028] Based on this, the embodiments of the present application provide a test method, device and equipment for a cursor control device, in which a motion device carries the cursor control device to move 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. Based on 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.
[0029] In order to facilitate understanding of the test method of the cursor control device provided in the embodiment of the present application, Figure 1 See the example scenario shown in the figure. Figure 1 , which is a framework diagram of an exemplary application scenario provided in an embodiment of the present application.
[0030] In practical applications, the computer 101 can be connected to the motion device 102 and the camera device 104 respectively. The motion device 102 carries a cursor control device 103. The cursor control device 103 controls the movement of the target cursor on the controlled device 105. The computer 101 determines a test path, and controls the motion device 102 to carry the cursor control device 103 to move along the test path. The target cursor moves on the display interface of the controlled device 105 as the cursor control device 103 moves. The camera device 104 captures the movement process of the motion device 102 and generates corresponding device movement data. The camera device 104 captures the movement process of the target cursor and generates corresponding cursor movement data. The computer 101 obtains the device movement data and the cursor movement data, and obtains the first test result of the cursor control device 103 according to the device movement data and the cursor movement data.
[0031] Those skilled in the art will understand that Figure 1 The framework diagram shown is only an example in which the embodiments of the present application can be implemented. The scope of application of the embodiments of the present application is not limited by any aspect of the framework.
[0032] Based on the above description, the testing method of the cursor control device provided by the present application will be described in detail below with reference to the accompanying drawings.
[0033] First of all, it should be noted that the test method of a cursor control device provided in the embodiment of the present application can be applied to a terminal with a test function, such as a computer, a test device and other equipment.
[0034] See also Figure 2 , which is a flow chart of a method for testing a cursor control device provided in an embodiment of the present application, such as Figure 2 As shown, the method may include S201-S203:
[0035] S201: Control a motion device carrying a cursor control device to move along a test path; the test path is a pre-set movement path of the motion device.
[0036] The cursor control device is a device used to control the cursor on the display interface of the controlled device. The cursor control device can be a device for controlling the cursor, such as an air mouse, a wireless remote control device, etc. The cursor control device can also be a device including software for implementing cursor control, such as a remote control including a cursor control program, a smart phone, etc.
[0037] The controlled device may be a device having a cursor on the display interface. For example, a computer, a television, and the like. The cursor refers to an identifier on the display interface of the controlled device that indicates the position where the user is operating. For example, when the controlled device is a computer, the cursor may be a mouse pointer on the 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.
[0038] The cursor control device can exchange information with the controlled device wirelessly to control the cursor on the display interface of the controlled device. For example, the air mouse can be paired with the computer as the controlled device through Bluetooth to connect the air mouse to the computer, and then the air mouse can be used to control the cursor on the display interface of the computer.
[0039] The motion device is a device that can achieve movement. For example, the motion device can be a device that moves within a certain range, such as a robotic arm or an electric slider. The robotic arm can simulate the movements of human arms and wrists. The robotic arm can be used to simulate the process of a user using a cursor control device, and obtain test results that are more in line with the application scenario of the cursor control device.
[0040] In a possible implementation, a 6-axis robotic arm can be used as a motion device. The 6-axis robotic arm has 6 degrees of freedom and can simulate movements such as rotation, lower arm movement, upper arm movement, wrist rotation, wrist swing, and wrist rotation, imitating the process of a user using a cursor control device, making the test results more comprehensive.
[0041] The test path is a predetermined movement path for testing the cursor control device. The test path can be set according to the needs of the cursor control device test and the function of the motion device. For example, for a robotic arm, the test path can be in the shape of a horizontal line, a vertical line, a diagonal line, a right angle, a circle, a wavy line, etc. In addition, the test path can also include information such as the movement speed, the number of executions, etc.
[0042] In a possible implementation, based on the test of different functions of the cursor control device, multiple test paths to be selected can be pre-set, the test paths to be selected are stored in a database, and when testing, the test path corresponding to the function to be tested is selected.
[0043] After the test path is determined, the motion device is controlled to carry the cursor control device to move along the test path.
[0044] In a possible implementation, the cursor control device testing method provided in the embodiment of the present application can be applied to a computer, and the computer can establish a connection with the motion device, and realize movement control of the motion device by sending control instructions to the motion device.
[0045] The embodiments of the present application do not limit the manner in which the motion device carries the cursor control device. In one possible implementation, the cursor control device may be pre-fixed on the motion device so that the motion device carries the cursor control device with it when it moves. In another possible implementation, for some motion devices with a grasping function, such as a robotic arm, the motion device may be controlled to grasp the cursor control device so that the motion device carries the cursor control device with it when it moves.
[0046] S202: Acquire device movement data and cursor movement data; the device movement data is generated by capturing a target device's movement process along the test path using a camera, the target device being one or more of the cursor control device and the motion device; the cursor movement data is generated based on a target cursor's movement process corresponding to the movement of the cursor control device along the test path, the target cursor being a cursor controlled to move by the cursor control device on an interface of a controlled device.
[0047] When the motion control device carries the cursor control device and moves along the test path, the camera device is used to record the movement process of the target device to obtain device movement data.
[0048] Among them, the target device is one or more of the motion device and the cursor control device. The target device is a device whose moving process is photographed by the camera device. It should be noted that the motion device moves with the cursor control device, and it can be considered that the movement trajectories of the motion device and the cursor control device are consistent, or the difference is small. When the camera device is shooting, the motion device can be used as the target device, the cursor control device can be used as the target device, or the motion device and the cursor control device can be used as the target device together. Among them, the device movement data obtained by taking the cursor control device as the target device is more accurate.
[0049] The camera device is a device that can capture the movement process of the target device. For example, the camera device can be a video camera, a high-speed camera, or other device. The camera device can be used to record the movement process of the target device, so that the obtained device movement data and cursor movement data can be used for subsequent testing and analysis. The obtained device movement data can 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 movement path and movement speed of the target device. For image data, the actual movement path and movement speed of the target device can be determined by analyzing the position of the target device in multiple images obtained by continuous shooting.
[0050] When the cursor control device moves, the target cursor controlled by the cursor control device on the display interface of the controlled device will move accordingly with the movement of the cursor control device. Correspondingly, the movement process of the target cursor is recorded to obtain cursor movement data. The cursor movement data is used to represent the movement process of the target cursor on the controlled device.
[0051] In a possible implementation, the cursor movement data may be obtained by a camera device capturing the movement of the target device while capturing the movement of the target cursor on the display interface of the controlled device. During the capturing process, one camera device may be used to capture the target device and the target cursor at the same time. Multiple cameras, such as two cameras, may also be used for capturing. Part of the cameras captures the target device, and another part of the cameras captures the target cursor. The cursor movement data generated by the camera device may be video data or image data.
[0052] In another possible implementation, the cursor movement data may also be generated by drawing a moving track of the target cursor on the controlled device by a drawing device on the controlled device. The drawing device 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 to obtain the cursor movement data. The cursor movement data generated by the drawing device may be position data of the target cursor on the display interface of the controlled device at different times.
[0053] S203: Obtain a first test result of the cursor control device according to the device movement data and the cursor movement data.
[0054] 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.
[0055] The embodiments of the present application provide two specific implementation methods 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.
[0056] Based on the above S201-S203, it can be known that by using the motion device to carry the cursor control device to move, the cursor control device can be more accurately controlled to move along the test path, avoiding the error caused by manually moving the cursor control device for testing. Then, by using the device movement data generated by the camera device and the cursor movement data, a more accurate difference between the movement of the cursor control device and the target cursor can be obtained, thereby obtaining a more accurate first test result of the cursor control device.
[0057] Based on the device movement data and the cursor movement data, test results of the response delay of the cursor control device in controlling the target cursor and the smoothness of the movement of the target cursor can be obtained.
[0058] In a possible implementation, the embodiment of the present application provides a specific implementation of obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data, comprising the following three steps:
[0059] A1: Determine, from the device movement data, a first time at which the target device performs a first action.
[0060] By processing the device movement data, the moment when the target device executes each action can be obtained. The first moment when the target device executes the first action is determined from the device movement data. The first action is the action that the target device needs to complete when moving along the test path. The first action, for example, can be a start action, a turning action in the test path, a stop action, or a moving action during the movement. The first moment is the moment when the target device executes the first action. For example, it can be the moment when the first action starts to be executed. It can also be the moment when the first action ends. The first moment can be a moment obtained by timing from the moment when the test of the target device starts, or it can be a moment obtained by timing by other timing methods.
[0061] For example, the first action is an action of starting movement. The first time when the target device performs the first action can be determined from the device movement data, such as the first second.
[0062] A2: 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.
[0063] The cursor movement data is processed to obtain the time when the cursor performs each action in response to the cursor control device performing the action. In the cursor movement data, the second time when the target cursor performs the first action is determined.
[0064] For example, the second time, such as the 2nd second, when the target cursor performs the first action in response to the cursor control device performing the first action can be determined from the cursor movement data.
[0065] A3: Calculate the time interval between the first moment and the second moment to obtain a response test result of the cursor control device.
[0066] The time interval between the first moment and the second moment can reflect the time difference of the cursor control device controlling the target cursor to perform the corresponding action, thereby reflecting the response speed of the cursor control device controlling the target cursor.
[0067] Taking the above-mentioned first moment as the 1st second and the second moment as the 2nd second as an example, the time interval between the first moment and the second moment is calculated to obtain a response delay of 1 second, that is, the response test result of the cursor control device.
[0068] In a possible implementation, if the device movement data and the cursor movement data are both video data captured by the same camera device, the video can be analyzed frame by frame to determine the first moment and the second moment to obtain a response test result of the cursor control device.
[0069] If the timing systems of the first moment and the second moment are consistent, the time interval between the first moment and the second moment can be directly calculated to obtain the response test result. If the timing systems of the first moment and the second moment are inconsistent, it is necessary to first convert the timing system of the first moment or the second moment so that the timing systems of the first moment and the second moment are consistent. Then calculate the time interval between the first moment and the second moment to obtain the response test result.
[0070] In the embodiment of the present application, by determining the time corresponding to the target device and the target cursor performing the first action and calculating the time interval, the response delay of the cursor control device controlling the target cursor can be counted to obtain the response test result of the cursor control device.
[0071] In another possible implementation, the cursor control device may not move smoothly when controlling the target cursor to move. For example, the cursor control device moves at a constant speed, but the moving speed of the target cursor varies greatly, resulting in a lag in the target cursor moving process.
[0072] A movement test result for characterizing the smoothness of the cursor control device controlling the cursor can be obtained based on the device movement data and the cursor movement data. The present application embodiment provides a specific implementation method for obtaining a first test result of the cursor control device based on the device movement data and the cursor movement data, including the following three steps:
[0073] B1: Obtaining, according to the device movement data, a first movement distance of the target device when performing a second action within a target time period.
[0074] By analyzing the device movement data, the time when the target device performs each action and the distance moved can be determined. According to the device movement data, the first movement distance of the target device performing the second action within the target time period is determined.
[0075] B2: obtaining, based on the cursor movement data, a second moving distance of the target cursor within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action.
[0076] The cursor movement data can be analyzed to determine the time and distance of movement of the target cursor in response to the cursor control device performing the action. According to the cursor movement data, the second movement distance of the target cursor in the target time period during the second action is determined.
[0077] 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, taking into account the impact of response delay, the timing of the target time period may be started when the second action that is the same as the cursor control device is detected in the cursor movement data. For example, the start time of the target device performing the second action is the 4th second, and starting from the 4th second, the moving distance of the target device within 2 seconds is calculated as the first moving distance. Correspondingly, the cursor movement data is first used to determine that the start time of the target cursor performing the second action is the 5th second, and starting from the 5th second, the moving distance of the target cursor within 2 seconds is calculated as the second moving distance.
[0078] B3: Compare the first moving distance and the second moving distance to obtain a movement test result of the cursor control device.
[0079] The first moving distance can represent the moving distance of the target device, that is, the cursor control device, within the target time period. The second moving distance can represent the moving distance of the target cursor within the target time period. By comparing the first moving distance and the second moving distance, it can be determined whether the moving distances of the cursor control device and the target cursor within the target time are consistent, thereby determining whether the cursor control device has a freeze in the process of controlling the target cursor.
[0080] Specifically, the first moving distance of the target device and the second moving distance of the target cursor may have a certain proportional relationship. Before comparing the first moving distance and the second moving distance, the first moving distance or the second moving distance may be converted according to the proportional relationship. The first moving distance and the second moving distance obtained after the conversion are then compared to obtain the movement test result.
[0081] 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 can 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.
[0082] In the embodiment of the present application, by acquiring the first moving distance and the second moving distance, it can be determined whether the target cursor moves synchronously with the cursor control device, thereby implementing a test on the smoothness of the cursor control device controlling the movement of the target cursor.
[0083] In a possible implementation, the movement tracks of the cursor control device and the target cursor may be compared to determine the degree of restoration of the test path by the cursor control device.
[0084] The embodiment of the present application also provides a method for testing a cursor control device. In addition to the above steps, the method further includes the following three steps:
[0085] C1: Generate a first cursor movement trajectory according to the cursor movement data.
[0086] The cursor movement data represents the movement data of the target cursor under the control of the cursor control device. According to the cursor movement data, a first cursor movement track of the target cursor can be obtained.
[0087] For example, when the cursor movement data is video data or image data generated by a camera, the target cursor can be identified in the video data or image data to determine the position change of the target cursor, and finally generate the first cursor movement trajectory. When the cursor movement data is data drawn by a drawing device, the first cursor movement trajectory can be directly obtained according to the movement trajectory of the target cursor drawn by the drawing device.
[0088] C2: Generate a device movement trajectory according to the device movement data.
[0089] The device movement data is movement data generated based on the movement process of the target device. According to the device movement data, the device movement trajectory of the target device can be obtained.
[0090] In a possible implementation, the device movement data may be used to identify the target device, determine the position change of the target device, and generate a device movement trajectory.
[0091] C3: Obtaining a second test result of the cursor control device controlling the target cursor according to the first cursor movement trajectory and the device movement trajectory.
[0092] Based on the first cursor movement trajectory and the device movement trajectory, a second test result of the cursor device controlling the movement of the target cursor can be obtained.
[0093] The second test result is a test result of the movement trajectory of the target cursor controlled by the cursor control device. Specifically, the test can be performed from two aspects: the degree of restoration and the degree of overlap of the movement trajectory. The embodiment of the present application provides two specific implementation methods for obtaining the second test result of the cursor control device controlling the target cursor based on the first cursor movement trajectory and the device movement trajectory, please refer to the following.
[0094] In a possible implementation, the degree of restoration of the target cursor's movement trajectory may be tested. Specifically, obtaining a second test result of the cursor control device controlling the target cursor based on the first cursor movement trajectory and the device movement trajectory includes the following two steps:
[0095] Comparing the first cursor movement trajectory with the device movement trajectory to obtain a similarity between the first cursor movement trajectory and the device movement trajectory;
[0096] A first control test result of the cursor control device is obtained according to the similarity.
[0097] The obtained first cursor movement trajectory and the device movement trajectory are compared to obtain the similarity between the first cursor movement trajectory and the device movement trajectory. The similarity is used to measure the similarity between the first cursor movement trajectory and the device movement trajectory in terms of graphics. 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 movement trajectory is an equilateral triangle and the first cursor movement trajectory is a triangle, the similarity between the device movement trajectory and the first cursor movement trajectory is high.
[0098] According to the obtained similarity between the first cursor movement trajectory and the device movement trajectory, the first control test result of the cursor control device is determined. In a possible implementation, a threshold value of the similarity between the first cursor movement trajectory and the device movement trajectory can be preset. When the similarity between the first cursor movement trajectory and the device movement trajectory is greater than the threshold value, it can be considered that the performance of the cursor control device is good and the test result is good.
[0099] Based on the above content, it can be known that by determining the similarity between the first cursor movement trajectory and the device movement trajectory, the control effect of the cursor control device on the target cursor can be determined, thereby achieving a more comprehensive and accurate test of the cursor control device.
[0100] In another possible implementation, the degree of overlap between the moving trajectory of the target cursor and the moving trajectory of the device may be tested. Specifically, obtaining a second test result of the cursor control device controlling the target cursor based on the first moving trajectory of the cursor and the moving trajectory of the device includes the following two steps:
[0101] Calculating the degree of overlap between the first cursor movement trajectory and the device movement trajectory;
[0102] A second control test result of the cursor control device is obtained according to the overlap degree.
[0103] Calculate the degree of overlap between the first cursor movement trajectory and the device movement trajectory. The degree of overlap is used to measure the degree of similarity between the first cursor movement trajectory and the device movement trajectory. In a possible implementation, the starting points of the first cursor movement trajectory and the device movement trajectory can be overlapped first, and then the degree of overlap between the first cursor movement trajectory and the device movement trajectory can be calculated. By calculating the degree of overlap, it can be determined whether the cursor control device controls the movement of the target cursor to deviate, and the accuracy of the cursor control device in controlling the target cursor can be tested.
[0104] In some cases, as the time the cursor control device controls the target cursor increases, the target cursor deflects more. The same test path can be set to be executed multiple times. After the motion device repeatedly executes the test path, the overlap is calculated based on the obtained first cursor movement trajectory and the device movement trajectory, and the obtained movement test result is more accurate.
[0105] Based on the above content, it can be known that by determining the overlap between the first cursor movement trajectory and the device movement trajectory, the control effect of the cursor control device on the target cursor can be determined, thereby achieving a more comprehensive and accurate test of the cursor control device.
[0106] In a possible implementation, an embodiment of the present application provides a method for testing a cursor control device, which, in addition to the above steps, further includes the following steps:
[0107] generating a second cursor movement trajectory according to the cursor movement data;
[0108] The second cursor movement trajectory is compared with the test path to obtain a third test result of the cursor control device.
[0109] According to the cursor movement data, a second cursor movement trajectory of the target cursor can be obtained. The method of generating the second cursor movement trajectory is similar to the method of generating the first cursor movement trajectory, which will not be described in detail here.
[0110] By comparing the second cursor movement trajectory with the test path, a third test result of the cursor control device can be obtained. The third test result is used to measure the difference between the test path run by the cursor control device and the second cursor movement trajectory obtained by actually controlling the target cursor to move.
[0111] In the embodiment of the present application, by comparing the second cursor movement trajectory and the test path, the degree of restoration of the cursor control device to the preset trajectory can be determined, thereby achieving a more accurate test of the cursor control device.
[0112] When the cursor control device controls the target cursor, it needs to occupy the system resources of the controlled device. When the system resources of the controlled device are occupied more, the operation of the controlled device will be affected.
[0113] Based on this, an embodiment of the present application further provides a method for testing a cursor control device. In addition to the above steps, the method further includes the following steps:
[0114] monitoring the system resources of the controlled device occupied by the cursor control device controlling the target cursor, and obtaining the occupied resources;
[0115] A resource occupation test result of the cursor control device is obtained according to the occupied resources.
[0116] When the cursor control device controls the target cursor on the display interface of the controlled device, the resources occupied by the cursor control device in the system resources of the controlled device are monitored to obtain the occupied resources. By monitoring the occupied resources, the resource occupation of the cursor control device can be counted.
[0117] Based on the obtained occupied resources, a resource occupation test result of the cursor control device is obtained. The resource occupation test result is used to measure the performance of the cursor control device in terms of resource occupation.
[0118] Based on the above content, it can be known that the performance of the cursor control device can be measured through the resource occupancy test result, thereby achieving a more comprehensive test of the cursor control device.
[0119] Based on the test method of a cursor control device provided by the above method embodiment, the embodiment of the present application further provides a test device for a cursor control device, and the test device for a cursor control device will be described below in conjunction with the accompanying drawings.
[0120] See also Figure 3 As shown in FIG. 1 , this figure is a schematic diagram of the structure of a test device for a cursor control device provided in an embodiment of the present application. Figure 3 As shown, the test device of the cursor control device includes:
[0121] A control unit 301 is used to control a motion device carrying a cursor control device to move along a test path; the test path is a pre-set movement path of the motion device;
[0122] The acquisition unit 302 is used to acquire device movement data and cursor movement data; the device movement data is generated by a camera capturing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of a controlled device;
[0123] 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.
[0124] In a possible implementation, the first generating unit includes:
[0125] A first determining subunit is used to determine a first time when the target device performs a first action from the device movement data;
[0126] 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;
[0127] The calculation subunit is used to calculate the time interval between the first moment and the second moment to obtain the response test result of the cursor control device.
[0128] In a possible implementation, the first generating unit includes:
[0129] A first acquisition subunit is used to obtain a first movement distance of the target device performing a second action within a target time period according to the device movement data;
[0130] A second acquisition subunit is used to obtain, according to the cursor movement data, a second movement distance of the target cursor within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action;
[0131] The first comparison subunit is used to compare the first moving distance and the second moving distance to obtain a movement test result of the cursor control device.
[0132] In a possible implementation manner, the device further includes:
[0133] A second generating unit, configured to generate a first cursor movement trajectory according to the cursor movement data;
[0134] a third generating unit, configured to generate a device movement trajectory according to the device movement data;
[0135] The fourth generating unit is used to obtain a second test result of the cursor control device controlling the target cursor according to the first cursor movement trajectory and the device movement trajectory.
[0136] In a possible implementation, the fourth generating unit includes:
[0137] A second comparison subunit, configured to compare the first cursor movement trajectory with the device movement trajectory to obtain a similarity between the first cursor movement trajectory and the device movement trajectory;
[0138] A generating subunit is used to obtain a first control test result of the cursor control device according to the similarity.
[0139] In a possible implementation, the fourth generating unit is specifically configured to calculate a degree of overlap between the first cursor movement trajectory and the device movement trajectory; and obtain a second control test result of the cursor control device according to the degree of overlap.
[0140] In a possible implementation manner, the device further includes:
[0141] a fifth generating unit, configured to generate a second cursor movement trajectory according to the cursor movement data;
[0142] A comparing unit is used to compare the second cursor movement track with the test path to obtain a third test result of the cursor control device.
[0143] In a possible implementation, the cursor movement data is generated by the camera device capturing the movement of the target cursor while capturing the movement of the cursor control device and / or the motion device;
[0144] or,
[0145] The moving track of the target cursor on the controlled device is generated by drawing by a drawing device.
[0146] In a possible implementation manner, the device further includes:
[0147] A monitoring unit, used for monitoring the system resources of the controlled device occupied by the cursor control device controlling the target cursor, and obtaining the occupied resources;
[0148] The sixth generating unit is used to obtain a resource occupation test result of the cursor control device according to the occupied resources.
[0149] Based on the testing method of a cursor control device provided in the above method embodiment, the present application also provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are executed by the one or more processors, the one or more processors implement the testing method of the cursor control device as described in any of the above embodiments.
[0150] Reference below Figure 4, which shows a schematic diagram of the structure of an electronic device 400 suitable for implementing the embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0151] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to 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 RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0152] Typically, the following devices may be connected to the I / O interface 405: input devices 408 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication devices 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0153] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0154] The electronic device provided in the embodiment of the present application and the test method of the cursor control device provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0155] Based on the testing method of a cursor control device provided in the above method embodiment, an embodiment of the present application provides a computer storage medium on which a computer program is stored, wherein when the program is executed by a processor, the testing method of the cursor control device as described in any of the above embodiments is implemented.
[0156] 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 above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0157] In some embodiments, the client and the server 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0158] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0159] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the test method of the cursor control device.
[0160] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0161] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0162] The units involved in the embodiments described in this application may be implemented by software or hardware. The name of a unit / module does not limit the unit itself in some cases. For example, a voice data acquisition module may also be described as a "data acquisition module".
[0163] 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 components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0164] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0165] According to one or more embodiments of the present application, [Example 1] provides a method for testing a cursor control device, the method comprising:
[0166] Controlling a motion device carrying a cursor control device to move along a test path; the test path is a pre-set movement path of the motion device;
[0167] Acquire device movement data and cursor movement data; the device movement data is generated by a camera capturing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of the controlled device;
[0168] A first test result of the cursor control device is obtained according to the device movement data and the cursor movement data.
[0169] According to one or more embodiments of the present application, [Example 2] provides a method for testing a cursor control device, wherein the method of obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data includes:
[0170] determining, from the device movement data, a first time at which the target device performs a first action;
[0171] 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;
[0172] The time interval between the first moment and the second moment is calculated to obtain a response test result of the cursor control device.
[0173] According to one or more embodiments of the present application, [Example 3] provides a method for testing a cursor control device, wherein obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data includes:
[0174] Obtaining, according to the device movement data, a first movement distance of the target device performing a second action within a target time period;
[0175] obtaining, according to the cursor movement data, a second moving distance of the target cursor within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action;
[0176] The first moving distance and the second moving distance are compared to obtain a moving test result of the cursor control device.
[0177] According to one or more embodiments of the present application, [Example 4] provides a method for testing a cursor control device, the method further comprising:
[0178] generating a first cursor movement trajectory according to the cursor movement data;
[0179] generating a device movement trajectory according to the device movement data;
[0180] A second test result of the cursor control device controlling the target cursor is obtained according to the first cursor movement trajectory and the device movement trajectory.
[0181] According to one or more embodiments of the present application, [Example 5] provides a method for testing a cursor control device, wherein obtaining a second test result of the cursor control device controlling the target cursor according to the first cursor movement trajectory and the device movement trajectory includes:
[0182] Comparing the first cursor movement trajectory with the device movement trajectory to obtain a similarity between the first cursor movement trajectory and the device movement trajectory;
[0183] A first control test result of the cursor control device is obtained according to the similarity.
[0184] According to one or more embodiments of the present application, [Example 6] provides a method for testing a cursor control device, wherein obtaining a second test result of the cursor control device controlling the cursor according to the first cursor movement trajectory and the device movement trajectory includes:
[0185] Calculating the degree of overlap between the first cursor movement trajectory and the device movement trajectory;
[0186] A second control test result of the cursor control device is obtained according to the overlap degree.
[0187] According to one or more embodiments of the present application, [Example 7] provides a method for testing a cursor control device, the method further comprising:
[0188] generating a second cursor movement trajectory according to the cursor movement data;
[0189] The second cursor movement trajectory is compared with the test path to obtain a third test result of the cursor control device.
[0190] According to one or more embodiments of the present application, [Example 8] provides a method for testing a cursor control device, wherein the cursor movement data is generated by the camera device capturing the movement of the target cursor while capturing the movement of the cursor control device and / or the motion device;
[0191] or,
[0192] The moving track of the target cursor on the controlled device is generated by drawing by a drawing device.
[0193] According to one or more embodiments of the present application, [Example 9] provides a method for testing a cursor control device, the method further comprising:
[0194] monitoring the system resources of the controlled device occupied by the cursor control device controlling the target cursor, and obtaining the occupied resources;
[0195] A resource occupation test result of the cursor control device is obtained according to the occupied resources.
[0196] According to one or more embodiments of the present application, [Example 10] provides a test device for a cursor control device, the device comprising:
[0197] A control unit, used to control the motion device carrying the cursor control device to move along a test path; the test path is a pre-set movement path of the motion device;
[0198] an acquisition unit, configured to acquire device movement data and cursor movement data; the device movement data is generated by a camera capturing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of a controlled device;
[0199] The first generating unit is used to obtain a first test result of the cursor control device according to the device movement data and the cursor movement data.
[0200] According to one or more embodiments of the present application, [Example 11] provides a test device for a cursor control device, wherein the first generating unit includes:
[0201] A first determining subunit is used to determine a first time when the target device performs a first action from the device movement data;
[0202] 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;
[0203] The calculation subunit is used to calculate the time interval between the first moment and the second moment to obtain the response test result of the cursor control device.
[0204] According to one or more embodiments of the present application, [Example 12] provides a test device for a cursor control device, wherein the first generating unit includes:
[0205] A first acquisition subunit is used to obtain a first movement distance of the target device performing a second action within a target time period according to the device movement data;
[0206] A second acquisition subunit is used to obtain, according to the cursor movement data, a second movement distance of the target cursor within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action;
[0207] The first comparison subunit is used to compare the first moving distance and the second moving distance to obtain a movement test result of the cursor control device.
[0208] According to one or more embodiments of the present application, [Example 13] provides a test device for a cursor control device, the device further comprising:
[0209] A second generating unit, configured to generate a first cursor movement trajectory according to the cursor movement data;
[0210] a third generating unit, configured to generate a device movement trajectory according to the device movement data;
[0211] The fourth generating unit is used to obtain a second test result of the cursor control device controlling the target cursor according to the first cursor movement trajectory and the device movement trajectory.
[0212] According to one or more embodiments of the present application, [Example 14] provides a test device for a cursor control device, wherein the fourth generating unit includes:
[0213] A second comparison subunit, configured to compare the first cursor movement trajectory with the device movement trajectory to obtain a similarity between the first cursor movement trajectory and the device movement trajectory;
[0214] A generating subunit is used to obtain a first control test result of the cursor control device according to the similarity.
[0215] According to one or more embodiments of the present application, [Example 15] provides a testing device for a cursor control device, wherein the fourth generating unit is specifically used to calculate the degree of overlap between the first cursor movement trajectory and the device movement trajectory; based on the degree of overlap, a second control test result of the cursor control device is obtained.
[0216] According to one or more embodiments of the present application, [Example 16] provides a test device for a cursor control device, the device further comprising:
[0217] a fifth generating unit, configured to generate a second cursor movement trajectory according to the cursor movement data;
[0218] A comparing unit is used to compare the second cursor movement track with the test path to obtain a third test result of the cursor control device.
[0219] According to one or more embodiments of the present application, [Example 17] provides a test device for a cursor control device, wherein the cursor movement data is generated by the camera device capturing the movement of the target cursor while capturing the movement of the cursor control device and / or the motion device;
[0220] or,
[0221] The moving track of the target cursor on the controlled device is generated by drawing by a drawing device.
[0222] According to one or more embodiments of the present application, [Example 18] provides a test device for a cursor control device, the device further comprising:
[0223] A monitoring unit, used for monitoring the system resources of the controlled device occupied by the cursor control device controlling the target cursor, and obtaining the occupied resources;
[0224] The sixth generating unit is used to obtain a resource occupation test result of the cursor control device according to the occupied resources.
[0225] According to one or more embodiments of the present application, [Example 19] provides an electronic device, including:
[0226] one or more processors;
[0227] a storage device having one or more programs stored thereon,
[0228] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.
[0229] According to one or more embodiments of the present application, [Example 20] provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any of the above embodiments is implemented.
[0230] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0231] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0232] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0233] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0234] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for testing a cursor control device, characterized in that: The method comprises: Controlling a motion device carrying a cursor control device to move along a test path; the test path is a pre-set movement path of the motion device; Acquire device movement data and cursor movement data; the device movement data is generated by a camera device photographing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of a controlled device; the cursor movement data is generated by the camera device photographing the movement process of the target cursor while photographing the movement of the cursor control device and / or the motion device; the cursor control device uses an inertial sensor provided in the hardware to sense a posture change of the cursor control device in space, and controls the movement of the target cursor accordingly; A first test result of the cursor control device is obtained according to the device movement data and the cursor movement data.
2. The method according to claim 1, characterized in that The step of obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data comprises: determining, from the device movement data, a first time at which the target device performs a first action; 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; The time interval between the first moment and the second moment is calculated to obtain a response test result of the cursor control device.
3. The method according to claim 1, characterized in that The step of obtaining a first test result of the cursor control device according to the device movement data and the cursor movement data comprises: Obtaining, according to the device movement data, a first movement distance of the target device performing a second action within a target time period; obtaining, according to the cursor movement data, a second moving distance of the target cursor within the target time period when the target cursor performs the second action in response to the cursor control device performing the second action; The first moving distance and the second moving distance are compared to obtain a moving test result of the cursor control device.
4. The method according to claim 1, characterized in that The method further comprises: generating a first cursor movement trajectory according to the cursor movement data; generating a device movement trajectory according to the device movement data; A second test result of the cursor control device controlling the target cursor is obtained according to the first cursor movement trajectory and the device movement trajectory.
5. The method according to claim 4, characterized in that The step of obtaining a second test result of the cursor control device controlling the target cursor according to the first cursor movement trajectory and the device movement trajectory includes: Comparing the first cursor movement trajectory with the device movement trajectory to obtain a similarity between the first cursor movement trajectory and the device movement trajectory; A first control test result of the cursor control device is obtained according to the similarity.
6. The method according to claim 4, characterized in that The step of obtaining a second test result of the cursor control device controlling the cursor according to the first cursor movement trajectory and the device movement trajectory includes: Calculating the degree of overlap between the first cursor movement trajectory and the device movement trajectory; A second control test result of the cursor control device is obtained according to the overlap degree.
7. The method according to claim 1, characterized in that The method further comprises: generating a second cursor movement trajectory according to the cursor movement data; The second cursor movement trajectory is compared 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, characterized in that: The method further comprises: monitoring the system resources of the controlled device occupied by the cursor control device controlling the target cursor, and obtaining the occupied resources; A resource occupation test result of the cursor control device is obtained according to the occupied resources.
9. A test device for a cursor control device, characterized in that: The device comprises: A control unit, used to control the motion device carrying the cursor control device to move along a test path; the test path is a pre-set movement path of the motion device; an acquisition unit, for acquiring device movement data and cursor movement data; the device movement data is generated by a camera device photographing a movement process of a target device moving along the test path, the target device being 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 along the test path, the target cursor being a cursor controlled by the cursor control device on a display interface of a controlled device; the cursor movement data is generated by the camera device photographing the movement process of the target cursor while photographing the movement of the cursor control device and / or the motion device; the cursor control device senses a posture change of the cursor control device in space using an inertial sensor provided in hardware, and controls the movement of the target cursor accordingly; The first generating unit is used to obtain a first test result of the cursor control device according to the device movement data and the cursor movement data.
10. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer readable medium, characterized in that A computer program is stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Mouse test platform
CN2854693Y