Method and device for detecting the depth of explosives based on video
Through the analysis of video frame pictures, the depth of explosives is detected, which solves the problems of low efficiency and poor accuracy of explosives depth detection in petroleum seismic exploration, achieves efficient and accurate depth detection, and ensures the effective propagation of seismic waves and imaging quality.
Patent Information
- Application Number
- CN202010092206.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-14
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-02-14
AI Technical Summary
In petroleum seismic exploration, the detection of explosive dropping depth has the problems of heavy manual inspection workload, low efficiency, poor accuracy, and high cost, which leads to inaccurate dropping depth and affects the propagation of seismic waves and imaging quality.
Using a video-based detection method, the video frame pictures in the video file of explosive dispensing are obtained at preset time intervals, the length and position information of the pipe in the vertical direction are detected, the changes in the length of the pipe are analyzed, the number of pipes placed is calculated, and the explosive is determined Drug depth.
It improves the efficiency and accuracy of explosive dosing depth detection, ensures the quality of dosing construction, reduces costs, and improves the quality of explosive excitation.
Smart Images

Figure CN113269705B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of petroleum seismic exploration, and in particular to a method and device for detecting the depth of explosives placed based on video. Background Art
[0002] In oil seismic exploration, explosives are used to explode (i.e., blasting) to generate seismic waves, and the underground geological structure is inferred based on the seismic waves received by the detector. When using explosives for blasting, first drill a well at a designated location to drill a charge hole, and then place the explosives at a certain depth in the formation for detonation. The depth of blasting varies in different terrains and locations, but it must be placed at the depth specified in the design. During the lowering process, construction workers need to pull the line that binds the explosives and lower them to the designated location little by little by gravity. However, due to the narrowness of the well wall and scratches, if the explosives are only lowered by gravity during the blasting process, the explosives may be stuck in the middle part of the well and fail to reach the predetermined depth. If the explosives are detonated at a non-designated location, most of the seismic wave energy emitted by the explosion will be absorbed by shallow water, surface and other strata, and the seismic waves propagating to the target layer will be greatly reduced, directly affecting the imaging quality. In order to avoid this situation, in the actual production process, it is necessary to place a metal iron pipe in the medicine well to push the explosives downward to the designated position. Generally, the length of the iron pipe is fixed and limited. During the pipe lowering process, multiple sections of the iron pipe need to be spliced. After one iron pipe is lowered, another iron pipe needs to be spliced, and then the pipe continues to be connected to push the explosives downward. If the iron pipe cannot be pushed downward, it means that the explosives have been lowered to the designated position. The construction of drilling, drug placement and blasting is usually carried out in the wild in sparsely populated areas. In order to ensure the construction quality of the drug placement depth, the entire drug placement process needs to be recorded. After the construction is completed, the collected video needs to be manually tested. By counting the depth of the pipe lowered during drug placement, it is judged whether the explosives have reached the predetermined depth. This detection scheme has the problems of large manual visual inspection workload, low efficiency, poor accuracy and high cost.
[0003] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiment of the present invention provides a method for detecting the depth of explosives placed based on video, which is used to efficiently and accurately detect the depth of explosives placed. The method includes:
[0005] Acquire multiple video frame images in the explosive placement video file at preset time intervals;
[0006] Detect the tube in the vertical direction in each video frame, and determine the length and position information of the tube in each video frame where the tube exists;
[0007] According to the length and position information of the tube in each video frame and the timing information of all video frames, the change of the length of the tube in all video frames is analyzed, and the number of tubes placed is determined according to the analysis results;
[0008] The results of the explosive placement depth detection are obtained based on the number of pipes placed and the length of the pipes.
[0009] The embodiment of the present invention also provides a device for detecting the depth of explosives placed based on video, which is used to efficiently and accurately detect the depth of explosives placed, and the device includes:
[0010] An acquisition unit is used to read a plurality of video frame images in the explosive placing video file at a preset time interval;
[0011] A detection unit, used to detect the tube in the vertical direction in each video frame image, and determine the length and position information of the tube in each video frame image where the tube exists;
[0012] A determination unit, used to analyze the change of the length of the tubes in all the video frames according to the length and position information of the tubes in each video frame and the timing information of all the video frames, and determine the number of the tubes to be placed according to the analysis result;
[0013] The processing unit is used to obtain the detection result of the depth of explosives according to the number of pipes placed and the length information of the pipes.
[0014] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned video-based method for detecting the depth of explosives.
[0015] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program for executing the above-mentioned video-based explosives depth detection method.
[0016] The technical solution provided by the embodiment of the present invention is as follows: a plurality of video frame images in a video file of explosive placing are obtained at preset time intervals; the pipes in the vertical direction in each video frame image are detected, and the length and position information of the pipes in each video frame image where the pipes exist are determined; according to the length and position information of the pipes in each video frame image, the change of the length of the pipes in all video frame images is analyzed, and the number of pipes placed is determined according to the analysis result; according to the number of pipes placed and the length information of the pipes, the result of the detection of the depth of explosive placing is obtained, so that efficient and accurate detection of the depth of explosive placing is realized, the efficiency and accuracy of the detection of the depth of explosive placing is improved, the quality of placing construction is ensured, and the quality of explosive excitation is ensured, while the cost is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 1 is a flow chart of a method for detecting the depth of explosives based on video in an embodiment of the present invention;
[0019] Figure 2 1 is a schematic diagram of the principle of the detection of the depth of explosives placed based on video in an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of the effect of the video-based detection of the depth of explosives in an embodiment of the present invention;
[0021] Figure 4 is a structural schematic diagram of a device for detecting the depth of explosives based on video in an embodiment of the present invention;
[0022] Figure 5 It is a structural schematic diagram of a device for detecting the depth of explosives based on video in another embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Since the inventors have discovered the technical problems in the prior art of detecting the depth of explosives, they have proposed a video-based detection scheme for the depth of explosives, which automatically detects and analyzes the number and length of the tubes according to the video of the tubes recorded on site, thereby determining whether the explosives have been placed to the specified depth. The following is a detailed introduction to the video-based detection scheme for the depth of explosives.
[0025] Figure 1 FIG. 1 is a flow chart of a method for detecting the depth of explosives in an embodiment of the present invention based on video. Figure 1 As shown, the method comprises the following steps:
[0026] Step 101: acquiring a plurality of video frame images in a video file of explosive placement at preset time intervals;
[0027] Step 102: Detect the tube in the vertical direction in each video frame, and determine the length and position information of the tube in each video frame where the tube exists;
[0028] Step 103: Analyze the change of the length of the tubes in all the video frames according to the length and position information of the tubes in each video frame and the timing information of all the video frames, and determine the number of the tubes according to the analysis result;
[0029] Step 104: According to the number of pipes placed and the length information of the pipes, the explosive placement depth detection result is obtained.
[0030] The video-based explosive placement depth detection method provided by the embodiment of the present invention realizes efficient and accurate detection of the explosive placement depth, improves the efficiency and accuracy of the explosive placement depth detection, ensures the quality of the explosive placement construction, and further ensures the quality of the explosive excitation.
[0031] The following is combined with Figures 2 to 3 , the scheme involved in the embodiment of the present invention is introduced in detail as follows.
[0032] 1. First, the above step 101 is introduced.
[0033] In the specific implementation, the recorded drug delivery video file is opened, and the video frames are read at a specified time interval Sn (the video is composed of still pictures, which are called frames), and then subsequent analysis and processing (including the two parts of single frame detection and inter-frame detection below) are performed.
[0034] In the specific implementation, the selection of the time interval Sn is considered as follows: usually there are 30 or more than 20 frames of images in 1s in the video, and the difference between two adjacent frames of images is not large. In order to improve the efficiency of the algorithm processing, not every frame will be processed, but several frames will be processed once. The interval time can be: the number of interval frames / the total number of frames per second (seconds).
[0035] 2. Next, the step of preprocessing the video frame image after the above step 101 is introduced.
[0036] In one embodiment, the above-mentioned method for detecting the depth of explosives application based on video may further include: after reading a plurality of video frame images in the explosive application video file at a preset time interval, performing the following preprocessing steps on each of the read video frame images:
[0037] Each video frame image read is reduced in size according to a preset ratio;
[0038] Convert each video frame image after the reduction process into a grayscale image to obtain a video frame grayscale image;
[0039] Each video frame grayscale image is equalized to obtain a video frame grayscale image after equalization.
[0040] In specific implementation, the preprocessing part mainly converts the video frames (in video processing, dynamic video is composed of static images, and one frame is an image) into grayscale images, reduces the image size and performs equalization processing.
[0041] The detailed scheme of the above pretreatment is introduced below.
[0042] 1. Reduce the size of each video frame read at a preset ratio: Since the recorded video has high resolution and large data volume, in order to increase the processing speed, the read video image is reduced to reduce the amount of data processing, thereby improving the efficiency of video-based explosive depth detection.
[0043] 2. Convert each video frame image after the reduction process into a grayscale image to obtain a video frame grayscale image: Convert the video frame to be inspected from a color image to a grayscale image. Since the field environment changes greatly, the color of the pipe is not fixed, and it is affected by light, shooting and other conditions, it is difficult to use color to identify. Therefore, the preprocessing step of converting to a grayscale image improves the accuracy of the depth detection of explosives based on video. The present invention mainly performs detection by analyzing geometric shapes, and color recognition is only an auxiliary detection. The grayscale image can be used for morphological analysis, which can improve the efficiency of detection processing.
[0044] 3. Equalize the grayscale image of each video frame to obtain a grayscale image of the video frame after equalization: In order to reduce the impact of uneven light changes in the wild environment on the image shooting effect, the image needs to be equalized.
[0045] In one embodiment, performing equalization processing on each video frame grayscale image to obtain the equalized video frame grayscale image may include obtaining the equalized video frame grayscale image according to the following formula:
[0046]
[0047] Among them, P r is the probability density of grayscale, r k is the kth gray level, k = 0, 1, 2, ..., L-1, n k The gray level in the image (picture) is r k The number of pixels in the image is n, and n is the total number of pixels in the image.
[0048]
[0049] S k Perform histogram equalization to equalize the grayscale level of the input image to r j The pixel of (abscissa) is mapped to the output image with gray level S k The corresponding pixel of (abscissa) is obtained, where n j The gray level in the image (picture) is r j The number of pixels.
[0050] In one embodiment, the preprocessing step may further include:
[0051] Extracting the vertical boundary from the grayscale image of each video frame after equalization processing;
[0052] Binarization is performed on each equalized video frame grayscale image that has been extracted across the boundary to obtain a binarized video frame grayscale image.
[0053] In specific implementation, the preprocessing may also include extracting vertical boundary information on the image and performing binarization processing on the image:
[0054] 1. Extract the vertical boundary information on the image, that is, extract the vertical boundary on each equalized video frame grayscale image:
[0055] In one embodiment, extracting the vertical boundary on each equalized video frame grayscale image may include: extracting the vertical boundary according to the following formula:
[0056]
[0057] During specific implementation, the boundary factor in the y direction may be used to extract the boundary in the vertical direction on the image.
[0058] In the above formula (3), f i is the image to be extracted from, grad y To obtain the gradient in the y direction, f grdY The boundary in the Y direction is obtained.
[0059] In specific implementation, the vertical boundaries refer to the upper and lower boundaries in the entire image. Then the boundaries of the tubes are found based on the length and position of the tubes. Extracting vertical boundaries is relatively stable and fast in feature extraction, which lays a good foundation for the following line detection using Hough transform.
[0060] 2. Binarize the image, that is, perform binarization on each equalized video frame grayscale image that has been extracted across the boundary to obtain a binarized video frame grayscale image:
[0061] In one embodiment, performing binarization processing on each equalized video frame grayscale image across the boundary to obtain the binarized video frame grayscale image may include:
[0062] The image is binarized and the calculation process is as follows:
[0063] (1) Obtain the minimum and maximum grayscale values g of the image min and g max , the initial threshold is:
[0064] T 0 =(g min +g max )×0.5; (4)
[0065] (2) Using threshold T 0 Divide the image into two parts, foreground and background, and calculate the average grayscale value of the two parts:
[0066]
[0067]
[0068] Where: G b is the average grayscale of the background, G f is the average gray value of the foreground, g is the gray value of the pixel, and h(g) is the probability density of the gray value of the pixel.
[0069] (3) Let T k =(G b +G f)×0.5 (7)
[0070] If T k =T k+1 , then take T k is the obtained threshold, otherwise, go to (2) to continue the iteration.
[0071] Where k is the number of iterations, T k is the threshold calculated at the kth iteration, T k+1 is the threshold calculated at the k+1th iteration.
[0072] In specific implementation, after graying the color image as above, the obtained gray image is binarized. The purpose of binarization is to classify the target user background and prepare for the subsequent lane recognition. The most commonly used method for gray image binarization is the threshold method, which uses the difference between the target and the background in the image to set the image to two different levels, selects a suitable threshold to determine whether a pixel is a target or a background, and obtains a binary image, thereby improving the efficiency and accuracy of video-based depth detection of explosives.
[0073] 3. Next, the above step 102, i.e. single frame detection of the tube, is introduced.
[0074] In one embodiment, detecting a tube in a vertical direction in each video frame image and determining the length and position information of the tube in each video frame image where the tube exists may include:
[0075] Use Hough transform to find the tube in each video frame in the vertical direction;
[0076] The length of the tube in each video frame is detected. When the length of the tube is greater than a preset length threshold, it is determined that the tube exists in the video frame. The length and position information of the tube in each video frame where the tube exists is recorded.
[0077] The step 102 is described in detail below.
[0078] 1. First, we introduce how to use Hough transform to find the straight line, so as to find the tube in each video frame.
[0079] Hough transform is a method of line detection using linear polar coordinate parameter space. After the boundary detection in the previous step, it is mainly used to detect the boundary line in the vertical direction. The boundary line displayed in the image is a series of pixel points, whose value is 1. Let point P be a point on the straight line in the image, and its point coordinates are P in the Cartesian coordinate system. (x,y) , the polar coordinates of this point are The distance of the straight line from the origin of the example image is ρ, and in polar coordinates we can get:
[0080]
[0081] in, is the angle of rotation of the perpendicular line from the origin to this line.
[0082]
[0083] The polar coordinate equation of the line can be obtained:
[0084] ρ=x×cos(θ)+y×sin(θ); (10)
[0085] Among them, r is the distance from the origin to the straight line in polar coordinates, and θ is the angle of the straight line in polar coordinates.
[0086] That is, a set of parameters (ρ, θ) can be used to uniquely determine a straight line, and in the polar coordinate system, the equation of a straight line is a point, which means that a straight line in the image corresponds to a point in the polar coordinate parameter space. For any point on the extracted boundary, all straight lines that may pass through this point correspond to a point in the polar coordinate parameter space, and the infinite number of straight lines passing through this point form a curve in the polar coordinate parameter space. Multiple boundary points will generate multiple curves in the polar coordinate parameter space. When these boundary points are on a straight line, multiple curves in the polar coordinate parameter space will intersect, and the intersection is (ρ i ,θ i ), then these are the polar coordinate parameters of the line.
[0087] Since the pipes under the pipes need to be detected, they are placed vertically. Therefore, in the process of calculating the Hough parameter space, the value range of ρ is limited to the height of the entire image, and θ is [90°-θ υ °,90°+θ υ °], in which the tube is considered to be placed vertically, where θ υ ° is the deflection angle in the vertical direction, which is a setting parameter. The parameter space is divided into m×n grids, where m and n are the number of grids divided horizontally and vertically, respectively. The grid stores the counter of the straight line determined by (ρ,θ). For each boundary point (x, y) in the image, the ρ value is calculated using formula (10) with the θ independent variable, and then the corresponding straight line counter in the grid is added by 1. After calculating all the points, the straight line counters in the parameter space are counted. The largest straight line counters can be found to find the longest straight lines in the vertical direction. Then the detected straight lines are processed, the lines with too short lengths are deleted, and the lines with similar distances are merged to obtain the tube image in the vertical direction in the video frame.
[0088] Line detection using Hough transform is a problem of transferring straight lines in image space to point detection in parameter space. It is a parameter estimation method based on voting, which has strong anti-noise ability and is insensitive to edge discontinuities.
[0089] 2. Next, the detection of the lower tube area is introduced, so as to record the length and position information of the tube in each video frame image where the tube exists.
[0090] In the specific implementation, since the camera position is fixed during the shooting process, the position of the medicine well is fixed. The vertical straight line detection is performed on the image to be inspected with a sub-window of width w and height equal to the image height. The sliding step of the time window is S s (usually half of the time window width), detect the total length of the vertical line in the current sliding window, if the length is greater than T h (Note: T h is the pipe length threshold used to determine whether it is a pipe, that is, the preset length threshold. If it is greater than this length threshold, it is considered that there is a pipe, otherwise it is considered that there is no vertical pipe). The area to be inspected is considered to be a candidate pipe area (such as Figure 3 As shown in the rectangular box, Figure 3 The middle rectangle represents the detected pipe area, and the x-coordinate corresponding to the circle represents the position of the lower pipe). The current window position and detection length are recorded.
[0091] In specific implementation, the candidate pipe area in the video frame image is determined, the comparison range is narrowed, and the efficiency of video-based explosive depth detection is further improved.
[0092] 4. Next, the above step 103, i.e., the inter-frame analysis of the tube, is introduced.
[0093] In one embodiment, according to the length and position information of the tube in each video frame picture and the timing information of all video frame pictures, analyzing the change of the length of the tube in all video frame pictures, and determining the number of tubes according to the analysis result may include:
[0094] According to the length and position information of the tube in each video frame and the timing information of all video frame images, it is determined that the tube length has been continuously reduced for a preset number of times, and the number of the next tube is increased by one.
[0095] In one embodiment, according to the length and position information of the tube in each video frame picture and the timing information of all video frame pictures, analyzing the change of the length of the tube in all video frame pictures, and determining the number of tubes according to the analysis result may include:
[0096] When it is determined based on the length and position information of the tube in each video frame and the timing information of all video frame images that the tube length decreases to a preset minimum value and then suddenly increases to a preset length, the number of the next tube is increased by one.
[0097] In one embodiment, according to the length and position information of the tube in each video frame picture and the timing information of all video frame pictures, analyzing the change of the length of the tube in all video frame pictures, and determining the number of tubes according to the analysis result may include:
[0098] When it is determined that the length of the tube does not change continuously within a preset time period according to the length and position information of the tube in each video frame picture and the timing information of all video frame pictures, the number of the tubes is kept unchanged.
[0099] In specific implementation, after completing the detection of the candidate pipe area (the position information of the pipe) in a single frame (i.e. after the above step 102), a given sampling time S is used. n The video frames are sampled and analyzed at intervals of 1 second, and the continuously recorded detection results are analyzed and compared.
[0100] If no tube candidate region is detected, S n The program will jump to "2" in the above "three" and continue the detection at intervals of seconds.
[0101] If a pipe candidate region is detected, the lengths of the candidate pipes in the detected pipe candidate region are compared. If the lengths decrease continuously by N d Times (N d It is the number of times the length of the detected tube decreases during the area detection, that is, the preset number of times. If the length of the tube detected this time is smaller than the previous detection and is less than the given threshold, the count is increased by 1. If N consecutive detections are made, d If it descends for the first time, it is considered to be the lower pipe), then the time interval of this height descent is considered to be the lower iron pipe, the number of the lowered pipes is increased by 1, and then the candidate pipe area record data is cleared.
[0102] If the line length in a certain pipe area drops to a preset minimum value (preferably one tenth of the detected pipe length), the length suddenly increases (the pipe length increase rate exceeds the preset increase), and then continues to decrease, it means that a new pipe is in place.
[0103] If the length of the pipe in the inspected area remains unchanged for a long time, it may be due to other interferences and can be removed.
[0104] In a specific implementation, the above-mentioned implementation method of inter-frame analysis of tubes can improve the detection accuracy of the number of tubes, thereby improving the accuracy of video-based detection of the depth of explosives.
[0105] 5. Next, the above step 104 is introduced.
[0106] In specific implementation, after the entire video is detected, the number of detected pipes is counted and multiplied by the pipe length to obtain the total pipe length, and then the explosive placement depth detection result can be obtained.
[0107] In order to make it easier to understand how to implement the present invention, an overall introduction is given below.
[0108] 1. Parameter setting: Set the drug placement video to be inspected, set the tube depth, default tube length, video frame scaling ratio, time interval between detection frames and other parameters.
[0109] 2. Detection of the number of lower tubes.
[0110] (1) Data preprocessing
[0111] The video frame to be inspected is converted from a color image to a grayscale image, and then scaled at a specified ratio to reduce the amount of data and increase the calculation speed; the image is then equalized to remove the impact of light changes on the image; the vertical boundary is extracted from the image using the boundary factor in the y direction; and the result is binarized.
[0112] (2) Detection of candidate regions based on single-frame tubes
[0113] ① Detect vertical pipes
[0114] According to the directional characteristics and performance requirements of the lower tube, Hough transform is used to find multiple candidate straight lines in the vertical direction. Then the detected straight lines are processed, the short straight lines are deleted, and the adjacent straight lines are merged to obtain the vertical tube image.
[0115] ②Determine the candidate area for the pipe
[0116] Use the sliding window to detect the length of the tube in the candidate area and record the position and length of the tube.
[0117] (3) Inter-frame analysis of the tube
[0118] Since the camera position is relatively fixed, the position of the turret in the video is relatively fixed and does not change much.
[0119] The video frames are sampled at the specified time intervals, and the recorded tube candidate area information is analyzed and compared in time and space for the changes in the tube length in the recorded tube candidate area, that is, the video frames are sampled and analyzed at intervals of the given sampling time, and the results of continuous detection are analyzed and compared. If the length of the inspected tube has not changed, it means that it is a tube-like area, that is, if the length of the inspected tube remains unchanged, it may be other interferences and can be eliminated; if the inspected tube length decreases continuously, that is, if the length of the tube detected at the same position is continuously shortened, it means that a tube is being laid; if the tube candidate area is blank for a period of time, and then the inspected tube length suddenly appears to be a large value, and then continuously decreases, it means that a new tube has been laid; if the line length in a certain tube area drops to a minimum value, the length suddenly increases, and then continues to decrease, it means that a new tube is being laid.
[0120] 3. Output the test results.
[0121] After the video detection is completed, the number and depth of the iron pipes with drugs detected are output.
[0122] In summary, the technical solution provided by the embodiment of the present invention calculates the depth of explosive placement by detecting the number of iron pipes placed in the video. The video images are automatically detected and analyzed by computer processing, thereby improving the quality monitoring level and ability of the depth of explosive placement, ensuring the quality of explosive placement construction and explosive excitation, saving labor costs, and saving time for this process.
[0123] Based on the same inventive concept, a video-based device for detecting the depth of explosives is also provided in the embodiments of the present invention, as described in the following embodiments. Since the principle of solving the problem by the video-based device for detecting the depth of explosives is similar to that of the video-based method for detecting the depth of explosives, the implementation of the video-based device for detecting the depth of explosives can refer to the implementation of the video-based method for detecting the depth of explosives, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0124] Figure 4 is a schematic diagram of the structure of a device for detecting the depth of explosives based on video in an embodiment of the present invention, such as Figure 4 As shown, the device comprises:
[0125] An acquisition unit 01 is used to read a plurality of video frame images in a video file of explosive placement at a preset time interval;
[0126] The detection unit 03 is used to detect the tube in the vertical direction in each video frame picture, and determine the length and position information of the tube in each video frame picture where the tube exists;
[0127] The determination unit 05 is used to analyze the change of the length of the tubes in all the video frames according to the length and position information of the tubes in each video frame picture and the time sequence information of all the video frames, and determine the number of the tubes according to the analysis result;
[0128] The processing unit 07 is used to obtain the explosive placement depth detection result according to the number of pipes placed and the length information of the pipes.
[0129] In one embodiment, Figure 5 As shown, the device for detecting the depth of explosives applied based on video may further include: a preprocessing unit 02, which is used to perform the following preprocessing steps on each read video frame image after reading a plurality of video frame images in the explosives applied video file at a preset time interval:
[0130] Each video frame image read is reduced in size according to a preset ratio;
[0131] Convert each video frame image after the reduction process into a grayscale image to obtain a video frame grayscale image;
[0132] Each video frame grayscale image is equalized to obtain a video frame grayscale image after equalization.
[0133] In one embodiment, the preprocessing unit may also be used for:
[0134] Extracting the vertical boundary from the grayscale image of each video frame after equalization processing;
[0135] Binarization is performed on each equalized video frame grayscale image that has been extracted across the boundary to obtain a binarized video frame grayscale image.
[0136] In one embodiment, the detection unit can be specifically used for:
[0137] Use Hough transform to find the tube in each video frame in the vertical direction;
[0138] The length of the tube in each video frame is detected. When the length of the tube is greater than a preset length threshold, it is determined that the tube exists in the video frame. The length and position information of the tube in each video frame where the tube exists is recorded.
[0139] In one embodiment, the number determination unit may be specifically used to:
[0140] According to the length and position information of the tube in each video frame and the timing information of all video frame images, it is determined that the tube length has been continuously reduced for a preset number of times, and the number of the next tube is increased by one.
[0141] In one embodiment, the number determination unit may be specifically used to:
[0142] When it is determined based on the length and position information of the tube in each video frame and the timing information of all video frame images that the tube length decreases to a preset minimum value and then suddenly increases to a preset length, the number of the next tube is increased by one.
[0143] In one embodiment, the number determination unit may be specifically used to:
[0144] When it is determined that the length of the tube does not change continuously within a preset time period according to the length and position information of the tube in each video frame picture and the timing information of all video frame pictures, the number of the tubes is kept unchanged.
[0145] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned video-based method for detecting the depth of explosives.
[0146] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program for executing the above-mentioned video-based explosives depth detection method.
[0147] The beneficial technical effect of the technical solution provided by the embodiment of the present invention is: the embodiment of the present invention automatically analyzes the process of sending medicine downward using iron pipes during the medicine dropping process based on the video recording of the medicine dropping process, detects the iron pipes through Hough transform, and monitors the length changes of the iron pipes to determine the number of iron pipes for dropping medicine, thereby greatly improving the monitoring efficiency of this link, increasing the number of detectable videos, reducing the labor cost of this part, improving the quality control accuracy of the depth of well blasting, and improving the final blasting yield and blasting imaging effect.
[0148] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0149] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0150] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0152] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting the depth of explosives based on video, characterized in that: include: Acquire multiple video frame images in the explosive placement video file at preset time intervals; Detect the tube in the vertical direction in each video frame, and determine the length and position information of the tube in each video frame where the tube exists; According to the length and position information of the tube in each video frame and the timing information of all video frames, the change of the length of the tube in all video frames is analyzed, and the number of tubes placed is determined according to the analysis results; According to the number of pipes laid and the length of the pipes, the test results of the depth of explosives laid are obtained; According to the length and position information of the tube in each video frame, and the timing information of all video frames, the change of the tube length in all video frames is analyzed, and the number of tubes placed is determined according to the analysis results, including: According to the length and position information of the tube in each video frame and the timing information of all video frame images, it is determined that the length of the tube is continuously reduced for a preset number of times, and the number of the next tube is increased by one; When it is determined that the length of the tube decreases to a preset minimum value and the length of the tube suddenly increases to a preset length based on the length and position information of the tube in each video frame and the timing information of all video frame images, the number of the next tube is increased by one; When it is determined based on the length and position information of the tube in each video frame and the timing information of all video frames that the length of the tube remains unchanged within a preset time period, there are other interferences, which are removed to keep the number of tubes unchanged.
2. The method for detecting the depth of explosives based on video according to claim 1, characterized in that: Also includes: After reading multiple video frame images in the explosives dropping video file at preset time intervals, the following preprocessing steps are performed on each of the read video frame images: Each video frame image read is reduced in size according to a preset ratio; Convert each video frame image after the reduction process into a grayscale image to obtain a video frame grayscale image; Each video frame grayscale image is equalized to obtain a video frame grayscale image after equalization.
3. The method for detecting the depth of explosives based on video according to claim 2, characterized in that: The pre-processing step also includes: Extracting the vertical boundary from the grayscale image of each video frame after equalization processing; Binarization is performed on each equalized video frame grayscale image that has been extracted across the boundary to obtain a binarized video frame grayscale image.
4. The method for detecting the depth of explosives based on video according to claim 1, characterized in that: Detect the vertical tube in each video frame, and determine the length and position information of the tube in each video frame where the tube exists, including: Use Hough transform to find the tube in each video frame in the vertical direction; The length of the tube in each video frame is detected. When the length of the tube is greater than a preset length threshold, it is determined that the tube exists in the video frame. The length and position information of the tube in each video frame where the tube exists is recorded.
5. A video-based explosives depth detection device, characterized in that: include: An acquisition unit is used to read a plurality of video frame images in the explosive placing video file at a preset time interval; A detection unit, used to detect the tube in the vertical direction in each video frame image, and determine the length and position information of the tube in each video frame image where the tube exists; A determination unit, used to analyze the change of the length of the tubes in all the video frames according to the length and position information of the tubes in each video frame and the timing information of all the video frames, and determine the number of the tubes to be placed according to the analysis result; The processing unit is used to obtain the detection result of the depth of the explosive according to the number of pipes placed and the length information of the pipes; The determining unit is specifically used for: According to the length and position information of the tube in each video frame and the timing information of all video frame images, it is determined that the length of the tube is continuously reduced for a preset number of times, and the number of the next tube is increased by one; When it is determined that the length of the tube decreases to a preset minimum value and the length of the tube suddenly increases to a preset length based on the length and position information of the tube in each video frame and the timing information of all video frame images, the number of the next tube is increased by one; When it is determined based on the length and position information of the tube in each video frame and the timing information of all video frames that the length of the tube remains unchanged within a preset time period, there are other interferences, which are removed to keep the number of tubes unchanged.
6. The device for detecting the depth of explosives based on video according to claim 5, characterized in that: Also includes: The preprocessing unit is used to perform the following preprocessing steps on each of the read video frames after reading a plurality of video frames in the explosive delivery video file at a preset time interval: Each video frame image read is reduced in size according to a preset ratio; Convert each video frame image after the reduction process into a grayscale image to obtain a video frame grayscale image; Each video frame grayscale image is equalized to obtain a video frame grayscale image after equalization.
7. The device for detecting the depth of explosives placed based on video according to claim 6, characterized in that: The pre-processing unit is also used for: Extracting the vertical boundary from the grayscale image of each video frame after equalization processing; Binarization is performed on each equalized video frame grayscale image that has been extracted across the boundary to obtain a binarized video frame grayscale image.
8. The device for detecting the depth of explosives placed based on video according to claim 5, characterized in that: The detection unit is specifically used for: Use Hough transform to find the tube in each video frame in the vertical direction; The length of the tube in each video frame is detected. When the length of the tube is greater than a preset length threshold, it is determined that the tube exists in the video frame. The length and position information of the tube in each video frame where the tube exists is recorded.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 4.
