Disclosure of Invention
Based on the technical problems in the background art, the invention provides a method for detecting the sharpness perception capability of a cursor based on horizontal deviation;
the invention provides a method for detecting cursor sharpness perception capability based on horizontal deviation, which comprises the following steps:
s1, 2 rectangular light bars with the length of a and the width of b are constructed, the rectangular light bars are marked as a first light bar and a second light bar, and the four tops of the first light bar in a two-dimensional coordinate systemThe coordinates of the point A, B, C, D are (X)1,Y1)、(X1+b,Y1)、(X1,Y1+a)、(X1+b,Y1+ a), the second light strip four vertexes A1、B1、C1、D1Respectively is (X)11,Y11)、(X11+b,Y11)、(X11,Y11+a)、(X11+b,Y11+ a), and | X1-X11|>0,|Y11-Y1H is h, h is more than a, h is a preset height, and a is more than 1.5 b;
s2 at X1、Y1、Y11Taking a preset value, X11Taking a value X in the value range to obtain a target first light strip and a target second light strip;
s3, displaying the target first light bar and the target second light bar to the tester, and acquiring the X between the target first light bar and the target second light bar input by the tester1-X11Positive and negative prediction results of;
s4, when the positive/negative prediction result of the subject is correct and X > 0, executing step S2 with X ═ X-g or X ═ X-g, and executing step S6 until the positive/negative prediction result of the subject is incorrect; when the positive and negative prediction result of the tested person is correct and X is less than 0, step S2 is executed by making X ═ X + g or X ═ X + g until the positive and negative prediction result of the tested person is incorrect, step S6 is executed, wherein g is greater than 0;
s5, when the positive/negative prediction result of the subject is incorrect and X > 0, executing step S2 with X ═ X + g or X ═ X + g, and executing step S6 when the positive/negative prediction result of the subject is correct; when the positive and negative prediction result of the tested person is correct and X is less than 0, step S2 is executed by making X ═ X-g or X ═ X-g until the positive and negative prediction result of the tested person is correct, step S6 is executed, wherein g is greater than 0;
and S6, outputting a horizontal deviation L between the target first light bar and the target second light bar, wherein the horizontal deviation L is the cursor sharpness perception capability of the tested person, and L is | X1-X11|。
Preferably, in step S1, the first light bar and the second light bar are pure color light bars or textured light bars.
Preferably, before step S2, the method further includes: the brightness of the first light bar and the second light bar is preset.
In the invention, two rectangular light bars with preset positions are constructed, the long sides of the two rectangular light bars are vertical to a horizontal plane, one of the rectangular light bars is a fixed rectangular light bar, the other rectangular light bar is a non-fixed rectangular light bar and is positioned above the fixed rectangular light bar, the horizontal position between the non-fixed rectangular light bar and the fixed rectangular light bar is changed, the fixed rectangular light bar and the non-fixed rectangular light bar are displayed to a measured person, the measured person judges whether the non-fixed rectangular light bar is positioned on the left side (the preset vertex coordinate on the fixed rectangular light bar is larger than the corresponding vertex coordinate on the non-fixed rectangular light bar) or the right side (the preset vertex coordinate on the fixed rectangular light bar is smaller than the corresponding vertex coordinate on the non-fixed rectangular light bar) of the fixed rectangular light bar or not, the sharpness perception capability of the cursor of the measured person is tested according to the judgment result of the measured person, the method is simple and convenient, has high accuracy, can automatically adjust the position according to the perception capability of the measured person, has strong practicability, and saves manpower and material resources.
Detailed Description
Referring to fig. 1, the invention provides a method for detecting cursor sharpness perception capability based on horizontal deviation, which includes:
step S1, 2 rectangular light bars with length a and width b are constructed and recorded as the first light bar and the second light bar, and the coordinates of the four vertexes A, B, C, D of the first light bar in the two-dimensional coordinate system are (X) respectively1,Y1)、(X1+b,Y1)、(X1,Y1+a)、(X1+b,Y1+ a), the second light strip four vertexes A1、B1、C1、D1Respectively is (X)11,Y11)、(X11+b,Y11)、(X11,Y11+a)、(X11+b,Y11+ a), and | X1-X11|>0,|Y11-Y1H is greater than a, h is a preset height, and a is greater than 1.5b, wherein the first light strip and the second light strip are pure-color light strips or light strips with textures.
In a specific scheme, the relative positions of the two rectangular light bars are defined by a coordinate system, and the first light bar and the second light bar can be pure-color light bars or textured light bars.
Step S2, at X1、Y1、Y11Taking a preset value, taking the brightness of the first light strip and the second light strip as the preset value, X11And taking a value X in the value range to obtain a target first light strip and a target second light strip.
In a specific scheme, the brightness of the first light bar and the second light bar is the same, and the difference between the brightness of the first light bar and the second light bar and the background brightness used when the first light bar and the second light bar are shown is more than 50 lux.
Step S3, displaying the target first optical strip and the target second optical strip to the tester, and obtaining the X between the target first optical strip and the target second optical strip input by the tester1-X11Positive and negative prediction results of (1).
Step S4, when the positive/negative prediction result of the subject is correct and X > 0, executing step S2 with X ═ X-g or X ═ X-g until the positive/negative prediction result of the subject is incorrect, executing step S6; when the positive/negative prediction result of the subject is correct and X < 0, step S2 is executed with X ═ X + g or X ═ X + g until the positive/negative prediction result of the subject is incorrect, step S6 is executed, where g > 0.
Step S5, when the positive/negative prediction result of the subject is incorrect and X > 0, executing step S2 with X ═ X + g or X ═ X + g until the positive/negative prediction result of the subject is correct, executing step S6; when the positive/negative prediction result of the subject is correct and X < 0, step S2 is executed with X ═ X-g or X ═ X-g until the positive/negative prediction result of the subject is correct, step S6 is executed, where g > 0.
Step S6, outputting a horizontal deviation L between the target first light bar and the target second light bar, where L ═ X, where the horizontal deviation L is the cursor sharpness perception capability of the testee1-X11|。
In a particular embodiment, when X1-X11When the value is positive, the target first light bar is positioned at the right side of the target second light bar, and when the value is X1-X11And when the value is a negative value, the target first light bar is positioned on the left side of the target second light bar, g is a preset positive value, and the smaller g is, the higher the test precision is.
Displaying the target first optical strip and the target second optical strip to a tester, and acquiring an X between the target first optical strip and the target second optical strip input by the tester1-X11Positive and negative prediction results of (1), X of the subject1-X11When the positive and negative prediction results (left and right prediction results) are correct and X is greater than 0, X is equal to X + g or X is equal to- (X + g), so as to reduce the horizontal deviation between the two rectangular light bars and increase the identification difficulty of the tested person, and until the tested person cannot predict correctly, the horizontal deviation L between the target first light bar and the target second light bar is output1-X11And completing the detection of the vernier sharpness perception capability of the tester.
When the X of the tested person1-X11When the positive and negative prediction results (left and right prediction results) are incorrect and X is greater than 0, X is equal to X-g or X is equal to- (X-g) in order to increase the horizontal deviation between the two rectangular light bars and reduce the identification difficulty of the tested person, and when the positive and negative prediction results of the tested person are correct, the horizontal deviation L between the target first light bar and the target second light bar is output1-X11And completing the detection of the vernier sharpness perception capability of the tester.
In this embodiment, two rectangular light bars with preset positions are constructed, the long sides of the two rectangular light bars are perpendicular to the horizontal plane, one of the rectangular light bars is a fixed rectangular light bar, the other rectangular light bar is a non-fixed rectangular light bar and is positioned above the fixed rectangular light bar, the horizontal position between the non-fixed rectangular light bar and the fixed rectangular light bar is changed, the fixed rectangular light bar and the non-fixed rectangular light bar are displayed to a measured person, the measured person is allowed to judge whether the non-fixed rectangular light bar is positioned on the left side (the preset vertex coordinate on the fixed rectangular light bar is larger than the corresponding vertex coordinate on the non-fixed rectangular light bar) or on the right side (the preset vertex coordinate on the fixed rectangular light bar is smaller than the corresponding vertex coordinate on the non-fixed rectangular light bar) of the fixed rectangular light bar, the sharpness perception capability of the measured person is tested according to the judgment result of the cursor of the measured person, the method is simple and convenient, has high accuracy, can automatically adjust the position according to the perception capability of the measured person, has strong practicability, and saves manpower and material resources.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.