CN115644790A - Visual target drawing method, visual target drawing equipment and computer-readable storage medium - Google Patents

Visual target drawing method, visual target drawing equipment and computer-readable storage medium Download PDF

Info

Publication number
CN115644790A
CN115644790A CN202211107338.8A CN202211107338A CN115644790A CN 115644790 A CN115644790 A CN 115644790A CN 202211107338 A CN202211107338 A CN 202211107338A CN 115644790 A CN115644790 A CN 115644790A
Authority
CN
China
Prior art keywords
target
test
visual
vision
sighting
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
CN202211107338.8A
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202211107338.8A priority Critical patent/CN115644790A/en
Publication of CN115644790A publication Critical patent/CN115644790A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Eye Examination Apparatus (AREA)

Abstract

The invention discloses a visual target drawing method, a device and a computer readable storage medium, wherein the visual target drawing method comprises the following steps: when a target visual target value is tested on a test object, acquiring a target visual target direction of the test, and acquiring preset visual target data corresponding to the target visual target value, wherein the visual target data comprises visual target graph drawing data or a visual target scaling relative to a basic visual target image; and drawing a test sighting target image with the direction as the target sighting target direction and the size matched with the target vision value according to the sighting target data so as to perform vision test on the test object by outputting and displaying the test sighting target image. The invention reduces the storage resource occupied by the sighting target image, thereby improving the system performance.

Description

Visual target drawing method, visual target drawing equipment and computer-readable storage medium
Technical Field
The invention relates to the technical field of visual intelligence, in particular to a visual target drawing method, visual target drawing equipment and a computer readable storage medium.
Background
In recent years, the number of people wearing glasses has increased, and it is a prerequisite to arrange eyes to improve the accuracy of measuring eyesight. With the continuous development of science and technology, the intelligent and automatic vision testing mode gradually enters the life of people. When intelligent vision test is carried out, the visual target image is usually used for the tested person to judge the direction of the visual target image, so that the vision value of the tested person can be determined according to the accuracy of the direction judgment of the tested person. In the vision test process, the vision test needs to be carried out on a plurality of vision values, and the vision test needs to be carried out on the visual target images in a plurality of different directions aiming at the same vision value, so that a large number of visual target images need to be stored in the vision test equipment, the occupied storage resources are excessive, and the system performance is influenced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a visual target drawing method, a visual target drawing device, visual target drawing equipment and a computer readable storage medium, and aims to solve the technical problem that the performance of a system is influenced by too much occupied storage resources of visual target images.
In order to achieve the above object, the present invention provides a visual target drawing method, including the steps of:
when a target visual target value is tested on a test object, acquiring a target visual target direction of the test, and acquiring preset visual target data corresponding to the target visual target value, wherein the visual target data comprises visual target graph drawing data or a visual target scaling relative to a basic visual target image;
and drawing a test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the sighting target data, so as to output and display the test sighting target image to perform vision test on the test object.
Optionally, when the optotype data includes an optotype scaling ratio relative to a base optotype image, the step of drawing, according to the optotype data, a test optotype image whose direction is the target optotype direction and size matches the target vision value includes:
acquiring the basic sighting target image;
scaling the basic sighting target image according to the sighting target scaling to obtain a scaled sighting target image with the size matched with the target vision value;
and rotating the zooming sighting target image to rotate the sighting target direction of the zooming sighting target image to the target sighting target direction, and taking the zoomed sighting target image after rotation as a test sighting target image.
Optionally, the step of acquiring the basic optotype image includes:
acquiring preset basic graph drawing data, wherein the basic graph drawing data comprise a first graph size, a first graph shape, basic coordinates, a second graph size and a second graph shape;
drawing according to the first graph size to obtain a first color canvas with the shape of the first graph;
and in a coordinate system taking the corner point of the first color canvas as a coordinate origin, drawing a second color canvas which is in the shape of the second graph and in the size of the second graph on the first color canvas according to the basic coordinates to obtain the basic sighting mark image.
Optionally, when the optotype data includes optotype graph drawing data, the step of drawing the test optotype image, which has a direction as the target optotype direction and a size matched with the target vision value, according to the optotype data includes:
acquiring target sighting target graph drawing data corresponding to the target sighting target direction from the sighting target graph drawing data corresponding to various sighting target directions respectively;
and drawing the test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the target sighting target graph drawing data.
Optionally, the step of obtaining the target sighting target direction of the current test includes:
randomly generating a random direction;
detecting whether the measured visual target direction of the last tested visual target image is the same as the random direction or not in the process of testing the target visual force value;
when the direction of the detected sighting target is determined to be the same as the random direction, returning to execute the step of randomly generating the random direction;
and when the measured sighting mark direction is determined to be different from the random direction, taking the random direction as the target sighting mark direction.
Optionally, after the step of obtaining a test optotype image with a direction as the target optotype direction and a size matched with the target vision value by drawing according to the optotype data, the method further includes:
outputting and displaying the test sighting target image, and receiving feedback information of the test target on the displayed test sighting target image;
according to the feedback information and the target sighting target direction, accumulating the testing correct times and the testing error times of the testing object on the target vision value;
and determining the vision test result of the test object according to the test correct times and the test error times.
Optionally, the step of accumulating the number of times of correct tests and the number of times of errors in tests on the target visual force value by the test object according to the feedback information and the target visual target direction includes:
when the feedback information comprises a feedback direction and the feedback direction is the same as the target visual target direction, adding 1 to the test accuracy times of the target visual force value of the test object in an accumulated manner;
when the feedback information contains the feedback direction and the feedback direction is different from the target visual target direction, or the feedback information does not contain the feedback direction, adding 1 to the test error times of the target visual force value accumulated by the test object;
when the vision test is carried out according to the sequence of the test vision value from low to high, the step of determining the vision test result of the test object according to the test correct times and the test error times comprises the following steps:
when the fact that the testing correct times reach a preset first time is detected, and the target vision value is the highest first-level vision value in all testing vision values used for vision testing, the target vision value is used as a vision testing result of the testing object;
when the test error times reach a preset second time, taking a vision value which is one level lower than the target vision value in each test vision value as the vision test result;
when the correct testing times reach the first time and the target vision value is not the highest level of vision value, taking the vision value which is one level higher than the target vision value in the testing vision values as the target vision value, and returning to the step of obtaining the target vision target direction of the current test;
and when the test accuracy times are not up to the first time and the test error times are not up to the second time, entering next test on the target visual force value and returning to execute the step of obtaining the target visual target direction of the test.
Optionally, before the step of outputting and displaying the test optotype image, the method further includes:
detecting whether the actual distance between the test object and the vision test equipment is the same as the preset distance or not;
when the actual distance is determined to be different from the preset distance, acquiring a preset distance scaling corresponding to the actual distance, scaling the test sighting target image according to the distance scaling, and outputting and displaying the scaled test sighting target image;
and outputting and displaying the test sighting target image when the actual distance is determined to be the same as the preset distance.
In order to achieve the above object, the present invention also provides a visual target drawing device, including:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a target visual target direction of a test when the target visual target value is tested on a test object, and acquiring preset visual target data corresponding to the target visual target value, wherein the visual target data comprises visual target graph drawing data or visual target scaling relative to a basic visual target image;
and the drawing module is used for drawing a test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the sighting target data so as to carry out vision test on the test object by outputting and displaying the test sighting target image.
In order to achieve the above object, the present invention also provides a visual target drawing apparatus, including: the visual target drawing program is stored on the memory and can run on the processor, and when being executed by the processor, the visual target drawing program realizes the steps of the visual target drawing method.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a visual target drawing program, which when executed by a processor, implements the steps of the visual target drawing method as described above.
In the invention, when a target visual target value is tested on a test object, the target visual target direction of the test is obtained, and preset visual target data corresponding to the target visual target value is obtained, wherein the visual target data comprises visual target graph drawing data or visual target scaling relative to a basic visual target image, and a test visual target image with the direction as the target visual target direction and the size matched with the target visual target value is obtained according to the visual target data drawing, so that the visual test is carried out on the test object by outputting and displaying the test visual target image. The invention reduces the storage resource occupied by the sighting target image, thereby improving the system performance.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a visual target drawing method according to the present invention;
FIG. 2 is a flow chart of a visual target rendering method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of functional modules of an exemplary embodiment of a visual target drawing apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a sighting target drawing device of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
An embodiment of the present invention provides a visual target drawing method, and referring to fig. 1, fig. 1 is a schematic flow diagram of a first embodiment of the visual target drawing method according to the present invention. It should be noted that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in an order different from that shown or described herein. The executed visual target drawing method may be a device such as a personal computer, a smart phone, a server, etc., and is not limited in this embodiment, and for convenience of description, the execution subject is omitted below for description. In this embodiment, the optotype drawing method includes:
step S10, when a target visual target value is tested on a test object, acquiring a target visual target direction of the test, and acquiring preset visual target data corresponding to the target visual target value, wherein the visual target data comprises visual target graph drawing data or a visual target scaling relative to a basic visual target image;
in the vision test process, a visual target image with a certain direction is displayed to an object (hereinafter, conveniently described as a test object) for performing vision test, so that the test object keeping a certain distance from the vision test equipment judges the direction of the visual target image according to the displayed visual target image, and according to the direction given by the test object for the visual target image and the actual direction of the visual target image, whether the test object can clearly see the visual target image can be determined, thereby determining the actual vision value of the test object (hereinafter, referred to as the actual vision value to show distinction).
In the vision testing process, a plurality of rounds of tests may be performed on test subjects for different vision values (hereinafter referred to as test vision values to indicate distinctions) to determine actual vision values of the test subjects from a plurality of test vision values. When each round of test is carried out, the visual target images in different directions can be used for carrying out multiple tests aiming at the test visual force value of the test in the current round. It is understood that the optotype images corresponding to different values of the visual acuity are different in size.
In an intelligent vision test, a visual target image is generally used for a test object to judge the direction of a visual target in the visual target image according to the displayed visual target image. In the vision test process, the vision test needs to be carried out on a plurality of test vision values, and the vision test needs to be carried out on visual target images in a plurality of different directions aiming at the same test vision value, so a large number of visual target images need to be stored in the vision test equipment, the visual target images occupy storage resources, and the system performance is influenced.
Therefore, the embodiment provides a method for drawing a visual target image in a vision test process, and the visual target image is drawn in the vision test process, so that the storage resources occupied by the visual target image are reduced.
Specifically, in the present embodiment, the respective vision values used for the test are referred to as test vision values, and the test vision value being subjected to the vision test is referred to as a target vision value to indicate distinction. When a target visual force value is tested on a test object, the visual target direction (hereinafter referred to as target visual target direction for distinguishing) in the test is acquired.
In a specific embodiment, the target sighting target direction may be a randomly generated direction, or may be randomly selected from a plurality of preset directions, which is not limited herein, and may be specifically set according to actual requirements.
In this embodiment, data for drawing a visual target image corresponding to a plurality of test visual force values is set in advance, and data corresponding to a target visual force value (hereinafter referred to as visual target data to distinguish) is acquired therefrom. In a specific embodiment, the optotype data may include data for drawing each of the graphics constituting the optotype image (hereinafter, optotype graphic drawing data for distinction) and may also include a scale of the optotype image corresponding to a certain test visual force value (hereinafter, base optotype image for distinction) (hereinafter, optotype scale for distinction). The modes of obtaining the visual target image corresponding to the target visual force value (hereinafter referred to as test visual target image for distinguishing) by corresponding drawing of different visual target data are different, and the visual target image can be specifically set according to actual requirements without limitation.
And step S20, drawing a test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the sighting target data, so as to carry out vision test on the test object by outputting and displaying the test sighting target image.
And drawing a test sighting target image with the direction as the target sighting target direction and the size matched with the target vision value according to the sighting target data. And after the test sighting target image is obtained through drawing, outputting and displaying the test sighting target image to perform vision test on the test object aiming at the target vision value.
Specifically, in an embodiment, when the drawing data includes the visual target drawing data, the test visual target image may be obtained by drawing a plurality of patterns in the test visual target image, and in another embodiment, when the drawing data includes the scaling, the test visual target image may be obtained by performing scaling processing on the basis of the base visual target image. The setting can be specifically performed according to actual requirements, and is not limited herein.
Further, in an embodiment, after determining that the vision test is completed on the test target image, the test target image may be deleted, so as to reduce the storage resource occupied by the target image.
Further, in one embodiment, the test optotype image output for display may be displayed in the center of the vision testing device.
Further, in one embodiment, due to the fact that the display sizes and the display resolutions of different displays are different, the visual target images corresponding to the same test vision value in different displays are different in size. In the present embodiment, a zoom factor (hereinafter, referred to as a display factor to indicate distinction) preset for different displays is preset, and a display factor (hereinafter, referred to as a target display factor to indicate distinction) preset for a display of the vision testing apparatus is acquired. And zooming the drawn test sighting target image by adopting the target display coefficient. The display coefficients corresponding to different displays may be obtained through experimental tests, or may be set according to experience of technicians, which is not limited herein.
It should be noted that, by adopting the target display coefficient corresponding to the display of the vision testing device to perform scaling processing on the test sighting target image, the size of the test sighting target image presented on different displays is consistent with the standard sighting target size corresponding to the target vision value, thereby ensuring the accuracy of the size of the test sighting target image.
In this embodiment, when the target visual acuity value is tested on the test object, the target visual target direction of the test is acquired, preset visual target data corresponding to the target visual acuity value is acquired, the direction is obtained by drawing according to the visual target data and is taken as the target visual target direction, and the size of the test visual target image is matched with the target visual acuity value, so that the test visual target image is displayed through output to perform visual acuity test on the test object.
Further, based on the first embodiment, a third embodiment of the method for drawing a optotype of the present invention is provided, in this embodiment, the optotype data includes an optotype scaling ratio, and the step S20 includes:
step S201, acquiring the basic sighting target image;
in this embodiment, the test optotype image is obtained by scaling the basic optotype image according to the optotype scaling ratio.
Specifically, a base optotype image is acquired. In a specific embodiment, the base optotype image may be an optotype image drawn in a vision test before the current vision test, or may be an optotype image drawn in accordance with data (hereinafter, referred to as base pattern drawing data) preset for drawing each component pattern of the base optotype image. It can be understood that the visual target image in any visual target direction of any test visual force value can be used as a basic visual target image, and the method is not limited here and can be specifically set according to actual requirements.
In a specific embodiment, the base optotype images of each round of vision test may be the same, for example, each round of vision test takes the optotype image corresponding to the test vision value of the first round of vision test as the base optotype image; the basic target images of each round of vision tests may be different, for example, the target image corresponding to the test vision value of one or more rounds of vision tests is the basic target image in each round of vision tests, and the basic target image may be specifically set according to actual needs, and is not limited herein.
Step S202, carrying out scaling processing on the basic sighting target image according to the sighting target scaling to obtain a scaling sighting target image with the size matched with the target vision value;
the method comprises the steps of presetting a visual target scaling corresponding to a target visual force value, wherein the basic visual target images are selected differently for visual target images corresponding to the target visual force value, and the corresponding preset visual target scaling is different; for the same basic optotype image, the optotype scales corresponding to different visual values are different, for example, when the distance between the test object and the vision test equipment in the vision test process is 2 meters, and the optotype image E corresponding to the visual force value of 4.0 is used as the basic optotype image, the scales of the different test visual values relative to the basic optotype image and the side lengths of the optotype images E corresponding to the test visual force values are as shown in table 1 below.
Figure BDA0003841416300000081
Figure BDA0003841416300000091
TABLE 1
The base optotype image is scaled according to an optotype scaling ratio corresponding to the base optotype image to obtain an optotype image (hereinafter, referred to as a scaled optotype image for distinction) having a size matching the target vision value.
Step S203, the zoom target image is rotated to rotate the target direction of the zoom target image to the target direction, and the rotated zoom target image is used as a test target image.
The target direction of the basic target image may be the same as or different from the target direction. Therefore, the direction of the scaled visual target image may be the same as or different from the target visual target direction. And rotating the visual target direction of the zoomed visual target image to the target visual target direction, and taking the rotated zoomed visual target image as a test visual target image.
Further, in an embodiment, the rotation of the zoom target image may be performed with reference to a center point of the zoom target image.
It should be noted that, the test sighting target image is obtained by performing scaling processing and rotation processing on the basis of the basic sighting target image, so that the calculation amount is less, the time for drawing the test sighting target image can be reduced, and the vision test efficiency is improved.
Further, in an embodiment, step S201 includes:
step S2011, acquiring preset basic graph drawing data, wherein the basic graph drawing data comprises a first graph size, a first graph shape, basic coordinates, a second graph size and a second graph shape;
in this embodiment, the basic chart image is obtained by drawing the basic chart drawing data, and the basic chart image with a more accurate size can be obtained.
The visual target image may be obtained by drawing different graphics, and it is understood that different drawing modes are different for drawing data for drawing graphics.
In a specific embodiment, after different figures are drawn, the different figures may be superimposed to obtain a visual target image, for example, 2 white rectangles may be superimposed on a black square to obtain a visual target image E; the sighting target image E may also be obtained by superimposing 4 black rectangles on a white square, which may be specifically set according to actual requirements, and is not limited in this embodiment.
Specifically, in this embodiment, the basic target image is obtained by performing drawing in a manner of superimposing graphics of different colors, and the basic graphics drawing data includes graphics drawing data for drawing a bottom layer of graphics and graphics drawing data for drawing a top layer of graphics. Wherein, the drawing data corresponding to the bottom layer figure comprises: the size of the bottom layer graphics (hereinafter referred to as the first graphics size for illustration) and the shape of the bottom layer graphics (hereinafter referred to as the second graphics shape for illustration), and the drawing data corresponding to the top layer graphics include: coordinates for determining a relative position between the top layer pattern and the bottom layer pattern (hereinafter, referred to as basic coordinates for distinction), a size of the top layer pattern (hereinafter, referred to as a second pattern size for distinction), and a shape of the top layer pattern (hereinafter, referred to as a second pattern shape for distinction).
In a specific embodiment, when the optotype image is E, the first figure shape is a square, and the second figure shape is a rectangle. When the optotype image is C, the first figure shape is a circle, and the second figure shape may include a circle and a fan ring. The setting can be specifically performed according to actual requirements, and is not limited herein. Step S2012, a first color canvas with the shape of the first graph shape is drawn according to the first graph size;
and drawing a first color canvas with the shape of the first graph shape according to the first graph size.
And step S2013, in a coordinate system taking the corner point of the first color canvas as a coordinate origin, drawing a second color canvas which is in the shape of the second graph and in the size of the second graph on the first color canvas according to the basic coordinates to obtain the basic sighting mark image.
And in a coordinate system taking the corner point of the first color canvas as a coordinate origin, drawing a second color canvas which is in the shape of a second graph and in the size of the second graph on the first color canvas according to the basic coordinates to obtain a basic sighting target image. In particular embodiments, the first color canvas and the second color canvas are different colors, and the particular colors are not limited herein.
Further, in an embodiment, the target image corresponding to the lowest level of the test visual force value may be used as a base target image, and the central point of the base target image is scaled to obtain the test target image. Specifically, after the target image corresponding to the lowest level of the test visual force value is obtained through drawing, the target image corresponding to the lowest level of the test visual force value may be scaled by using the central point input function and different scaling sizes as shown in table 1 to obtain the test target image. In this embodiment, when the target image is an E-character target image, in a coordinate system defined by two sides with the upper left corner point of the first color canvas as the origin of coordinates and the lower right corner point as the end point, the first graphic size of the first color canvas of the basic target image is width (width), and the drawing data of the second color canvas are respectively shown as the first rectangular coordinate and the second rectangular coordinate in table 2. Wherein, the value of mwidth (side width) in table 2 is one fifth of the value of width.
Figure BDA0003841416300000111
TABLE 2
In a specific embodiment, the visual target image may be based on visual target images corresponding to different test visual force values. The first graph sizes of the first color canvas of the E-word sighting target images corresponding to different testing visual force values are different, the width is the first graph size of the first color canvas of the lowest level sighting target graph, and the value of the mwidth is one fifth of the width.
Further, in an embodiment, referring to fig. 2, the process of drawing the sighting target image may be:
random directions and scales are generated (i.e., the target optotype direction is acquired, and the optotype data is acquired, wherein the optotype data includes the optotype scale relative to the base optotype image).
The long edge width is defined by using a black canvas (i.e., a first color canvas corresponding to the bottom graphics in the visual target image), and the short edge width is defined by using a white canvas (i.e., a second color canvas corresponding to the top graphics in the visual target image). And newly building a Canvas object, displaying the Canvas on the Canvas, and converting the Canvas into a picture (namely drawing a first color Canvas and a second color Canvas according to basic graph drawing data to obtain a basic image sighting mark).
And (4) scaling with the center point of the picture as a reference (namely, scaling the basic visual target image according to the visual target scaling).
A white canvas is displayed over a black canvas and the optotype is displayed (i.e., a second color canvas is displayed over a first color canvas resulting in a test optotype image).
In this embodiment, the test sighting target image is obtained by performing scaling processing and rotation processing on the basis of the basic sighting target image, so that the storage resources occupied by storing the sighting target image can be reduced, and the system performance is improved. Meanwhile, the calculated amount is less, the time for drawing the sighting target image in the whole vision test process can be shortened, and the vision test efficiency is improved.
Further, based on the first embodiment, a third embodiment of the visual target drawing method of the present invention is provided, in this embodiment, the visual target data includes visual target graph drawing data, and the step S20 includes:
step S204, obtaining target sighting target graph drawing data corresponding to the target sighting target direction from the sighting target graph drawing data corresponding to various sighting target directions respectively;
in this embodiment, the target data includes target graph drawing data, and different graphs are drawn according to the target graph drawing data to obtain a test target image. The visual target data may include visual target figure drawing data corresponding to a plurality of visual target directions, respectively, or may include visual target figure drawing data corresponding to one of the visual target directions.
Specifically, in this embodiment, the visual target data includes visual target figure drawing data corresponding to a plurality of visual target directions, and the visual target figure drawing data corresponding to the target visual target direction (hereinafter referred to as target visual target figure drawing data for distinction) is acquired from the visual target figure drawing data corresponding to each of the various visual target directions.
And step S205, drawing according to the target sighting target graph drawing data to obtain the test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value.
And drawing according to the drawing data of the target visual target image to obtain a test visual target image with the direction as the target visual target direction and the size matched with the target vision value.
For a specific drawing manner, reference may be made to steps S2011 to S2013 in the second embodiment, which are not described herein again.
Further, in an embodiment, when the target image is an E-font image and a Canvas is used to draw the test target image, in order to ensure that the test target images corresponding to different target visual force values are displayed in the center of the vision testing apparatus and that the middle horizontal line of the E-font image is displayed centrally, in a coordinate system defined by two sides, where an upper left corner point of the target image corresponding to the lowest level of the test visual force value is a coordinate origin and a lower right corner point is an end point, the graph drawing data of the first color Canvas in the target graph drawing data may be:
rect (width/2-mEwidth/2, width/2+ mEwidth/2), wherein width is the size of the first color canvas of the sighting target image corresponding to the lowest level visual force value, mEwidth represents the size of the first color canvas of the sighting target image corresponding to different testing visual force values, and mEwidth corresponding to different testing visual force values can be obtained by multiplying width by different zoom ratios in the table 1.
In this embodiment, the drawing data of the second color canvas corresponding to different target directions in the target image drawing data is as shown in table 3 below, and the test target image having the target direction identical to the target direction can be drawn according to the first rectangular coordinate and the second rectangular coordinate corresponding to the target direction. Wherein d in Table 3 is one fifth of mEwidth.
In a specific embodiment, the test optotype images in different optotype directions can be drawn according to the first rectangular coordinates and the second rectangular coordinates in different optotype directions as shown in table 3.
It should be noted that, in this embodiment, the visual target images corresponding to different testing visual force values are drawn, and with continuous change of the meewidth, the drawing data of the first color canvas of the visual target images corresponding to different testing visual force values also changes accordingly, so that it can be ensured that the displayed testing visual target images can be located in the center of the display of the visual testing device, and the positions of the graphics in the E-character visual target images cannot be shifted.
Figure BDA0003841416300000131
Figure BDA0003841416300000141
TABLE 3
Further, in an embodiment, the step of acquiring the target optotype direction of the current test in step S10 includes:
step S101, randomly generating a random direction;
in the vision test process, the visual target images in different directions are used for testing for a plurality of times aiming at the target vision value, in the embodiment, the target visual target directions of two adjacent tests are kept different, so that the test object is prevented from guessing the direction of the test visual target image of the test according to the direction of the test visual target image of the previous test, and the accuracy of the vision test is improved
Specifically, in the present embodiment, the direction is generated randomly (hereinafter, referred to as a random direction for clarity).
Step S102, detecting whether the measured visual target direction of the visual target image of the last test is the same as the random direction in the process of testing the target visual force value;
in a test process of performing a vision test on a target vision value, whether the visual target direction (hereinafter, referred to as a measured visual target direction for distinction) of the visual target image of the previous test is the same as the random direction is detected.
Step S103, when the direction of the detected visual target is determined to be the same as the random direction, returning to the step of randomly generating the random direction;
and when the tested sighting target direction is determined to be the same as the random direction, returning to execute the operation of randomly generating the random direction to acquire a new random direction.
And step S104, when the measured sighting mark direction is determined to be different from the random direction, taking the random direction as the target sighting mark direction.
And when the measured sighting mark direction is determined to be different from the random direction, taking the random direction as the target sighting mark direction.
Further, in an embodiment, there may be no repeated direction in the plurality of test directions set as the target visual force value, and the setting may be specifically performed according to actual requirements, and is not limited herein.
It should be noted that by generating a random direction different from the direction of the tested visual target as the target visual target direction, it is avoided that the test object guesses the direction of the test visual target image of the current test according to the direction of the test visual target image of the previous test, thereby improving the accuracy of the vision test.
In this embodiment, the test target image is obtained by drawing the data according to the target graph, so that the storage resources occupied by the target image can be reduced, and the system performance can be improved.
Further, based on the first embodiment, a fourth embodiment of the optotype drawing method of the present invention is provided, and in this embodiment, after step S20, the method further includes:
step S30, outputting and displaying the test sighting target image, and receiving feedback information of the test target on the displayed test sighting target image;
in this embodiment, a test optotype image is output and displayed, and feedback information of a test object to the displayed test optotype image is received according to the test optotype image.
In the embodiment, the feedback information may be a feedback direction of the test object to the displayed test optotype image, or may be null information that does not include the feedback direction.
In a specific embodiment, the feedback information may be received through a device that establishes a communication connection with the vision testing device, for example, a remote controller, a mobile phone, a tablet, and the like, which is not limited herein and may be set according to actual requirements.
Step S40, accumulating the testing correct times and the testing error times of the target vision value of the testing object according to the feedback information and the target visual target direction;
and accumulating the test correct times and the test error times of the target vision value by the test object according to the feedback information and the target visual target direction.
And S50, determining the vision test result of the test object according to the test correct times and the test error times.
And determining the vision test result of the test object according to the test correct times and the test error times.
In a specific embodiment, the vision test may be performed from low to high according to the test vision value, or from high to low, and the corresponding test results are different according to different test methods.
Further, in an embodiment, before step S30, the method further includes:
step S60, detecting whether the actual distance between the test object and the vision test equipment is the same as the preset distance;
in the vision testing process, the test object needs to keep a certain distance from the vision testing device, in the embodiment, the distance between the test object and the vision testing device in the vision testing process is preset (hereinafter referred to as preset distance for distinguishing), and the preset distance is matched with the size of each testing vision value. For example, when the preset distance is 5 meters, the side length of the E-font image corresponding to the test visual value 4.0 is 72.72 millimeters, when the preset distance is 3 meters, the side length of the E-font image corresponding to the test visual value 4.0 is 43.63 millimeters, and when the preset distance is 2 meters, the side length of the E-font image corresponding to the test visual value 4.0 is 29.09 millimeters. The setting can be specifically carried out according to the actual requirement, and the setting is not carried out here.
Due to factors such as site limitation, the actual distance between the test object and the vision test equipment cannot be completely consistent with the preset distance in the actual vision test process. Therefore, in the present embodiment, by adjusting the test optotype image according to the actual distance, it is possible to perform vision tests in different fields.
Specifically, whether the actual distance between the test object and the vision testing device is consistent with a preset distance or not is detected.
Step S70, when the actual distance is determined to be different from the preset distance, obtaining a preset distance scaling corresponding to the actual distance, carrying out scaling processing on the test sighting target image according to the distance scaling, and outputting and displaying the scaled test sighting target image;
when it is determined that the actual distance does not coincide with the preset distance, a scaling corresponding to the actual distance (hereinafter referred to as a distance scaling for distinction) is acquired.
And carrying out zooming processing on the test sighting target image according to the distance zooming proportion, and outputting and displaying the zoomed test sighting target image.
And S80, outputting and displaying the test sighting target image when the actual distance is determined to be the same as the preset distance.
And when the actual distance is determined to be the same as the preset distance, outputting and displaying the test sighting mark image.
Further, in an embodiment, it may also be configured to detect whether the actual distance is the same as the preset distance before drawing the test optotype image, and when the actual distance is the same as the preset distance, draw the test optotype image according to the optotype data and output and display the test optotype image; and when the actual distance is different from the preset distance, drawing the test sighting target image according to the sighting target data, zooming the test sighting target image according to the distance zooming scale corresponding to the actual distance, and outputting and displaying. The detailed processing procedure is not described herein.
It should be noted that, when it is determined that the actual distance between the test object and the vision testing device is different from the preset distance, a distance scaling corresponding to the actual distance is obtained, and the distance scaling is used to perform scaling processing on the test sighting target image, so that the vision test can meet different field sizes.
In the embodiment, the test visual target image is output and displayed, the feedback information of the test object to the displayed test visual target image is received, the test accuracy times and the test error times of the test object to the target visual force value are accumulated according to the feedback information and the target visual target direction, and the vision test result of the test object is determined according to the test accuracy times and the test error times, so that the intelligent vision test is realized.
Further, a fifth embodiment of the optotype drawing method of the present invention is proposed based on the first embodiment described above, and in this embodiment, the step S40 includes:
step S401, when the feedback information comprises a feedback direction and the feedback direction is the same as the target visual target direction, adding 1 to the test accuracy times of the target visual force value of the test object in an accumulated manner;
in this embodiment, when the feedback information includes the feedback direction, and the feedback direction is the same as the target visual target direction, 1 is added to the number of times that the test object tests the target visual force value correctly.
Step S402, when the feedback information includes the feedback direction and the feedback direction is different from the target visual target direction, or the feedback information does not include the feedback direction, adding 1 to the number of testing errors of the target visual force value accumulated by the testing object;
and when the feedback information contains the feedback direction, the feedback direction is different from the target visual target direction, or the feedback information does not contain the feedback direction, adding 1 to the test error frequency of the target visual force value accumulated by the test object.
Further, in one embodiment, when performing the vision test in the order of the test vision values from low to high, the step S50 includes:
step S501, when the test correct times reach a preset first time and the target vision value is the highest level vision value in all the test vision values for vision test, taking the target vision value as the vision test result of the test object;
in the process of vision test, the vision test can be carried out according to the sequence of the test vision value from high to low, and also can be carried out according to the sequence of the test vision value from low to high.
Specifically, in the present embodiment, the vision test is performed in the order of the test vision values from low to high. And presetting a threshold value of the correct times of tests of each round of test, namely presetting the first times. When the correct testing times reach the preset first times, the fact that the test object can clearly see the visual target image corresponding to the target visual force value is determined, when the target visual force value is the highest visual force value in all the testing visual force values used for performing the visual test, the fact that the actual visual force value of the test object is the highest visual force value is determined, and at the moment, the target visual force value is used as the visual test result of the test object.
Further, in one embodiment, after determining the vision test results, a vision test for the other eye may be entered.
In a specific embodiment, the first number may be any number set according to actual requirements, and is not limited herein.
Step S502, when the number of times of the test errors reaches a preset second number of times, taking a vision value which is one level lower than the target vision value in each test vision value as the vision test result;
and presetting a threshold value of the number of testing errors of each round of testing, namely a preset second number, determining that the test object cannot clearly see the visual target image corresponding to the target visual force value when the number of testing errors reaches the preset second number, and taking the visual value which is one level lower than the target visual force value in each testing visual force value as a visual testing result.
In a specific embodiment, the second number may be any number set according to actual requirements. The second number may be the same as or different from the first number, and is not limited herein.
Step S503, when it is detected that the correct number of times of the test reaches the first number and the target vision value is not the highest level of vision value, taking a vision value which is one level higher than the target vision value in the test vision values as the target vision value, and returning to the step of obtaining the target visual target direction of the test;
and when the correct testing times reach the first time and the target vision value is not the highest vision value, taking the vision value which is one level higher than the target vision value in the testing vision values as the target vision value, and returning to the step of executing the step of obtaining the target vision target direction of the test.
Step S504, when the testing correct times are not detected to reach the first times and the testing error times are not detected to reach the second times, the next testing of the target visual force value is started and the step of obtaining the target visual target direction of the current testing is executed.
And when the test accuracy times do not reach the first time and the test error times do not reach the second time, determining that the current round of test is not finished, namely the vision test on the target vision value is not finished, and entering the next test on the target vision value and returning to the step of obtaining the target vision target direction of the current test.
Further, in one embodiment, the vision tests may be performed in order of the test vision value from high to low. In this embodiment, the first number of times of each test round is set in advance. And when the test accuracy times reach the preset first times, determining that the test object can clearly see the visual target image corresponding to the target visual force value, and taking the target visual force value as the visual test result of the test object.
And presetting the second times of each round of test, and determining that the test object cannot see the sighting target image corresponding to the target vision value when the number of times of test errors reaches the preset second times. When the target vision value is the lowest one-level vision value in all the test vision values, taking the vision value which is one level lower than the target vision value as a vision test result; and when the target vision value is not the lowest vision value, taking the vision value which is one level lower than the target vision value in the test vision values as the target vision value, and returning to the step of executing the step of obtaining the target visual target direction of the test.
And when the test accuracy times do not reach the first time and the test error times do not reach the second time, determining that the test is not finished in the current round, namely the vision test on the target vision value is not finished, entering the next test on the target vision value at the moment, and returning to the step of obtaining the target vision target direction of the test.
In the embodiment, the vision test result of the test object is determined according to the correct testing times and the wrong testing times of the test object on the target vision value according to the feedback information and the target sighting target direction, so that the intelligent vision test is realized.
Further, in one embodiment, referring to fig. 2, in the present embodiment, the vision test is performed on both eyes of the test subject, and in the specific test process, the vision test is performed in such a manner that the left eye is tested first and the right eye is tested later. And sending a text prompt message to prompt the left eye to be shielded, and further, in an embodiment, playing the prompt message through voice. In this embodiment, the specific process of the intelligent vision test may be:
the countdown interface for the left eye preparation is updated based on the audio and countdown numerical changes, and in particular embodiments, the test interface may be set to not display when the countdown interface is displayed.
It is checked whether the actual distance coincides with the preset distance (i.e., shown in fig. 2: whether the test distance satisfies the specified threshold). When the actual distance is inconsistent with the preset distance, the playing audio prompts the test object to move to the preset distance (i.e. the playing audio continues to prompt the user in fig. 2).
And when the actual distance is consistent with the preset distance, testing the right eye interface. And drawing the sighting target, namely drawing the sighting target according to the sighting target data, and displaying the countdown of the right eye test interface.
In this embodiment, the judgment of the test object on the visual target direction of the test visual target image is received by the monitoring remote controller (i.e. the monitoring remote controller is shown in FIG. 2). And accumulating the test correct times and the test error times of the target vision value by the test object according to the feedback information and the target visual target direction. When the feedback information comprises a feedback direction and the feedback direction is the same as the target visual target direction, adding 1 to the number of times of testing the target visual force value by the test object in an accumulated manner; and when the feedback information contains the feedback direction and the feedback direction is different from the target visual target direction, or the feedback information does not contain the feedback direction, adding 1 to the test error frequency of the target visual force value by the test object.
When the correct testing times reach the first time and the target vision value is not the highest vision value, taking the vision value which is one level higher than the target vision value in the testing vision values as the target vision value, and returning to execute the operation of obtaining the target vision target direction of the test; and when the test accuracy times do not reach the first time and the test error times do not reach the second time, entering the next test of the target visual force value and returning to execute the operation of obtaining the target visual target direction of the test (namely, as shown in figure 2, if the specific condition A is not met, continuously drawing the icon).
When the fact that the correct testing times reach a preset first time and the target vision value is the highest first-level vision value in all testing vision values used for vision testing is detected, the target vision value is used as a vision testing result of the right eye of the testing object; when the number of testing errors reaches a preset second number, taking the vision value which is one level lower than the target vision value in all the tested vision values as the vision test result of the right eye, and entering the vision test of the left eye (namely, as shown in figure 2, the countdown interface is updated, the right eye is shielded for preparation, and the left eye interface is tested).
Referring to the right eye vision test procedure, the left eye was tested for vision (i.e., drawing optotypes and displaying left eye test interface countdown, monitoring remote shown in fig. 2.)
When the correct testing times reach the first time and the target vision value is not the highest vision value, taking the vision value which is one level higher than the target vision value in the testing vision values as the target vision value, and returning to execute the operation of obtaining the target vision target direction of the test; and when the test accuracy times do not reach the first time and the test error times do not reach the second time, entering the next test of the target visual force value and returning to execute the operation of obtaining the target visual target direction of the test (namely, as shown in figure 2, if the specific condition B is not met, continuously drawing the icon).
When the test accuracy times reach the preset first times and the target vision value is the highest level vision value in all the test vision values for performing vision test, taking the target vision value as the vision test result of the left eye of the test object; when it is detected that the number of test errors reaches a preset second number, the vision value one level lower than the target vision value among the test vision values is taken as the vision test result of the left eye, and the vision test is ended (i.e., as shown in fig. 2, the specific condition B is satisfied, and the process is ended).
The present invention also provides a visual target drawing device, referring to fig. 3, the visual target drawing device includes:
the system comprises an acquisition module 10, a processing module and a display module, wherein the acquisition module is used for acquiring a target visual target direction of a test when the target visual target value is tested on a test object, and acquiring preset visual target data corresponding to the target visual target value, wherein the visual target data comprises visual target graph drawing data or a visual target scaling relative to a basic visual target image;
and the drawing module 20 is configured to draw, according to the sighting target data, a test sighting target image which has a direction as the target sighting target direction and a size matched with the target vision value, so as to perform vision test on the test object by outputting and displaying the test sighting target image.
Further, the rendering module 20 is further configured to:
acquiring the basic sighting target image;
carrying out scaling processing on the basic sighting target image according to the sighting target scaling to obtain a scaling sighting target image with the size matched with the target vision value;
and rotating the zooming sighting target image to rotate the sighting target direction of the zooming sighting target image to the target sighting target direction, and taking the zoomed sighting target image after rotation as a test sighting target image.
Further, the rendering module 20 is further configured to:
acquiring preset basic graph drawing data, wherein the basic graph drawing data comprise a first graph size, a first graph shape, basic coordinates, a second graph size and a second graph shape;
drawing according to the first graph size to obtain a first color canvas with the shape of the first graph;
and in a coordinate system taking the corner point of the first color canvas as a coordinate origin, drawing a second color canvas which is in the shape of the second graph and in the size of the second graph on the first color canvas according to the basic coordinates to obtain the basic sighting mark image.
Further, the rendering module 20 is further configured to:
acquiring target sighting target graph drawing data corresponding to the target sighting target direction from the sighting target graph drawing data corresponding to various sighting target directions respectively;
and drawing the test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the target sighting target graph drawing data.
Further, the obtaining module 10 is configured to:
randomly generating a random direction;
detecting whether the measured visual target direction of the last tested visual target image is the same as the random direction or not in the process of testing the target visual force value;
when the direction of the detected sighting mark is determined to be the same as the random direction, returning to execute the operation of randomly generating the random direction;
and when the measured sighting mark direction is determined to be different from the random direction, taking the random direction as the target sighting mark direction.
Further, the optotype drawing device further comprises a vision testing module, and the vision testing module is used for:
outputting and displaying the test sighting target image, and receiving feedback information of the test target on the displayed test sighting target image;
according to the feedback information and the target sighting target direction, accumulating the testing correct times and the testing error times of the testing object on the target vision value;
and determining the vision test result of the test object according to the test correct times and the test error times.
Further, the vision testing module is further configured to:
when the feedback information comprises a feedback direction and the feedback direction is the same as the target visual target direction, adding 1 to the test accuracy times of the target visual force value of the test object in an accumulated manner;
when the feedback information contains the feedback direction and the feedback direction is different from the target visual target direction, or the feedback information does not contain the feedback direction, adding 1 to the test error times of the target visual force value accumulated by the test object;
the vision testing module is further configured to:
when the fact that the testing correct times reach a preset first time is detected, and the target vision value is the highest level vision value in all testing vision values used for vision testing, the target vision value is used as a vision testing result of the testing object;
when the number of times of testing errors reaches a preset second number of times, taking a vision value which is one level lower than the target vision value in each testing vision value as the vision testing result;
when the fact that the correct testing times reach the first time is detected, and the target vision value is not the highest level of vision value, taking a vision value which is one level higher than the target vision value in the testing vision values as the target vision value, and returning to execute the operation of obtaining the target vision target direction of the current test;
and when the test correct times do not reach the first times and the test error times do not reach the second times, entering next test on the target visual force value and returning to execute the operation of obtaining the target visual target direction of the test.
Further, the optotype drawing device further comprises a detection module, and the detection module is configured to:
detecting whether the actual distance between the test object and the vision test equipment is the same as the preset distance or not;
when the actual distance is determined to be different from the preset distance, acquiring a preset distance scaling corresponding to the actual distance, scaling the test sighting target image according to the distance scaling, and outputting and displaying the scaled test sighting target image;
and outputting and displaying the test sighting target image when the actual distance is determined to be the same as the preset distance.
For the embodiments of the visual target drawing device of the present invention, reference may be made to the embodiments of the visual target drawing method of the present invention, and details are not described herein again.
An embodiment of the present invention provides a visual target drawing device, and referring to fig. 4, the visual target drawing device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of a video-rendering device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 4, the memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a optotype drawing program.
In the optotype drawing device shown in fig. 4, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the visual target drawing device of the present invention may be provided in the visual target drawing device, which calls the visual target drawing program stored in the memory 1005 through the processor 1001 and executes the steps of the visual target drawing method provided by the embodiment of the present invention.
The embodiments of the visual target drawing device of the present invention can refer to the embodiments of the visual target drawing method of the present invention, and details are not described herein.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a visual target drawing program is stored on the computer-readable storage medium, and when the visual target drawing program is executed by a processor, the steps of the visual target drawing method described above are implemented.
For the embodiments of the computer-readable storage medium of the present invention, reference may be made to the embodiments of the visual target rendering method of the present invention, and details are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A visual target drawing method is characterized by comprising the following steps:
when a target visual target value is tested on a test object, acquiring a target visual target direction of the test, and acquiring preset visual target data corresponding to the target visual target value, wherein the visual target data comprises visual target graph drawing data or a visual target scaling relative to a basic visual target image;
and drawing a test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the sighting target data, so as to output and display the test sighting target image to perform vision test on the test object.
2. The visual target drawing method according to claim 1, wherein when the visual target data includes a visual target scaling with respect to a base visual target image, the step of drawing a test visual target image having a direction that is the target visual target direction and a size that matches the target vision value based on the visual target data includes:
acquiring the basic sighting target image;
carrying out scaling processing on the basic sighting target image according to the sighting target scaling to obtain a scaling sighting target image with the size matched with the target vision value;
and rotating the zooming sighting target image to rotate the sighting target direction of the zooming sighting target image to the target sighting target direction, and taking the zoomed sighting target image after rotation as a test sighting target image.
3. The visual target rendering method of claim 2, wherein the step of acquiring the base visual target image includes:
acquiring preset basic graph drawing data, wherein the basic graph drawing data comprise a first graph size, a first graph shape, basic coordinates, a second graph size and a second graph shape;
drawing according to the first graph size to obtain a first color canvas with the shape of the first graph;
and in a coordinate system taking the corner point of the first color canvas as a coordinate origin, drawing a second color canvas which is in the shape of the second graph and in the size of the second graph on the first color canvas according to the basic coordinates to obtain the basic sighting mark image.
4. The visual target drawing method according to claim 1, wherein when visual target drawing data is included in the visual target data, the step of drawing a test visual target image having a direction that is the target visual target direction and a size that matches the target visual acuity value based on the visual target data includes:
acquiring target sighting target graph drawing data corresponding to the target sighting target direction from the sighting target graph drawing data corresponding to various sighting target directions respectively;
and drawing the test sighting target image which has the direction as the target sighting target direction and the size matched with the target vision value according to the target sighting target graph drawing data.
5. The visual target drawing method according to claim 1, wherein the step of obtaining the target visual target direction for the current test includes:
randomly generating a random direction;
detecting whether the measured visual target direction of the last tested visual target image is the same as the random direction or not in the process of testing the target visual force value;
when the direction of the detected sighting target is determined to be the same as the random direction, returning to execute the step of randomly generating the random direction;
and when the measured sighting mark direction is determined to be different from the random direction, taking the random direction as the target sighting mark direction.
6. The visual target drawing method according to any one of claims 1 to 5, wherein, after the step of drawing a test visual target image having a direction of the target visual target direction and a size matching the target vision value from the visual target data, further comprising:
outputting and displaying the test sighting target image, and receiving feedback information of the test target on the displayed test sighting target image;
according to the feedback information and the target sighting target direction, accumulating the testing correct times and the testing error times of the testing object on the target vision value;
and determining the vision test result of the test object according to the test correct times and the test error times.
7. The visual target drawing method according to claim 6, wherein the step of accumulating the number of times of test correctness and the number of times of test mistake of the test object for the target visual force value based on the feedback information and the target visual target direction includes:
when the feedback information comprises a feedback direction and the feedback direction is the same as the target visual target direction, adding 1 to the test accuracy times of the target visual force value of the test object in an accumulated manner;
when the feedback information contains the feedback direction and the feedback direction is different from the target visual target direction, or the feedback information does not contain the feedback direction, adding 1 to the test error times of the target visual force value accumulated by the test object;
when the vision test is carried out according to the sequence of the test vision value from low to high, the step of determining the vision test result of the test object according to the test correct times and the test error times comprises the following steps:
when the fact that the testing correct times reach a preset first time is detected, and the target vision value is the highest level vision value in all testing vision values used for vision testing, the target vision value is used as a vision testing result of the testing object;
when the test error times reach a preset second time, taking a vision value which is one level lower than the target vision value in each test vision value as the vision test result;
when the correct testing times reach the first time and the target vision value is not the highest level of vision value, taking the vision value which is one level higher than the target vision value in the testing vision values as the target vision value, and returning to the step of obtaining the target vision target direction of the current test;
and when the test correctness times are detected to not reach the first time and the test error times are detected to not reach the second time, entering next test on the target visual force value and returning to the step of obtaining the target visual target direction of the test.
8. The visual target rendering method of claim 6, wherein said step of outputting and displaying said test visual target image is preceded by the step of:
detecting whether the actual distance between the test object and the vision test equipment is the same as the preset distance or not;
when the actual distance is determined to be different from the preset distance, acquiring a preset distance scaling corresponding to the actual distance, scaling the test sighting target image according to the distance scaling, and outputting and displaying the scaled test sighting target image;
and outputting and displaying the test sighting target image when the actual distance is determined to be the same as the preset distance.
9. A optotype drawing apparatus, characterized in that the apparatus comprises: a memory, a processor and a target-drawing program stored on the memory and executable on the processor, the target-drawing program being configured to implement the steps of the target-drawing method of any one of claims 1 to 8.
10. A computer-readable storage medium, on which a visual target drawing program is stored, which when executed by a processor implements the steps of the visual target drawing method according to any one of claims 1 to 8.
CN202211107338.8A 2022-09-09 2022-09-09 Visual target drawing method, visual target drawing equipment and computer-readable storage medium Pending CN115644790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211107338.8A CN115644790A (en) 2022-09-09 2022-09-09 Visual target drawing method, visual target drawing equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211107338.8A CN115644790A (en) 2022-09-09 2022-09-09 Visual target drawing method, visual target drawing equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115644790A true CN115644790A (en) 2023-01-31

Family

ID=85024490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211107338.8A Pending CN115644790A (en) 2022-09-09 2022-09-09 Visual target drawing method, visual target drawing equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115644790A (en)

Similar Documents

Publication Publication Date Title
JP5843000B2 (en) Color chart detection apparatus, color chart detection method, and computer program for color chart detection
CN108074237B (en) Image definition detection method and device, storage medium and electronic equipment
CN106412573A (en) Method and device for detecting lens stain
CN110363112B (en) Method and system for checking wiring position of distribution cable
CN104252828B (en) Protect display methods, display device and the terminal device of eyesight
CN108961345A (en) A kind of effective determination method and determining device of color in Urine test paper
CN108197596B (en) Gesture recognition method and device
CN110864876A (en) Vehicle-mounted entertainment system test method, device, equipment and storage medium
CN111896233B (en) Contrast testing method, contrast testing device and storage medium
CN108337494A (en) A kind of calibration method of projection device, device, projection device and terminal device
CN102135852A (en) Image display apparatus and image display method
CN115063342A (en) Lens dead pixel detection method and device, electronic equipment and storage medium
CN111387932B (en) Vision detection method, device and equipment
CN110916609A (en) Vision detection device
JP2011069797A (en) Displacement measuring device and displacement measuring method
CN115644790A (en) Visual target drawing method, visual target drawing equipment and computer-readable storage medium
CN112581444A (en) Anomaly detection method, device and equipment
WO2023142396A1 (en) Test method and apparatus for relocation module, device, system, medium, computer program, and computer program product
CN114305316A (en) Vision detection method and system, vision detection all-in-one machine and storage medium
CN109901716A (en) Sight line point prediction model method for building up, device and sight line point prediction technique
JP2005316958A (en) Red eye detection device, method, and program
CN112261394B (en) Method, device and system for measuring deflection rate of galvanometer and computer storage medium
CN115797267A (en) Image quality evaluation method, system, electronic device, and storage medium
CN111928947B (en) Forehead temperature measuring method and device based on low-precision face thermometer and thermometer
CN108492360B (en) Digital model generation method and device

Legal Events

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