Vehicle view measurement method, device, equipment, medium and product
Through image acquisition and coordinate conversion technology, the vehicle field of view boundary is automatically measured, which solves the problem of low efficiency in the existing technology and improves measurement accuracy and driving safety.
Patent Information
- Application Number
- CN202410907331.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-29
AI Technical Summary
The vehicle visual field measurement method in the existing technology is inefficient and relies on manual operation, resulting in insufficient measurement efficiency and accuracy and affecting driving safety.
Using image acquisition and coordinate conversion technology, the driver's blind spot image is collected through the camera, the original visual field boundary is extracted and coordinate converted in the target coordinate system, and the vehicle visual field boundary is obtained to achieve automated measurement.
It improves the efficiency and accuracy of vehicle visual field measurement, reduces manual operations, and enhances driving safety.
Smart Images

Figure CN118857776A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of automobile technology, and in particular to a method, device, equipment, medium and product for measuring vehicle field of view. Background Art
[0002] With the rapid development of commercial vehicles, in order to ensure the safety of vehicle driving, it is necessary to measure the field of view of the vehicle's blind spot during the vehicle development stage. Among them, the field of view boundary is generally used to represent the field of view.
[0003] At present, the measurement method for vehicle vision is relatively simple. Most of them rely on the reflection principle of the rearview mirror, use a laser transmitter to scan along the boundary of the rearview mirror's vision, mark the laser scanning feature points on the ground and record the positions one by one, and finally connect the positions to obtain the boundary of the vision. This mechanical laser scanning method requires manual operation, the operation process is relatively complicated, and the measurement efficiency is low. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, equipment, medium and product for measuring the field of view of a vehicle, which can measure the field of view of the blind spot of the vehicle, solve the problem of low measurement efficiency in manual measurement of the field of view, improve the measurement efficiency and measurement accuracy, and thus ensure the safety of vehicle driving.
[0005] In a first aspect, an embodiment of the present invention provides a method for measuring a vehicle field of view, comprising:
[0006] Collecting a visual field image to be tested of the vehicle, wherein the visual field image to be tested is an image of a blind spot of the driver's visual field;
[0007] Extracting the original visual field boundary in the visual field image to be measured;
[0008] The original field of view boundary is subjected to coordinate transformation to obtain a target field of view boundary of the vehicle in a target coordinate system as a measurement result of the vehicle field of view.
[0009] In a second aspect, an embodiment of the present invention further provides a device for measuring a vehicle field of view, the device comprising:
[0010] A visual field image acquisition module to be tested, used to acquire a visual field image to be tested of the vehicle, wherein the visual field image to be tested is an image of a blind spot of the driver's visual field;
[0011] An original visual field boundary extraction module, used to extract the original visual field boundary in the visual field image to be measured;
[0012] The target visual field boundary obtaining module is used to perform coordinate transformation on the original visual field boundary to obtain the target visual field boundary of the vehicle in the target coordinate system as the measurement result of the vehicle visual field.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle field of view measurement method described in the embodiment of the present invention.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle field of view measurement method described in the embodiment of the present invention when executed.
[0018] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for measuring the vehicle field of view described in the embodiment of the present invention.
[0019] The embodiment of the present invention discloses a method, device, equipment, medium and product for measuring the field of view of a vehicle, including: collecting a field of view image to be measured of a vehicle, wherein the field of view image to be measured is an image of a driver's blind spot; extracting the original field of view boundary in the field of view image to be measured; performing coordinate transformation on the original field of view boundary to obtain the target field of view boundary of the vehicle in the target coordinate system as the measurement result of the field of view of the vehicle. The above technical scheme can realize the measurement of the field of view range of the blind spot field of the vehicle, specifically considering the coordinate transformation of the original field of view boundary in the field of view image to be measured, obtaining the target field of view boundary of the vehicle in the target coordinate system, and taking the target field of view boundary as the measurement result of the field of view of the vehicle. Compared with the manual method of measuring the field of view range, the target field of view boundary can be obtained quickly and accurately by means of coordinate transformation, thereby improving the measurement efficiency and measurement accuracy of the field of view of the vehicle. Compared with the prior art, the technical scheme provided by this embodiment solves the problem of low measurement efficiency in the manual method of measuring the field of view range, improves the measurement efficiency and measurement accuracy of the field of view of the vehicle, and thus can ensure the safety of vehicle driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of a method for measuring a vehicle field of view in Embodiment 1 of the present invention;
[0021] Figure 2 The visual field image to be measured provided by the embodiment of the present invention;
[0022] Figure 3 An example diagram of a target coordinate system provided by an embodiment of the present invention;
[0023] Figure 4 is a flow chart of a method for measuring a vehicle field of view in a second embodiment of the present invention;
[0024] Figure 5 It is a structural schematic diagram of a vehicle visual field measuring device in Embodiment 3 of the present invention;
[0025] Figure 6 It is a structural schematic diagram of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] Embodiment 1
[0028] Figure 1 This is a flow chart of a method for measuring a vehicle's field of view provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of measuring a vehicle's blind spot field of view. The method can be performed by a vehicle's field of view measuring device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC, or a server, etc. Specifically, it includes the following steps:
[0029] S110: Collecting a field of view image to be tested of the vehicle.
[0030] The visual field image to be measured is an image of the driver's blind spot.
[0031] In this embodiment, the driver's blind spots may be the front, rear, left and right blind spots of the vehicle; the vehicle is equipped with multiple cameras for photographing the driver's blind spots, and uploading the photographed driver's blind spots to the vehicle's on-board display; the on-board display is used to show the driver the blind spot images taken by the cameras.
[0032] As described above, during the development phase of the vehicle, the camera installation position needs to be adjusted multiple times so that the camera can capture the driver's blind spot to the greatest extent. During the multiple position adjustments, the vehicle's field of view needs to be measured to obtain the vehicle's field of view boundary on the ground.
[0033] In this embodiment, the method of collecting the vehicle's field of view image to be tested can be described as: using a camera to shoot the image displayed on the vehicle's on-board display as the vehicle's field of view image to be tested; or intercepting the image displayed on the vehicle's on-board display as the vehicle's field of view image to be tested.
[0034] Specifically, the above-mentioned camera or screenshot method can be used to obtain the image of the driver's blind spot displayed on the vehicle display, and use it as the vehicle's visual field image to be tested.
[0035] S120: extracting the original field of view boundary in the field of view image to be measured.
[0036] In this embodiment, Figure 2 The visual field image to be measured provided by the embodiment of the present invention is as follows: Figure 2 As shown, the visual field image to be measured includes a calibration plate, which can be a black and white checkerboard, and the four corners of the rectangular pattern in the middle of the calibration plate are marked as feature points. The calibration plate is placed in the driver's visual field blind spot, such as on the ground in front of the vehicle windshield.
[0037] In this embodiment, the original visual field boundary can be understood as the boundary line of the visual field blind area in the visual field image to be measured, wherein the original visual field boundary can be as follows Figure 2 shown.
[0038] S130 , performing coordinate transformation on the original field of view boundary to obtain the target field of view boundary of the vehicle in the target coordinate system as the measurement result of the vehicle field of view.
[0039] In this embodiment, the coordinate transformation of the original field of view boundary can be understood as transforming the pixel coordinates of the original field of view boundary in the field of view image to be measured into the position coordinates in the target coordinate system. The target coordinate system can be a spatial coordinate system, such as a two-dimensional spatial coordinate system. The target field of view boundary can be understood as the field of view boundary after the coordinate transformation. The measurement result of the vehicle field of view is represented by the field of view boundary.
[0040] Following the above description, for example, Figure 3 An example diagram of the target coordinate system provided by an embodiment of the present invention, such as Figure 3 As shown, the projection point of the driver's eye point in the vehicle on the ground is taken as the origin, the x-axis is parallel to the ground and points to the right side of the driver, and the y-axis is parallel to the ground and points to the front of the vehicle, so as to establish a target coordinate system.
[0041] In this embodiment, the coordinate transformation of the original field of view boundary is performed to obtain the target field of view boundary of the vehicle in the target coordinate system. One implementation method can be described as: obtaining the pixel coordinates of the feature points of the calibration plate in the field of view image to be measured and the actual position coordinates of the feature points in the target coordinate system; for each feature point, establishing an equation between the pixel coordinates and the actual position coordinates, and calculating the transformation matrix from the pixel coordinates to the actual position coordinates; according to the transformation matrix, the pixel coordinates of the original field of view boundary in the field of view image to be measured are converted into the position coordinates in the target coordinate system to obtain the target field of view boundary of the vehicle in the target coordinate system.
[0042] The technical solution of this embodiment is to collect the image of the field of view to be measured of the vehicle; extract the original field of view boundary in the field of view image to be measured; perform coordinate transformation on the original field of view boundary to obtain the target field of view boundary of the vehicle in the target coordinate system as the measurement result of the vehicle field of view. The above technical solution is to perform coordinate transformation on the original field of view boundary in the field of view image to be measured to obtain the target field of view boundary of the vehicle in the target coordinate system as the measurement result of the vehicle field of view. Compared with the manual measurement of the field of view range, the target field of view boundary can be obtained quickly and accurately through the coordinate transformation, thereby improving the measurement efficiency and accuracy of the vehicle field of view. The technical solution provided by this embodiment solves the problem of low measurement efficiency in the manual measurement of the field of view range, improves the measurement efficiency and accuracy of the vehicle field of view, and thus can ensure the safety of vehicle driving.
[0043] Embodiment 2
[0044] Figure 4 This is a flow chart of a method for measuring a vehicle field of view provided in Embodiment 2 of the present invention. Based on the above embodiment, the method comprises the following steps:
[0045] S210: Collecting a field of view image to be tested of the vehicle.
[0046] In this embodiment, the image of the field of view to be measured of the vehicle may be acquired by using a camera or by taking a screenshot.
[0047] S220: extracting the original field of view boundary in the field of view image to be measured.
[0048] S230, obtaining pixel coordinates of feature points of the calibration plate in the field of view image to be measured.
[0049] In this embodiment, the field of view image to be measured is composed of a plurality of pixel points, and the pixel coordinates are the position coordinates of each pixel point in the field of view image to be measured. Exemplarily, a two-dimensional pixel coordinate system is established in the field of view image to be measured with any pixel point as the origin, so as to obtain the pixel coordinates of the feature points of the calibration plate in the field of view image to be measured.
[0050] S240: Obtain the actual position coordinates of the feature points.
[0051] In this embodiment, the actual position coordinates of the feature points of the calibration plate are the position coordinates of the feature points in the target coordinate system. Figure 3 As shown, the actual position coordinates of the feature points are obtained from the target coordinate system.
[0052] S250 , determining a transformation matrix according to the pixel coordinates of the feature points and the actual position coordinates of the feature points.
[0053] In this embodiment, the conversion matrix is used to characterize the conversion relationship between the pixel coordinates and the actual position coordinates. The conversion matrix is composed of conversion parameters. Before determining the conversion matrix, the conversion parameters are unknown parameters.
[0054] In this embodiment, one implementation method of determining the transformation matrix according to the pixel coordinates of the feature points and the actual position coordinates of the feature points can be described as the following steps:
[0055] a1) For each feature point, a relationship equation between the pixel coordinates of the feature point and the actual position coordinates of the feature point is constructed according to the conversion parameters.
[0056] In this embodiment, the relationship equation can be understood as a relationship equation between the pixel coordinates of the feature point and the actual position coordinates.
[0057] In this embodiment, the conversion matrix may be as follows:
[0058]
[0059] Among them, the transformation matrix has eight transformation parameters in total.
[0060] Exemplarily, taking a feature point as an example, assuming that the pixel coordinates of the feature point are (x1, y1), and the actual position coordinates of the feature point are (X1, Y1), the relationship equation between the pixel coordinates of the feature point and the actual position coordinates of the feature point is constructed according to the above conversion parameters:
[0061]
[0062] For each feature point, two relationship equations similar to the above can be established. The calibration plate has four feature points in total, so eight relationship equations can be established.
[0063] b1) The relationship equations corresponding to each feature point are combined into a relationship equation group.
[0064] In this embodiment, the eight relational equations corresponding to the above four characteristic points are combined into a relational equation group, which can facilitate the rapid solution of the conversion parameters in the relational equation group.
[0065] c1) Solve the transformation parameters in the relational equations to obtain the transformation matrix.
[0066] In this embodiment, the eight conversion parameters are solved according to the obtained relationship equation group, and then the conversion matrix T is obtained.
[0067] S260 , performing coordinate transformation on the original visual field boundary according to the transformation matrix, and using the visual field boundary after the coordinate transformation as the target visual field boundary.
[0068] In this embodiment, coordinate transformation is performed on the original visual field boundary according to the transformation matrix, and one implementation method of using the visual field boundary after coordinate transformation as the target visual field boundary can be described as the following steps:
[0069] a2) Obtain the pixel coordinates of each preset boundary point in the original field of view boundary.
[0070] In this embodiment, the original visual field boundary is composed of a plurality of boundary points, and the preset boundary points are pre-selected boundary points. Specifically, the pixel coordinates of each preset boundary point are obtained from a two-dimensional pixel coordinate system established by the visual field image to be measured.
[0071] b2) using a transformation matrix to transform the pixel coordinates of each preset boundary point to obtain transformed pixel coordinates.
[0072] In this embodiment, the conversion parameters in the conversion matrix at this time are known parameters.
[0073] For example, taking a preset boundary point as an example, assuming that the pixel coordinates of the preset boundary point are (x, y), the pixel coordinates of the preset boundary point are transformed using a transformation matrix to obtain the transformed pixel coordinates (X, Y), as shown below:
[0074]
[0075] The above-mentioned method is used to perform coordinate transformation on each preset boundary point to obtain the transformed pixel coordinates of each preset boundary point.
[0076] c2) Connect the boundary points corresponding to the converted pixel coordinates to obtain the target field of view boundary.
[0077] In this embodiment, the boundary points corresponding to the converted pixel coordinates are connected in the target coordinate system to form a target visual field boundary, wherein the target visual field boundary is as follows: Figure 3 shown.
[0078] The technical solution of this embodiment is to collect the image of the field of view to be measured of the vehicle; extract the original field of view boundary in the field of view image to be measured; obtain the pixel coordinates of the feature points of the calibration plate in the field of view image to be measured; obtain the actual position coordinates of the feature points; determine the transformation matrix according to the pixel coordinates of the feature points and the actual position coordinates of the feature points; perform coordinate transformation on the original field of view boundary according to the transformation matrix, and use the field of view boundary after coordinate transformation as the target field of view boundary. The above technical solution determines the transformation matrix according to the pixel coordinates and the actual position coordinates of the feature points, and can accurately obtain the transformation relationship between the pixel coordinates in the two-dimensional pixel coordinate system and the actual position coordinates in the target coordinate system; at the same time, the original field of view boundary is transformed according to the transformation matrix, and the field of view boundary after coordinate transformation is used as the target field of view boundary. By performing coordinate transformation on the original field of view boundary through the transformation matrix, the target field of view boundary can be obtained quickly and accurately, thereby improving the measurement efficiency and accuracy of the vehicle field of view. The technical solution provided in this embodiment can accurately obtain the conversion relationship between the pixel coordinates in the two-dimensional pixel coordinate system and the actual position coordinates in the target coordinate system, and can quickly and accurately obtain the target field of view boundary by performing coordinate transformation on the original field of view boundary through the transformation matrix, thereby improving the measurement efficiency and measurement accuracy of the vehicle field of view, solving the problem of low measurement efficiency in manual measurement of the field of view range, and thus ensuring the safety of vehicle driving.
[0079] Embodiment 3
[0080] Figure 5 A schematic diagram of a vehicle visual field measurement device provided in Embodiment 3 of the present invention is shown in FIG. Figure 5 As shown, the device comprises:
[0081] The visual field image acquisition module 310 is used to acquire the visual field image of the vehicle, wherein the visual field image is an image of the blind spot of the driver's visual field;
[0082] The original visual field boundary extraction module 320 is used to extract the original visual field boundary in the visual field image to be measured;
[0083] The target visual field boundary obtaining module 330 is used to perform coordinate transformation on the original visual field boundary to obtain the target visual field boundary of the vehicle in the target coordinate system as the measurement result of the vehicle visual field.
[0084] The technical solution of this embodiment is to collect the image of the field of view to be measured of the vehicle through the field of view image acquisition module; to extract the original field of view boundary in the field of view image to be measured through the original field of view boundary extraction module; and to perform coordinate transformation on the original field of view boundary through the target field of view boundary acquisition module to obtain the target field of view boundary of the vehicle in the target coordinate system as the measurement result of the vehicle field of view. The above technical solution performs coordinate transformation on the original field of view boundary in the field of view image to be measured to obtain the target field of view boundary of the vehicle in the target coordinate system. Compared with the manual measurement of the field of view range, the target field of view boundary can be obtained quickly and accurately through the coordinate transformation, thereby improving the measurement efficiency and accuracy of the vehicle field of view. The technical solution provided by this embodiment solves the problem of low measurement efficiency in the manual measurement of the field of view range, improves the measurement efficiency and accuracy of the vehicle field of view, and thus can ensure the safety of vehicle driving.
[0085] Optionally, the image acquisition module 310 of the visual field to be measured can be specifically used for:
[0086] Using a camera to capture an image displayed on a vehicle display as the field of view image to be measured of the vehicle; or
[0087] An image displayed on the vehicle-mounted display of the vehicle is captured as the field of view image to be measured of the vehicle.
[0088] Optionally, the visual field image to be measured includes feature points of a calibration plate, and the calibration plate is located in the blind spot of the driver's visual field.
[0089] Optionally, the target visual field boundary obtaining module 330 may specifically include:
[0090] A pixel coordinate acquisition unit, used to acquire the pixel coordinates of the feature points of the calibration plate in the field of view image to be measured;
[0091] A conversion matrix determination unit, used to determine a conversion matrix according to the pixel coordinates of the feature point and the actual position coordinates of the feature point; wherein the actual position coordinates of the feature point are the position coordinates of the feature point in the target coordinate system;
[0092] A coordinate conversion unit is used to perform coordinate conversion on the original visual field boundary according to the conversion matrix, and use the visual field boundary after the coordinate conversion as the target visual field boundary.
[0093] Optionally, the target visual field boundary acquisition module further includes: an actual position coordinate acquisition unit, configured to acquire the actual position coordinates of the feature point before determining a transformation matrix according to the pixel coordinates of the feature point and the actual position coordinates of the feature point.
[0094] Optionally, the transformation matrix is composed of transformation parameters.
[0095] Optionally, the transformation matrix determination unit can be specifically used to: for each feature point, construct a relationship equation between the pixel coordinates of the feature point and the actual position coordinates of the feature point based on the transformation parameters; combine the relationship equations corresponding to each feature point into a relationship equation group; solve the transformation parameters in the relationship equation group to obtain the transformation matrix.
[0096] Optionally, the coordinate conversion unit can be specifically used to: obtain the pixel coordinates of each preset boundary point in the original field of view boundary; use the conversion matrix to perform coordinate conversion on the pixel coordinates of each preset boundary point to obtain the converted pixel coordinates; connect the boundary points corresponding to the converted pixel coordinates to obtain the target field of view boundary.
[0097] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.
[0098] Embodiment 4
[0099] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0101] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for measuring the vehicle field of view.
[0103] In some embodiments, the method for measuring the vehicle field of view may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for measuring the vehicle field of view described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for measuring the vehicle field of view in any other appropriate manner (e.g., by means of firmware).
[0104] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0106] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0108] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0110] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the vehicle field of view measurement method provided in any embodiment of the present application.
[0111] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0113] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for measuring vehicle vision, characterized in that: include: Collecting a visual field image to be tested of the vehicle, wherein the visual field image to be tested is an image of a blind spot of the driver's visual field; Extracting the original visual field boundary in the visual field image to be measured; The original field of view boundary is subjected to coordinate transformation to obtain a target field of view boundary of the vehicle in a target coordinate system as a measurement result of the vehicle field of view.
2. The method according to claim 1, characterized in that The collecting of the image of the field of view to be measured of the vehicle comprises: Using a camera to capture an image displayed on a vehicle display as the field of view image to be measured of the vehicle; or An image displayed on the vehicle-mounted display of the vehicle is captured as the field of view image to be measured of the vehicle.
3. The method according to claim 1, characterized in that The visual field image to be measured contains characteristic points of a calibration plate, and the calibration plate is located in the blind spot of the driver's visual field; The performing coordinate transformation on the original field of view boundary to obtain a target field of view boundary of the vehicle in a target coordinate system includes: Obtaining pixel coordinates of feature points of a calibration plate in the field of view image to be measured; Determine a transformation matrix according to the pixel coordinates of the feature point and the actual position coordinates of the feature point; wherein the actual position coordinates of the feature point are the position coordinates of the feature point in the target coordinate system; The original visual field boundary is subjected to coordinate transformation according to the transformation matrix, and the visual field boundary after the coordinate transformation is used as the target visual field boundary.
4. The method according to claim 3, characterized in that Before determining the conversion matrix according to the pixel coordinates of the feature points and the actual position coordinates of the feature points, the method further includes: The actual position coordinates of the feature points are obtained.
5. The method according to claim 3, characterized in that: The conversion matrix is composed of conversion parameters, and the conversion matrix is determined according to the pixel coordinates of the feature points and the actual position coordinates of the feature points, including: For each feature point, construct a relationship equation between the pixel coordinates of the feature point and the actual position coordinates of the feature point according to the conversion parameters; The relationship equations corresponding to each feature point are combined into a relationship equation group; The conversion parameters in the relationship equation group are solved to obtain a conversion matrix.
6. The method according to claim 3, characterized in that The step of performing coordinate transformation on the original visual field boundary according to the transformation matrix and using the visual field boundary after the coordinate transformation as the target visual field boundary includes: Obtaining pixel coordinates of each preset boundary point in the original field of view boundary; Using the transformation matrix to perform coordinate transformation on the pixel coordinates of each preset boundary point to obtain transformed pixel coordinates; The boundary points corresponding to the converted pixel coordinates are connected to obtain the target field of view boundary.
7. A device for measuring vehicle vision, characterized in that: include: A visual field image acquisition module to be tested, used to acquire a visual field image to be tested of the vehicle, wherein the visual field image to be tested is an image of a blind spot of the driver's visual field; An original visual field boundary extraction module, used to extract the original visual field boundary in the visual field image to be measured; The target visual field boundary obtaining module is used to perform coordinate transformation on the original visual field boundary to obtain the target visual field boundary of the vehicle in the target coordinate system as the measurement result of the vehicle visual field.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the vehicle field of view measurement method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle field of view measurement method according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for measuring the vehicle field of view according to any one of claims 1 to 6 is implemented.
