Sight collection system and method
Through the combination of a depth camera and a display, geometric relationships are used to calculate the line of sight direction, which solves the problems of high cost and poor adaptability of line of sight tracking in the existing technology, and achieves high-accuracy and widely applicable line-of-sight collection effects.
Patent Information
- Application Number
- CN202310335669.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
Existing gaze tracking technology has problems such as high cost, poor model adaptability, and long training cycle. In particular, it is difficult to obtain accurate gaze direction information during the data collection and manual annotation process.
Using a combination of a depth camera and a display, the test mark is displayed on the display according to a preset trajectory, and the line of sight direction is calculated using geometric relationships. It is simple, has a wide adaptability and is highly accurate.
It improves the accuracy of data collection in the line of sight direction, reduces the collection cost, has a wide range of applications, and collects data in a natural state, improving the effectiveness of the model in application.
Smart Images

Figure CN118732822A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of gaze tracking technology, and in particular to a gaze acquisition system. Background Art
[0002] Gaze tracking is primarily used in computers, televisions, head-mounted devices, automotive equipment, and handheld devices, and is a key technology for human-computer interaction. On computers, it's primarily used for human-computer interaction—computer communication and text input (more efficient than a mouse and more accessible to people with disabilities). On TVs, it can be used to navigate menus and switch channels. In head-mounted devices, it's used for user attention, cognitive research, and psychoanalysis; or for local rendering in VR. If the helmet's built-in camera can estimate the direction of a person's gaze, it's possible to perform detailed local rendering of the scene, specifically only within the person's field of view, significantly reducing hardware costs. In automotive equipment, it can be used to detect driver fatigue and inattention. In handheld devices, it enables human-computer interaction through brightness and volume adjustment. During initial model training, obtaining eye gaze information is crucial for effective model training.
[0003] In existing technologies, initial gaze direction is often obtained through a series of large-scale data collection or manual labeling, and then the gaze tracking model is trained. For example, a dedicated gaze collection room is set up, cameras are arranged in all directions indoors, and the image of the human eye is obtained by comparing the images of multiple cameras. However, this has the disadvantages of high cost and poor model adaptability. Another example is that different images are initially marked by manual labeling, and then trained through the gaze tracking model, continuously converging and optimizing to improve the accuracy of prediction, but it has the disadvantages of large errors and long training cycles.
[0004] The disclosure of the above background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of this application. Summary of the Invention
[0005] To this end, the present invention adopts a combination of a depth camera and a display. By displaying test marks on the display according to preset trajectories, multiple images of a person's constantly changing line of sight are obtained, and the line of sight direction is calculated using geometric relationships. It has the characteristics of simple operation, wide adaptability and high accuracy.
[0006] In a first aspect, the present invention provides a sight line acquisition system, characterized by comprising:
[0007] Depth camera, used to collect eye images and position information of the tester;
[0008] A display, configured to dynamically display a test mark; wherein the test mark is displayed on the display according to a preset trajectory;
[0009] A controller is configured to control the synchronous operation of the display and the depth camera and acquire a plurality of data pairs, wherein the data pairs include the test mark position, the eye image, and the position information, and wherein the eye in the eye image in the data pair is oriented toward the test mark.
[0010] Optionally, the sight line acquisition system is characterized in that the controller is based on the formula Calculate the viewing angle θ to get the viewing direction; where, is the vector between the tester and the depth camera, is the vector of the test subject and the test calibration.
[0011] Optionally, the line of sight acquisition system is characterized in that the controller comprises the following steps when acquiring multiple data pairs:
[0012] Step S1: controlling the display to display the test mark at a first position;
[0013] Step S2: Detecting the movement of the human eye, obtaining the eye image and the position information of the tester after the movement, and forming a data pair with the first position;
[0014] Step S3: controlling the display to display the test mark at a second position;
[0015] Step S4: Detecting the movement of the human eye, obtaining the eye image and the position information of the test subject after the movement, and forming a data pair with the second position.
[0016] Optionally, the line of sight acquisition system is characterized in that the controller comprises the following steps when acquiring multiple data pairs:
[0017] Step S5: periodically changing the position of the test mark on the display with a first duration;
[0018] Step S6: enabling the depth camera to capture the eye image and the position information of the tester during a second time period after the test mark changes position; wherein the second time period is shorter than the first time period.
[0019] Optionally, the vision acquisition system is characterized in that each time the test mark changes position, the tester's viewing angle changes by no more than 10 degrees.
[0020] Optionally, the line of sight acquisition system is characterized in that the depth camera is located at the edge of the display.
[0021] Optionally, the line of sight acquisition system is characterized in that the angle between the depth camera and the display is less than 45 degrees.
[0022] Optionally, the eye gaze acquisition system is characterized in that the farther the distance between the tester and the display is, the larger the test mark is.
[0023] Optionally, the line of sight acquisition system is characterized in that, in the test mark, the brightness decreases from the center to the outside.
[0024] Optionally, the line of sight acquisition system is characterized in that the controller also guides the position or height of the tester through a display, thereby collecting data at different relative positions.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] The present invention utilizes a depth camera to obtain data of the test subject, which can not only obtain eye data but also obtain distance information between the depth camera and the test subject, thereby making it possible to perform calculations using geometric information of three-dimensional space.
[0027] The present invention utilizes a display to display a test mark, and by controlling the position of the test mark, the tester's sight direction can be accurately obtained, thereby greatly improving the accuracy of data collection.
[0028] The present invention utilizes the relationship among the depth camera, the test mark and the tester in three-dimensional space to calculate the angle of the tester relative to the depth camera, thereby obtaining the tester's line of sight, which greatly improves the accuracy of the line of sight. In addition, the present invention is easy to operate, has low acquisition cost, can acquire large quantities of data, and has a wide range of applications.
[0029] The present invention collects data when the tester is in a relatively natural state, which can obtain results that are closer to real application scenarios, thereby ensuring the reliability of the data and making the trained model have better effects in applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without inventive work. Other features, purposes and advantages of the present invention will become more apparent by reading the detailed description of the non-limiting embodiments with reference to the following drawings:
[0031] Figure 1 This is a structural diagram of a sight line acquisition system according to an embodiment of the present invention;
[0032] Figure 2 Schematic diagram of the positional relationship between a depth camera and a display according to an embodiment of the present invention;
[0033] Figure 3 is another schematic diagram of the positional relationship between a depth camera and a display according to an embodiment of the present invention;
[0034] Figure 4 This is a working diagram of a sight line acquisition system according to an embodiment of the present invention;
[0035] Figure 5 This is a schematic diagram of a test mark shape in an embodiment of the present invention;
[0036] Figure 6 This is a schematic diagram of a test mark trajectory in an embodiment of the present invention;
[0037] Figure 7 This is a flow chart of steps for a controller to obtain multiple data pairs in an embodiment of the present invention;
[0038] Figure 8 is a flowchart of another controller in acquiring multiple data pairs in an embodiment of the present invention, and
[0039] Figure 9 Schematic diagram of the first duration and the second duration in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be described in detail below with reference to specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those skilled in the art, several variations and improvements can be made without departing from the scope of the present invention. These all fall within the scope of protection of the present invention.
[0041] The terms "first," "second," "third," "fourth," and the like (if any) in the description and claims of the present invention and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatus.
[0042] An embodiment of the present invention provides a sight line acquisition system method, which aims to solve the problems existing in the prior art.
[0043] The following specific embodiments describe in detail the technical solutions of the present invention and how the technical solutions of this application solve the above-mentioned technical problems. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The following embodiments of the present invention are described in conjunction with the accompanying drawings.
[0044] The present invention adopts a combination of a depth camera and a display. By displaying test marks on the display according to preset tracks, multiple images of a person's constantly changing line of sight are obtained, and the line of sight direction is calculated using geometric relationships. It has the characteristics of simple operation, wide adaptability and high accuracy.
[0045] Figure 1 FIG. 1 is a structural diagram of a sight line acquisition system according to an embodiment of the present invention. Figure 1 As shown, a line of sight acquisition system in an embodiment of the present invention includes a depth camera 1, a display 2 and a controller 3.
[0046] Depth camera 1 is used to collect eye images and position information of the test subject.
[0047] Specifically, the depth camera 1 can be a binocular camera, a structured light camera, a time-of-flight camera, or other types of depth cameras, which are not specifically limited in this embodiment. The subject is the person used to collect information. By collecting the subject's eye information, the gaze direction can be determined. Subjects vary in age, gender, eye features, and other characteristics, requiring extensive sampling to achieve more accurate model training results. Unlike existing methods that predict gaze by recognizing faces and eyes at long distances, or by directly recognizing eyes through wearable devices such as VR at close range, this embodiment can directly recognize eye images at longer distances, such as within a range of 0.5m-4m. This allows for direct acquisition of valid data with a smaller effective area and less computational effort, improving efficiency. At least one eye in the eye image can be clearly identified. Different depth cameras have different resolutions, and the subject's position range varies. However, the subject's position must ensure that the depth camera can clearly capture the subject's eye image. Position information includes direction and distance.
[0048] Display 2 is used to dynamically display the test mark.
[0049] Specifically, the test mark is displayed on the display according to a preset trajectory. The test mark is displayed on the display in a certain shape. During acquisition, the test subject is required to look at the test mark so that the direction of the eyeball can be determined. The test mark is an area on the display that can be clearly distinguished from other areas. For example, the other areas on the display are all black, and only the test mark is lit, making the test mark easy to identify through high contrast; for another example, the other areas on the display are all white, and only the test mark is black, making the test mark easy to identify through black contrast. The test mark only remains in one position for a short time, such as 0.5s, 0.6s, 0.8s, 1s or any other time. The test mark is displayed in different positions in sequence, thereby driving the test subject's line of sight to move. The more positions the test mark traverses, the more comprehensive the test subject's line of sight changes. Display 2 can be a single display screen, or it can be composed of two or more different display screens.
[0050] The controller 3 is used to control the synchronous operation of the display and the depth camera and obtain multiple data pairs.
[0051] Specifically, the data pair includes the test mark position, the eye image, and the position information, and the eye in the eye image in the data pair is facing the test mark. Controller 3 controls the operation of depth camera 1 and display 2 so that depth camera 1 captures an image of the eye facing the test mark. In this case, the eye is facing the test mark. The eye, depth camera, and test mark form a triangle, and the line of sight angle can be calculated.
[0052] In some embodiments, the relative position of the display and the depth camera is fixed. When the positions of the display and the depth camera are fixed, the relative position of the display and the depth camera is also fixed, so that the relative position of the display and the test mark can be accurately determined, making subsequent calculations more accurate.
[0053] In some embodiments, the controller is based on the formula Calculate the viewing angle θ to get the viewing direction; where, is the vector between the tester and the depth camera, The vector between the tester and the test calibration can be obtained through the depth camera. The vector can be obtained by the positional relationship between the test subject and the test mark Thus, the viewing angle θ can be obtained.
[0054] Figure 2 、 Figure 3 FIG is a schematic diagram of the position relationship between a depth camera and a display according to an embodiment of the present invention. Figure 2 As shown, the depth camera is located at the edge of the display. The depth camera and the display can be an integrated device or two independent devices. In this case, the depth camera can obtain a face image at a smaller angle. The depth camera can be located at any position on the edge of the display. Figure 3 As shown, the depth camera and display are spaced apart, rather than adjacent. The depth camera and display can be an integrated device or two separate devices. In this case, the depth camera can obtain facial images from a wide angle. The depth camera can be oriented parallel to the normal vector of the display or at a certain angle to the normal vector of the display, and the angle is less than 45 degrees.
[0055] Figure 4 FIG. 1 is a schematic diagram of a sight line acquisition system according to an embodiment of the present invention. Figure 4As shown, the depth camera 1 and display 2 face the same side, that is, toward the tester. The tester faces the depth camera and display. A test area is set up based on the parameters of the depth camera 1 and display 2. The tester collects data within the test area. The size and shape of the test area need to be adjusted based on the parameters of the depth camera 1 and display 2. For example, if the depth camera 1 has a long detection range and high resolution, the test area will be deeper; if the display 2 is wider, the test area will also be wider. The test area can also be equipped with chairs of varying heights or height-adjustable chairs. When the tester sits on the chair, their height changes, thereby changing their height relative to the depth camera. Both fixed and mobile testing methods can be used. In the fixed testing method, the tester's position and height are first fixed, and the test marker traverses the preset positions. The tester's position or height is then moved, and the test marker traverses the preset positions again, until all preset positions and heights are tested. In the mobile testing method, the tester is allowed to stand or sit freely within the test area, and the test marker is moved, repeating the measurement multiple times.
[0056] In some embodiments, the controller also uses a display to guide the tester's position or height, thereby collecting data at different relative positions. Once the test marker completes measurement of a preset trajectory, the controller prompts the tester through the display to move or change their height, allowing the next set of data to be collected. This embodiment can enhance the automation of the collection process, reduce human intervention, and improve collection efficiency.
[0057] Figure 5 The following is a schematic diagram of a test mark shape according to an embodiment of the present invention. The test mark can have various shapes, both regular and irregular, but can be at least the following:
[0058] --Circle
[0059] --Square
[0060] --triangle
[0061] --Oval
[0062] --pentagon
[0063] --diamond
[0064] --Pentagon
[0065] --hexagon
[0066] In some embodiments, the brightness of the test mark is not uniform, but rather decreases from the center outward to help the tester better focus on the center point of the test mark. The brightness decreases from the center outward, either uniformly or non-uniformly. Non-uniformly, the decrease can be step-wise, exponential, or logarithmic.
[0067] In some embodiments, the colors of the test mark are not uniform, but rather the center color has the highest contrast with the surrounding colors, allowing the tester to better focus on the center point of the test mark. Color changes are equivalent to changes in brightness, which will not be discussed here. For example, using the RGB color system, the center color of the test mark is (255, 0, 0), and the G and B color values gradually increase outward, such as (255, 50, 50) at the edge.
[0068] In some embodiments, the farther the tester is from the display, the larger the test mark becomes. The depth camera 1 can obtain the position of the tester, thereby obtaining the distance relative to the display 2. The size of the test mark can be adjusted through the controller 3, so that the tester can always obtain a clear test mark pattern. On the one hand, when the vertical distance between the tester and the display increases, the size of the test mark increases, so that the tester can obtain a clear test mark. On the other hand, during the movement of the test mark, the farther away from the tester, the larger the test mark becomes, which can not only make the tester see the test mark clearly, but also reduce the number of movements when the tester faces a larger angle, thereby improving the test efficiency.
[0069] Figure 6 Schematic diagram of a test mark trajectory in an embodiment of the present invention. Figure 6 A plurality of trajectories are shown in FIG. It will be understood by those skilled in the art that the trajectories can be designed in many ways, not just limited to Figure 6 The trajectory shown in . Figure 6 The trajectories in the control are designed according to the design principle of up and down or left and right changes, and multiple trajectories are designed to make the tester's line of sight change significantly in at least one direction, so that it is easier for the tester to recognize the changes in the test mark and the controller can better recognize the changes in the line of sight.
[0070] In some embodiments, each time the test mark changes position, the tester's viewing angle changes by no more than 10 degrees, so that the tester can quickly capture the moved test mark, thereby improving acquisition efficiency.
[0071] Figure 7 FIG. 1 is a flow chart of the steps of a controller in acquiring multiple data pairs according to an embodiment of the present invention. Figure 7 As shown, in an embodiment of the present invention, a controller acquires multiple data pairs including:
[0072] Step S1: controlling the display to display the test mark at a first position.
[0073] In this step, the first position is the initial position of the test mark display when the acquisition starts. The first position can be located at any position on the display. The shape of the test mark can be the shape in the above embodiment or any other shape.
[0074] In some embodiments, the first position is the area on the display closest to the tester, so that the tester can quickly capture the test mark. When the perpendicular line between the tester's eyes and the display is within the display, the center point of the test mark is the point closest to the tester. When the perpendicular line between the tester's eyes and the display is outside the display, an edge point of the test mark is the point closest to the tester.
[0075] Step S2: Detecting the movement of the human eye, obtaining the eye image and the position information of the tester after the movement, and forming a data pair with the first position.
[0076] In this step, the eye appears to move when the test mark appears, then stabilizes after the test mark is captured. Detecting the eye movement and obtaining the subject's data after the movement ensures that the subject's eye is facing the test mark, forming a data pair and thus establishing a triangular relationship between the eye, depth camera, and test mark.
[0077] Step S3: controlling the display to display the test mark at a second position.
[0078] In this step, the second position is a position different from the first position, and the second position does not overlap with the first position. The displacement of the second position from the first position does not exceed a preset distance, such as 100 pixels, 200 pixels, 300 pixels, 400 pixels, or any other pixel value.
[0079] Step S4: Detecting the movement of the human eye, obtaining the eye image and the position information of the test subject after the movement, and forming a data pair with the second position.
[0080] This step is the same as step S2 and will not be described again here.
[0081] In this embodiment, step S3 and step S4 are repeatedly executed until all preset positions of the test mark are traversed.
[0082] This embodiment utilizes the detection of the movement of the human eye to determine whether the human eye recognizes a new test mark position, so that in the obtained image, the human eye is always facing the test mark, ensuring that the obtained eye image is accurate, thereby obtaining accurate image data and further calculating the accurate sight angle.
[0083] Figure 8FIG. 1 is a flow chart of another controller in obtaining multiple data pairs according to an embodiment of the present invention. Figure 8 As shown, in another embodiment of the present invention, the step of obtaining multiple data pairs by another controller includes:
[0084] Step S5: periodically changing the position of the test mark on the display with a first duration.
[0085] In this step, the first duration is a fixed length of time, such as 1 second, 1.5 seconds, 2 seconds, or any other length. The first duration should be neither too long nor too short. If the first duration is too long, the tester may become distracted or dazed when looking at the test mark for a long time, resulting in a lack of concentration and large data errors. If the first duration is too short, the position of the test mark changes too quickly, making it difficult for the tester to keep up with the changes, also resulting in large errors. In some embodiments, the first duration is set between 0.1 seconds and 2 seconds to ensure that the tester has sufficient time to capture the test mark and achieve higher efficiency. In some embodiments, the test mark does not need to move at a fixed speed, that is, the first duration can be variable. For example, the first duration for the first three movements is 2 seconds, and the first duration for the next four movements is 1.5 seconds. By varying the first duration, the tester's attention can be increased, achieving better test results while improving test efficiency.
[0086] Step S6: During a second time period after the test mark changes position, the depth camera is enabled to capture the eye image and the position information of the tester.
[0087] In this step, the second duration is less than the first duration. Figure 9 As shown, the second duration appears in pairs with the first duration. Each first duration has a corresponding second duration. If the first duration changes, the second duration also changes accordingly. However, when the first duration changes, the magnitude of the change in the second duration is different from the magnitude of the change in the first duration. For example, when the first duration changes from 2 seconds to 1 second, the second duration changes from 1.5 seconds to 0.8 seconds. The smaller the first duration, the larger the ratio of the second duration to the first duration.
[0088] This embodiment does not consider the data of the collector, but only periodically changes the position of the test mark and collects data in units of the first time length and the second time length, so that the frequency of data collection is higher and the amount of calculation is small, which is conducive to reducing the consumption of equipment resources and can be applied to various hardware environments.
[0089] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. The above description of the disclosed embodiments enables professionals and technicians in this field to implement or use the present invention. Various modifications to these embodiments will be apparent to professionals and technicians in this field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0090] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various variations or modifications within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A sight line acquisition system, characterized in that: include: Depth camera, used to collect eye images and position information of the tester; A display, used for dynamically displaying a test mark; wherein the test mark is displayed on the display according to a preset track; A controller is used to control the synchronous operation of the display and the depth camera and obtain a plurality of data pairs; wherein the data pair includes the test mark position, the eye image and the position information, and the eye in the eye image in the data pair is facing the test mark.
2. A sight line acquisition system according to claim 1, characterized in that: The controller is based on the formula Calculate the viewing angle θ to get the sight direction; where, is the vector between the tester and the depth camera, is the vector of the test subject and the test calibration.
3. The sight line acquisition system according to claim 1, characterized in that: The controller includes the following steps when acquiring multiple data pairs: Step S1: controlling the display to display the test mark at a first position; Step S2: Detect the movement of the human eye, obtain the eye image and the position information of the tester after the movement, and form a data pair with the first position; Step S3: controlling the display to display the test mark at a second position; Step S4: Detect the movement of the human eye, obtain the eye image and the position information of the test subject after the movement, and form a data pair with the second position.
4. The sight line acquisition system according to claim 1, characterized in that: The controller includes the following steps when acquiring multiple data pairs: Step S5: periodically changing the position of the test mark on the display with a first duration; Step S6: enabling the depth camera to collect the eye image and the position information of the tester for a second time period after the test mark changes position; wherein the second time period is shorter than the first time period.
5. The sight line acquisition system according to claim 1, characterized in that: Each time the test mark changes position, the tester's visual angle changes by no more than 10 degrees.
6. The sight line acquisition system according to claim 1, characterized in that: The depth camera is located at an edge of the display.
7. The sight line acquisition system according to claim 1, characterized in that: The angle between the depth camera and the display is less than 45 degrees.
8. The sight line acquisition system according to claim 1, characterized in that: The farther the tester is from the display, the larger the test mark is.
9. The sight line acquisition system according to claim 1, characterized in that: In the test mark, the brightness decreases from the center outward.
10. The sight line acquisition system according to claim 1, characterized in that: The controller also guides the position or height of the tester through the display, so as to collect data at different relative positions.
