Method, device, equipment and medium for extracting edge straight line features of fisheye images
Through distortion projection inverse operation and RANSAC algorithm detection, the problem of straight line extraction failure caused by fisheye camera image distortion is solved, efficient and accurate edge straight line feature extraction on fisheye images is achieved, and is suitable for real-time processing of embedded platforms.
Patent Information
- Application Number
- CN202411008499.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The distortion and distortion of fisheye camera images make traditional straight line extraction methods ineffective and cannot effectively extract edge straight line features.
The inverse operation of distortion projection is used to de-distort the edge points of the fisheye image, and the RANSAC algorithm is combined to detect edge straight-line features. The edge straight-line feature extraction is realized through the edge detection module, de-distortion module and edge straight-line feature detection module.
It achieves efficient and accurate edge straight line feature extraction on fisheye images, reduces computing resources and time consumption, and is suitable for real-time processing on embedded platforms.
Smart Images

Figure CN118537580B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital image processing, and in particular relates to a method, device, equipment and medium for extracting edge straight line features of fisheye images. Background Art
[0002] Fisheye cameras have a larger field of view than traditional pinhole cameras, so they are widely used in photography, surveillance, robot environment perception and other fields. The special optical design of fisheye cameras allows fisheye images to contain more content, but also has serious distortion and distortion.
[0003] The edges in an image often contain rich information about the shape and structure of an object. As one of the simplest features, straight line features are the cornerstone of other high-order features. Therefore, in the process of image analysis and processing, image straight line feature extraction has become an important part and an important basis for subsequent advanced tasks such as image segmentation and target recognition.
[0004] Different from pinhole camera images, the distortion and aberration of fisheye images cause the straight line features in the environment to deform on the image, and their pixel distribution and gradient changes also change, resulting in the failure of traditional straight line extraction methods based on pinhole principle images. Summary of the invention
[0005] Based on this, in order to solve the above technical problems, a method, device, equipment and medium for extracting edge straight line features of fisheye images are provided.
[0006] The technical solution adopted by the present invention is as follows:
[0007] As a first aspect of the present invention, a method for extracting edge straight line features of a fisheye image is provided, characterized by comprising:
[0008] S101, performing edge detection on the fisheye image to obtain an edge point set S of the fisheye image;
[0009] S102, according to the distortion projection principle, performing a distortion projection inverse operation on all edge points in the edge point set S to dedistort them, and obtaining an undistorted point set U on a normalized plane;
[0010] Wherein, the normalized plane is a plane that is 1 unit length away from the optical center of the camera that captures the fisheye image;
[0011] S103, according to the point set U, edge straight line features are detected based on the RANSAC algorithm:
[0012] (1) Select any two unselected points from the point set U, and determine a straight line based on the two currently selected points;
[0013] (2) Traverse all points except the two currently selected points to determine whether they fall on the straight line;
[0014] (3) Counting the number of points falling on the straight line; if the number is less than a first threshold, the straight line is discarded; otherwise, the straight line is retained;
[0015] (4) Repeat steps (1) to (3) until the maximum number of cycles is reached or the number of retained straight lines reaches a second threshold;
[0016] (5) Filter the retained multiple straight lines: traverse any two straight lines. If the intersection and union ratio of the points on the two straight lines is greater than the third threshold, the line with fewer points is removed.
[0017] (6) Return the remaining straight lines after filtering.
[0018] As a second aspect of the present invention, a device for extracting edge straight line features of a fisheye image is provided, characterized in that it comprises:
[0019] An edge detection module is used to perform edge detection on the fisheye image to obtain an edge point set S of the fisheye image;
[0020] A dedistortion module, used for performing a distortion projection inverse operation on all edge points in the edge point set S to dedistort them according to the distortion projection principle, so as to obtain a distortion-free point set U on a normalized plane;
[0021] Wherein, the normalized plane is a plane that is 1 unit length away from the optical center of the camera that captures the fisheye image;
[0022] The edge straight line feature detection module is used to detect the edge straight line features based on the point set U and the RANSAC algorithm:
[0023] (1) Select any two unselected points from the point set U, and determine a straight line based on the two currently selected points;
[0024] (2) Traverse all points except the two currently selected points to determine whether they fall on the straight line;
[0025] (3) Counting the number of points falling on the straight line; if the number is less than a first threshold, the straight line is discarded; otherwise, the straight line is retained;
[0026] (4) Repeat steps (1) to (3) until the maximum number of cycles is reached or the number of retained straight lines reaches a second threshold;
[0027] (5) Filter the retained multiple straight lines: traverse any two straight lines. If the intersection and union ratio of the points on the two straight lines is greater than the third threshold, the line with fewer points is removed.
[0028] (6) Return the remaining straight lines after filtering.
[0029] As a third aspect of the present invention, an electronic device is provided, comprising a storage module, wherein the storage module comprises instructions loaded and executed by a processor, wherein when the instructions are executed, the processor executes a method for extracting edge straight line features of a fisheye image according to the first aspect.
[0030] As a fourth aspect of the present invention, a computer-readable storage medium is provided, which stores one or more programs. When the one or more programs are executed by a processor, the method for extracting edge straight line features of a fisheye image according to the first aspect is implemented.
[0031] In view of the technical gap in extracting edge straight line features on fisheye images, the present invention proposes an effective and accurate edge straight line feature extraction method, which does not require geometric correction of the entire fisheye image or deep learning training, but only requires detection of edge straight line features after dedistorting the edge points. It has low consumption of computing resources and time, high efficiency, and can realize real-time processing on embedded platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments:
[0033] Figure 1 A flow chart of a method for extracting edge straight line features of a fisheye image provided by an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of a device for extracting edge straight line features of a fisheye image provided by an embodiment of the present invention;
[0035] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present invention;
[0036] Figure 4 It is a schematic diagram of the present invention. DETAILED DESCRIPTION
[0037] The following will illustrate the implementation methods of the present invention in conjunction with the drawings in the specification. It should be noted that the implementation methods involved in this specification are not exhaustive and do not represent the only implementation methods of the present invention. The following corresponding embodiments are only for the purpose of clearly illustrating the invention content of the patent of the present invention, and are not intended to limit its implementation methods. For ordinary technicians in this field, different forms of changes and modifications can be made on the basis of the description of this embodiment. All obvious changes or modifications that belong to the technical concept and invention content of the present invention are also within the scope of protection of the present invention.
[0038] like Figure 1 As shown, the embodiment of the present application provides a method for extracting edge straight line features of a fisheye image, comprising:
[0039] S101 . Perform edge detection on the fisheye image by using an edge detection operator to obtain an edge point set S of the fisheye image.
[0040] The edge detection operator may be a LOG operator, a Sobel operator, or the like.
[0041] In actual application scenarios, it is often necessary to extract edge straight line features of specific targets, such as speed bumps, lane lines, or pillars. These targets have specific directions in the image: speed bumps are horizontal, lane lines and pillars are vertical. Therefore, in order to improve efficiency and reduce the amount of calculation, it is necessary to filter the points in the edge point set S:
[0042] S11. Determine the gradient direction of each point in the edge point set S.
[0043] S12, eliminating points whose gradient directions do not satisfy preset direction conditions.
[0044] Among them, the preset direction condition is represented by an angle range, and the angle is the angle between the gradient direction and the x-axis of the fisheye image coordinate system. The x-axis can be the horizontal right direction of the fisheye image, horizontal right is 0 degrees, and counterclockwise is the positive direction. Taking the extraction of the edge straight line features of the vertical column as an example, the angle range can be set to 90°±20°.
[0045] S102. According to the distortion projection principle, all edge points in the edge point set S are dedistorted by performing an inverse distortion projection operation to obtain an undistorted point set U on a normalized plane.
[0046] The normalized plane is a plane that is 1 unit length away from the optical center of the camera that captures the fisheye image. Figure 4 As shown in the figure, CG is a straight line in space, O is the optical center of the camera, D1, D2, D3, and D4 are planes with a depth of 1 unit length, that is, the normalized plane, o is on the normalized plane, Oo is the optical axis, and BE is the projection of the straight line CG on the normalized plane. Since light will refract when passing through the fisheye lens, the fisheye camera distortion model models this process as a distortion on the normalized plane, that is, the original projection point B is distorted and located at B'. After each point of the straight line BE is projected on the imaging plane after distortion, it is no longer a straight line, but a curve. Therefore, based on the fisheye camera distortion model, all edge points in the edge point set S are distorted by the inverse operation of the distortion projection. According to the pinhole imaging principle, the straight line on the normalized plane corresponds to the straight line in space.
[0047] Taking the fisheye camera distortion model of OpenCV as an example, different from the traditional radial distortion model, this model is based on the general fisheye camera model proposed by Scaramuzza specifically for wide-angle view distortion correction of fisheye lenses. The model is described by four distortion coefficients. The process of distortion of the projection point P on the normalized plane is shown in the following formula:
[0048]
[0049]
[0050]
[0051]
[0052]
[0053] in, is the radial distance of the normalized coordinates, , , is the distortion coefficient, are the normalized distorted coordinates, is the edge point coordinate, and K is the intrinsic parameter matrix of the fisheye camera.
[0054] Therefore, by performing the inverse operation according to the above distortion process, the undistorted point P on the normalized plane corresponding to each edge point can be obtained, thereby accurately obtaining the undistorted point set U on the normalized plane, which is helpful for the accuracy of the final edge line feature extraction.
[0055] Of course, other fisheye camera distortion models can also be selected.
[0056] S103 . Detect edge straight line features based on the point set U and the RANSAC algorithm.
[0057] The point set U contains n points {P0,P1,,,P{n-1}}. The specific detection process is as follows:
[0058] (1) From the point set U, select any two unselected points and mark them as selected. Determine a straight line based on the two currently selected points.
[0059] In this step, similar to step S101, in order to improve efficiency and reduce the amount of calculation, the straight line needs to be screened: if the direction of the straight line does not meet the preset direction condition, two unselected points are reselected from the point set U.
[0060] The preset direction condition is also represented by an angle range, where the angle is the angle between the direction of the straight line and the x-axis of the normalized plane coordinate system, and the x-axis may be the horizontal rightward direction of the normalized plane.
[0061] It can be understood that, for the scenario of extracting all edge straight line features in the fisheye image (not extracting edge straight line features of a specific target), the edge point filtering operation in step S101 and the straight line screening operation here can be omitted.
[0062] (2) Traverse all points except the two currently selected points, determine whether they fall on the straight line, and record the points that fall on the straight line.
[0063] (3) Count the number of points falling on the straight line. If the number is less than the first threshold (such as 15), it means that there are too few points falling on the straight line and the straight line is not obvious. It is likely to be a false detection, so the line is removed. Otherwise, the line is retained.
[0064] (4) Repeat steps (1)-(3) until the maximum number of cycles is reached or the number of retained lines reaches a second threshold (e.g., 5).
[0065] (5) Filter the retained lines: Traverse any two lines. If the intersection-to-union ratio (the ratio of the number of elements in the intersection of the points to the number of elements in the union of the points) of the points on the two lines is greater than the third threshold (such as 0.5), it means that the two lines are very close and belong to redundant detection. Considering that the line with more points can better represent the real line, the line with fewer points is eliminated.
[0066] (6) Return the remaining straight lines after filtering.
[0067] Among them, the returned straight line is the edge straight line feature finally extracted.
[0068] Compared with the common brute force iterative detection method, the above detection process can extract edge straight line features of equal quality with fewer attempts, and has high detection efficiency.
[0069] From the above, it can be seen that the embodiment of the present application proposes an effective and accurate means of extracting edge straight line features on fisheye images to address the technical gap in extracting edge straight line features on fisheye images. The method does not require geometric correction of the entire fisheye image or deep learning training, but only requires detecting edge straight line features after dedistorting the edge points. The method has low consumption of computing resources and time, high efficiency, and can achieve real-time processing on embedded platforms.
[0070] At the same time, it fully combines the needs of actual application scenarios and filters out infeasible data in advance according to conditions during the implementation process, reducing the amount of calculation.
[0071] In addition, through the double filtering of steps S11, S12 and S103(1), straight lines in the fisheye image that are located in the same direction but do not belong to the same object can be effectively distinguished, so that noisy straight lines with no practical significance can be eliminated.
[0072] The following will describe in detail the edge line feature extraction device of one or more embodiments of the present invention. Those skilled in the art will appreciate that these extraction devices can be configured using commercially available hardware components through the steps taught in this solution. Figure 2 FIG. 4 shows a device for extracting edge straight line features of a fisheye image provided by an embodiment of the present invention. Figure 2 As shown, the extraction device includes an edge detection module 11, a dedistortion module 12 and an edge straight line feature detection module 13.
[0073] The edge detection module 11 is used to perform edge detection on the fisheye image by using an edge detection operator to obtain an edge point set S of the fisheye image.
[0074] The edge detection operator may be a LOG operator, a Sobel operator, or the like.
[0075] In actual application scenarios, it is often necessary to extract edge straight line features of specific targets, such as speed bumps, lane lines, or pillars. These targets have specific directions in the image: speed bumps are horizontal, lane lines and pillars are vertical. Therefore, in order to improve efficiency and reduce the amount of calculation, it is necessary to filter the points in the edge point set S:
[0076] S11. Determine the gradient direction of each point in the edge point set S.
[0077] S12, eliminating points whose gradient directions do not satisfy preset direction conditions.
[0078] Among them, the preset direction condition is represented by an angle range, and the angle is the angle between the gradient direction and the x-axis of the fisheye image coordinate system. The x-axis can be the horizontal right direction of the fisheye image, horizontal right is 0 degrees, and counterclockwise is the positive direction. Taking the extraction of the edge straight line features of the vertical column as an example, the angle range can be set to 90°±20°.
[0079] The dedistortion module 12 is used to perform a distortion projection inverse operation on all edge points in the edge point set S to dedistort them according to the distortion projection principle, so as to obtain a distortion-free point set U on a normalized plane.
[0080] The normalized plane is a plane that is 1 unit length away from the optical center of the camera that captures the fisheye image. Figure 4As shown in the figure, CG is a straight line in space, O is the optical center of the camera, D1, D2, D3, and D4 are planes with a depth of 1 unit length, that is, the normalized plane, o is on the normalized plane, Oo is the optical axis, and BE is the projection of the straight line CG on the normalized plane. Since light will refract when passing through the fisheye lens, the fisheye camera distortion model models this process as a distortion on the normalized plane, that is, the original projection point B is distorted and located at B'. After each point of the straight line BE is projected on the imaging plane after distortion, it is no longer a straight line, but a curve. Therefore, based on the fisheye camera distortion model, all edge points in the edge point set S are distorted by the inverse operation of the distortion projection. According to the pinhole imaging principle, the straight line on the normalized plane corresponds to the straight line in space.
[0081] Taking the fisheye camera distortion model of OpenCV as an example, different from the traditional radial distortion model, this model is based on the general fisheye camera model proposed by Scaramuzza specifically for wide-angle view distortion correction of fisheye lenses. The model is described by four distortion coefficients. The process of distortion of the projection point P on the normalized plane is shown in the following formula:
[0082]
[0083]
[0084]
[0085]
[0086]
[0087] in, is the radial distance of the normalized coordinates, , , is the distortion coefficient, are the normalized distorted coordinates, is the edge point coordinate, and K is the intrinsic parameter matrix of the fisheye camera.
[0088] Therefore, by performing the inverse operation according to the above distortion process, the undistorted point P on the normalized plane corresponding to each edge point can be obtained, thereby accurately obtaining the undistorted point set U on the normalized plane, which is helpful for the accuracy of the final edge line feature extraction.
[0089] Of course, other fisheye camera distortion models can also be selected.
[0090] The edge straight line feature detection module 13 is used to detect edge straight line features according to the point set U based on the RANSAC algorithm.
[0091] The point set U contains n points {P0,P1,,,P{n-1}}. The specific detection process is as follows:
[0092] (1) From the point set U, select any two unselected points and mark them as selected. Determine a straight line based on the two currently selected points.
[0093] This step is similar to the edge detection module 11. In order to improve efficiency and reduce the amount of calculation, the straight line needs to be screened: if the direction of the straight line does not meet the preset direction condition, two unselected points are reselected from the point set U.
[0094] The preset direction condition is also represented by an angle range, where the angle is the angle between the direction of the straight line and the x-axis of the normalized plane coordinate system, and the x-axis may be the horizontal rightward direction of the normalized plane.
[0095] It is understandable that, for the scenario of extracting all edge straight line features in the fisheye image (not extracting edge straight line features of a specific target), the edge point filtering operation in the edge detection module 11 and the straight line screening operation here can be omitted.
[0096] (2) Traverse all points except the two currently selected points, determine whether they fall on the straight line, and record the points that fall on the straight line.
[0097] (3) Count the number of points falling on the straight line. If the number is less than the first threshold (such as 15), it means that there are too few points falling on the straight line and the straight line is not obvious. It is likely to be a false detection, so the line is removed. Otherwise, the line is retained.
[0098] (4) Repeat steps (1)-(3) until the maximum number of cycles is reached or the number of retained lines reaches a second threshold (e.g., 5).
[0099] (5) Filter the retained lines: Traverse any two lines. If the intersection-to-union ratio (the ratio of the number of elements in the intersection of the points to the number of elements in the union of the points) of the points on the two lines is greater than the third threshold (such as 0.5), it means that the two lines are very close and belong to redundant detection. Considering that the line with more points can better represent the real line, the line with fewer points is eliminated.
[0100] (6) Return the remaining straight lines after filtering.
[0101] Among them, the returned straight line is the edge straight line feature finally extracted.
[0102] Compared with the common brute force iterative detection method, the above detection process can extract edge straight line features of equal quality with fewer attempts, and has high detection efficiency.
[0103] In summary, the edge straight line feature extraction device provided in the above embodiment can execute the edge straight line feature extraction method of a fisheye image provided in the above embodiments.
[0104] The same as above concept, Figure 2 The structure of the edge straight line feature extraction device shown can be implemented as an electronic device. Figure 3 A schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention is shown.
[0105] Exemplarily, the electronic device includes a storage module 21 and a processor 22, the storage module 21 includes instructions loaded and executed by the processor 22, and when the instructions are executed, the processor 22 executes the steps of various exemplary embodiments of the present invention described in the above-mentioned method for extracting edge straight line features of a fisheye image in this specification.
[0106] It should be understood that the processor 22 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0107] A computer-readable storage medium is also provided in an embodiment of the present invention, which stores one or more programs. When the one or more programs are executed by a processor, the steps of various exemplary embodiments of the present invention described in the above-mentioned method for extracting edge straight line features of a fisheye image are implemented.
[0108] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).
[0109] As is known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
[0110] Exemplarily, the computer-readable storage medium may be an internal storage module of the electronic device of the aforementioned embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device.
[0111] The electronic device and computer-readable storage medium provided in the aforementioned embodiments address the technical gap in extracting edge straight line features on fisheye images and propose an effective and accurate means for extracting edge straight line features. The method does not require geometric correction of the entire fisheye image or deep learning training, but only requires detecting edge straight line features after dedistorting the edge points. The method has low consumption of computing resources and time, high efficiency, and can achieve real-time processing on embedded platforms.
[0112] At the same time, it fully combines the needs of actual application scenarios and filters out infeasible data in advance according to conditions during the implementation process, reducing the amount of calculation.
[0113] In addition, through the double filtering of steps S11, S12 and S103(1), straight lines in the fisheye image that are located in the same direction but do not belong to the same object can be effectively distinguished, so that noisy straight lines with no practical significance can be eliminated.
[0114] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for extracting edge line features of fisheye images, characterized in that: include: S101, performing edge detection on the fisheye image to obtain an edge point set S of the fisheye image; S102, according to the distortion projection principle, performing a distortion projection inverse operation on all edge points in the edge point set S to dedistort them, and obtaining an undistorted point set U on a normalized plane; Wherein, the normalized plane is a plane that is 1 unit length away from the optical center of the camera that captures the fisheye image; S103, according to the point set U, edge straight line features are detected based on the RANSAC algorithm: (1) Select any two unselected points from the point set U, and determine a straight line based on the two currently selected points; (2) Traverse all points except the two currently selected points to determine whether they fall on the straight line; (3) Counting the number of points falling on the straight line; if the number is less than a first threshold, the straight line is discarded; otherwise, the straight line is retained; (4) Repeat steps (1) to (3) until the maximum number of cycles is reached or the number of retained straight lines reaches a second threshold; (5) Filter the retained multiple straight lines: traverse any two straight lines. If the intersection and union ratio of the points on the two straight lines is greater than the third threshold, the line with fewer points is removed. (6) Return the remaining straight lines after filtering.
2. The method for extracting edge straight line features of a fisheye image according to claim 1, characterized in that: The step S102 further comprises: Based on the fisheye camera distortion model, all edge points in the edge point set S are subjected to distortion projection inverse operation to remove distortion.
3. The method for extracting edge straight line features of a fisheye image according to claim 1, characterized in that: The step S101 further comprises: Determine the gradient direction at each point in the edge point set S; Eliminate points whose gradient directions do not meet the preset direction conditions.
4. The method for extracting edge straight line features of a fisheye image according to claim 3, characterized in that: The step (1) further comprises: If the direction of the straight line does not satisfy the preset direction condition, two unselected points are reselected from the point set U.
5. The method for extracting edge straight line features of a fisheye image according to claim 4, characterized in that: The preset direction condition is characterized by an angle range, where the angle is the angle between the gradient direction and the x-axis of the fisheye image coordinate system, or the angle between the direction of the straight line and the x-axis of the normalized plane coordinate system.
6. The method for extracting edge straight line features of a fisheye image according to claim 1, characterized in that: The step S101 further comprises: The fisheye image is subjected to edge detection by using edge detection operators.
7. A device for extracting edge straight line features of fisheye images, characterized in that: include: An edge detection module is used to perform edge detection on the fisheye image to obtain an edge point set S of the fisheye image; A dedistortion module, used for performing a distortion projection inverse operation on all edge points in the edge point set S to dedistort them according to the distortion projection principle, so as to obtain a distortion-free point set U on a normalized plane; Wherein, the normalized plane is a plane that is 1 unit length away from the optical center of the camera that captures the fisheye image; The edge straight line feature detection module is used to detect the edge straight line features based on the point set U and the RANSAC algorithm: (1) Select any two unselected points from the point set U, and determine a straight line based on the two currently selected points; (2) Traverse all points except the two currently selected points to determine whether they fall on the straight line; (3) Counting the number of points falling on the straight line; if the number is less than a first threshold, the straight line is discarded; otherwise, the straight line is retained; (4) Repeat steps (1) to (3) until the maximum number of cycles is reached or the number of retained straight lines reaches a second threshold; (5) Filter the retained multiple straight lines: traverse any two straight lines. If the intersection and union ratio of the points on the two straight lines is greater than the third threshold, the line with fewer points is removed. (6) Return the remaining straight lines after filtering.
8. An electronic device, characterized in that: It comprises a storage module, wherein the storage module comprises instructions loaded and executed by a processor, and when the instructions are executed, the processor executes a method for extracting edge straight line features of a fisheye image according to any one of claims 1 to 6.
9. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed by the processor, the method for extracting edge straight line features of a fisheye image as described in any one of claims 1 to 6 is implemented.
