A method, apparatus, equipment, and medium for early warning of buffer cabinets.
By analyzing video frames and performing facial detection on the cache cabinet, the problem of not being able to detect unauthorized operations by cache cabinet users in a timely manner was solved, enabling real-time early warning, reducing security risks, and ensuring production safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TOBACCO JIANGSU INDAL
- Filing Date
- 2022-12-30
- Publication Date
- 2026-06-30
AI Technical Summary
In factory production lines, user violations of regulations by cache cabinet users cannot be monitored in real time, leading to increased safety hazards.
By acquiring video frames from the cache cabinet and analyzing the state changes between the video frames, the face detection module is used to determine whether a user has entered and to issue an early warning signal.
It enables real-time monitoring of the cache cabinet, timely detection of user violations, reduction of security risks, and assurance of production safety.
Smart Images

Figure CN116152706B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to an early warning method, device, equipment and medium for use in cache cabinets. Background Technology
[0002] Within the original factory's production line, when the production line requires maintenance or routine upkeep, the user needs to enter the blade buffer cabinet for maintenance or upkeep.
[0003] However, in actual production, users frequently enter the filament buffer cabinets or conveyor belts to perform unauthorized operations without stopping the machine. Because the original factory's work area was large and multiple filament buffer cabinets operated simultaneously, the responsible users could not monitor each filament buffer cabinet in real time to prevent unauthorized operations, nor could they monitor and alarm for all filament buffer cabinets in real time. This increased safety risks and created potential safety hazards. Summary of the Invention
[0004] This invention provides an early warning method, device, equipment, and medium for buffer cabinets, which enables real-time monitoring of the buffer cabinets to determine whether to issue an early warning signal, thereby reducing and increasing safety risks and ensuring production safety.
[0005] In a first aspect, the present invention provides an early warning method for a cache cabinet, the method comprising:
[0006] Acquire at least two video frames to be applied that correspond to the cache cabinet collected in each period;
[0007] For each video frame to be applied, the status information of the buffer cabinet in the current video frame to be applied is determined based on the two adjacent video frames to be selected.
[0008] Obtain the usage status information corresponding to each video frame to be applied within at least two adjacent periods;
[0009] Based on the status information to be used and the preset status quantity threshold, determine whether to call the face detection module, and based on the detection results of the face detection module, determine whether to issue an alert.
[0010] Secondly, the present invention provides an early warning device for a cache cabinet, the device comprising:
[0011] The video frame acquisition module is used to acquire at least two video frames to be applied that correspond to the cache cabinet in each cycle.
[0012] The status information determination module is used to determine the status information of the buffer cabinet in the current video frame to be applied based on the two adjacent video frames to be selected for each video frame to be applied.
[0013] The status information acquisition module is used to acquire the status information to be used for each video frame to be applied within at least two adjacent periods.
[0014] The early warning information determination module is used to determine whether to call the face detection module based on the status information to be used and the preset status quantity threshold, and to determine whether to issue an early warning based on the detection results of the face detection module.
[0015] Thirdly, the present invention provides a data processing electronic device, comprising:
[0016] At least one processor; and
[0017] A memory that is communicatively connected to at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute the early warning method for a cache cabinet according to any embodiment of the present invention.
[0019] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the early warning method for a cache cabinet according to any embodiment of the present invention.
[0020] Fifthly, the present invention provides a computer program product, which includes a computer program that, when executed by a processor, implements an early warning method for a cache cabinet according to any embodiment of the present invention.
[0021] The technical solution provided by this invention involves acquiring at least two video frames corresponding to the cache cabinet within each cycle. Then, for each video frame, based on the two adjacent video frames to be selected, the status information of the cache cabinet in the current video frame is determined. This process then acquires the usage status information corresponding to each video frame within at least two adjacent cycles. Finally, based on the usage status information and a preset status quantity threshold, it is determined whether to invoke the face detection module. Based on the detection results of the face detection module, an alert is issued. This invention solves the problem of untimely detection of user violations during cache cabinet production. It enables real-time monitoring of the cache cabinet to determine whether to issue an alert signal, thereby reducing security risks and ensuring production safety.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 A flowchart illustrating an early warning method applied to a cache cabinet according to Embodiment 1 of the present invention;
[0025] Figure 2 A flowchart illustrating an early warning method applied to a cache cabinet, provided in Embodiment 2 of the present invention;
[0026] Figure 3 This is a schematic diagram of an early warning device applied to a cache cabinet according to Embodiment 3 of the present invention;
[0027] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first preset condition," "second preset condition," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] Example 1
[0031] Figure 1This is a flowchart illustrating an early warning method for a cache cabinet according to Embodiment 1 of the present invention. This embodiment is applicable to situations where an early warning signal is to be issued based on image information of the cache cabinet. The method can be executed by an early warning device applied to the cache cabinet. This device can be implemented in hardware and / or software and can be configured on a computer device, such as a laptop, desktop computer, or smart tablet. Figure 1 As shown, the method includes:
[0032] S110. Obtain at least two video frames to be applied that correspond to the cache cabinet collected in each cycle.
[0033] The buffer cabinet is a production device within the factory used to process blades. When in operation, the buffer cabinet removes impurities from batches of blades through continuous vibration. The video frame to be used is the video frame from which the buffer cabinet's state will be determined.
[0034] Specifically, the duration of a period can be preset, for example, a period of 1 second. Within a preset period, multiple video frames corresponding to the buffer can be generated, and at least two video frames are selected from these multiple video frames as the video frames to be applied.
[0035] Optionally, acquiring at least two video frames to be applied corresponding to the cache cabinet collected in each period includes: acquiring video frames to be selected corresponding to the cache cabinet based on the acquisition device corresponding to the cache cabinet; and determining at least two video frames to be applied from the at least two video frames to be selected collected in the current period according to a preset frame extraction rule.
[0036] The acquisition device can be a camera from a monitor or a dedicated camera for capturing images of the buffer cabinet, as long as it can capture real-time images of the buffer cabinet. Each video frame captured by the acquisition device can be used as a candidate video. The preset frame extraction rule can specify which frame to extract within the current period, or it can randomly extract video frames within each period.
[0037] In practical applications, the acquisition device can be installed anywhere around the buffer cabinet. However, the device is not installed on the cabinet itself, but rather on the hardware surrounding the buffer cabinet to ensure clear capture of video frames from the buffer cabinet. The acquisition device can record video frames containing the buffer cabinet in real time; these frames are selected as candidate video frames. At least two video frames are extracted from the candidate video frames in the current period according to a preset frame extraction rule as the application video frames. For each period, at least two application video frames are extracted.
[0038] For example, the preset period is 1 second. Within 1 second, the acquisition device can capture 25 video frames to be selected. From the above 25 video frames, the 10th and 18th video frames are extracted as the video frames to be applied. For each period, two video frames to be applied are extracted.
[0039] S120. For each video frame to be applied, determine the status information of the buffer cabinet in the current video frame to be applied based on the two adjacent video frames to be selected.
[0040] The status information of the buffer cabinet can include: working status and idle status. When the buffer cabinet is in the working state, the cabinet body is shaking, so the differences between the selected video frames captured by the acquisition equipment are relatively large; when the buffer cabinet is in the idle state, the cabinet body is stationary, and the differences between the selected video frames captured by the acquisition equipment are relatively small.
[0041] Specifically, for each video frame to be applied, two adjacent video frames to be selected are identified. Based on the differences between the video to be applied and its two adjacent video frames, the status information of the current video to be applied is determined.
[0042] For example, the acquisition device captures 25 video frames to be selected within a 1-second period, and extracts the 10th and 18th video frames as the video frames to be applied. At this time, the status information of the 10th video frame is determined based on the differences between the 9th, 10th, and 11th video frames; and the status information of the 18th video frame is determined based on the differences between the 17th, 18th, and 19th video frames.
[0043] S130. Obtain the usage status information corresponding to each video frame to be applied within at least two adjacent periods.
[0044] Among them, the status information to be used corresponds to each video frame to be applied, and the status information to be used is the status information corresponding to the video frame to be applied.
[0045] Specifically, based on the steps described above, at least two video frames to be applied are extracted in each cycle, meaning that two or more adjacent cycles may include multiple video frames to be applied. Further, the usage status information corresponding to these multiple video frames is obtained.
[0046] For example, with a cycle of 1 second, 2 video frames to be processed are acquired in one cycle, 10 video frames to be processed in 5 adjacent cycles are acquired, and the waiting status corresponding to these 10 video frames to be processed is acquired. Based on this, 10 waiting status information can be acquired.
[0047] S140. Based on the status information to be used and the preset status quantity threshold, determine whether to call the face detection module, and determine whether to issue an alert based on the detection results of the face detection module.
[0048] The preset threshold for the number of states is a pre-defined value. The state information to be used can include both idle and working states. If the number of working states exceeds the preset threshold, the cache cabinet is considered to be in a working state for the corresponding time period. The face detection module is a pre-configured module used to detect whether there is a user in the current environment.
[0049] Specifically, when the working status in the pending status information exceeds a preset threshold, the cache cabinet is considered to be in working status for the corresponding duration, at which point the face detection module can be invoked. During the invocation of the face detection module, the moment of invocation is recorded, and the corresponding video frame is used as the input signal for the face detection module. The module detects whether a user is present in the current video frame. If the face recognition result shows user information in the current video frame, it is considered that a user has entered the cache cabinet, and an alert is issued. In this way, the system can detect whether a user has entered the cache cabinet every at least two adjacent cycles, and can promptly issue an alert signal when a security risk is detected.
[0050] For example, a cycle is 1 second, and 10 pending status information are acquired within 5 seconds. The preset threshold for the number of statuses can be 1. When one of the 10 pending status information is in a working state, the face detection module is invoked. If the face detection module indicates that a user has entered the cache cabinet, an alert is issued at this time.
[0051] Optionally, the early warning includes at least one of the following methods: reporting the early warning information to the target terminal device; reporting including at least one of email, voice call and information push; or feeding back the early warning information to the target monitoring system for processing based on the responsible user corresponding to the target monitoring system.
[0052] The warning information may include the sequence number of the cache cabinet where the safety hazard occurred, allowing for quick location of the necessary equipment based on the sequence number. The target terminal device can be a mobile phone, smartwatch, tablet, or computer. The target monitoring system is a pre-configured device capable of feeding back warning signals. The responsible user can be any user, generally understood as the factory's safety supervisor.
[0053] In this embodiment, when the cache cabinet is detected to be in operation and a user enters it, an early warning signal can be issued. The warning signal can be sent to the mobile device held by the responsible user via email, voice call, or push notification. Alternatively, the warning information can be fed back to the target monitoring system; for example, the target monitoring system can issue an alarm upon receiving the warning information. Upon receiving the alarm, the responsible user can promptly go to the specific location of the cache cabinet with the potential safety hazard and handle the situation on-site.
[0054] In practical applications, the entire process of risk monitoring for cache cabinets can be recorded and backed up. For example, the recorded content may include image information of the cache cabinets, early warning information, and images of on-site handling by the user.
[0055] The above technical solution acquires at least two video frames corresponding to the cache cabinet within each cycle. Then, for each video frame, based on the two adjacent video frames to be selected, the state information of the cache cabinet in the current video frame is determined. This process then acquires the usage status information corresponding to each video frame within at least two adjacent cycles. Finally, based on the usage status information and a preset status quantity threshold, it is determined whether to invoke the face detection module. Based on the detection results of the face detection module, an alert is issued. This invention solves the problem of untimely detection of user violations during cache cabinet production. It enables real-time monitoring of the cache cabinet to determine whether to issue an alert signal, thereby reducing safety risks and ensuring production safety.
[0056] Example 2
[0057] Figure 2 This is a flowchart of a data processing method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further refines the content corresponding to S120-S140 of the aforementioned embodiments. This embodiment can be combined with various optional solutions from one or more of the above embodiments. For example... Figure 2 As shown, the method includes:
[0058] S210. Obtain at least two video frames to be applied that correspond to the cache cabinet collected in each cycle.
[0059] S220. Obtain the preceding and following video frames adjacent to the current video frame to be applied.
[0060] For example, suppose the current video frame to be applied is the 5th video frame of the corresponding period content. Then the preceding video frame to be selected adjacent to the current video frame to be applied is the 4th video frame of the corresponding period content, and the following video frame to be selected adjacent to the current video frame to be applied is the 6th video frame of the corresponding period content. Obtain the 4th and 6th video frames within the current period.
[0061] S230. Determine the first depth change information of the storage based on the current video frame to be applied and the previous video frame to be selected; and determine the second depth change information of the storage based on the current video frame to be applied and the next video frame to be selected.
[0062] In this embodiment, depth information can characterize the distance between the camera and the captured image. The closer an object is to the camera, the smaller its depth information; the farther an object is from the camera, the larger its depth information. The depth images of the storage objects corresponding to the current video frame to be applied, the previous video frame to be selected, and the next video frame to be selected are determined. Then, the depth value corresponding to each point in the depth image of each storage object is calculated, and the average depth value of the depth images of each storage object is calculated. Finally, the depth information of the storage object depth image for each video frame is obtained.
[0063] In practical applications, the depth information of the current video frame to be applied, the previous video frame to be selected, and the next video frame to be selected are calculated separately. The first depth change information is obtained by subtracting the depth information of the current video frame to be applied from the depth information of the previous video frame to be selected; the second depth change information is obtained by subtracting the depth information of the current video frame to be applied from the depth information of the next video frame to be selected.
[0064] S240. If both the first depth change information and the second depth change information meet the preset depth change threshold, then the status information is determined to be in working state.
[0065] The preset depth change threshold is a pre-set value. When the first depth change information or the second depth change information is greater than the preset depth change threshold, the status information is determined to be in working state.
[0066] In this embodiment, if the first depth change information is greater than a preset depth change threshold, or if the second depth change information is greater than a preset depth change threshold, then the status information of the current video frame to be applied is determined to be in a working state.
[0067] For example, if the first depth change information is 4, the first depth change information is 6, and the preset depth change threshold is 5, then the status information of the current video frame to be applied is in the working state. Alternatively, if the first depth change information is 7, the first depth change information is 6, and the preset depth change threshold is 5, then the status information of the current video frame to be applied is in the working state.
[0068] Optionally, if neither the first depth change information nor the second depth change information meets the preset depth change threshold, the status information is determined to be in an idle state and feedback is provided.
[0069] In this embodiment, if the first depth change information is less than a preset depth change threshold, and the second depth change information is less than the preset depth change threshold, then the status information of the current video frame to be applied is determined to be in an idle state, and then the status information of the current video frame to be applied is fed back to the control terminal.
[0070] For example, if the first depth change information is 2, the first depth change information is 1, and the preset depth change threshold is 3, then the status information of the current video frame to be applied is idle.
[0071] S250: Obtain the usage status information of each video frame to be applied within multiple adjacent periods.
[0072] In this embodiment, judging the pending status information of each video frame to be applied in each cycle would require a relatively large amount of computation, and the obtained status information would not be representative. Furthermore, determining whether to call the face detection module based on the pending status information of each video frame to be applied in each cycle would double the computational load, impacting computer performance. Therefore, it is possible to obtain the pending status information of each video frame to be applied in multiple adjacent cycles, thus obtaining multiple pending status information sets to determine whether to call the face detection module.
[0073] S260. Based on the pending status information and the preset status quantity threshold, determine whether to call the face detection module. If the number of pending status information in the working state is greater than the preset status quantity threshold, then call the face detection module.
[0074] The facial detection module's shooting range corresponds to the buffer cabinet, allowing it to capture images inside. If a user enters the buffer cabinet, the facial detection module can detect it and provide feedback.
[0075] In this embodiment, multiple pending status information can be obtained. If the number of pending status information that is in the working state is greater than the preset status number threshold, it indicates that the cache cabinet is in the working state during the corresponding time period. It is necessary to detect whether a user has entered the cache cabinet. At this time, the face detection module can be called.
[0076] S270. The face detection module captures a first image corresponding to the cache cabinet, and if it is determined that the first image includes facial information, an early warning is issued.
[0077] The first image includes an image of the cache cabinet. Based on the first image, it can be determined whether the user's facial information was present in the cache cabinet at the time the first image was captured. The facial information is the image content corresponding to the user's face.
[0078] In this embodiment, the face detection module can capture a first image corresponding to the cache cabinet. When the first image contains facial information, it indicates that a user has entered the cache cabinet in working condition and is performing unauthorized operations. At this time, an early warning signal can be issued so that the responsible user can handle the situation in a timely manner and effectively avoid security risks.
[0079] The above technical solution first acquires at least two video frames corresponding to the cache cabinet within each cycle. Then, it acquires the preceding and following video frames adjacent to the current video frame. Based on these frames, it determines the first depth change information of the storage device and the second depth change information. If either the first or second depth change information meets a preset depth change threshold, the device is determined to be in a working state. If neither meets the threshold, the device is determined to be in an idle state. The system acquires the usage status information of each video frame within multiple adjacent cycles. If the number of working states exceeds a preset threshold, the face detection module is invoked. Finally, the face detection module captures a first image corresponding to the cache cabinet. If the first image includes facial information, an alert is issued. This invention achieves real-time monitoring of the cache cabinet to determine whether to issue an alert signal, thereby reducing safety risks and ensuring production safety.
[0080] Example 3
[0081] Figure 3 This is a schematic diagram of a pre-warning device for a buffer cabinet provided in Embodiment 3 of the present invention. This device can execute the pre-warning method for a buffer cabinet provided in this embodiment of the present invention. The device includes: a video frame acquisition module 310, a status information determination module 320, a status information acquisition module 330, and a pre-warning information determination module 340.
[0082] The video frame acquisition module 310 is used to acquire at least two video frames to be applied that correspond to the buffer cabinet in each cycle.
[0083] The status information determination module 320 is used to determine the status information of the buffer cabinet in the current video frame to be applied based on the two adjacent video frames to be selected for each video frame to be applied.
[0084] The status information acquisition module 330 is used to acquire the status information to be used corresponding to each video frame to be applied within at least two adjacent periods;
[0085] The warning information determination module 340 is used to determine whether to call the face detection module based on the status information to be used and the preset status quantity threshold, so as to determine whether to issue a warning based on the detection results of the face detection module.
[0086] Based on the above technical solutions, the video frame acquisition module 310 includes: a video frame acquisition unit to be selected and a video frame determination unit to be applied.
[0087] The video frame acquisition unit is used to acquire the video frame to be selected corresponding to the cache cabinet based on the acquisition device corresponding to the cache cabinet.
[0088] The video frame determination unit is used to determine at least two video frames to be applied from at least two video frames to be selected collected in the current period according to a preset frame extraction rule.
[0089] Based on the above technical solutions, the status information determination module 320 includes: a video frame acquisition unit, a first change information determination unit, a second change information determination unit, and a working status determination unit.
[0090] The video frame acquisition unit is used to acquire the previous and next video frames to be selected adjacent to the current video frame to be applied.
[0091] The first change information determining unit is used to determine the first depth change information of the storage based on the current video frame to be applied and the previous video frame to be selected; and,
[0092] The second change information determination unit is used to determine the second depth change information of the storage based on the current video frame to be applied and the next video frame to be selected.
[0093] The working state determination unit is used to determine the state information as working state if both the first depth change information and the second depth change information meet the preset depth change threshold.
[0094] Based on the above technical solutions, the status information determination module 320 is also used to determine the status information as idle and provide feedback if neither the first depth change information nor the second depth change information meets the preset depth change threshold.
[0095] Based on the above technical solutions, the status information acquisition module 330 includes: a status information acquisition unit to be used and a face detection module invocation unit.
[0096] The pending status information acquisition unit is used to acquire the pending status information of each video frame to be applied within multiple adjacent periods;
[0097] The face detection module invocation unit is used to determine whether to invoke the face detection module based on the pending state information and the preset state quantity threshold, including: if the number of pending state information that is in the working state is greater than the preset state quantity threshold, then the face detection module is invoked; wherein, the shooting range of the face detection module corresponds to the buffer cabinet.
[0098] Based on the above technical solutions, the early warning information determination module 340 is further used to capture a first image corresponding to the cache cabinet based on the face detection module, and to issue an early warning if the first image includes facial information.
[0099] Based on the above technical solutions, the early warning device applied to the cache cabinet is also used to report early warning information to the target terminal device; the reporting includes at least one of email, voice call and information push; and the early warning information is fed back to the target monitoring system for processing based on the responsible user corresponding to the target monitoring system.
[0100] The technical solution provided by this invention involves acquiring at least two video frames corresponding to the cache cabinet within each cycle. Then, for each video frame, based on the two adjacent video frames to be selected, the status information of the cache cabinet in the current video frame is determined. This process then acquires the usage status information corresponding to each video frame within at least two adjacent cycles. Finally, based on the usage status information and a preset status quantity threshold, it is determined whether to invoke the face detection module. Based on the detection results of the face detection module, an alert is issued. This invention solves the problem of untimely detection of user violations during cache cabinet production. It enables real-time monitoring of the cache cabinet to determine whether to issue an alert signal, thereby reducing security risks and ensuring production safety.
[0101] The data processing apparatus provided in this disclosure can execute the video determination method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0102] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0103] Example 4
[0104] Figure 4This is a schematic diagram of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0105] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0106] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0107] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as road surface recognition methods.
[0108] In some embodiments, the road surface recognition method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the road surface recognition method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the road surface recognition method by any other suitable means (e.g., by means of firmware).
[0109] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0110] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0111] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0112] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0113] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0114] A computing system may include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is established by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within the cloud computing service system, addressing the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability. It should be understood that various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of this invention are achieved, and this is not limited herein. The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An early warning method applied to a cache cabinet, characterized in that, include: Acquire at least two video frames to be applied that correspond to the cache cabinet collected in each period; For each video frame to be applied, obtain the preceding and following video frames adjacent to the current video frame to be applied. Based on the current video frame to be applied and the previous video frame to be selected, determine the first depth change information of the storage; as well as, The second depth change information of the storage is determined based on the current video frame to be applied and the next video frame to be selected; If the first depth change information or the second depth change information is greater than the preset depth change threshold, then the status information is determined to be in working state; If both the first depth change information and the second depth change information are less than the preset depth change threshold, then the status information is determined to be in an idle state. Obtain the usage status information corresponding to each video frame to be applied within at least two adjacent periods; Based on the pending status information and the preset status quantity threshold, determine whether to call the face detection module, and determine whether to issue an alert based on the detection results of the face detection module; The early warning includes at least one of the following methods: The warning information is reported to the target terminal device; the reporting includes at least one of email, voice call and information push; wherein, the warning information includes the serial number value corresponding to the cache cabinet where the security risk occurred, so as to quickly locate the location to be moved based on the serial number value; The warning information is fed back to the target monitoring system for processing based on the responsible user corresponding to the target monitoring system.
2. The method according to claim 1, characterized in that, The acquisition of at least two video frames to be applied corresponding to the cache cabinet collected in each period includes: Based on the acquisition device corresponding to the cache cabinet, acquire the video frames to be selected corresponding to the cache cabinet; According to the preset frame extraction rules, at least two video frames to be applied are determined from at least two video frames to be selected in the current period.
3. The method according to claim 1, characterized in that, The step of obtaining the usage status information corresponding to each video frame to be applied within at least two adjacent periods includes: Obtain the usage status information of each video frame to be applied within multiple adjacent periods; Accordingly, determining whether to invoke the face detection module based on the pending state information and a preset state quantity threshold includes: If the number of the pending status information that is in a working state is greater than the preset status number threshold, then the face detection module is invoked; The shooting range of the face detection module corresponds to the cache cabinet.
4. The method according to claim 1, characterized in that, The process of determining whether to issue a warning based on the detection results of the facial detection module includes: The first image corresponding to the cache cabinet is captured by the face detection module, and an early warning is issued if it is determined that the first image includes facial information.
5. An early warning device applied to a cache cabinet, characterized in that, include: The video frame acquisition module is used to acquire at least two video frames to be applied that correspond to the cache cabinet in each cycle. The status information determination module is used to determine the status information of the cache cabinet in the current video frame to be applied, based on the two adjacent video frames to be selected. The status information acquisition module is used to acquire the status information to be used for each video frame to be applied within at least two adjacent periods. The early warning information determination module is used to determine whether to call the face detection module based on the information to be used and a preset threshold for the number of states, so as to determine whether to issue an early warning based on the detection results of the face detection module. The status information determination module includes: The video frame acquisition unit is used to acquire the previous and next video frames to be selected adjacent to the current video frame to be applied. The first change information determining unit is configured to determine the first depth change information of the storage based on the current video frame to be applied and the previous video frame to be selected; and, The second change information determining unit is used to determine the second depth change information of the storage based on the current video frame to be applied and the next video frame to be selected; The working state determination unit is used to determine the state information as working state if the first depth change information or the second depth change information is greater than a preset depth change threshold; and to determine the state information as idle state if both the first depth change information and the second depth change information are less than the preset depth change threshold. The early warning device is also used to: report early warning information to the target terminal device; the reporting includes at least one of email, voice call and information push; wherein, the early warning information may include the serial number value corresponding to the cache cabinet where the security risk occurred, so that the location to be moved can be quickly located according to the serial number value; and feed the early warning information back to the target monitoring system, so that it can be processed based on the responsible user corresponding to the target monitoring system.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the early warning method applied to the cache cabinet as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the early warning method applied to a cache cabinet as described in any one of claims 1-4.