Method and device for determining imaging area
Through the model data of the projection equipment, imaging equipment and user's eye ellipse in the vehicle, the extreme eye point and imaging area are determined, which solves the problems of complex determination of imaging area and large calculation amount in the existing technology, and realizes fast and efficient vehicle screen layout. Location verification reduces safety risks.
Patent Information
- Application Number
- CN202211518423.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-11-29
AI Technical Summary
The existing technology has complex methods and a large amount of calculations when determining the imaging area of the vehicle screen, and cannot be completed quickly and efficiently, resulting in safety hazards and the risk of human verification errors.
By obtaining the model data of the projection device, imaging device and user's eye ellipse in the vehicle, the user's ultimate eye point is determined, and the sub-imaging area is calculated based on these points, and finally the imaging area of the projection device on the imaging device is determined.
It simplifies the imaging area verification process, reduces human operating errors, and can quickly and efficiently determine the suitability of the vehicle screen layout. It is suitable for different users' field of view and improves safety.
Smart Images

Figure CN115941910B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a method and device for determining an imaging area. Background Art
[0002] With the development of smart cars, the interaction between drivers and vehicles is becoming more and more diverse, and the size of the instrument cluster screen and the central control screen in the car is also increasing. In addition, the interior design of vehicles is increasingly pursuing a technological and simple style, and many dual-screen and triple-screen interior design designs have appeared, resulting in a larger imaging area of the luminous screen on the front windshield, which may affect the safety of drivers driving at night, thus bringing safety hazards.
[0003] At present, in order to avoid safety hazards caused by the imaging area formed by the vehicle-mounted screen, the imaging area formed by the vehicle-mounted screen on the glass surface of the car window is usually analyzed and determined in advance during the vehicle development process, and the layout of the vehicle-mounted screen is optimized based on the analysis results.
[0004] However, the current method for determining the imaging area is complex and computationally intensive, and is unable to determine the imaging area quickly and efficiently. Summary of the invention
[0005] The present application provides a method and device for determining an imaging area, so as to solve the problem that the method is complex, the amount of calculation is large, and the imaging area cannot be determined quickly and efficiently during the imaging area verification and mapping process.
[0006] According to a first aspect of an embodiment of the present invention, a method for determining an imaging area is provided, the method comprising: acquiring first model data of a projection device in a vehicle, second model data of an imaging device, and third model data of a user eye ellipse; the first model data comprising a plurality of projection points, the plurality of projection points being located at a boundary position of the projection device;
[0007] determining at least two limit eye points of the user according to the plurality of projection points, the second model data and the third model data;
[0008] Determine a sub-imaging area of each extreme eye point on the imaging device according to the plurality of projection points, each extreme eye point and the second model data;
[0009] Based on the sub-imaging area, an imaging area of the projection device on the imaging device is determined.
[0010] In an optional manner, determining the sub-imaging area of each extreme eye point on the imaging device based on the multiple projection points, each extreme eye point and the second model data includes: determining the reflection point corresponding to the projection point on the imaging device based on the projection point, the extreme eye point and the second model data; connecting all the reflection points of each projection point on the imaging device to obtain the sub-imaging area of the extreme eye point on the imaging device.
[0011] In an optional manner, determining the reflection point corresponding to the projection point on the imaging device based on the projection point, the limit eye point and the second model data includes:
[0012] Connect the projection point and the extreme eye point to obtain a first connecting line; establish a projection line of the first connecting line on the imaging device based on the first connecting line and the second model data; use the first endpoint of the projection line as a first candidate reflection point; establish a second connecting line based on the first candidate reflection point and the projection point; establish a third connecting line based on the first candidate reflection point and the extreme eye point; determine the incident angle and reflection angle corresponding to the first candidate reflection point based on the second connecting line and the third connecting line; wherein the incident angle is the angle between the second connecting line and the normal, and the reflection angle is the angle between the third connecting line and the normal, the normal passes through the first candidate reflection point and is perpendicular to the imaging device; if the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is less than a threshold angle, determine the first candidate reflection point as the reflection point of the projection point on the projection line.
[0013] In an optional manner, the method also includes: if the incident angle corresponding to the first alternative reflection point is greater than the reflection angle, and the angle difference between the incident angle and the reflection angle corresponding to the first alternative reflection point is greater than or equal to the threshold angle, then subtracting the first step length from the first alternative reflection point to obtain the second alternative reflection point; determining the incident angle and the reflection angle corresponding to the second alternative reflection point; if the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the second alternative reflection point is less than the threshold angle, then determining the second alternative reflection point as the reflection point of the projection point on the projection line.
[0014] In an optional manner, the method also includes: if the incident angle corresponding to the first alternative reflection point is smaller than the reflection angle, and the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first alternative reflection point is greater than or equal to the threshold angle, increasing the first alternative reflection point by a second step to determine the third alternative reflection point; determining the incident angle and the reflection angle corresponding to the third alternative reflection point; if the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the third alternative reflection point is smaller than the threshold angle, determining the third alternative reflection point as the reflection point of the projection point on the projection line.
[0015] In an optional manner, the at least two extreme eye points include a first extreme eye point and a second extreme eye point, and the multiple projection points include a first projection point located at the lower boundary position of the projection device and a second projection point located at the upper boundary position of the projection device; according to the multiple projection points, the second model data and the third model data, at least two extreme eye points of the user are determined, including: according to the first projection point and the second projection point, respectively selecting multiple first test reflection points and second test reflection points on the imaging device; according to the first projection point, the multiple first test reflection points and the third model data, determining a first reflection line tangent to the upper boundary of the eye ellipse, and determining the first extreme eye point according to the tangent point of the first reflection line and the eye ellipse; according to the second projection point, the multiple second test reflection points and the third model data, determining a second reflection line tangent to the lower boundary of the eye ellipse, and determining the second extreme eye point according to the tangent point of the second reflection line and the eye ellipse.
[0016] In an optional manner, the first limit eye point includes an upper limit eye point, or the first limit eye point includes an upper left limit eye point and an upper right limit eye point; the determining the first limit eye point according to the tangent point between the first reflection line and the eyellipse includes: determining the tangent point between the first reflection line and the eyellipse as the upper limit eye point; or determining the tangent point between the first reflection line and the eyellipse as the upper limit eye point; and determining the upper left limit eye point and the upper right limit eye point based on the upper limit eye point and a preset distance;
[0017] The second extreme eye point includes the lower extreme eye point, or the second extreme eye point includes the lower left extreme eye point and the lower right extreme eye point; determining the second extreme eye point based on the tangent point of the second reflection line and the eye ellipse includes: determining the tangent point of the second reflection line and the eye ellipse as the lower extreme eye point; or determining the tangent point of the second reflection line and the eye ellipse as the lower extreme eye point; based on the lower extreme eye point and a preset distance, determining the lower left extreme eye point and the lower right extreme eye point.
[0018] According to a second aspect of an embodiment of the present invention, there is provided a device for determining an imaging area, comprising:
[0019] A data acquisition module, used to acquire first model data of a projection device in a vehicle, second model data of an imaging device, and third model data of an eye ellipse of a user; the first model data includes a plurality of projection points, and the plurality of projection points are located at a boundary position of the projection device;
[0020] A data processing module, configured to determine at least two limit eye points of the user according to the plurality of projection points, the second model data and the third model data;
[0021] an imaging area calculation module, configured to determine a sub-imaging area of each extreme eye point on the imaging device according to the plurality of projection points, each extreme eye point and the second model data; and determine an imaging area of the projection device on the imaging device based on the sub-imaging area;
[0022] The data storage module is used to store the data acquired or calculated by the data acquisition module, the data processing module and the imaging area calculation module.
[0023] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction enables the processor to perform an operation such as any of the aforementioned imaging area determination methods.
[0024] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and when the executable instruction is executed on a device / electronic device for determining an imaging area, the device / electronic device for determining an imaging area performs an operation as in any of the aforementioned methods for determining an imaging area.
[0025] The present invention provides a method for determining an imaging area. The method determines the extreme eye point through the model data of the projection device, the model data of the imaging device and the model data of the eye ellipse, so that the position range of the determined extreme eye point is larger and more universal. Therefore, when the sub-imaging area is determined according to the extreme eye point, the projection point of the projection device and the model data of the imaging device, it can be ensured that the determined sub-imaging area can better simulate the imaging area that different users can observe at the position of the extreme eye point. Finally, the imaging area of the projection device on the imaging device is determined according to the sub-imaging area, so that the determined imaging area is more universal. Moreover, the technical solution of the present invention can quickly determine the imaging area of the vehicle screen in the working environment of engineering software such as CATIA, thereby realizing the simulation of the projection condition of the layout position of the vehicle screen. Moreover, the process of determining the imaging area of the present invention does not require manual operation, which reduces the occurrence of manual verification errors, thereby simplifying the imaging area verification process, and can quickly and efficiently determine whether the layout position of components such as the vehicle screen is appropriate.
[0026] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0028] Figure 1 A schematic diagram of a flow chart of a method for determining an imaging area provided in an embodiment of the present application;
[0029] Figure 2 A schematic flow chart of another method for determining an imaging area provided in an embodiment of the present application;
[0030] Figure 3 A schematic flow chart of another method for determining an imaging area provided in an embodiment of the present application;
[0031] Figure 4 A schematic flow chart of a method for determining the position of a reflection point on a projection line provided in an embodiment of the present application;
[0032] Figure 5 A schematic flow chart of another method for determining the position of a reflection point on a projection line provided in an embodiment of the present application;
[0033] Figure 6 A schematic flow chart of another method for determining an imaging area provided in an embodiment of the present application;
[0034] Figure 7 A schematic diagram of a scenario for determining candidate reflection points provided in an embodiment of the present application;
[0035] Figure 8 A schematic diagram of a scenario for determining a limit eye point position provided in an embodiment of the present application;
[0036] Fig. 9 A schematic diagram of the structure of a device for determining an imaging area provided in an embodiment of the present application;
[0037] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0038] Illustration Description:
[0039] Among them, 10 is a projection device; 20 is an imaging device; 30 is a first candidate reflection point; 40 is a first connecting line; 50 is a projection line; 60 is a normal line; 70 is an eye ellipse; 80 is a lower limit eye point; 80' is an upper limit eye point. DETAILED DESCRIPTION
[0040] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0041] With the development of smart cars, the interactive functions between drivers and vehicles are gradually enriched, and in order to achieve more interactive functions, the dashboard and car screen on the car are gradually enlarged. The enlarged dashboard and car screen can make it easier for drivers to obtain relevant information during driving, and in order for users to observe the information on the dashboard or car screen during driving, the dashboard and car screen have an upward angle and have the function of whole or partial lighting. Therefore, the car windows, especially the front windshield, will show the lighting conditions of these luminous parts. When the external light is strong, the projection of the luminous parts in the car will not easily affect the driver, but when the external light is weak, such as on rainy days or at night, if the layout position of the luminous parts is unreasonable, the driver will receive too much projection interference, affecting the driver's field of vision, thus bringing safety hazards.
[0042] In order to avoid the potential safety hazards caused by the imaging area formed by the vehicle screen on the front windshield, the screen imaging area can usually be checked through software such as CATIA during the vehicle development process. When checking the screen imaging area based on software such as CATIA, the tester needs to input the user's eye point data, and then determine the screen imaging area based on the user's eye point data, and optimize the setting position of the vehicle screen based on the screen imaging area analysis.
[0043] However, since different users may have different body shapes, eye distances and other information, resulting in different eye positions for different users, the screen imaging area determined based on the eye data input by the user once is not universal. If the user inputs different eye data multiple times, the method for determining the screen imaging area will be complicated and computationally intensive, and the imaging area cannot be determined quickly and efficiently.
[0044] In order to solve the above problems, the present application discloses a method and device for determining an imaging area, which determines the user's eye point through the projection device, the imaging device and the model data of the user's eye ellipse, so that the selected eye point is more universal and can better simulate the imaging area that different users can observe. In addition, the verification process does not require manual operation, which reduces the occurrence of manual verification errors, thereby simplifying the imaging area verification process, and can quickly and efficiently determine whether the layout position of components such as the vehicle-mounted screen is appropriate.
[0045] The following is an exemplary description of the method for determining the imaging area disclosed in the embodiment of the present invention.
[0046] See also Figure 1 , is a flow chart of a method for determining an imaging area according to an embodiment of the present application. Figure 1 As shown, the present application provides a method for determining an imaging area, comprising:
[0047] S110: Acquire first model data of the projection device 10 in the vehicle, second model data of the imaging device 20 and third model data of the user's eye ellipses.
[0048] The projection device 10 mainly refers to a light-emitting or reflective part in a vehicle, such as a vehicle-mounted screen, a dashboard or other smooth metal parts. The projection device 10 can emit light by itself or reflect light emitted by other light sources, thereby forming an imaging area on the imaging device 20. The first model data of the projection device 10 mainly includes the position information, angle information, size information, etc. of the device. Specifically, for example, when the projection device 10 is a vehicle-mounted screen, the first model data mainly includes the design data of the vehicle-mounted screen, such as the size, distribution position, inclination, and edge coordinates.
[0049] Since during the projection process, the projection points on the projection device 10 and the actual reflection points on the imaging device 20 should be in a one-to-one correspondence, the boundary position of the projection device 10 can affect the boundary position of the imaging area, and the boundary position of the projection device 10 corresponds to the boundary of the imaging area on the imaging device 20. Therefore, in the process of taking points, the projection points are mainly taken at the boundary position of the projection device 10 to simulate the imaging area. Therefore, in some embodiments of the present application, the first model data includes multiple projection points located at the boundary position of the projection device 10.
[0050] Exemplarily, in the process of taking points at the boundary position of the projection device 10, the projection points can be taken in an equal proportion manner, that is, multiple points are taken at the same distance on the same boundary as projection points. It is also possible to take the points at both ends of the boundary as projection points, and take a small number of points in the middle as supplements. Taking points in equal proportion can make the final imaging area more accurate, and taking the endpoints at both ends of the boundary can more quickly determine the projection position of the rectangular area. The present application does not limit the method for extracting projection points.
[0051] In the embodiment of the present application, the implementation method of extracting the projection points on the projection device 10 is also not limited. For example, the boundary area of the projection device 10 can be extracted by using the extraction function provided by the simulation software. For another example, a boundary extraction function can be designed separately, and then the boundary of the projection device 10 can be extracted by using the boundary extraction function. Furthermore, based on the projection points at the boundary position of the projection device 10, the imaging area of the projection device 10 on the imaging device 20 is determined, which can reduce the amount of calculation when calculating the imaging area.
[0052] It is understandable that when the projection device 10 is a light-emitting component, such as a car screen, since the car screen may have a non-luminous or reflective border, the boundary position of the projection device 10 does not refer to the light-emitting boundary of the projection device 10. On this basis, taking points at the boundary position artificially enlarges the size of the light-emitting area of the car screen, thereby increasing the difficulty of planning the layout of the car screen. Therefore, in some embodiments, the first model data also includes the boundary size and position information of the light-emitting screen of the car screen, and when taking the projection point, the point position of the projection point is located at the light-emitting boundary of the projection device 10.
[0053] The imaging device 20 refers to a device in the vehicle that has the function of reflecting light and imaging, such as a window and a front windshield in the vehicle. Since the area that has the greatest impact on the driver during the driving of the vehicle is located at the front windshield, in the embodiment of the present application, the imaging device 20 mainly includes the front windshield. It should be understood that the front windshield is a glass surface with a certain curvature, and the imaging area projected by the projection device 10 on the front windshield is also a curved surface.
[0054] The second model data of the imaging device 20 mainly includes information such as the layout position, shape, size, and surface curvature of the imaging device 20. For example, when the imaging device 20 is a windshield, the second model data mainly refers to the layout position, shape, size, surface coordinates, and surface curvature of the windshield. It should be noted that since the windshield is usually double-layer glass, in the actual process of reflecting light, since the windshield is transparent and has a transmission requirement, the projection device 10 has multiple layers of projection when projecting, but since the gap between the two layers of glass of the windshield is small, it is regarded as the same glass surface in the simulation. Specifically, in some embodiments, the surface coordinates in the second model data mainly refer to the coordinate information of the surface of the glass surface located inside the vehicle. Therefore, when the imaging device 20 is a windshield, the imaging device 20 can be regarded as a reflective curved surface. The reflective surface in the embodiments of the present application refers to the area of the imaging device 20 used to carry the image when the imaging device 20 is a windshield.
[0055] The user's eye ellipse 70 refers to a statistical distribution diagram of the eye distribution positions of vehicle driving users of different body shapes. The eye ellipse 70 includes the statistical distribution positions of the eyes of the vehicle driving users of different body shapes when driving in a normal posture. Only when the reflected light enters this range can it be obtained by the user driving the vehicle in a normal posture. Therefore, the eye ellipse data can better reflect the field of view of vehicle driving users of different body shapes, so that the simulation of the imaging area is more universal.
[0056] Specifically, in the present application, the third model data is data used to describe the shape, position, and size of the user's eye ellipse. The third model data may include boundary coordinate information of the user's eye ellipse so that the imaging area projected during the simulation process is suitable for more users.
[0057] In some embodiments, the user's eyellipse 70 may be one or two. When the user's eyellipse 70 is one, the eyellipse 70 is a left eye eyellipse or a right eye eyellipse. When the user's eyellipse 70 is two, the eyellipse 70 is a left eye eyellipse and a right eye eyellipse. In the specific simulation process, since the imaging area that can be observed by a single eyellipse 70 may be observed by the user in the driving seat, a separate left eye or right eye eyellipse 70 may be used for projection verification. Whether a single eyellipse 70 or two eyellipses 70 are used for projection verification can be set according to the purpose of verification, and which eyellipse 70 is specifically verified is not limited in this application.
[0058] S120: Determine at least two limit eye points of the user according to the multiple projection points, the second model data and the third model data.
[0059] Since the projection points are distributed at the boundary of the projection device 10, the projection points include point position data located at the upper, lower, left, and right light-emitting limit positions of the projection device 10. In the process of determining the eye point data, it is necessary to make the light emitted by the projection point, after being reflected by the imaging device 20, fall into the eye ellipse 70 or be tangent to the eye ellipse 70 for determination.
[0060] Since the number of eyellipses 70 may be one or two, the number of limit eye points determined may be the same or different under the condition that the number of eyellipses 70 is different. For example, in some embodiments, when the imaging area is checked for a single eyellipse 70, two or four limit eye points may be determined to check the imaging area respectively; and when the imaging area is checked for two eyellipses 70, two, four or eight limit eye points may be determined to check the imaging area respectively.
[0061] It should be noted that the eye point position is the possible position of the eyes of the driver's seat user, and the body shape and posture will affect the actual eye point position. The eye ellipses data is a statistical distribution diagram of the eye positions of users of different body shapes in normal driving postures. Therefore, when most users in the driver's seat drive in a normal posture, their eyes will be within the range of eye ellipses 70. Therefore, determining the extreme eye point through eye ellipses 70 can make the acquired imaging area universal.
[0062] S130: Determine a sub-imaging area of each extreme eye point on the imaging device 20 according to the plurality of projection points, each extreme eye point and the second model data.
[0063] According to the second model data and each extreme eye point, multiple projection points located at the boundary of projection device 10 are formed into imaging areas corresponding to the extreme eye points on imaging device 20. Since these imaging areas are imaging areas corresponding to a single extreme eye point and cannot represent the entire imaging area range, the imaging area corresponding to a single extreme eye point is a sub-imaging area.
[0064] S140: Determine the imaging area of the projection device 10 on the imaging device 20 based on the sub-imaging area.
[0065] By taking a union of the sub-imaging areas corresponding to each extreme eye point, the complete imaging area of the projection device 10 on the imaging device 20 can be obtained. In some embodiments, four or even eight extreme eye points may be taken. Before the imaging area determination process is performed, the sub-imaging area corresponding to each extreme eye point needs to be determined, so that the different sub-imaging areas can be taken as a union to obtain the imaging area.
[0066] The method determines the extreme eye point by introducing eye ellipses, and then determines the sub-imaging areas corresponding to each extreme eye point through different extreme eye points and obtains the final imaging area by taking the union. The method can avoid multiple entry of eye point data on the basis that the acquired imaging area data is suitable for most users, thereby reducing the number of data entry and circulation times, and does not require test personnel to operate during the verification process, avoiding manual verification errors, thereby simplifying the imaging area verification process, and quickly and efficiently determining whether the layout position of components such as the vehicle-mounted screen is appropriate.
[0067] Figure 2 A flow chart of another method for determining an imaging area provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method comprises the following steps:
[0068] S210: Acquire first model data of the projection device 10 in the vehicle, second model data of the imaging device 20, and third model data of the user's eye ellipses.
[0069] S220: Determine at least two limit eye points of the user according to the multiple projection points, the second model data and the third model data.
[0070] In some embodiments, determining the sub-imaging area of each extreme eye point on the imaging device 20 according to the plurality of projection points, each extreme eye point and the second model data may be achieved through steps S230 to S240.
[0071] S230: Based on the projection point, the limit eye point and the second model data, determine the reflection point corresponding to the projection point on the imaging device.
[0072] That is, firstly, the projection point, the limit eye point and the second model data are used to determine the corresponding reflection point of the projection point on the imaging device. It should be noted that each projection point should have a corresponding reflection point on the imaging device.
[0073] Exemplarily, determining the reflection point corresponding to the projection point on the imaging device can be achieved through the following steps S330 to S340 and steps S410 to S450. In some embodiments, the step of determining the reflection point corresponding to the projection point on the imaging device can also include the following steps S460 to S480 and / or steps S460' to S480'.
[0074] S240: Connect all reflection points of each projection point on the imaging device to obtain a sub-imaging area of the limit eye point on the imaging device.
[0075] Then, by connecting all the reflection points, the imaging area of the extreme eye point on the imaging device is obtained. Since this is only the imaging area of one extreme eye point, the imaging area is a sub-imaging area.
[0076] S250: Determine the imaging area of the projection device 10 on the imaging device 20 based on the sub-imaging area.
[0077] Figure 3 A flowchart of another method for determining an imaging area provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method may further include the following steps:
[0078] S310: Acquire first model data of the projection device 10 in the vehicle, second model data of the imaging device 20 and third model data of the user's eye ellipses.
[0079] S320: Determine at least two limit eye points of the user according to the multiple projection points, the second model data and the third model data.
[0080] S330: Connect the projection point and the extreme eye point to obtain a first connecting line 40.
[0081] A first connecting line 40 with endpoints being a projection point and a limit eye point is established. It should be noted that in the process of determining a sub-imaging area corresponding to a limit eye point, the number of the first connecting lines 40 is the same as the number of the projection points.
[0082] S340: Based on the first connecting line and the second model data, establishing a projection line of the first connecting line on the imaging device.
[0083] Based on the first connection line 40 and the second model data, a projection line 50 of the first connection line 40 on the imaging device 20 is established.
[0084] Then, through the first connecting line 40 and the second model data, a projection line 50 of the first connecting line 40 on the imaging device 20 can be obtained. Exemplarily, when the imaging device 20 is a front windshield, the projection line 50 is a mapping of the first connecting line 40 on the imaging device 20, and the shape of the projection line 50 is related to the shape of the reflective surface at its projection position.
[0085] S350: Based on the projection line 50, determine the reflection point of the projection point on the projection line 50.
[0086] Exemplarily, a reflection line is taken from the projection point to the extreme eye point on the projection line 50 , and its incident angle is equal to the reflection angle. Then the reflection point of this reflection line is the reflection point of the projection point on the projection line 50 .
[0087] It should be noted that if the projection lines 50 corresponding to the first connecting line 40 are all located on the reflection surface, it means that there may be a reflection point corresponding to the projection point on the reflection surface. In the actual implementation process, it is also possible that part or all of the projection lines 50 corresponding to the first connecting line 40 are not located on the reflection surface, which means that there may be no reflection point corresponding to the projection point on the reflection surface. The simulation area of the reflection surface can be expanded to a certain extent so that all the projection lines 50 are located on the reflection surface, thereby obtaining a complete imaging area during the simulation process.
[0088] S360: Determine the sub-imaging area of the limit eye point on the imaging device 20 based on the reflection points obtained from all the projection points.
[0089] After the reflection point is determined by the projection line 50, a projection point and the corresponding extreme eye point, the reflection points of other projection points corresponding to the extreme eye point are obtained through the above steps, and all the obtained reflection points are connected to obtain the sub-imaging area corresponding to the extreme eye point.
[0090] After obtaining the sub-imaging area corresponding to one extreme eye point, the sub-imaging areas corresponding to other extreme eye points can be obtained through the above-mentioned steps of determining the sub-imaging areas. It should be understood that in the process of confirming the sub-imaging areas for different extreme eye points, only the starting and ending points of the connecting line are different, and the specific calculation process and judgment method are similar or the same, so the steps of determining the sub-imaging area for one extreme eye point are applicable to other extreme eye points.
[0091] S370: Determine the imaging area of the projection device 10 on the imaging device 20 based on the sub-imaging area.
[0092] Figure 4 A schematic flow chart of a method for determining a position of a reflection point on a projection line provided in an embodiment of the present application.
[0093] Figure 5 A schematic flow chart of another method for determining the position of a reflection point on a projection line provided in an embodiment of the present application.
[0094] When determining the reflection point corresponding to the projection point based on the projection line 50, in order to avoid the problem of large amount of calculation and possible inaccuracy in randomly selecting points, such as Figure 3 , Figure 4 and Figure 7 As shown, in some embodiments of the present application, the step of determining the reflection point of the projection point on the imaging device may include:
[0095] S410 : taking a first endpoint of the projection line 50 as a first candidate reflection point 30 .
[0096] Specifically, since the projection line 50 is a mapping of the connecting line from the projection point to the extreme eye point on the reflection surface of the imaging device 20, the two end points of the projection line 50 can be respectively regarded as the mapping of the projection point and the extreme eye point on the reflection surface. When selecting the reflection point, in order to avoid the uncertainty when randomly selecting the point and simplify the process of selecting the reflection point, the projection point or the mapping of the extreme eye point on the projection line 50 can be selected as the first candidate reflection point 30.
[0097] It should be noted that the endpoints corresponding to the mapping positions of the projection point and the extreme eye point on the projection line 50 are the first endpoint and the second endpoint, respectively. In some embodiments, the first endpoint may be the endpoint corresponding to the projection point, and the endpoint corresponding to the extreme eye point may be the second endpoint; in another embodiment, the first endpoint is the endpoint corresponding to the extreme eye point, and the second endpoint is the endpoint corresponding to the projection point.
[0098] S420: Establishing a second connection line based on the first candidate reflection point 30 and the projection point.
[0099] S430: Establishing a third connection line based on the first candidate reflection point 30 and the extreme eye point.
[0100] The second connecting line is a connecting line between the first alternative reflection point 30 on the reflecting surface and the projection point position, and the third connecting line is a connecting line between the first alternative reflection point 30 on the reflecting surface and the extreme eye point position. Since the second connecting line and the third connecting line have common endpoints, there is an angle between the second connecting line and the third connecting line. In an embodiment of the present application, calculation is performed on the angle to obtain the position of the real reflection point.
[0101] S440: Determine the incident angle and the reflection angle corresponding to the first candidate reflection point 30 based on the second connection line and the third connection line.
[0102] In an embodiment of the present application, the second connecting line and the third connecting line share an endpoint, and the endpoint is the first alternative reflection point 30. According to the reflection principle, a line perpendicular to the reflection surface, that is, the imaging device 20, is drawn at the position of the first alternative reflection point 30 to obtain a normal line 60. The angle between the normal line 60 and the second connecting line is the incident angle, and the angle between the normal line 60 and the third connecting line is the reflection angle.
[0103] S450 : If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point 30 is less than the threshold angle, the first candidate reflection point 30 is determined to be the reflection point of the projection point on the projection line 50 .
[0104] After obtaining the incident angle and the reflection angle corresponding to the first candidate reflection point 30, the angle difference between the incident angle and the reflection angle is determined. Specifically, in the embodiment of the present application, the angle difference is obtained by subtracting the reflection angle from the incident angle, and the angle difference has zero value, positive value, negative value, etc. By comparing the angle difference with the threshold angle, the relationship between the incident angle and the reflection angle is obtained. It should be noted that in the process of judging the incident angle and the reflection angle, the difference in the angle difference and the positive and negative values will affect the judgment of the relationship between the incident angle and the reflection angle and thus affect the determination of the reflection point.
[0105] In some embodiments of the present application, when the absolute value of the angle difference is used for comparison, the threshold angle may be 0.05°, that is, when the absolute value of the angle difference is less than the threshold angle, the incident angle may be considered equal to the reflection angle; and if the angle difference is directly compared with the threshold angle, the threshold angle may be -0.05° to 0.05°, that is, when the angle difference is within the threshold angle range, the incident angle may be considered equal to the reflection angle. The above embodiment is only one possible specific value of the threshold angle, and the setting of the specific value of the threshold angle can be modified, and the specific threshold angle is not limited in this application.
[0106] It should be noted that the specific value of the threshold angle affects the accuracy of the calibration of the entire imaging area, that is, the smaller the threshold angle, the more accurate the calibration. When the threshold angle is zero, the calibration is most accurate; the larger the threshold angle, the less accurate the calibration. However, the smaller the threshold angle, the more calculations are required during the calibration process. When setting the threshold angle, the relationship between calibration accuracy and calibration efficiency needs to be considered. The above comparison of the small and large threshold angles is the absolute value.
[0107] It should be understood that, in the process of comparing the incident angle and the reflection angle of the first candidate reflection point 30, the relationship between the incident angle and the reflection angle exists except that the absolute value of the angle difference is less than the threshold angle. In this case, it means that the incident angle and the reflection angle are not equal, and it is necessary to select other candidate reflection points for the next test. Figure 4 As shown, determining the reflection point of the projection point on the imaging device may also include the following steps:
[0108] S460: If the incident angle corresponding to the first candidate reflection point 30 is greater than the reflection angle, and the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point 30 is greater than or equal to the threshold angle, the first step length is subtracted from the first candidate reflection point 30 to obtain the second candidate reflection point.
[0109] S470: Determine the incident angle and the reflection angle corresponding to the second candidate reflection point.
[0110] S480: If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the second candidate reflection point is less than the threshold angle, the second candidate reflection point is determined to be the reflection point of the projection point on the projection line 50 .
[0111] It can be seen from the above steps that when making a comparison, there may still be a situation where the incident angle corresponding to the first candidate reflection point 30 is smaller than the reflection angle. Figure 5 As shown, the step of determining the reflection point of the projection point on the imaging device may also include:
[0112] S460': If the incident angle corresponding to the first candidate reflection point 30 is smaller than the reflection angle, and the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point 30 is greater than or equal to the threshold angle, the first candidate reflection point 30 is increased by a second step length to determine a third candidate reflection point.
[0113] S470': Determine the incident angle and the reflection angle corresponding to the third candidate reflection point.
[0114] S480 ′: If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the third candidate reflection point is less than the threshold angle, the third candidate reflection point is determined to be the reflection point of the projection point on the projection line 50 .
[0115] According to the above content, the endpoints of the projection line 50 include the mapping position of the projection point on the projection line 50 and the mapping position of the extreme eye point on the projection line 50. In some embodiments of the present application, the overall length of the projection line 50 is 1, and the mapping position of the projection point is the starting point, then the mapping position of the projection point can be regarded as 0, and the mapping position of the extreme eye point can be regarded as 1. It should be noted that the 0 and 1 do not represent the actual length, but limit the starting point and the end point of the projection line 50, and quantify the projection line 50 by limiting the values of 0 and 1, so as to facilitate the subsequent selection of other candidate reflection points.
[0116] Specifically, when the first endpoint is the mapping position of the projection point, the position of the first endpoint is regarded as 0, and the position of the second endpoint is regarded as 1; when the first endpoint is the mapping position of the extreme eye point, the position of the first endpoint is regarded as 1, and the position of the second endpoint is regarded as 0.
[0117] It should be noted that when the first endpoint of the projection line 50 is selected as the first alternative reflection point 30, whether the first endpoint is the mapping position of the projection point on the projection line 50 or the mapping position of the extreme eye point on the projection line 50 has no effect on the above-mentioned judgment conditions of the relationship between the incident angle and the reflection angle.
[0118] In some embodiments of the present application, taking the first endpoint as the mapping position of the projection point as an example, the first candidate reflection point 30 is located at the starting point of the projection line 50, that is, the position 0 on the projection line 50. If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point 30 is greater than the threshold angle, the next candidate reflection point is selected.
[0119] If the incident angle is greater than the reflection angle, the first step length is subtracted from the first candidate reflection point 30 to obtain the second candidate reflection point. It should be noted that the step length here is the distance between the reflection points on the projection line 50. For example, if the first step length is 0.1, when the position of the first endpoint is regarded as 0, the specific process of subtracting the first step length to obtain the second candidate reflection point is: select the position of the projection line 50 that is a multiple of the first step length of the first candidate reflection point 30 in the direction away from the second endpoint, and this position is the second candidate reflection point. It should be understood that when the position of the first candidate reflection point 30 is 0, an extension line of the projection line 50 can be made to facilitate the selection of the second candidate reflection point.
[0120] Meanwhile, if the incident angle of the selected second candidate reflection point is still greater than the reflection angle, the second candidate reflection point is regarded as the first candidate reflection point 30, and the first step length is subtracted again to obtain a new second candidate reflection point.
[0121] After obtaining and calculating the second candidate reflection point one or more times, if the incident angle of the second candidate reflection point is less than the reflection angle for the first time and the absolute value of the angle difference is greater than the threshold angle, the candidate reflection point is regarded as the first candidate reflection point 30, and then the position of the projection line 50 close to the second end point and the length of the projection line 50 multiple of the second step length from the first candidate reflection point 30 is selected, and this position is the third candidate reflection point, where the second step length is less than the first step length, and specifically, can be set to 1 / 2 of the first step length. Then it is determined again whether the third candidate reflection point is the correct reflection point.
[0122] When the incident angle and the reflection angle corresponding to the third candidate reflection point position are still not equal, the above steps are repeated to reduce the first step length and the second step length, and finally obtain a reflection point where the incident angle and the reflection angle are equal.
[0123] If the incident angle is less than the reflection angle, the second step length is added to the first candidate reflection point 30 to obtain the third candidate reflection point. It should be noted that the step length here is the distance between the reflection points on the projection line 50. For example, the second step length can also be 0.1. When the position of the first endpoint is regarded as 0, the specific process of adding the second step length to obtain the third candidate reflection point is: select the position of the projection line 50 close to the second endpoint, which is a multiple of the second step length of the projection line 50 from the first candidate reflection point 30. This position is the third candidate reflection point. It should be understood that when the position of the first candidate reflection point 30 is 1, the projection line 50 can be extended to facilitate the selection of the third candidate reflection point.
[0124] Meanwhile, if the incident angle of the selected third candidate reflection point is still smaller than the reflection angle, the third candidate reflection point is regarded as the first candidate reflection point 30, and the second step length is increased again to obtain a new third candidate reflection point.
[0125] After obtaining and calculating the third candidate reflection point once or multiple times, if the incident angle of the third candidate reflection point is greater than the reflection angle and the angle difference is greater than the threshold angle for the first time, the candidate reflection point is regarded as the first candidate reflection point 30, and then the position of the projection line 50 away from the second endpoint and the length of the projection line 50 multiple of the first step length of the first candidate reflection point 30 is selected, and this position is the second candidate reflection point, where the first step length is less than the second step length, specifically, it can be set to 1 / 2 of the second step length. Then it is determined again whether the second candidate reflection point is the correct reflection point.
[0126] When the incident angle and the reflection angle corresponding to the second candidate reflection point position are still not equal, the above steps are repeated, the second step length and the first step length are reduced, and finally a reflection point with an equal incident angle and reflection angle is obtained.
[0127] It should be understood that as the position of the alternative reflection point changes, the relationship between the incident angle and the reflection angle gradually changes. In the actual measurement process, there must be two adjacent alternative reflection points, one corresponding to an incident angle greater than or equal to the reflection angle, and the other corresponding to an incident angle less than or equal to the reflection angle. The actual reflection point is located between the above two alternative reflection points. At this time, using a fixed first step length or second step length can only obtain one of the above two alternative reflection points. Therefore, the first step length and the second step length are not fixed values. In the actual verification, if the measurement results of the relationship between the incident angle and the reflection angle change for two consecutive times, the step length is reduced to half of the original one, and the point selection continues until the actual reflection point is selected.
[0128] In some embodiments of the present application, when there is one eye ellipse 70, the at least two limit eye points may include a first limit eye point and a second limit eye point, and the projection points include a first projection point located at the lower boundary of the projection device 10 and a second projection point located at the upper boundary of the projection device 10. Specifically, the first projection point may be the lower limit position point of the light emitting area of the projection device 10, and the second projection point may be the upper limit position point of the light emitting area of the projection device 10.
[0129] Figure 6 A flowchart of another method for determining an imaging area provided in an embodiment of the present application is shown as follows: Figure 6 As shown, the method comprises the following steps:
[0130] S610: Acquire first model data of the projection device 10 in the vehicle, second model data of the imaging device 20 and third model data of the user's eye ellipses.
[0131] The first model data includes a plurality of projection points, including a first projection point located at a lower boundary position of the projection device 10 , and a second projection point located at an upper boundary position of the projection device 10 .
[0132] S620: Selecting a plurality of first test reflection points and a second test reflection points on the imaging device 20 according to the first projection point and the second projection point, respectively.
[0133] The first projection point is located at the lower boundary of the projection device 10, and the second projection point is located at the upper boundary of the projection device 10. It should be understood that when the light-emitting points at the same position are projected onto the imaging device 20, due to different observation angles, the emission points and reflected light of the light-emitting points at the same position will change with the change of the observation angle.
[0134] Therefore, when the first projection point or the second projection point is used as the light emitting point, the directions of the light paths emitted therefrom are diverse, and due to the inclination angle of the projection device 10, multiple light rays will inevitably propagate to the imaging device 20 to form an imaging area. Multiple reflection points can be projected on the imaging device 20, and multiple reflection points formed by the light emitted from the first projection point are selected as the first test reflection points, and multiple reflection points formed by the light emitted from the second projection point are selected as the second test reflection points.
[0135] S630: Determine a first reflection line tangent to the upper boundary of the eyellipse according to the first projection point, the plurality of first test reflection points and the third model data, and determine a first limit eyepoint according to the tangent point between the first reflection line and the eyellipse.
[0136] like Figure 6As shown, the first projection point located at the lower boundary of the projection device 10 is used as the light-emitting point. According to the first test reflection point and the third model data, when the light emitted from the first projection point is reflected by different first test reflection points, it is determined whether the reflected light is tangent to the upper boundary of the eyellipse 70 in the third model data according to the direction of the reflected light. When the reflected light through a certain first test reflection point is tangent to the upper boundary of the eyellipse 70, this reflection line is the first reflection line, and according to the tangent point between the first reflection line and the eyellipse 70, the first limit eye point (also called the upper limit eye point 80') can be determined.
[0137] In some embodiments, when the at least two extreme eye points include two extreme eye points, the first extreme eye point may be a tangent point between the first reflection line and the eye ellipse 70 .
[0138] S640: Determine a second reflection line tangent to the lower boundary of the eye ellipsoid according to the second projection point, the plurality of second test reflection points and the third model data, and determine a second limit eye point according to the tangent point between the second reflection line and the eye ellipsoid.
[0139] like Figure 8 As shown, similar to the process of determining the first limit eye point, by determining a second reflection line tangent to the lower boundary of the eye ellipse 70, the second limit eye point (also referred to as the lower limit eye point 80) can be further determined.
[0140] Similar to the first limit eye point data, in some embodiments, when the at least two limit eye points include two limit eye points, the second limit eye point may be a tangent point between the second reflection line and the eye ellipse 70 .
[0141] In the process of determining the first limit eye point and the second limit eye point, the tangent point of the first reflection line and the eyellipse is determined as the upper limit eye point 80'. In this embodiment, the first limit eye point can be the upper limit eye point 80'. Similarly, the tangent point of the second reflection line and the eyellipse is determined as the lower limit eye point 80, and the second limit eye point can be the lower limit eye point 80.
[0142] However, in the process of selecting the extreme eye points, in some embodiments, only the upper extreme eye point 80' and the lower extreme eye point 80 are used as the first extreme eye point and the second extreme eye point respectively. At this time, although the sub-imaging areas corresponding to the two extreme eye points can better reflect the upper and lower limits of eye observation, they cannot well reflect the left and right limits of eye observation.
[0143] Therefore, in some embodiments, the tangent point of the first reflection line and the eyellipse 70 is determined as the upper limit eye point, and the first limit eye point is determined based on the upper limit eye point and the preset distance. Also, the tangent point of the second reflection line and the eyellipse 70 is determined as the lower limit eye point, and the second limit eye point is determined based on the lower limit eye point and the preset distance. It should be noted that the first limit eye point and the second limit eye point are only embodiments of at least two limit eye points, and do not limit the number of limit eye points. In some embodiments, the first limit eye point and the second limit eye point correspond to two eye point data respectively.
[0144] Exemplarily, the first limit eye point may include an upper left limit eye point and an upper right limit eye point, and the second limit eye point may include a lower left limit eye point and a lower right limit eye point. Specifically, the preset distance may be 32.5 mm. After obtaining the upper limit eye point, the upper limit eye point 80' is translated left and right to obtain the upper left limit eye point and the upper right limit eye point. And after obtaining the lower limit eye point, the lower limit eye point 80 is translated left and right to obtain the lower left limit eye point and the lower right limit eye point. In this way, 4 eye point data are taken from one eye ellipse 70 to determine the sub-imaging area.
[0145] In some embodiments of the present application, if the number of eyellipses 70 is two, namely, the left eyellipse and the right eyellipse, a total of eight eye point data can be obtained by the above method. In order to avoid the problem of decreased calculation efficiency caused by too many points, the eight eye point data can be reduced to four. Specifically, the upper left limit eye point and the lower left limit eye point of the left eyellipse, and the upper right limit eye point and the lower right limit eye point of the right eyellipse can be used to determine the sub-imaging area to obtain the final imaging area.
[0146] S650: Determine, according to the plurality of projection points, each extreme eye point and the second model data, a sub-imaging area of the projection device corresponding to each extreme eye point on the imaging device.
[0147] In some embodiments, the implementation of step S650 may refer to the above-mentioned steps S230 to S260.
[0148] S660: Determine an imaging area of the projection device on the imaging device based on the sub-imaging area corresponding to each extreme eye point.
[0149] In some embodiments of the present application, the limit eye point can also be obtained by determining the left and right limit eye points. Specifically, a third projection point is taken at the left boundary position of the projection device 10, and a fourth projection point is taken at the right boundary position of the projection device 10, so as to select a third test reflection point and a fourth test reflection point located on the imaging device 20. Through the third test reflection point and the third model data, the third projection point where the reflection line is tangent to the right edge of the eye ellipse 70 is obtained, and the tangent point position is the right limit eye point; through the fourth test reflection and the third model data, the fourth projection point where the reflection line is tangent to the left edge of the eye ellipse 70 is obtained, and the tangent point position is the left limit eye point.
[0150] It should be noted that, in some embodiments, when the number of eyellipses 70 is two, the left extreme eye point of the left eyellipse and the right extreme eye point of the right eyellipse can be respectively taken, so as to obtain the sub-imaging areas corresponding to the left and right extremes of the two eyes through the two eye points. In another embodiment, the upper left extreme eye point, the lower left extreme eye point, the upper right extreme eye point and the lower right extreme eye point can also be obtained by translating the left and right extreme eye points up and down by a preset distance. Specifically, the preset distance can be 32.5 mm.
[0151] It should be understood that when the number of eyellipses 70 is two and what is obtained is the left and right extreme eye points of the eyellipses 70, it is also possible to more comprehensively obtain the complete imaging area through four sub-imaging areas by selecting the upper left extreme eye point and the lower left extreme eye point of the left eyellipse and the upper right extreme eye point and the lower right extreme eye point of the right eyellipse.
[0152] Based on the above imaging area determination method, the present application also provides an imaging area determination device, such as Fig. 9 As shown, including:
[0153] Data acquisition module 1 is used to acquire first model data of a projection device in a vehicle, second model data of an imaging device, and third model data of a user's eye ellipse; the first model data includes multiple projection points, and the multiple projection points are located at the boundary position of the projection device.
[0154] The data processing module 2 is used to determine at least two limit eye points of the user according to the multiple projection points, the second model data and the third model data.
[0155] The imaging area calculation module 3 is used to determine the sub-imaging area of each extreme eye point on the imaging device based on multiple projection points, each extreme eye point and the second model data; and determine the imaging area of the projection device on the imaging device based on the sub-imaging area corresponding to each extreme eye point.
[0156] The data storage module 4 is used to store data acquired or calculated by the data acquisition module, the data processing module and the imaging area calculation module.
[0157] In an optional manner, the imaging area calculation module 3 is also used to: determine the reflection point corresponding to the projection point on the imaging device based on the projection point, the extreme eye point and the second model data; connect all the reflection points of each projection point on the imaging device to obtain the sub-imaging area of the extreme eye point on the imaging device.
[0158] In an optional manner, the imaging area calculation module 3 is further used to connect the projection point and the limit eye point to obtain a first connection line.
[0159] Based on the first connecting line and the second model data, a projection line of the first connecting line on the imaging device is established.
[0160] The first endpoint of the projection line is taken as the first candidate reflection point.
[0161] A second connection line is established based on the first candidate reflection point and the projection point. A third connection line is established based on the first candidate reflection point and the limit eye point.
[0162] Based on the second connecting line and the third connecting line, the incident angle and the reflection angle corresponding to the first alternative reflection point are determined, wherein the incident angle is the angle between the second connecting line and the normal line, and the reflection angle is the angle between the third connecting line and the normal line, and the normal line passes through the first alternative reflection point and is perpendicular to the imaging device.
[0163] If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is less than the threshold angle, the first candidate reflection point is determined to be the reflection point of the projection point on the projection line.
[0164] In an optional manner, the imaging area calculation module 3 is also used to: if the incident angle corresponding to the first alternative reflection point is greater than the reflection angle, and the angle difference between the incident angle and the reflection angle corresponding to the first alternative reflection point is greater than or equal to the threshold angle, then the first step length is subtracted from the first alternative reflection point to obtain the second alternative reflection point.
[0165] The incident angle and the reflection angle corresponding to the second candidate reflection point are determined.
[0166] If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the second candidate reflection point is less than the threshold angle, the second candidate reflection point is determined to be the reflection point of the projection point on the projection line.
[0167] In an optional manner, the imaging area calculation module 3 is also used to: if the incident angle corresponding to the first alternative reflection point is smaller than the reflection angle, and the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first alternative reflection point is greater than or equal to the threshold angle, increase the first alternative reflection point by a second step and determine the third alternative reflection point.
[0168] The incident angle and the reflection angle corresponding to the third candidate reflection point are determined.
[0169] If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the third candidate reflection point is less than the threshold angle, the third candidate reflection point is determined to be the reflection point of the projection point on the projection line.
[0170] In an optional manner, the at least two extreme eye points include a first extreme eye point and a second extreme eye point, and the multiple projection points include a first projection point located at the lower boundary position of the projection device and a second projection point located at the upper boundary position of the projection device.
[0171] The data processing module 2 is also used to select a plurality of first test reflection points and a second test reflection points on the imaging device according to the first projection point and the second projection point.
[0172] A first reflection line tangent to the upper boundary of the eyellipse is determined according to the first projection point, the plurality of first test reflection points and the third model data, and a first limit eye point is determined according to a tangent point between the first reflection line and the eyellipse.
[0173] A second reflection line tangent to the lower boundary of the eyellipse is determined according to the second projection point, the plurality of second test reflection points and the third model data, and a second limit eyepoint is determined according to the tangent point between the second reflection line and the eyellipse.
[0174] In an optional manner, the first limit eye point includes an upper limit eye point, or the first limit eye point includes an upper left limit eye point and an upper right limit eye point. The data processing module 2 is further used to: determine the tangent point of the first reflection line and the eye ellipse as the upper limit eye point; or determine the tangent point of the first reflection line and the eye ellipse as the upper limit eye point; determine the upper left limit eye point and the upper right limit eye point based on the upper limit eye point and the preset distance.
[0175] The second limit eye point includes the lower limit eye point, or the second limit eye point includes the lower left limit eye point and the lower right limit eye point. The data processing module 2 is also used to: determine the tangent point of the second reflection line and the eye ellipse as the lower limit eye point; or determine the tangent point of the second reflection line and the eye ellipse as the lower limit eye point; based on the lower limit eye point and the preset distance, determine the lower left limit eye point and the lower right limit eye point.
[0176] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0177] like Fig.10 As shown, the electronic device may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .
[0178] The processor 302, the communication interface 304, and the memory 306 communicate with each other via the communication bus 308. The communication interface 304 is used to communicate with other devices such as a client or other server network elements. The processor 302 is used to execute the program 310, which can specifically execute the relevant steps in the above-mentioned imaging area determination method embodiment.
[0179] Specifically, the program 310 may include program code including computer executable instructions.
[0180] The processor 302 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0181] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0182] The program 310 can be specifically called by the processor 302 to enable the electronic device to perform the following operations:
[0183] First model data of a projection device in a vehicle, second model data of an imaging device, and third model data of a user's eye ellipse are acquired; the first model data includes a plurality of projection points, and the plurality of projection points are located at boundary positions of the projection device.
[0184] At least two limit eye points of the user are determined based on the plurality of projection points, the second model data and the third model data.
[0185] A sub-imaging area of each extreme eye point on the imaging device is determined according to the plurality of projection points, each extreme eye point and the second model data.
[0186] Based on the sub-imaging area, an imaging area of the projection device on the imaging device is determined.
[0187] In an optional manner, a sub-imaging area of the projection device corresponding to each extreme eye point on the imaging device is determined based on multiple projection points, each extreme eye point and the second model data, including: determining the reflection point corresponding to the projection point on the imaging device based on the projection point, the extreme eye point and the second model data; connecting all the reflection points of each projection point on the imaging device to obtain the sub-imaging area of the extreme eye point on the imaging device.
[0188] In an optional manner, based on the projection point, the extreme eye point and the second model data, determining the reflection point corresponding to the projection point on the imaging device includes: connecting the projection point and the extreme eye point to obtain a first connecting line. Based on the first connecting line and the second model data, establishing a projection line of the first connecting line on the imaging device.
[0189] The first endpoint of the projection line is taken as the first candidate reflection point.
[0190] A second connection line is established based on the first candidate reflection point and the projection point.
[0191] A third connection line is established based on the first candidate reflection point and the extreme eye point.
[0192] Based on the second connecting line and the third connecting line, the incident angle and the reflection angle corresponding to the first alternative reflection point are determined, wherein the incident angle is the angle between the second connecting line and the normal line, and the reflection angle is the angle between the third connecting line and the normal line, and the normal line passes through the first alternative reflection point and is perpendicular to the imaging device.
[0193] If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is less than the threshold angle, the first candidate reflection point is determined to be the reflection point of the projection point on the projection line.
[0194] In an optional manner, based on the projection point, the extreme eye point and the second model data, the reflection point corresponding to the projection point on the imaging device is determined, and it also includes: if the incident angle corresponding to the first alternative reflection point is greater than the reflection angle, and the angle difference between the incident angle and the reflection angle corresponding to the first alternative reflection point is greater than or equal to the threshold angle, then the first alternative reflection point is subtracted from the first step length to obtain the second alternative reflection point.
[0195] The incident angle and the reflection angle corresponding to the second candidate reflection point are determined.
[0196] If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the second candidate reflection point is less than the threshold angle, the second candidate reflection point is determined to be the reflection point of the projection point on the projection line.
[0197] In an optional manner, based on the projection point, the extreme eye point and the second model data, the reflection point corresponding to the projection point on the imaging device is determined, and it also includes: if the incident angle corresponding to the first alternative reflection point is smaller than the reflection angle, and the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first alternative reflection point is greater than or equal to the threshold angle, the first alternative reflection point is increased by a second step size to determine the third alternative reflection point.
[0198] The incident angle and the reflection angle corresponding to the third candidate reflection point are determined.
[0199] If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the third candidate reflection point is less than the threshold angle, the third candidate reflection point is determined to be the reflection point of the projection point on the projection line.
[0200] In an optional manner, the at least two extreme eye points include a first extreme eye point and a second extreme eye point, and the plurality of projection points include a first projection point located at a lower boundary position of the projection device and a second projection point located at an upper boundary position of the projection device; determining the at least two extreme eye points of the user according to the plurality of projection points, the second model data, and the third model data includes:
[0201] According to the first projection point and the second projection point, a plurality of first test reflection points and second test reflection points are respectively selected on the imaging device.
[0202] A first reflection line tangent to the upper boundary of the eyellipse is determined according to the first projection point, the plurality of first test reflection points and the third model data, and a first limit eye point is determined according to a tangent point between the first reflection line and the eyellipse.
[0203] A second reflection line tangent to the lower boundary of the eyellipse is determined according to the second projection point, the plurality of second test reflection points and the third model data, and a second limit eyepoint is determined according to the tangent point between the second reflection line and the eyellipse.
[0204] In an optional manner, the first extreme eye point includes the upper extreme eye point, or the first extreme eye point includes the upper left extreme eye point and the upper right extreme eye point; the first extreme eye point is determined based on the tangent point of the first reflection line and the eye ellipse, including: determining the tangent point of the first reflection line and the eye ellipse as the upper extreme eye point; or determining the tangent point of the first reflection line and the eye ellipse as the upper extreme eye point; based on the upper extreme eye point and a preset distance, determining the upper left extreme eye point and the upper right extreme eye point.
[0205] The second extreme eye point includes the lower extreme eye point, or the second extreme eye point includes the lower left extreme eye point and the lower right extreme eye point; the second extreme eye point is determined according to the tangent point of the second reflection line and the eye ellipse, including: determining the tangent point of the second reflection line and the eye ellipse as the lower extreme eye point; or determining the tangent point of the second reflection line and the eye ellipse as the lower extreme eye point; based on the lower extreme eye point and a preset distance, determining the lower left extreme eye point and the lower right extreme eye point.
[0206] An embodiment of the present invention also provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a device / electronic device for determining an imaging area, the device / electronic device for determining an imaging area executes a method for determining an imaging area in any of the above-mentioned method embodiments.
[0207] It can be seen from the above technical scheme that the present invention provides a method and device for determining an imaging area, the method comprising: determining the extreme eye point through the model data of the projection device, the imaging device and the eye ellipse, and the model data of the projection device corresponding to different extreme eye points, the sub-imaging area on the model data of the imaging device, and finally synthesizing the sub-imaging area to obtain a complete imaging area. By applying the technical scheme of the present invention, the imaging area of the vehicle screen can be quickly determined in the working environment of engineering software such as CATIA, thereby realizing the projection condition simulation of the layout position of the vehicle screen. At the same time, before performing the projection simulation, the user's eye point is determined through the model data of the projection device, the imaging device and the user's eye ellipse, so that the selected eye point is more universal and can better simulate the imaging area that different users can observe. And the process of determining the imaging area of the present invention does not require manual operation, which reduces the occurrence of human verification errors, thereby simplifying the imaging area verification process, and can quickly and efficiently determine whether the layout position of components such as the vehicle screen is appropriate.
[0208] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0209] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0210] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0211] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for determining an imaging area, characterized in that: include: Acquire first model data of a projection device in a vehicle, second model data of an imaging device, and third model data of an eye ellipse of a user; the first model data includes a plurality of projection points, and the plurality of projection points are located at boundary positions of the projection device, wherein the projection device is a light-emitting component or a reflective component in a vehicle, and the imaging device refers to a device in a vehicle that has a light-reflecting and imaging function; determining at least two limit eye points of the user according to the plurality of projection points, the second model data and the third model data; Determine a sub-imaging area of each extreme eye point on the imaging device according to the plurality of projection points, each extreme eye point and the second model data; Based on the sub-imaging area, determining an imaging area of the projection device on the imaging device; The step of determining the sub-imaging area of each extreme eye point on the imaging device according to the plurality of projection points, each extreme eye point and the second model data comprises: Connecting the projection point and the extreme eye point to obtain a first connecting line; Based on the first connecting line and the second model data, establishing a projection line of the first connecting line on the imaging device; Taking the first endpoint of the projection line as a first candidate reflection point; Establishing a second connecting line based on the first candidate reflection point and the projection point; Establishing a third connection line based on the first candidate reflection point and the extreme eye point; Based on the second connecting line and the third connecting line, determining the incident angle and the reflection angle corresponding to the first candidate reflection point; wherein the incident angle is the angle between the second connecting line and a normal line, and the reflection angle is the angle between the third connecting line and the normal line, and the normal line passes through the first candidate reflection point and is perpendicular to the imaging device; If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is less than a threshold angle, determining the first candidate reflection point as the reflection point of the projection point on the projection line; All reflection points of each of the projection points on the imaging device are connected to obtain a sub-imaging area of the limit eye point on the imaging device.
2. The method for determining an imaging area according to claim 1, characterized in that: The method further comprises: If the incident angle corresponding to the first candidate reflection point is greater than the reflection angle, and the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is greater than or equal to the threshold angle, subtract the first step length from the first candidate reflection point to obtain a second candidate reflection point; Determine the incident angle and the reflection angle corresponding to the second candidate reflection point; If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the second candidate reflection point is less than a threshold angle, the second candidate reflection point is determined to be the reflection point of the projection point on the projection line.
3. The method for determining an imaging area according to claim 1, characterized in that: The method further comprises: If the incident angle corresponding to the first candidate reflection point is smaller than the reflection angle, and the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is greater than or equal to the threshold angle, the first candidate reflection point is increased by a second step length to determine a third candidate reflection point; Determine the incident angle and the reflection angle corresponding to the third candidate reflection point; If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the third candidate reflection point is less than a threshold angle, the third candidate reflection point is determined to be the reflection point of the projection point on the projection line.
4. The method for determining an imaging area according to any one of claims 1 to 3, characterized in that: The at least two extreme eye points include a first extreme eye point and a second extreme eye point, and the plurality of projection points include a first projection point located at a lower boundary position of the projection device and a second projection point located at an upper boundary position of the projection device; Determining at least two limit eye points of the user according to the plurality of projection points, the second model data, and the third model data, comprising: According to the first projection point and the second projection point, a plurality of first test reflection points and second test reflection points are respectively selected on the imaging device; Determine a first reflection line tangent to an upper boundary of the eyellipse according to the first projection point, the plurality of first test reflection points and the third model data, and determine the first limit eyepoint according to a tangent point between the first reflection line and the eyellipse; According to the second projection point, the plurality of second test reflection points and the third model data, a second reflection line tangent to the lower boundary of the eye ellipse is determined, and according to the tangent point between the second reflection line and the eye ellipse, the second limit eye point is determined.
5. The method for determining an imaging area according to claim 4, characterized in that: The first limit eye point includes an upper limit eye point, or the first limit eye point includes an upper left limit eye point and an upper right limit eye point; The determining the first limit eye point according to the tangent point between the first reflection line and the eyellipse comprises: determining the tangent point between the first reflection line and the eyellipse as the upper limit eye point; or determining the tangent point between the first reflection line and the eyellipse as the upper limit eye point; and determining the upper left limit eye point and the upper right limit eye point based on the upper limit eye point and a preset distance; The second extreme eye point includes the lower extreme eye point, or the second extreme eye point includes the lower left extreme eye point and the lower right extreme eye point; determining the second extreme eye point based on the tangent point of the second reflection line and the eye ellipse includes: determining the tangent point of the second reflection line and the eye ellipse as the lower extreme eye point; or determining the tangent point of the second reflection line and the eye ellipse as the lower extreme eye point; based on the lower extreme eye point and a preset distance, determining the lower left extreme eye point and the lower right extreme eye point.
6. A device for determining an imaging area, characterized in that: include: a data acquisition module, used to acquire first model data of a projection device in a vehicle, second model data of an imaging device, and third model data of an eye ellipse of a user; the first model data includes a plurality of projection points, and the plurality of projection points are located at boundary positions of the projection device, wherein the projection device is a light-emitting component or a reflective component in a vehicle, and the imaging device refers to a device in a vehicle having a light-reflecting and imaging function; A data processing module, configured to determine at least two limit eye points of the user according to the plurality of projection points, the second model data and the third model data; an imaging area calculation module, configured to determine a sub-imaging area of each extreme eye point on the imaging device according to the plurality of projection points, each extreme eye point and the second model data; and determine an imaging area of the projection device on the imaging device based on the sub-imaging area; A data storage module, used to store data acquired or calculated by the data acquisition module, the data processing module and the imaging area calculation module; The step of determining the sub-imaging area of each extreme eye point on the imaging device according to the plurality of projection points, each extreme eye point and the second model data comprises: Connecting the projection point and the extreme eye point to obtain a first connecting line; Based on the first connecting line and the second model data, establishing a projection line of the first connecting line on the imaging device; Taking the first endpoint of the projection line as a first candidate reflection point; Establishing a second connecting line based on the first candidate reflection point and the projection point; Establishing a third connection line based on the first candidate reflection point and the extreme eye point; Based on the second connecting line and the third connecting line, determining the incident angle and the reflection angle corresponding to the first candidate reflection point; wherein the incident angle is the angle between the second connecting line and a normal line, and the reflection angle is the angle between the third connecting line and the normal line, and the normal line passes through the first candidate reflection point and is perpendicular to the imaging device; If the absolute value of the angle difference between the incident angle and the reflection angle corresponding to the first candidate reflection point is less than a threshold angle, determining the first candidate reflection point as the reflection point of the projection point on the projection line; All reflection points of each of the projection points on the imaging device are connected to obtain a sub-imaging area of the limit eye point on the imaging device.
7. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the imaging area determination method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction, and when the executable instruction is executed on the imaging area determination device / electronic device, the imaging area determination device / electronic device executes the operation of the imaging area determination method as described in any one of claims 1-5.
