Multi-angle sight tracking acquisition method, system, equipment and medium
By using a depth camera combination on the display to calculate the gaze direction, it solves the problems of high gaze tracking model training costs and poor adaptability in the existing technology, and achieves efficient and accurate gaze direction data collection and model training effects.
Patent Information
- Application Number
- CN202310335911.9
- 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
In the existing technology, the training cost of the gaze tracking model is high, the adaptability is poor, the error is large, the training cycle is long, and it is difficult to obtain accurate gaze direction data from multiple angles.
Using a display and at least two depth cameras in combination, by displaying test marks on the display, geometric relationships are used to calculate the line of sight direction, thereby improving identification capabilities, with easy operation, wide adaptability, and high accuracy.
It achieves efficient and accurate sight direction data collection, reduces costs, has a wide range of applications, and the trained model is more effective in applications.
Smart Images

Figure CN118732825A_ABST
Abstract
Description
Background Art
[0002] Eye tracking is mainly used in computers, televisions, head-mounted devices, automotive equipment and handheld devices. It is an important technical means for human-computer interaction. On the computer side, it is mainly used for human-computer interaction - computer communication and text input (more efficient than a mouse and more suitable for people with disabilities). On the TV side, you can choose to navigate the menu and switch channels. In head-mounted devices, it is used for user attention, cognitive research, psychoanalysis; or local rendering of VR. If the direction of a person's sight can be estimated through the built-in camera of the helmet, the scene can be rendered locally in detail, that is, only the scene within the range of the person's sight can be rendered in detail, thereby greatly reducing the hardware cost. In automotive equipment, it can be used to detect whether the driver is driving fatigued and whether the attention is focused. In handheld devices, human-computer interaction functions are realized through brightness and volume adjustment. In the initial training of the model, the obtained human eye sight is of great significance to the model training effect.
[0003] In the prior art, the initial sight direction is often obtained through a series of large amounts of data collection or manual annotation, and then the sight tracking model is trained. For example, a special sight collection room is set up, and cameras are arranged in all directions in the room. The sight of the human eye is obtained by comparing the images of multiple cameras, but there are disadvantages such as high cost and poor model adaptability. For another example, manual annotation is used to initially mark different images, and then the sight tracking model is trained to continuously converge and optimize to improve the accuracy of the prediction, but there are disadvantages such as 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 the present application. Summary of the invention
[0005] To this end, the present invention adopts a combination of a display and at least two depth cameras. By displaying test marks on the display according to preset trajectories, multiple images of a person's constantly changing line of sight are obtained, the line of sight direction is calculated using geometric relationships, and the data between at least two depth cameras are combined to improve the ability to identify the tester. The present invention has the characteristics of simple operation, wide adaptability, high accuracy and high efficiency.
[0006] In a first aspect, the present invention provides a multi-angle sight tracking acquisition method, characterized in that it includes a display, a first depth camera and a second depth camera, and includes the following steps:
[0007] Step S1: controlling the display to display the test mark at a first position;
[0008] Step S2: Control the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and form a data pair with the first position; 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;
[0009] Step S3: controlling the display to display the test mark at a second position;
[0010] Step S4: Control the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and form a data pair with the second position.
[0011] Optionally, the multi-angle sight tracking acquisition method is characterized in that the data pair is processed according to 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.
[0012] Optionally, the multi-angle sight line tracking and acquisition method is characterized by further comprising:
[0013] Step S5: When the tester changes position or height, steps S1 to S4 are repeated.
[0014] Optionally, the multi-angle gaze tracking acquisition method is characterized in that controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester comprises the following steps:
[0015] Step S21: using the first depth camera to obtain a first image including the tester, and using the second depth camera to obtain a second image including the tester;
[0016] Step S22: determining the identity of the tester based on the first image and the second image;
[0017] Step S23: Identify the eye movement of the tester, and obtain the eye image and position information after the eye stops moving.
[0018] Optionally, the multi-angle gaze tracking acquisition method is characterized in that controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester comprises the following steps:
[0019] Step S24: periodically changing the position of the test mark on the display with a first duration;
[0020] Step S25: At a second time length after the test mark changes position, using the first depth camera to obtain a first image including the tester, and using the second depth camera to obtain a second image including the tester; wherein the second time length is less than the first time length;
[0021] Step S26: determining the identity of the tester based on the first image and the second image;
[0022] Step S27: collecting the eye image and position information of the tester.
[0023] Optionally, the multi-angle sight line tracking and acquisition method is characterized in that step S26 comprises:
[0024] Step S261: determining potential testers in the first image and the second image according to positions in the world coordinate system;
[0025] Step S262: Determine the tester according to the eye occlusion condition of the potential tester.
[0026] Optionally, the multi-angle sight line tracking and acquisition method is characterized in that, after step S27, it also includes:
[0027] Step S28: If the number of testers exceeds the preset number, identifying the face direction and removing the tester information whose face direction exceeds the range;
[0028] Step S29: If the number of testers still exceeds the preset number, all data obtained this time are discarded.
[0029] In a second aspect, the present invention provides a multi-angle sight line tracking and acquisition system, which is used to implement any of the multi-angle sight line tracking and acquisition methods described above, and is characterized by comprising:
[0030] A first display module, used to control the display to display the test mark at a first position;
[0031] A first acquisition module controls the first depth camera and the second depth camera to obtain an eye image and position information of the tester, and forms a data pair with the first position; wherein the optical axes of the first depth camera and the second depth camera are not parallel; 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;
[0032] A second display module, used to control the display to display the test mark at a second position;
[0033] The second acquisition module controls the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and forms a data pair with the second position.
[0034] In a third aspect, the present invention provides a multi-angle sight tracking and acquisition device, characterized in that it includes:
[0035] processor;
[0036] a memory storing executable instructions of the processor;
[0037] Wherein, the processor is configured to execute the steps of any one of the above-mentioned multi-angle line of sight tracking and acquisition methods by executing the executable instructions.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium for storing a program, characterized in that when the program is executed, the steps of any one of the aforementioned multi-angle line of sight tracking and acquisition methods are implemented.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] The present invention uses a depth camera to obtain data of the tester, which can not only obtain eye data but also obtain distance information between the depth camera and the tester, thereby making it possible to perform calculations using geometric information of three-dimensional space.
[0041] The present invention utilizes a display to display a test mark, and by controlling the position of the test mark, the sight direction of the tester can be accurately obtained, thereby greatly improving the accuracy of data collection.
[0042] 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, greatly improving the accuracy of the line of sight, and is easy to operate, has low acquisition cost, can be acquired in large quantities, and has a wide range of applications.
[0043] 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.
[0044] The present invention uses at least two depth cameras to acquire data on a tester in different directions, can identify the validity of the tester by combining data from different depth cameras, and can increase the tester data collected simultaneously, thereby improving collection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings in the following descriptions are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work. By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more obvious:
[0046] Figure 1 A flowchart of a multi-angle sight line tracking and acquisition method according to an embodiment of the present invention;
[0047] Figure 2 This is a schematic diagram of a collection process in an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of a test mark duration change in an embodiment of the present invention;
[0049] Figure 4 A flowchart of another multi-angle sight line tracking and acquisition method according to an embodiment of the present invention;
[0050] Figure 5 This is a flowchart of the steps of controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention;
[0051] Figure 6 This is another flowchart of the steps of controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention;
[0052] Figure 7 Schematic diagram of the first duration and the second duration in an embodiment of the present invention;
[0053] Figure 8 This is a flow chart of steps for determining the identity of a tester based on the first image and the second image in an embodiment of the present invention;
[0054] Fig. 9 A flowchart of another step of controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention;
[0055] Fig.10 It is a structural schematic diagram of a multi-angle sight line tracking and acquisition system in an embodiment of the present invention;
[0056] Fig.11 is a structural schematic diagram of a multi-angle sight line tracking and acquisition device in an embodiment of the present invention; and
[0057] Fig.12 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The present invention is described in detail below in conjunction with 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 of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0059] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present 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 device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0060] A multi-angle sight line tracking and acquisition method provided in an embodiment of the present invention is intended to solve the problems existing in the prior art.
[0061] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0062] The present invention combines a display with at least two depth cameras, displays test marks on the display according to preset trajectories, obtains multiple images of a person's constantly changing line of sight, calculates the line of sight direction using geometric relationships, and combines data from at least two depth cameras to improve the ability to identify the tester. The present invention has the characteristics of simple operation, wide adaptability, high accuracy, and high efficiency.
[0063] Figure 1 FIG. 1 is a flowchart of a multi-angle sight tracking acquisition method in an embodiment of the present invention. This embodiment includes a display and a depth camera. Figure 1 As shown, a multi-angle sight line tracking and acquisition method in an embodiment of the present invention includes:
[0064] Step S1: controlling the display to display the test mark at a first position.
[0065] In this step, the display is used to display the test mark. When performing the test, the tester stares at the test mark with both eyes. The display is usually an electronic display, such as a cathode ray tube display (CRT), a plasma display PDP, a liquid crystal display LCD, etc. The display displays the test mark in a striking manner. For example, the display sets obvious contrast settings such as color and brightness between the test mark and the background color. The first position is the initial position where the test mark is displayed when the acquisition starts. The first position can be any position on the display. The shape of the test mark can be any other shape, including but not limited to circle, square, triangle, ellipse, pentagon, rhombus, pentagon, hexagon, star.
[0066] 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 vertical line between the tester's eyes and the display is inside the display, the center point of the test mark is the point closest to the tester. When the vertical 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.
[0067] In some embodiments, the first position is the position after the test mark is moved for the first time. When the test mark appears on the display for the first time, the tester needs some time to capture the position of the test mark and pay attention to it. When the position of the test mark changes, the human eye is more sensitive to changes and can quickly capture the position of the test mark after the first movement. Therefore, this embodiment can filter out the unstable state of the tester in the early stage, so that the quality of the collected data is higher.
[0068] Step S2: Control the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and form a data pair with the first position.
[0069] In this step, the optical axes of the first depth camera and the second depth camera are not parallel; 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. Unlike a 2D camera, a depth camera can obtain an eye image and position information. Position information refers to the relative position of the tester and the depth camera. The relative position includes direction and distance. The distance is the average of the distances between the left eye and the right eye and the depth camera. Since the positional relationship between the depth camera and the display is known, and the positional relationship between the test mark and the display is known, the positional relationship between the depth camera and the test mark can be calculated. In this step, the positional relationship between the tester and the depth camera is obtained, so the line of sight angle can be calculated using the triangular relationship between the eye, the depth camera and the test mark. The first depth camera and the second depth camera are two independent cameras, and the positional relationship with the display is known, and the positional relationship with the test mark is known, so they can be calculated with the first position respectively to obtain the tester's line of sight. The data pair contains eye images and position information obtained by the first depth camera and the second depth camera respectively, and shares the first position information.
[0070] Step S3: controlling the display to display the test mark at a second position.
[0071] 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 other arbitrary pixel values. The motion trajectory of the test mark is preset. When the test mark is displayed, it is displayed in sequence according to the preset motion trajectory.
[0072] Step S4: Control the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and form a data pair with the second position.
[0073] In this step, the tester has captured the test mark well. Since the range of movement of the test mark is within a certain range, the tester can quickly capture the test mark. Therefore, the biggest difference between step S4 and step S2 is that the tester can successfully capture the test mark, move the test mark at a faster speed, and collect the tester's data. Steps S3 and S4 are repeated until all preset positions of the test mark are displayed.
[0074] In some embodiments, the data pair is processed according to 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.
[0075] Figure 2 It is a schematic diagram of a collection process in an embodiment of the present invention. The display, the first depth camera and the second depth camera are all arranged in the direction of the tester. The tester faces the first depth camera, the second depth camera and the display. According to the parameters of the first depth camera, the second depth camera and the display, one or more test areas are set. In this embodiment, there can be multiple depth cameras. The number of test areas is not more than the number of depth cameras. For example, a test area is set for each depth camera, and the number of test areas is the largest. Different test areas can have overlapping areas. Multiple different testers stare at the same test mark. The tester collects in the test area. The size and shape of the test area need to be adjusted according to the parameters of the depth camera and the display. For example, if the detection distance of the depth camera is long and the resolution is high, the depth of the test area is large; if the width of the display is large, the test area is also wide. Seats of different heights or height-adjustable seats can also be provided in the test area. When the tester sits on the seat, its height changes, thereby changing relative to the height of the depth camera. During the test, both a fixed test method and a mobile test method can be used. When using the fixed test method, first fix the position and height of the tester, and make the test mark traverse the preset positions; then move the position or height of the tester, and make the test mark traverse the preset positions again, until all preset positions and heights are tested. When using the mobile test method, let the tester stand or sit freely in the test area, move the test mark, and repeat the measurement multiple times.
[0076] Figure 3 The figure is a schematic diagram of the duration change of a test mark in an embodiment of the present invention. The duration of the test mark at different positions is different. Figure 3 The duration of different positions is shown. The duration of different positions can be different. The duration of the same position in different motion trajectories can also be different. The duration is within a certain range, such as [0.5s, 2s], [0.6s, 1.9s], [0.7s, 1.8s], etc.
[0077] Figure 4 FIG. 1 is a flowchart of another multi-angle sight tracking and acquisition method in an embodiment of the present invention. Figure 4 As shown, compared with the above-mentioned embodiment, another multi-angle sight line tracking and acquisition method in the embodiment of the present invention further includes:
[0078] Step S5: When the tester changes position or height, steps S1 to S4 are repeated.
[0079] In this step, when the depth camera detects that the tester changes position or height, steps S1 to S4 are repeated. In this embodiment, the data of the tester at the same position and height are grouped together. In a group of data, the data of the tester at different angles is obtained by changing the position of the test mark. When a group of data is collected, the tester is guided to change position or height through the method provided by the staff or the display screen, and the next group of data is collected again until all the data at the preset positions and heights are collected.
[0080] In some embodiments, when the tester changes position or height, the motion trajectory of the test mark changes. When the tester changes position or height, the relative position between the tester and the display changes, and the tester's field of vision changes. Therefore, a more reasonable motion trajectory is required to maximize the efficiency of vision capture at the current position or height.
[0081] Figure 5 FIG. 1 is a flowchart of a step of controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention. Figure 5 As shown, in an embodiment of the present invention, a method for controlling the first depth camera and the second depth camera to obtain an eye image and position information of a tester includes:
[0082] Step S21: using the first depth camera to obtain a first image including the tester, and using the second depth camera to obtain a second image including the tester.
[0083] In this step, the first depth camera obtains the first image, and the second depth camera obtains the second image. It should be noted that if there are multiple depth cameras, more images can be obtained in this step, and the processing step camera, so this embodiment takes two depth cameras as an example for explanation. The first image and the second image are both depth images, containing depth information.
[0084] Step S22: Determine the identity of the tester based on the first image and the second image.
[0085] In this step, different processing methods can be used according to different application scenarios. When the first depth camera and the second depth camera share the same test area, the first depth camera and the second depth camera obtain data of the same tester. In both the first image and the second image, the tester should be clearly and effectively identifiable, so objects that are unclear or otherwise difficult to effectively identify in either the first image or the second image can be removed to determine the identity of the tester. When the test areas of the first depth image and the second depth image overlap, the overlapping area needs to be clearly identifiable in both the first image and the second image, so objects that are unclear or otherwise difficult to effectively identify are removed to determine the identity of the tester.
[0086] Step S23: Identify the eye movement of the tester, and obtain the eye image and position information after the eye stops moving.
[0087] In this step, when the test mark appears, the human eye will move, and will remain stable after obtaining the test mark. Detecting the movement of the human eye and obtaining the data of the tester after the movement can ensure that the tester's eyeball is facing the test mark, forming a data pair, thereby obtaining the triangular relationship between the eye, the depth camera and the test mark. This embodiment utilizes the detection of the movement of the human eye to determine whether the human eye recognizes the new test mark position, so that in the image that can be obtained, the human eye always faces the test mark, ensuring that the obtained eye image is accurate, so that accurate image data can be obtained, and then the accurate line of sight angle can be calculated.
[0088] This embodiment determines the identity of the tester by cross-verifying the first depth camera and the second depth camera, and can effectively identify the tester in the presence of multiple testers or in the presence of interference. At the same time, the eye image and position information are obtained through the tester's eye movement, and the time when the tester is looking for the test mark can be automatically filtered out, thereby more accurately capturing the time when the tester finds the test mark.
[0089] Figure 6 FIG. 1 is another flowchart of controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention. Figure 6 As shown, another method for controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention includes:
[0090] Step S24: periodically changing the position of the test mark on the display with a first duration.
[0091] In this step, the first duration is a determined time length, such as 1s, 1.5s, 2s, and other arbitrary durations. The first duration should not be set too long or too short. If the first duration is too long, the tester will be easily distracted and dazed when facing the test mark for a long time, and the phenomenon of inattention will occur, resulting in large data errors. If the first duration is too short, the position of the test mark changes too quickly, and the tester is difficult to keep up with the rhythm of the test mark change, which also leads to large errors. In some embodiments, the first duration is set to between 0.1s and 2s to ensure that the tester has enough time to capture the test mark and achieve higher efficiency. In some embodiments, the movement of the test mark may not move at a fixed speed, that is, the first duration may be variable. For example, the first duration of the first three movements is 2s, and the first duration of the next four movements is 1.5s. By changing the first duration, the tester's attention can be improved, and while obtaining better test results, the test efficiency can be improved.
[0092] Step S25: At a second time duration after the test mark changes position, using the first depth camera to obtain a first image including the tester, and using the second depth camera to obtain a second image including the tester.
[0093] In this step, the second duration is less than the first duration. Figure 7 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. But 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 2s to 1s, the second duration changes from 1.5s to 0.8s. The smaller the first duration, the greater the ratio of the second duration to the first duration.
[0094] Step S26: Determine the identity of the tester based on the first image and the second image.
[0095] This step is the same as step S22 and will not be described again.
[0096] Step S27: collecting the eye image and position information of the tester.
[0097] In this step, only the eye image and position information of the tester are collected. Compared with the entire face image or body image, this step only collects the eye image, which greatly reduces the amount of data collected.
[0098] This embodiment does not consider the data of the collector, but only periodically changes the position of the test mark and collects data based on the first time length and the second time length, and only collects eye images without collecting data on the face or other parts of the body. This makes the data collection frequency higher and the calculation amount smaller, which is beneficial to reducing the consumption of device resources and can be applied to various hardware environments.
[0099] Figure 8 FIG. 1 is a flowchart of a step of determining the identity of a tester based on the first image and the second image in an embodiment of the present invention. Figure 8 As shown, in an embodiment of the present invention, a method for determining the identity of a tester based on the first image and the second image includes:
[0100] Step S261: determining potential testers in the first image and the second image according to their positions in the world coordinate system.
[0101] In this step, the position of the person detected in the first image and the second image in the camera coordinate system is known, and then the position of the person in the world coordinate system is obtained according to the conversion relationship between the camera coordinate system and the world coordinate system. At the same time, the test area of each depth camera is determined, and potential testers can be determined according to the positional relationship between the person and the test area.
[0102] Step S262: Determine the tester according to the eye occlusion condition of the potential tester.
[0103] In this step, people whose eyes are severely occluded cannot become valid testers, so this step filters out invalid objects. It should be noted that the occlusion situation is based on the depth camera. For example, person A exists in both the first image and the second image, and is a potential tester in both the first image and the second image, but in the first image, person A is occluded, and in the second image, person A is not occluded, then for the first image, person A is not a tester, but for the second image, person A is a tester.
[0104] This embodiment identifies potential testers by their positions in the world coordinate system, and further determines the testers based on eye occlusion conditions, so that all testers are valid testable subjects, thereby improving data accuracy.
[0105] Fig. 9 FIG. 1 is another flowchart of controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester in an embodiment of the present invention. Fig. 9 As shown, in another embodiment of the present invention, a method for controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester further includes, after step S27:
[0106] Step S28: If the number of testers exceeds the preset number, the face directions are identified, and the information of testers whose face directions are out of range is removed.
[0107] In this step, the maximum number of testers for each depth camera is limited. When the number of testers exceeds the preset number, the test process is determined to be disturbed. The preset number is a positive integer and can be adjusted according to the parameters of the depth camera, such as 1, 2, 3, 4, 5, etc. During the test, the tester always faces the screen, so the face direction remains within a certain range. This step identifies the face direction and removes the tester information whose face direction exceeds the range.
[0108] Step S29: If the number of testers still exceeds the preset number, all data obtained this time are discarded.
[0109] In this step, if the number of testers processed previously still exceeds the preset number, it is determined that the collection process is seriously disturbed, and all data obtained this time are discarded to avoid contaminating the sample data.
[0110] This embodiment screens the testers by face direction and compares them with a preset number of people. On the one hand, this improves the validity of the sample. On the other hand, it can also identify abnormalities in the collection process and discard all data to ensure the quality of the sample data.
[0111] Fig.10 FIG. 1 is a schematic diagram of the structure of a multi-angle sight tracking and acquisition system in an embodiment of the present invention. Fig.10 As shown, a multi-angle sight tracking and acquisition system in an embodiment of the present invention includes:
[0112] A first display module, used to control the display to display the test mark at a first position;
[0113] A first acquisition module controls the first depth camera and the second depth camera to obtain an eye image and position information of the tester, and forms a data pair with the first position; wherein the optical axes of the first depth camera and the second depth camera are not parallel; 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;
[0114] A second display module, used to control the display to display the test mark at a second position;
[0115] The second acquisition module controls the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and forms a data pair with the second position.
[0116] Specifically, the first display module and the second display module are used to control the display of the test mark on the display, and the first acquisition module and the second acquisition module are used to control the depth camera's data acquisition of the tester. The first display module and the first acquisition module are used for acquisition of the initial state. The second display module and the second acquisition module are used for efficient acquisition. In some embodiments, the first display module and the first acquisition module identify the state of the tester to ensure that the collector effectively captures the test mark, and after confirmation, the control and processing are transferred to the second display module and the second acquisition module. The first display module, the first acquisition module, the second display module and the second acquisition module can adopt the scheme in the aforementioned embodiment to obtain a faster acquisition frequency, clearer data, and at the same time improve the tester's attention.
[0117] This embodiment performs targeted processing on the initial state of the tester, which can effectively improve the quality of data collection. At the same time, a combination of a depth camera and a display is adopted to obtain multiple images of a person's constantly changing line of sight by displaying a test mark on the display according to a preset trajectory. The line of sight direction is calculated using geometric relationships, and the data between at least two depth cameras are combined to improve the ability to identify the tester. The embodiment has the characteristics of simple operation, wide adaptability, high accuracy and high efficiency.
[0118] The embodiment of the present invention further provides a multi-angle sight tracking acquisition device, comprising a processor and a memory, wherein executable instructions of the processor are stored. The processor is configured to execute the steps of a multi-angle sight tracking acquisition method by executing the executable instructions.
[0119] As mentioned above, this embodiment performs targeted processing on the initial state of the tester, which can effectively improve the quality of data collection. At the same time, by using a combination of a depth camera and a display, a test mark is displayed on the display according to a preset trajectory to obtain multiple images of a person's constantly changing line of sight, and the line of sight direction is calculated using geometric relationships. The data between at least two depth cameras are combined to improve the ability to identify the tester. This embodiment has the characteristics of simple operation, wide adaptability, high accuracy and high efficiency.
[0120] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".
[0121] Fig.11 This is a schematic diagram of the structure of a multi-angle sight tracking and acquisition device in an embodiment of the present invention. Fig.11The electronic device 600 according to this embodiment of the present invention is described. Fig.11 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0122] like Fig.11 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0123] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the above multi-angle gaze tracking and acquisition method section of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0124] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0125] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0126] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0127] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 through the bus 630. It should be understood that although Fig.11 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0128] In an embodiment of the present invention, a computer-readable storage medium is also provided for storing a program, and the steps of a multi-angle sight tracking and acquisition method are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above multi-angle sight tracking and acquisition method section of this specification.
[0129] As shown above, this embodiment performs targeted processing on the initial state of the tester, which can effectively improve the quality of data collection. At the same time, by using a combination of a depth camera and a display, a test mark is displayed on the display according to a preset trajectory to obtain multiple images of a person's constantly changing line of sight, and the line of sight direction is calculated using geometric relationships. The data between at least two depth cameras are combined to improve the ability to identify the tester. The system has the characteristics of simple operation, wide adaptability, high accuracy and high efficiency.
[0130] Fig.12 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. Fig.12 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0131] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0132] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0133] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0134] This embodiment performs targeted processing on the initial state of the tester, which can effectively improve the quality of data collection. At the same time, a combination of a depth camera and a display is adopted to obtain multiple images of a person's constantly changing line of sight by displaying a test mark on the display according to a preset trajectory. The line of sight direction is calculated using geometric relationships, and the data between at least two depth cameras are combined to improve the ability to identify the tester. The embodiment has the characteristics of simple operation, wide adaptability, high accuracy and high efficiency.
[0135] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the 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 obvious 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 these embodiments shown in this article, but will comply with the widest range consistent with the principles and novel features disclosed herein.
[0136] 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 modifications or variations within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A multi-angle sight tracking acquisition method, characterized in that: The method comprises a display, a first depth camera and a second depth camera, and includes the following steps: Step S1: controlling the display to display the test mark at a first position; Step S2: Control the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and form a data pair with the first position; 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; Step S3: controlling the display to display the test mark at a second position; Step S4: Control the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and form a data pair with the second position.
2. A multi-angle sight line tracking and acquisition method according to claim 1, characterized in that: According to 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 multi-angle sight line tracking and acquisition method according to claim 1, characterized in that: Also includes: Step S5: When the tester changes position or height, steps S1 to S4 are repeated.
4. The multi-angle sight line tracking and acquisition method according to claim 1, characterized in that: The controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester comprises the following steps: Step S21: using the first depth camera to obtain a first image including the tester, and using the second depth camera to obtain a second image including the tester; Step S22: determining the identity of the tester based on the first image and the second image; Step S23: Identify the eye movement of the tester, and obtain the eye image and position information after the eye stops moving.
5. The multi-angle sight line tracking and acquisition method according to claim 1, characterized in that: The controlling the first depth camera and the second depth camera to obtain the eye image and position information of the tester comprises the following steps: Step S24: periodically changing the position of the test mark on the display with a first duration; Step S25: At a second time length after the test mark changes position, using the first depth camera to obtain a first image including the tester, and using the second depth camera to obtain a second image including the tester; wherein the second time length is less than the first time length; Step S26: determining the identity of the tester based on the first image and the second image; Step S27: collecting the eye image and position information of the tester.
6. The multi-angle sight line tracking and acquisition method according to claim 5, characterized in that: Step S26 includes: Step S261: determining potential testers in the first image and the second image according to positions in the world coordinate system; Step S262: Determine the tester according to the eye occlusion condition of the potential tester.
7. The multi-angle sight line tracking and acquisition method according to claim 6, characterized in that: After step S27, the method further includes: Step S28: If the number of testers exceeds the preset number, identifying the face direction and removing the tester information whose face direction exceeds the range; Step S29: If the number of testers still exceeds the preset number, all data obtained this time are discarded.
8. A multi-angle sight tracking and acquisition system, used to implement the multi-angle sight tracking and acquisition method according to any one of claims 1 to 7, characterized in that: include: A first display module, used to control the display to display the test mark at a first position; A first acquisition module controls the first depth camera and the second depth camera to obtain an eye image and position information of the tester, and forms a data pair with the first position; wherein the optical axes of the first depth camera and the second depth camera are not parallel; 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; A second display module, used to control the display to display the test mark at a second position; The second acquisition module controls the first depth camera and the second depth camera to obtain the eye image and position information of the tester, and forms a data pair with the second position.
9. A multi-angle sight tracking and acquisition device, characterized in that: include: processor; a memory storing executable instructions of the processor; Wherein, the processor is configured to execute the steps of the multi-angle line of sight tracking and acquisition method described in any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium for storing a program, characterized in that: When the program is executed, the steps of the multi-angle line of sight tracking and acquisition method described in any one of claims 1 to 7 are implemented.
