A method and system for intelligent compression of iron ore video data

By setting the default bit rate and dynamic adjustment for the iron ore video surveillance system, selecting target videos and representative videos for transmission and storage, the problems of transmission and storage efficiency are solved, and the dual goals of high-quality video surveillance and data integrity are achieved.

CN118741127BActive Publication Date: 2024-12-03DASHIQIAO WAFANGGOU IRON ORE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411197829.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-03
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Existing iron ore video surveillance systems have challenges in data transmission and storage, especially the difficulty in balancing transmission bandwidth limitations and security requirements.

Method used

By setting the default bit rate for the camera module, the management module analyzes video data, selects target video and representative video, performs real-time transmission and storage, adjusts the bit rate with dynamic values, and performs multi-level compression processing during storage, to optimize video transmission and Storage efficiency.

Benefits of technology

It realizes that while ensuring the clarity of video, it reduces the amount of video files and storage space, ensures real-time transmission and integrity of monitoring videos, and adapts to data needs in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741127B_ABST
    Figure CN118741127B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent compression method and system for iron ore video data, belonging to the field of video monitoring technology, the method comprising: a camera module records monitoring video, compresses the monitoring video to obtain compressed video, sends the compressed video to a management module at a default bit rate, the management module analyzes the compressed video to obtain an analysis result, and adjusts the default bit rate based on the analysis result; the management module uses a compressed video as a target video and the rest as non-target videos according to the display screen of the display module, and processes the non-target video into a representative video and a main body video; the target video and the representative video are sent to the display module and the storage module, and the main body video is sent to the storage module in the future; the display module displays the received target video and the representative video, and after the storage module receives the main body video, it combines with the representative video to restore and generate the non-target video. The present invention can transmit high-quality monitoring screens for users, and will not delete video information when storing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of video monitoring, and in particular relates to an intelligent compression method and system for iron ore video data. Background Art

[0002] Iron ore mining is an important field of energy and raw material production. Its production environment is complex and changeable, and safety monitoring is crucial. However, the amount of data generated by the iron ore video monitoring system is huge, which poses a severe challenge to storage and transmission. To solve the above problems, the following methods are proposed in the prior art.

[0003] For example, a Chinese patent document with publication number CN116828209A discloses a method and system for transmitting data of intelligent video surveillance in a mine. The method sequentially screens out pixel value types according to the frequency of occurrence of pixel value types in the frame image of the mine surveillance video, controls the screening process by the uniformity of the remaining pixel value types and the information of the screened pixel value types, and completes the classification of the pixel value types. By further analyzing the environmental characteristics of the mine, the adjustment coefficient of each pixel point of the first pixel value type is obtained, and the Huffman weight is adjusted by the adjustment coefficient. A binary tree is constructed using the Huffman weight and the pixel value type and Huffman encoding is performed, so that the obtained monitoring compressed data is transmitted. For another example, a Chinese patent document with publication number CN115396673A discloses a method for compressing and playing security monitoring videos. The method uses the characteristic that the monitoring scene generally remains unchanged for a long time, calculates the distance between the two frames before and after, and regularly discards the image frames that have little change in the time period, and uses conventional video compression methods to store the image frames that have large changes. When the video is played, the linear difference image generation method or the conventional video decompression method is used to play according to different tags.

[0004] The first patent document mentioned above increases the transmission speed by optimizing video encoding, but is limited by the transmission bandwidth. When there are many monitoring points, even if this method is adopted, it may not meet the user's need to watch high-quality mine monitoring videos in real time. The second patent document reduces the space occupied by the video by deleting useless frames, but in mining scenarios, deleting part of the video information may cause security problems, so it is not suitable for mining scenarios. Summary of the invention

[0005] To solve the above problems, the present invention provides an intelligent compression method and system for iron ore video data to solve the problems existing in the above technologies.

[0006] In order to achieve the above-mentioned invention object, the present invention proposes an intelligent compression method for iron ore video data, comprising:

[0007] Setting a default bit rate for camera modules distributed in the mine, the camera modules recording monitoring videos, and compressing the monitoring videos to obtain compressed videos;

[0008] Each of the camera modules sends the compressed video to the management module at the default bit rate, the management module analyzes the compressed video to obtain an analysis result, and adjusts the default bit rate of each of the camera modules based on the analysis result;

[0009] The management module obtains a display screen of the display module, selects one of the compressed videos as a target video according to the display screen, and the unselected compressed videos as non-target videos, and processes the non-target videos into a representative video and a main video;

[0010] The management module sends the target video and the representative video to the display module and the storage module at the current time, and sends the main video to the storage module at a future time;

[0011] The display module displays the received target video and the representative video. After receiving the main video, the storage module combines it with the representative video to restore and generate the non-target video.

[0012] Further, analyzing the compressed video to obtain the analysis result includes the following steps:

[0013] The management module divides the compressed video into a plurality of first static images, compares the first static images that belong to the same compressed video and are adjacent in time, and calculates a contrast value D using a first formula, where the first formula is: , wherein m is the number of pixels included in the first static image, Xn and Yn are the pixel values ​​of the nth pixel in the two corresponding first static images, respectively, all the calculated contrast values ​​are added together to obtain the dynamic value of the compressed video, and the dynamic value is used as the analysis result.

[0014] Further, adjusting the default bit rate based on the analysis result comprises the following steps:

[0015] A comparison table of the dynamic value and the default bit rate is established, and the default bit rate of the camera module is adjusted based on the calculated dynamic value.

[0016] Further, processing the non-target video into the representative video and the main video comprises the following steps:

[0017] The non-target video is split into multiple second static images, image recognition is performed on each of the second static images, the landmark objects included therein are obtained, the second static images containing the same landmark objects are divided into the same group, the information value of each second static image is calculated, the second static image with the highest information value is extracted from each of the groups as a representative image, multiple local videos containing the representative images are intercepted from the non-target video, frame extraction is performed on the part of the local video except the representative image, the local video after frame extraction is defined as the representative video, and the non-target video except the local video and the extracted frames are defined as the main body video.

[0018] Further, calculating the information value comprises the following steps:

[0019] Analyze the landmark object, obtain the first eigenvalue, the second eigenvalue and the third eigenvalue of the landmark object, add the first eigenvalue, the second eigenvalue and the third eigenvalue to obtain the evaluation value of the landmark object, add the evaluation values ​​of all the landmark objects in the second static image to obtain the information value of the second static image.

[0020] Further, calculating the first eigenvalue, the second eigenvalue and the third eigenvalue comprises the following steps:

[0021] Acquire a display area of ​​the mark object, take the number of pixels included in the display area as a first value, grayscale the display area, acquire the brightness value of each pixel included therein, acquire the maximum brightness value and the minimum brightness value therein, take the difference between the maximum brightness value and the minimum brightness value as a second value, generate the outline of the mark object based on the display area, if the outline is a closed outline, generate a first flag bit, otherwise generate a second flag bit;

[0022] A scoring table is established, wherein the scoring table includes multiple first ranges and second ranges, and the third eigenvalues ​​corresponding to the first flag bit and the second flag bit, each first range corresponds to the first eigenvalue, and each second range corresponds to the second eigenvalue, based on the first range where the first numerical value of the mark object is located, the first eigenvalue of the mark object is obtained, based on the second range where the second numerical value is located, the second eigenvalue is obtained, and based on the generated flag bit, the third eigenvalue is determined.

[0023] Further, the storage module stores the target video and the non-target video based on the following steps:

[0024] Define the target video and the non-target video already in the storage module as historical videos, sort the historical videos according to the storage time, obtain their own available storage space, set a trigger threshold, and if the available storage space is less than the trigger threshold, compress the historical videos in sequence according to the sorting order until the available storage space is less than or equal to the trigger threshold.

[0025] Furthermore, multiple levels of compression are set in the storage module, and the last historical video compressed in the first compression process is defined as a cutoff video. When the available storage space is less than the trigger threshold again, starting from the cutoff video, the first level of compression level is continued to be used to compress the historical videos in the sorting order. When all the historical videos are compressed by the first level of compression level and the available storage space is still less than the trigger threshold, the second level of compression level is continued to be used for compression based on the compressed historical videos, and this step is repeated until the available storage space is greater than or equal to the trigger threshold.

[0026] Furthermore, when the local video is subjected to frame extraction, the number of extracted frames is the same as the number of the non-target video.

[0027] The present invention also provides an iron ore video data intelligent compression system, which is used to implement the above-mentioned iron ore video data intelligent compression method, and the system comprises:

[0028] A camera module is provided with a default bit rate, the camera module records a surveillance video, compresses the surveillance video to obtain a compressed video, and each camera module sends the compressed video to the management module at the default bit rate;

[0029] A management module, analyzing the compressed video to obtain an analysis result, adjusting the default bit rate of each camera module based on the analysis result, obtaining a display screen of a display module, selecting one of the compressed videos as a target video according to the display screen, and the unselected compressed videos as non-target videos, processing the non-target videos into representative videos and main body videos, sending the target video and the representative video to the display module and the storage module at a current time, and sending the main body video to the storage module at a future time;

[0030] A display module, displaying the received target video and the representative video;

[0031] The storage module receives the main video and combines it with the representative video to restore and generate the non-target video.

[0032] The present invention also discloses a computer storage medium, wherein the computer storage medium stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above-mentioned method.

[0033] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0034] In the present invention, the surveillance videos recorded by each camera module are first transmitted to the management module, which pre-processes the received videos, directly forwards the video images required by the user to the display module, extracts frames and simplifies the video images that are not currently required, and obtains representative videos with a small file size and main body videos with a large file size; the management module then sends the representative video to the display module. Since the representative video file size is small, it ensures that the clarity of the target video is guaranteed while also ensuring that the images taken by the remaining camera modules can be viewed normally. In addition, during periods of relatively idle bandwidth such as night, the management module sends the main body video to the storage module for storage, and the storage module also synthesizes it with the previous representative video, thereby obtaining a surveillance video containing complete information.

[0035] The management module in the present invention also analyzes the videos recorded by the camera modules to determine which camera modules are recording images with a large amount of information and which camera modules are recording video images with a small amount of information, and then adaptively increases or decreases the default bit rate of the camera module according to the amount of recorded information, so that the images with a large amount of information will have greater clarity, and the images with a small amount of information will have lower clarity, thereby reducing the space occupied by the video images in the subsequent storage process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 The present invention is a flowchart of the steps of an intelligent compression method for iron ore video data.

[0037] Figure 2 The present invention is a schematic structural diagram of an intelligent compression system for iron ore video data. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention.

[0039] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0040] like Figure 1 As shown, a method for intelligent compression of iron ore video data includes:

[0041] S1: Setting a default bit rate for camera modules distributed in the mine, the camera modules recording monitoring videos, and compressing the monitoring videos to obtain compressed videos.

[0042] The camera module is a surveillance camera, which is distributed in the mine. When installing the surveillance camera, the default bit rate is set for each surveillance camera according to the experience of the personnel. The larger the default bit rate of the surveillance camera, the higher the clarity and fluency of the recorded video. After recording the surveillance video, it is encoded and transmitted. The encoding method can be selected as MPEG-4 or H264, and the encoded video is defined as compressed video.

[0043] S2: Each camera module sends a compressed video at a default bit rate to the management module, the management module analyzes the compressed video to obtain an analysis result, and adjusts the default bit rate of each camera module based on the analysis result.

[0044] After generating the compressed video, the camera module sends the compressed video to the management module at the default bit rate. The management module analyzes the images in the compressed video, and determines through analysis which compressed video includes the images of the working activities, and then determines which camera module is currently recording the video with a large amount of information. By increasing the default bit rate of such camera modules, the following purpose can be ultimately achieved: the camera modules that are performing working activities in the monitoring area record videos with high quality, and the camera modules in other locations record with lower quality.

[0045] S3: The management module obtains the display screen of the display module, selects one of the compressed videos as the target video according to the display screen, and the unselected compressed videos as non-target videos, and processes the non-target video into a representative video and a main video.

[0046] S4: The management module sends the target video and the representative video to the display module and the storage module at the current time, and sends the main body video to the storage module at a future time.

[0047] S5: The display module displays the received target video and representative video. After receiving the main video, the storage module combines it with the representative video to restore and generate the non-target video.

[0048] The management module determines which camera module's recording screen the user is currently watching by acquiring the display screen of the display module. For the convenience of description, the camera module being watched is defined as the first module, and the remaining camera modules are defined as the second module. The management module sends the compressed video sent by the first module, that is, the target video, directly to the display module for real-time display, so that the user can see a smoother video.

[0049] The non-target video recorded by the second module is not watched by the user, so it is subjected to frame extraction. The video after frame extraction of the non-target video is the representative video, and the extracted frames are combined into the main video. The specific frame extraction method will be introduced later. The management module sends the representative video to the display module for real-time display, so that when the user switches the video screen being watched, there will be no obvious delay in the video screen displayed after the switch, and since the non-target video is subjected to frame extraction, it will occupy less bandwidth.

[0050] Finally, in order to avoid video loss, the management module sends the main video to the storage module during periods of relatively idle bandwidth, such as at night. After receiving the main video, the storage module combines it with the representative video received previously to restore the original non-target video, thereby avoiding the loss of video information caused by frame extraction.

[0051] In the present invention, the surveillance videos recorded by each camera module are first transmitted to the management module, which pre-processes the received videos, directly forwards the video images required by the user to the display module, extracts frames and simplifies the video images that are not currently required, and obtains representative videos with a small file size and main body videos with a large file size; the management module then sends the representative video to the display module. Since the representative video file size is small, it ensures that the clarity of the target video is guaranteed while also ensuring that the images taken by the remaining camera modules can be viewed normally. In addition, during periods of relatively idle bandwidth such as night, the management module sends the main body video to the storage module for storage, and the storage module also synthesizes it with the previous representative video, thereby obtaining a surveillance video containing complete information.

[0052] The management module in the present invention also analyzes the videos recorded by the camera modules to determine which camera modules are recording images with a large amount of information and which camera modules are recording video images with a small amount of information, and then adaptively increases or decreases the default bit rate of the camera module according to the amount of recorded information, so that the images with a large amount of information will have greater clarity, and the images with a small amount of information will have lower clarity, thereby reducing the space occupied by the video images in the subsequent storage process.

[0053] It is particularly noteworthy that the present invention can transmit high-quality monitoring images to users without deleting video information during storage.

[0054] In this embodiment, analyzing the compressed video to obtain the analysis result includes the following steps:

[0055] The management module splits the compressed video into multiple first static images, compares the first static images that belong to the same compressed video and are adjacent in time, and calculates the contrast value D by the first formula. The first formula is: , where m is the number of pixels included in the first static image, Xn and Yn are the pixel values ​​of the nth pixel in the corresponding two first static images, respectively. All the calculated contrast values ​​are added together to obtain the dynamic value of the compressed video, and the dynamic value is used as the analysis result.

[0056] A comparison table of dynamic values ​​and default bit rates is established, and the default bit rate of the camera module is adjusted based on the calculated dynamic values.

[0057] First, the compressed video is split into first static images according to the number of frames, and then adjacent first static images are compared to obtain their contrast values. It can be seen from the first formula that the higher the contrast values ​​of the two first static images, the greater their dissimilarity. By adding all the contrast values ​​calculated based on a compressed video, the dynamic value of the compressed video can be obtained. If the dynamic value is small, it indicates that a large number of pictures in the compressed video have no picture changes. Conversely, if the dynamic value is large, it indicates that a large number of picture changes have occurred in the compressed video.

[0058] The comparison table includes multiple value ranges, each value range corresponds to a default bit rate, and after the dynamic value is calculated, the default bit rate that needs to be adjusted is determined according to the value range in which the dynamic value is located.

[0059] In this embodiment, processing the non-target video into a representative video and an entity video includes the following steps:

[0060] The non-target video is split into multiple second static images, image recognition is performed on each second static image, the landmark object contained therein is obtained, the second static images containing the same landmark object are divided into the same group, the information value of each second static image is calculated, the second static image with the highest information value is extracted from each group as a representative image, multiple local videos containing the representative images are intercepted from the non-target video, the part of the local video except the representative image is frame-extracted, the local video after frame extraction is defined as the representative video, and the part of the non-target video except the local video and the extracted frames are defined as the main body video.

[0061] This embodiment uses a CNN neural network for image recognition, and obtains the landmark objects in each second static image through image recognition. The landmark objects include the outlines of various equipment, human figures, and tools used in the mining process. After identifying the landmark objects included in the second static image, the second static images containing the same landmark objects are divided into a group. For example, the second static images in the same group all include tool A and shovel B. After the groups are divided, the information value of the second static image is calculated based on the appearance of the landmark objects in the image. The specific calculation method of the information value will be introduced later. The larger the information value of the second static image, the more information it contains. The second static image with the largest information value is extracted from the group as the representative image. In particular, the representative image contains a large amount of information and will not be deleted during subsequent frame extraction.

[0062] Afterwards, the non-target video is split into multiple local videos according to the time point when the representative image appears in the non-target video. For example, the video clips of 1 minute before and after the representative image appear are intercepted as local videos, and then the local videos are processed by frame extraction. Here, the frame extraction interval is determined according to the total number of all non-target videos. For example, if there are 10 non-target videos in total, the local video intercepted this time has 30 frames of images, of which the 20th frame is the representative image, then the 1st, 11th, 20th and 21st frames are retained, and the remaining images are extracted. The retained combination is the representative video, and the extracted and uninterrupted parts of the non-target video are used as the main video.

[0063] The calculation of the information value in this embodiment includes the following steps:

[0064] Analyze the landmark object, obtain the first eigenvalue, the second eigenvalue and the third eigenvalue of the landmark object, add the first eigenvalue, the second eigenvalue and the third eigenvalue to obtain the evaluation value of the landmark object, add the evaluation values ​​of all the landmark objects in the second static image to obtain the information value of the second static image.

[0065] Calculating the first eigenvalue, the second eigenvalue, and the third eigenvalue comprises the following steps:

[0066] Get the display area of ​​the mark object, take the number of pixels included in the display area as the first value, grayscale the display area, get the brightness value of each pixel contained therein, get the maximum brightness value and the minimum brightness value therein, take the difference between the maximum brightness value and the minimum brightness value as the second value, generate the outline of the mark object based on the display area, if the outline is a closed outline, generate the first flag bit, otherwise generate the second flag bit.

[0067] A scoring table is established, which includes multiple first ranges and second ranges, and third eigenvalues ​​corresponding to the first flag bit and the second flag bit. Each first range corresponds to a first eigenvalue, and each second range corresponds to a second eigenvalue. Based on the first range where the first numerical value of the marking object is located, the first eigenvalue of the marking object is obtained, and based on the second range where the second numerical value is located, the second eigenvalue is obtained, and based on the generated flag bit, the third eigenvalue is determined.

[0068] Before calculating the information value, first obtain the evaluation value of each marker object. The evaluation value is the sum of the first eigenvalue, the second eigenvalue and the third eigenvalue of each marker object. Specifically, before calculating the three eigenvalues, first obtain the pixel area occupied by the marker object in the second static image, and count the number of pixels included therein, that is, the first value. The larger the first value, the larger the area occupied by the standard object, which means that the more information is contained. The area is grayed to obtain the brightness value of each pixel, and then the maximum brightness value and the minimum brightness value are extracted from it, and the difference between the maximum brightness value and the minimum brightness value is calculated as the second value. Generally, the larger the difference, the more information is included in the area. After obtaining the area where the marker object is located, the area outline can be obtained. If the area outline is closed, it indicates that the complete marker object is contained in the second static image. If the area outline is not closed, it indicates that the complete marker object is not contained in the second static image.

[0069] After obtaining the above-mentioned first value, second value and corresponding flag, the evaluation value of the flag object can be calculated according to the preset scoring table. For example, the first range is 101-200, and the corresponding first eigenvalue is 1, and the corresponding first eigenvalue is 2 for 201-400. By setting the scoring table, the order of magnitude difference between the first value and the second value can be eliminated, so that the finally calculated evaluation value is within a certain numerical range, which is convenient for subsequent comparison. In addition, the third eigenvalue corresponding to the first flag is greater than the third eigenvalue corresponding to the second flag. The evaluation value of the flag object can be obtained by adding the first eigenvalue, the second eigenvalue and the third eigenvalue. The information value of the second static image can be obtained by adding the evaluation values ​​of all the flag objects in the second static image.

[0070] In this embodiment, the storage module stores the target video and the non-target video based on the following steps:

[0071] Define the target videos and non-target videos already in the storage module as historical videos, sort the historical videos according to the storage time, obtain their own available storage space, set the trigger threshold, and if the available storage space is less than the trigger threshold, compress the historical videos in sequence according to the sorting order until the available storage space is less than or equal to the trigger threshold.

[0072] Multiple levels of compression are set in the storage module. The last compressed historical video in the first compression process is defined as the cutoff video. When the available storage space is less than the trigger threshold again, starting from the cutoff video, the first level of compression is continued to be used to compress the historical videos in sorted order. When all historical videos are compressed by the first level of compression and the available storage space is still less than the trigger threshold, the second level of compression is continued to be used for compression based on the compressed historical videos. This step is repeated until the available storage space is greater than or equal to the trigger threshold.

[0073] This example is provided with three compression levels, namely, compression level 1, compression level 2 and compression level 3. The storage module names the currently stored videos as historical videos and sorts them according to the time before and after the storage. The earlier the storage time, the earlier the corresponding sorting. Before the storage module needs to continue to store the video to be stored, it first determines whether the current available storage space is less than the trigger threshold. The trigger threshold is a preset value, such as 5G. When the available storage space is less than 5G, the historical videos are compressed in sequence using compression level 1 to increase the current available storage space. And during the compression process, once the current available storage space is greater than or equal to the trigger threshold, the compression is stopped, and the historical video currently compressed is recorded. When the available storage space needs to be increased again later, the compression will continue from the recorded position. For example, historical videos 1, 2, and 3 are compressed in sequence, and the compression of historical video 2 is stopped. When compression is required again, compression starts from historical video 3.

[0074] In addition, after all historical videos are compressed using compression level 1, if the available storage space is still less than the trigger threshold, start from historical video 1 and use compression level 2, and compress the compressed historical videos again according to the sorting. Repeat this process until the available storage space is greater than or equal to the trigger threshold, or compression can no longer be performed. In the case that compression can no longer be performed, the relevant personnel are reminded to delete the historical videos.

[0075] like Figure 2 As shown, the present invention also provides an iron ore video data intelligent compression system, which is used to implement the above-mentioned iron ore video data intelligent compression method, and the system includes:

[0076] The camera module is set with a default bit rate, the camera module records the monitoring video, compresses the monitoring video to obtain the compressed video, and each camera module sends the compressed video to the management module at the default bit rate;

[0077] A management module analyzes the compressed video to obtain an analysis result, adjusts the default bit rate of each camera module based on the analysis result, obtains a display screen of the display module, selects one of the compressed videos as a target video according to the display screen, and the unselected compressed videos as non-target videos, processes the non-target video into a representative video and a main video, sends the target video and the representative video to the display module and the storage module at a current time, and sends the main video to the storage module at a future time;

[0078] A display module, displaying the received target video and representative video;

[0079] The storage module receives the main video and combines it with the representative video to restore and generate the non-target video.

[0080] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0081] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned 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 specification.

[0082] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0083] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent compression method for iron ore video data, characterized in that: include: Setting a default bit rate for camera modules distributed in the mine, the camera modules recording monitoring videos, and compressing the monitoring videos to obtain compressed videos; Each of the camera modules sends the compressed video to the management module at the default bit rate, the management module analyzes the compressed video to obtain an analysis result, and adjusts the default bit rate of each of the camera modules based on the analysis result; The management module obtains a display screen of the display module, selects one of the compressed videos as a target video according to the display screen, and the unselected compressed videos as non-target videos, and processes the non-target videos into a representative video and a main video; The management module sends the target video and the representative video to the display module and the storage module at the current time, and sends the main video to the storage module at a future time; The display module displays the received target video and the representative video, and the storage module receives the main video and combines it with the representative video to restore and generate the non-target video; Analyzing the compressed video to obtain the analysis result comprises the following steps: The management module divides the compressed video into a plurality of first static images, compares the first static images that belong to the same compressed video and are adjacent in time, and calculates a contrast value D using a first formula, where the first formula is: , wherein m is the number of pixels included in the first static image, Xn and Yn are the pixel values ​​of the nth pixel in the two corresponding first static images, respectively, all the calculated contrast values ​​are added together to obtain the dynamic value of the compressed video, and the dynamic value is used as the analysis result; Processing the non-target video into the representative video and the entity video comprises the following steps: The non-target video is split into multiple second static images, image recognition is performed on each of the second static images, the landmark objects included therein are obtained, the second static images containing the same landmark objects are divided into the same group, the information value of each second static image is calculated, the second static image with the highest information value is extracted from each of the groups as a representative image, multiple local videos containing the representative images are intercepted from the non-target video, frame extraction is performed on the part of the local video except the representative image, the local video after frame extraction is defined as the representative video, and the non-target video except the local video and the extracted frames are defined as the main body video.

2. The method according to claim 1, characterized in that Adjusting the default bit rate based on the analysis result comprises the following steps: A comparison table of the dynamic value and the default bit rate is established, and the default bit rate of the camera module is adjusted based on the calculated dynamic value.

3. The method according to claim 1, characterized in that Calculating the information value includes the following steps: Analyze the marker object to obtain a first feature value, a second feature value, and a third feature value of the marker object, add the first feature value, the second feature value, and the third feature value to obtain an evaluation value of the marker object, and add the evaluation values ​​of all the marker objects in the second static image to obtain the information value of the second static image; Calculating the first eigenvalue, the second eigenvalue, and the third eigenvalue comprises the following steps: Acquire a display area of ​​the mark object, take the number of pixels included in the display area as a first value, grayscale the display area, acquire the brightness value of each pixel included therein, acquire the maximum brightness value and the minimum brightness value therein, take the difference between the maximum brightness value and the minimum brightness value as a second value, generate the outline of the mark object based on the display area, if the outline is a closed outline, generate a first flag bit, otherwise generate a second flag bit; A scoring table is established, wherein the scoring table includes multiple first ranges and second ranges, and the third eigenvalues ​​corresponding to the first flag bit and the second flag bit, each first range corresponds to the first eigenvalue, and each second range corresponds to the second eigenvalue, based on the first range where the first numerical value of the mark object is located, the first eigenvalue of the mark object is obtained, based on the second range where the second numerical value is located, the second eigenvalue is obtained, and based on the generated flag bit, the third eigenvalue is determined.

4. The method according to claim 1, characterized in that The storage module stores the target video and the non-target video based on the following steps: Define the target video and the non-target video already in the storage module as historical videos, sort the historical videos according to the storage time, obtain their own available storage space, set a trigger threshold, and if the available storage space is less than the trigger threshold, compress the historical videos in sequence according to the sorting order until the available storage space is less than or equal to the trigger threshold.

5. The method according to claim 4, characterized in that The storage module is provided with a plurality of compression levels, and the last compressed historical video in the first compression process is defined as a cutoff video. When the available storage space is less than the trigger threshold again, starting from the cutoff video, the first level of compression level is continued to be used to compress the historical videos in the sorting order. When all the historical videos are compressed by the first level of compression level and the available storage space is still less than the trigger threshold, the second level of compression level is continued to be used for compression based on the compressed historical videos, and this step is repeated until the available storage space is greater than or equal to the trigger threshold.

6. An intelligent compression system for iron ore video data, used to implement the method according to any one of claims 1 to 5, characterized in that: include: A camera module is provided with a default bit rate, the camera module records a surveillance video, compresses the surveillance video to obtain a compressed video, and each camera module sends the compressed video to the management module at the default bit rate; A management module analyzes the compressed video to obtain an analysis result. During the analysis, the management module splits the compressed video into a plurality of first static images, compares the first static images that belong to the same compressed video and are adjacent in time, and calculates a contrast value D using a first formula. The first formula is: , wherein m is the number of pixels included in the first static image, Xn and Yn are the pixel values ​​of the nth pixel in the corresponding two first static images, respectively, all the calculated contrast values ​​are added together to obtain the dynamic value of the compressed video, the dynamic value is used as the analysis result, the default bit rate of each camera module is adjusted based on the analysis result, the display screen of the display module is obtained, one of the compressed videos is selected as the target video according to the display screen, and the unselected compressed videos are used as non-target videos, the non-target videos are processed into representative videos and main body videos, and during processing, the non-target videos are split into multiple second static images, and image recognition is performed on each of the second static images to obtain The marker object included therein is used to divide the second static images containing the same marker object into the same group, calculate the information value of each second static image, extract the second static image with the highest information value from each group as a representative image, intercept multiple local videos containing the representative image from the non-target video, extract frames from the part of the local video except the representative image, define the local video after frame extraction as the representative video, define the non-target video except the local video and the extracted frames as the main body video, send the target video and the representative video to the display module and the storage module at the current time, and send the main body video to the storage module at a future time; A display module, displaying the received target video and the representative video; The storage module receives the main video and combines it with the representative video to restore and generate the non-target video.

Citation Information

Patent Citations

  • Security and protection monitoring video compression and playing method

    CN115396673A

  • Underground intelligent video monitoring data transmission method and system

    CN116828209A

  • Video acquisition method and device and electronic equipment

    CN112738418A

  • Dynamic video stream and static image processing and displaying method and system

    CN112766066A

  • Video processing system and method based on Internet of Things

    CN116456057A