Sight collection method and system, electronic equipment and readable storage medium

By combining the rangefinder and the target camera with the calibration board, the point of sight of the human eye is accurately determined, which solves the problem of insufficient sight detection accuracy in the existing technology and improves the flexibility and collection efficiency of the system.

CN118570773APending Publication Date: 2024-08-30RUILIAN XINGCHEN (BEIJING) TECH CO LTD

Patent Information

Application Number
CN202310152815.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult to accurately obtain the point of view of the human eye in the image with the existing technology, resulting in insufficient accuracy of line of sight detection in the vehicle assisted driving system, and the acquisition process is complex and unsafe.

Method used

Through the rangefinder and the target camera, the calibration plate is used to construct the target coordinate system. The coordinates of the laser impact point are determined based on the distance information collected by the rangefinder, and the line of sight information data is generated based on the binocular image to achieve accurate positioning of the human eye's line of sight. Sure.

Benefits of technology

It improves the accuracy of line of sight detection and the flexibility of system deployment, reduces the complexity and safety risks of the collection process, and enhances the efficiency of line of sight collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570773A
    Figure CN118570773A
Patent Text Reader

Abstract

The embodiment of the invention provides a sight line collection method and system, electronic equipment and a readable storage medium, and relates to the technical field of computers. According to the embodiment of the invention, the target coordinate system and the target conversion relation can be constructed through the calibration plate, the range finder and the target camera, and then the drop point coordinate of the laser drop point of the range finder in the target coordinate system corresponding to the target camera is determined according to the distance information collected by the range finder. When the shooting condition is met, the target camera can be controlled to shoot the binocular image so as to generate the sight line information data. In the process, the laser drop point can represent the sight line drop point of the human eye, so that the accurate coordinate of the sight line drop point of the human eye can be determined. Meanwhile, the sight line information data can be acquired without building a complex site, so that the flexibility of system deployment and the efficiency of sight line acquisition can be improved on the premise of ensuring the accuracy of sight line acquisition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a line of sight acquisition method, system, electronic device and readable storage medium. Background Art

[0002] With the development of computer technology, the assisted driving function of vehicles is becoming more and more perfect, among which the assisted driving function of vehicles includes the detection of dangerous driving. Specifically, the vehicle can detect the driver's line of sight, identify the driver's distraction and remind him / her, so as to avoid dangerous driving behaviors caused by the driver's inattention.

[0003] Among them, the vehicle can detect the driver's line of sight through the line of sight detection model and the driver's facial image. In this process, the accuracy of the output result of the line of sight detection model determines the accuracy of the driver's line of sight detection.

[0004] Since the point where the human eye's line of sight in an image is not available through direct observation, how to accurately obtain the point where the human eye's line of sight in an image is a problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a line of sight acquisition method, system, electronic device and readable storage medium to accurately determine the binocular image and its corresponding line of sight landing point coordinates, reduce the complexity of the system, increase the flexibility of system deployment and the efficiency of line of sight acquisition.

[0006] In a first aspect, a line of sight acquisition method is provided, the method comprising:

[0007] The distance information collected by the rangefinder is obtained, and the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate.

[0008] According to the distance information and the target conversion relationship, the coordinates of the landing point of the laser of the rangefinder in the target coordinate system corresponding to the target camera are determined, wherein the target conversion relationship is used to characterize the coordinate conversion relationship between the target coordinate system and the calibration plate coordinate system.

[0009] In response to satisfying the shooting condition, the target camera is controlled to shoot a binocular image.

[0010] Generate line of sight information data according to the landing point coordinates and the binocular image.

[0011] In some embodiments, the calibration plate coordinate system includes a three-dimensional coordinate system and a two-dimensional coordinate system corresponding to the calibration plate plane.

[0012] Determining the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target conversion relationship includes:

[0013] The coordinates of the intersection between the laser emitted by the rangefinder and the plane of the calibration plate are obtained, and the coordinates of the intersection are two-dimensional coordinates in the two-dimensional coordinate system.

[0014] The intermediate coordinates of the laser landing point in the three-dimensional coordinate system are determined according to the distance information and the intersection coordinates.

[0015] The coordinates of the laser landing point in the target coordinate system are determined according to the intermediate coordinates and the target conversion relationship.

[0016] In some embodiments, generating sight line information data according to the landing point coordinates and the binocular image includes:

[0017] The coordinates of the starting point of the line of sight are determined according to the binocular image.

[0018] The sight line angle information is determined according to the target sight line formed by the sight line starting point coordinates and the landing point coordinates.

[0019] Generate sight line information data according to the sight line angle information and the binocular image.

[0020] In some embodiments, generating sight line information data according to the landing point coordinates and the binocular image includes:

[0021] The coordinates of the starting point of the line of sight are determined according to the binocular image.

[0022] According to the target line of sight formed by the coordinates of the starting point of the line of sight and the coordinates of the landing point, determine the target area passed by the target line of sight, wherein the target area is a predetermined area in the target coordinate system, the predetermined area is an area composed of coordinate points in the target coordinate system, and the number of the predetermined areas is greater than or equal to 1.

[0023] Generate line of sight information data according to the target area and the binocular image.

[0024] In some embodiments, the predetermined area is a predetermined area in a vehicle cockpit.

[0025] In some embodiments, in response to satisfying the shooting condition, controlling the target camera to shoot a binocular image includes:

[0026] Controlling the display of a binocular display interface, wherein the binocular display interface at least includes a shooting control button.

[0027] In response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

[0028] In some embodiments, the method further comprises:

[0029] Control and display a mark display interface, wherein the mark display interface at least includes a save control button.

[0030] In response to the save control button being triggered, the landing point coordinates are saved.

[0031] In some embodiments, the method further comprises:

[0032] A target training set is generated according to the sight line information data.

[0033] A gaze detection model is trained according to the target training set.

[0034] In a second aspect, a sight line acquisition system is provided, the system comprising:

[0035] Calibration plate.

[0036] A rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate, is configured to emit laser to generate a laser landing point and collect distance information.

[0037] The target camera is configured to be controlled to capture binocular images.

[0038] The processor is configured to perform the following steps:

[0039] The distance information collected by the rangefinder is obtained, and the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate.

[0040] According to the distance information and the target conversion relationship, the coordinates of the landing point of the laser of the rangefinder in the target coordinate system corresponding to the target camera are determined, wherein the target conversion relationship is used to characterize the coordinate conversion relationship between the target coordinate system and the calibration plate coordinate system.

[0041] In response to satisfying the shooting condition, the target camera is controlled to shoot a binocular image.

[0042] Generate line of sight information data according to the landing point coordinates and the binocular image.

[0043] In some embodiments, the rangefinder is fixedly mounted on the calibration plate.

[0044] In some embodiments, the system further comprises a display screen.

[0045] The display screen is configured to controllably display a binocular display interface, wherein the binocular display interface at least includes a shooting control button.

[0046] The processor is specifically configured to perform the following steps:

[0047] Control the display screen to display a binocular display interface.

[0048] In response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

[0049] In some embodiments, the system further comprises a display screen.

[0050] The display screen is configured to controllably display a mark display interface, wherein the mark display interface at least includes a save control button.

[0051] The processor is specifically configured to perform the following steps:

[0052] Controls the display mark display interface.

[0053] In response to the save control button being triggered, the landing point coordinates are saved.

[0054] In some embodiments, the target camera is a binocular camera.

[0055] In a third aspect, a sight line acquisition device is provided, the device comprising:

[0056] The distance information acquisition module is configured to acquire the distance information collected by the rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate.

[0057] The landing point coordinate determination module is configured to determine the landing point coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target transformation relationship, wherein the target transformation relationship is used to characterize the coordinate transformation relationship between the target coordinate system and the calibration plate coordinate system.

[0058] The binocular image shooting module is configured to execute, in response to satisfying the shooting condition, controlling the target camera to shoot the binocular image.

[0059] The sight line information data generating module is configured to generate sight line information data according to the landing point coordinates and the binocular image.

[0060] In some embodiments, the calibration plate coordinate system includes a three-dimensional coordinate system and a two-dimensional coordinate system corresponding to the calibration plate plane.

[0061] The landing point coordinate determination module is specifically configured to execute:

[0062] The coordinates of the intersection between the laser emitted by the rangefinder and the plane of the calibration plate are obtained, and the coordinates of the intersection are two-dimensional coordinates in the two-dimensional coordinate system.

[0063] The intermediate coordinates of the laser landing point in the three-dimensional coordinate system are determined according to the distance information and the intersection coordinates.

[0064] The coordinates of the laser landing point in the target coordinate system are determined according to the intermediate coordinates and the target conversion relationship.

[0065] In some embodiments, the sight line information data generation module is specifically configured to execute:

[0066] The coordinates of the starting point of the line of sight are determined according to the binocular image.

[0067] The sight line angle information is determined according to the target sight line formed by the sight line starting point coordinates and the landing point coordinates.

[0068] Generate sight line information data according to the sight line angle information and the binocular image.

[0069] In some embodiments, the sight line information data generation module is specifically configured to execute:

[0070] The coordinates of the starting point of the line of sight are determined according to the binocular image.

[0071] According to the target line of sight formed by the coordinates of the starting point of the line of sight and the coordinates of the landing point, determine the target area passed by the target line of sight, wherein the target area is a predetermined area in the target coordinate system, the predetermined area is an area composed of coordinate points in the target coordinate system, and the number of the predetermined areas is greater than or equal to 1.

[0072] Generate line of sight information data according to the target area and the binocular image.

[0073] In some embodiments, the predetermined area is a predetermined area in a vehicle cockpit.

[0074] In some embodiments, the binocular image capturing module is specifically configured to perform:

[0075] Controlling the display of a binocular display interface, wherein the binocular display interface at least includes a shooting control button.

[0076] In response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

[0077] In some embodiments, the apparatus further comprises:

[0078] The mark display interface display module is configured to execute control to display the mark display interface, and the mark display interface at least includes a save control button.

[0079] The saving module is configured to save the landing point coordinates in response to the saving control button being triggered.

[0080] In some embodiments, the apparatus further comprises:

[0081] The target training set generation module is configured to generate a target training set according to the sight line information data.

[0082] The training module is configured to train the sight line detection model according to the target training set.

[0083] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect.

[0084] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in the first aspect is implemented.

[0085] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the method described in the first aspect.

[0086] The embodiment of the present application can construct a target coordinate system and a target conversion relationship through a calibration plate, a rangefinder and a target camera, and then determine the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information collected by the rangefinder. When the shooting conditions are met, the embodiment of the present application can control the target camera to shoot binocular images to generate line of sight information data. In this process, since the laser landing point can characterize the line of sight landing point of the human eye, the embodiment of the present application can determine the accurate coordinates of the line of sight landing point of the human eye. At the same time, since the embodiment of the present application does not need to build a complex site to obtain line of sight information data, therefore, under the premise of ensuring the accuracy of line of sight acquisition, the embodiment of the present application can also increase the flexibility of system deployment and the efficiency of line of sight acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] The above and other purposes, features and advantages of the embodiments of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings, in which:

[0088] Figure 1 A schematic diagram of a sight line acquisition system according to an embodiment of the present application;

[0089] Figure 2 This is a flow chart of the line of sight acquisition method according to an embodiment of the present application;

[0090] Figure 3 A flowchart of another line of sight acquisition method according to an embodiment of the present application;

[0091] Figure 4 A schematic diagram of a mark display interface of an embodiment of the present application;

[0092] Figure 5 A schematic diagram of a binocular display interface according to an embodiment of the present application;

[0093] Figure 6 A schematic diagram of a predetermined area and a target sight line of sight of an embodiment of the present application;

[0094] Figure 7 A schematic diagram of a predetermined area in a vehicle cockpit according to an embodiment of the present application;

[0095] Figure 8 This is a schematic diagram of the structure of a sight line acquisition device according to an embodiment of the present application;

[0096] Fig. 9 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0097] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.

[0098] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0099] Unless the context clearly requires otherwise, words such as “include”, “including” and the like in the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as meaning “including but not limited to”.

[0100] In the description of this application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more. In addition, this application authorizes the acquisition, collection, storage, use, processing, transmission, provision and presentation of data on the premise of complying with the provisions of relevant laws and regulations, not infringing on the privacy of others and not violating public order and good morals.

[0101] At present, the assisted driving function of vehicles is becoming more and more perfect, among which the assisted driving function of vehicles includes dangerous driving detection based on the driver's line of sight. Specifically, the vehicle control terminal can take the driver's facial image through the camera inside the car, and perform line of sight detection on the driver's facial image through a pre-trained line of sight detection model to determine information such as the driver's line of sight, line of sight angle, or line of sight area.

[0102] Furthermore, when the vehicle control terminal detects through the line of sight detection model that the driver's line of sight is in a dangerous state (for example, the line of sight deviation angle is too large or the line of sight is not in the safe area), the vehicle control terminal can control the reminder device in the vehicle (such as an audio player or indicator light, etc.) to remind the driver to drive safely, thereby avoiding dangerous driving behavior caused by the driver's inattention.

[0103] In the above process, since the accuracy of the output results of the sight line detection model determines the accuracy of the driver's sight line detection, the sight line detection model needs to be trained with accurate training samples to accurately detect the driver's sight line. Among them, the training samples of the sight line detection model should at least include face images and training annotations for representing the sight line. Since the sight point of the human eye in the face image cannot be obtained by directly observing the image, obtaining accurate training annotations is an important part of the training process of the sight line detection model.

[0104] In the process of obtaining training samples in related technologies, one of the methods is to build a screen matrix around the windshield and the left and right rearview mirrors outside the cabin to display the sight point on the screen, thereby obtaining the coordinates of the sight point. However, the site construction of this method is complex, requires precise screen matrix calibration, and the collected viewing angle in the cabin is limited (that is, there is no screen matrix in the cabin), and the coordinates of the sight point at all positions cannot be obtained. In another way, the related technology will adopt a combination of a servo and a laser rangefinder, using the laser point of the laser rangefinder as the sight point, and establishing the sight starting point and landing point position in the servo coordinate system through the rotation angle fed back by the servo. However, the device operation of this method is relatively complicated, and the test personnel need to look directly at the laser point for a long time during collection, which is easy to cause damage to the human eye, and will also cause collection errors due to eye discomfort of the test personnel.

[0105] In other words, the line of sight acquisition method of the related technology has problems such as complex site construction and inaccurate acquisition. Therefore, how to quickly and accurately obtain the line of sight of the human eye in the image is a problem that needs to be solved urgently.

[0106] In order to solve the above problems, the embodiments of the present application provide a line of sight acquisition method and a line of sight acquisition system. The line of sight acquisition method can be applied to a processor of the line of sight acquisition system. The processor can be a processor of an electronic device, wherein the electronic device can be a terminal or a server. The terminal can be a smart phone, a tablet computer or a personal computer (PC), etc. The server can be a single server, a server cluster configured in a distributed manner, or a cloud server.

[0107] like Figure 1 As shown, the sight line acquisition system of the embodiment of the present application may include a calibration plate 11, a rangefinder 12, a target camera 13 and a processor 14. Among them, the processor 14 can be connected to the rangefinder 12 and the target camera 13 by wired connection (such as data cable connection, etc.) or wireless connection (such as Bluetooth connection or wireless network connection, etc.) to communicate with the rangefinder 12 and the target camera 13 to obtain the distance information collected by the rangefinder 12 and the image collected by the target camera 13. In order to clearly show the various devices in the sight line acquisition system, the embodiment of the present application omits the connection line between the processor 14 and the rangefinder 12 and the target camera 13. In addition, the plane 111 is used to represent the plane where the calibration plate 11 is located, the dotted line 121 is used to represent the laser emitted by the rangefinder 12, the laser emission direction of the rangefinder 12 (i.e., the direction shown by the dotted line 121) is perpendicular to the plane of the calibration plate, the laser landing point 15 is used to represent the laser landing point of the rangefinder 12, and the dotted line 161 is used to represent the sight line of the tester 16.

[0108] Specifically, when collecting the line of sight of the test person 16, the processor 14 can obtain the distance information collected by the rangefinder 12, and then determine the landing point coordinates of the laser landing point 15 of the rangefinder 12 in the target coordinate system corresponding to the target camera 13 according to the distance information and the target conversion relationship. Further, in response to meeting the shooting conditions, the processor 14 can control the target camera 13 to shoot the binocular image of the test person 16, thereby generating the line of sight information data of the test person 16 according to the landing point coordinates and the binocular image.

[0109] That is to say, during the line of sight acquisition process, since the target camera 13 cannot simultaneously capture the binocular image of the test person 16 and the laser landing point 15, the embodiment of the present application can use the calibration plate 11 as an intermediate device, and use the laser landing point 15 instead of the line of sight landing point, so as to achieve line of sight acquisition. Specifically, when the test person 16 looks at the position indicated by the laser landing point 15, the laser landing point 15 can represent the line of sight landing point of the test person 16. Furthermore, the processor 14 can perform a coordinate system conversion on the laser landing point 15 according to the distance information and the target conversion relationship, so as to obtain the landing point coordinates of the laser landing point 15 in the target coordinate system corresponding to the target camera 13, and the landing point coordinates are the line of sight landing point coordinates of the test person 16. When the shooting conditions are met in response, the processor 14 can control the target camera 13 to capture the binocular image of the test person 16, and further determine the line of sight information data.

[0110] After determining the line of sight information data, the embodiment of the present application obtains the binocular image of the face and the accurate coordinates of the point where the human eye's line of sight falls in the image. Furthermore, the embodiment of the present application can construct a training set of the line of sight detection model based on the line of sight information data, and train the line of sight detection model.

[0111] Moreover, the line of sight acquisition in the embodiment of the present application only includes a calibration plate 11, a rangefinder 12, a target camera 13 and a processor 14, and it does not require the construction of a complex site to obtain line of sight information data, which increases the flexibility of system deployment and the efficiency of line of sight acquisition.

[0112] It should also be noted that, since the embodiment of the present application uses the laser landing point 15 to obtain the sight point of the human eye, and the sight point of the human eye only needs to coincide with the laser landing point 15, in the embodiment of the present application, the sight information data can be determined by separating marking and shooting. That is to say, in practical applications, the sight acquisition system can first irradiate a number of predetermined points through the rangefinder 12 (the predetermined points can be marked by marking paper, etc.), and the processor 14 records the landing point coordinates 15 corresponding to the laser landing point at each predetermined point. On the other hand, the tester 16 can look at each predetermined point in turn (no laser irradiation at this time), and at the same time, the processor 14 can shoot the tester 16 through the target camera 13 to obtain the binocular image of the tester 16 when looking at each predetermined point. Further, after obtaining the landing point coordinates 15 and binocular images corresponding to each predetermined point, the embodiment of the present application can generate the sight information data of the tester 16 according to the landing point coordinates 15 and the binocular image.

[0113] Therefore, the embodiment of the present application determines the line of sight information data by separating marking and shooting, which can also avoid damage to the human eye during the line of sight collection process and avoid collection errors caused by eye discomfort of the tester 16.

[0114] The following will describe in detail a line of sight acquisition method provided by an embodiment of the present application in combination with a specific implementation method. Figure 2 As shown, the specific steps are as follows:

[0115] In step S100, distance information collected by a rangefinder is obtained.

[0116] Among them, the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate, and the calibration plate is a geometric model with a fixed-pitch pattern array. The camera device captures images through a flat plate with a fixed-pitch pattern array (i.e., the calibration plate) and calculates through a calibration algorithm, and can obtain a geometric model of the captured image, thereby obtaining high-precision measurement and reconstruction results, which can effectively correct lens distortion and improve the accuracy of image measurement and photogrammetry in machine vision applications. That is to say, in the embodiment of the present application, by shooting the calibration plate with a target camera, a coordinate transformation relationship (i.e., a target transformation relationship) between the target camera and the calibration plate can be established. In addition, the calibration plate of the embodiment of the present application can be a checkerboard calibration plate, a circular grid calibration plate, or other types of calibration plates.

[0117] It should be noted that the rangefinder and the calibration plate in the embodiment of the present application can be fixedly connected together, or they can be two independent devices without a connection relationship.

[0118] In an optional implementation, the rangefinder can be fixedly mounted on the calibration plate. That is, in the embodiment of the present application, the rangefinder and the calibration plate can be used as a whole for line of sight acquisition, without the need to adjust the vertical relationship between the two separately, further increasing the flexibility of system deployment and the efficiency of line of sight acquisition.

[0119] In step S200, the coordinates of the landing point of the laser of the rangefinder in the target coordinate system corresponding to the target camera are determined according to the distance information and the target conversion relationship.

[0120] Among them, the target conversion relationship is used to characterize the coordinate conversion relationship between the target coordinate system and the calibration plate coordinate system. The embodiment of the present application can shoot the calibration plate through the target camera, so as to establish the target conversion relationship between the target camera and the calibration plate. In the process of line of sight acquisition, since the target camera cannot simultaneously capture the binocular image of the tester and the laser landing point, the embodiment of the present application can use the calibration plate as an intermediate device and replace the line of sight landing point with the laser landing point to achieve line of sight acquisition.

[0121] Specifically, since the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate, the coordinates of the intersection of the laser and the plane of the calibration plate (i.e., the horizontal and vertical coordinates of the intersection on the plane of the calibration plate) can represent the horizontal and vertical coordinates of the laser landing point on the plane of the calibration plate. Furthermore, the embodiment of the present application can determine the distance between the laser landing point and the plane of the calibration plate through the distance information collected by the rangefinder and the distance between the rangefinder and the plane of the calibration plate, and then determine the coordinates of the laser landing point in the three-dimensional coordinate system of the calibration plate. Furthermore, the embodiment of the present application can determine the landing coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera based on the target conversion relationship and the coordinates of the laser landing point in the three-dimensional coordinate system of the calibration plate.

[0122] Among them, the target conversion relationship can be expressed as the following formula:

[0123]

[0124] Among them, R cb and T cb It is a predetermined external parameter, which can be obtained by solving the PNP (Perspective-n-Point) problem by using the three-dimensional coordinate points of the calibration plate and the two-dimensional matching corner points of the calibration plate in the image. l Used to represent the horizontal coordinate of the laser landing point in the calibration plate coordinate system, Y l It is used to represent the ordinate of the laser landing point in the calibration plate coordinate system, and d is used to represent the distance between the laser landing point and the calibration plate (i.e., the z-axis coordinate of the laser landing point in the calibration plate coordinate system). c1 It is used to represent the horizontal coordinate of the laser landing point in the target coordinate system (i.e. the target camera coordinate system), Y c1 Used to represent the vertical coordinate of the laser landing point in the target coordinate system, Z c1 Used to characterize the vertical coordinate of the laser landing point in the target coordinate system.

[0125] Therefore, after the embodiment of the present application determines the horizontal and vertical coordinates and distance information of the laser landing point on the calibration plate plane, the three-dimensional coordinates of the laser landing point in the target coordinate system can be determined according to the above formula.

[0126] In an optional embodiment, the calibration plate coordinate system includes a three-dimensional coordinate system and a two-dimensional coordinate system corresponding to the calibration plate plane. The three-dimensional coordinate system and the two-dimensional coordinate system corresponding to the calibration plate may use the same coordinate origin (for example, both use the lower left corner of the calibration plate as the coordinate origin), or may use different coordinate origins.

[0127] Further, such as Figure 3 As shown, the above step S200 may include the following steps:

[0128] In step S210, the coordinates of the intersection of the laser emitted by the rangefinder and the plane of the calibration plate are obtained.

[0129] The intersection coordinates are two-dimensional coordinates in a two-dimensional coordinate system. Since the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate, the intersection coordinates of the laser and the calibration plate plane (i.e., the horizontal and vertical coordinates of the intersection on the calibration plate plane) can represent the horizontal and vertical coordinates of the laser landing point on the calibration plate plane.

[0130] In step S220, the intermediate coordinates of the laser landing point in the three-dimensional coordinate system are determined according to the distance information and the intersection coordinates.

[0131] According to the above formula, the intermediate coordinates can be composed of the two-dimensional coordinates in the two-dimensional coordinate system and the distance between the laser landing point and the calibration plate.

[0132] In one case, if the laser emission starting point of the rangefinder coincides with the plane of the calibration plate (for example, when the rangefinder is fixedly set on the calibration plate), the distance information measured by the rangefinder can be directly used as the distance between the laser landing point and the calibration plate. In another case, if the laser emission starting point of the rangefinder does not coincide with the plane of the calibration plate, the distance between the laser landing point and the calibration plate can be obtained by adding the distance information to the distance between the rangefinder and the calibration plate plane, or by subtracting the distance information from the distance between the rangefinder and the calibration plate plane. Further, after determining the distance between the laser landing point and the calibration plate according to the distance information, the embodiment of the present application can determine the intermediate coordinates of the laser landing point in the three-dimensional coordinate system according to the distance and the intersection coordinates.

[0133] In step S230, the coordinates of the laser landing point in the target coordinate system are determined according to the intermediate coordinates and the target conversion relationship.

[0134] In the embodiment of the present application, since the embodiment of the present application determines the coordinates of the laser landing point in the target coordinate system through the distance information and target conversion relationship collected by the rangefinder, the embodiment of the present application does not need to build a complex site to obtain the coordinate information of the line of sight landing point, which increases the flexibility of system deployment and the efficiency of line of sight acquisition.

[0135] In step S300, in response to satisfying a shooting condition, the target camera is controlled to shoot a binocular image.

[0136] The number of target cameras can be one or more. In the embodiment of the present application, if the sight line acquisition system includes multiple target cameras, any one of the target cameras can capture the calibration plate, and the target coordinate system and target conversion relationship can be constructed. Therefore, when multiple target cameras are set in the embodiment of the present application, the fault tolerance of the system can be increased, and the success rate of sight line detection can be improved.

[0137] Since the embodiment of the present application obtains the sight point of the human eye through the laser landing point, and the sight point of the human eye only needs to coincide with the laser landing point, the embodiment of the present application can determine the sight information data by separating marking and shooting, or by simultaneously performing marking and shooting.

[0138] Specifically, for the simultaneous method, the embodiment of the present application can illuminate a predetermined point through a rangefinder and record the landing coordinates corresponding to the laser landing point at the predetermined point. Then, the tester can look at the predetermined point. At the same time, the embodiment of the present application can shoot the tester through the target camera to obtain the binocular image of the tester when looking at each predetermined point. Based on the above process, the embodiment of the present application can obtain the landing coordinates and binocular image corresponding to a predetermined point. Further, the embodiment of the present application can repeat the above process to obtain the landing coordinates and binocular images corresponding to all predetermined points.

[0139] Regarding the separation method, the embodiment of the present application can first illuminate a number of predetermined points (the predetermined points can be marked by marking paper or the like) through a rangefinder, and record the coordinates of the laser landing points corresponding to each predetermined point. On the other hand, the tester can look at each predetermined point in turn (no laser irradiation at this time), and at the same time, the embodiment of the present application can shoot the tester through a target camera to obtain a binocular image of the tester when looking at each predetermined point.

[0140] Among them, since the tester's line of sight landing point and the laser landing point of the rangefinder can overlap through a predetermined point, the line of sight landing point corresponding to the human eye in the binocular image and the landing point coordinates of the rangefinder are the same, that is, the two can form a data set corresponding to the same line of sight landing point (that is, line of sight information data).

[0141] Therefore, the embodiment of the present application determines the line of sight information data by separating marking and shooting, which can also avoid damage to the human eye during the line of sight collection process and avoid collection errors caused by eye discomfort of the test personnel.

[0142] It should be noted that, since the binocular image and the landing point coordinates are associated through the predetermined point, the binocular image and the landing point coordinates corresponding to the same predetermined point can generate line of sight information data, while the binocular image and the landing point coordinates corresponding to different predetermined points cannot generate line of sight information data.

[0143] Furthermore, since the embodiments of the present application can determine the line of sight information data by separating marking and shooting, the target camera shooting the binocular image is a relatively independent process, and the shooting condition can be reaching a predetermined time interval (for example, shooting every 3 seconds) or receiving a shooting instruction, etc.

[0144] In an optional implementation, the target camera may be a binocular camera, wherein the binocular camera has better spatial perception capability than a monocular camera, therefore, the embodiment of the present application uses the binocular camera as the target camera, and can more quickly and accurately construct a spatial coordinate system (i.e., the target coordinate system).

[0145] In addition, since the embodiment of the present application can determine the line of sight information data by separating marking and shooting, the embodiment of the present application can display a marking display interface during the process of marking each predetermined point, and can display a binocular display interface when shooting a binocular image.

[0146] In an optional embodiment, the line of sight acquisition system of the embodiment of the present application may further include a display screen, wherein the display screen may be configured as a controlled display mark display interface or a binocular display interface, the mark display interface may include at least a save control button, and the binocular display interface may include at least a shooting control button.

[0147] For example, Figure 4 As shown, the mark display interface 41 may include an image preview area 411 , a calibration plate status bar 412 , and a control bar 413 .

[0148] The image preview area 411 may include one or more preview images of the target camera (the number of preview images is the same as the number of target cameras), and the preview image may be used to display the calibration plate photographed by the target camera. The calibration plate status bar 412 may be used to display whether each target camera has photographed the calibration plate. The control bar 413 includes a distance information bar, a landing point information bar, a save control button, and a switch control button.

[0149] In the process of marking each predetermined point, the target camera needs to construct a target coordinate system and a target transformation relationship by shooting the calibration plate. When the target camera shoots the calibration plate, the calibration plate status bar 412 may display a visible mark corresponding to the target camera (i.e., a dark mark in the calibration plate status bar 412). Correspondingly, when the target camera does not shoot or does not completely shoot the calibration plate, the calibration plate status bar 412 may display an invisible mark corresponding to the target camera (i.e., a white mark in the calibration plate status bar 412).

[0150] Furthermore, when there is a target camera that captures the calibration plate, the embodiment of the present application can construct a target coordinate system and a target conversion relationship to determine the coordinates of the landing point of the rangefinder. Furthermore, the distance information column in the control column 413 can display the distance information measured by the rangefinder, and the landing point information column can display information related to the landing point coordinates (such as the landing point coordinates or the area where the landing point coordinates are located). The save control button can be used to control the saving of the landing point coordinates, and the switch control button can be used to control the switching of the predetermined point.

[0151] Specifically, the process of saving the landing point coordinates may include the following steps:

[0152] In step S500, the display of the mark display interface is controlled.

[0153] In step S600, in response to the save control button being triggered, the drop point coordinates are saved.

[0154] Through the marking display interface of the embodiment of the present application, the embodiment of the present application can intuitively display the process of marking a predetermined point, making the marking process visual and increasing the controllability of the marking process.

[0155] For binocular display interface, such as Figure 5 As shown, the binocular display interface 51 may include an image preview area 511 , a related information column 512 and a control column 513 .

[0156] The image preview area 511 may include one or more preview images of the target camera (the number of preview images is the same as the number of target cameras), and the preview images may be used to display the binocular images captured by the target camera. The related information column 512 may be used to display relevant information of the sight line detection (such as the height of the tester and other information that affects the starting point of the sight line). The control column 513 includes an environment information column, other information columns, and a shooting control button.

[0157] The environment information column can be used to display the environment information when the sight line is collected, such as daytime, nighttime, or backlighting, etc. The other information column can be used to display other information that affects the sight line collection, such as whether the tester wears myopia glasses or sunglasses.

[0158] Furthermore, the above step S300 may include the following steps:

[0159] In step S310, the binocular display interface is controlled to be displayed.

[0160] In step S320 , in response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

[0161] Through the binocular display interface of the embodiment of the present application, the embodiment of the present application can intuitively display the process of capturing binocular images, thereby visualizing the capturing process and increasing the controllability of the capturing process.

[0162] In step S400, line of sight information data is generated according to the landing point coordinates and the binocular image.

[0163] The embodiment of the present application can construct a target coordinate system and a target conversion relationship through a calibration plate, a rangefinder and a target camera, and then determine the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information collected by the rangefinder. When the shooting conditions are met, the embodiment of the present application can control the target camera to shoot binocular images to generate line of sight information data. In this process, since the laser landing point can characterize the line of sight landing point of the human eye, the embodiment of the present application can determine the accurate coordinates of the line of sight landing point of the human eye. At the same time, since the embodiment of the present application does not need to build a complex site to obtain line of sight information data, therefore, under the premise of ensuring the accuracy of line of sight acquisition, the embodiment of the present application can also increase the flexibility of system deployment and the efficiency of line of sight acquisition.

[0164] In an optional implementation, the sight information data can be used as data in the training set in the subsequent model training process. Specifically, the model training process may include the following steps:

[0165] In step S700, a target training set is generated according to the sight line information data.

[0166] Among them, the binocular image can be used as input data for model training, and the data related to the landing point coordinates can be used as training annotations for model training. In the embodiment of the present application, the landing point coordinates themselves, the sight angle determined according to the landing point coordinates, or the sight landing point area determined according to the landing point coordinates can be used as training annotations for model training according to actual conditions.

[0167] In step S800, a sight line detection model is trained according to a target training set.

[0168] Among them, the trained line of sight detection model can output the corresponding line of sight angle information according to the binocular images taken in real time, so as to judge whether the driver has dangerous driving behavior based on the line of sight angle information and ensure the driver's driving safety.

[0169] In addition, since the target training set is generated based on the sight line information data, and the training annotations in the training set may include multiple forms, therefore, for the sight line information data, in an optional implementation, the above step S400 may include the following steps:

[0170] In step S410, the coordinates of the starting point of the line of sight are determined according to the binocular image.

[0171] The coordinates of the sight starting point may be the coordinates of the center points of both eyes in the binocular image in the target coordinate system, or may be the coordinates of any one eye in the binocular image in the target coordinate system.

[0172] In step S420, the sight line angle information is determined according to the target sight line formed by the sight line starting point coordinates and the landing point coordinates.

[0173] Specifically, the embodiment of the present application can determine the vector corresponding to the target sight line according to the coordinates of the sight line starting point and the coordinates of the landing point. The vector can be expressed as the following formula:

[0174]

[0175] Among them, vector is used to represent the vector corresponding to the target line of sight, X v1 , Y v1 and Z v1 Can be used to represent one of the coordinates of the starting point and the landing point of the sight, X v2 , Y v2 and Z v2 It can be used to characterize the other of the starting point coordinates of the sight line and the landing point coordinates. Through the vector difference between the starting point coordinates of the sight line and the landing point coordinates, the embodiment of the present application can determine the vector corresponding to the target sight line.

[0176] Furthermore, the embodiment of the present application can determine the sight angle information corresponding to the target sight through the vector corresponding to the target sight. Specifically, the sight angle information may include a pitch angle and a yaw angle. The pitch angle can be represented by the following formula:

[0177] pitch = arcsin(vector[1])

[0178] Among them, pitch is used to represent the pitch angle corresponding to the target line of sight.

[0179] The yaw angle can be expressed as follows:

[0180] yaw = arcsin(vector[0])

[0181] Among them, yaw is used to characterize the yaw angle corresponding to the target line of sight.

[0182] In step S430, the sight line information data is generated according to the sight line angle information and the binocular image.

[0183] During the model training process, binocular images can be used as the input of the model, and the pitch angle and yaw angle in the line of sight angle information can be used as the training annotations of the model. The trained model can output the corresponding line of sight angle information based on the binocular images taken in real time, thereby judging whether the driver has dangerous driving behavior based on the line of sight angle information.

[0184] In an optional implementation, the above step S400 may also include the following steps:

[0185] In step S440, the coordinates of the starting point of the line of sight are determined according to the binocular image.

[0186] The coordinates of the sight starting point may be the coordinates of the center points of both eyes in the binocular image in the target coordinate system, or may be the coordinates of any one eye in the binocular image in the target coordinate system.

[0187] In step S450, a target area passed by the target sight line is determined according to the target sight line formed by the sight line starting point coordinates and the landing point coordinates.

[0188] The target area is a predetermined area in the target coordinate system, the predetermined area is an area composed of coordinate points in the target coordinate system, and the number of predetermined areas is greater than or equal to 1. The embodiment of the present application can determine the target area passed by the target line of sight through the intersection between the target line of sight and the predetermined area.

[0189] like Figure 6 As shown, the predetermined area 61 is the area formed by the coordinate points in the target coordinate system. The predetermined area 61 passes through the point n (n1, n2, n3), and the normal direction vector of the predetermined area 61 is V p (v p1 ,v p2 ,v p3 ), vector V l (v1, v2, v3) is used to represent the vector corresponding to the target line of sight, s (s1, s2, s3) is the starting point coordinate of the target line of sight, m ​​(m1, m2, m3) is the landing point coordinate of the target line of sight, and the intersection between the target line of sight and the predetermined area 61 is O (x, y, z).

[0190] Furthermore, the equation corresponding to the target line of sight may include the following formula:

[0191] x=m1+v1*t (1)

[0192] y=m2+v2*t (2)

[0193] z=m3+v3*t (3)

[0194] The plane equation corresponding to the predetermined area 61 may be as follows:

[0195] v p1 *(x-n1)+v p2 *(y-n2)+v p3 *(z-n3)=0 (4)

[0196] The intersection point O between the target sight line and the predetermined area 61 satisfies the above formulas (1), (2), (3) and (4). Therefore, t can be obtained by combining the above formulas (1), (2), (3) and (4). Furthermore, by substituting t back into the above formulas (1), (2) and (3), the intersection point O can be obtained.

[0197] Furthermore, the embodiment of the present application can determine whether the intersection point O is in the predetermined area 61 according to the coordinates of the intersection point O. For example, if the four corner points of the predetermined area 61 are A1, A2, A3 and A4, then the vector formed by the intersection point O and the above four corner points is and Furthermore, the embodiment of the present application can calculate the angle between two adjacent vectors. If the sum of the angles is 360 degrees, it indicates that the intersection point O is in the predetermined area 61. Otherwise, it indicates that the intersection point O is not in the predetermined area 61. Further, based on the same method, the embodiment of the present application can determine the target area through which the target line of sight passes.

[0198] That is to say, the embodiment of the present application can construct a digital model through the coordinate points in the target coordinate system to determine the predetermined area, thereby determining the target area passed by the target line of sight based on the target line of sight formed by the coordinates of the starting point of the line of sight and the coordinates of the landing point. This process does not require the construction of a physical model, that is, it is not necessary to build a complex site to obtain line of sight information data, which increases the flexibility of system deployment and the efficiency of line of sight acquisition.

[0199] In an optional implementation, the predetermined area may be a predetermined area in a vehicle cockpit.

[0200] For example, Figure 7 As shown, the predetermined areas in the vehicle cockpit may include: an observation area 71 on the left side of the front windshield, an observation area 72 on the right side of the front windshield, an observation area 73 of the left rearview mirror, an observation area 74 of the right rearview mirror, an observation area 75 of the vehicle control terminal display screen, and other areas 76 other than the above areas.

[0201] Specifically, observation area 71, observation area 72, observation area 73 and observation area 74 are areas that need to be watched at all times during normal driving, so the above four areas are safe areas. Observation area 75 and other areas 76 are areas that need to be watched for a short time during normal driving, so observation area 75 and other areas 76 are risky areas. If the driver watches observation area 75 and other areas 76 for a long time, it indicates that the driver may have dangerous driving behaviors such as inattention.

[0202] In addition, the embodiment of the present application can select a suitable vehicle cockpit to determine each predetermined area based on information such as the vehicle model and model, thereby improving the targetedness of the predetermined area and strengthening the detection effect of the line of sight detection model after subsequent model training.

[0203] In step S460, line of sight information data is generated according to the target area and the binocular image.

[0204] In the subsequent model training process, the binocular image can be used as the input data of the model training, and the target area can be used as the training annotation of the model training. Furthermore, the trained sight detection model can output the area where the driver is looking based on the binocular image taken in real time, so as to judge whether the driver has dangerous driving behavior based on the area and ensure the driver's driving safety.

[0205] The embodiment of the present application can construct a target coordinate system and a target conversion relationship through a calibration plate, a rangefinder and a target camera, and then determine the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information collected by the rangefinder. When the shooting conditions are met, the embodiment of the present application can control the target camera to shoot binocular images to generate line of sight information data. In this process, since the laser landing point can characterize the line of sight landing point of the human eye, the embodiment of the present application can determine the accurate coordinates of the line of sight landing point of the human eye. At the same time, since the embodiment of the present application does not need to build a complex site to obtain line of sight information data, therefore, under the premise of ensuring the accuracy of line of sight acquisition, the embodiment of the present application can also increase the flexibility of system deployment and the efficiency of line of sight acquisition.

[0206] Based on the same technical concept, the embodiment of the present application also provides a sight line acquisition device, such as Figure 8 As shown, the device includes: a distance information acquisition module 81, a landing point coordinate determination module 82, a binocular image shooting module 83 and a line of sight information data generation module 84.

[0207] The distance information acquisition module 81 is configured to acquire distance information collected by a rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate.

[0208] The landing point coordinate determination module 82 is configured to determine the landing point coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target transformation relationship, wherein the target transformation relationship is used to characterize the coordinate transformation relationship between the target coordinate system and the calibration plate coordinate system.

[0209] The binocular image shooting module 83 is configured to control the target camera to shoot a binocular image in response to satisfying a shooting condition.

[0210] The sight line information data generating module 84 is configured to generate sight line information data according to the landing point coordinates and the binocular image.

[0211] In some embodiments, the calibration plate coordinate system includes a three-dimensional coordinate system and a two-dimensional coordinate system corresponding to the calibration plate plane.

[0212] The landing point coordinate determination module 82 is specifically configured to execute:

[0213] The coordinates of the intersection between the laser emitted by the rangefinder and the plane of the calibration plate are obtained, and the coordinates of the intersection are two-dimensional coordinates in the two-dimensional coordinate system.

[0214] The intermediate coordinates of the laser landing point in the three-dimensional coordinate system are determined according to the distance information and the intersection coordinates.

[0215] The coordinates of the laser landing point in the target coordinate system are determined according to the intermediate coordinates and the target conversion relationship.

[0216] In some embodiments, the sight line information data generation module 84 is specifically configured to execute:

[0217] The coordinates of the starting point of the line of sight are determined according to the binocular image.

[0218] The sight line angle information is determined according to the target sight line formed by the sight line starting point coordinates and the landing point coordinates.

[0219] Generate sight line information data according to the sight line angle information and the binocular image.

[0220] In some embodiments, the sight line information data generation module 84 is specifically configured to execute:

[0221] The coordinates of the starting point of the line of sight are determined according to the binocular image.

[0222] According to the target line of sight formed by the coordinates of the starting point of the line of sight and the coordinates of the landing point, determine the target area passed by the target line of sight, wherein the target area is a predetermined area in the target coordinate system, the predetermined area is an area composed of coordinate points in the target coordinate system, and the number of the predetermined areas is greater than or equal to 1.

[0223] Generate line of sight information data according to the target area and the binocular image.

[0224] In some embodiments, the predetermined area is a predetermined area in a vehicle cockpit.

[0225] In some embodiments, the binocular image capturing module 83 is specifically configured to perform:

[0226] Controlling the display of a binocular display interface, wherein the binocular display interface at least includes a shooting control button.

[0227] In response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

[0228] In some embodiments, the apparatus further comprises:

[0229] The mark display interface display module is configured to execute control to display the mark display interface, and the mark display interface at least includes a save control button.

[0230] The saving module is configured to save the landing point coordinates in response to the saving control button being triggered.

[0231] In some embodiments, the apparatus further comprises:

[0232] The target training set generation module is configured to generate a target training set according to the sight line information data.

[0233] The training module is configured to train the sight line detection model according to the target training set.

[0234] The embodiment of the present application can construct a target coordinate system and a target conversion relationship through a calibration plate, a rangefinder and a target camera, and then determine the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information collected by the rangefinder. When the shooting conditions are met, the embodiment of the present application can control the target camera to shoot binocular images to generate line of sight information data. In this process, since the laser landing point can characterize the line of sight landing point of the human eye, the embodiment of the present application can determine the accurate coordinates of the line of sight landing point of the human eye. At the same time, since the embodiment of the present application does not need to build a complex site to obtain line of sight information data, therefore, under the premise of ensuring the accuracy of line of sight acquisition, the embodiment of the present application can also increase the flexibility of system deployment and the efficiency of line of sight acquisition.

[0235] Fig. 9 Schematic diagram of an electronic device according to an embodiment of the present application. Fig. 9 As shown, Fig. 9The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 91 and a memory 92. The processor 91 and the memory 92 are connected via a bus 93. The memory 92 is suitable for storing instructions or programs executable by the processor 91. The processor 91 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 91 executes the instructions stored in the memory 92, thereby executing the method flow of the embodiment of the present application as described above to realize the processing of data and the control of other devices. The bus 93 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 94 and the display device and the input / output (I / O) device 95. The input / output (I / O) device 95 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 95 is connected to the system via an input / output (I / O) controller 96.

[0236] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0237] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0238] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.

[0239] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.

[0240] Another embodiment of the present application relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0241] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0242] Another embodiment of the present application relates to a computer program product, including a computer program / instruction, which can implement part or all of the above method embodiments when the computer program / instruction is executed by a processor.

[0243] That is, those skilled in the art can understand that the embodiments of the present application can specify relevant hardware (including the processor itself) through the processor executing a computer program product (computer program / instructions), thereby implementing all or part of the steps in the above-mentioned embodiment method.

[0244] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0245] The solutions described in this specification and in the examples, if they involve the processing of personal information, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.

Claims

1. A line of sight acquisition method, characterized in that: The method comprises: Acquiring distance information collected by a rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate; Determine the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target conversion relationship, wherein the target conversion relationship is used to characterize the coordinate conversion relationship between the target coordinate system and the calibration plate coordinate system; In response to satisfying a shooting condition, controlling the target camera to shoot a binocular image; and Generate line of sight information data according to the landing point coordinates and the binocular image.

2. The method according to claim 1, characterized in that The calibration plate coordinate system includes a three-dimensional coordinate system and a two-dimensional coordinate system corresponding to the calibration plate plane; Determining the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target conversion relationship includes: Obtaining the coordinates of the intersection of the laser emitted by the rangefinder and the plane of the calibration plate, wherein the coordinates of the intersection are two-dimensional coordinates in the two-dimensional coordinate system; Determine the intermediate coordinates of the laser landing point in the three-dimensional coordinate system according to the distance information and the intersection coordinates; and The coordinates of the laser landing point in the target coordinate system are determined according to the intermediate coordinates and the target conversion relationship.

3. The method according to claim 1, characterized in that The generating of sight line information data according to the landing point coordinates and the binocular image comprises: Determine the coordinates of the starting point of sight according to the binocular image; Determining sight line angle information according to the target sight line formed by the sight line starting point coordinates and the landing point coordinates; and Generate sight line information data according to the sight line angle information and the binocular image.

4. The method according to claim 1, characterized in that: The generating of sight line information data according to the landing point coordinates and the binocular image comprises: Determine the coordinates of the starting point of sight according to the binocular image; Determine, according to the target sight formed by the sight starting point coordinates and the landing point coordinates, a target area passed by the target sight, wherein the target area is a predetermined area in the target coordinate system, the predetermined area is an area composed of coordinate points in the target coordinate system, and the number of the predetermined areas is greater than or equal to 1; and Generate line of sight information data according to the target area and the binocular image.

5. The method according to claim 4, characterized in that The predetermined area is a predetermined area in the vehicle cockpit.

6. The method according to claim 1, characterized in that In response to satisfying the shooting condition, controlling the target camera to shoot a binocular image comprises: Controlling display of a binocular display interface, wherein the binocular display interface at least includes a shooting control button; and In response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

7. The method according to claim 1, characterized in that The method further comprises: Controlling display of a mark display interface, wherein the mark display interface at least includes a save control button; and In response to the save control button being triggered, the landing point coordinates are saved.

8. The method according to claim 1, characterized in that The method further comprises: Generating a target training set according to the sight line information data; and A gaze detection model is trained according to the target training set.

9. A sight line acquisition system, characterized in that: The system comprises: Calibration plate; A rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate, and is configured to emit laser light to generate a laser landing point and collect distance information; A target camera is configured to be controlled to capture a binocular image; and The processor is configured to perform the following steps: Acquiring distance information collected by a rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate; Determine the coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target conversion relationship, wherein the target conversion relationship is used to characterize the coordinate conversion relationship between the target coordinate system and the calibration plate coordinate system; In response to satisfying a shooting condition, controlling the target camera to shoot a binocular image; and Generate line of sight information data according to the landing point coordinates and the binocular image.

10. The system according to claim 9, characterized in that The rangefinder is fixedly arranged on the calibration plate.

11. The system according to claim 9, characterized in that The system also includes a display screen; The display screen is configured to controllably display a binocular display interface, wherein the binocular display interface includes at least a shooting control button; The processor is specifically configured to perform the following steps: Controlling the display screen to display a binocular display interface; and In response to the shooting control button being triggered, the target camera is controlled to shoot a binocular image.

12. The system according to claim 9, characterized in that The system also includes a display screen; The display screen is configured to be controlled to display a mark display interface, and the mark display interface includes at least a save control button; The processor is specifically configured to perform the following steps: Controlling the display mark display interface; and In response to the save control button being triggered, the landing point coordinates are saved.

13. The system according to claim 9, characterized in that The target camera is a binocular camera.

14. A sight line acquisition device, characterized in that: The device comprises: A distance information acquisition module is configured to acquire distance information collected by a rangefinder, wherein the laser emission direction of the rangefinder is perpendicular to the plane of the calibration plate; A landing point coordinate determination module is configured to determine the landing point coordinates of the laser landing point of the rangefinder in the target coordinate system corresponding to the target camera according to the distance information and the target conversion relationship, wherein the target conversion relationship is used to characterize the coordinate conversion relationship between the target coordinate system and the calibration plate coordinate system; a binocular image capturing module, configured to control the target camera to capture a binocular image in response to satisfying a capturing condition; and The sight line information data generating module is configured to generate sight line information data according to the landing point coordinates and the binocular image.

15. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 8.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Human eye sight line direction determination method and system of human eye sight line detection system

    CN110458104A

  • Method and system for fusing coordinates of point laser displacement sensor and binocular camera

    CN112212784A

  • Sight line measurement method and device based on binocular camera

    CN114022946A

Cited By

  • Image display method and device, electronic equipment and storage medium

    CN119697355A