Production workshop video monitoring method, device, electronic equipment and computer medium

Through video monitoring and coding processing technology, the displacement information of production workshop equipment can be detected in real time, which solves the problem of low efficiency of equipment patrol detection in the existing technology, realizes the timely detection of abnormal equipment, and ensures the stable operation of production workshop equipment.

CN118354145BActive Publication Date: 2024-10-01SHENZHEN MTN ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410774819.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The existing production workshop equipment inspection and inspection efficiency is low, making it difficult to detect abnormal equipment in time, affecting production progress.

Method used

Use video surveillance methods to obtain surveillance videos of production workshop equipment, perform encoding processing to generate encoded surveillance videos, calculate the displacement information between two frames of images, and add it to the video. After decoding, the displacement information that meets the preset conditions is filtered out. , generate device offset information, and issue alarms in response to alarm conditions.

Benefits of technology

It improves equipment detection efficiency and can detect equipment deviation in time to ensure smooth production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118354145B_ABST
    Figure CN118354145B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a production workshop video monitoring method, device, electronic device and computer medium. A specific implementation of the method includes: adding each generated image displacement information to the encoded monitoring video to obtain a video encoding data stream; decoding the video monitoring encoded data stream to obtain each decoded video data and each decoded image displacement information; determining the decoded image displacement information that meets the preset conditions in each decoded image displacement information as the target image displacement information to obtain a target image displacement information group; for each target image displacement information in the target image displacement information group, determining each decoded video data corresponding to the target image displacement information as a target video data group; based on the target image displacement information group and the determined target video monitoring data groups, generating the offset information corresponding to the device to be detected. This implementation can improve the detection efficiency of workshop equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of video surveillance of production workshops, and specifically to methods, devices, electronic equipment and computer media for video surveillance of production workshops. Background Art

[0002] In order to ensure the normal operation of the production workshop, the equipment in the workshop is usually inspected and tested. At present, the inspection and testing of the equipment in the workshop is usually carried out in the following way: maintenance personnel regularly inspect and repair the equipment in the workshop.

[0003] However, when the above method is used to inspect the equipment in the workshop, the following technical problems often occur: regular inspections are inefficient and it is difficult to detect abnormal equipment in time, affecting production progress.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0006] Some embodiments of the present disclosure propose a production workshop video monitoring method, device, electronic device and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a production workshop video monitoring method, the method comprising: acquiring a monitoring video of a device to be detected in the production workshop; encoding the monitoring video to generate a coded monitoring video; for each two adjacent frames of monitoring images in the coded monitoring video, based on the two frames of monitoring images, generating image displacement information corresponding to the two frames of monitoring images; adding each generated image displacement information to the coded monitoring video to obtain a video coding data stream; decoding the video monitoring coded data stream to obtain each decoded video data and each decoded image displacement information; determining the decoded image displacement information that meets a preset condition in each decoded image displacement information as a target image displacement information group, to obtain a target image displacement information group; for each target image displacement information in the target image displacement information group, determining each decoded video data corresponding to the target image displacement information as a target video data group; based on the target image displacement information group and the determined each target video monitoring data group, generating offset information corresponding to the device to be detected; in response to determining that the offset information meets the alarm condition, controlling the associated device alarm device to emit an alarm prompt sound.

[0008] In a second aspect, some embodiments of the present disclosure provide a production workshop video surveillance device, including: an acquisition unit, configured to acquire surveillance video of equipment to be detected in the production workshop; an encoding unit, configured to encode the surveillance video to generate an encoded surveillance video; a first generating unit, configured to generate image displacement information corresponding to two frames of surveillance images for each adjacent two frames of surveillance images in the encoded surveillance video based on the two frames of surveillance images; an adding unit, configured to add the generated image displacement information to the encoded surveillance video to obtain a video encoding data stream; a decoding unit, configured to decode the video surveillance encoded data stream to obtain each decoded video data and each decoded image. The device comprises a first determining unit, configured to determine the decoded image displacement information satisfying a preset condition among the decoded image displacement information as the target image displacement information, and obtain a target image displacement information group; the second determining unit, configured to determine, for each target image displacement information in the target image displacement information group, the decoded video data corresponding to the target image displacement information as the target video data group; the second generating unit, configured to generate the offset information corresponding to the device to be detected based on the target image displacement information group and the determined target video monitoring data groups; the control unit, configured to control the associated device alarm device to emit an alarm prompt sound in response to determining that the offset information meets the alarm condition.

[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0011] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the production workshop video monitoring method of some embodiments of the present disclosure, the detection efficiency of the workshop equipment can be improved. Specifically, the reason why the regular inspection is inefficient and it is difficult to find abnormal equipment in time is that it affects the production progress. Based on this, the production workshop video monitoring method of some embodiments of the present disclosure first obtains the monitoring video of the equipment to be detected in the production workshop; and encodes the monitoring video to generate an encoded monitoring video. In this way, the compression of the above-mentioned monitoring video can be achieved, and the video monitoring data can be better transmitted. Secondly, for each adjacent two frames of monitoring images in the encoded monitoring video, based on the two frames of monitoring images, image displacement information corresponding to the two frames of monitoring images is generated. Then, the generated image displacement information is added to the encoded monitoring video to obtain a video encoding data stream. In this way, the image displacement information can be added to the corresponding monitoring image. Thirdly, the video monitoring encoded data stream is decoded to obtain each decoded video data and each decoded image displacement information. Afterwards, the decoded image displacement information that meets the preset conditions in the decoded image displacement information is determined as the target image displacement information to obtain the target image displacement information group. Thus, the decoded image displacement information can be screened to reduce the complexity of subsequent processing. Then, for each target image displacement information in the target image displacement information group, each decoded video data corresponding to the target image displacement information is determined as a target video data group. Finally, based on the target image displacement information group and each determined target video monitoring data group, the offset information corresponding to the device to be detected is generated; in response to determining that the offset information meets the alarm condition, the associated device alarm device is controlled to emit an alarm prompt sound. Thus, the offset information of the entire device to be detected can be obtained. Also because the video monitoring data used to generate the image displacement information is uncoded video monitoring data, the accuracy of the obtained image displacement information is relatively high. Thus, it is possible to analyze whether the device is offset during operation, so as to facilitate timely correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0013] Figure 1 is a flow chart of some embodiments of the production workshop video monitoring method according to the present disclosure;

[0014] Figure 2 is a schematic diagram of the structure of some embodiments of the production workshop video monitoring device according to the present disclosure;

[0015] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0017] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0021] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0022] Figure 11 is a flowchart of some embodiments of the production workshop video monitoring method according to the present disclosure. 100 of some embodiments of the production workshop video monitoring method according to the present disclosure is shown. The production workshop video monitoring method includes the following steps:

[0023] Step 101, obtaining monitoring video of the equipment to be tested in the production workshop.

[0024] In some embodiments, the execution subject (e.g., a computing device) of the production workshop video monitoring method can obtain monitoring videos of the equipment to be detected in the production workshop from the camera device by wired connection or wireless connection. The camera device can be a camera device for monitoring the equipment to be detected in the production workshop. For example, the camera device can be a camera. The equipment to be detected can be equipment running in the production workshop. For example, the equipment to be detected can be a three-side box folding machine, a two-side box folding machine, an automatic corner padding machine, and an automatic box pressing machine. For another example, the equipment to be detected can also be a transport robot in the production workshop.

[0025] Step 102: Encode the surveillance video to generate an encoded surveillance video.

[0026] In some embodiments, the execution subject may encode the surveillance video to generate an encoded surveillance video. The surveillance video may be encoded using a preset video encoding algorithm to generate an encoded surveillance video. For example, the preset encoding algorithm may be an encoding algorithm such as High Efficiency Video Coding (HEVC), MPEG (Moving Picture Experts Group) algorithm, etc.

[0027] Step 103 : for every two adjacent surveillance image frames in the encoded surveillance video, image displacement information corresponding to the two surveillance image frames is generated based on the two surveillance image frames.

[0028] In some embodiments, the execution subject may generate image displacement information corresponding to two frames of surveillance images for each two adjacent frames of surveillance images in the encoded surveillance video based on the two frames of surveillance images. The image displacement information may be a global motion vector between the two frames of surveillance images, which may be used to characterize the position change of pixels between the two frames of surveillance images, and may include an optical flow field and a timestamp.

[0029] In practice, the above execution subject can generate image displacement information corresponding to two frames of monitoring images through the following steps:

[0030] In the first step, the first monitoring image frame of the two monitoring image frames is determined as a reference monitoring image.

[0031] The second step is to determine the image macroblock group corresponding to the reference monitoring image as the reference image macroblock group. The image macroblock may be a macroblock in each monitoring image frame in the above-mentioned coded monitoring video.

[0032] The third step is to determine the reference image macroblocks that meet the preset conditions in the reference image macroblock group as candidate reference macroblocks to obtain a candidate reference macroblock group. The preset condition may be that the macroblock type is 16*16.

[0033] In the fourth step, a target number of candidate reference macroblocks are selected from the candidate reference macroblock groups as target reference macroblock groups. The target number may be 8.

[0034] In the fifth step, the second surveillance image of the two surveillance images is determined as a candidate surveillance image.

[0035] Step 6: Determine the target surveillance image search window based on the preset size corresponding to the reference surveillance image and the candidate surveillance image. The preset size corresponding to the reference surveillance image may be a maximum range that can cover the movement of the reference macroblock. In practice, the execution subject may determine the target surveillance image search window through a three-parameter model based on the preset size corresponding to the reference surveillance image and the candidate surveillance image.

[0036] In the seventh step, the image macroblock group corresponding to the candidate monitoring image is determined as the candidate image macroblock group.

[0037] In the eighth step, each candidate image macroblock in the candidate image macroblock group that satisfies the preset window range condition corresponding to the target monitoring image search window is determined as the target candidate image macroblock group. The preset window range condition may be the same size as the candidate reference macroblock within the coverage of the target monitoring image search window. In practice, the execution entity may determine each candidate image macroblock in the candidate image macroblock group that is within the coverage of the target monitoring image search window and has the same size as the candidate reference macroblock as the target candidate image macroblock group.

[0038] In step 9, for each target reference macroblock in the target reference macroblock group, perform the following processing steps:

[0039] The first processing step is to determine the similarity between the target reference macroblock and each target candidate image macroblock in the target candidate image macroblock group. The similarity between the target reference macroblock and each target candidate image macroblock in the target candidate image macroblock group can be determined by a Euclidean distance formula.

[0040] The second processing step is to determine the target candidate image macroblock that meets the preset similarity condition among the target candidate image macroblocks as the target image macroblock according to the determined matching degrees. The preset similarity condition may be the highest similarity with the target candidate reference macroblock.

[0041] In the third processing step, the position offset of the target image macroblock and the target reference macroblock is determined as the translation amount of the reference monitoring image and the candidate monitoring image. The position offset may be the offset between the coordinates of the target image macroblock and the coordinates of the target reference macroblock. The coordinates may be calculated by taking the first pixel point in the upper left corner of the image frame as the origin, the horizontal right axis of the image frame as the horizontal axis, and the vertical downward axis of the image frame as the vertical axis.

[0042] In the tenth step, the average value of each determined translation amount is determined as the image displacement information.

[0043] Thus, the displacement information between each target reference macroblock in the target reference macroblock group and the corresponding target candidate image macroblock can be obtained, and then the image displacement information between the reference monitoring image and the candidate monitoring image can be accurately obtained. Also, because the image displacement information between each two adjacent frames of monitoring images is obtained by dividing the macroblocks, it is possible to capture a small offset more accurately, thereby improving the accuracy and reliability of the obtained displacement information.

[0044] Step 104: Add the generated displacement information of each image to the encoded surveillance video to obtain a video encoding data stream.

[0045] In some embodiments, the execution subject may add the generated image displacement information to the encoded surveillance video to obtain a video encoding data stream. For example, first, the image displacement information may be encoded into bit stream image displacement data. Afterwards, each bit stream image displacement data may be added to the corresponding frame image in the encoded surveillance video, thereby obtaining a video encoding data stream.

[0046] Step 105: Decode the video surveillance coded data stream to obtain each decoded video data and each decoded image displacement information.

[0047] In some embodiments, the execution subject may decode the video surveillance coded data stream to obtain each decoded video data and each decoded image displacement information.

[0048] In practice, the above-mentioned execution subject can decode the video surveillance coded data stream through the following steps:

[0049] The first step is to decapsulate the video surveillance coded data stream to obtain decapsulated video coded data. The video surveillance coded data stream can be decapsulated using Ffmpeg technology to obtain decapsulated video coded data.

[0050] The second step is to extract the video surveillance data frame and the decapsulated image displacement information bit stream from each frame of the video coded image in the decapsulated video coded data to obtain a video surveillance data frame group and a decapsulated image displacement information bit stream group. The video surveillance data frame may be an image frame in the coded surveillance video. The decapsulated image displacement information bit stream may refer to bit stream image displacement data.

[0051] The third step is to reconstruct each video surveillance data frame in the video surveillance data frame group to obtain each decoded video surveillance data. Each video surveillance data frame in the video surveillance data frame group can be reconstructed by image super-resolution reconstruction technology to obtain each decoded video surveillance data.

[0052] In the fourth step, each of the decapsulated image displacement information bit streams in the decapsulated image displacement information bit stream group is decoded to obtain each decoded image displacement information. Each of the decapsulated image displacement information bit streams in the decapsulated image displacement information bit stream group can be decoded by motion compensation technology to obtain each decoded image displacement information. The decoded image displacement information can be a global motion vector between two adjacent surveillance image frames.

[0053] Step 106: Determine the decoded image displacement information that meets a preset condition among the decoded image displacement information as the target image displacement information to obtain a target image displacement information group.

[0054] In some embodiments, the execution subject may determine the decoded image displacement information satisfying a preset condition among the individual decoded image displacement information as the target image displacement information to obtain a target image displacement information group.

[0055] Step 107: for each target image displacement information in the target image displacement information group, determine each decoded video data corresponding to the target image displacement information as a target video data group.

[0056] In some embodiments, the execution subject may determine, for each target image displacement information in the target image displacement information group, each decoded video data corresponding to the target image displacement information as a target video data group.

[0057] Step 108: Generate offset information corresponding to the device to be detected based on the target image displacement information group and each determined target video monitoring data group.

[0058] In some embodiments, the execution entity may generate the offset information corresponding to the device to be detected based on the target image displacement information group and each determined target video surveillance data group.

[0059] In practice, the above execution entity may generate the offset information corresponding to the device to be detected through the following steps:

[0060] In the first step, each target image displacement information in the target image displacement information group is preprocessed to obtain a preprocessed image displacement information group. The preprocessed image displacement information can represent the target image displacement information after denoising, smoothing and image correction. The preprocessing can include: denoising, smoothing and image correction.

[0061] The second step is to generate offset parameter information corresponding to each preprocessed image displacement information in the preprocessed image displacement information group. The offset parameter information corresponding to the preprocessed image displacement information can be generated by fast Fourier transform. The above offset parameter information may include but is not limited to: amplitude and vibration frequency corresponding to the above preprocessed image displacement information.

[0062] The third step is to integrate the generated offset parameter information and the target video monitoring data groups to generate offset information corresponding to the device to be detected.

[0063] First, the above-mentioned execution subject can regenerate the image displacement information corresponding to the above-mentioned each target video surveillance data group as the displacement information group to be tested through the above-mentioned each target video surveillance data group. The method of regenerating the image displacement information corresponding to the above-mentioned each target video surveillance data group can refer to the specific implementation method of step 103, which will not be repeated here. Secondly, the above-mentioned execution subject can generate the offset parameter information corresponding to each image displacement information to be tested in the above-mentioned displacement information group to be tested through fast Fourier transform as the offset parameter information to be tested. Then, the generated offset parameter information to be tested can be compared with the above-mentioned each offset parameter information through a string matching algorithm to obtain each comparison result. Finally, the offset parameter information with consistent comparison results in the above-mentioned each offset parameter information can be determined as the offset information of the above-mentioned device to be detected, and the offset parameter information with inconsistent comparison results in the above-mentioned each vibration information can be removed.

[0064] Step 109: In response to determining that the offset information meets the alarm condition, controlling the associated device alarm device to emit an alarm prompt tone.

[0065] In some embodiments, the execution subject may control the associated device alarm device to emit an alarm tone in response to determining that the offset information meets the alarm condition. The alarm condition may refer to the offset information including the amplitude and the vibration frequency exceeding the respective set thresholds. The device alarm device may be a warning device for prompting maintenance personnel of abnormal vibration of workshop equipment. For example, the device alarm device may be a speaker.

[0066] Optionally, the surveillance video is frame-processed to generate a surveillance video image set.

[0067] In some embodiments, the execution entity may perform frame processing on the surveillance video to generate a surveillance video image set.

[0068] Optionally, noise reduction processing is performed on the surveillance video image set to generate a noise-reduced surveillance video image set.

[0069] In some embodiments, the execution entity may perform noise reduction processing on the surveillance video image set to generate a noise-reduced surveillance video image set.

[0070] In practice, the execution subject may perform denoising on each surveillance video image in the surveillance video image set by a non-local means algorithm to generate a noise-reduced surveillance video image and obtain a noise-reduced surveillance video image set.

[0071] Optionally, the denoised surveillance video image set is input into a pre-trained target detection model to obtain a target detection result set.

[0072] In some embodiments, the execution subject may input the noise reduction surveillance video image set into a pre-trained target detection model to obtain a target detection result set. One noise reduction surveillance video image corresponds to one target detection result, and the target detection result indicates whether an abnormal target appears in the surveillance video image. The target detection model may be a neural network model for detecting whether an abnormal target appears in the surveillance video image. Abnormal targets may refer to targets such as people who are not wearing designated clothing, fire, and water leaks.

[0073] Optionally, in response to determining that there is a target detection result that meets the abnormal condition in the target detection result set, the associated abnormal object alarm device is controlled to emit an alarm prompt sound.

[0074] In some embodiments, the execution subject may control the associated abnormal object alarm device to emit an alarm tone in response to determining that there is a target detection result that satisfies an abnormal condition in the target detection result set. The abnormal condition may refer to the target detection result indicating that an abnormal target appears in the surveillance video image. The abnormal object alarm device may be a prompt device that prompts the staff that an abnormal target appears in the workshop. For example, the abnormal object alarm device may be a speaker.

[0075] Optionally, the target detection model can be trained by the following steps:

[0076] The first step is to obtain a training data set, which includes: monitoring image sets of similar equipment, monitoring video images, and information on abnormal objects in video images.

[0077] The second step is to select target training data from the training data set. A training data can be randomly selected from the training data set as the target training data.

[0078] In the third step, the monitoring image set of the same type of equipment and the monitoring video image included in the target training data are respectively input into the first initial feature extraction model based on the first attention mechanism included in the initial target detection model to generate the monitoring image feature information set of the same type of equipment and the monitoring video image feature information. Among them, the initial target detection model can be a target detection model whose model has not been trained yet. The target detection model can be a model that generates target detection results. The first initial feature extraction model can be a first feature extraction model whose model has not been trained yet. The first feature extraction model can be a model that extracts image feature information. In practice, the first feature extraction model based on the first attention mechanism can be a Transformer layer. That is, the first feature extraction model can include: a multi-head attention mechanism (Multi-HeadAttention, MultiHead) model and a feedforward neural network (Feedforward Neural Network, FNN) model. The vector dimension corresponding to the Transformer layer is 1024, and the number of multi-head attention is 8. The monitoring images of the same type of equipment in the monitoring image set of the same type of equipment correspond one-to-one to the monitoring image feature information of the same type of equipment in the monitoring image feature information set of the same type of equipment. The monitoring image feature information of the same type of equipment can represent the monitoring image feature information of the same type of abnormal targets. The monitoring image feature information can represent the target feature information of the monitoring image.

[0079] In the fourth step, according to the monitoring image feature information set of similar equipment and the monitoring video image feature information, the second initial feature extraction model based on the second attention mechanism included in the initial target detection model is used to generate attention feature information. Among them, the second initial feature extraction model can be a second feature extraction model whose model has not yet been trained. The attention feature information includes fusion feature information that characterizes the monitoring image feature information set of similar equipment and the monitoring video image feature information. In practice, the second initial feature extraction model based on the second attention mechanism can be a Transformer layer. The vector dimension corresponding to the Transformer layer is 512, and the number of multi-head attention is 2. The monitoring image feature information set of similar equipment and the monitoring video image feature information can be directly input into the second initial feature extraction model based on the second attention mechanism to obtain the attention feature information.

[0080] In the fifth step, the attention feature information is input into the initial abnormal object detection layer included in the initial target detection model to generate an abnormal object detection result. The initial abnormal object detection layer may be an abnormal object detection layer whose model has not yet been trained. The abnormal object detection layer may be a network layer that outputs abnormal target information in the image. For example, the abnormal object detection layer may include a linear layer and an activation function layer. The activation function corresponding to the activation function layer may be a Sigmoid function.

[0081] Step 6: Determine the loss information between the abnormal object detection result and the corresponding video image abnormal object information. The loss information between the abnormal object detection result and the corresponding video image abnormal object information can be determined by a preset loss function. For example, the preset loss function can be a CrossEntropy Loss calculation loss function or a cross entropy loss function.

[0082] Step 7: Determine whether the model training is completed based on the loss information. In response to determining that the loss information is less than a preset value, determine that the model training is completed. In response to determining that the loss information is greater than or equal to the preset value, determine that the model training is not completed.

[0083] In step 8, in response to determining that the model training is completed, the initial target detection model is determined as the trained target detection model.

[0084] Therefore, through the first initial feature extraction model based on the first attention mechanism and the second initial feature extraction model based on the second attention mechanism, the feature information of the monitoring image set and monitoring video image of the same type of equipment can be accurately extracted and fused, thereby improving the accuracy of abnormal target detection.

[0085] Further references Figure 2As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a production workshop video monitoring device. These production workshop video monitoring device embodiments are Figure 1 Corresponding to the method embodiments shown, the production workshop video monitoring device can be specifically applied to various electronic devices.

[0086] like Figure 2 As shown, the production workshop video monitoring device 200 of some embodiments includes: an acquisition unit 201, an encoding unit 202, a first generation unit 203, an adding unit 204, a decoding unit 205, a first determination unit 206, a second determination unit 207, a second generation unit 208 and a control unit 209. Among them, the acquisition unit 201 is configured to acquire the monitoring video of the equipment to be detected in the production workshop; the encoding unit 202 is configured to encode the monitoring video to generate an encoded monitoring video; the first generation unit 203 is configured to generate image displacement information corresponding to two frames of monitoring images for each adjacent two frames of monitoring images in the encoded monitoring video based on the two frames of monitoring images; the adding unit 204 is configured to add the generated image displacement information to the encoded monitoring video to obtain a video encoding data stream; the decoding unit 205 is configured to decode the video monitoring encoded data stream to obtain each decoded video data and each decoded image displacement information; the first determination unit 20 6, configured to determine the decoded image displacement information that meets the preset conditions in the various decoded image displacement information as the target image displacement information, and obtain the target image displacement information group; the second determination unit 207, configured to, for each target image displacement information in the target image displacement information group, determine the various decoded video data corresponding to the target image displacement information as the target video data group; the second generation unit 208, configured to generate the offset information corresponding to the device to be detected based on the target image displacement information group and the determined various target video monitoring data groups; the control unit 209, configured to control the associated device alarm device to emit an alarm prompt sound in response to determining that the offset information meets the alarm condition.

[0087] It is understandable that the units recorded in the production workshop video monitoring device 200 are similar to those in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the production workshop video monitoring device 200 and the units contained therein, and will not be repeated here.

[0088] Reference below Figure 3, which shows a schematic diagram of the structure of an electronic device (e.g., a computing device) 300 suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0089] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 to a random access memory (RAM) 303. In the RAM 303, various programs and task data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0090] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange task data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0091] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0092] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a mission data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such a propagated mission data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0093] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital task data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0094] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a monitoring video of a device to be detected in a production workshop; encodes the monitoring video to generate an encoded monitoring video; for each two adjacent frames of monitoring images in the encoded monitoring video, based on the two frames of monitoring images, generates image displacement information corresponding to the two frames of monitoring images; adds each generated image displacement information to the encoded monitoring video to obtain a video encoding data stream; decodes the video monitoring encoded data stream to obtain each decoded video data and each decoded image displacement information; determines the decoded image displacement information that meets a preset condition in each decoded image displacement information as a target image displacement information group, to obtain a target image displacement information group; for each target image displacement information in the target image displacement information group, determines each decoded video data corresponding to the target image displacement information as a target video data group; based on the target image displacement information group and each determined target video monitoring data group, generates offset information corresponding to the device to be detected; in response to determining that the offset information meets the alarm condition, controls the associated device alarm device to emit an alarm prompt sound.

[0095] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including product-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0097] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising: an acquisition unit, an encoding unit, a first generation unit, an adding unit, a decoding unit, a first determination unit, a second determination unit, a second generation unit and a control unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as a "unit for acquiring monitoring videos of equipment to be detected in a production workshop".

[0098] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0099] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A production workshop video monitoring method, include: Obtain monitoring video of the equipment to be tested in the production workshop; Encoding the surveillance video to generate an encoded surveillance video; For each two adjacent surveillance image frames in the encoded surveillance video, generating image displacement information corresponding to the two surveillance image frames based on the two surveillance image frames; Adding the generated displacement information of each image to the coded monitoring video to obtain a video coding data stream; Decoding the video surveillance coded data stream to obtain each decoded video data and each decoded image displacement information; Determine the decoded image displacement information that meets the preset conditions among the decoded image displacement information as the target image displacement information to obtain a target image displacement information group; For each target image displacement information in the target image displacement information group, determining each decoded video data corresponding to the target image displacement information as a target video data group; Based on the target image displacement information group and each determined target video monitoring data group, generating offset information corresponding to the device to be detected; In response to determining that the offset information meets the alarm condition, the associated device alarm device is controlled to emit an alarm prompt sound.

2. The method according to claim 1, in, The step of generating the offset information corresponding to the device to be detected based on the target image displacement information group and each determined target video monitoring data group includes: Preprocessing each target image displacement information in the target image displacement information group to obtain a preprocessed image displacement information group; For each preprocessed image displacement information in the preprocessed image displacement information group, generating displacement parameter information corresponding to the preprocessed image displacement information; The generated offset parameter information and the target video monitoring data groups are integrated to generate offset information corresponding to the device to be detected.

3. The method according to claim 1, in, The method further comprises: Performing frame processing on the surveillance video to generate a surveillance video image set; Performing noise reduction processing on the surveillance video image set to generate a noise-reduced surveillance video image set; Inputting the denoised surveillance video image set into a pre-trained target detection model to obtain a target detection result set, wherein one denoised surveillance video image corresponds to one target detection result, and the target detection result indicates whether an abnormal target appears in the surveillance video image; In response to determining that there is a target detection result that meets the abnormal condition in the target detection result set, the associated abnormal object alarm device is controlled to emit an alarm prompt sound.

4. The method according to claim 3, in, The performing noise reduction processing on the surveillance video image set to generate a noise-reduced surveillance video image set includes: By using a non-local means algorithm, each surveillance video image in the surveillance video image set is subjected to noise reduction processing to generate a noise-reduced surveillance video image, thereby obtaining a noise-reduced surveillance video image set.

5. A video monitoring device for a production workshop, include: An acquisition unit is configured to acquire monitoring videos of the equipment to be inspected in the production workshop; An encoding unit, configured to perform encoding processing on the surveillance video to generate an encoded surveillance video; A first generating unit is configured to generate image displacement information corresponding to two frames of monitoring images based on each two adjacent frames of monitoring images in the encoded monitoring video; An adding unit, configured to add the generated displacement information of each image to the coded monitoring video to obtain a video coding data stream; A decoding unit, configured to decode the video surveillance coded data stream to obtain each decoded video data and each decoded image displacement information; A first determining unit is configured to determine the decoded image displacement information satisfying a preset condition among the respective decoded image displacement information as the target image displacement information, and obtain a target image displacement information group; A second determining unit is configured to determine, for each target image displacement information in the target image displacement information group, each decoded video data corresponding to the target image displacement information as a target video data group; A second generating unit is configured to generate offset information corresponding to the device to be detected based on the target image displacement information group and each determined target video monitoring data group; The control unit is configured to control the associated device alarm device to emit an alarm tone in response to determining that the offset information meets the alarm condition.

6. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

7. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.