State detection method and device, computer equipment and computer readable storage medium
Computer vision technology is used to perform background modeling and target detection on surveillance video data, combined with motion trajectories and cylinder action signals, to automatically detect the connection status of components to be fixed and fasteners, solving the problem of low manual inspection efficiency in the existing technology and realizing Provides efficient and accurate status detection.
Patent Information
- Application Number
- CN202410906256.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-06
AI Technical Summary
When fixing movable parts, the existing technology requires manual inspection of the fixing status, which is time-consuming, labor-intensive, and inefficient.
Through computer vision technology, surveillance video data is obtained, background modeling and target detection are performed, the connection status of the components to be fixed and the fasteners is determined, and the connection status is corrected using the motion trajectory and cylinder action signal to achieve automated status detection.
It greatly improves the efficiency and accuracy of status detection, and realizes intelligent and systematic detection of the fixed status of movable parts.
Smart Images

Figure CN118609032A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a state detection method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] In daily production and life, some parts that can be flexibly moved are often used, such as slide rails, lifting rods, leg beams, etc. In order to ensure the safety of these movable parts, it is usually necessary to fix the parts when they are moved to the preset position. For example, they can be fixed by binding with steel wire ropes, or they can be fixed by connecting with pins.
[0003] However, when the above fixing means are adopted, the operator still needs to manually check whether the movable component and the fixing member are in a fixed state after fixing the component, which is time-consuming and labor-intensive. Summary of the invention
[0004] Based on this, it is necessary to provide an efficient state detection method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides a state detection method, comprising:
[0006] Acquire monitoring video data collected for the component to be fixed and the fixing member, and convert the monitoring video data into a corresponding plurality of monitoring video frames;
[0007] Using a plurality of the monitoring video frames to perform background modeling, determining a foreground target position of the fixed part in each monitoring video frame;
[0008] Performing target detection processing on the plurality of monitoring video frames to determine a detection area of the component to be fixed in each monitoring video frame;
[0009] According to the foreground target position and the detection area, the connection state of the component to be fixed and the fixing member in each monitoring video frame is determined.
[0010] In one embodiment, the method further comprises:
[0011] Tracking the fixed part in the monitoring video data to generate a motion trajectory corresponding to the fixed part;
[0012] The connection state corresponding to the monitoring video frame is corrected in combination with the motion trajectory to obtain a corrected connection state of the component to be fixed and the fixing member.
[0013] In one embodiment, the method further comprises:
[0014] Detecting a cylinder action signal of the fixing member;
[0015] The connection state corresponding to the monitoring video frame is corrected in combination with the oil cylinder action signal to obtain the corrected connection state of the component to be fixed and the fixing member.
[0016] In one embodiment, the component to be fixed and the fixing member are connected via a through hole;
[0017] The performing target detection processing on the plurality of monitoring video frames to determine the detection area of the component to be fixed in each monitoring video frame includes:
[0018] The through holes in the plurality of monitoring video frames are subjected to target detection processing, and the position of the through hole in each monitoring video frame is located to obtain the detection area.
[0019] In one embodiment, the parts to be fixed include a leg crossbeam and a leg column; the leg column has a plurality of through holes marked in sequence;
[0020] The method further comprises:
[0021] Performing optical character recognition on the monitoring video frame to extract the hole position marks present in the monitoring video frame;
[0022] Determine the target hole position mark corresponding to the detection area in the monitoring video frame according to the hole position mark and a preset mark order;
[0023] The target hole position marks are used to determine the connection positions of the support leg cross beam and the support leg column with the fixing member.
[0024] In one embodiment, determining the connection state of the component to be fixed and the fixing member in each monitoring video frame according to the foreground target position and the detection area includes:
[0025] When the foreground target position exceeds the outer hole position of the through hole in the detection area, it is determined that the component to be fixed and the fixing member in the current monitoring video frame are in a connection establishment state.
[0026] In a second aspect, the present application also provides a state detection device, including:
[0027] A data acquisition module, used to acquire monitoring video data collected for the components to be fixed and the fixings, and convert the monitoring video data into a corresponding plurality of monitoring video frames;
[0028] A background modeling module, used to perform background modeling using a plurality of the monitoring video frames, and determine a foreground target position where the fixed part is located in each of the monitoring video frames;
[0029] A target detection module, used to perform target detection processing on the plurality of monitoring video frames, and determine a detection area of the component to be fixed in each monitoring video frame;
[0030] The state detection module is used to determine the connection state of the component to be fixed and the fixing member in each monitoring video frame according to the foreground target position and the detection area.
[0031] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the state detection method described in any one of the embodiments of the first aspect is implemented.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the state detection method described in any one of the embodiments of the first aspect is implemented.
[0033] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the state detection method described in any one of the embodiments of the first aspect is implemented.
[0034] The above-mentioned state detection method, device, computer equipment, computer-readable storage medium and computer program product obtain monitoring video data collected for the components to be fixed and the fixed parts, and convert the monitoring video data into corresponding multiple monitoring video frames; use multiple monitoring video frames to perform background modeling, and determine the foreground target position of the fixed parts in each monitoring video frame; perform target detection processing on multiple monitoring video frames to determine the detection area of the components to be fixed in each monitoring video frame; determine the connection state of the components to be fixed and the fixed parts in each monitoring video frame based on the foreground target position and the detection area, and can use computer vision technology to realize the intelligent and systematized state detection, thereby greatly improving the efficiency of state detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] FIG1 is an application environment diagram of a state detection method in one embodiment;
[0037] FIG2 is a schematic diagram of a flow chart of a state detection method in one embodiment;
[0038] Figure 3 A schematic diagram of a process flow of a hole mark identification step in one embodiment;
[0039] Figure 4 is a schematic diagram of a detection area in one embodiment;
[0040] Figure 5 A schematic diagram of establishing a connection state in an embodiment;
[0041] Figure 6 is a flow chart of a state detection method in another embodiment;
[0042] Figure 7 is a structural block diagram of a state detection device 700 in one embodiment;
[0043] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0046] The state detection method provided in the embodiment of the present application can be applied to the application environment as shown in Figure 1. Among them, the terminal 102 can communicate data with the video acquisition device 104 through the network, Bluetooth or communication port. Specifically, the terminal 102 can obtain the monitoring video data collected by the video acquisition device 104 for the components to be fixed and the fixings from the video acquisition device 104, and convert the monitoring video data into corresponding multiple monitoring video frames. The terminal 102 can use multiple monitoring video frames to perform background modeling and determine the foreground target position of the fixings in each monitoring video frame. The terminal 102 can perform target detection processing on multiple monitoring video frames to determine the detection area of the components to be fixed in each monitoring video frame. The terminal 102 can determine the connection state of the components to be fixed and the fixings in each monitoring video frame based on the foreground target position and the detection area.
[0047] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart TVs, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The video acquisition device 104 may include, but is not limited to, cameras, surveillance cameras, handheld terminals with video recording functions, etc.
[0048] In an exemplary embodiment, as shown in FIG2 , a state detection method is provided, which is described by taking the method applied to the terminal 102 in FIG1 as an example, and includes the following steps S202 to S208 . Among them:
[0049] Step S202: acquiring monitoring video data collected for the component to be fixed and the fixing member, and converting the monitoring video data into a corresponding plurality of monitoring video frames.
[0050] Among them, the parts to be fixed can be used to represent movable parts, such as slide rails, lifting rods, leg beams of bridge cranes, etc.
[0051] The fixing parts may include but are not limited to latches, buckles, bolts and nuts.
[0052] For example, the terminal can obtain the monitoring video data collected by the video acquisition device for the part to be fixed and the fixing part in real time when receiving the cylinder action signal of the part to be fixed and / or the fixing part. The terminal can convert the monitoring video data obtained at consecutive moments into monitoring video frames corresponding to each acquisition moment according to the acquisition moment sequence of the monitoring video data.
[0053] Step S204: Background modeling is performed using multiple surveillance video frames to determine the foreground target position of the fixed component in each surveillance video frame.
[0054] Optionally, in some embodiments, the terminal may use a Gaussian mixture model (GMM model for short) to fit the grayscale values of the pixels in the background area of each surveillance video frame. When it is detected that there is a large difference between the grayscale value of a pixel and the grayscale value obtained by fitting the Gaussian mixture model, the pixel is used as the pixel of the fixed part. The position coordinates of the pixels belonging to the fixed part in the same surveillance video frame are used to determine the position of the fixed part in each surveillance video frame, that is, the foreground target position.
[0055] Alternatively, in some other implementations, the terminal may also use a visual background extraction algorithm (VIBE algorithm for short) to model the pixel grayscale values in one or more surveillance video frames to obtain a corresponding background model. The difference between the remaining pixel grayscale values and the background model is calculated, and the pixel points with a difference less than a preset threshold are taken as background pixels, and the pixel points with a difference greater than the preset threshold are taken as pixels of the fixed part. Thus, the foreground target position of the fixed part in each surveillance video frame is determined.
[0056] Step S206: performing target detection processing on the multiple surveillance video frames to determine the detection area of the component to be fixed in each surveillance video frame.
[0057] The detection area can be used to determine whether the part to be fixed and the fixing member are connected. For example, when the fixing member is a bolt, the detection area can be the socket area in the part to be fixed. When the fixing member is a bolt, the detection area can be the screw hole area in the part to be fixed.
[0058] Optionally, in some embodiments, a target detection algorithm based on deep learning is stored in the terminal, such as a binocular detection algorithm, a monocular detection algorithm, etc. The terminal can use the target detection algorithm based on deep learning to classify the pixels in each monitoring video frame. The pixel points whose categories belong to the detection area are used to form the detection area of the component to be fixed in each monitoring video frame.
[0059] Step S208, determining the connection status of the component to be fixed and the fixing member in each monitoring video frame according to the foreground target position and the detection area.
[0060] Optionally, in some embodiments, the terminal may determine the connection state of the component to be fixed and the fixing in the current monitoring video frame according to whether the foreground target position of the fixing is located in the detection area of the component to be fixed in the same monitoring video frame. For example, when the foreground target position is located in the detection area, it may be determined that the component to be fixed and the fixing are in a connected state.
[0061] Alternatively, in some other embodiments, the terminal may also use the foreground target position to extract the image data of the fixture from the monitoring video frame, match the image data of the fixture with the image data of the detection area, and identify whether the image data of the fixture overlaps with the image data of the detection area, thereby determining the connection state of the component to be fixed and the fixture.
[0062] The above-mentioned state detection method obtains monitoring video data collected for the components to be fixed and the fixed parts, and converts the monitoring video data into corresponding multiple monitoring video frames; uses multiple monitoring video frames to perform background modeling, and determines the foreground target position of the fixed parts in each monitoring video frame; performs target detection processing on multiple monitoring video frames to determine the detection area of the components to be fixed in each monitoring video frame; determines the connection state of the components to be fixed and the fixed parts in each monitoring video frame according to the foreground target position and the detection area, and can use computer vision technology to realize the intelligence and systematization of state detection, thereby greatly improving the efficiency of state detection.
[0063] Under actual working conditions, since the connection process between the component to be fixed and the fixing is a dynamically changing process, combining static monitoring video frames and dynamic monitoring video sequences to comprehensively detect the connection status of the component to be fixed and the fixing helps to improve the detection accuracy of the connection status.
[0064] Therefore, in an exemplary embodiment, the state detection method provided in the present application may further include the following steps:
[0065] The fixed parts in the monitoring video data are tracked to generate the motion trajectory corresponding to the fixed parts; the connection state corresponding to the monitoring video frame is corrected based on the motion trajectory to obtain the corrected connection state of the component to be fixed and the fixed parts.
[0066] Exemplarily, the terminal can use the background modeling data of the static surveillance video frame (for example, Gaussian mixture model data constructed based on the gray value probability of the background pixels) to perform target detection on the dynamic surveillance video data, and determine the foreground target detection frame where the fixed part is located in the surveillance video data. Calculate the intersection over union (IoU) of the foreground target detection frame at two adjacent acquisition moments in the surveillance video data. Use the target information frame association technology to track the foreground target detection frame whose IoU is greater than a preset threshold (for example, 0.5). Use the position information of the foreground target detection frame and the association information between the foreground target detection frames to construct the motion trajectory of the fixed part in the dynamic surveillance video data, and realize the target tracking of the fixed part in the dynamic surveillance video data.
[0067] Optionally, in some embodiments, when the terminal detects from a static surveillance video frame that the connection state between the component to be fixed and the fixing is in a connected state, if the movement trajectory of the fixing is a trajectory running in a direction away from the component to be fixed, the connection state between the component to be fixed and the fixing after correction can be obtained as a disconnected state; otherwise, the connection state between the component to be fixed and the fixing after correction can be obtained as an established connection state.
[0068] Optionally, in other embodiments, when the terminal detects from a static surveillance video frame that the connection state between the component to be fixed and the fixing is a disconnected state, if the movement trajectory of the fixing is a trajectory running in a direction close to the component to be fixed, the connection state between the component to be fixed and the fixing after correction can be obtained as an established connection state; otherwise, the connection state between the component to be fixed and the fixing after correction can be obtained as a released connection state.
[0069] In this embodiment, by performing target tracking on dynamic surveillance video data and using the motion trajectory of the fixture generated by target tracking, the connection state obtained by detecting static surveillance video frames is corrected, thereby improving the detection accuracy of the connection state.
[0070] In some actual working conditions, due to the different connection states of the fixing parts, the cylinder action signal thereof will also change. In an exemplary embodiment, the state detection method provided in the present application may further include the following steps:
[0071] Detect the oil cylinder action signal of the fixing part; correct the connection state corresponding to the monitoring video frame in combination with the oil cylinder action signal to obtain the corrected connection state of the component to be fixed and the fixing part.
[0072] For example, the terminal can read the cylinder action signal of the fixing part detected by the cylinder stress sensor by establishing data communication with the cylinder stress sensor. When the connection state corresponding to the monitoring video frame is the established connection state, if the cylinder action signal is stopped, the connection state of the component to be fixed and the fixing part after correction can be obtained as the connected state; otherwise, the connection state of the component to be fixed and the fixing part after correction can be obtained as the established connection state or the disconnected connection state.
[0073] When the connection state corresponding to the monitoring video frame is the disconnected state, if the cylinder action signal is stopped, the corrected connection state can be obtained as the disconnected state; otherwise, the corrected connection state can be obtained as the established state.
[0074] In this embodiment, the connection state detected from the static monitoring video frame is corrected by combining the cylinder action signal of the fixing member, so that the detection accuracy of the connection state can be improved.
[0075] Optionally, in an exemplary embodiment, the component to be fixed and the fixing member may be connected via a through hole. The above step S206 may be implemented in the following manner: performing target detection processing on the through holes in multiple surveillance video frames, locating the position of the through hole in each surveillance video frame, and obtaining a detection area.
[0076] Exemplarily, the terminal can use image samples collected for the through-holes of the parts to be fixed to train a deep learning-based target detection network (such as any one or more of the networks such as YOLO, SSD, FASTERCNN, etc.) so that the target detection network can learn the image features of the through-holes. Using the trained target detection network, target detection processing is performed on the through-holes of the parts to be fixed in multiple surveillance video frames, the detection frame where the through-holes are located is identified, and the position of the through-holes is located, so as to obtain the detection area in each surveillance video frame for judging the connection status.
[0077] In this embodiment, in the application scenario where the component to be fixed and the fixing part are connected through a through hole, a deep learning-based target detection method is used to locate the position of the through hole as the detection area. This can narrow the recognition range of the detection area, help reduce the amount of data processing in the state detection process, and thus improve the state detection efficiency.
[0078] During the bridge erection process, the leg beam of the bridge erection machine needs to slide up and down and lock the leg column with a latch to achieve the purpose of supporting the bridge erection machine and transporting the bridge. Therefore, in an exemplary embodiment, the parts to be fixed may include the leg beam and the leg column. The leg column may be provided with a plurality of through holes marked in sequence. Figure 3As shown, the state detection method provided by the present application may also include the following steps S302 to S306. Among them:
[0079] Step S302: performing optical character recognition on the monitoring video frame to extract the hole position marks in the monitoring video frame.
[0080] Exemplarily, the terminal can perform character segmentation on the surveillance video frame to extract the area where the characters exist, perform optical character recognition on the area where the characters exist to determine the content of the hole position mark, and thus extract the hole position mark of the through hole existing in each surveillance video frame.
[0081] Optionally, in some embodiments, before performing optical character recognition on the surveillance video frame, the terminal may also perform grayscale processing on the surveillance video frame to obtain a corresponding grayscale image. Based on a preset threshold, the grayscale image is binarized and denoised to obtain a corresponding binarized image. The binarized image obtained after processing is used as the object of optical character recognition.
[0082] Step S304: determining the target hole position mark corresponding to the detection area in the monitoring video frame according to the hole position mark and the preset mark order.
[0083] For example, when the leg crossbeam slides on the leg column, it will block a portion of the image of the leg column. Since the hole marks of the leg column are orderly and continuous, the adjacent hole marks of the leg crossbeam can be combined with the preset marking sequence to determine the target hole mark of the target through hole corresponding to the detection area at the overlapping position of the leg crossbeam and the leg column that is blocked in the current monitoring image.
[0084] For example, when it is detected in the monitoring image that the hole position mark above the leg beam is 16 and the hole position mark below the leg beam is 14, the target hole position mark of the target through hole of the leg beam aligned with the leg column at this time can be determined to be 15 by combining the marking order that decreases from top to bottom or the marking order that is marked in sequence according to the size of the numbers.
[0085] Step S306, using the target hole position marks, determine the connection positions of the leg cross beam and the leg column with the fixing parts.
[0086] For example, the terminal can use the target hole position mark to determine the current running hole position of the leg cross beam on the leg column. The currently determined running hole position is used as the socket of the fixing member, thereby determining the connection position of the leg cross beam and the leg column with the fixing member. Optionally, in some embodiments, the fixing member connected to the leg cross beam and the leg column can be a latch.
[0087] In this embodiment, optical character recognition is used to extract the hole marks on the leg columns in the monitoring video frame, and combined with the marking order of the hole marks, the target hole marks of the target through holes corresponding to the obscured detection area in the monitoring video frame are completed, and the target hole marks are used to locate the current connection positions of the leg beams and the leg columns with the fixings. Compared with the technical means in the prior art that require manual inspection of the running position of the leg beams, the efficiency of position determination can be improved and the intelligent position detection can be realized.
[0088] Optionally, in some embodiments, the monitoring video frames for extracting hole position marks and the monitoring video frames for detecting the connection status can be acquired by switching different viewing angles using the same video acquisition device. Alternatively, in other embodiments, the monitoring video frames for extracting hole position marks and the monitoring video frames for detecting the connection status can also be acquired using video acquisition devices installed at different locations.
[0089] In an exemplary embodiment, the above step S208 can be implemented in the following manner: when the foreground target position exceeds the outer hole position of the through hole in the detection area, it is determined that the component to be fixed and the fixing member in the current monitoring video frame are in a connection establishment state.
[0090] For example, Figure 4 As shown, the projection of the through hole in the monitoring video frame may be annular, consisting of an outer hole 402 and an inner hole 404. Figure 5 As shown, when it is detected that the foreground target position where the fixing member 500 is located exceeds the position of the outer hole 402 of the through hole in the detection area, the terminal can determine that the component to be fixed in the current monitoring video frame and the fixing member are in a connection establishment state.
[0091] In this embodiment, by comparing the positional relationship between the foreground target position and the detection area, the states of the component to be fixed and the fixing member are determined, thereby improving the efficiency of the state detection.
[0092] In an exemplary embodiment, Figure 6 As shown, a state detection method is also provided, including the following steps S602 to S616. Among them:
[0093] Step S602, receiving the cylinder action signal of the outrigger crossbeam, obtaining the first video data collected by the first camera for the outrigger crossbeam and the outrigger column, and converting the first video data into corresponding multiple first video frames.
[0094] Step S604: perform optical character recognition on the first video frame to extract the hole position marks in the first video frame.
[0095] Step S606, according to the hole position marks and the preset marking order, determine the target hole position marks for aligning the leg crossbeam and the leg column in the first video frame, and locate the current position of the leg crossbeam.
[0096] Exemplarily, the terminal can be connected to the cylinder stress sensor of the leg crossbeam, and detect the cylinder action signal of the leg crossbeam through the cylinder stress sensor. When the cylinder action signal of the leg crossbeam is received, the first video data collected by the first camera for the leg crossbeam and the leg column is obtained, and the first video data is converted into a corresponding plurality of first video frames. When the cylinder action signal of the leg crossbeam is received as stop, optical character recognition is performed on the first video frame collected at the current moment, and the hole position marks existing in the first video frame are extracted. The hole position marks existing in the first video frame and the preset mark sequence of the leg column are used to determine the target hole position marks for aligning the leg crossbeam and the leg column in the current first video frame, so as to locate the current position of the leg crossbeam.
[0097] Step S608, receiving the cylinder action signal of the latch, obtaining the second video data collected by the second camera for the outrigger beam and the latch, and converting the second video data into a corresponding plurality of second video frames.
[0098] Step S610: Background modeling is performed using a plurality of second video frames to determine a foreground target position where a latch is located in each second video frame.
[0099] Step S612: perform target detection processing on the multiple second video frames to determine the detection area where the through hole of the leg beam is located in each second video frame.
[0100] Step S614, determining the connection state of the leg beam and the latch in each second video frame according to the foreground target position of the latch and the detection area of the through hole.
[0101] Exemplarily, the terminal can be connected to the cylinder stress sensor of the latch, and the cylinder action signal of the latch is detected by the cylinder stress sensor. When the cylinder action signal of the latch is received, the second video data collected by the second camera for the leg beam and the latch is obtained, and the second video data is converted into a corresponding plurality of second video frames. A Gaussian mixture model or a visual background extraction algorithm is used to perform background modeling on each second video frame, and the foreground target position of the latch in each second video frame is determined. A target detection algorithm based on deep learning is used to perform target detection processing on the plurality of second video frames, and the detection area where the through hole of the leg beam is located in each second video frame is determined. The connection state of the leg beam and the latch in each second video frame is determined based on whether the foreground target position of the latch exceeds the detection area of the through hole.
[0102] Step S616, correcting the connection state according to the movement trajectory of the latch or the cylinder action signal.
[0103] Exemplarily, the terminal can track the target of the latch in the second video data, establish an association relationship between two adjacent foreground target detection frames whose intersection-over-union ratio is greater than a preset threshold, and thus generate a motion trajectory of the latch during the second video data acquisition process. Combined with the motion trajectory of the latch, the connection state detected in the static second video frame is corrected. Alternatively, the connection state detected in the static second video frame can be corrected by combining the cylinder action signal of the latch. The specific correction operation can be implemented with reference to the method given in the above embodiment, which will not be elaborated here.
[0104] Optionally, in some implementations, an image classification network trained based on a deep learning algorithm may also be deployed in the terminal, such as a residual network ResNet, a deep convolutional neural network AlexNet, etc. The image classification network is trained by collecting image samples using the second camera when the leg crossbeam and the latch are in different connection states (such as state 1 where the leg crossbeam passes through the through hole on the leg column but the latch is not activated, state 2 where the leg crossbeam moves on the leg column, state 3 where the leg crossbeam moves to a position aligned with the through hole of the leg column and the latch is activated for connection and fixation, state 4 where the latch is pulled out, etc.). In the application stage, the second video frame is input into the image classification network to determine the connection state corresponding to the second video frame.
[0105] In the process of establishing and disconnecting the plug, the above states 1 to 4 will be cycled in sequence. The terminal can correct the connection state output by the image classification network in combination with the connection state of the static second video frame output by the image classification network and the acquisition time sequence of multiple adjacent second video frames.
[0106] Optionally, in some embodiments, the terminal may also send the current position of the leg beam and the connection status of the leg beam and the latch to the front-end component for rendering and display.
[0107] In this embodiment, the hole position marks are extracted through optical character recognition to locate the position of the leg beam, so that the intelligent judgment of the beam position can be realized and the detection efficiency of the beam position is improved. The foreground target position where the pin is located and the detection area where the through hole is located are extracted through background modeling and target detection. The positional relationship between the pin and the through hole is used to determine the connection state of the leg beam and the pin, so that the intelligent detection of the beam state can be realized and the state detection efficiency is improved. The connection state detected in the static video frame is combined with the dynamic motion trajectory or the cylinder action signal to obtain the corrected connection state, which can improve the detection accuracy of the connection state.
[0108] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0109] Based on the same inventive concept, the embodiment of the present application also provides a state detection device for implementing the state detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more state detection device embodiments provided below can refer to the limitations on the state detection method above, and will not be repeated here.
[0110] In an exemplary embodiment, Figure 7 As shown, a state detection device 700 is provided, comprising: a data acquisition module 702, a background modeling module 704, a target detection module 706 and a state detection module 708, wherein:
[0111] The data acquisition module 702 is used to acquire the monitoring video data collected for the components to be fixed and the fixings, and convert the monitoring video data into a corresponding plurality of monitoring video frames.
[0112] The background modeling module 704 is used to perform background modeling using multiple surveillance video frames to determine the foreground target position of the fixed part in each surveillance video frame.
[0113] The target detection module 706 is used to perform target detection processing on multiple monitoring video frames and determine the detection area of the component to be fixed in each monitoring video frame.
[0114] The state detection module 708 is used to determine the connection state of the component to be fixed and the fixing part in each monitoring video frame according to the foreground target position and the detection area.
[0115] In an exemplary embodiment, the state detection device 700 also includes: a motion correction module, which is used to track the target of the fixed parts in the monitoring video data and generate a motion trajectory corresponding to the fixed parts; and correct the connection state corresponding to the monitoring video frame in combination with the motion trajectory to obtain the corrected connection state of the component to be fixed and the fixed parts.
[0116] In an exemplary embodiment, the state detection device 700 also includes: a signal correction module for detecting the cylinder action signal of the fixing part; correcting the connection state corresponding to the monitoring video frame in combination with the cylinder action signal to obtain the corrected connection state of the component to be fixed and the fixing part.
[0117] In an exemplary embodiment, the component to be fixed and the fixing member are connected via a through hole. The target detection module 706 is further used to perform target detection processing on the through holes in multiple monitoring video frames, locate the position of the through hole in each monitoring video frame, and obtain a detection area.
[0118] In an exemplary embodiment, the components to be fixed include a leg beam and a leg column. The leg column has a plurality of through holes marked in sequence. The state detection device 700 also includes: a component positioning module, which is used to perform optical character recognition on the monitoring video frame and extract the hole position marks existing in the monitoring video frame; determine the target hole position marks corresponding to the detection area in the monitoring video frame according to the hole position marks and the preset marking sequence; and determine the connection position of the leg beam and the leg column with the fixing member using the target hole position marks.
[0119] In an exemplary embodiment, the state detection module 708 is further used to determine that the component to be fixed and the fixing member in the current monitoring video frame are in a connection establishment state when the foreground target position exceeds the outer hole position of the through hole in the detection area.
[0120] Each module in the above-mentioned state detection device 700 can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0121] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a state detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0122] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0123] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0124] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0125] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0126] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0127] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0128] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A state detection method, characterized in that: The method comprises: Acquire monitoring video data collected for the component to be fixed and the fixing part, and convert the monitoring video data into a corresponding plurality of monitoring video frames; Using a plurality of the monitoring video frames to perform background modeling, determining a foreground target position of the fixed part in each monitoring video frame; Performing target detection processing on the plurality of monitoring video frames to determine a detection area of the component to be fixed in each monitoring video frame; According to the foreground target position and the detection area, the connection state of the component to be fixed and the fixing member in each monitoring video frame is determined.
2. The method according to claim 1, characterized in that The method further comprises: Tracking the fixed part in the monitoring video data to generate a motion trajectory corresponding to the fixed part; The connection state corresponding to the monitoring video frame is corrected in combination with the motion trajectory to obtain a corrected connection state of the component to be fixed and the fixing member.
3. The method according to claim 1, characterized in that The method further comprises: Detecting a cylinder action signal of the fixing member; The connection state corresponding to the monitoring video frame is corrected in combination with the oil cylinder action signal to obtain the corrected connection state of the component to be fixed and the fixing member.
4. The method according to any one of claims 1 to 3, characterized in that The component to be fixed and the fixing member are connected via a through hole; The performing target detection processing on the plurality of monitoring video frames to determine the detection area of the component to be fixed in each monitoring video frame includes: The through holes in the plurality of monitoring video frames are subjected to target detection processing, and the position of the through hole in each monitoring video frame is located to obtain the detection area.
5. The method according to claim 4, characterized in that The parts to be fixed include a leg crossbeam and a leg column; the leg column has a plurality of through holes marked in sequence; The method further comprises: Performing optical character recognition on the monitoring video frame to extract the hole position marks present in the monitoring video frame; Determine the target hole position mark corresponding to the detection area in the monitoring video frame according to the hole position mark and a preset mark order; The target hole position marks are used to determine the connection positions of the support leg cross beam and the support leg column with the fixing member.
6. The method according to claim 4, characterized in that The step of determining the connection state of the component to be fixed and the fixing member in each monitoring video frame according to the foreground target position and the detection area includes: When the foreground target position exceeds the outer hole position of the through hole in the detection area, it is determined that the component to be fixed and the fixing member in the current monitoring video frame are in a connection establishment state.
7. A state detection device, characterized in that: The device comprises: A data acquisition module, used to acquire monitoring video data collected for the components to be fixed and the fixings, and convert the monitoring video data into a corresponding plurality of monitoring video frames; A background modeling module, used to perform background modeling using a plurality of the monitoring video frames, and determine a foreground target position where the fixed part is located in each of the monitoring video frames; A target detection module, used to perform target detection processing on the plurality of monitoring video frames, and determine a detection area of the component to be fixed in each monitoring video frame; The state detection module is used to determine the connection state of the component to be fixed and the fixing member in each monitoring video frame according to the foreground target position and the detection area.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Vehicle retention warning method and device, computer equipment and storage medium
CN115690159A
Target tracking method and device, electronic equipment and readable storage medium
CN116342642A
Fixed condition inspection device, fixed condition inspection system, fixed condition inspection method and program
JP2022000720A
Inspection device and inspection method
JP2024080932A
Visual perception determination system and method
US20170272701A1
