A UAV navigation system and method based on image recognition
Through the UAV navigation system based on image recognition, the navigation pass mark is selected and the photographed data is compared and identified, which solves the problem of difficult flight control of the UAV in areas with poor signal and inaccurate positioning, and achieves higher flight accuracy. .
Patent Information
- Application Number
- CN202410453274.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-04-16
AI Technical Summary
Existing drone navigation technology is difficult to control accurately in areas with poor signals and inaccurate positioning.
Using a UAV navigation system based on image recognition, by analyzing the navigation route, selecting multiple navigation passing marks, obtaining the mark position and shape data, planning the shooting position and attitude data, shooting during the flight, and analyzing the shooting data Perform comparative identification, confirm route or alarm.
Improve the accuracy of flight control in areas with poor signals and inaccurate positioning to ensure that drones can fly accurately.
Smart Images

Figure CN118050007B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned aerial vehicle navigation, and in particular relates to an unmanned aerial vehicle navigation system and method based on image recognition. Background Art
[0002] Drone navigation refers to the process by which a drone autonomously determines its spatial position, speed, attitude and heading during a flight mission, ensuring that the drone can fly accurately on a predetermined route and complete various complex tasks.
[0003] Drone navigation mainly involves a variety of technologies to ensure that the drone can fly according to the preset route, including: global positioning system, inertial navigation system, electronic compass, path planning and path tracking technology, etc.
[0004] In the prior art, after completing the flight route navigation of the UAV, the flight control of the UAV is directly performed according to the navigation route. However, in some areas with poor signals and inaccurate positioning, it is difficult to perform accurate flight control according to the navigation. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a drone navigation system and method based on image recognition, aiming to solve the problems raised in the background technology.
[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0007] A method for unmanned aerial vehicle navigation based on image recognition, the method specifically comprising the following steps:
[0008] Performing drone navigation planning for the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass marks;
[0009] Acquire a plurality of identification position data and a plurality of identification shape data of the plurality of navigation identifications, and plan a plurality of identification shooting positions and a plurality of shooting posture data according to the plurality of identification position data;
[0010] During the flight of the drone according to the navigation route of the drone, photographing is performed at the plurality of marking shooting positions according to the plurality of shooting posture data to obtain a plurality of marking shooting data;
[0011] According to the plurality of sign shape data, the plurality of sign photographing data are compared and identified, and route confirmation or abnormality alarm is performed according to the comparison and identification results.
[0012] As a further limitation of the technical solution of the embodiment of the present invention, the step of performing drone navigation planning on the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass identifiers specifically includes the following steps:
[0013] Get the flight destination location;
[0014] According to the flight destination, select the target UAV and obtain the target initial position;
[0015] According to the target initial position and the flight destination position, the UAV navigation planning is performed to obtain the UAV navigation route;
[0016] Perform identification analysis on the navigation route of the UAV and select multiple navigation passing identifications.
[0017] As a further limitation of the technical solution of the embodiment of the present invention, the step of selecting a target UAV according to the flight destination position and obtaining the target initial position specifically includes the following steps:
[0018] Identify multiple idle drones;
[0019] Obtaining idle initial positions of a plurality of the idle drones;
[0020] Calculating the flight distances between the plurality of idle initial positions and the flight destination position;
[0021] Comparing the plurality of flight distances, marking the idle initial position with the shortest flight distance as the target initial position;
[0022] A target UAV is selected according to the target initial position.
[0023] As a further limitation of the technical solution of the embodiment of the present invention, the obtaining of multiple identification position data and multiple identification shape data of the multiple navigation identifications, and planning multiple identification shooting positions and multiple shooting posture data according to the multiple identification position data specifically includes the following steps:
[0024] Acquire multiple identification shape data of multiple navigation identifications;
[0025] Acquire multiple identification position data of multiple navigation identifications;
[0026] According to the plurality of identification position data, selecting a plurality of identification shooting positions from the navigation route of the drone;
[0027] Relative analysis is performed on the plurality of identification shooting positions and the plurality of identification position data, and a plurality of shooting posture data are planned.
[0028] As a further limitation of the technical solution of the embodiment of the present invention, during the flight of the drone according to the navigation route of the drone, shooting is performed at multiple identification shooting positions according to multiple shooting posture data, and obtaining multiple identification shooting data specifically includes the following steps:
[0029] Performing real-time positioning analysis while the UAV is flying along the UAV navigation route;
[0030] generating a plurality of shooting control signals according to the plurality of shooting posture data;
[0031] At the plurality of marked shooting positions, the plurality of shooting control signals are respectively sent to the target drone;
[0032] Acquire multiple identification shooting data fed back and transmitted by the target UAV.
[0033] As a further limitation of the technical solution of the embodiment of the present invention, the comparing and identifying the plurality of identification photographing data according to the plurality of identification shape data, and confirming the route or giving an abnormal alarm according to the comparison and identification results specifically include the following steps:
[0034] Extracting a plurality of logo shape features of the logo shape data;
[0035] According to the multiple logo appearance features, the multiple logo shooting data are compared and identified to obtain multiple comparison and identification results;
[0036] When the comparison and identification results of the plurality of comparison and identification are all successful, performing route confirmation;
[0037] When at least one of the comparison and identification results is a comparison and identification failure, an abnormality alarm is issued.
[0038] A drone navigation system based on image recognition, the system comprises a navigation mark selection unit, a mark shooting planning unit, a mark shooting control unit and an image comparison and recognition unit, wherein:
[0039] A navigation mark selection unit is used to perform drone navigation planning for the target drone, obtain the drone navigation route, analyze the drone navigation route, and select multiple navigation passing marks;
[0040] A marker shooting planning unit, used for acquiring a plurality of marker position data and a plurality of marker shape data of a plurality of the navigation markers, and planning a plurality of marker shooting positions and a plurality of shooting posture data according to the plurality of marker position data;
[0041] A mark shooting control unit, used for shooting at a plurality of the mark shooting positions according to a plurality of the shooting posture data to obtain a plurality of the mark shooting data when the drone is flying according to the drone navigation route;
[0042] The image comparison and recognition unit is used to compare and recognize the plurality of identification photographing data according to the plurality of identification shape data, and to confirm the route or give an abnormal alarm according to the comparison and recognition result.
[0043] As a further limitation of the technical solution of the embodiment of the present invention, the navigation mark selection unit specifically includes:
[0044] The destination location acquisition module is used to obtain the flight destination location;
[0045] An initial position acquisition module is used to select a target UAV according to the flight destination position and obtain the target initial position;
[0046] A navigation planning module, used to perform UAV navigation planning and obtain a UAV navigation route according to the target initial position and the flight destination position;
[0047] The identification selection module is used to perform identification analysis on the navigation route of the unmanned aerial vehicle and select multiple navigation passing identifications.
[0048] As a further limitation of the technical solution of the embodiment of the present invention, the logo shooting planning unit specifically includes:
[0049] An appearance data acquisition module, used to acquire a plurality of identification appearance data of a plurality of navigation identifications;
[0050] A location data acquisition module, used to acquire a plurality of marked location data of a plurality of navigation marks;
[0051] A shooting position selection module, used to select a plurality of marked shooting positions from the navigation route of the drone according to the plurality of marked position data;
[0052] The posture data planning module is used to perform relative analysis on the multiple identification shooting positions and the multiple identification position data, and plan multiple shooting posture data.
[0053] As a further limitation of the technical solution of the embodiment of the present invention, the image comparison and recognition unit specifically includes:
[0054] A feature extraction module, used to extract the logo shape features of the plurality of logo shape data;
[0055] A comparison and recognition module, used for comparing and recognizing the plurality of photographed data of the logos according to the plurality of appearance features of the logos, and obtaining a plurality of comparison and recognition results;
[0056] A route confirmation module, used for confirming the route when the plurality of comparison and identification results are all comparison and identification successful;
[0057] The abnormality alarm module is used to issue an abnormality alarm when at least one of the comparison and identification results is a comparison and identification failure.
[0058] Compared with the prior art, the present invention has the following beneficial effects:
[0059] The embodiment of the present invention performs drone navigation planning on the target drone, selects multiple navigation passing marks; plans multiple marking shooting positions and multiple shooting posture data; during the flight of the drone, shoots at multiple marking shooting positions according to multiple shooting posture data to obtain multiple marking shooting data; compares and identifies the multiple marking shooting data according to multiple marking shape data, and confirms the route or alarms for abnormalities based on the comparison and identification results. It is possible to select multiple navigation passing marks, plan multiple marking shooting positions and multiple shooting posture data, perform shooting control and comparison and identification during the flight of the drone, and confirm the route or alarm for abnormalities based on the comparison and identification results, thereby ensuring that the accuracy of flight control is improved in areas with poor signals and inaccurate positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0061] Figure 1 A flow chart of a method provided by an embodiment of the present invention is shown.
[0062] Figure 2 A flowchart of selecting multiple navigation pass identifiers in the method provided by an embodiment of the present invention is shown.
[0063] Figure 3 A flow chart of obtaining the initial position of a target in the method provided by an embodiment of the present invention is shown.
[0064] Figure 4 A flow chart of planning multiple identified shooting positions and multiple shooting posture data in the method provided by an embodiment of the present invention is shown.
[0065] Figure 5 A flow chart of obtaining multiple identification shooting data in the method provided by an embodiment of the present invention is shown.
[0066] Figure 6 A flow chart of route confirmation or abnormality alarm in the method provided by an embodiment of the present invention is shown.
[0067] Figure 7 The application architecture diagram of the system provided by the embodiment of the present invention is shown.
[0068] Figure 8 The structure block diagram of the navigation mark selection unit in the system provided by the embodiment of the present invention is shown.
[0069] Fig. 9 A structural block diagram of an identification shooting planning unit in a system provided by an embodiment of the present invention is shown.
[0070] Fig.10 The structure block diagram of the image comparison and recognition unit in the system provided by the embodiment of the present invention is shown. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0072] It is understandable that in the prior art, after the flight route navigation of the drone is completed, the flight control of the drone is directly performed according to the navigation route. However, in some areas with poor signals and inaccurate positioning, it is difficult to perform accurate flight control according to the navigation.
[0073] To solve the above problems, the embodiment of the present invention performs drone navigation planning on the target drone, obtains the drone navigation route, analyzes the drone navigation route, selects multiple navigation passing marks; obtains multiple mark position data and multiple mark shape data of multiple navigation passing marks, and plans multiple mark shooting positions and multiple shooting posture data according to the multiple mark position data; during the drone's flight according to the drone navigation route, it shoots at multiple mark shooting positions according to multiple shooting posture data to obtain multiple mark shooting data; according to the multiple mark shape data, it compares and identifies the multiple mark shooting data, and confirms the route or alarms for abnormalities according to the comparison and identification results. It is possible to select multiple navigation passing marks, plan multiple mark shooting positions and multiple shooting posture data, perform shooting control and comparison identification during the drone flight, and confirm the route or alarm for abnormalities according to the comparison and identification results, thereby ensuring that accurate flight control can still be performed in areas with poor signals and inaccurate positioning.
[0074] Figure 1 A flow chart of a method provided by an embodiment of the present invention is shown.
[0075] Specifically, a drone navigation method based on image recognition comprises the following steps:
[0076] Step S101, performing drone navigation planning for the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass markers.
[0077] In an embodiment of the present invention, by obtaining the flight destination position, determining multiple idle drones that are in an idle state at this time, and then obtaining the idle initial positions of the multiple idle drones, the flight distances of the multiple idle initial positions and the flight destination position are calculated, and by comparing the multiple flight distances, the idle initial position with the shortest flight distance is marked as the target initial position, and then the idle drone corresponding to the target initial position is marked as the target drone, and the flight navigation planning of the drone is performed between the target initial position and the flight destination position, the drone navigation route is obtained, and the drone navigation route is analyzed, and multiple navigation passing marks are selected. Among them, the multiple navigation passing marks can be buildings, plants, roads, etc.
[0078] Specifically, Figure 2 A flowchart of selecting multiple navigation pass identifiers in the method provided by an embodiment of the present invention is shown.
[0079] Among them, in the preferred embodiment provided by the present invention, the drone navigation planning for the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass identifiers specifically include the following steps:
[0080] Step S1011, obtaining the flight destination position.
[0081] Step S1012: select a target UAV according to the flight destination position, and obtain the target initial position.
[0082] Specifically, Figure 3 A flow chart of obtaining the initial position of a target in the method provided by an embodiment of the present invention is shown.
[0083] Among them, in the preferred embodiment provided by the present invention, the selecting a target UAV according to the flight destination position and obtaining the target initial position specifically include the following steps:
[0084] Step S10121, determining a plurality of idle drones;
[0085] Step S10122, obtaining the idle initial positions of the plurality of idle drones;
[0086] Step S10123, calculating the flight distances between the plurality of idle initial positions and the flight destination position;
[0087] Wherein, step S10123 includes the following sub-steps:
[0088] Step S10123a, obtaining the latitude and longitude corresponding to the idle initial position and the latitude and longitude of the flight destination position;
[0089] Step S10123b, according to the latitude and longitude corresponding to the idle initial position and the latitude and longitude of the flight destination position, respectively calculate the latitude difference and longitude difference between the idle initial position and the flight destination position;
[0090] Step S10123c, calculating the flight distance between the idle initial position and the flight destination position according to the latitude difference and the longitude difference between the idle initial position and the flight destination position;
[0091] The calculation formula of the flight distance between the idle initial position and the flight destination position is expressed as:
[0092]
[0093] in, Indicates the flight distance between the idle initial position and the flight destination position. represents the radius of the Earth, Indicates the latitude difference between the idle initial position and the flight destination position. Indicates the difference in longitude between the idle initial position and the flight destination position. represents the latitude of the idle initial position, Indicates the latitude of the flight destination. represents the correction factor for the latitude term, Represents the correction factor for the longitude term.
[0094] Step S10124, comparing the multiple flight distances, and marking the idle initial position with the shortest flight distance as the target initial position;
[0095] Step S10125: Select a target UAV based on the target initial position.
[0096] Furthermore, the step of performing drone navigation planning on the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass identifiers further includes the following steps:
[0097] Step S1013, performing UAV navigation planning according to the target initial position and the flight destination position, and obtaining the UAV navigation route.
[0098] Wherein, step S1013 includes the following sub-steps:
[0099] Step S10131, determining the target initial position and the flight destination position, and acquiring surrounding environment data, wherein the surrounding environment data includes flight terrain data, obstacle data, and meteorological condition data;
[0100] Step S10132, based on the target initial position and the flight destination position, combined with the collected surrounding environment data, a route planning algorithm is used to calculate the preferred planned route between the target initial position and the flight destination position;
[0101] In the present invention, the cost function corresponding to the route planning algorithm includes the flight distance cost, the terrain threat cost and the radar threat cost. The formula of the cost function corresponding to the route planning algorithm is expressed as:
[0102]
[0103] in, represents the total cost of the cost function corresponding to the route planning algorithm, Indicates The terrain threat cost of the segment, Indicates The radar threat cost of this segment is Indicates The flight distance cost of the segment, represents the weight coefficient of terrain threat term, represents the weight coefficient of the radar threat term, represents the weight coefficient of the flight distance term, Indicates the number of segments the route is divided into.
[0104] Among them, the total cost function of terrain threat is expressed as:
[0105]
[0106] in, Represents the total cost of terrain threats along the entire route;
[0107] The total cost function of the flight distance is expressed as:
[0108]
[0109] in, represents the total cost function of the flight distance, Indicate point To point The distance Indicates the total number of points on the route;
[0110] The total cost function of radar threat is expressed as:
[0111]
[0112] in, represents the total cost function of radar threat, Indicates the number of radar stations near the route, Indicates The performance factor of a radar station is used to indicate the detection capability of the radar station. Indicates that the drone has arrived The distance between radar stations, Indicates Step S10133: according to the preferred planned route, set the navigation parameters of the UAV, and adjust and optimize the preferred planned route to obtain the navigation route of the UAV.
[0113] Among them, the navigation parameters of the drone include flight altitude, speed and heading, which are required to ensure that the drone can fly safely and efficiently along the planned route. It is understandable that during the flight of the drone, the flight status of the drone and changes in the surrounding environment are monitored in real time through the communication link between the drone and the ground control station. If necessary, the flight route can be adjusted in real time to ensure flight safety.
[0114] Step S1014, performing identification analysis on the navigation route of the drone and selecting multiple navigation passing identifications.
[0115] Furthermore, the image recognition-based drone navigation method further includes the following steps:
[0116] Step S102, obtaining a plurality of identification position data and a plurality of identification shape data of the plurality of navigation identifications, and planning a plurality of identification shooting positions and a plurality of shooting posture data according to the plurality of identification position data.
[0117] In an embodiment of the present invention, based on big data technology, multiple identification shape data corresponding to multiple navigation passing identifications are obtained, and multiple identification position data corresponding to multiple navigation passing identifications are obtained. According to the multiple identification position data, multiple identification shooting positions are selected from the drone navigation route, and then the multiple identification shooting positions and the multiple identification position data are relatively analyzed to plan multiple shooting posture data, wherein the multiple shooting posture data all contain shooting angle, shooting focal length, exposure, shutter, etc.
[0118] Specifically, Figure 4 A flow chart of planning multiple identified shooting positions and multiple shooting posture data in the method provided by an embodiment of the present invention is shown.
[0119] Among them, in the preferred embodiment provided by the present invention, the obtaining of multiple identification position data and multiple identification shape data of the multiple navigation identifications, and planning multiple identification shooting positions and multiple shooting posture data according to the multiple identification position data specifically includes the following steps:
[0120] Step S1021, obtaining a plurality of identification shape data of a plurality of navigation identifications;
[0121] Step S1022, obtaining a plurality of identification position data of a plurality of navigation identifications;
[0122] The marker position data includes the coordinates of the marker in three-dimensional space, that is, includes the positions of multiple markers themselves.
[0123] Step S1023, selecting a plurality of marked shooting locations from the drone navigation route according to the plurality of marked location data;
[0124] The identification of the shooting location includes the longitude and latitude of the shooting location, the shooting altitude and the shooting direction.
[0125] Step S1024: perform relative analysis on the plurality of identification shooting positions and the plurality of identification position data, and plan a plurality of shooting posture data.
[0126] Wherein, step S1024 includes the following sub-steps:
[0127] Step S1024a, determining the position of each mark and the corresponding mark shooting position, and analyzing and calculating the distance and angle between the mark position and the mark shooting position;
[0128] Step S1024b, calculating and determining the shooting posture data corresponding to the shooting device according to the distance and angle between the position of the mark itself and the shooting position of the mark, wherein the shooting posture data includes a rotation angle and a pitch angle.
[0129] The calculation formula of the rotation angle corresponding to the shooting device is expressed as:
[0130]
[0131] in, Indicates the rotation angle corresponding to the camera. Represents the direction vector of Quantity and Quantity;
[0132] Direction Vector Represents the direction vector from the position where the logo was taken to the position of the logo itself. The direction vector The calculation formula is expressed as:
[0133]
[0134] Among them, the coordinates of the marker's own position are , the coordinates of the shooting location are The calculation formula of the pitch angle corresponding to the shooting device is expressed as:
[0135]
[0136] in, Indicates the pitch angle corresponding to the shooting device. Represents the direction vector The projection on the horizontal plane, .
[0137] Furthermore, the image recognition-based drone navigation method further includes the following steps:
[0138] Step S103, when the UAV is flying according to the navigation route of the UAV, shooting is performed at the multiple marking shooting positions according to the multiple shooting posture data to obtain multiple marking shooting data.
[0139] In an embodiment of the present invention, during the process of flying according to the navigation route of the UAV, the target UAV is positioned in real time to obtain the real-time flight position, and according to multiple shooting posture data, multiple corresponding shooting control signals are generated. Then, when the real-time flight position is one of multiple identification shooting positions, the corresponding shooting control signal is sent to the target UAV, and the target UAV is controlled to shoot the corresponding navigation passing mark and feedback the identification shooting data, so that multiple identification shooting data can be obtained.
[0140] Specifically, Figure 5 A flow chart of obtaining multiple identification shooting data in the method provided by an embodiment of the present invention is shown.
[0141] Among them, in the preferred embodiment provided by the present invention, during the UAV flying according to the navigation route of the UAV, shooting is performed at multiple identification shooting positions according to multiple shooting posture data, and obtaining multiple identification shooting data specifically includes the following steps:
[0142] Step S1031, performing real-time positioning analysis while the drone is flying along the drone navigation route;
[0143] Step S1032, generating a plurality of shooting control signals according to the plurality of shooting posture data;
[0144] Step S1033, at the plurality of marked shooting positions, sending the plurality of shooting control signals to the target drone respectively;
[0145] Step S1034: acquiring a plurality of identification shooting data transmitted as feedback by the target UAV.
[0146] Furthermore, the image recognition-based drone navigation method further includes the following steps:
[0147] Step S104: performing comparison and identification on the plurality of photographed sign data according to the plurality of sign shape data, and performing route confirmation or abnormality alarm according to the comparison and identification result.
[0148] In an embodiment of the present invention, feature analysis is performed on multiple logo shape data to extract multiple logo shape features such as shape and color, and then multiple logo shot data are compared and identified according to the multiple logo shape features to obtain multiple comparison and identification results. According to different comparison and identification results, route confirmation or abnormality alarm is performed. Specifically: when multiple comparison and identification results are all comparison and identification successes, route confirmation is performed and normal flight continues; and when at least one comparison and identification result is a comparison and identification failure, an abnormality alarm is issued and flight adjustment is required.
[0149] Specifically, Figure 6 A flow chart of route confirmation or abnormality alarm in the method provided by an embodiment of the present invention is shown.
[0150] Among them, in the preferred embodiment provided by the present invention, the comparison and identification of the plurality of identification photographing data according to the plurality of identification shape data, and the route confirmation or abnormal alarm according to the comparison and identification results specifically include the following steps:
[0151] Step S1041, extracting the logo shape features of the plurality of logo shape data;
[0152] Step S1042, performing comparative identification on the plurality of photographed data of the logos according to the plurality of logo appearance features, and obtaining a plurality of comparative identification results;
[0153] Wherein, step S1042 includes the following sub-steps:
[0154] Step S1042a, performing shape contrast recognition, color contrast recognition, texture contrast recognition, and size ratio contrast recognition on the plurality of photographed logo data according to the plurality of logo appearance features, so as to obtain a shape recognition item score, a color recognition item score, a texture recognition item score, and a size ratio recognition item score, respectively;
[0155] It should be noted that shape contrast recognition refers to recognition by comparing the similarity between the shape of the logo in the captured data and the shape of the known logo. This can be achieved by calculating the degree of match between the outline, boundary or key points of the shape. Color contrast recognition means that if the logo has a specific color or color combination, it can be recognized by comparing the similarity between the color of the logo in the captured data and the color of the known logo. Color contrast can be based on color histograms, color moments or other color features. In texture contrast recognition, the surface texture of the logo can also be used as an important recognition feature. By extracting and comparing the texture features of the logo in the captured data with the texture features of the known logo, effective contrast recognition can be performed. In size and ratio contrast recognition, recognition is performed by comparing whether the size features such as the size and aspect ratio of the logo in the captured data are consistent with the size features of the known logo.
[0156] Step S1042b, determining whether the shape recognition item score, color recognition item score, texture recognition item score, and size ratio recognition item score are all greater than corresponding shape recognition item score thresholds, color recognition item score thresholds, texture recognition item score thresholds, and size ratio recognition item score thresholds;
[0157] Step S1042c: if yes, then based on the shape recognition item score, the color recognition item score, the texture recognition item score and the size ratio recognition item score, a comprehensive recognition score of the marker shooting data is calculated;
[0158] Among them, the calculation formula of the recognition comprehensive score is expressed as:
[0159]
[0160] in, represents the comprehensive recognition score, represents the shape recognition item score, represents the color recognition item score, represents the score of texture recognition item, represents the size ratio recognition item score, represents the weight factor of the shape recognition item, represents the weight factor of the color recognition item, represents the weight factor of the texture recognition item, Represents the weight factor of the size ratio identification item.
[0161] Step S1042d, when it is determined that the identification comprehensive score is greater than the preset comprehensive score threshold, the comparison and identification result is determined to be a comparison and identification success. Step S1043, when multiple comparison and identification results are all comparison and identification successes, route confirmation is performed;
[0162] Step S1044: when at least one of the comparison and identification results is a comparison and identification failure, an abnormality alarm is issued.
[0163] Furthermore, Figure 7 The application architecture diagram of the system provided by the embodiment of the present invention is shown.
[0164] Among them, in another preferred embodiment provided by the present invention, a drone navigation system based on image recognition includes:
[0165] The navigation mark selection unit 101 is used to perform drone navigation planning for the target drone, obtain the drone navigation route, analyze the drone navigation route, and select multiple navigation passing marks.
[0166] In an embodiment of the present invention, the navigation identification selection unit 101 obtains the flight destination position, determines multiple idle drones that are in an idle state at this time, and then obtains the idle initial positions of the multiple idle drones, and then calculates the straight-line flight distances between the multiple idle initial positions and the flight destination position. By comparing the multiple flight distances, the idle initial position with the shortest flight distance is marked as the target initial position, and then the idle drone corresponding to the target initial position is marked as the target drone, and flight navigation planning of the drone is performed between the target initial position and the flight destination position, the drone navigation route is obtained, and the drone navigation route is analyzed, and multiple navigation passing identifications are selected, wherein the multiple navigation passing identifications can be buildings, plants, roads, etc.
[0167] Specifically, Figure 8 It shows a structural block diagram of the navigation mark selection unit 101 in the system provided by an embodiment of the present invention.
[0168] In a preferred embodiment of the present invention, the navigation identification selection unit 101 specifically includes:
[0169] The destination position acquisition module 1011 is used to acquire the flight destination position;
[0170] The initial position acquisition module 1012 is used to select a target UAV according to the flight destination position and obtain the target initial position;
[0171] The navigation planning module 1013 is used to perform drone navigation planning according to the target initial position and the flight destination position, and obtain the drone navigation route;
[0172] The identification selection module 1014 is used to perform identification analysis on the navigation route of the drone and select multiple navigation passing identifications.
[0173] Furthermore, the image recognition-based drone navigation system also includes:
[0174] The marker shooting planning unit 102 is used to obtain a plurality of marker position data and a plurality of marker shape data of the plurality of navigation markers, and plan a plurality of marker shooting positions and a plurality of shooting posture data according to the plurality of marker position data.
[0175] In an embodiment of the present invention, the sign shooting planning unit 102 obtains a plurality of sign shape data corresponding to a plurality of navigation passing sign, and obtains a plurality of sign position data corresponding to a plurality of navigation passing sign based on big data technology, selects a plurality of sign shooting positions from the drone navigation route according to the plurality of sign position data, and then performs relative analysis on the plurality of sign shooting positions and the plurality of sign position data, and plans a plurality of shooting posture data, wherein the plurality of shooting posture data all contain shooting angle, shooting focal length, exposure, shutter, etc.
[0176] Specifically, Fig. 9 It shows a structural block diagram of the identification shooting planning unit 102 in the system provided by an embodiment of the present invention.
[0177] Among them, in the preferred embodiment provided by the present invention, the logo shooting planning unit 102 specifically includes:
[0178] The shape data acquisition module 1021 is used to acquire shape data of a plurality of navigation markers;
[0179] A position data acquisition module 1022 is used to acquire a plurality of marked position data of a plurality of navigation marks;
[0180] The shooting position selection module 1023 is used to select a plurality of marked shooting positions from the navigation route of the drone according to the plurality of marked position data;
[0181] The posture data planning module 1024 is used to perform relative analysis on the multiple identification shooting positions and the multiple identification position data, and plan multiple shooting posture data.
[0182] Furthermore, the image recognition-based drone navigation system also includes:
[0183] The mark shooting control unit 103 is used to shoot at multiple mark shooting positions according to multiple shooting posture data to obtain multiple mark shooting data when the drone flies according to the drone navigation route.
[0184] In an embodiment of the present invention, during the process of flying according to the UAV navigation route, the identification shooting control unit 103 performs real-time positioning of the target UAV, obtains the real-time flight position, and generates multiple corresponding shooting control signals according to multiple shooting posture data. Then, when the real-time flight position is one of the multiple identification shooting positions, the corresponding shooting control signal is sent to the target UAV, controlling the target UAV to shoot the corresponding navigation passing mark, and feeding back the identification shooting data, so that multiple identification shooting data can be obtained.
[0185] The image comparison and recognition unit 104 is used to compare and recognize the plurality of the logo photographing data according to the plurality of the logo shape data, and to confirm the route or alarm abnormality according to the comparison and recognition result.
[0186] In the embodiment of the present invention, the image comparison and recognition unit 104 performs feature analysis on multiple logo shape data to extract multiple logo shape features such as shape and color, and then compares and recognizes multiple logo shot data according to the multiple logo shape features to obtain multiple comparison and recognition results. According to different comparison and recognition results, route confirmation or abnormality alarm is performed. Specifically: when multiple comparison and recognition results are all comparison and recognition successes, route confirmation is performed and normal flight continues; when at least one comparison and recognition result is a comparison and recognition failure, an abnormality alarm is issued and flight adjustment is required.
[0187] Specifically, Fig.10 The structure block diagram of the image comparison and recognition unit 104 in the system provided by the embodiment of the present invention is shown.
[0188] Among them, in the preferred embodiment provided by the present invention, the image comparison and recognition unit 104 specifically includes:
[0189] A feature extraction module 1041 is used to extract the logo shape features of the logo shape data;
[0190] A comparison and recognition module 1042 is used to compare and recognize the plurality of photographed data of the logos according to the plurality of logo appearance features, and obtain a plurality of comparison and recognition results;
[0191] A route confirmation module 1043, configured to confirm the route when the plurality of comparison and identification results are all comparison and identification successes;
[0192] The abnormality alarm module 1044 is used to issue an abnormality alarm when at least one of the comparison and identification results is a comparison and identification failure.
[0193] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0194] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0195] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0196] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0197] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A drone navigation method based on image recognition, characterized in that: The method specifically comprises the following steps: Performing drone navigation planning for the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass marks; Acquire a plurality of identification position data and a plurality of identification shape data of the plurality of navigation identifications, and plan a plurality of identification shooting positions and a plurality of shooting posture data according to the plurality of identification position data; During the flight of the drone according to the navigation route of the drone, photographing is performed at the plurality of marking shooting positions according to the plurality of shooting posture data to obtain a plurality of marking shooting data; According to the plurality of sign shape data, the plurality of sign photographing data are compared and identified, and the route is confirmed or an abnormality alarm is issued according to the comparison and identification results; The method of performing drone navigation planning on the target drone, obtaining the drone navigation route, analyzing the drone navigation route, and selecting multiple navigation pass identifiers specifically includes the following steps: Get the flight destination location; According to the flight destination, select the target UAV and obtain the target initial position; According to the target initial position and the flight destination position, the UAV navigation planning is performed to obtain the UAV navigation route; Performing identification analysis on the navigation route of the drone and selecting a plurality of navigation passing identifications; The step of selecting a target UAV according to the flight destination position and obtaining the target initial position specifically includes the following steps: Identify multiple idle drones; Obtaining idle initial positions of a plurality of the idle drones; Calculating the flight distances between the plurality of idle initial positions and the flight destination position; Comparing the plurality of flight distances, marking the idle initial position with the shortest flight distance as the target initial position; Selecting a target UAV according to the target initial position; The method for calculating the flight distance between a plurality of the idle initial positions and the flight destination position comprises the following steps: Get the latitude and longitude corresponding to the idle initial position, as well as the latitude and longitude of the flight destination position; According to the latitude and longitude corresponding to the idle initial position and the latitude and longitude of the flight destination position, respectively calculate the latitude difference and longitude difference between the idle initial position and the flight destination position; Calculate the flight distance between the idle initial position and the flight destination position according to the latitude difference and the longitude difference between the idle initial position and the flight destination position; The calculation formula of the flight distance between the idle initial position and the flight destination position is expressed as: ; in, Indicates the flight distance between the idle initial position and the flight destination position. represents the radius of the Earth, Indicates the latitude difference between the idle initial position and the flight destination position. Indicates the difference in longitude between the idle initial position and the flight destination position. represents the latitude of the idle initial position, Indicates the latitude of the flight destination. represents the correction factor for the latitude term, represents the correction factor for the longitude term; According to the target initial position and the flight destination position, the method for performing drone navigation planning and obtaining the drone navigation route comprises the following steps: Determine the target initial position and the flight destination position, and obtain surrounding environment data, wherein the surrounding environment data includes flight terrain data, obstacle data, and meteorological condition data; Based on the target initial position and the flight destination position, combined with the collected surrounding environment data, a route planning algorithm is used to calculate the optimal planning route between the target initial position and the flight destination position; Among them, the formula of the cost function corresponding to the route planning algorithm is expressed as: ; in, represents the total cost of the cost function corresponding to the route planning algorithm, Indicates The terrain threat cost of the segment, Indicates The radar threat cost of this segment is Indicates The flight distance cost of the segment, represents the weight coefficient of terrain threat term, represents the weight coefficient of the radar threat term, represents the weight coefficient of the flight distance term, Indicates the number of segments the route is divided into; Among them, the total cost function of terrain threat is expressed as: ; in, Represents the total cost of terrain threats along the entire route; The total cost function of the flight distance is expressed as: ; in, represents the total cost function of the flight distance, Indicate point To point The distance Indicates the total number of points on the route; The total cost function of radar threat is expressed as: ; in, represents the total cost function of radar threat, Indicates the number of radar stations near the route, Indicates The performance factor of a radar station is used to indicate the detection capability of the radar station. Indicates that the drone has arrived The distance between radar stations, Indicates The detection capability correction factor corresponding to each radar station; According to the preferred planned route, the navigation parameters of the UAV are set, and the preferred planned route is adjusted and optimized to obtain the navigation route of the UAV; The step of acquiring a plurality of identification position data and a plurality of identification shape data of the plurality of navigation identifications, and planning a plurality of identification shooting positions and a plurality of shooting posture data according to the plurality of identification position data specifically comprises the following steps: Acquire multiple identification shape data of multiple navigation identifications; Acquire multiple identification position data of multiple navigation identifications; According to the plurality of identification position data, selecting a plurality of identification shooting positions from the navigation route of the drone; Relative analysis is performed on the plurality of identification shooting positions and the plurality of identification position data to plan a plurality of shooting posture data; The method for performing relative analysis on the plurality of identification shooting positions and the plurality of identification position data and planning the plurality of shooting posture data comprises the following steps: Determine the position of each sign and the corresponding sign shooting position, and analyze and calculate the distance and angle between the sign position and the sign shooting position; Calculate and determine the shooting posture data corresponding to the shooting device according to the distance and angle between the position of the mark itself and the shooting position of the mark, wherein the shooting posture data includes a rotation angle and a pitch angle; The calculation formula of the rotation angle corresponding to the shooting device is expressed as: ; in, Indicates the rotation angle corresponding to the camera. Represents the direction vector of Quantity and Quantity; Direction Vector Represents the direction vector from the position where the logo was taken to the position of the logo itself. The direction vector The calculation formula is expressed as: ; Among them, the coordinates of the marker's own position are , the coordinates of the shooting location are , the calculation formula of the pitch angle corresponding to the shooting device is expressed as: ; in, Indicates the pitch angle corresponding to the shooting device. Represents the direction vector The projection on the horizontal plane, ; In the process of the drone flying according to the drone navigation route, shooting is performed at multiple marking shooting positions according to multiple shooting posture data, and obtaining multiple marking shooting data specifically includes the following steps: Performing real-time positioning analysis while the UAV is flying along the UAV navigation route; generating a plurality of shooting control signals according to the plurality of shooting posture data; At the plurality of marked shooting positions, the plurality of shooting control signals are respectively sent to the target drone; Acquire multiple identification shooting data fed back and transmitted by the target UAV; The step of comparing and identifying the plurality of photographed identification data according to the plurality of identification shape data, and confirming the route or giving an abnormal alarm according to the comparison and identification results specifically includes the following steps: Extracting a plurality of logo shape features of the logo shape data; According to the multiple logo appearance features, the multiple logo shooting data are compared and identified to obtain multiple comparison and identification results; When the comparison and identification results of the plurality of comparison and identification are all successful, performing route confirmation; When at least one of the comparison and identification results is a comparison and identification failure, an abnormality alarm is issued; The method of comparing and identifying the plurality of photographed data of the logos according to the plurality of logo appearance features and obtaining the plurality of comparison and identification results comprises the following steps: According to the multiple logo shape features, shape comparison recognition, color comparison recognition, texture comparison recognition and size ratio comparison recognition are performed on the multiple logo shooting data to obtain shape recognition item scores, color recognition item scores, texture recognition item scores and size ratio recognition item scores respectively; Determine whether the shape recognition item score, color recognition item score, texture recognition item score, and size ratio recognition item score are all greater than corresponding shape recognition item score thresholds, color recognition item score thresholds, texture recognition item score thresholds, and size ratio recognition item score thresholds; If yes, then based on the shape recognition item score, the color recognition item score, the texture recognition item score and the size ratio recognition item score, a comprehensive recognition score of the marker shooting data is calculated; Among them, the calculation formula of the recognition comprehensive score is expressed as: ; in, represents the comprehensive recognition score, represents the shape recognition item score, represents the color recognition item score, represents the score of texture recognition item, represents the size ratio recognition item score, represents the weight factor of the shape recognition item, represents the weight factor of the color recognition item, represents the weight factor of the texture recognition item, represents the weight factor of the size ratio identification item; When it is determined that the comprehensive recognition score is greater than a preset comprehensive score threshold, the comparison recognition result is determined to be a comparison recognition success.
2. An unmanned aerial vehicle navigation system based on image recognition, characterized in that: The system applies the drone navigation method based on image recognition as described in claim 1 above, and the system includes a navigation mark selection unit, a mark shooting planning unit, a mark shooting control unit and an image comparison and recognition unit, wherein: A navigation mark selection unit is used to perform drone navigation planning for the target drone, obtain the drone navigation route, analyze the drone navigation route, and select multiple navigation passing marks; A marker shooting planning unit, used for acquiring a plurality of marker position data and a plurality of marker shape data of a plurality of the navigation markers, and planning a plurality of marker shooting positions and a plurality of shooting posture data according to the plurality of marker position data; A mark shooting control unit, used for shooting at a plurality of the mark shooting positions according to a plurality of the shooting posture data to obtain a plurality of the mark shooting data when the drone is flying according to the drone navigation route; The image comparison and recognition unit is used to compare and recognize the plurality of identification photographing data according to the plurality of identification shape data, and to confirm the route or give an abnormal alarm according to the comparison and recognition result.
3. The unmanned aerial vehicle navigation system based on image recognition according to claim 2, characterized in that: The navigation identification selection unit specifically includes: The destination location acquisition module is used to obtain the flight destination location; An initial position acquisition module is used to select a target UAV according to the flight destination position and obtain the target initial position; A navigation planning module, used to perform UAV navigation planning and obtain a UAV navigation route according to the target initial position and the flight destination position; An identification selection module is used to perform identification analysis on the navigation route of the drone and select multiple navigation passing identifications; The logo shooting planning unit specifically includes: An appearance data acquisition module, used to acquire a plurality of identification appearance data of a plurality of navigation identifications; A location data acquisition module, used to acquire a plurality of marked location data of a plurality of navigation marks; A shooting position selection module, used to select a plurality of marked shooting positions from the navigation route of the drone according to the plurality of marked position data; A posture data planning module, used for relatively analyzing the plurality of identification shooting positions and the plurality of identification position data, and planning a plurality of shooting posture data; The image comparison and recognition unit specifically includes: A feature extraction module, used to extract the logo shape features of the plurality of logo shape data; A comparison and recognition module, used for comparing and recognizing the plurality of photographed data of the logos according to the plurality of appearance features of the logos, and obtaining a plurality of comparison and recognition results; A route confirmation module, used for confirming the route when the plurality of comparison and identification results are all comparison and identification successful; The abnormality alarm module is used to issue an abnormality alarm when at least one of the comparison and identification results is a comparison and identification failure.
