Lifting safety monitoring method, device, terminal and computer-readable storage medium
By acquiring and analyzing images during the crane lifting process, and using a depth-first search algorithm to determine whether the hook is attached to the lifting eye, the problem of low manual monitoring efficiency is solved, the efficiency and reliability of lifting safety monitoring are improved, and the cost is reduced.
Patent Information
- Application Number
- CN202410733763.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-07
AI Technical Summary
The safety efficiency of manual monitoring of the crane lifting process in the existing technology is low, resulting in increased costs and reduced reliability, making it difficult to meet the needs of industrial safety production.
By obtaining the image to be detected, the detection frame is used to determine the positions of the lifting lugs and hooks, and a depth-first search algorithm is used to search connected areas to determine whether the lifting lugs are attached to the hooks, thereby reducing manual monitoring errors and improving safety monitoring efficiency.
It reduces safety hazards caused by manual monitoring errors and improves the efficiency of lifting safety monitoring. It is low cost, fast, high-precision, highly adaptable, and non-contact.
Smart Images

Figure CN118314527B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition technology, and in particular to a method, device, terminal and computer-readable storage medium for monitoring lifting safety. Background Art
[0002] With the rapid development of the economy and the continuous progress of society, the inherent shortcomings of the traditional crane hoisting process safety monitoring system and method have become more and more obvious and prominent, making it increasingly difficult to meet people's needs for industrial safety production. As the length of monitoring time increases, it is necessary to take care of both day and night. It is difficult for humans to cope with such complex and changeable work with their existing capabilities. In addition, with the continuous extension of working hours and the expansion of monitoring scenes, the workload of workers is heavy. If the safety of the crane hoisting process is monitored only by relying on human eye observation, the reliability will continue to decline, and more manpower and material resources will be required, resulting in increased costs, but the efficiency is still very low. Summary of the invention
[0003] The main technical problem solved by the present invention is to provide a lifting safety monitoring method, device, terminal and computer-readable storage medium to solve the problem of low efficiency of manual monitoring in the prior art.
[0004] In order to solve the above technical problems, the first technical solution adopted by the present invention is: to provide a lifting safety monitoring method, comprising:
[0005] Acquire an image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting lug on the hoisted object;
[0006] Based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug, determine whether to obtain a mask image of the image to be detected; the foreground area in the mask image is the area where the lifting lug and the hook are located;
[0007] Based on the ear and the hook as root nodes, a connected region search is performed in the mask image to obtain search results corresponding to the ear and the hook respectively;
[0008] Based on the search results corresponding to the lifting lug and the hook respectively, it is determined whether the hook is hung on the lifting lug.
[0009] Wherein, determining whether to obtain a mask image of the image to be detected based on the detection frame of the hoisted object, the detection frame of the hook, and the detection frame of the lifting ear includes:
[0010] Based on the overlap degree between the detection frame of the hoisted object and the detection frame of the hook, and the overlap degree between the detection frame of the hook and the detection frame of the lifting ear, it is determined whether to obtain a mask image of the image to be detected.
[0011] Wherein, determining whether to obtain a mask image of the image to be detected based on the overlap degree between the detection frame of the hoisted object and the detection frame of the hook, and the overlap degree between the detection frame of the hook and the detection frame of the lifting ear, includes:
[0012] Determine a first overlapping area corresponding to the lifting object and the hook based on the detection frame of the lifting object and the detection frame of the hook;
[0013] In response to the proportion of the first overlapping area in the detection frame of the hook reaching a first threshold, determining a second overlapping area corresponding to the hanging ear and the hook based on the detection frame of the hook and the detection frame of the hanging ear;
[0014] In response to the proportion of the second overlapping area in the detection frame of the ear reaching a second threshold, image segmentation is performed on the image to be detected to obtain a mask image.
[0015] Among them, the image to be detected is segmented to obtain a mask image, including:
[0016] Perform ear segmentation and hook segmentation on the image to be detected, and obtain an ear mask image and a hook mask image corresponding to the image to be detected;
[0017] The ear mask image and the hook mask image are merged to obtain the mask image corresponding to the image to be detected.
[0018] Among them, based on the ear and the hook as the root node, the connected area search is performed in the mask image, and the search results corresponding to the ear and the hook are obtained, including:
[0019] A depth-first search algorithm is used to search the mask image with the pixels of the ear as the root node to determine the connected area of the ear connected to the pixels of the ear;
[0020] The hook pixel is used as the root node to search in the mask image to determine the hook connected area connected to the hook pixel.
[0021] Wherein, based on the search results corresponding to the lifting lug and the hook respectively, determining whether the hook is hung on the lifting lug includes:
[0022] Whether the hook is hooked on the hanging ear is determined based on whether the pixels in the hanging ear connected area overlap at least partially with the pixels in the hook connected area.
[0023] Wherein, determining whether the hook is hung on the hanging ear based on whether the pixels in the hanging ear connected area overlap at least partially with the pixels in the hook connected area includes:
[0024] In response to the fact that the connecting area of the ear and the connecting area of the hook have the same pixels, it is determined that the hook is hooked on the ear;
[0025] In response to the fact that the ear connected area and the hook connected area do not have the same pixels, it is determined that the hook is not hooked on the ear.
[0026] In order to solve the above technical problems, the second technical solution adopted by the present invention is: to provide a lifting safety monitoring device, comprising:
[0027] The acquisition module is used to acquire the image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting ear on the hoisted object;
[0028] The analysis module is used to determine whether to obtain a mask image of the image to be detected based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug; the foreground area in the mask image is the area where the lifting lug and the hook are located;
[0029] A processing module, used for searching a connected region in the mask image based on the lifting lug and the hook as root nodes, and obtaining search results corresponding to the lifting lug and the hook respectively;
[0030] The determination module is used to determine whether the hook is hung on the lifting eye based on the search results corresponding to the lifting eye and the hook respectively.
[0031] To solve the above technical problems, the third technical solution adopted by the present invention is: to provide a terminal, the terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor, the processor is used to execute program data to implement the steps in the above-mentioned lifting safety monitoring method.
[0032] In order to solve the above technical problems, the fourth technical solution adopted by the present invention is: to provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned lifting safety monitoring method are implemented.
[0033] The beneficial effects of the present invention are as follows: different from the prior art, the provided lifting safety monitoring method, device, terminal and computer-readable storage medium, in which the lifting safety monitoring method obtains the image to be detected; the image to be detected contains the detection frame of the lifting object, the detection frame of the hook and the detection frame of the lifting lug on the lifting object; based on the detection frame of the lifting object, the detection frame of the hook and the detection frame of the lifting lug, it is determined whether to obtain the mask image of the image to be detected; the foreground area in the mask image is the area where the lifting lug and the hook are located; based on the lifting lug and the hook as root nodes, a connected area search is performed in the mask image to obtain the search results corresponding to the lifting lug and the hook respectively; based on the search results corresponding to the lifting lug and the hook respectively, it is determined whether the hook is hung on the lifting lug. Compared with the current technology, the present application determines whether to obtain the mask image of the image to be detected by the detection frames corresponding to the lifting lug, the hook and the lifting object in the image to be detected, and then determines whether the hook is hung on the lifting lug based on the search results of the lifting lug and the hook in the mask image, thereby reducing safety hazards caused by manual monitoring errors and improving safety monitoring efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments 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 creative work.
[0035] Figure 1 It is a flow chart of the hoisting safety monitoring method provided by the present invention;
[0036] Figure 2 is the image to be detected after target detection provided by the present invention;
[0037] Figure 3 yes Figure 1 A flow chart of a specific embodiment of step S2 in the provided lifting safety monitoring method;
[0038] Figure 4 It is a schematic diagram of the framework of an embodiment of a lifting safety monitoring device provided by the present invention;
[0039] Figure 5 It is a schematic diagram of the framework of a terminal embodiment provided by the present invention;
[0040] Figure 6 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0041] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0042] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0043] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.
[0044] In order to enable those skilled in the art to better understand the technical solution of the present invention, a lifting safety monitoring method provided by the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0046] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0047] Depth-First-Search (DFS) is an algorithm used to traverse or search a tree or graph. It traverses the nodes of a tree along the depth of the tree, searching the branches of the tree as deeply as possible. When the edges of a node have been explored or the node does not meet the conditions during the search, the search will backtrack to the starting node of the edge where the node was found. The whole process is repeated until all nodes have been visited.
[0048] The lifting safety monitoring method provided in the embodiment of the present application can be implemented by the server or the terminal alone, or by the server and the terminal in collaboration. In some embodiments, the terminal or the server can implement the lifting safety monitoring method provided in the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as a client that supports virtual scenes, such as a game APP; it can also be a small program, that is, a program that only needs to be downloaded to a browser environment to run; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.
[0049] The following uses a server implementation as an example to illustrate the hoisting safety monitoring method provided by the embodiment of the present application. The hoisting safety monitoring method provided by the embodiment is applicable to heavy object hoisting scenarios.
[0050] This application uses deep learning technology and image processing technology to achieve real-time recognition of whether the hook is hung on the lifting lug through image acquisition equipment under visual solutions, reducing safety hazards caused by human factors. The deep learning technology specifically includes target detection network model and target segmentation network model; the image processing technology specifically includes depth-first search algorithm.
[0051] See also Figure 1 , Figure 1 It is a flow chart of the lifting safety monitoring method provided by the present invention.
[0052] A lifting safety monitoring method is provided in this embodiment, and the lifting safety monitoring method includes the following steps.
[0053] S1: Acquire an image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting lug on the hoisted object.
[0054] S2: Based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug, determine whether to obtain a mask image of the image to be detected; the foreground area in the mask image is the area where the lifting lug and the hook are located.
[0055] S3: Based on the ear and the hook as root nodes, a connected area search is performed in the mask image to obtain search results corresponding to the ear and the hook respectively.
[0056] S4: Based on the search results corresponding to the lifting lug and the hook, determine whether the hook is hooked on the lifting lug.
[0057] See also Figure 2 , Figure 2 It is a flowchart of a method for determining evaluation parameters corresponding to a target position in a specific embodiment provided by the present invention.
[0058] Specifically, the specific implementation of obtaining the detection frame of the lifting object, the detection frame of the hook, and the detection frame of the lifting ear on the lifting object contained in the image to be detected in step S1 is as follows.
[0059] See also Figure 2 , Figure 2 It is the image to be detected after target detection provided by the present invention.
[0060] The lifting process is imaged by an image acquisition device installed in the heavy object lifting scene, and the real-time acquired image is used as the image to be detected. The image to be detected includes a lifting lug, a lifting object, and a hook. The lifting lug is set on the lifting object, so that the hook can be hung on the lifting lug to lift the lifting object. The lifting object can be a storage box for loading heavy objects, or a target object that needs to be lifted.
[0061] In one embodiment, a first detection network model is used to perform multi-target detection on the image to be detected, and the detection frame of the hoisted object, the detection frame of the hook, and the position information of the detection frame of the hoisted object and the detection frame of the hook in the image to be detected are obtained. A second detection network model is used to perform multi-target detection on the image to be detected, and the detection frame of the hook and the detection frame of the ear are obtained, and the position information of the detection frame of the hook and the detection frame of the ear in the image to be detected are obtained. Among them, the first detection network model and the second detection network model are both pre-trained through corresponding training samples. The position information of the detection frame of the hoisted object, the detection frame of the hook, and the detection frame of the ear in the image to be detected are in the same coordinate system.
[0062] In one embodiment, a first target detection network model is used to detect a lifting object in an image to be detected, and a detection frame of the lifting object and position information of the detection frame of the lifting object in the image to be detected are obtained; a second target detection network model is used to detect a hook in an image to be detected, and a detection frame of the hook and position information of the detection frame of the hook in the image to be detected are obtained; a third target detection network model is used to detect a lifting ear in an image to be detected, and a detection frame of the lifting ear and position information of the detection frame of the lifting ear in the image to be detected are obtained. Among them, the first target detection network model, the second target detection network model and the third target detection network model are all pre-trained through corresponding training samples. The position information of the detection frame of the lifting object, the detection frame of the hook and the detection frame of the lifting ear in the image to be detected are in the same coordinate system.
[0063] In one embodiment, a multi-target detection network model is used to perform multi-target detection on the image to be detected, and the detection frame of the lifting object, the detection frame of the hook, the detection frame of the lifting lug, and the position information of the detection frame of the lifting object, the detection frame of the hook, and the detection frame of the lifting lug in the image to be detected are obtained. The multi-target detection network model is pre-trained by corresponding training samples.
[0064] Through the above steps, the position information of the detection frame of the lifting object in the image to be detected can be determined as (x a1 ,y a1 ), (x a2 ,y a2 ); The position information of the hook detection frame is (x b1 ,y b1 ), (xb2 ,y b2 ); The position information of the detection frame of the ear is (x c1 ,y c1 ), (x c2 ,y c2 ). In this embodiment, each detection network model, each target detection network model, and the multi-target detection model can be a YOLO network or other target detection networks, which are specifically set according to actual conditions.
[0065] Specifically, the specific implementation of determining whether to obtain the mask image of the image to be detected based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting ear in step S2 is as follows.
[0066] In one embodiment, whether to obtain a mask image of the image to be detected is determined based on the overlap between the detection frame of the hoisted object and the detection frame of the hook, and the overlap between the detection frame of the hook and the detection frame of the lifting ear.
[0067] See also Figure 3 , Figure 3 yes Figure 1 A flowchart of a specific embodiment of step S2 in the lifting safety monitoring method is provided.
[0068] S21: Determine a first overlapping area corresponding to the hoisted object and the hook based on the detection frame of the hoisted object and the detection frame of the hook.
[0069] Specifically, the first overlapping area S corresponding to the hoisted object and the hook is calculated using the following formula: 起吊物品-挂钩 .
[0070] S 起吊物品-挂钩 =(x a2 -x b1 )×(y a2 -y b1 ) (Formula 1)
[0071] S22: In response to the proportion of the first overlapping area in the detection frame of the hook reaching a first threshold, determining a second overlapping area corresponding to the ear and the hook based on the detection frame of the hook and the detection frame of the ear.
[0072] Specifically, the area S of the hook detection frame is calculated using the following formula: 挂钩 .
[0073] S 挂钩 =(x b2 -x b1 )×(y b2 -y b1 ) (Formula 2)
[0074] In one embodiment, the proportion A of the first overlapping area in the detection frame of the hook is calculated using the following formula.
[0075] (Formula 3)
[0076] In a specific embodiment, the first threshold value can be set to 0.3, 0.35, 0.4, etc. When the proportion of the first overlapping area in the detection frame of the hook reaches the first threshold value, it indicates that the hook appears near the hoisted object and the hook is also near the lifting lug of the hoisted object, and the positional relationship between the hook and the lifting lug can be further determined. When the proportion of the first overlapping area in the detection frame of the hook does not reach the first threshold value, it indicates that the distance between the hook and the lifting lug of the hoisted object is far, and there is no need to further determine the positional relationship between the hook and the lifting lug, and it is necessary to re-capture the image during the hoisting process as the image to be detected.
[0077] In one embodiment, the second overlapping area S corresponding to the hanging ear and the hook is calculated using the following formula: 吊耳-挂钩 .
[0078] S 吊耳-挂钩 =(x c2 -x b1 )×(y c2 -y b1 ) (Formula 4)
[0079] S23: In response to the proportion of the second overlapping area in the detection frame of the ear reaching a second threshold, performing image segmentation on the image to be detected to obtain a mask image.
[0080] Specifically, the area S of the detection frame of the ear is calculated using the following formula: 吊耳 .
[0081] S 吊耳 =(x c2 -x c1 )×(y c2 -y c1 ) (Formula 5)
[0082] In one embodiment, the proportion B of the second overlapping area in the detection frame of the ear is calculated using the following formula.
[0083] (Formula 6)
[0084] In a specific embodiment, the second threshold value can be set to 0.95, 0.99, 1, etc. When the proportion of the second overlapping area in the detection frame of the lifting ear reaches the second threshold value, it indicates that the fitting degree between the lifting ear and the hook is very high, and the hook is likely to be hung on the lifting ear, and further detection of the current state of the hook and the lifting ear can be performed. When the proportion of the second overlapping area in the detection frame of the lifting ear does not reach the second threshold value, it indicates that the hook is unlikely to be hung on the lifting ear, and there is no need to further detect the current state between the hook and the lifting ear, and it is necessary to re-collect the image during the lifting process as the image to be detected.
[0085] In one embodiment, the image to be detected is segmented by ear and hook respectively to obtain an ear mask map and a hook mask map corresponding to the image to be detected; the ear mask map and the hook mask map are merged to obtain a mask image corresponding to the image to be detected. The ear mask map and the hook mask map are binary images of the image to be detected. In the ear mask map, the pixels in the area where the ear is located are assigned a value of 1, and the pixels in other areas are assigned a value of 0. In the hook mask map, the pixels in the area where the hook is located are assigned a value of 1, and the pixels in other areas are assigned a value of 0. In the mask image, the pixels in the area where the ear and the hook are located are assigned a value of 1, and the pixels in other areas are assigned a value of 0.
[0086] In a specific embodiment, when the proportion of the second overlapping area in the detection frame of the ear reaches a second threshold, the image to be detected is processed by a trained multi-object segmentation network to obtain a mask image corresponding to the image to be detected. The pixels in the area where the ear and the hook are located in the mask image are assigned a value of 1, and the pixels in other areas are assigned a value of 0.
[0087] Specifically, in step S3, a connected region search is performed in the mask image based on the ear and the hook as root nodes, and a specific implementation method of obtaining search results corresponding to the ear and the hook is as follows.
[0088] A depth-first search algorithm is used to search in the mask image with the pixels of the lug as the root node to determine the lug connected area connected to the pixels of the lug; a search is performed in the mask image with the pixels of the hook as the root node to determine the hook connected area connected to the pixels of the hook.
[0089] Through the above steps, the ear connected area corresponding to each pixel corresponding to the ear and the hook connected area corresponding to each pixel corresponding to the hook can be searched and obtained.
[0090] Specifically, in step S4, based on the search results corresponding to the lifting lug and the hook, a specific implementation method for determining whether the hook is hung on the lifting lug is as follows.
[0091] Whether the hook is hooked on the hanging ear is determined based on whether the pixels in the hanging ear connected area overlap at least partially with the pixels in the hook connected area.
[0092] Specifically, the ear connected area corresponding to each pixel corresponding to the ear is compared with the hook connected area corresponding to each pixel corresponding to the hook to determine whether there is a boundary between the area where the ear is located and the area where the hook is located.
[0093] In response to the fact that the ear connection area and the hook connection area have the same pixels, it indicates that the ear is coupled with the hook, and it can be determined that the hook is hung on the ear.
[0094] In response to the fact that the ear connected area and the hook connected area do not have the same pixels, it indicates that the ear and the hook are independent of each other, and it can be determined that the hook is not hung on the ear.
[0095] The lifting safety monitoring method provided in this embodiment obtains an image to be detected; the image to be detected contains a detection frame of the lifting object, a detection frame of the hook, and a detection frame of the lifting lug on the lifting object; based on the detection frame of the lifting object, the detection frame of the hook, and the detection frame of the lifting lug, it is determined whether to obtain a mask image of the image to be detected; the foreground area in the mask image is the area where the lifting lug and the hook are located; based on the lifting lug and the hook as root nodes, a connected area search is performed in the mask image to obtain search results corresponding to the lifting lug and the hook respectively; based on the search results corresponding to the lifting lug and the hook respectively, it is determined whether the hook is hung on the lifting lug. Compared with the current technology, this application determines whether to obtain a mask image of the image to be detected by using the detection frames corresponding to the lifting lug, the hook, and the lifting object in the image to be detected, and then determines whether the hook is hung on the lifting lug based on the search results of the lifting lug and the hook in the mask image, thereby reducing safety hazards caused by manual monitoring errors and improving safety monitoring efficiency. The lifting safety monitoring method in this embodiment has the advantages of low cost, high speed, high accuracy, strong adaptability, and non-contact.
[0096] See also Figure 4 , Figure 4 It is a schematic diagram of the framework of an embodiment of a lifting safety monitoring device provided by the present invention.
[0097] This embodiment provides a lifting safety monitoring device 60 , which includes an acquisition module 61 , an analysis module 62 , a processing module 63 and a determination module 64 .
[0098] The acquisition module 61 is used to acquire the image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting ear on the hoisted object;
[0099] The analysis module 62 is used to determine whether to obtain a mask image of the image to be detected based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug; the foreground area in the mask image is the area where the lifting lug and the hook are located;
[0100] The processing module 63 is used to perform a connected area search in the mask image based on the ear and the hook as root nodes, and obtain search results corresponding to the ear and the hook respectively;
[0101] The determination module 64 is used to determine whether the hook is hooked on the lifting eye based on the search results corresponding to the lifting eye and the hook respectively.
[0102] The lifting safety monitoring device provided in this embodiment determines whether to obtain the mask image of the image to be detected through the detection frames corresponding to the lifting eyes, hooks and lifting objects in the image to be detected, and then determines whether the hook is hung on the lifting eyes based on the search results of the lifting eyes and hooks in the mask image, thereby reducing safety hazards caused by manual monitoring errors and improving safety monitoring efficiency.
[0103] See also Figure 5 , Figure 5 It is a schematic diagram of the framework of a terminal embodiment provided by the present invention.
[0104] This embodiment provides a terminal 80 including a memory 81 and a processor 82 coupled to each other, and the processor 82 is used to execute program instructions stored in the memory 81 to implement the steps of any of the above-mentioned hoisting safety monitoring method embodiments. In a specific implementation scenario, the terminal 80 may include but is not limited to: a microcomputer, a server, and in addition, the terminal 80 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.
[0105] Specifically, the processor 82 is used to control itself and the memory 81 to implement the steps of any of the above-mentioned embodiments of the hoisting safety monitoring method. The processor 82 can also be called a CPU (Central Processing Unit). The processor 82 may be an integrated circuit chip with signal processing capabilities. The processor 82 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 82 can be implemented by an integrated circuit chip.
[0106] The above scheme, a method for monitoring hoisting safety, comprises:
[0107] Acquire an image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting lug on the hoisted object;
[0108] Based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug, determine whether to obtain a mask image of the image to be detected; the foreground area in the mask image is the area where the lifting lug and the hook are located;
[0109] Based on the ear and the hook as root nodes, a connected region search is performed in the mask image to obtain search results corresponding to the ear and the hook respectively;
[0110] Based on the search results corresponding to the lifting lug and the hook respectively, it is determined whether the hook is hung on the lifting lug.
[0111] See also Figure 6 , Figure 6 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium provided by the present invention.
[0112] This embodiment provides a computer-readable storage medium 90 storing program instructions 901 that can be executed by a processor, and the program instructions 901 are used to implement the steps of any of the above-mentioned lifting safety monitoring method embodiments.
[0113] The above scheme, a method for monitoring hoisting safety, comprises:
[0114] Acquire an image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting lug on the hoisted object;
[0115] Based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug, determine whether to obtain a mask image of the image to be detected; the foreground area in the mask image is the area where the lifting lug and the hook are located;
[0116] Based on the ear and the hook as root nodes, a connected region search is performed in the mask image to obtain search results corresponding to the ear and the hook respectively;
[0117] Based on the search results corresponding to the lifting lug and the hook respectively, it is determined whether the hook is hung on the lifting lug.
[0118] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0119] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0120] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0121] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0123] The above are only implementation modes of the present invention, and are not intended to limit the patent protection scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for monitoring lifting safety, It is characterized in that include: Acquire an image to be detected; the image to be detected includes a detection frame of the hoisted object, a detection frame of the hook, and a detection frame of the lifting ear on the hoisted object; Based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting ear, determining whether to obtain a mask image of the image to be detected; the foreground area in the mask image is the area where the lifting ear and the hook are located; Based on the ear and the hook as root nodes, a connected area search is performed in the mask image to obtain search results corresponding to the ear and the hook respectively; Based on the search results respectively corresponding to the lifting eye and the hook, it is determined whether the hook is hung on the lifting eye.
2. The method for monitoring the lifting safety according to claim 1, It is characterized in that The determining whether to obtain the mask image of the image to be detected based on the detection frame of the hoisted object, the detection frame of the hook, and the detection frame of the lifting ear includes: Based on the overlap degree between the detection frame of the hoisted object and the detection frame of the hook, and the overlap degree between the detection frame of the hook and the detection frame of the lifting ear, it is determined whether to obtain the mask image of the image to be detected.
3. The lifting safety monitoring method according to claim 2, It is characterized in that The determining whether to obtain the mask image of the image to be detected based on the overlap degree between the detection frame of the hoisted object and the detection frame of the hook, and the overlap degree between the detection frame of the hook and the detection frame of the lifting ear, comprises: Determining a first overlapping area corresponding to the lifting object and the hook based on the detection frame of the lifting object and the detection frame of the hook; In response to the proportion of the first overlapping area in the detection frame of the hook reaching a first threshold, determining a second overlapping area corresponding to the hanging ear and the hook based on the detection frame of the hook and the detection frame of the hanging ear; In response to the proportion of the second overlapping area in the detection frame of the ear reaching a second threshold, image segmentation is performed on the image to be detected to obtain the mask image.
4. The method for monitoring the lifting safety according to claim 3, It is characterized in that The step of performing image segmentation on the image to be detected to obtain the mask image comprises: Perform ear segmentation and hook segmentation on the image to be detected respectively to obtain an ear mask image and a hook mask image corresponding to the image to be detected; The ear mask image and the hook mask image are combined to obtain the mask image corresponding to the image to be detected.
5. The method for monitoring the lifting safety according to any one of claims 1 to 4, It is characterized in that The connected region search is performed in the mask image based on the ear and the hook as root nodes to obtain search results corresponding to the ear and the hook, respectively, including: Using a depth-first search algorithm to search in the mask image with the pixels of the ear as the root node, to determine an ear connected area connected to the pixels of the ear; A search is performed in the mask image with the pixel of the hook as a root node to determine a hook connected area connected to the pixel of the hook.
6. The method for monitoring the lifting safety according to claim 5, It is characterized in that The determining whether the hook is hung on the lifting eye based on the search results respectively corresponding to the lifting eye and the hook comprises: Whether the hook is hooked on the hanging ear is determined based on whether the pixels in the hanging ear communication area at least partially overlap with the pixels in the hook communication area.
7. The method for monitoring the lifting safety according to claim 6, It is characterized in that The determining whether the hook is hung on the hanging ear based on whether the pixels in the hanging ear connected area at least partially overlap with the pixels in the hook connected area includes: In response to the fact that the connecting area of the ear and the connecting area of the hook have the same pixels, determining that the hook is hooked on the ear; In response to the fact that the ear communication area and the hook communication area do not have the same pixels, it is determined that the hook is not hung on the ear.
8. A lifting safety monitoring device, It is characterized in that include: An acquisition module, used for acquiring an image to be detected; the image to be detected includes a detection frame of a hoisted object, a detection frame of a hook, and a detection frame of a lifting ear on the hoisted object; An analysis module, used to determine whether to obtain a mask image of the image to be detected based on the detection frame of the hoisted object, the detection frame of the hook and the detection frame of the lifting lug; the foreground area in the mask image is the area where the lifting lug and the hook are located; A processing module, configured to perform a connected region search in the mask image based on the lifting lug and the hook as root nodes, respectively, to obtain search results corresponding to the lifting lug and the hook respectively; A determination module is used to determine whether the hook is hung on the lifting eye based on the search results corresponding to the lifting eye and the hook respectively.
9. A terminal, It is characterized in that The terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor is used to execute program data to implement the steps in the lifting safety monitoring method as described in any one of claims 1 to 7.
10. 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 by the processor, the steps in the lifting safety monitoring method according to any one of claims 1 to 7 are implemented.
