Unmanned aerial vehicle inspection picture data set management method, system and device
By acquiring, deduplicating, labeling and storing the UAV inspection picture data set, and using SSIM formula and Mask R-CNN technology, the problem of low efficiency in UAV inspection picture data management is solved and an efficient and orderly system is achieved. Data management improves the efficiency and safety of inspection tasks.
Patent Information
- Application Number
- CN202410679917.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-13
AI Technical Summary
The amount of drone inspection picture data is growing rapidly, and it is difficult for existing technologies to achieve efficient and orderly data collection, storage and management, resulting in poor data quality, a lot of duplicate data, a lack of intelligent indexing and search mechanisms, and consuming a lot of manpower and time. .
Provides a UAV inspection picture data set management method, including acquisition, deduplication, labeling and storage of data sets, instance segmentation and target detection through slice transmission, SSIM formula deduplication, and Mask R-CNN, using the database. Unified management and hierarchical operations based on permissions.
It realizes the efficient and orderly collection, storage and management of drone inspection picture data, improves the value of data resources, accelerates the feedback speed of inspection results, optimizes the decision-making process, and ensures the smooth completion of inspection tasks and maintenance objects. safe and stable operation.
Smart Images

Figure CN118643177A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of data set classification and recognition, intelligent monitoring and data management, and in particular to a method, system and device for managing a data set of unmanned aerial vehicle inspection images. Background Art
[0002] In the field of modern industry and public services, drone technology has become an important means of achieving efficient, accurate and safe inspections, especially in power lines, oil and gas pipelines, infrastructure inspections and environmental monitoring. When drones are equipped with high-definition cameras for inspections, a large amount of image data is generated, which contains extremely rich and detailed on-site information. However, with the growth of drone inspections, the amount of image data has shown an exponential growth, and how to efficiently and orderly collect, store, manage and analyze these image data has become a severe challenge.
[0003] Currently, the storage of drone inspection image data is mainly through hard disk storage, and image data from different sources are stored in a scattered manner. There is a lack of unified data backup and metadata information maintenance. In addition, the data quality is poor, there are many duplicate images, and there is a lack of intelligent indexing and search mechanisms. For large-scale, high-frequency drone inspection tasks, a lot of manpower and time costs are required. Therefore, it is particularly urgent and important to design a management method for drone inspection image data sets for inspection drones, aiming to enhance the value of data resources, accelerate the feedback speed of inspection results, optimize the decision-making process, and ultimately ensure the smooth completion of inspection tasks and the safe and stable operation of maintenance objects. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a method, system and device for managing a drone inspection picture data set, so as to realize the efficient and orderly collection, storage and management of the drone inspection picture data set.
[0005] In a first aspect, a method for managing a drone inspection image dataset is provided, comprising:
[0006] Get the drone inspection image dataset;
[0007] Performing a deduplication operation on the drone inspection image dataset;
[0008] For the drone inspection images in the drone inspection image dataset after deduplication, label them according to their content or specify the labels of the images in the drone inspection image dataset;
[0009] The deduplicated drone inspection images and their labels are stored in the database.
[0010] In a possible implementation, the step of obtaining a drone inspection image dataset includes:
[0011] Manually upload drone inspection image datasets;
[0012] Obtain drone inspection image datasets regularly from third-party systems through data interfaces;
[0013] In the process of obtaining the drone inspection image dataset, the drone inspection image dataset is sliced and transmitted. During the transmission process, each data block has a unique identifier, and the receiver and sender (such as the server and the client) calculate the overall transmission progress based on this.
[0014] In a possible implementation, the acquiring of the drone inspection image dataset may be acquiring a dataset including drone inspection images and annotation files.
[0015] In a possible implementation, the deduplication operation on the drone inspection image dataset includes:
[0016] Deduplication operation is performed on the drone inspection pictures in the drone inspection picture dataset whose similarity scores exceed a first threshold, and only one picture is retained;
[0017] For two pictures that need to be similarity calculated, they are divided into multiple pixel blocks (local areas) respectively; the similarity between the pixel blocks at corresponding positions on the two pictures is calculated, and then based on the similarity between the pixel blocks at corresponding positions on the two pictures, the similarity of the two pictures is calculated;
[0018] Among them, the similarity between the pixel blocks at corresponding positions on the two pictures is calculated using the following formula:
[0019] SSIM(x,y)=[l(x,y)] α *[c(x,y)] β *[s(x,y)] γ
[0020] Where SSIM(x,y) represents the similarity between the corresponding pixel blocks x and y in the two images, l(x,y), c(x,y) and s(x,y) are the similarity components of brightness, contrast and structure of the corresponding pixel blocks x and y in the two images, respectively, α, β and γ are the weight parameters of the similarity components of brightness, contrast and structure;
[0021] Based on the similarity between the pixel blocks at corresponding positions on the two pictures, the similarity of the two pictures is calculated using the following formula:
[0022]
[0023] In the formula, SSIM(X,Y) represents the similarity between images X and Y, and m represents the number of pixel blocks into which the image is divided.
[0024] In a possible implementation, the drone inspection images in the deduplicated drone inspection image dataset are labeled according to their contents, including:
[0025] The Mask Region-based Convolutional Neural Network (Mask R-CNN) is used to perform instance segmentation and target detection on the drone inspection pictures, and then label the drone inspection pictures. The label is used to mark the target type contained in the drone inspection pictures.
[0026] The mask region-based convolutional neural network includes a first convolutional neural network, a region proposal network (RPN), a region alignment layer and a classification head;
[0027] The first convolutional neural network extracts deep features of the image and generates a first feature map; the first feature map is a feature map of the image;
[0028] The RPN performs a sliding window operation on the generated first feature map to generate multiple candidate regions (region proposals), and calculates a score (objectness) for each candidate region, where the score is used to indicate the probability that the candidate region belongs to the foreground; for the candidate region determined to belong to the foreground, calculates its offset, and adjusts the position and size of the candidate region according to the offset;
[0029] The region alignment layer inputs the candidate regions output by the RPN into the second convolutional neural network, extracts features of each candidate region, and outputs a second feature map, where the second feature map is a feature map of the candidate region;
[0030] The classification head further refines the classification decision, inputs the second feature map corresponding to each candidate area, and outputs the probability distribution of each candidate area belonging to each category, thereby obtaining the label of the corresponding drone inspection image.
[0031] In a possible implementation, if the region alignment layer extracts features of a candidate region and outputs multiple second feature maps, a similarity (SSIM) is calculated for the multiple output second feature maps, and a deduplication operation is performed on the second feature maps whose similarity exceeds a second threshold.
[0032] In a possible implementation, the classification loss function of the classification head is:
[0033]
[0034] Among them, L class is the multi-classification cross entropy loss, y i is the true category label of the i-th candidate region, in the form of a one-hot encoded label, and its c-th element y i,c Indicates whether the i-th candidate region belongs to the c-th category, with a value of 0 or 1, y i,c = 0 means that the i-th candidate region does not belong to the c-th category, y i,c =1 means that the i-th candidate region belongs to the c-th category; is the category label of the candidate region predicted by the classification head, in the form of a one-dimensional vector, where the cth element represents the probability that the i-th candidate region belongs to the c-th category; w c represents the weight of the cth category, and n represents the number of categories.
[0035] In a possible implementation, the deduplicated drone inspection pictures and their labels are stored in a database, including: storing the drone inspection pictures in a database of corresponding labels according to the labels of the drone inspection pictures.
[0036] In a possible implementation, the method further includes: operating the drone inspection image dataset and labels based on permission classification.
[0037] In a second aspect, the present application provides a drone inspection image data set management system, including:
[0038] The data set acquisition module is used to obtain the drone inspection image data set;
[0039] A deduplication module, used to perform a deduplication operation on the drone inspection image dataset;
[0040] A labeling module is used to label the drone inspection images in the deduplicated drone inspection image dataset according to their content or to specify labels for images in the drone inspection image dataset;
[0041] The saving module is used to store the deduplicated drone inspection images and their labels into the database.
[0042] In a possible implementation, the system further includes:
[0043] User management module is used to manage accounts, which are divided into system administrators and ordinary users. System administrators are responsible for maintaining system permissions, roles, menu allocation, basic data maintenance and other functions; ordinary users have actual business menus; corresponding function menus are allocated to different roles through role management;
[0044] The dataset download module is used to download and store datasets.
[0045] In a possible implementation, the system further includes: a module for adding, deleting, modifying, and querying data set labels, which is used to perform relevant update operations on data sets and labels.
[0046] In a third aspect, the present application provides a drone inspection image data set management device, including: a memory and a processor;
[0047] The memory is used to store computer programs;
[0048] The processor is used to call the computer program to execute the drone inspection image data set management method as described above.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on an electronic device, the electronic device implements the drone inspection image data set management method as described above.
[0050] In a fifth aspect, the present application provides a computer program product, including a computer program. When the computer program is run on an electronic device, the electronic device enables the electronic device to implement the drone inspection image dataset management method as described above.
[0051] The implementation methods provided in the above-mentioned various aspects of this application can be referenced to each other and will not be described in detail here.
[0052] Beneficial effects:
[0053] The present application proposes a method, system and device for managing a drone inspection picture data set, which obtains a drone inspection picture data set; performs a deduplication operation on the drone inspection picture data set; labels the drone inspection pictures in the deduplicated drone inspection picture data set according to their content or specifies the labels of the pictures in the drone inspection picture data set; and stores the deduplicated drone inspection pictures and their labels in a database. The present application can realize the efficient and orderly collection, storage and management of drone inspection picture data sets. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 This is a flow chart of a method for managing a drone inspection image data set provided by an embodiment of the present invention;
[0056] Figure 2 This is a diagram of a management system for inspection drone inspection image data sets provided by an embodiment of the present invention. Figure 2 (a) is the dataset list page, where you can download, view, and perform other operations on the dataset; Figure 2 (b) is the operation of creating a new dataset upload task. On this page, you can select the dataset or automatically label it. DETAILED DESCRIPTION
[0057] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0058] It should be noted that the terms such as "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a specific relationship or order between these entities or operations. It should be understood that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first" and "second" and the like do not limit them to be necessarily different. It should be understood that the data used in this way can be interchanged under appropriate circumstances. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, article or device including a series of elements includes not only those elements clearly listed, but also other elements that are not clearly listed, or may also include elements inherent to such process, method, product or device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0059] It should be understood that the numbers S1 to S5 are only used to distinguish and express the different steps, and do not constitute a limitation on the execution order of the steps. The execution order of the steps in this application is not limited by the order described above.
[0060] like Figure 1 As shown, an embodiment of the present invention provides a method for managing a drone inspection image data set, including:
[0061] S1: Obtain the drone inspection image dataset.
[0062] In some embodiments, the picture is a visible light picture.
[0063] The visible light image is obtained by taking a picture by a drone at a preset shooting distance and a preset shooting angle from the target. Before shooting, the shooting distance and shooting angle of the camera on the drone from the target are manually set, so that power-related devices or equipment such as lines, insulators or crossarms can be detected in the taken picture.
[0064] In some embodiments, obtaining a drone inspection image dataset may include:
[0065] (1) Manually upload the drone inspection image dataset;
[0066] If the data source is complex and cannot be directly obtained, you can manually create an upload task. The task name is in a fixed format, expressed as a custom-named string with the upload date as a suffix. The date is verified by the date parsing function.
[0067] (2) Obtain drone inspection images from a third-party system;
[0068] UAV inspection images are usually obtained online from a third-party system rather than manually transmitted. When data is available online, batch scheduling can be used to set up scheduled tasks to obtain updated data in batches within a fixed time period, while using data compression, incremental transmission and other technologies to reduce the burden on the server.
[0069] To prevent repeated transmission, the file is sliced and transmitted during the transmission process. During the transmission process, each data block has a unique identifier, and the server and client can calculate the overall transmission progress based on this, so as to call back after a transmission failure or discard it in case of repeated transmission.
[0070] S2: performing a deduplication operation on the drone inspection image dataset.
[0071] In some embodiments, performing a deduplication operation on the drone inspection image dataset includes:
[0072] Deduplication operation is performed on the drone inspection pictures in the drone inspection picture dataset whose similarity scores exceed a first threshold, and only one picture is retained;
[0073] For two pictures that need to be similar, they are divided into multiple pixel blocks (local areas); the similarity between the pixel blocks at corresponding positions on the two pictures is calculated, and then the similarity between the two pictures is calculated based on the similarity between the pixel blocks at corresponding positions on the two pictures. The similarity between the pixel blocks at corresponding positions on the two pictures can be calculated using the following formula:
[0074] SSIM(x,y)=[l(x,y)] α *[c(x,y)] β *[s(x,y)] γ
[0075] Wherein, SSIM(x,y) represents the similarity between corresponding pixel blocks x and y in two images, l(x,y), c(x,y) and s(x,y) are the similarity components of brightness, contrast and structure of corresponding pixel blocks x and y in two images, respectively, α, β and γ are weight parameters of similarity components of brightness, contrast and structure; α, β and γ take empirical values, and illustratively, α=β=γ=1 can be set.
[0076] In the calculation formula, l(x,y) compares the two images by calculating the mean of the pixel blocks, c(x,y) compares based on the standard deviation of the pixel blocks, and s(x,y) reflects the similarity of the image texture structure by calculating the covariance of the pixel blocks.
[0077] Based on the similarity between the pixel blocks at corresponding positions on the two pictures, the similarity of the two pictures can be calculated using the following formula:
[0078]
[0079] In the formula, SSIM(X,Y) represents the similarity between images X and Y, and m represents the number of pixel blocks into which the image is divided.
[0080] The above-mentioned dividing the picture into a plurality of pixel blocks may be dividing the picture into a plurality of pixel blocks evenly according to a certain window size.
[0081] The image data is deduplicated and stored in the database.
[0082] Before the image data is stored in the database, a deduplication operation is performed first. For multiple images with high similarity, only one is retained. When storing, only one image with high similarity needs to be transmitted and stored, thereby enhancing the quality of the data set. The embodiment of the present application constructs a structural similarity index SSIM index, decomposing the image into three basic features: brightness, contrast, and structure, which respectively reflect the grayscale value, local contrast, and texture detail information of the image. The embodiment of the present application first uses a local window analysis to calculate the similarity between the corresponding pixel blocks on the two images, that is, the similarity of the local windows on the two images, and then based on the similarity between the pixel blocks at the corresponding positions on the two images, normalize and calculate the average similarity between all corresponding pixel blocks on the two images as the final similarity of the two images. Comparing pixel features by local regions instead of global one-time comparison first can better reflect the texture features of the image, and the comparison result is more accurate.
[0083] S3: For the drone inspection images in the deduplicated drone inspection image dataset, label them or assign labels to them according to their contents;
[0084] According to the labels of the images, the drone inspection image dataset can be divided into a label library (i.e., a database corresponding to the labels).
[0085] Among them, for the drone inspection pictures in the drone inspection picture dataset after deduplication, labeling them according to their content can use artificial intelligence algorithms to label the pictures in the drone inspection picture dataset;
[0086] Since a picture may contain multiple targets (objects) such as bird nests, insulators, crossarms, and poles, the embodiment of the present application uses a mask region-based convolutional neural network Mask R-CNN to perform instance segmentation and target detection on the drone inspection picture, and then labels the drone inspection picture. The label is used to mark the target type contained in the drone inspection picture. The following steps are included:
[0087] A pre-trained first convolutional neural network extracts deep features of the image and generates a first feature map, where the first feature map is a feature map of the image;
[0088] The pre-trained first convolutional neural network is used to process the input image and output the feature map of the image. For example, input an image and output an image containing the general content of the image but with a lower resolution and more blurry. In a narrow sense, it is to input a matrix and output a matrix.
[0089] RPN performs a sliding window operation on the generated first feature map to generate multiple candidate regions, and calculates a score for each candidate region, which is used to indicate the probability that the candidate region belongs to the foreground.
[0090] The sliding window operation is to generate multiple candidate regions on the feature map according to the selected scale and aspect ratio combination. For example, if three scales and three aspect ratios are selected for the shapes of towers, insulators, and crossarms, nine candidate regions will be generated for each pixel position. These candidate regions cover different shapes and sizes to adapt to the sizes of various targets that may appear in the image. A candidate region belonging to the foreground means that the candidate region contains the target, and a candidate region belonging to the background means that the candidate region does not contain the target.
[0091] At the same time, RPN calculates the offset of the candidate region determined to belong to the foreground, adjusts the position and size of the candidate region according to the offset, so that the candidate region surrounds the target more tightly, and outputs the adjusted candidate region;
[0092] The loss function of RPN includes binary classification loss (binary classification problem: foreground / background) and regression loss (bounding box coordinate adjustment). The binary classification loss function usually adopts the binary cross entropy loss function:
[0093]
[0094] Among them, L cls is the binary cross entropy loss, p i is the score of the i-th candidate region; q i represents the true label of the i-th candidate region, and its value is 0 or 1. For example, q i =1 means the i-th candidate region belongs to the foreground, q i =0 means that the i-th candidate region belongs to the background.
[0095] The regression loss function usually uses smooth L1 (smooth L1 )Loss function:
[0096]
[0097] Among them, L reg To smooth the L1 loss, pos represents the set of candidate regions that RPN determines to belong to the foreground, t i It is the candidate region parameter, including four components: x, y, w, and h. x is the pixel value of the distance between the left edge of the candidate region and the left edge of the image, indicating the horizontal coordinate or horizontal position; y is the pixel value of the distance between the upper edge of the candidate region and the upper edge of the image, indicating the vertical coordinate or vertical position; w is the width of the candidate region, and h is the height of the candidate region; is the true bounding box parameter, and the regression loss is calculated only for the candidate regions that RPN determines belong to the foreground.
[0098] The region alignment layer inputs the candidate regions output by the RPN into the second convolutional neural network, extracts the features of each candidate region, and outputs a second feature map, which is a feature map of the candidate region;
[0099] Since there may be multiple insulators or multiple crossarms in an image, in order to reduce subsequent repeated classification, if the region alignment layer outputs multiple second feature maps, the similarity (SSIM) of the output multiple second feature maps is first calculated, and the second feature maps whose similarity exceeds the second threshold are deduplicated.
[0100] The classification head further refines the classification decision, inputs the second feature map corresponding to each candidate area, and outputs the probability distribution of each candidate area belonging to each category, thereby obtaining the label of the corresponding drone inspection picture. The classification loss function of the classification head can adopt the multi-classification cross entropy loss function.
[0101]
[0102] Among them, L class is the multi-classification cross entropy loss, y i is the true category label of the i-th candidate region, in the form of a one-hot encoding label, i.e., a one-hot encoding label, where the c-th element y i,c Indicates whether the i-th candidate region belongs to the c-th category, with a value of 0 or 1, y i,c = 0 means that the i-th candidate region does not belong to the c-th category, y i,c =1 means that the i-th candidate region belongs to the c-th category. For example, the one-hot encoding label is [1,0,0], which means that the candidate region belongs to the first category, and the one-hot encoding label is [0,1,0], which means that the candidate region belongs to the second category. is the category label of the candidate region predicted by the classification head, in the form of a one-dimensional vector, where the cth element It represents the probability that the i-th candidate region belongs to the c-th category.
[0103] In some embodiments, the classification loss function of the classification head is:
[0104]
[0105] Among them, w c represents the weight of the cth category, and n represents the number of categories.
[0106] Taking into account that pixels of certain categories are less distributed or sparsely distributed in the entire candidate region, such as insulators, which usually occupy only a small part of the picture, a higher weight is assigned to the loss of the insulator category. In the classification loss function, the corresponding loss value of each candidate region is multiplied by the weight of each category, thereby balancing the impact of the classification results of each category on the classification accuracy.
[0107] Finally, the classification results of the drone inspection pictures, i.e., labels, are obtained.
[0108] The label of the drone inspection image can be one label or multiple labels, for example, tower, tower+crossarm.
[0109] In some embodiments, a semi-supervised approach is used to generate pseudo labels in two ways: one is to use small-scale labeled data to pre-train the Mask R-CNN model, and then use the model to make predictions on unlabeled data, and select the results with high confidence as pseudo labels. Another way is to use other pre-trained models to generate pseudo labels and add them to the training set. In this way, the dependence on labeled data can be reduced.
[0110] S4: Store the deduplicated drone inspection images and their labels into the database.
[0111] In some embodiments, storing the deduplicated drone inspection pictures and their labels in a database includes: storing the drone inspection pictures in a database corresponding to the labels according to the labels of the drone inspection pictures.
[0112] The corresponding label may be one label or multiple labels; for example, tower, tower+cross arm.
[0113] In some embodiments, the method may further include:
[0114] S5: Operations on drone inspection image datasets and labels are implemented based on permission classification;
[0115] The operation types include: view, download, update, add, delete and other operations.
[0116] A role-based access control strategy is adopted, roles are divided into administrator users and ordinary users, permissions are defined in terms of files, menus, pages and functions, and permissions are classified and graded.
[0117] Maintain the role permission mapping table, classify one or more permissions for each role, and implement it by direct classification or role inheritance.
[0118] Implement the functions of adding, deleting, modifying and checking roles and permissions, including creating new roles, deleting roles, modifying role permissions, assigning or canceling roles to users, etc.
[0119] Automatically and regularly review permissions to ensure that role permissions are consistent with actual business needs.
[0120] Set access control logic at program entry points such as API interfaces, page links, function buttons, etc.
[0121] Record audits and logs to facilitate auditing and tracing of user operations at a later stage.
[0122] An embodiment of the present invention further provides a drone inspection image data set management system, comprising:
[0123] The data set acquisition module is used to obtain drone inspection images and annotation files;
[0124] The module for adding, deleting, modifying, and querying dataset labels is used to perform related update operations on datasets and labels;
[0125] User management module is used to manage accounts, which are divided into system administrators and ordinary users. System administrators are responsible for maintaining system permissions, roles, menu allocation, basic data maintenance and other functions; ordinary users have actual business menus; corresponding function menus are allocated to different roles through role management;
[0126] Dataset download module, used to download and use datasets;
[0127] An embodiment of the present invention further provides a drone inspection image data set management device, which is characterized by comprising:
[0128] a memory storing a computer program;
[0129] The processor implements the above-mentioned method for managing a drone inspection image data set when loading and executing the computer program stored in the memory.
[0130] It can realize centralized storage and unified management of data sets, and can manage data sets based on the high-speed IO of the file system and a clear tag library, thus improving data management efficiency. By managing the tags of data set content, the management standardization of drone inspection data sets can be improved.
[0131] The specific implementation methods of the above-mentioned embodiments of the present application can be used for reference to each other and will not be described in detail here.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0136] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0137] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0138] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for managing drone inspection image datasets. It is characterized in that include: Get the drone inspection image dataset; Performing a deduplication operation on the drone inspection image dataset; For the drone inspection images in the deduplicated drone inspection image dataset, label them or assign labels to them according to their content; The deduplicated drone inspection images and their labels are stored in the database.
2. The method for managing a drone inspection image dataset according to claim 1, It is characterized in that The step of obtaining a drone inspection image dataset includes: Manually upload drone inspection image datasets; Obtain drone inspection image datasets regularly from third-party systems through data interfaces; In the process of obtaining the drone inspection image dataset, the drone inspection image dataset is sliced and transmitted. During the transmission process, each data block has a unique identifier, and the receiver and sender calculate the overall transmission progress based on it.
3. The method for managing a drone inspection image dataset according to claim 1, It is characterized in that The deduplication operation on the drone inspection image data set includes: Deduplication operation is performed on the drone inspection pictures in the drone inspection picture dataset whose similarity scores exceed a first threshold, and only one picture is retained; For two pictures that need to be similarity calculated, they are divided into multiple pixel blocks respectively; the similarity between the pixel blocks at corresponding positions on the two pictures is calculated, and then the similarity between the two pictures is calculated based on the similarity between the pixel blocks at corresponding positions on the two pictures; Among them, the similarity between the pixel blocks at corresponding positions on the two pictures is calculated using the following formula: SSIM(x,y)=[l(x,y)] α *[c(x,y)]β*[s(x,y)] γ Where SSIM(x, y) represents the similarity between the corresponding pixel blocks x and y in the two images, l(x, y), c(x, y) and s(x, y) are the similarity components of brightness, contrast and structure of the corresponding pixel blocks x and y in the two images, respectively, α, β and γ are the weight parameters of the similarity components of brightness, contrast and structure; Based on the similarity between the pixel blocks at corresponding positions on the two pictures, the similarity of the two pictures is calculated using the following formula: In the formula, SSIM(X, Y) represents the similarity between images X and Y, and m represents the number of pixel blocks into which the image is divided.
4. The method for managing a drone inspection image dataset according to claim 1, It is characterized in that For the drone inspection images in the deduplicated drone inspection image dataset, we label them according to their content, including: A mask region-based convolutional neural network is used to perform instance segmentation and target detection on drone inspection images, and then the drone inspection images are labeled. The label is used to mark the target type contained in the drone inspection images. The mask region-based convolutional neural network includes a first convolutional neural network, a region proposal network RPN, a region alignment layer and a classification head; The first convolutional neural network extracts deep features of the image and generates a first feature map; the first feature map is a feature map of the image; The RPN performs a sliding window operation on the generated first feature map to generate multiple candidate regions, and calculates a score for each candidate region, where the score is used to indicate the probability that the candidate region belongs to the foreground; for the candidate region determined to belong to the foreground, calculates its offset, and adjusts the position and size of the candidate region according to the offset; The region alignment layer inputs the candidate regions output by the RPN into the second convolutional neural network, extracts features of each candidate region, and outputs a second feature map, where the second feature map is a feature map of the candidate region; The classification head outputs the probability distribution of each candidate area belonging to each category based on the second feature map corresponding to each candidate area, thereby obtaining the label of the corresponding drone inspection picture.
5. The method for managing a drone inspection image dataset according to claim 1, It is characterized in that If the region alignment layer extracts features of a candidate region and outputs multiple second feature maps, similarity calculation is performed on the output multiple second feature maps, and a deduplication operation is performed on the second feature maps whose similarity exceeds a second threshold.
6. The method for managing a drone inspection image dataset according to claim 1, It is characterized in that The classification loss function of the classification head is: Among them, L class is the multi-classification cross entropy loss, y i is the true category label of the i-th candidate region, in the form of a one-hot encoded label, whose c-th element y i,c Indicates whether the i-th candidate region belongs to the c-th category, with a value of 0 or 1, y i,c = 0 means that the i-th candidate region does not belong to the c-th category, y i,c =1 means that the i-th candidate region belongs to the c-th category; is the category label of the candidate region predicted by the classification head, in the form of a one-dimensional vector, where the cth element represents the probability that the i-th candidate region belongs to the c-th category; w c represents the weight of the cth category, and n represents the number of categories.
7. A drone inspection image data set management system, It is characterized in that include: The data set acquisition module is used to obtain the drone inspection image data set; A deduplication module, used to perform a deduplication operation on the drone inspection image dataset; The labeling module is used to label or assign labels to the drone inspection images in the deduplicated drone inspection image dataset according to their content; The saving module is used to store the deduplicated drone inspection images and their labels into the database.
8. A drone inspection image data set management device, It is characterized in that include: Memory and processor; The memory is used to store computer programs; The processor is configured to call the computer program to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device implements the method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed on an electronic device, the electronic device implements the method according to any one of claims 1 to 6.
Citation Information
Cited By
Video inspection method and system based on unmanned aerial vehicle
CN121074716A
