Anti-collision method and device, electronic equipment and crane

Through the combination of all target segmentation models and target multi-modal models, all objects in the scene where the bridge is located are identified and processed, solving the problem of missed detection of unknown categories of objects and insufficient light in the existing technology, and realizing the detection of all objects. Effective anti-collision tips reduce safety risks.

CN118762340APending Publication Date: 2024-10-11SANY MARINE HEAVY INDUSTRY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410693287.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the existing technology, target detection algorithms can only identify objects with marked categories and cannot identify objects of unknown categories. This may lead to missed detection when blocked or with insufficient light, making it difficult to achieve effective collision avoidance.

Method used

Use the target segmentation model to segment all objects in the image to be processed, and input the segmentation results into the target multi-modal model to determine whether an anti-collision reminder needs to be issued to avoid missed detections.

Benefits of technology

Through the combination of all target segmentation models and target multi-modal models, all objects in the scene where the bridge is located can be identified, including objects of unknown categories, reducing missed detections, ensuring timely and effective anti-collision prompts, and reducing safety risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762340A_ABST
    Figure CN118762340A_ABST
Patent Text Reader

Abstract

The invention provides an anti-collision method and device, electronic equipment and a crane, and the method comprises the steps: segmenting each object in a to-be-processed image through a target segmentation model, and enabling the to-be-processed image to be an image obtained through the image collection of a scene where a field bridge is located; according to the method, segmentation results of all objects in a scene where the field bridge is located collected by the to-be-processed image can be obtained, missing detection of the objects caused by unknown categories or insufficient light is avoided, then the segmentation results are input into a target multi-modal model, whether the object corresponding to each segmentation result needs collision avoidance or not is determined, and the target multi-modal model does not need collision avoidance. And based on whether the object corresponding to each segmentation result needs to be subjected to anti-collision and whether an anti-collision prompt is sent out is controlled, so that effective anti-collision prompt can be realized, and potential safety hazards caused by the situation that anti-collision prompt cannot be carried out in time due to missing detection are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cranes, and in particular to an anti-collision method, device, electronic equipment and crane. Background Art

[0002] In the prior art, target detection algorithms are usually used to achieve collision avoidance based on the logic of data collection, data labeling and target detection. However, target detection algorithms can only identify objects that have been labeled, that is, objects of known categories. If there are objects in the data set that have not been labeled, they cannot be identified through target detection. Moreover, if the object is affected by occlusion, insufficient light, etc., it may not be recognized through target detection, resulting in missed detection and difficulty in achieving collision avoidance. Summary of the invention

[0003] Based on the defects and shortcomings of the above-mentioned prior art, the present application proposes a collision avoidance method, device, electronic device and crane, which can determine whether each object in the scene where the field bridge is located captured by the image to be processed needs collision avoidance based on a target segmentation everything model (segmentanything model, SAM) for segmenting all objects in the image to be processed, that is, the target SAM, combined with a target multimodal model, and control whether to issue an collision avoidance reminder to avoid the problem of difficulty in achieving collision avoidance due to missed detection due to unknown categories or insufficient light, occlusion, etc.

[0004] In a first aspect, the present application provides a collision avoidance method, comprising:

[0005] Segment each object in the image to be processed by the target segmentation model to obtain a segmentation result, wherein the image to be processed is an image obtained by collecting images of the scene where the field bridge is located;

[0006] Inputting the segmentation results into a target multimodal model to determine whether an object corresponding to each segmentation result needs collision avoidance;

[0007] Based on whether the object corresponding to each segmentation result needs to be avoided, whether to issue an avoidance prompt is controlled.

[0008] In a second aspect, the present application provides an anti-collision device, comprising:

[0009] A segmentation module is used to segment each object in the image to be processed by using a target segmentation model to obtain a segmentation result. The image to be processed is an image obtained by collecting images of the scene where the field bridge is located;

[0010] A determination module, used for inputting the segmentation results into a target multimodal model to determine whether an object corresponding to each segmentation result needs collision avoidance;

[0011] The control module is used to control whether to issue an anti-collision prompt based on whether the object corresponding to each segmentation result needs to be anti-collision.

[0012] In a third aspect, the present application provides an electronic device, including a memory and a processor;

[0013] The memory is connected to the processor and is used to store programs;

[0014] The processor is used to implement the anti-collision method as described in the first aspect by running the program in the memory.

[0015] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the anti-collision method as described in the first aspect is implemented.

[0016] In a fifth aspect, the present application provides a crane, wherein the crane is provided with the anti-collision device as described in the second aspect, or the electronic device as described in the third aspect.

[0017] In the above-mentioned anti-collision method, device, electronic equipment and crane, each object in the image to be processed can be segmented by the target segmentation model. Since the target segmentation model is used to identify all objects in the image to be processed, the image to be processed is an image obtained by image acquisition of the scene where the field bridge is located, and the segmentation results of all objects in the scene where the field bridge is located can be obtained, thereby avoiding missed detection of objects due to unknown categories or insufficient light, occlusion, etc. After that, the segmentation results are input into the target multimodal model to determine whether the object corresponding to each segmentation result needs to be avoided, and based on whether the object corresponding to each segmentation result needs to be avoided, whether to issue an anti-collision prompt is controlled, thereby achieving effective anti-collision prompts, thereby avoiding the situation where anti-collision reminders cannot be made in time due to missed detections, thereby causing safety hazards. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0019] Figure 1 A flowchart of an anti-collision method provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of an overall anti-collision process provided in an embodiment of the present application;

[0021] Figure 3A schematic diagram of the structure of an anti-collision device provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of the structure of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] Overview

[0025] As described in the background technology, in the prior art, when identifying objects and performing collision avoidance through target detection algorithms based on the logic of data collection, data labeling and target detection, due to the use of target detection algorithms, only objects with labeled categories, i.e., known categories, can be identified, and in cases where the objects are occluded or the ambient light is insufficient, all objects with labeled categories may not be identified. If there are objects with unlabeled categories, i.e., unknown categories, in the data set, or if the objects are occluded or the light is insufficient, when the objects are identified through the target detection algorithm, missed detections may occur, making it difficult to achieve collision avoidance.

[0026] On this basis, the inventors found through further research that since the target segmentation model is used to identify all objects in the image to be processed, the image to be processed is an image obtained by image acquisition for the scene where the field bridge is located, and the target segmentation model is used to segment each object in the image to be processed, the segmentation results corresponding to all objects in the image collected for the scene where the field bridge is located can be obtained, effectively avoiding the missed detection of objects caused by unknown categories or insufficient light and occlusion. Afterwards, the segmentation results corresponding to each object are input into the target multimodal model to determine whether the object corresponding to each segmentation result needs to be avoided, and based on whether the object corresponding to each segmentation result needs to be avoided, whether to issue an anti-collision prompt can be controlled, which can achieve timely and effective anti-collision prompts, avoiding the situation where anti-collision reminders cannot be made in time due to missed detection, causing safety hazards.

[0027] Based on the above concept, an embodiment of the present specification provides an anti-collision method, which will be exemplarily described below in conjunction with the accompanying drawings.

[0028] Exemplary Methods

[0029] See also Figure 1In an exemplary embodiment, a collision avoidance method is provided, which is applied to any electronic device in a scene where a field bridge is located, and can be located on equipment such as a crane or a field bridge. Figure 1 As shown, the anti-collision method includes steps S101-S103:

[0030] S101: Segment each object in the image to be processed through the target segmentation model to obtain a segmentation result.

[0031] Among them, the target segmentation model is used to segment all objects in the image to be processed, and the image to be processed is an image obtained by image acquisition of the scene where the field bridge is located.

[0032] Exemplarily, the image to be processed may be acquired by a 2D or 3D camera.

[0033] For each object in the image to be processed, the target segmentation model can segment each object at different levels, that is, the target segmentation model can not only segment each object as a whole, but also segment each component in each object.

[0034] For example, for vehicles, the target segmentation model can segment different vehicles, such as vehicle 1 and vehicle 2. For vehicle 1, the target segmentation model can also segment the tires of vehicle 1, the windows of vehicle 1, etc. Therefore, by segmenting each object in the image to be processed through the target segmentation model, the whole scene segmentation can be better achieved.

[0035] In order to facilitate understanding of the present application, the embodiment is described by taking the target segmentation model to segment each object as a whole as an example. In this case, each segmentation result corresponds to one object.

[0036] S102: Input the segmentation results into the target multimodal model to determine whether the object corresponding to each segmentation result needs to be avoided.

[0037] All segmentation results are sequentially input into the target multimodal model to determine whether the object corresponding to each segmentation result needs to be avoided.

[0038] Since the segmentation result is obtained by segmenting the image to be processed, it can be said that the segmentation result is a sub-image of the image to be processed.

[0039] When the segmentation results are input into the target multimodal model to determine whether the object corresponding to each segmentation result needs collision avoidance, the target multimodal model can be used to use a graph-text generation method or a graph-text matching method to determine whether the organism corresponding to each segmentation result needs collision avoidance.

[0040] S103: Based on whether the object corresponding to each segmentation result needs to be avoided, controlling whether to issue an anti-collision prompt.

[0041] If there is an object corresponding to a segmentation result that needs to be avoided, the control sends an anti-collision prompt.

[0042] Correspondingly, if there is no object corresponding to the segmentation result that needs to be avoided, that is, all objects corresponding to the segmentation results do not need to be avoided, the control does not issue an anti-collision prompt, or in other words, does not perform an operation.

[0043] That is, based on whether the objects corresponding to all the segmentation results need to avoid collision, the control is used to determine whether to issue an anti-collision prompt. If the objects corresponding to all the segmentation results do not need to avoid collision, no operation is performed; if not all the objects corresponding to the segmentation results do not need to avoid collision, the control is used to issue an anti-collision prompt.

[0044] The anti-collision prompt may be an alarm signal in the form of sound, light and / or text, etc., for prompting that a collision may occur between objects.

[0045] For example, a buzzer is used to give an audible alarm, and / or a flasher is used to give an optical alarm, and / or a text such as "Caution! There is a risk of collision!" is displayed on a display screen. The audible alarm may also be a text such as "Caution! There is a risk of collision!".

[0046] Specifically, the anti-collision prompt may be issued by the crane or the yard bridge, and / or may be issued by a device that is arranged in the crane and is independent of the crane. Of course, it may also be issued by other devices.

[0047] In this embodiment, since the image to be processed is an image obtained by image acquisition for the scene where the field bridge is located, the various objects in the image to be processed are segmented by the target segmentation model, and the segmentation results of all objects in the scene where the field bridge is located captured by the image to be processed can be obtained, thereby avoiding missed detection of objects due to unknown categories or insufficient light. Afterwards, the segmentation results are input into the target multimodal model to determine whether the object corresponding to each segmentation result needs to be avoided, and based on whether the object corresponding to each segmentation result needs to be avoided, whether to issue an anti-collision prompt is controlled, thereby achieving effective anti-collision prompts and avoiding the situation where anti-collision reminders cannot be made in time due to missed detections, thereby causing safety hazards.

[0048] In some embodiments, each object in the image to be processed is segmented by a target segmentation model. Before obtaining the segmentation result, the preset segmentation model is fine-tuned to obtain the target segmentation model. In this way, the knowledge learned by the preset segmentation model can be transferred to the scene where the field bridge is located to obtain the target segmentation model for segmenting objects in the scene where the field bridge is located.

[0049] Among them, the preset segmentation model is fine-tuned, that is, the preset segmentation model is trained.

[0050] Optionally, a first training data set is first obtained for the scene where the field bridge is located, and then a preset segmentation model is trained based on the first training data set to obtain a target segmentation model.

[0051] The first training data set includes first image data and a first label corresponding to each image in the first image data, the first label is used to identify the position of an object in the image, and the first image data includes multiple images.

[0052] Specifically, the first tag is used to identify the position of the outline of the object in the image.

[0053] Specifically, an image is collected for the scene where the field bridge is located to obtain first image data, and each object in each image of the first image data is labeled to obtain a first label. Afterwards, based on the first image data and the first label corresponding to each image in the first image data, a preset segmentation model is trained to obtain a target segmentation model.

[0054] There is a correspondence between the first label and each object in each image of the first image data, and there is a correspondence between each image and the object therein, so there is also a correspondence between the first label and each image of the first image data.

[0055] Specifically, image collection is performed for scenes where a plurality of different field bridges are located, and / or for different areas in a scene where a same field bridge is located, to obtain first image data.

[0056] It is understandable that the first label can only be used to represent a certain area in the image as the location of an object, and cannot represent the category of the object.

[0057] In addition, the first label can be manually calibrated or calibrated by a computer by executing, for example, a deep learning algorithm.

[0058] In this embodiment, before each object in the image to be processed is segmented by the target segmentation model to obtain the segmentation result, the scene where the field bridge is located is firstly image-captured to obtain the first image data, and each object in each image of the first image data is labeled to obtain the first label for identifying the position of the object in the image, and then the preset segmentation model is trained based on the first image data in the first training data set and the first label corresponding to each image of the first image data to obtain the target segmentation model. In this way, the preset segmentation model is trained using the first image data and the corresponding first label obtained for the field bridge where the field bridge is located, so that the preset segmentation model can learn the knowledge of the scene where the field bridge is located, and obtain the target segmentation model, thereby greatly improving the accuracy and comprehensiveness of the target segmentation model in object segmentation in the scene where the field bridge is located, realizing the open world detection of objects in the scene where the field bridge is located, effectively identifying unclassified objects in the scene where the field bridge is located, and avoiding missed detection.

[0059] In order to ensure the accuracy of determining whether the object corresponding to the segmentation result needs collision avoidance through the target multimodal model, in some embodiments, the segmentation result is input into the target multimodal model, and before determining whether the object corresponding to each segmentation result needs collision avoidance, the preset multimodal model is first trained to obtain a multimodal model about text-image, namely, the target multimodal model.

[0060] Optionally, for the scene where the field bridge is located, a second training data set is obtained, and based on the second training data set, a preset multimodal model is trained to obtain a target multimodal model.

[0061] The second training data set includes second image data and a second label corresponding to each image in the second image data, and the second label is used to identify whether an object in the image needs to be avoided.

[0062] Specifically, an image is collected for the scene where the field bridge is located to obtain second image data, and each object in each image of the second image data is labeled to obtain a second label. Afterwards, based on the second image data and the second label corresponding to each image in the second image data, a preset multimodal model is trained to obtain a target multimodal model.

[0063] There is a correspondence between the second label and each object in each image of the second image data, and there is a correspondence between each image and the object therein, so there is also a correspondence between the second label and each image of the second image data.

[0064] Specifically, image collection is performed for scenes where a plurality of different field bridges are located, and / or for different regions in a scene where a same field bridge is located, to obtain second image data.

[0065] In addition, the second label can be manually calibrated or calibrated by a computer by executing, for example, a deep learning algorithm.

[0066] The second image data in the second training data set may be the same as the first image data in the first training data set.

[0067] Specifically, based on the second image data and the second label of each image in the second image data, model training is performed on a preset multimodal model using an image-text generation method to obtain a target multimodal model.

[0068] In this embodiment, before using the target multimodal model to identify / determine whether the segmentation result needs anti-collision, image acquisition is performed for the scene where the field bridge is located to obtain second image data, and the objects in each image of the second image data are labeled to obtain a second label that identifies whether the object in the image needs anti-collision. Based on the second image data and the second label corresponding to each image in the second image data, the preset multimodal model is trained to obtain the target multimodal model. In this way, the preset multimodal model is trained using the second training data set obtained for the field bridge where the field bridge is located, that is, the second image data and the second label, so that the preset multimodal model can learn the knowledge of the scene where the field bridge is located, and obtain the target multimodal model, thereby greatly improving the accuracy of the target modal model for whether the object in the scene where the field bridge is located needs anti-collision, and effectively realizing anti-collision and reducing safety hazards based on whether the object needs anti-collision control to issue an anti-collision prompt.

[0069] In some embodiments, based on the target multimodal model trained in the previous embodiment, when determining whether the object corresponding to each segmentation result needs collision avoidance, the target multimodal model is used to perform the following operations for each segmentation result:

[0070] First, a text description is performed on the segmentation result to obtain a description text corresponding to the segmentation result, and then based on the description text corresponding to the segmentation result, it is determined whether the object corresponding to the segmentation result needs to be prevented from collision.

[0071] That is to say, after the segmentation result is input into the target multimodal model, the target multimodal model first performs a text description on the segmentation result, determines the description text corresponding to the segmentation result, and then determines whether the object corresponding to the segmentation result needs to be avoided based on the description text corresponding to the segmentation result.

[0072] Specifically, through image understanding, using, for example, chatGPT, a text description of the segmentation result is performed to generate a description text corresponding to the segmentation result, and then, based on the description text, it is determined whether the object corresponding to the segmentation result needs to be avoided.

[0073] Specifically, when determining whether the object corresponding to the segmentation result needs collision avoidance based on the description text corresponding to the segmentation result, determining whether the object corresponding to the segmentation result needs collision avoidance based on the description text corresponding to the segmentation result and a preset mapping relationship.

[0074] The preset mapping relationship is, for example, a mapping function or a lookup table verbalizer, which is used to convert the internal representation or output of the model into human-readable natural language text or labels.

[0075] The preset mapping relationship is used to map the result of the image-text generation method, that is, the description text corresponding to the segmentation result, to a label of interest.

[0076] In addition, the preset mapping relationship can be set manually or by computer. In comparison, the preset mapping relationship set manually is more explanatory and human-readable, while the preset mapping relationship set by computer is not affected by subjective factors and can consider more factors, and may be more accurate.

[0077] More specifically, based on a preset mapping relationship, the description text corresponding to the segmentation result is mapped to a tag of interest.

[0078] The tag of interest may be "need collision avoidance" or "need collision avoidance". At this time, the description text corresponding to the segmentation result may be mapped to "need collision avoidance" or "need collision avoidance" based on a preset mapping relationship.

[0079] Alternatively, the label of interest may be whether the object category needs collision avoidance, wherein the object category may include people, vehicles, field bridges, lane lines, etc.

[0080] Generally, objects corresponding to object categories such as people, vehicles, and field bridges are higher than the ground and may be mobile, and therefore require collision avoidance. Objects corresponding to object categories such as lane lines are attached to the ground and are not mobile, and therefore do not require collision avoidance.

[0081] At this time, based on a preset mapping relationship, the description text corresponding to the segmentation result can be mapped to the object category of the object corresponding to the segmentation result, and it can be mapped whether the object corresponding to the segmentation result needs collision avoidance or not.

[0082] Exemplarily, each object in the processed image is segmented by the target segmentation model to obtain a segmentation result 1 corresponding to object 1 and a segmentation result 2 corresponding to object 2. The segmentation result 1 is input into the target multimodal model, and the segmentation result 1 is first described in text to obtain a description text 1. Based on a preset mapping relationship, the description text 1 is mapped to a label of interest, including object category a and collision avoidance, that is, the category of object 1 is object category a and object 1 needs collision avoidance; the segmentation result 2 is input into the target multimodal model, and the segmentation result 2 is first described in text to obtain a description text 2. Based on a preset mapping relationship, the description text 2 is mapped to a label of interest, including object category b and collision avoidance is not required, that is, the category of object 2 is object category b and object 2 does not need collision avoidance.

[0083] In this embodiment, for each segmentation result, a text description of the segmentation result is obtained through the target multimodal model, and based on the classification of the description text corresponding to the segmentation result in the preset mapping relationship, it is determined whether the object corresponding to the segmentation result needs to be prevented from collision. In this way, through the target multimodal model, using the image and text generation method, it is determined whether the object corresponding to each segmentation result needs to be prevented from collision, and accurate judgment is made on whether each object in the scene where the field bridge is located needs to be prevented from collision, so as to achieve an effective anti-collision effect.

[0084] In order to ensure the accuracy of determining whether the object corresponding to the segmentation result needs collision avoidance through the target multimodal model, in some embodiments, the segmentation result is input into the target multimodal model, and before determining whether the object corresponding to each segmentation result needs collision avoidance, the preset multimodal model is first trained to obtain a multimodal model about text-image, namely, the target multimodal model.

[0085] Optionally, for the scene where the field bridge is located, a second training data set is obtained, and based on the second training data set, a preset multimodal model is trained to obtain a target multimodal model. The second training data set includes second image data and a second label and a third label of each image in the second image data, the second label is used to identify whether an object in the image needs to be anti-collision, and the third label is used to identify the category of the object in the image.

[0086] Exemplarily, the category of the object may be, for example, a pedestrian, a vehicle, a container, a lane line, a field bridge, etc.

[0087] Specifically, an image is collected for the scene where the field bridge is located to obtain second image data, and each object in each image of the second image data is labeled to obtain a second label and a third label. Afterwards, based on the second image data and the second label and the third label corresponding to each image in the second image data, a preset multimodal model is trained to obtain a target multimodal model.

[0088] There is a correspondence between the second label and each object in each image of the second image data, and there is a correspondence between each image and the object therein, so there is also a correspondence between the second label and each image of the second image data. Similarly, there is a correspondence between the third label and each image of the second image data, and there is a correspondence between the second label and the third label.

[0089] Specifically, image collection is performed for scenes where a plurality of different field bridges are located, and / or for different regions in a scene where a same field bridge is located, to obtain second image data.

[0090] In addition, the second label and the third label can be manually calibrated or calibrated by a computer by executing, for example, a deep learning algorithm.

[0091] The second image data in the second training data set may be the same as the first image data in the first training data set.

[0092] Specifically, based on the second image data and the second label and the third label of each image in the second image data, a preset multimodal model using an image-text matching method is trained to obtain a target multimodal model.

[0093] In this embodiment, before using the target multimodal model to identify / determine whether the segmentation result needs anti-collision, image acquisition is performed for the scene where the field bridge is located to obtain second image data, and each object in each image of the second image data is labeled to obtain second and third labels. Based on the second image data in the second training data set and the second label and third label of each image in the second image data, the preset multimodal model is trained to obtain the target multimodal model. In this way, the preset multimodal model is trained using the second training data set obtained for the field bridge where the field bridge is located, so that the preset multimodal model can learn the knowledge of the scene where the field bridge is located, and obtain the target multimodal model, thereby greatly improving the accuracy of the target modal model for whether the objects in the scene where the field bridge is located need anti-collision, and based on whether the object needs anti-collision control to issue an anti-collision prompt, effectively achieve anti-collision and reduce safety hazards.

[0094] It is understandable that the first training data set and the second training data set may be acquired in advance or in real time.

[0095] In some embodiments, based on the target multimodal model trained in the previous embodiment, when determining whether the object corresponding to each segmentation result needs collision avoidance, the target multimodal model is used to perform the following operations for each segmentation result:

[0096] First, the category of the object corresponding to the segmentation result is determined, and then based on the category of the object corresponding to the segmentation result, it is determined whether the object corresponding to the segmentation result needs to be prevented from collision.

[0097] The category of the object corresponding to the segmentation result may be determined based on a sub-model set in the target multimodal model, and the sub-model is used to identify the category of the object corresponding to the segmentation result.

[0098] That is to say, after the segmentation result is input into the target multimodal model, the target multimodal model first determines the category of the object corresponding to the segmentation result, and then determines whether the object corresponding to the segmentation result needs collision avoidance based on the category of the object corresponding to the segmentation result.

[0099] Specifically, text matching is performed based on the category of the object corresponding to the segmentation result to determine whether the object corresponding to the segmentation result needs to be avoided.

[0100] Among them, since the segmentation result is the corresponding part of the corresponding object in the image to be processed, text matching can also be said to be image classification.

[0101] Exemplarily, the category of the object corresponding to the segmentation result is compared or compared with the category vector corresponding to whether anti-collision is needed, and the similarity or distance between the category of the object corresponding to the segmentation result and the category vector corresponding to whether anti-collision is needed is determined, and based on the similarity or distance, it is determined whether the object corresponding to the segmentation result needs anti-collision. If the similarity between the category of the object corresponding to the segmentation result and the category vector corresponding to the need for anti-collision is greater than the similarity between the category of the object corresponding to the segmentation result and the category vector corresponding to the need for anti-collision, it is determined that the object corresponding to the segmentation result needs anti-collision; otherwise, it is determined that the object corresponding to the segmentation result does not need anti-collision. Alternatively, if the similarity between the category of the object corresponding to the segmentation result and the category vector corresponding to the need for anti-collision is less than or equal to the similarity between the category of the object corresponding to the segmentation result and the category vector corresponding to the need for anti-collision, it is determined that the object corresponding to the segmentation result does not need anti-collision.

[0102] The specific process of text matching can also be found in the prior art and will not be described in detail here.

[0103] In this embodiment, through the target multimodal model, for each segmentation result, the category of the object corresponding to the segmentation result is first determined, and text matching is performed based on the category of the object corresponding to the segmentation result to determine whether the object corresponding to the segmentation result needs collision avoidance. In this way, through the target multimodal model, using the image-text matching method, it is determined whether the object corresponding to each segmentation result needs collision avoidance, and accurate judgment is made on whether each object in the scene where the field bridge is located needs collision avoidance, achieving an effective collision avoidance effect.

[0104] In order to provide anti-collision prompts more accurately and better achieve anti-collision, in some embodiments, before controlling whether to issue an anti-collision prompt, it is possible to first verify whether the object corresponding to the segmentation result needs anti-collision, and then, based on the verification situation, control whether to issue an anti-collision prompt.

[0105] Optionally, when there is at least one segmentation result corresponding to an object that needs to be avoided among all the segmentation results, a check is performed to determine whether the object corresponding to the at least one segmentation result needs to be avoided. If the check is successful, the control sends an anti-collision prompt; if the check is unsuccessful, the control does not send an anti-collision prompt, that is, maintains the current state and does not perform other operations.

[0106] Specifically, if there is an object corresponding to at least one segmentation result that needs collision avoidance, then based on the position of the object corresponding to the at least one segmentation result, whether the object corresponding to the at least one segmentation result needs collision avoidance is verified to determine whether the verification passes.

[0107] The position of the object corresponding to the segmentation result can be determined based on the position of the segmentation result in the image to be processed. Of course, the position of the segmentation result in the image to be processed can be directly determined as the position of the object corresponding to the segmentation result.

[0108] More specifically, if there is an object corresponding to at least one segmentation result that needs collision avoidance, then based on the position of the object corresponding to the at least one segmentation result, it is re-determined whether the object corresponding to the at least one segmentation result needs collision avoidance, and then it is determined whether the verification passes.

[0109] When re-determining whether the object corresponding to the at least one segmentation result needs collision avoidance, for each segmentation result of the at least one segmentation result, based on the position of the object corresponding to the segmentation result, re-determining whether the object corresponding to the segmentation result needs collision avoidance. If the object corresponding to the segmentation result is located on a path of a vehicle such as a crane, the object corresponding to the segmentation result needs collision avoidance; if the object corresponding to the segmentation result is not located on the path of the crane, the object corresponding to the segmentation result does not need collision avoidance.

[0110] Among them, if based on the position of the object corresponding to the segmentation result, it is determined that the object is located in the lane where a vehicle, such as a crane, is located, that is, the object is located within the lane line of the lane where the crane is located, then it is determined that the object is located on the travel path of the crane, and then it is determined that the object corresponding to the segmentation result needs collision avoidance; if based on the position of the object corresponding to the segmentation result, it is determined that the object is not located in the lane where the crane is located, that is, the object is not located within the lane line of the lane where the crane is located, then it is determined that the object is not located on the travel path of the crane, and then it is determined that the object corresponding to the segmentation result does not need collision avoidance.

[0111] After re-determining whether the object corresponding to the at least one segmentation result needs collision avoidance, when determining whether the verification has passed, if there is at least one object corresponding to the at least one segmentation result that needs collision avoidance, then the verification is determined to have passed; if the objects corresponding to all the segmentation results in at least one segmentation result do not need collision avoidance, then the verification is determined to have failed.

[0112] That is to say, on the basis of determining through the target multimodal model that an object corresponding to at least one segmentation result needs collision avoidance, based on the position of the object corresponding to the at least one segmentation result, if it is re-determined that there is an object requiring collision avoidance among the objects corresponding to the at least one segmentation result, the verification passes; if it is re-determined that all objects corresponding to the at least one segmentation result do not need collision avoidance, the verification fails.

[0113] In this embodiment, when controlling whether to issue an anti-collision prompt based on whether the object corresponding to each segmentation result needs to be avoided, if there is an object corresponding to at least one segmentation result that needs to be avoided, then based on the position of the object corresponding to at least one segmentation result, a verification is performed on whether the object corresponding to the at least one segmentation result needs to be avoided. If the verification passes, the control is to issue an anti-collision prompt; if the verification fails, the control is not to issue an anti-collision prompt. In this way, it can be ensured that the control is to issue an anti-collision prompt only when there are actually objects that need to be avoided in the scene where the field bridge is located, thereby avoiding the occurrence of false prompts caused by false detection and accurately performing anti-collision prompts.

[0114] Accordingly, when controlling whether to issue an anti-collision prompt based on whether the object corresponding to each segmentation result needs to be avoided, if there is no object corresponding to the segmentation result that needs to be avoided, or if all objects corresponding to the segmentation results are objects that do not need to be avoided, then there is no need to check whether the objects corresponding to the segmentation results are avoided.

[0115] Alternatively, in order to provide anti-collision prompts more accurately and better achieve anti-collision, in some embodiments, before controlling whether to issue an anti-collision prompt, it is possible to first verify whether the object corresponding to the segmentation result needs anti-collision, and then, based on the verification situation, control whether to issue an anti-collision prompt.

[0116] In some embodiments, target tracking can be achieved through target segmentation models. Multiple continuous image frames are collected from the scene where the same bridge is located, and all objects in each image of the multiple continuous image frames are segmented, and the location of the same object in the multiple continuous image frames is identified and recorded to achieve tracking of the object. At this time, based on the trajectory of the object's position change, it is analyzed to determine whether the object can enter the forward route of a vehicle such as a crane within a period of time, that is, whether it can enter the lane where the crane is located. If so, it is determined that the object needs to be avoided; if not, it is determined that the object does not need to be avoided.

[0117] The multiple continuous image frames may be multiple continuous image frames in a video obtained by capturing a scene where the unified field bridge is located.

[0118] In this way, the tracking of objects in the scene where the field bridge is located is achieved through the target segmentation model. The movement trajectory of the object is analyzed to determine that when the object can enter the forward route of a vehicle such as a crane within a period of time, it is determined that the object needs to be avoided. When the movement trajectory of the object is analyzed to determine that the object cannot enter the forward route of the crane within a period of time, it is determined that the object does not need to be avoided. In this way, based on the need for collision avoidance of the object, the anti-collision prompt can be controlled and an anti-collision warning can be issued in advance, thereby effectively avoiding collisions and reducing safety hazards.

[0119] It is understandable that the first image data in the first training data set and the second image data set in the second training data set may be image data collected in real time by a camera, wherein the number of the cameras is at least one.

[0120] For example, the overall process of collision avoidance can be as follows: Figure 2 As shown. After the start, first obtain the real-time image data (i.e., the image to be processed) obtained by the video acquisition device such as the camera, and (using the first training data set) fine-tune the preset segmentation model to obtain the target segmentation model, so that the knowledge learned by the preset segmentation model is transferred to the scene where the field bridge is located, that is, transferred to the target segmentation model for the scene where the field bridge is located. After that, the target segmentation model segments all objects (even including each component in the object) in the real-time image data, obtains the segmentation results corresponding to each object, and realizes the segmentation of the whole scene. After that, because the target segmentation model does not know the category of the object and the meaning represented by the object, etc., through the target multimodal model (on text-image obtained by training using the second training data set), the image-text generation method or the image-text matching method is used to generate or match the category (or name) of the object corresponding to the segmentation result according to the segmentation result, and determine whether the object corresponding to the segmentation result needs collision avoidance. That is, the segmentation result is input into the target multimodal model, the category of the object corresponding to the segmentation result is determined (and output), and whether the object corresponding to the segmentation result needs collision avoidance is output. Finally, once there is an object that needs to be avoided, or all objects are not objects that need to be avoided, that is, all objects do not need to be avoided, an anti-collision prompt is given.

[0121] Among them, through the target multimodal model, a graphic-text generation method is adopted to determine whether an object needs collision avoidance according to the segmentation result. After a text description of the segmentation result is made, based on a pre-defined verbalizer, that is, a description text obtained by mapping the result of the graphic-text generation method, that is, a text description to an object category such as a pedestrian and vehicle field bridge, and whether the object needs collision avoidance, mapping is performed to determine whether the object needs collision avoidance.

[0122] In addition, based on whether the objects corresponding to each segmentation result need to be avoided, the positions of the objects corresponding to each segmentation result, or the positions of each segmentation result, are collected to determine whether an avoidance warning is needed, and when it is determined that an avoidance warning is needed, the control sends an avoidance prompt.

[0123] It should be noted that various objects may appear on the forward path of vehicles such as cranes in the field bridge scene. If the target detection framework is used, it may lead to missed detections due to the inability to collect and mark all objects for training and detection. In this application, the target segmentation model for the scene where the field bridge is located, which can segment everything, can be used to detect images collected for the scene where the field bridge is located, and achieve open world detection. It has strong generalization and can detect objects that have not been seen by the target segmentation model, thereby more effectively avoiding collisions. In addition, the target segmentation model can be used to achieve full scene segmentation, which can alleviate the effects of objects being blocked, insufficient light, etc., increase the robustness of object segmentation, avoid missed detection, and effectively achieve collision avoidance in the scene where the field bridge is located.

[0124] In addition, based on different actual needs, the above-mentioned image data can be replaced with laser point cloud data, and the specific segmentation and the process of determining whether an object needs to be avoided can be adaptively adjusted.

[0125] Exemplary Devices

[0126] like Figure 3 As shown, the embodiment of the present application further provides an anti-collision device, including a segmentation module 301 , a determination module 302 and a control module 303 .

[0127] in,

[0128] The segmentation module 301 is used to segment each object in the image to be processed by using the target segmentation model to obtain a segmentation result. The image to be processed is an image obtained by collecting images of the scene where the field bridge is located;

[0129] A determination module 302, configured to input the segmentation results into a target multimodal model to determine whether an object corresponding to each segmentation result needs collision avoidance;

[0130] The control module 303 is used to control whether to issue an anti-collision prompt based on whether the object corresponding to each segmentation result needs to be avoided.

[0131] The anti-collision device provided in this embodiment belongs to the same application concept as the anti-collision method provided in the above embodiments of this application, and can execute the method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the specific processing content of the anti-collision method provided in the above embodiments of this application, and will not be repeated here.

[0132] The functions implemented by the above segmentation module 301, determination module 302 and control module 303 can be implemented in the form of software called by the same or different processors, which is not limited in the embodiment of the present application.

[0133] Exemplary Electronic Devices

[0134] Another embodiment of the present application also provides an electronic device, see Figure 4 As shown, the electronic device includes: a memory 400 and a processor 410 .

[0135] The memory 400 is connected to the processor 410 and is used to store programs;

[0136] The processor 410 is used to implement the anti-collision method disclosed in any of the above embodiments by running the program stored in the memory 400.

[0137] Specifically, the electronic device may further include: a bus, a communication interface 420 , an input device 430 and an output device 440 .

[0138] The processor 410, the memory 400, the communication interface 420, the input device 430 and the output device 440 are connected to each other via a bus.

[0139] A bus may include a pathway that transfers information between components of a computer system.

[0140] Processor 410 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0141] The processor 410 may include a main processor, and may also include a baseband chip, a modem, and the like.

[0142] The memory 400 stores a program for executing the technical solution of the present application, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes computer operation instructions. More specifically, the memory 400 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0143] The input device 430 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0144] Output device 440 may include a device that allows information to be output to a user, such as a display screen, a printer, a speaker, etc.

[0145] The communication interface 420 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.

[0146] The processor 410 executes the program stored in the memory 400 and calls other devices, which can be used to implement each step of any anti-collision method provided in the above embodiments of the present application.

[0147] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0148] An embodiment of the present application also proposes a chip, which includes a processor and a data interface. The processor reads and runs a program stored in a memory through the data interface to execute the anti-collision method introduced in any of the above embodiments. The specific processing process and its beneficial effects can be found in the description of the above-mentioned anti-collision method embodiments.

[0149] An embodiment of the present application also provides a crane, in which the above-mentioned anti-collision device, or the above-mentioned electronic device, etc. is provided.

[0150] Alternatively, an embodiment of the present application further provides a field bridge, in which the above-mentioned anti-collision device or the above-mentioned electronic device is provided.

[0151] In addition to the above-mentioned methods and devices, an embodiment of the present application proposes a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the anti-collision method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0152] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0153] In addition, an embodiment of the present application further proposes a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the anti-collision method according to various embodiments of the present application described in the above “Exemplary Method” section of this specification.

[0154] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0155] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.

[0156] It should also be noted that in the device, apparatus and method of the present invention, each component or each step can be decomposed and / or reassembled, and such decomposition and / or reassembly should be regarded as an equivalent solution of the present invention.

[0157] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0158] It should be understood that the qualifiers "first", "second", "third", "fourth", "fifth" and "sixth" used in the description of the embodiments of the present invention are only used to more clearly explain the technical solutions and cannot be used to limit the scope of protection of the present invention.

[0159] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A collision avoidance method, characterized in that: The method comprises: Segment each object in the image to be processed by the target segmentation model to obtain a segmentation result, wherein the image to be processed is an image obtained by collecting images of the scene where the field bridge is located; Inputting the segmentation results into a target multimodal model to determine whether an object corresponding to each segmentation result needs collision avoidance; Based on whether the object corresponding to each segmentation result needs to be avoided, whether to issue an avoidance prompt is controlled.

2. The anti-collision method according to claim 1, characterized in that: Before segmenting each object in the image to be processed by the target segmentation model to obtain a segmentation result, the method further includes: Capturing an image of the scene where the field bridge is located to obtain first image data; Labeling each object in each image of the first image data to obtain a first label, where the first label is used to identify a position of the object in the image; Based on the first image data and the first label corresponding to each image in the first image data, a preset segmentation model is trained to obtain the target segmentation model.

3. The anti-collision method according to claim 1, characterized in that: Before inputting the segmentation results into the target multimodal model and determining whether the object corresponding to each segmentation result needs collision avoidance, the method further includes: Capturing an image of the scene where the field bridge is located to obtain second image data; Labeling each object in each image of the second image data to obtain a first label and a second label, wherein the first label is used to identify the position of the object in the image, and the second label is used to identify whether the object in the image needs to be anti-collision; Based on the second image data, the first label and the second label corresponding to each image in the second image data, the preset multimodal model is trained to obtain the target multimodal model.

4. The anti-collision method according to claim 3, characterized in that: The step of inputting the segmentation results into a target multimodal model and determining whether an object corresponding to each segmentation result needs collision avoidance includes: Using the target multimodal model, the following operations are performed for each segmentation result: Performing a text description on the segmentation result to obtain a description text corresponding to the segmentation result; Based on the classification of the description text corresponding to the segmentation result in the preset mapping relationship, it is determined whether the object corresponding to the segmentation result needs to be avoided.

5. The anti-collision method according to claim 1, characterized in that: Before inputting the segmentation results into the target multimodal model and determining whether the object corresponding to each segmentation result needs collision avoidance, the method further includes: Capturing an image of the scene where the field bridge is located to obtain second image data; labeling each object in each image of the second image data to obtain a first label, a second label, and a third label, wherein the first label is used to identify the position of the object in the image, the second label is used to identify whether the object in the image needs anti-collision, and the third label is used to identify the category of the object in the image; Based on the second image data and the first label, the second label and the third label corresponding to each image in the second image data, the preset multimodal model is trained to obtain the target multimodal model.

6. The anti-collision method according to claim 5, characterized in that: The step of inputting the segmentation results into a target multimodal model and determining whether an object corresponding to each segmentation result needs collision avoidance includes: Using the target multimodal model, the following operations are performed for each segmentation result: Determining the category of the object corresponding to the segmentation result; Text matching is performed based on the category of the object corresponding to the segmentation result to determine whether the object corresponding to the segmentation result needs to be avoided.

7. The anti-collision method according to any one of claims 1 to 6, characterized in that: The controlling whether to issue an anti-collision prompt based on whether the object corresponding to each segmentation result needs to be anti-collision includes: If there is at least one object corresponding to the segmentation result that needs collision avoidance, verifying whether the object corresponding to the at least one segmentation result needs collision avoidance based on the position of the object corresponding to the at least one segmentation result; If the verification is passed, the control sends the anti-collision prompt; If the verification fails, the control does not issue the anti-collision prompt.

8. An anti-collision device, characterized in that: The device comprises: A segmentation module is used to segment each object in the image to be processed by using a target segmentation model to obtain a segmentation result. The image to be processed is an image obtained by collecting images of the scene where the field bridge is located; A determination module, used for inputting the segmentation results into a target multimodal model to determine whether an object corresponding to each segmentation result needs collision avoidance; The control module is used to control whether to issue an anti-collision prompt based on whether the object corresponding to each segmentation result needs to be anti-collision.

9. An electronic device, characterized in that: including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the collision avoidance method according to any one of claims 1 to 7 by running the program in the memory.

10. A crane, characterized in that: The crane is provided with the anti-collision device as claimed in claim 8 or the electronic device as claimed in claim 9.

Citation Information

Patent Citations

  • Target identification and detection method based on multi-modal learning and related components

    CN114913487A

  • Driving assistance method and device, vehicle and storage medium

    CN116176612A

  • Automatic picture labeling method and device, electronic equipment and storage medium

    CN116884003A

  • Object recognition method, object recognition apparatus, and electronic device

    WO2022077264A1