WO2023279716A1 - Device linkage method and apparatus, and device, storage medium, program product and computer program - Google Patents

Device linkage method and apparatus, and device, storage medium, program product and computer program Download PDF

Info

Publication number
WO2023279716A1
WO2023279716A1 PCT/CN2022/076210 CN2022076210W WO2023279716A1 WO 2023279716 A1 WO2023279716 A1 WO 2023279716A1 CN 2022076210 W CN2022076210 W CN 2022076210W WO 2023279716 A1 WO2023279716 A1 WO 2023279716A1
Authority
WO
WIPO (PCT)
Prior art keywords
linkage
trigger
abnormal
abnormal event
image data
Prior art date
Application number
PCT/CN2022/076210
Other languages
French (fr)
Chinese (zh)
Inventor
李龙
黄王爵
刘高卫
库博
熊阅文
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023279716A1 publication Critical patent/WO2023279716A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques

Definitions

  • the present disclosure relates to but not limited to the field of information technology, and in particular relates to a device linkage method, device, device, storage medium, program product and computer program.
  • Embodiments of the present disclosure provide a device linkage method, device, device, storage medium, program product, and computer program.
  • An embodiment of the present disclosure provides a device linkage method, the method including:
  • the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device;
  • the image data including the abnormal event is saved.
  • An embodiment of the present disclosure provides an equipment linkage device, which includes:
  • the first acquisition part is configured to acquire the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device;
  • the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device;
  • the detection part is configured to detect the trigger data based on the abnormal event preset in the linkage strategy, and obtain a detection result;
  • a triggering part configured to trigger the linkage device to acquire image data including the abnormal event in response to the detection result being the detection of the abnormal event
  • a saving section configured to save the image data including the abnormal event.
  • An embodiment of the present disclosure provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements some or all of the steps in the above method when executing the program.
  • An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, part or all of the steps in the above method are implemented.
  • An embodiment of the present disclosure provides a computer program, including computer readable codes.
  • a processor in the computer device implements part or all of the steps in the above method.
  • An embodiment of the present disclosure provides a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the computer program is read and executed by a computer, a part or part of the above method is implemented. All steps.
  • the trigger data transmitted by the trigger device and the linkage strategy set for the trigger device are obtained; the linkage strategy includes at least the preset abnormal event and the linkage device associated with the trigger device; based on the preset exception in the linkage strategy An event is used to detect the trigger data to obtain a detection result; in response to the detection result being an abnormal event detected, the linkage device is triggered to acquire image data including the abnormal event; and the image data including the abnormal event is saved.
  • the trigger data can be detected based on the abnormal event preset in the linkage strategy, and when an abnormal event is detected, the linkage device associated with the trigger device preset in the linkage strategy can be triggered to obtain the image data including the abnormal event, And save the image data.
  • the flexibility of device linkage can be improved by flexibly configuring the abnormal event and the linkage device associated with the trigger device in the linkage strategy, and the image data including the abnormal event can be accurately acquired and saved, which is convenient Playback and analysis of abnormal events.
  • FIG. 1 is a schematic diagram of an implementation flow of a device linkage method provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic flow diagram of an implementation process of a device linkage method provided by an embodiment of the present disclosure
  • FIG. 5A is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure
  • FIG. 5B is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure
  • FIG. 5C is a schematic diagram of functional modules of a device linkage method provided by an embodiment of the present disclosure.
  • FIG. 5D is a schematic diagram of an interactive interface for creating a linkage device group provided by an embodiment of the present disclosure
  • FIG. 5E is a schematic diagram of an interactive interface for selecting linked abnormal events provided by an embodiment of the present disclosure.
  • FIG. 5F is a schematic diagram of an interactive interface for setting a linkage cycle provided by an embodiment of the present disclosure.
  • FIG. 5G is a schematic diagram of a configuration interface of a custom timetable provided by an embodiment of the present disclosure.
  • FIG. 5H is a schematic diagram of an interactive interface for selecting a deep neural network model provided by an embodiment of the present disclosure
  • FIG. 5I is a schematic diagram of a video playback interface of an abnormal event provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of the composition and structure of an equipment linkage device provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a hardware entity of a computer device provided by an embodiment of the present disclosure.
  • first/second in the application documents, add the following explanation.
  • first/second/third are only used to distinguish similar objects and do not mean With regard to the specific ordering of objects, it can be understood that “first/second/third” can be interchanged in specific order or sequential order if allowed, so that the embodiments of the present disclosure described here can operate in a performed in an order other than that shown or described.
  • An embodiment of the present disclosure provides a device linkage method, which can be applied to a platform server and executed by a processor of the platform server.
  • the platform server can be any suitable computer equipment, such as server, intelligent traffic device, camera capture machine, network camera, notebook computer, tablet computer, desktop computer, smart TV, set-top box, mobile device (such as mobile phone, portable video player) , personal digital assistants, dedicated messaging devices, portable game devices) and other devices with data processing capabilities.
  • Fig. 1 is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure. As shown in Fig. 1, the method includes the following steps S101 to S104:
  • Step S101 acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device.
  • the trigger data is any suitable data that can be used to determine whether to trigger device linkage, including but not limited to image data (such as captured images, collected video streams, etc.), audio data, device operation information, etc. or more.
  • the trigger device can be any suitable device capable of obtaining trigger data, including but not limited to image acquisition devices (such as capture cameras, cameras, network cameras, etc.), audio collection devices (such as microphones, etc.), intelligent sensing devices (such as smart traffic devices , sensors for sensing the environment, infrared sensing equipment, etc.), signal detectors for equipment, etc., or one or more of them.
  • the platform server can obtain the trigger data collected by the trigger device and transmitted in real time, or the trigger device can save the collected trigger data, and then transmit the stored trigger data to the trigger device based on the data request of the platform server. limited.
  • the linkage strategy may be any appropriate strategy set for the trigger device, defining or restricting the linkage of the trigger device.
  • the linkage strategy includes at least a preset abnormal event and a linkage device associated with the triggering device.
  • Preset abnormal events are preset abnormal events used to trigger device linkage, for example, preset abnormal objects, abnormal behaviors, abnormal tracks, abnormal scenarios, device alarms, abnormal device operation, device power failure, environmental abnormalities, etc. .
  • the linkage device associated with the trigger device is preset according to the actual scene, any suitable device that needs to be linked with the trigger device in the event of a preset abnormal event, including but not limited to image acquisition equipment, audio acquisition equipment One or more of , alarm device, server, etc.
  • different linkage strategies may be set for each trigger device, or the same linkage strategy may be set for two different trigger devices, which is not limited here.
  • the platform server can be deployed independently, or can be deployed together with the trigger device or linkage device.
  • the triggering device and the linkage device can be the same device or different devices. In the case that the trigger device and the linkage device are not the same device, the trigger device and the linkage device may be installed in the same location area, or may be installed in different location areas, which is not limited here.
  • Step S102 based on the abnormal event preset in the linkage strategy, the trigger data is detected to obtain a detection result.
  • the trigger data may be detected in an appropriate manner to determine whether the abnormal event occurs and obtain the detection result.
  • Detection results may include information indicative of whether an abnormal event has occurred.
  • the detection result may also include relevant information of the abnormal event, such as the start time, end time, and abnormal type of the abnormal event, which are not limited here.
  • the preset abnormal event in the linkage strategy is the preset abnormal behavior
  • the trigger data is the video stream collected by the passing equipment of the subway entrance channel. Based on the preset abnormal behavior, the collected video stream can be detected and detected. result.
  • the detection result may include whether a preset abnormal behavior is recognized in the video stream. When a preset abnormal behavior is identified, the detection result may also include information such as the start time, end time, and associated objects of the abnormal behavior in the video stream.
  • the preset abnormal event in the linkage strategy is the preset abnormal operation of the equipment
  • the trigger data is the operating data of the image acquisition equipment.
  • the operating data of the image acquisition equipment can be detected to obtain the detected
  • the detection result may include whether the image acquisition device is operating abnormally. If the device is operating abnormally, the detection result may also include information such as the start time, end time, and abnormal type of the image acquisition device.
  • Step S103 in response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event.
  • the platform server may trigger the linkage device to acquire image data including the abnormal event.
  • the image data containing the abnormal event may include one or more image frames that can reflect the abnormal event, and may also include a video stream containing the occurrence process of the abnormal event.
  • the image data of the abnormal event may be obtained in an appropriate manner according to the actually detected abnormal event, which is not limited here.
  • the linkage device may be triggered to capture one or more image frames containing the abnormal object.
  • the linked device may be triggered to record a video stream including the abnormal behavior based on the start time and end time of the abnormal behavior.
  • the linkage device may be triggered to capture one or more image frames containing the object of the removed device.
  • Step S104 saving the image data including the abnormal event.
  • the platform server may store the image data including abnormal events in any suitable manner, including but not limited to one or more stored locally on the platform server, in a database or in the cloud, which is not limited here.
  • the trigger data transmitted by the trigger device and the linkage strategy set for the trigger device are obtained; the linkage strategy includes at least the preset abnormal event and the linkage device associated with the trigger device; based on the preset exception in the linkage strategy An event is used to detect the trigger data to obtain a detection result; in response to the detection result being an abnormal event detected, the linkage device is triggered to acquire image data including the abnormal event; and the image data including the abnormal event is saved.
  • the trigger data can be detected based on the abnormal event preset in the linkage strategy, and when an abnormal event is detected, the linkage device associated with the trigger device preset in the linkage strategy can be triggered to obtain the image data including the abnormal event, And save the image data.
  • the flexibility of device linkage can be improved by flexibly configuring the abnormal event and the linkage device associated with the trigger device in the linkage strategy, and the image data including the abnormal event can be accurately acquired and saved, which is convenient Playback and analysis of abnormal events.
  • the linkage device in the linkage strategy includes at least one of the following: an image acquisition device, and a platform server.
  • the linkage device is an image acquisition device.
  • the online video stream may include a real-time video stream collected online by a trigger device, for example, a real-time video stream collected online by a network camera, a live video, and the like.
  • the captured image may be an image captured by the capture machine based on a specific capture strategy, for example, a captured image of a human face, a captured image of a license plate, and the like.
  • the device running information may include, but is not limited to, one or more of the triggering device's running time, power, processor temperature, memory, disk utilization, network connection status, and the like.
  • the image acquisition device may include, but not limited to, one or more of a video recording device, an image capture device, and the like.
  • the trigger data is online video streams, captured images, or equipment operating information
  • the linkage device may be an image acquisition device.
  • the corresponding trigger device is a video capture device, such as a camera, etc.
  • the linkage device is an image capture device, which can include the video capture device as the trigger device, or other images different from the trigger device collection equipment.
  • the corresponding trigger device is an image capture device, such as a traffic device with an image capture function, a capture electronic eye, etc.
  • the linkage device is an image capture device, which may include a video capture device as a trigger device, or Include other image acquisition devices than trigger devices.
  • the corresponding trigger device can be any suitable electronic device, such as a network camera, a traffic device with image capture function, a capture electronic eye, etc., and the linkage device can be any suitable image acquisition device.
  • triggering the linkage device described in step S103 to acquire images including the abnormal event Data including the following steps S111 to S112:
  • Step S111 sending a recording instruction to the image acquisition device
  • Step S112 receiving the image data including the abnormal event sent by the image acquisition device in response to the recording instruction.
  • the image acquisition device may record image data including abnormal events in response to the recording instruction, and send the recorded image data to the platform server.
  • the recording instruction may include any suitable information for instructing the image acquisition device to record image data, including but not limited to the start time and end time of the abnormal event, the pixels of the image data, the type of image data (such as video stream type, image type, etc.), etc.
  • the linkage device when the trigger data is a recorded video stream, the linkage device is the platform server; the triggering of the linkage device described in the above step S103 to obtain the information including the abnormal event
  • the image data includes: step S121, intercepting the image data including the abnormal event from the recorded video stream.
  • the image data including the abnormal event may be intercepted from the video stream.
  • the start time and end time of the abnormal event may be acquired, and image data including the abnormal event may be intercepted from the recorded video stream based on the start time and end time.
  • the image data containing the abnormal event may be identified from the recorded video stream based on the characteristics of the abnormal event, so as to intercept the image data.
  • the linkage strategy also includes a linkage period
  • the method further includes the following step S131 or step S132:
  • Step S131 setting the working time of the trigger device as the linkage period.
  • the linkage period is used to represent the validity period of the linkage strategy.
  • the trigger device By setting the working time of the trigger device as the linkage period, the trigger device only transmits the trigger data during the linkage period, so that the linkage strategy is only valid within the linkage period.
  • the linkage period may include, but not limited to, the date, time point, time period, etc. when the linkage strategy takes effect.
  • the linkage cycle can be the date, time point or period of time that is repeated periodically, for example, from the 1st to the 5th of each month, from Monday to Friday every day, at 8:00 am every day, and from 11:00 to 13:00 every day Wait.
  • the linkage period can also be a non-repeating date, time point, time period, etc., such as May 2021, June 1, 2021, and June 5, 2021 from 10:00 to 11:00, etc.
  • the linkage period may be a full period, that is, the linkage strategy is always valid.
  • Step S132 in response to the occurrence time of the trigger data being within the linkage period, the trigger data is detected based on the abnormal event preset in the linkage strategy.
  • the method further includes: step S141 , discarding the trigger data in response to the occurrence time of the trigger data not within the linkage period.
  • the platform server will not detect the abnormal event of the trigger data.
  • the linkage strategy also includes a linkage period used to characterize the validity period of the linkage strategy.
  • the linkage strategy can only take effect within the linkage period, so that the linkage between the trigger device and the linkage device can be made more accurate, and It can improve the utilization rate of computing resources.
  • the linkage device further includes an alarm device
  • the method further includes the following step S151 or step S152:
  • Step S151 triggering the alarm device to output alarm information in response to the detection result being the detection of the abnormal event.
  • the warning device may include, but is not limited to, a warning indicator light, an audible alarm, an electronic device with a function of receiving information or outputting voice, and the like.
  • Alarm information may include, but not limited to, indicator light signals, alarm bell signals, alarm prompt information, alarm voices, and the like.
  • an appropriate alarm device may be determined according to the actual situation, and the alarm information may be output in an appropriate manner, which is not limited here.
  • Step S152 discarding the trigger data in response to the detection result being that the abnormal event is not detected.
  • the platform server will not trigger the linkage of the linkage device, that is, will not trigger the linkage device to acquire image data.
  • the abnormal event when the trigger data is image data, the abnormal event includes at least one of the following: the object information contained in the image data does not match the preset object information; the first information contained in the image data Does not match the second information; the object information contained in the image data is associated with the preset abnormal attributes.
  • the image data may include but not limited to one or more of the collected image information of the object, the collected image information of the ID card, the collected two-dimensional code image information, and the like.
  • the object information contained in the image data may include but not limited to one or more of the object’s characteristic information, attribute information, identification information, etc., for example, the identity information, appearance characteristics, wearing accessories characteristics, etc.
  • the preset object information may be feature information, attribute information or identification information of the object preset by the user or defaulted by the system.
  • the object information contained in the image data does not match the preset object information, it can be determined that an abnormal event has occurred, for example, the object identification information contained in the image data does not match the preset object identification information, and the image data contains The attribute information of the object does not match the preset attribute information, the identity type of the object contained in the image data does not match the preset identity type, and the time information contained in the QR code image information does not match the preset valid time range. match.
  • the image data may contain the first information and the second information for matching at the same time, wherein the first information and the second information may be any suitable information that needs to be matched in the image data determined according to the actual application scene, and may include but It is not limited to one or more of object attributes, object identifiers, ID card information, pass card identifiers, two-dimensional code information, license plate numbers, and vehicle features.
  • the first information included in the image data does not match the second information, it may be determined that an abnormal event has occurred.
  • the first information and the second information may be the face information of the subject to be matched and the image information of the ID card respectively, and if the face information of the subject included in the image data does not match the image information of the ID card, it may be determined that an abnormal event has occurred .
  • the first information and the second information may be the pass card number and the pass QR code to be matched respectively, and if the pass card identification contained in the image data does not match the pass QR code, it may be determined that an abnormal event has occurred.
  • the first information and the second information may be the license plate number and vehicle features to be matched respectively, and if the license plate number contained in the image data does not match the vehicle features, it may be determined that an abnormal event has occurred.
  • the first information and the second information included in the image data may also be two kinds of object information representing the collected object, namely the first object information and the second object information, for example, the first object information and the second object information.
  • the two object information can be one of the collected image information of the object, the collected image information of the ID card, and the collected two-dimensional code image information, etc., and the image data contains the first object information and the second object information.
  • the objects do not match, it can be determined that an abnormal event has occurred.
  • the first object information and the second object information are the image information of the collected object and the image information of the ID card respectively, the image information of the object represented The object does not match the object represented by the image information of the ID card.
  • the image information represented by the object does not match the object represented by the image information of the two-dimensional code.
  • the first object information and the second object information are the image information of the collected ID card and the image information of the two-dimensional code
  • the image of the ID card The object represented by the information does not match the object represented by the image information of the two-dimensional code.
  • the abnormal attribute may be a preset attribute that indicates an abnormality of the object, for example, the object does not wear a mask, the object has no access permission, and the object has abnormal health status.
  • the object information contained in the image data is associated with the preset abnormal attributes, it can be determined that an abnormal event has occurred.
  • the wearing configuration feature of the object contained in the data indicates that the object is not wearing a mask, the object attribute represented by the two-dimensional code image information contained in the image data matches the preset abnormal attribute, and the time information contained in the two-dimensional code image information matches the preset abnormal attribute. The valid time range set does not match.
  • the abnormal event includes at least one of the following: device hardware failure; device power supply abnormality; device network abnormality; device environment abnormality.
  • device hardware failures may include but are not limited to device removal, forced door opening, door contact timeout, etc.
  • Device power failures may include but not limited to device power failure, device power shortage, Bluetooth module power shortage, etc.
  • Device network abnormalities may include but are not limited to offline devices, limited access to the device network, etc.
  • device environment abnormalities may include but are not limited to camera pollution of passing devices, device attacks, fire alarms in the device environment, etc.
  • An embodiment of the present disclosure provides a device linkage method, which can be executed by a platform server. As shown in Figure 2, the method includes the following steps S201 to S206:
  • Step S201 acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device.
  • Step S202 based on the abnormal event preset in the linkage strategy, the trigger data is detected to obtain a detection result.
  • Step S203 in response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event.
  • Step S204 saving the image data including the abnormal event.
  • the above-mentioned steps S201 to S204 correspond to the above-mentioned steps S101 to S104, and the specific implementation manners of the above-mentioned steps S101 to S104 can be referred to for implementation.
  • Step S205 in response to the configuration operation of the linkage strategy, present the first configuration interface; the first configuration interface is used to set the trigger device, associating the linkage device with the trigger device and setting the trigger device Set the abnormal events to be detected.
  • the trigger device can be configured on the first configuration interface, such as adding a trigger device, updating an associated policy of the trigger device, and the like.
  • the user can configure a suitable trigger device according to the actual application scenario, and configure the associated linkage device and abnormal events to be detected for the trigger device.
  • Step S206 based on the setting operation for the trigger device and the linkage device in the first configuration interface, obtain a linkage policy for the trigger device; wherein, the quantitative relationship between the trigger device and the linkage device includes One of the following: one-to-one, one-to-many, many-to-one, many-to-many.
  • the linkage policy of the trigger device includes preset abnormal events and linkage devices associated with the trigger device. Based on the setting operation for the trigger device and linkage device in the first configuration interface, the preset abnormal event and the linkage device associated with the trigger device can be obtained. , so that the linkage policy for the triggering device can be obtained.
  • a first configuration interface for setting the trigger device, associating the linkage device with the trigger device, and setting the abnormal event to be detected for the trigger device is presented, based on the first
  • the setting operation of the trigger device and the linkage device in the configuration interface can obtain the linkage strategy for the trigger device, where the quantity relationship between the trigger device and the linkage device includes one of the following: one-to-one, one-to-many, many-to-one, Many to many.
  • An embodiment of the present disclosure provides a device linkage method, which can be executed by a platform server. As shown in Figure 3, the method includes the following steps S301 to S304:
  • Step S301 acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device.
  • the trigger data is a video stream
  • the abnormal event includes a preset abnormal scene.
  • the above-mentioned step S301 corresponds to the above-mentioned step S101, and the specific implementation manner of the above-mentioned step S101 can be referred to for implementation.
  • Step S302 based on the abnormal scene preset in the linkage strategy, using a scene model matching the abnormal scene, to detect the video stream, and obtain a detection result indicating whether the abnormal scene is detected.
  • the abnormal scene can be a preset abnormal scene, and a scene model matching the abnormal scene can be pre-configured for each abnormal scene, and the scene model can be an algorithm model customized for the abnormal scene in advance.
  • the scene model can accurately detect abnormal scenes in the video stream, and obtain detection results indicating whether abnormal scenes are detected.
  • Step S303 in response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event.
  • Step S304 saving the image data including the abnormal event.
  • the above-mentioned steps S303 to S304 correspond to the above-mentioned steps S103 to S104, and the specific implementation manners of the above-mentioned steps S103 to S104 can be referred to for implementation.
  • the abnormal event when the trigger data is a video stream, the abnormal event includes a preset abnormal scene, and based on the preset abnormal scene in the linkage strategy, the video stream is detected using a scene model that matches the abnormal scene , to obtain a detection result representing whether the abnormal scene is detected.
  • a scene model that matches the abnormal scene , to obtain a detection result representing whether the abnormal scene is detected.
  • An embodiment of the present disclosure provides a device linkage method, which can be executed by a platform server. As shown in Figure 4, the method includes the following steps S401 to S405:
  • Step S401 acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least preset abnormal events and linkage devices associated with the trigger device.
  • Step S402 based on the abnormal events preset in the linkage strategy, the trigger data is detected to obtain a detection result.
  • Step S403 in response to the detection result being that the abnormal event is detected, the linkage device is triggered to acquire image data including the abnormal event.
  • Step S404 saving the image data including the abnormal event.
  • the above-mentioned steps S401 to S104 correspond to the above-mentioned steps S101 to S104, and the specific implementation manners of the above-mentioned steps S101 to S104 can be referred to for implementation.
  • Step S405 outputting image data including the abnormal event in response to the playback operation on the abnormal event.
  • the image data including the abnormal event may be one or more image frames including the abnormal event, or may be a video stream including the abnormal event.
  • the image data including the abnormal event may be output in any suitable manner, for example, one or more image frames including the abnormal event may be displayed, or a video including the abnormal event may be played flow.
  • image data including the abnormal event may be output in response to a playback operation on the abnormal event.
  • the user can conveniently look back at the image data including the abnormal event acquired by the linkage device after the abnormal event occurs, so as to facilitate the acquisition of on-site information of the abnormal event and facilitate further analysis of the abnormal event.
  • the following describes the application of the device linkage method provided by the embodiments of the present disclosure in actual scenarios.
  • the cooperation and linkage of multiple devices can provide a combined Collaborative applications, through the alarm sent by a trigger device, link other devices to complete the linkage response, which can greatly improve the ability to capture abnormal events.
  • the interconnection and collaborative linkage of multiple devices is quite complicated, and it is necessary to uniformly manage different types of devices and configure corresponding linkage strategies and solutions.
  • the independent operation status of the equipment cannot be affected, and the master-slave linkage mode needs to be configured, that is, the alarm trigger device and the linkage equipment;
  • flexible configuration is required in the dimension of linkage time to determine The time for linkage between devices and the time for each to work independently; finally, it is necessary to classify and process abnormal events from different event dimensions to complete alarms and coordinated responses, thereby improving the accuracy and application value of equipment linkage.
  • the embodiment of the present disclosure provides a device linkage method, which can realize the following functions:
  • abnormal events can include abnormal object recognition, trajectory tracking, abnormal behavior recognition, etc., and can be modeled by using the powerful description ability of deep neural network to obtain a variety of abnormal events prediction and analysis models.
  • the linkage strategy According to the linkage strategy, the trigger time of abnormal events and the recording time set by the system, the precise recording of abnormal events can be completed, and the real-time alarm of abnormal events can be realized, and the playback data can be viewed afterwards.
  • the method can be applied to a platform server, and the platform server can connect and access protocols through Internet of Things devices (such as Open Network Video Interface Forum (Open Network Video Interface Forum, ONVIF), Real Time Streaming Protocol (Real Time Streaming Protocol, RTSP) etc.) to access the network camera (IP Camera, IPC), and unified management with the traffic device and the capture machine, the traffic device, the capture machine or the IPC can be set as the trigger device, and the IPC can also be set as linkage equipment.
  • Internet of Things devices such as Open Network Video Interface Forum (Open Network Video Interface Forum, ONVIF), Real Time Streaming Protocol (Real Time Streaming Protocol, RTSP) etc.
  • IP Camera IP Camera
  • the prediction results of various face, human body and behavior algorithms can be used as trigger events, or the signal of the trigger device itself can be used as trigger events, such as device removal, camera pollution, etc. Create an abnormal event alarm, and trigger the linkage device bound to the trigger device to complete the recording task according to the linkage policy.
  • the linkage policy can bind the trigger device with the linkage device through set rules.
  • the quantity relationship between the mutually bound trigger devices and linkage devices may include one-to-one, one-to-many, many-to-one or many-to-many.
  • the linkage period can also be set by setting a flexible linkage schedule, and the abnormal events to be detected and the alarm events of the equipment can be set. After the linkage policy is set, the detection result of the trigger data can be obtained based on the set linkage policy.
  • Fig. 5A is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure. As shown in Fig. 5A, the method includes the following steps S501 to S505:
  • step S501 a video clip in a video stream is obtained from an IPC.
  • Step S502 use the neural network model to detect abnormal events in the acquired video clips, and obtain the detection results; wherein, the abnormal events are for various parts of scenes and objects (such as the face or body of an animal, such as human face, human body, vehicle, etc.). license plate number), the behavior of the object (behavior of the animal, the behavior of the vehicle), during implementation, according to the set abnormal event, the neural network model pair that matches the abnormal event can be selected from the preset algorithm warehouse Video clips for anomalous event detection.
  • the abnormal events are for various parts of scenes and objects (such as the face or body of an animal, such as human face, human body, vehicle, etc.). license plate number), the behavior of the object (behavior of the animal, the behavior of the vehicle), during implementation, according to the set abnormal event, the neural network model pair that matches the abnormal event can be selected from the preset algorithm warehouse Video clips for anomalous event detection.
  • Step S503 based on the detection result, it is judged whether there is an abnormal event in the video segment.
  • Step S504 when there is an abnormal event in the video clip, according to the linkage strategy of the IPC, trigger the video recording device to record the video, obtain the video data including the abnormal event, and link the alarm device to give an alarm; wherein, the linkage strategy can be Including the linked device associated with the IPC, the linked time, and the abnormal events that need to be linked.
  • Step S505 if there is no abnormal event in the video clip, discard the current video clip.
  • Fig. 5B is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure. As shown in Fig. 5B, the method includes the following steps S511 to S516:
  • Step S511 acquiring device operation information or images captured by the traffic device from the traffic device.
  • Step S512 judging whether there is an abnormal event in the equipment operation information or the captured image.
  • Step S513 if there is no abnormal event in the equipment operation information or the captured image, discard the equipment operation information or the captured image.
  • Step S514 when there is an abnormal event in the device operation information or the captured image, the linkage alarm device outputs alarm information, and judges whether to trigger the linkage strategy based on the linkage strategy of the passing device; during implementation, it can be based on the linkage strategy Including the linkage equipment associated with the traffic equipment, the linkage period, and the abnormal events that need to be linked, and determine whether to trigger the linkage strategy.
  • Step S515 if the linkage strategy is not triggered, the warning information is discarded;
  • Step S5166 when the linkage strategy is triggered, cooperatively trigger the video recording device to perform video recording, and obtain the video data including the abnormal event.
  • a device linkage method may include the following three functional modules: a linkage strategy configuration module 51, a deep neural network analysis module 52, and a recording and playback module 53, wherein, Based on the linkage strategy configuration module, users can set linkage strategies, including creating linkage device groups, setting linkage cycles, and selecting linkage abnormal events; the deep neural network analysis module can output intelligent analysis results based on the set linkage strategy; recording and The playback module can link the video recording device to record video data including the abnormal event when the intelligent analysis result indicates that there is an abnormal event.
  • This module can provide an interactive interface for configuring linkage strategies. Users can configure linkage strategies on this interface, including:
  • FIG. 5D is a schematic diagram of an interactive interface for creating a linked device group provided by an embodiment of the present disclosure.
  • the user can create a linked device group on the interactive interface, including Set the linkage strategy name in the linkage strategy name input box 521, select the traffic device in the traffic device input box 522, and select the recording device in the recording device input box 523, wherein the quantitative relationship between the traffic device and the recording device can be Determine according to the actual situation, such as multi-pass device to single recording device, single-pass device to multi-recording device, etc.
  • FIG. 5E is a schematic diagram of an interactive interface for selecting linked abnormal events provided by an embodiment of the present disclosure.
  • users can select The abnormal events that need to be linked, including the abnormal detection event 531 and the device alarm event 532, can be selected multiple or all.
  • Detect abnormal events are abnormal events determined by detection of video stream data, such as mismatch of person ID, person card, person code, visitor not within the validity period, not within the timetable, invalid ID card, invalid card, invalid QR code, abnormal body temperature, not wearing a mask, no identity check, no health code check, etc.
  • Device alarm events are abnormal events determined based on device operation information, such as device removal, forced door opening, door sensor timeout, password cracking, offline alarm, Bluetooth low power, abnormal connection of thermal imager, camera pollution, non-living attack, fire alarm , Face feature extraction failure, face capture abnormality, camera abnormality, etc.
  • FIG. 5F is a schematic diagram of an interactive interface for setting the linkage cycle provided by the embodiment of the present disclosure. As shown in FIG. 5F, the user can set the linkage cycle in the interactive interface, and support the selection of all periods 541 or a self-defined timetable 542 as the linkage period, wherein, the configuration interface of the self-defined timetable is shown in FIG.
  • This module can analyze the input video stream data, output algorithm analysis results to determine whether abnormal events occur, and trigger abnormal linkage event alarms in the event of abnormal events.
  • the triggers of more abnormal events can be obtained by analyzing the video stream data.
  • FIG. 5H is a schematic diagram of an interactive interface for selecting a deep neural network model provided by an embodiment of the present disclosure. As shown in FIG. 5H , the deep neural network analysis module can provide a large number of deep neural network models 561 for analyzing people in video stream , scenes, etc.
  • structured data analysis such as face recognition, face clustering, image search, mask detection, expression analysis, age analysis, gender analysis, liveness detection, synthetic detection, traffic flow analysis, trajectory analysis, Queuing detection, direction of travel analysis, high-altitude parabolic detection, scene recognition, image review, environmental analysis, text recognition, license plate recognition, document recognition, bill recognition, voice recognition, etc.
  • this module can link video recording equipment to record video data including abnormal events, and can support video playback of abnormal events.
  • FIG. 5I is a schematic diagram of a video playback interface for an abnormal event provided by an embodiment of the present disclosure. As shown in FIG. 5I, the user can select a video segment 571 to be viewed on the video playback interface for playback, and can also enter the time 572, Information such as equipment 573 and abnormal event 574 is used to screen video clips, and video clips are selected from the screened video clips for playback.
  • the intelligent linkage strategy of multiple devices can be used to combine and configure different devices, and the linkage between multiple devices can be realized based on different abnormal events under a set linkage period.
  • the multi-device intelligent linkage strategy can be used to analyze the characteristics of personnel, abnormal behaviors, scene categories, etc. in the video stream, and the multi-device intelligent linkage strategy can be used to complete device alarms and accurate recording, which is convenient for real-time attention to abnormal events Video records of the occurrence of events and accurate search for events afterwards.
  • the device linkage method provided by the embodiment of the present disclosure includes at least the following improvements: 1) In the related art, the linkage task is only completed between devices of the same type. In the embodiment of the present disclosure, it can Comprehensive management and control of various types of equipment to achieve collaborative perception between various types of equipment; 2) In related technologies, the event alarm that is usually linked to a single master-slave equipment is completed.
  • abnormal equipment operation information can be Events and abnormal events of video analysis are detected to trigger event linkage of flexible combination of multiple devices; 3) Devices in related technologies trigger linkage alarms based on a single event. Events are analyzed in parallel, so that linkage alarms can be completed based on multiple running deep neural network models among the same group of devices at the same time.
  • the intelligent linkage strategy of multiple devices is used to enable different devices and views to be managed through a unified platform, and it is no longer necessary to manage different devices through multiple platforms (such as the monitoring platform to manage cameras, the traffic center to manage traffic devices, etc.), Effectively improved the problem of interoperability between cross-platforms.
  • deep learning is used to make the detection of various abnormal events and the triggering of corresponding linkage tasks more accurate, so that the information of abnormal events can be better comprehensively analyzed, and the information of abnormal events can be searched and reviewed more accurately.
  • Video data related to abnormal events is used to make the detection of various abnormal events and the triggering of corresponding linkage tasks more accurate, so that the information of abnormal events can be better comprehensively analyzed, and the information of abnormal events can be searched and reviewed more accurately.
  • Fig. 6 is a schematic structural diagram of a device linkage device provided by an embodiment of the present disclosure.
  • the device linkage device 600 includes: a first acquisition part 610, a detection part 620, a trigger part 630 and a storage part 640, wherein :
  • the first acquisition part 610 is configured to acquire the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device ;
  • the detection part 620 is configured to detect the trigger data based on the abnormal event preset in the linkage strategy, and obtain a detection result;
  • the triggering part 630 is configured to trigger the linkage device to acquire image data including the abnormal event in response to the detection result being the detection of the abnormal event;
  • the saving part 640 is configured to save the image data including the abnormal event.
  • the linkage device in the linkage strategy includes at least one of the following: an image acquisition device, and a platform server.
  • the linkage device is an image acquisition device; the trigger part is further configured to: The image acquisition device sends a recording instruction; and the image data including the abnormal event sent by the image acquisition device in response to the recording instruction is received.
  • the linkage device is the platform server; the trigger part is further configured to: intercept the recorded video stream Image data including the abnormal event is included.
  • the linkage strategy further includes a linkage period
  • the apparatus further includes: a setting part configured to set the working time of the trigger device as the linkage period.
  • the linkage strategy further includes a linkage period
  • the detection part is further configured to: in response to the occurrence of the trigger data within the linkage period, based on the abnormality preset in the linkage strategy An event is used to detect the trigger data.
  • the linkage strategy further includes a linkage period
  • the detection part is further configured to: discard the trigger data in response to an occurrence time of the trigger data not within the linkage period.
  • the linkage device further includes a warning device
  • the apparatus further includes: a warning part configured to: trigger the warning device to output warning information in response to the detection result being that the abnormal event is detected ; or, discarding the trigger data in response to the detection result being that the abnormal event is not detected.
  • the apparatus further includes: a presentation part configured to present the first configuration interface in response to the configuration operation on the linkage strategy; the first configuration interface is used to set the trigger device , associating a linkage device with the trigger device and setting an abnormal event to be detected for the trigger device; the second acquisition part is configured based on the settings for the trigger device and the linkage device in the first configuration interface
  • the operation is to obtain a linkage strategy for the triggering device; wherein, the quantity relationship between the triggering device and the linkage device includes one of the following: one-to-one, one-to-many, many-to-one, and many-to-many.
  • the abnormal event when the trigger data is image data, the abnormal event includes at least one of the following: the object information contained in the image data does not match the preset object information; the first object contained in the image data The information does not match the object represented by the second object information; the object information contained in the image data is associated with preset abnormal attributes.
  • the abnormal event includes at least one of the following: device hardware failure; device power supply abnormality; device network abnormality; device environment abnormality.
  • the abnormal event when the trigger data is a video stream, the abnormal event includes a preset abnormal scene; the detection part is further configured to: based on the preset abnormal scene in the linkage strategy, use The scene model matched with the abnormal scene detects the video stream, and obtains a detection result representing whether the abnormal scene is detected.
  • the apparatus further includes: an output section configured to output image data including the abnormal event in response to a playback operation on the abnormal event.
  • a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course it may also be a unit, a module or a non-modular one.
  • the above device linkage method is implemented in the form of software function modules and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
  • the essence of the technical solution of the embodiments of the present disclosure or the part that contributes to the related technology can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read-only memory (Read Only Memory, ROM), magnetic disk or optical disk.
  • embodiments of the present disclosure are not limited to any specific combination of hardware and software.
  • An embodiment of the present disclosure provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the steps in the above method when executing the program.
  • An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
  • the computer readable storage medium may be transitory or non-transitory.
  • An embodiment of the present disclosure provides a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, a part or part of the above method is implemented. All steps.
  • the computer program product can be specifically realized by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. Wait.
  • An embodiment of the present disclosure provides a computer program, including computer readable codes.
  • a processor in the computer device implements part or all of the steps in the above method.
  • FIG. 7 is a schematic diagram of a hardware entity of a computer device in an embodiment of the present disclosure.
  • the hardware entity of the computer device 700 includes: a processor 701, a communication interface 702, and a memory 703, wherein:
  • Processor 701 generally controls the overall operation of computer device 700 .
  • the communication interface 702 enables the computer device to communicate with other terminals or servers through the network.
  • the memory 703 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or processed by the processor 701 and various modules in the computer device 700 (for example, image data, audio data, voice communication data and Video communication data) can be realized by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission may be performed between the processor 701 , the communication interface 702 and the memory 703 through the bus 704 .
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may be used as a single unit, or two or more units may be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the above-mentioned integrated units of the present disclosure are realized in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium, and include several instructions to make a
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks.
  • Embodiments of the present disclosure provide a device linkage method, device, device, storage medium, program product, and computer program, wherein the method includes: acquiring trigger data transmitted by a trigger device, and setting a linkage for the trigger device strategy; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device; based on the preset abnormal event in the linkage strategy, the trigger data is detected to obtain a detection result; in response to The detection result is that the abnormal event is detected, triggering the linkage device to acquire image data including the abnormal event; and saving the image data including the abnormal event.
  • the flexibility of device linkage can be improved by flexibly configuring the abnormal event and the linkage device associated with the triggering device in the linkage strategy, and the image data including the abnormal event can be accurately acquired and saved, which facilitates the abnormal event playback and analysis.

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Alarm Systems (AREA)
  • Retry When Errors Occur (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

Provided in the embodiments of the present disclosure are a device linkage method and apparatus, and a device, a storage medium, a program product and a computer program. The method comprises: acquiring trigger data transmitted by a trigger device, and a linkage policy set for the trigger device, wherein the linkage policy at least comprises a preset abnormal event and a linkage device associated with the trigger device; on the basis of the preset abnormal event in the linkage policy, performing detection on the trigger data to obtain a detection result; in response to the detection result being that the abnormal event is detected, triggering the linkage device to acquire image data that comprises the abnormal event; and storing the image data that comprises the abnormal event.

Description

设备联动方法、装置、设备、存储介质、程序产品及计算机程序Device linkage method, device, device, storage medium, program product, and computer program
相关申请的交叉引用Cross References to Related Applications
本公开基于申请号为202110765584.1、申请日为2021年07月07日、申请名称为“设备联动方法、装置、设备、存储介质及程序产品”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosure is based on the Chinese patent application with the application number 202110765584.1, the application date is July 07, 2021, and the application name is "equipment linkage method, device, equipment, storage medium and program product", and requires the priority of the Chinese patent application Right, the entire content of this Chinese patent application is hereby incorporated into this disclosure as a reference.
技术领域technical field
本公开涉及但不限于信息技术领域,尤其涉及一种设备联动方法、装置、设备、存储介质、程序产品及计算机程序。The present disclosure relates to but not limited to the field of information technology, and in particular relates to a device linkage method, device, device, storage medium, program product and computer program.
背景技术Background technique
随着信息技术的发展,多个设备之间可能存在协同配合与联动。然而,相关技术中设备的协同配合与联动只能在同一类型的设备之间进行,并且设备之间的联动方式以及触发联动的事件较为单一,无法灵活地实现设备之间的联动。With the development of information technology, there may be coordination and linkage between multiple devices. However, in the related art, the cooperation and linkage of devices can only be performed between devices of the same type, and the linkage mode between devices and the event that triggers the linkage are relatively simple, and the linkage between devices cannot be flexibly realized.
发明内容Contents of the invention
本公开实施例提供一种设备联动方法、装置、设备、存储介质、程序产品及计算机程序。Embodiments of the present disclosure provide a device linkage method, device, device, storage medium, program product, and computer program.
本公开实施例的技术方案是这样实现的:The technical scheme of the embodiment of the present disclosure is realized in this way:
本公开实施例提供一种设备联动方法,所述方法包括:An embodiment of the present disclosure provides a device linkage method, the method including:
获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备;Acquiring the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device;
基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果;Detecting the trigger data based on the preset abnormal events in the linkage strategy to obtain a detection result;
响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据;In response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event;
保存所述包括所述异常事件的图像数据。The image data including the abnormal event is saved.
本公开实施例提供一种设备联动装置,所述装置包括:An embodiment of the present disclosure provides an equipment linkage device, which includes:
第一获取部分,被配置为获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备;The first acquisition part is configured to acquire the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device;
检测部分,被配置为基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果;The detection part is configured to detect the trigger data based on the abnormal event preset in the linkage strategy, and obtain a detection result;
触发部分,被配置为响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据;A triggering part configured to trigger the linkage device to acquire image data including the abnormal event in response to the detection result being the detection of the abnormal event;
保存部分,被配置为保存所述包括所述异常事件的图像数据。A saving section configured to save the image data including the abnormal event.
本公开实施例提供一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述方法中的部分或全部步骤。An embodiment of the present disclosure provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements some or all of the steps in the above method when executing the program.
本公开实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法中的部分或全部步骤。An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, part or all of the steps in the above method are implemented.
本公开实施例提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算机设备中运行时,所述计算机设备中的处理器实现上述方法中的部分或全部步骤。An embodiment of the present disclosure provides a computer program, including computer readable codes. When the computer readable codes are run in a computer device, a processor in the computer device implements part or all of the steps in the above method.
本公开实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现上述方法中的部分或全部步骤。An embodiment of the present disclosure provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, a part or part of the above method is implemented. All steps.
本公开实施例中,获取触发设备传输的触发数据,和为触发设备所设置的联动策略;联动策略至少包括预设的异常事件和与触发设备关联的联动设备;基于联动策略中预设的异常事件,对触发数据进行检测,得到检测结果;响应于检测结果为检测到异常事件,触发联动设备获取包括异常事件的图像数据;保存包括异常事件的图像数据。这样,可以基于联动策略中预设的异常事件对触发数据进行检测,在检测到异常事件的情况下,可以触发联动策略中预设的与触发设备关联的联动设备获取包括异常事件的图像数据,并保存该图像数据,如此,可以通过在联动策略中灵活地配置异常事件以及与触发设备关联的联动设备,提高设备联动的灵活性,并且能够精准地获取并保存包括异常事件的图像数据,便于异常事件的回放与分析。In the embodiment of the present disclosure, the trigger data transmitted by the trigger device and the linkage strategy set for the trigger device are obtained; the linkage strategy includes at least the preset abnormal event and the linkage device associated with the trigger device; based on the preset exception in the linkage strategy An event is used to detect the trigger data to obtain a detection result; in response to the detection result being an abnormal event detected, the linkage device is triggered to acquire image data including the abnormal event; and the image data including the abnormal event is saved. In this way, the trigger data can be detected based on the abnormal event preset in the linkage strategy, and when an abnormal event is detected, the linkage device associated with the trigger device preset in the linkage strategy can be triggered to obtain the image data including the abnormal event, And save the image data. In this way, the flexibility of device linkage can be improved by flexibly configuring the abnormal event and the linkage device associated with the trigger device in the linkage strategy, and the image data including the abnormal event can be accurately acquired and saved, which is convenient Playback and analysis of abnormal events.
附图说明Description of drawings
图1为本公开实施例提供的一种设备联动方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flow of a device linkage method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种设备联动方法的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的一种设备联动方法的实现流程示意图;FIG. 3 is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure;
图4为本公开实施例提供的一种设备联动方法的实现流程示意图;FIG. 4 is a schematic flow diagram of an implementation process of a device linkage method provided by an embodiment of the present disclosure;
图5A为本公开实施例提供的一种设备联动方法的实现流程示意图;FIG. 5A is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure;
图5B为本公开实施例提供的一种设备联动方法的实现流程示意图;FIG. 5B is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure;
图5C为本公开实施例提供的一种设备联动方法的功能模块示意图;FIG. 5C is a schematic diagram of functional modules of a device linkage method provided by an embodiment of the present disclosure;
图5D为本公开实施例提供的一种创建联动设备组的交互界面的示意图;FIG. 5D is a schematic diagram of an interactive interface for creating a linkage device group provided by an embodiment of the present disclosure;
图5E为本公开实施例提供的一种选定联动的异常事件的交互界面的示意图;FIG. 5E is a schematic diagram of an interactive interface for selecting linked abnormal events provided by an embodiment of the present disclosure;
图5F为本公开实施例提供的一种设置联动周期的交互界面的示意图;FIG. 5F is a schematic diagram of an interactive interface for setting a linkage cycle provided by an embodiment of the present disclosure;
图5G为本公开实施例提供的一种自定义时刻表的配置界面的示意图;FIG. 5G is a schematic diagram of a configuration interface of a custom timetable provided by an embodiment of the present disclosure;
图5H为本公开实施例提供的一种深度神经网络模型选择的交互界面示意图;FIG. 5H is a schematic diagram of an interactive interface for selecting a deep neural network model provided by an embodiment of the present disclosure;
图5I为本公开实施例提供的一种异常事件的视频回放界面的示意图;FIG. 5I is a schematic diagram of a video playback interface of an abnormal event provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种设备联动装置的组成结构示意图;FIG. 6 is a schematic diagram of the composition and structure of an equipment linkage device provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种计算机设备的硬件实体示意图。FIG. 7 is a schematic diagram of a hardware entity of a computer device provided by an embodiment of the present disclosure.
具体实施方式detailed description
为了使本公开的目的、技术方案和优点更加清楚,下面结合附图和实施例对本公开的技术方案进一步详细阐述,所描述的实施例不应视为对本公开的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be further elaborated below in conjunction with the accompanying drawings and embodiments, and the described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained under the premise of no creative work belong to the protection scope of the present disclosure.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.
如果申请文件中出现“第一/第二”的类似描述则增加以下的说明,在以下的描述中,所涉及的术语“第一/第二/第三”仅仅是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一/第二/第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本公开实施例能够以除了在这里图示或描述的以外的顺序实施。If there is a similar description of "first/second" in the application documents, add the following explanation. In the following description, the terms "first/second/third" are only used to distinguish similar objects and do not mean With regard to the specific ordering of objects, it can be understood that "first/second/third" can be interchanged in specific order or sequential order if allowed, so that the embodiments of the present disclosure described here can operate in a performed in an order other than that shown or described.
除非另有定义,本文所使用的所有的技术和科学术语与属于本公开的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本公开的目的,不是旨在限制本公开。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terms used herein are for the purpose of describing the present disclosure only, and are not intended to limit the present disclosure.
本公开实施例提供一种设备联动方法,该方法可以应用于平台服务器,由平台服务器的处理器执行。其中,平台服务器可以是任意合适的计算机设备,如服务器、智能通行设备、抓拍机、网络摄像机、笔记本电脑、平板电脑、台式计算机、智能电视、机顶 盒、移动设备(例如移动电话、便携式视频播放器、个人数字助理、专用消息设备、便携式游戏设备)等具备数据处理能力的设备。图1为本公开实施例提供的一种设备联动方法的实现流程示意图,如图1所示,该方法包括如下步骤S101至步骤S104:An embodiment of the present disclosure provides a device linkage method, which can be applied to a platform server and executed by a processor of the platform server. Wherein, the platform server can be any suitable computer equipment, such as server, intelligent traffic device, camera capture machine, network camera, notebook computer, tablet computer, desktop computer, smart TV, set-top box, mobile device (such as mobile phone, portable video player) , personal digital assistants, dedicated messaging devices, portable game devices) and other devices with data processing capabilities. Fig. 1 is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure. As shown in Fig. 1, the method includes the following steps S101 to S104:
步骤S101,获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备。Step S101 , acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device.
这里,触发数据为任意合适的能够用于确定是否需要触发设备联动的数据,包括但不限于图像数据(如抓拍的图像、采集的视频流等)、音频数据、设备运行信息等中的一种或多种。触发设备可以为任意合适的能够获取触发数据的设备,包括但不限于图像采集设备(如抓拍机、摄像头、网络摄像机等)、音频采集设备(如麦克风等)、智能感应设备(如智能通行设备、对环境进行感应的传感器、红外感应设备等)、设备的信号检测器等中的一种或多种。在实施时,平台服务器可以获取触发设备采集后实时传输的触发数据,也可以由触发设备将采集的触发数据保存后,基于平台服务器的数据请求将存储的触发数据传输至触发设备,这里并不限定。Here, the trigger data is any suitable data that can be used to determine whether to trigger device linkage, including but not limited to image data (such as captured images, collected video streams, etc.), audio data, device operation information, etc. or more. The trigger device can be any suitable device capable of obtaining trigger data, including but not limited to image acquisition devices (such as capture cameras, cameras, network cameras, etc.), audio collection devices (such as microphones, etc.), intelligent sensing devices (such as smart traffic devices , sensors for sensing the environment, infrared sensing equipment, etc.), signal detectors for equipment, etc., or one or more of them. During implementation, the platform server can obtain the trigger data collected by the trigger device and transmitted in real time, or the trigger device can save the collected trigger data, and then transmit the stored trigger data to the trigger device based on the data request of the platform server. limited.
联动策略可以是为触发设备所设置的,对触发设备的联动进行定义或限定的任意合适的策略。联动策略中至少包括预设的异常事件,以及与所述触发设备关联的联动设备。预设的异常事件为预先设定的用于触发设备联动的异常事件,例如,预设的异常对象、异常行为、异常轨迹、异常场景、设备告警、设备运行异常、设备断电、环境异常等。与触发设备关联的联动设备为根据实际场景预先设定的,在发生预设的异常事件的情况下需要与触发设备联动的任意合适的设备,可以包括但不限定于图像采集设备、音频采集设备、告警设备、服务器等中的一种或多种。在实施时,可以为每一触发设备设置不同的联动策略,也可以为不同的两个触发设备设置相同的联动策略,这里并不限定。The linkage strategy may be any appropriate strategy set for the trigger device, defining or restricting the linkage of the trigger device. The linkage strategy includes at least a preset abnormal event and a linkage device associated with the triggering device. Preset abnormal events are preset abnormal events used to trigger device linkage, for example, preset abnormal objects, abnormal behaviors, abnormal tracks, abnormal scenarios, device alarms, abnormal device operation, device power failure, environmental abnormalities, etc. . The linkage device associated with the trigger device is preset according to the actual scene, any suitable device that needs to be linked with the trigger device in the event of a preset abnormal event, including but not limited to image acquisition equipment, audio acquisition equipment One or more of , alarm device, server, etc. During implementation, different linkage strategies may be set for each trigger device, or the same linkage strategy may be set for two different trigger devices, which is not limited here.
需要说明的是,在实施时,平台服务器可以单独部署,也可以与触发设备或联动设备部署在一起。触发设备与联动设备可以是同一个设备,也可以是不同的设备。在触发设备与联动设备不是同一个设备的情况下,触发设备与联动设备可以安装在相同的位置区域,也可以安装在不同的位置区域,这里并不限定。It should be noted that, during implementation, the platform server can be deployed independently, or can be deployed together with the trigger device or linkage device. The triggering device and the linkage device can be the same device or different devices. In the case that the trigger device and the linkage device are not the same device, the trigger device and the linkage device may be installed in the same location area, or may be installed in different location areas, which is not limited here.
步骤S102,基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果。Step S102, based on the abnormal event preset in the linkage strategy, the trigger data is detected to obtain a detection result.
这里,可以根据联动策略中预设的异常事件,采用合适的方式对触发数据进行检测,以确定是否发生该异常事件,得到检测结果。检测结果可以包括表征是否发生异常事件的信息。在发生异常事件的情况下,检测结果也可以包括异常事件的相关信息,如异常事件的开始时间、结束时间、异常类型等,这里并不限定。Here, according to the abnormal event preset in the linkage strategy, the trigger data may be detected in an appropriate manner to determine whether the abnormal event occurs and obtain the detection result. Detection results may include information indicative of whether an abnormal event has occurred. When an abnormal event occurs, the detection result may also include relevant information of the abnormal event, such as the start time, end time, and abnormal type of the abnormal event, which are not limited here.
例如,联动策略中预设的异常事件为预设的异常行为,触发数据为地铁进站通道的通行设备采集的视频流,可以基于预设的异常行为,对采集的视频流进行检测,得到检测结果。检测结果中可以包括视频流中是否识别到预设的异常行为。在识别到预设的异常行为的情况下,检测结果中还可以包括视频流中异常行为的开始时间、结束时间、关联的对象等信息。For example, the preset abnormal event in the linkage strategy is the preset abnormal behavior, and the trigger data is the video stream collected by the passing equipment of the subway entrance channel. Based on the preset abnormal behavior, the collected video stream can be detected and detected. result. The detection result may include whether a preset abnormal behavior is recognized in the video stream. When a preset abnormal behavior is identified, the detection result may also include information such as the start time, end time, and associated objects of the abnormal behavior in the video stream.
又如,联动策略中预设的异常事件为预设的设备运行异常,触发数据为图像采集设备的运行数据,可以基于预设的设备运行异常,对图像采集设备的运行数据进行检测,得到检测结果,检测结果中可以包括图像采集设备是否运行异常,在设备运行异常的情况下,检测结果中还可以包括图像采集设备运行异常的开始时间、结束时间、异常类型等信息。As another example, the preset abnormal event in the linkage strategy is the preset abnormal operation of the equipment, and the trigger data is the operating data of the image acquisition equipment. Based on the preset abnormal operation of the equipment, the operating data of the image acquisition equipment can be detected to obtain the detected As a result, the detection result may include whether the image acquisition device is operating abnormally. If the device is operating abnormally, the detection result may also include information such as the start time, end time, and abnormal type of the image acquisition device.
步骤S103,响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据。Step S103, in response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event.
这里,在检测结果为检测到所述异常事件的情况下,平台服务器可以触发联动设备 获取包括该异常事件的图像数据。包含异常事件的图像数据可以包括能反应该异常事件的一个或多个图像帧,也可以包括包含该异常事件的发生过程的视频流。在实施时,可以根据实际检测的异常事件,采用合适的方式获取异常事件的图像数据,这里并不限定。例如,异常事件为预设的异常对象,则可以触发联动设备拍摄包含该异常对象的一个或多个图像帧。又如,异常事件为预设的异常行为,则可以触发联动设备基于该异常行为的开始时间和结束时间,录制包括该异常行为的视频流。再如,异常事件为触发设备被拆除,则可以触发联动设备拍摄包含拆除设备的对象的一个或多个图像帧。Here, when the detection result is that the abnormal event is detected, the platform server may trigger the linkage device to acquire image data including the abnormal event. The image data containing the abnormal event may include one or more image frames that can reflect the abnormal event, and may also include a video stream containing the occurrence process of the abnormal event. During implementation, the image data of the abnormal event may be obtained in an appropriate manner according to the actually detected abnormal event, which is not limited here. For example, if the abnormal event is a preset abnormal object, the linkage device may be triggered to capture one or more image frames containing the abnormal object. For another example, if the abnormal event is a preset abnormal behavior, the linked device may be triggered to record a video stream including the abnormal behavior based on the start time and end time of the abnormal behavior. For another example, if the abnormal event is that the triggering device is removed, the linkage device may be triggered to capture one or more image frames containing the object of the removed device.
步骤S104,保存所述包括所述异常事件的图像数据。Step S104, saving the image data including the abnormal event.
这里,平台服务器可以采用任意合适的方式保存包括异常事件的图像数据,包括但不限于存储在平台服务器本地、数据库或云端中的一种或多种,这里并不限定。Here, the platform server may store the image data including abnormal events in any suitable manner, including but not limited to one or more stored locally on the platform server, in a database or in the cloud, which is not limited here.
本公开实施例中,获取触发设备传输的触发数据,和为触发设备所设置的联动策略;联动策略至少包括预设的异常事件和与触发设备关联的联动设备;基于联动策略中预设的异常事件,对触发数据进行检测,得到检测结果;响应于检测结果为检测到异常事件,触发联动设备获取包括异常事件的图像数据;保存包括异常事件的图像数据。这样,可以基于联动策略中预设的异常事件对触发数据进行检测,在检测到异常事件的情况下,可以触发联动策略中预设的与触发设备关联的联动设备获取包括异常事件的图像数据,并保存该图像数据,如此,可以通过在联动策略中灵活地配置异常事件以及与触发设备关联的联动设备,提高设备联动的灵活性,并且能够精准地获取并保存包括异常事件的图像数据,便于异常事件的回放与分析。In the embodiment of the present disclosure, the trigger data transmitted by the trigger device and the linkage strategy set for the trigger device are obtained; the linkage strategy includes at least the preset abnormal event and the linkage device associated with the trigger device; based on the preset exception in the linkage strategy An event is used to detect the trigger data to obtain a detection result; in response to the detection result being an abnormal event detected, the linkage device is triggered to acquire image data including the abnormal event; and the image data including the abnormal event is saved. In this way, the trigger data can be detected based on the abnormal event preset in the linkage strategy, and when an abnormal event is detected, the linkage device associated with the trigger device preset in the linkage strategy can be triggered to obtain the image data including the abnormal event, And save the image data. In this way, the flexibility of device linkage can be improved by flexibly configuring the abnormal event and the linkage device associated with the trigger device in the linkage strategy, and the image data including the abnormal event can be accurately acquired and saved, which is convenient Playback and analysis of abnormal events.
在一些实施例中,所述联动策略中的所述联动设备包括以下至少之一:图像采集设备、平台服务器。In some embodiments, the linkage device in the linkage strategy includes at least one of the following: an image acquisition device, and a platform server.
在一些实施例中,在所述触发数据为在线视频流、抓拍图像、设备运行信息中至少之一的情况下,所述联动设备为图像采集设备。In some embodiments, when the trigger data is at least one of online video streams, captured images, and device operation information, the linkage device is an image acquisition device.
这里,在线视频流可以包括触发设备在线采集的实时视频流,例如,网络摄像机在线采集的实时视频流、直播视频等。Here, the online video stream may include a real-time video stream collected online by a trigger device, for example, a real-time video stream collected online by a network camera, a live video, and the like.
抓拍图像可以是抓拍机基于特定的抓拍策略抓拍的图像,例如,人脸抓拍图像、车牌抓拍图像等。The captured image may be an image captured by the capture machine based on a specific capture strategy, for example, a captured image of a human face, a captured image of a license plate, and the like.
设备运行信息可以包括但不限于触发设备的运行时长、电量、处理器温度、内存、磁盘利用率、网络连接状态等中的一种或多种。The device running information may include, but is not limited to, one or more of the triggering device's running time, power, processor temperature, memory, disk utilization, network connection status, and the like.
图像采集设备可以包括但不限于视频录制设备、图像拍摄设备等中的一种或多种。在实施时,在触发数据为在线视频流、抓拍图像或设备运行信息的情况下,需要在线获取包括该在线视频流、抓拍图像或设备运行信息对应的异常事件的图像数据,因此联动策略中的联动设备可以为图像采集设备。The image acquisition device may include, but not limited to, one or more of a video recording device, an image capture device, and the like. During implementation, when the trigger data is online video streams, captured images, or equipment operating information, it is necessary to obtain online image data including abnormal events corresponding to the online video streams, captured images, or equipment operating information. Therefore, in the linkage strategy The linkage device may be an image acquisition device.
对于触发数据为在线视频流的情况,对应的触发设备为视频采集设备,如摄像机等,联动设备为图像采集设备,可以包括作为触发设备的视频采集设备,也可以包括与触发设备不同的其他图像采集设备。For the case where the trigger data is an online video stream, the corresponding trigger device is a video capture device, such as a camera, etc., and the linkage device is an image capture device, which can include the video capture device as the trigger device, or other images different from the trigger device collection equipment.
对于触发数据为抓拍图像的情况,对应的触发设备为图像抓拍设备,如具有图像抓拍功能的通行设备、抓拍电子眼等,联动设备为图像采集设备,可以包括作为触发设备的视频采集设备,也可以包括与触发设备不同的其他图像采集设备。For the case where the trigger data is a captured image, the corresponding trigger device is an image capture device, such as a traffic device with an image capture function, a capture electronic eye, etc., and the linkage device is an image capture device, which may include a video capture device as a trigger device, or Include other image acquisition devices than trigger devices.
对于触发数据为设备运行信息的情况,对应的触发设备可以为任意合适的电子设备,如网络摄像机、具有图像抓拍功能的通行设备、抓拍电子眼等,联动设备可以为任意合适的图像采集设备。For the case where the trigger data is device operation information, the corresponding trigger device can be any suitable electronic device, such as a network camera, a traffic device with image capture function, a capture electronic eye, etc., and the linkage device can be any suitable image acquisition device.
在一些实施例中,在所述触发数据为在线视频流、抓拍图像、设备运行信息中至少之一的情况下,上述步骤S103中所述的触发所述联动设备获取包括所述异常事件的图 像数据,包括如下步骤S111至步骤S112:In some embodiments, when the trigger data is at least one of online video streams, captured images, and device operation information, triggering the linkage device described in step S103 to acquire images including the abnormal event Data, including the following steps S111 to S112:
步骤S111,向所述图像采集设备发送录制指令;Step S111, sending a recording instruction to the image acquisition device;
步骤S112,接收所述图像采集设备响应于所述录制指令发送的包括所述异常事件的图像数据。这里,图像采集设备可以响应于录制指令录制包括异常事件的图像数据,并将录制的图像数据发送至平台服务器。在实施时,录制指令中可以包括用于指示图像采集设备进行图像数据录制的任意合适的信息,包括但不限于异常事件的开始时间、结束时间、图像数据的像素、图像数据的类型(如视频流类型、图像类型等)等。Step S112, receiving the image data including the abnormal event sent by the image acquisition device in response to the recording instruction. Here, the image acquisition device may record image data including abnormal events in response to the recording instruction, and send the recorded image data to the platform server. During implementation, the recording instruction may include any suitable information for instructing the image acquisition device to record image data, including but not limited to the start time and end time of the abnormal event, the pixels of the image data, the type of image data (such as video stream type, image type, etc.), etc.
在一些实施例中,在所述触发数据为已录制的视频流的情况下,所述联动设备为所述平台服务器;上述步骤S103中所述的触发所述联动设备获取包括所述异常事件的图像数据,包括:步骤S121,从所述已录制的视频流中截取包括所述异常事件的图像数据。这里,可以采用任意合适的方式确定已录制的视频流中包括异常事件的图像数据后,从该视频流中截取包括该异常事件的图像数据。例如,可以获取异常事件的开始时间和结束时间,基于该开始时间和结束时间从已录制的视频流中截取包括异常事件的图像数据。又如,可以基于异常事件的特征,从已录制的视频流中识别出包含该异常事件的图像数据,从而截取该图像数据。In some embodiments, when the trigger data is a recorded video stream, the linkage device is the platform server; the triggering of the linkage device described in the above step S103 to obtain the information including the abnormal event The image data includes: step S121, intercepting the image data including the abnormal event from the recorded video stream. Here, after determining that the recorded video stream includes the image data of the abnormal event in any suitable manner, the image data including the abnormal event may be intercepted from the video stream. For example, the start time and end time of the abnormal event may be acquired, and image data including the abnormal event may be intercepted from the recorded video stream based on the start time and end time. For another example, the image data containing the abnormal event may be identified from the recorded video stream based on the characteristics of the abnormal event, so as to intercept the image data.
在一些实施例中,所述联动策略还包括联动周期,所述方法还包括如下步骤S131或步骤S132:In some embodiments, the linkage strategy also includes a linkage period, and the method further includes the following step S131 or step S132:
步骤S131,设置所述触发设备的工作时间为所述联动周期。Step S131, setting the working time of the trigger device as the linkage period.
这里,联动周期用于表征联动策略的有效期。可以通过设置触发设备的工作时间为该联动周期,使得触发设备仅在该联动周期内传输触发数据,从而联动策略也仅在该联动周期内有效。在实施时,联动周期可以包括但不限于联动策略生效的日期、时间点、时间段等。在一些实施例中,联动周期可以是周期重复的日期、时间点或时间段等,例如,每个月的1至5日,每周一至周五,每天早上8点,每天11点至13点等。在一些实施例中,联动周期也可以是不重复的日期、时间点、时间段等,如2021年5月、2021年6月1日、2021年6月5日10点至11点等。在一些实施例中,联动周期可以是全时段,也即联动策略始终有效。Here, the linkage period is used to represent the validity period of the linkage strategy. By setting the working time of the trigger device as the linkage period, the trigger device only transmits the trigger data during the linkage period, so that the linkage strategy is only valid within the linkage period. During implementation, the linkage period may include, but not limited to, the date, time point, time period, etc. when the linkage strategy takes effect. In some embodiments, the linkage cycle can be the date, time point or period of time that is repeated periodically, for example, from the 1st to the 5th of each month, from Monday to Friday every day, at 8:00 am every day, and from 11:00 to 13:00 every day Wait. In some embodiments, the linkage period can also be a non-repeating date, time point, time period, etc., such as May 2021, June 1, 2021, and June 5, 2021 from 10:00 to 11:00, etc. In some embodiments, the linkage period may be a full period, that is, the linkage strategy is always valid.
步骤S132,响应于所述触发数据的发生时刻在所述联动周期内,基于所述联动策略中预设的异常事件,对所述触发数据进行检测。Step S132, in response to the occurrence time of the trigger data being within the linkage period, the trigger data is detected based on the abnormal event preset in the linkage strategy.
在一些实施例中,所述方法还包括:步骤S141,响应于所述触发数据的发生时刻不在所述联动周期内,丢弃所述触发数据。这里,对于发生时刻不在联动周期内丢弃的触发数据,平台服务器不会对该触发数据进行异常事件的检测。In some embodiments, the method further includes: step S141 , discarding the trigger data in response to the occurrence time of the trigger data not within the linkage period. Here, for the trigger data whose occurrence time is not discarded within the linkage period, the platform server will not detect the abnormal event of the trigger data.
在上述实施例中,联动策略还包括用于表征联动策略的有效期的联动周期,这样,可以使得联动策略仅在联动周期内生效,从而可以使得触发设备与联动设备之间的联动更加精准,并能提高计算资源的利用率。In the above embodiment, the linkage strategy also includes a linkage period used to characterize the validity period of the linkage strategy. In this way, the linkage strategy can only take effect within the linkage period, so that the linkage between the trigger device and the linkage device can be made more accurate, and It can improve the utilization rate of computing resources.
在一些实施例中,所述联动设备还包括告警设备,所述方法还包括如下步骤S151或步骤S152:In some embodiments, the linkage device further includes an alarm device, and the method further includes the following step S151 or step S152:
步骤S151,响应于所述检测结果为检测到所述异常事件,触发所述告警设备输出告警信息。Step S151, triggering the alarm device to output alarm information in response to the detection result being the detection of the abnormal event.
这里,告警设备可以包括但不限于告警指示灯、声音报警器、具有信息接收或语音输出功能的电子设备等。告警信息可以包括但不限于指示灯信号、报警铃声信号、告警提示信息、告警语音等。在实施时,可以根据实际情况确定合适的告警设备,并采用合适的方式输出告警信息,这里并不限定。Here, the warning device may include, but is not limited to, a warning indicator light, an audible alarm, an electronic device with a function of receiving information or outputting voice, and the like. Alarm information may include, but not limited to, indicator light signals, alarm bell signals, alarm prompt information, alarm voices, and the like. During implementation, an appropriate alarm device may be determined according to the actual situation, and the alarm information may be output in an appropriate manner, which is not limited here.
步骤S152,响应于所述检测结果为未检测到所述异常事件,丢弃所述触发数据。这里,对于未检测到异常事件而丢弃的触发数据,平台服务器不会触发联动设备的联动, 也即不会触发联动设备获取图像数据。Step S152, discarding the trigger data in response to the detection result being that the abnormal event is not detected. Here, for the trigger data that is discarded without detecting an abnormal event, the platform server will not trigger the linkage of the linkage device, that is, will not trigger the linkage device to acquire image data.
在一些实施例中,所述触发数据为图像数据的情况下,所述异常事件至少包括以下至少之一:图像数据包含的对象信息与预设的对象信息不匹配;图像数据包含的第一信息与第二信息不匹配;图像数据包含的对象信息与预设的异常属性关联。In some embodiments, when the trigger data is image data, the abnormal event includes at least one of the following: the object information contained in the image data does not match the preset object information; the first information contained in the image data Does not match the second information; the object information contained in the image data is associated with the preset abnormal attributes.
这里,图像数据可以包括但不限于采集的对象的图像信息、采集的身份证的图像信息、采集的二维码图像信息等中的一种或多种。图像数据包含的对象信息可以包括但不限于对象的特征信息、属性信息、标识信息等中的一种或多种,例如,人员的身份信息、外貌特征、穿着配饰特征等,身份证的图像信息中包含的对象身份标识、身份类型、对象属性等,二维码图像信息中包含的对象标识、时间信息、对象属性等。预设的对象信息可以是用户预先设定或者系统默认的对象的特征信息、属性信息或标识信息等。Here, the image data may include but not limited to one or more of the collected image information of the object, the collected image information of the ID card, the collected two-dimensional code image information, and the like. The object information contained in the image data may include but not limited to one or more of the object’s characteristic information, attribute information, identification information, etc., for example, the identity information, appearance characteristics, wearing accessories characteristics, etc. The object identity, identity type, object attributes, etc. contained in the QR code image information, the object identity, time information, object attributes, etc. contained in the QR code image information. The preset object information may be feature information, attribute information or identification information of the object preset by the user or defaulted by the system.
图像数据包含的对象信息与预设的对象信息不匹配的情况下,可以确定发生异常事件,例如,图像数据中包含的对象的标识信息与预设的对象的标识信息不匹配,图像数据中包含的对象的属性信息与预设的属性信息不匹配,图像数据中包含的对象的身份类型与预设的身份类型不匹配,二维码图像信息中包含的时间信息与预设的有效时间范围不匹配。When the object information contained in the image data does not match the preset object information, it can be determined that an abnormal event has occurred, for example, the object identification information contained in the image data does not match the preset object identification information, and the image data contains The attribute information of the object does not match the preset attribute information, the identity type of the object contained in the image data does not match the preset identity type, and the time information contained in the QR code image information does not match the preset valid time range. match.
图像数据中可以同时包含用于匹配的第一信息和第二信息,其中,第一信息和第二信息可以是根据实际应用场景确定的图像数据中需要进行匹配的任意合适的信息,可以包括但不限于对象属性、对象标识、身份证信息、通行卡标识、二维码信息、车牌号、车辆特征等中的一种或多种。在图像数据包含的第一信息与第二信息不匹配的情况下,可以确定发生异常事件。例如,第一信息和第二信息可以分别是待匹配的对象人脸信息和身份证图像信息,在图像数据包含的对象人脸信息与身份证图像信息不匹配的情况下,可以确定发生异常事件。又如,第一信息和第二信息可以分别是待匹配的通行卡号和通行二维码,在图像数据包含的通行卡标识和通行二维码不匹配的情况下,可以确定发生异常事件。再如,第一信息和第二信息可以分别是待匹配的车牌号和车辆特征,在图像数据包含的车牌号和车辆特征不匹配的情况下,可以确定发生异常事件。The image data may contain the first information and the second information for matching at the same time, wherein the first information and the second information may be any suitable information that needs to be matched in the image data determined according to the actual application scene, and may include but It is not limited to one or more of object attributes, object identifiers, ID card information, pass card identifiers, two-dimensional code information, license plate numbers, and vehicle features. In a case where the first information included in the image data does not match the second information, it may be determined that an abnormal event has occurred. For example, the first information and the second information may be the face information of the subject to be matched and the image information of the ID card respectively, and if the face information of the subject included in the image data does not match the image information of the ID card, it may be determined that an abnormal event has occurred . For another example, the first information and the second information may be the pass card number and the pass QR code to be matched respectively, and if the pass card identification contained in the image data does not match the pass QR code, it may be determined that an abnormal event has occurred. For another example, the first information and the second information may be the license plate number and vehicle features to be matched respectively, and if the license plate number contained in the image data does not match the vehicle features, it may be determined that an abnormal event has occurred.
在一些实施例中,图像数据包含的第一信息与第二信息还可以分别为表征采集的对象的两种对象信息,即第一对象信息和第二对象信息,例如,第一对象信息和第二对象信息可以分别是采集的对象的图像信息、采集的身份证的图像信息、采集的二维码图像信息等中的一种,图像数据包含的第一对象信息与第二对象信息所表征的对象不匹配的情况下,可以确定发生异常事件,例如,在第一对象信息和第二对象信息分别是采集的对象的图像信息和身份证的图像信息的情况下,该对象的图像信息表征的对象与该身份证的图像信息表征的对象不匹配,在第一对象信息和第二对象信息分别是采集的对象的图像信息和二维码的图像信息的情况下,该对象的图像信息表征的对象与该二维码的图像信息表征的对象不匹配,在第一对象信息和第二对象信息分别是采集的身份证的图像信息和二维码的图像信息的情况下,该身份证的图像信息表征的对象与该二维码的图像信息表征的对象不匹配等。In some embodiments, the first information and the second information included in the image data may also be two kinds of object information representing the collected object, namely the first object information and the second object information, for example, the first object information and the second object information. The two object information can be one of the collected image information of the object, the collected image information of the ID card, and the collected two-dimensional code image information, etc., and the image data contains the first object information and the second object information. In the case that the objects do not match, it can be determined that an abnormal event has occurred. For example, when the first object information and the second object information are the image information of the collected object and the image information of the ID card respectively, the image information of the object represented The object does not match the object represented by the image information of the ID card. When the first object information and the second object information are the image information of the collected object and the image information of the QR code respectively, the image information represented by the object The object does not match the object represented by the image information of the two-dimensional code. When the first object information and the second object information are the image information of the collected ID card and the image information of the two-dimensional code, the image of the ID card The object represented by the information does not match the object represented by the image information of the two-dimensional code.
异常属性可以是预设的表征对象存在异常的属性,例如对象未佩戴口罩、对象无通行权限、对象健康状况异常等。图像数据包含的对象信息与预设的异常属性关联的情况下,可以确定发生异常事件,例如,图像数据中包含的对象的穿着配饰特征与预设的未佩戴口罩的异常属性关联,也即图像数据中包含的对象的穿着配置特征表征该对象未佩戴口罩,图像数据中包含的二维码图像信息表征的对象属性与预设的异常属性匹配,二维码图像信息中包含的时间信息与预设的有效时间范围不匹配。The abnormal attribute may be a preset attribute that indicates an abnormality of the object, for example, the object does not wear a mask, the object has no access permission, and the object has abnormal health status. When the object information contained in the image data is associated with the preset abnormal attributes, it can be determined that an abnormal event has occurred. The wearing configuration feature of the object contained in the data indicates that the object is not wearing a mask, the object attribute represented by the two-dimensional code image information contained in the image data matches the preset abnormal attribute, and the time information contained in the two-dimensional code image information matches the preset abnormal attribute. The valid time range set does not match.
在一些实施例中,所述触发数据为设备运行信息的情况下,所述异常事件包括以下至少之一:设备硬件故障;设备电源异常;设备网络异常;设备所处环境异常。以触发 设备为通行设备为例,设备硬件故障可以包括但不限于设备被拆除、强制开门、门磁超时等,设备电源异常可以包括但不限于设备断电、设备电量不足、蓝牙模块电量不足等,设备网络异常可以包括但不限于设备离线、设备网络访问受限等,设备所处环境异常可以包括但不限于通行设备的摄像头污染、设备遭遇攻击、设备所处环境发生消防告警等。In some embodiments, when the trigger data is device operation information, the abnormal event includes at least one of the following: device hardware failure; device power supply abnormality; device network abnormality; device environment abnormality. Taking the trigger device as a pass-through device as an example, device hardware failures may include but are not limited to device removal, forced door opening, door contact timeout, etc. Device power failures may include but not limited to device power failure, device power shortage, Bluetooth module power shortage, etc. , Device network abnormalities may include but are not limited to offline devices, limited access to the device network, etc., and device environment abnormalities may include but are not limited to camera pollution of passing devices, device attacks, fire alarms in the device environment, etc.
本公开实施例提供一种设备联动方法,该方法可以由平台服务器执行。如图2所示,该方法包括如下步骤S201至步骤S206:An embodiment of the present disclosure provides a device linkage method, which can be executed by a platform server. As shown in Figure 2, the method includes the following steps S201 to S206:
步骤S201,获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备。Step S201, acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device.
步骤S202,基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果。Step S202, based on the abnormal event preset in the linkage strategy, the trigger data is detected to obtain a detection result.
步骤S203,响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据。Step S203, in response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event.
步骤S204,保存所述包括所述异常事件的图像数据。Step S204, saving the image data including the abnormal event.
这里,上述步骤S201至步骤S204对应于前述步骤S101至步骤S104,在实施时可以参照前述步骤S101至步骤S104的具体实施方式。Here, the above-mentioned steps S201 to S204 correspond to the above-mentioned steps S101 to S104, and the specific implementation manners of the above-mentioned steps S101 to S104 can be referred to for implementation.
步骤S205,响应于对所述联动策略的配置操作,呈现所述第一配置界面;所述第一配置界面用于设置所述触发设备,为所述触发设备关联联动设备和为所述触发设备设置待检测的异常事件。Step S205, in response to the configuration operation of the linkage strategy, present the first configuration interface; the first configuration interface is used to set the trigger device, associating the linkage device with the trigger device and setting the trigger device Set the abnormal events to be detected.
这里,可以在第一配置界面对触发设备进行配置,例如新增触发设备、更新触发设备的关联策略等。在实施时,用户可以跟实际应用场景配置合适的触发设备,并为触发设备配置关联的联动设备以及待检测的异常事件。Here, the trigger device can be configured on the first configuration interface, such as adding a trigger device, updating an associated policy of the trigger device, and the like. During implementation, the user can configure a suitable trigger device according to the actual application scenario, and configure the associated linkage device and abnormal events to be detected for the trigger device.
步骤S206,基于针对所述第一配置界面中所述触发设备和所述联动设备的设置操作,获取针对所述触发设备的联动策略;其中,所述触发设备与联动设备之间的数量关系包括以下之一:一对一、一对多、多对一、多对多。Step S206, based on the setting operation for the trigger device and the linkage device in the first configuration interface, obtain a linkage policy for the trigger device; wherein, the quantitative relationship between the trigger device and the linkage device includes One of the following: one-to-one, one-to-many, many-to-one, many-to-many.
这里,触发设备的联动策略包括预设的异常事件以及与触发设备关联的联动设备,基于针对第一配置界面中触发设备和联动设备的设置操作,可以获取预设的异常事件以及与触发设备关联的联动设备,从而可以获取针对该触发设备的联动策略。Here, the linkage policy of the trigger device includes preset abnormal events and linkage devices associated with the trigger device. Based on the setting operation for the trigger device and linkage device in the first configuration interface, the preset abnormal event and the linkage device associated with the trigger device can be obtained. , so that the linkage policy for the triggering device can be obtained.
本公开实施例中,响应于对联动策略的配置操作,呈现用于设置触发设备,并为触发设备关联联动设备,以及为触发设备设置待检测的异常事件的第一配置界面,基于针对第一配置界面中触发设备和联动设备的设置操作,获取针对该触发设备的联动策略,其中,触发设备与联动设备之间的数量关系包括以下之一:一对一、一对多、多对一、多对多。这样,用户可以根据实际业务需求在第一配置界面灵活地设置触发设备,并为触发设备配置异常事件以及与触发设备关联的联动设备,从而可以进一步提高设备联动的灵活性,更好地满足业务需求。In the embodiment of the present disclosure, in response to the configuration operation of the linkage policy, a first configuration interface for setting the trigger device, associating the linkage device with the trigger device, and setting the abnormal event to be detected for the trigger device is presented, based on the first The setting operation of the trigger device and the linkage device in the configuration interface can obtain the linkage strategy for the trigger device, where the quantity relationship between the trigger device and the linkage device includes one of the following: one-to-one, one-to-many, many-to-one, Many to many. In this way, users can flexibly set trigger devices on the first configuration interface according to actual business needs, and configure abnormal events for trigger devices and linkage devices associated with trigger devices, thereby further improving the flexibility of device linkage and better meeting business requirements. need.
本公开实施例提供一种设备联动方法,该方法可以由平台服务器执行。如图3所示,该方法包括如下步骤S301至步骤S304:An embodiment of the present disclosure provides a device linkage method, which can be executed by a platform server. As shown in Figure 3, the method includes the following steps S301 to S304:
步骤S301,获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备。其中,所述触发数据为视频流的情况下,所述异常事件包括预设的异常场景。Step S301, acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device. Wherein, when the trigger data is a video stream, the abnormal event includes a preset abnormal scene.
这里,上述步骤S301对应于前述步骤S101,在实施时可以参照前述步骤S101的具体实施方式。Here, the above-mentioned step S301 corresponds to the above-mentioned step S101, and the specific implementation manner of the above-mentioned step S101 can be referred to for implementation.
步骤S302,基于所述联动策略中预设的异常场景,利用与所述异常场景匹配的场景模型,对所述视频流进行检测,得到表征是否检测到所述异常场景的检测结果。Step S302, based on the abnormal scene preset in the linkage strategy, using a scene model matching the abnormal scene, to detect the video stream, and obtain a detection result indicating whether the abnormal scene is detected.
这里,异常场景可以是预先设定的存在异常的场景,针对每一个异常场景可以预先 配置一个与该异常场景匹配的场景模型,该场景模型可以是预先针对该异常场景定制的算法模型,利用该场景模型,可以精准地对视频流中的异常场景进行检测,得到表征是否检测到异常场景的检测结果。Here, the abnormal scene can be a preset abnormal scene, and a scene model matching the abnormal scene can be pre-configured for each abnormal scene, and the scene model can be an algorithm model customized for the abnormal scene in advance. The scene model can accurately detect abnormal scenes in the video stream, and obtain detection results indicating whether abnormal scenes are detected.
步骤S303,响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据。Step S303, in response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event.
步骤S304,保存所述包括所述异常事件的图像数据。Step S304, saving the image data including the abnormal event.
这里,上述步骤S303至步骤S304对应于前述步骤S103至步骤S104,在实施时可以参照前述步骤S103至步骤S104的具体实施方式。Here, the above-mentioned steps S303 to S304 correspond to the above-mentioned steps S103 to S104, and the specific implementation manners of the above-mentioned steps S103 to S104 can be referred to for implementation.
本公开实施例中,在触发数据为视频流的情况下,异常事件包括预设的异常场景,基于联动策略中预设的异常场景,利用与该异常场景匹配的场景模型,对视频流进行检测,得到表征是否检测到该异常场景的检测结果。这样,可以更加精准地对视频流中的异常场景进行检测,从而能够更加精准地获取并保存包括异常事件的图像数据,便于异常事件的回放与分析。In the embodiment of the present disclosure, when the trigger data is a video stream, the abnormal event includes a preset abnormal scene, and based on the preset abnormal scene in the linkage strategy, the video stream is detected using a scene model that matches the abnormal scene , to obtain a detection result representing whether the abnormal scene is detected. In this way, abnormal scenes in the video stream can be detected more accurately, so that image data including abnormal events can be acquired and saved more accurately, which is convenient for playback and analysis of abnormal events.
本公开实施例提供一种设备联动方法,该方法可以由平台服务器执行。如图4所示,该方法包括如下步骤S401至步骤S405:An embodiment of the present disclosure provides a device linkage method, which can be executed by a platform server. As shown in Figure 4, the method includes the following steps S401 to S405:
步骤S401,获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备。Step S401, acquiring trigger data transmitted by a trigger device, and a linkage strategy set for the trigger device; the linkage strategy includes at least preset abnormal events and linkage devices associated with the trigger device.
步骤S402,基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果。Step S402, based on the abnormal events preset in the linkage strategy, the trigger data is detected to obtain a detection result.
步骤S403,响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据。Step S403, in response to the detection result being that the abnormal event is detected, the linkage device is triggered to acquire image data including the abnormal event.
步骤S404,保存所述包括所述异常事件的图像数据。Step S404, saving the image data including the abnormal event.
这里,上述步骤S401至步骤S104对应于前述步骤S101至步骤S104,在实施时可以参照前述步骤S101至步骤S104的具体实施方式。Here, the above-mentioned steps S401 to S104 correspond to the above-mentioned steps S101 to S104, and the specific implementation manners of the above-mentioned steps S101 to S104 can be referred to for implementation.
步骤S405,响应于对所述异常事件的回放操作,输出包括所述异常事件的图像数据。Step S405, outputting image data including the abnormal event in response to the playback operation on the abnormal event.
这里,用户可以在平台服务器中进行异常事件的回放操作。包括异常事件的图像数据可以是包括异常事件的一个或多个图像帧,也可以是包括异常事件的视频流。在实施时,响应于对异常事件的回放操作,可以采用任意合适的方式输出包括异常事件的图像数据,例如,可以显示包括异常事件的一个或多个图像帧,也可以播放包括异常事件的视频流。Here, the user can perform playback operations of abnormal events in the platform server. The image data including the abnormal event may be one or more image frames including the abnormal event, or may be a video stream including the abnormal event. During implementation, in response to the playback operation on the abnormal event, the image data including the abnormal event may be output in any suitable manner, for example, one or more image frames including the abnormal event may be displayed, or a video including the abnormal event may be played flow.
本公开实施例中,可以响应于对异常事件的回放操作,输出包括该异常事件的图像数据。这样,用户可以在异常事件发生后方便地回看联动设备获取的包括该异常事件的图像数据,从而可以便于获取异常事件的现场信息,便于对异常事件进行进一步分析。In the embodiment of the present disclosure, image data including the abnormal event may be output in response to a playback operation on the abnormal event. In this way, the user can conveniently look back at the image data including the abnormal event acquired by the linkage device after the abnormal event occurs, so as to facilitate the acquisition of on-site information of the abnormal event and facilitate further analysis of the abnormal event.
下面说明本公开实施例提供的设备联动方法在实际场景中的应用,多个设备的协同配合与联动可在地铁、车站的出入通道,或者办公楼、小区的楼层或进出口等处提供组合式协同应用,通过某一触发设备发出的告警,联动其他设备完成联动响应,可以大大提高异常事件的捕捉能力。The following describes the application of the device linkage method provided by the embodiments of the present disclosure in actual scenarios. The cooperation and linkage of multiple devices can provide a combined Collaborative applications, through the alarm sent by a trigger device, link other devices to complete the linkage response, which can greatly improve the ability to capture abnormal events.
多设备的互联与协同联动是相当复杂的,需要对不同类型的设备进行统一管理并配置相应的联动策略与方案。在多设备的互联与协同联动的实现中,首先,不可影响设备的独立运行状态,需要配置主从联动方式,即告警触发设备与联动设备;其次,在联动时间维度上需要灵活配置,以确定设备间进行联动的时间和各自独立工作的时间;最后,需要从不同的事件维度进行异常事件的分类处理,完成告警与协同响应,从而提高设备联动的精准度与应用价值。The interconnection and collaborative linkage of multiple devices is quite complicated, and it is necessary to uniformly manage different types of devices and configure corresponding linkage strategies and solutions. In the realization of multi-device interconnection and collaborative linkage, firstly, the independent operation status of the equipment cannot be affected, and the master-slave linkage mode needs to be configured, that is, the alarm trigger device and the linkage equipment; secondly, flexible configuration is required in the dimension of linkage time to determine The time for linkage between devices and the time for each to work independently; finally, it is necessary to classify and process abnormal events from different event dimensions to complete alarms and coordinated responses, thereby improving the accuracy and application value of equipment linkage.
本公开实施例提供一种设备联动方法,可以实现如下功能:The embodiment of the present disclosure provides a device linkage method, which can realize the following functions:
1)利用深度学习模型对异常事件进行预测与分析;其中,异常事件可以包括异常对象识别、轨迹追踪、异常行为识别等,可以利用深度神经网络强大的描述能力进行建模,得到多种异常事件的预测与分析模型。1) Use the deep learning model to predict and analyze abnormal events; among them, abnormal events can include abnormal object recognition, trajectory tracking, abnormal behavior recognition, etc., and can be modeled by using the powerful description ability of deep neural network to obtain a variety of abnormal events prediction and analysis models.
2)全面打通不同类型设备之间的连接,如通行设备(又称为通行面板机、通行类终端等)、抓拍机、网络摄像头等设备的连接,绑定多个设备为协同联动组,协同联动组中的多个设备可以在配置的联动周期和异常事件下自动配合完成设定的任务。2) Fully open up the connection between different types of devices, such as the connection of traffic devices (also known as traffic panel machines, traffic terminals, etc.), capture machines, network cameras and other devices, and bind multiple devices as a collaborative linkage group. Multiple devices in the linkage group can automatically cooperate to complete the set tasks under the configured linkage cycle and abnormal events.
3)根据联动策略、异常事件触发时间以及系统设置的录制时长,完成异常事件的精准录制,并能实现异常事件的实时告警,以及支持事后查看回放数据。3) According to the linkage strategy, the trigger time of abnormal events and the recording time set by the system, the precise recording of abnormal events can be completed, and the real-time alarm of abnormal events can be realized, and the playback data can be viewed afterwards.
在一些实施例中,该方法可以应用于平台服务器中,平台服务器可以通过物联网设备互联接入协议(如开放网络视频接口论坛(Open Network Video Interface Forum,ONVIF)、实时流传输协议(Real Time Streaming Protocol,RTSP)等)接入网络摄像机(IP Camera,IPC),并与通行设备、抓拍机统一管理,能够将通行设备、抓拍机或IPC设定为触发设备,还能够将IPC设定为联动设备。In some embodiments, the method can be applied to a platform server, and the platform server can connect and access protocols through Internet of Things devices (such as Open Network Video Interface Forum (Open Network Video Interface Forum, ONVIF), Real Time Streaming Protocol (Real Time Streaming Protocol, RTSP) etc.) to access the network camera (IP Camera, IPC), and unified management with the traffic device and the capture machine, the traffic device, the capture machine or the IPC can be set as the trigger device, and the IPC can also be set as linkage equipment.
在一些实施例中,可以利用多种人脸、人体及行为类算法的预测结果作为触发事件,或利用触发设备本身的信号作为触发事件,如设备拆除、摄像头污染等。创建异常事件告警,并触发与该触发设备绑定的联动设备根据联动策略完成录制任务。In some embodiments, the prediction results of various face, human body and behavior algorithms can be used as trigger events, or the signal of the trigger device itself can be used as trigger events, such as device removal, camera pollution, etc. Create an abnormal event alarm, and trigger the linkage device bound to the trigger device to complete the recording task according to the linkage policy.
在一些实施例中,联动策略中可以通过设定的规则将触发设备与联动设备进行绑定。互相绑定的触发设备与联动设备之间的数量关系可以包括一对一、一对多、多对一或多对多。在设置联动策略的过程中,还可以通过设置灵活的联动时刻表来设定联动周期,并且可以设定待检测的异常事件以及设备的告警事件。联动策略设置完成后,可以基于设置的联动策略得到触发数据的检测结果。In some embodiments, the linkage policy can bind the trigger device with the linkage device through set rules. The quantity relationship between the mutually bound trigger devices and linkage devices may include one-to-one, one-to-many, many-to-one or many-to-many. In the process of setting the linkage strategy, the linkage period can also be set by setting a flexible linkage schedule, and the abnormal events to be detected and the alarm events of the equipment can be set. After the linkage policy is set, the detection result of the trigger data can be obtained based on the set linkage policy.
图5A为本公开实施例提供的一种设备联动方法的实现流程示意图,如图5A所示,该方法包括如下步骤S501至步骤S505:Fig. 5A is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure. As shown in Fig. 5A, the method includes the following steps S501 to S505:
步骤S501,从IPC获取视频流中的视频片段。In step S501, a video clip in a video stream is obtained from an IPC.
步骤S502,利用神经网络模型对获取的视频片段进行异常事件的检测,得到检测结果;其中,异常事件是针对场景、对象的各部位(例如动物的面部或身体,再如人脸、人体、车辆的车牌号)、对象的行为(动物的行为、车辆的行为)进行的,在实施时,可以根据设定的异常事件,从预设的算法仓库中选择与该异常事件匹配的神经网络模型对视频片段进行异常事件的检测。Step S502, use the neural network model to detect abnormal events in the acquired video clips, and obtain the detection results; wherein, the abnormal events are for various parts of scenes and objects (such as the face or body of an animal, such as human face, human body, vehicle, etc.). license plate number), the behavior of the object (behavior of the animal, the behavior of the vehicle), during implementation, according to the set abnormal event, the neural network model pair that matches the abnormal event can be selected from the preset algorithm warehouse Video clips for anomalous event detection.
步骤S503,基于检测结果,判断视频片段中是否存在异常事件。Step S503, based on the detection result, it is judged whether there is an abnormal event in the video segment.
步骤S504,在视频片段中存在异常事件的情况下,根据该IPC的联动策略,触发视频录制设备进行视频录制,得到包括该异常事件的视频数据,并联动告警设备进行告警;其中,联动策略可以包括与该IPC关联的联动设备、联动时间以及需要进行联动的异常事件。Step S504, when there is an abnormal event in the video clip, according to the linkage strategy of the IPC, trigger the video recording device to record the video, obtain the video data including the abnormal event, and link the alarm device to give an alarm; wherein, the linkage strategy can be Including the linked device associated with the IPC, the linked time, and the abnormal events that need to be linked.
步骤S505,在视频片段中不存在异常事件的情况下,丢弃当前视频片段。Step S505, if there is no abnormal event in the video clip, discard the current video clip.
图5B为本公开实施例提供的一种设备联动方法的实现流程示意图,如图5B所示,该方法包括如下步骤S511至步骤S516:Fig. 5B is a schematic diagram of the implementation flow of a device linkage method provided by an embodiment of the present disclosure. As shown in Fig. 5B, the method includes the following steps S511 to S516:
步骤S511,从通行设备处获取设备运行信息或通行设备抓拍的图像。Step S511, acquiring device operation information or images captured by the traffic device from the traffic device.
步骤S512,判断设备运行信息或抓拍的图像中是否存在异常事件。Step S512, judging whether there is an abnormal event in the equipment operation information or the captured image.
步骤S513,在设备运行信息或抓拍的图像中不存在异常事件的情况下,丢弃该设备运行信息或抓拍的图像。Step S513, if there is no abnormal event in the equipment operation information or the captured image, discard the equipment operation information or the captured image.
步骤S514,在设备运行信息或抓拍的图像中存在异常事件的情况下,联动告警设备输出告警信息,并基于该通行设备的联动策略判断是否触发联动策略;在实施时,可 以基于该联动策略中包括的与该通行设备关联的联动设备、联动周期以及需要进行联动的异常事件,判断是否触发联动策略。Step S514, when there is an abnormal event in the device operation information or the captured image, the linkage alarm device outputs alarm information, and judges whether to trigger the linkage strategy based on the linkage strategy of the passing device; during implementation, it can be based on the linkage strategy Including the linkage equipment associated with the traffic equipment, the linkage period, and the abnormal events that need to be linked, and determine whether to trigger the linkage strategy.
步骤S515,在未触发联动策略的情况下,丢弃该告警信息;Step S515, if the linkage strategy is not triggered, the warning information is discarded;
步骤S516,在触发联动策略的情况下,协同触发视频录制设备进行视频录制,得到包括该异常事件的视频数据。Step S516, when the linkage strategy is triggered, cooperatively trigger the video recording device to perform video recording, and obtain the video data including the abnormal event.
在一些实施例中,参见图5C,本公开实施例提供的一种设备联动方法可以包括如下三个功能模块:联动策略配置模块51、深度神经网络分析模块52以及录制与回放模块53,其中,基于联动策略配置模块用户可以进行联动策略的设定,包括创建联动设备组、设置联动周期以及选定联动的异常事件;深度神经网络分析模块可以基于设定的联动策略输出智能分析结果;录制与回放模块可以在智能分析结果表征存在异常事件的情况下,联动视频录制设备录制包括异常事件的视频数据。In some embodiments, referring to FIG. 5C , a device linkage method provided by an embodiment of the present disclosure may include the following three functional modules: a linkage strategy configuration module 51, a deep neural network analysis module 52, and a recording and playback module 53, wherein, Based on the linkage strategy configuration module, users can set linkage strategies, including creating linkage device groups, setting linkage cycles, and selecting linkage abnormal events; the deep neural network analysis module can output intelligent analysis results based on the set linkage strategy; recording and The playback module can link the video recording device to record video data including the abnormal event when the intelligent analysis result indicates that there is an abnormal event.
下面分别对这三个功能模块的实现进行说明:The implementation of these three functional modules is described below:
1)联动策略配置模块:1) Linkage strategy configuration module:
该模块可以提供用于进行联动策略配置的交互界面,用户可以在该交互界面进行联动策略的配置,包括:This module can provide an interactive interface for configuring linkage strategies. Users can configure linkage strategies on this interface, including:
a)创建联动设备组:参见图5D,图5D为本公开实施例提供的一种创建联动设备组的交互界面的示意图,如图5D所示,用户可以在该交互界面创建联动设备组,包括在联动策略名称输入框521中设置联动策略名称、在通行设备输入框522中选定通行设备、在录制设备输入框523中选定录制设备,其中,通行设备和录制设备之间的数量关系可根据实际情况确定,如多通行设备对单录制设备、单通行设备对多录制设备等。a) Creating a linked device group: see FIG. 5D. FIG. 5D is a schematic diagram of an interactive interface for creating a linked device group provided by an embodiment of the present disclosure. As shown in FIG. 5D, the user can create a linked device group on the interactive interface, including Set the linkage strategy name in the linkage strategy name input box 521, select the traffic device in the traffic device input box 522, and select the recording device in the recording device input box 523, wherein the quantitative relationship between the traffic device and the recording device can be Determine according to the actual situation, such as multi-pass device to single recording device, single-pass device to multi-recording device, etc.
b)选定联动的异常事件:参见图5E,图5E为本公开实施例提供的一种选定联动的异常事件的交互界面的示意图,如图5E所示,用户可以在该交互界面选定需要进行联动的异常事件,包括检测异常事件531和设备告警事件532,可以多选或全选。检测异常事件为对视频流数据进行检测确定的异常事件,例如人证不匹配、人卡不匹配、人码不匹配、访客不在有效期内、不在通行时刻表内、无效身份证、无效卡、无效二维码、体温异常、未戴口罩、查无身份、查无健康码等。设备告警事件为基于设备运行信息中确定的异常事件,例如设备拆除、强制开门、门磁超时、密码破解、离线告警、蓝牙电量不足、热成像仪连接异常、摄像头污染、非活体攻击、消防告警、人脸特征提取失败、人脸抓拍异常、摄像头异常等。b) Selecting linked abnormal events: see FIG. 5E, which is a schematic diagram of an interactive interface for selecting linked abnormal events provided by an embodiment of the present disclosure. As shown in FIG. 5E, users can select The abnormal events that need to be linked, including the abnormal detection event 531 and the device alarm event 532, can be selected multiple or all. Detect abnormal events are abnormal events determined by detection of video stream data, such as mismatch of person ID, person card, person code, visitor not within the validity period, not within the timetable, invalid ID card, invalid card, invalid QR code, abnormal body temperature, not wearing a mask, no identity check, no health code check, etc. Device alarm events are abnormal events determined based on device operation information, such as device removal, forced door opening, door sensor timeout, password cracking, offline alarm, Bluetooth low power, abnormal connection of thermal imager, camera pollution, non-living attack, fire alarm , Face feature extraction failure, face capture abnormality, camera abnormality, etc.
c)设置联动周期:参见图5F,图5F为本公开实施例提供的一种设置联动周期的交互界面的示意图,如图5F所示,用户可以在该交互界面设置联动周期,支持选择全时段541或自定义时刻表542作为联动周期,其中,自定义时刻表的配置界面如图5G所示,可以配置时刻表名称551、有效日期552等。c) Setting the linkage cycle: see FIG. 5F. FIG. 5F is a schematic diagram of an interactive interface for setting the linkage cycle provided by the embodiment of the present disclosure. As shown in FIG. 5F, the user can set the linkage cycle in the interactive interface, and support the selection of all periods 541 or a self-defined timetable 542 as the linkage period, wherein, the configuration interface of the self-defined timetable is shown in FIG.
2)深度神经网络分析模块:2) Deep neural network analysis module:
该模块可以对输入的视频流数据进行分析,输出算法分析结果,以确定是否发生异常事件,并在发生异常事件的情况下,触发联动事件异常告警。在触发联动的异常事件中,除设备运行信息中的异常信号外,更多异常事件的触发可通过对视频流数据的分析来获取。图5H为本公开实施例提供的一种深度神经网络模型选择的交互界面示意图,如图5H所示,深度神经网络分析模块可以提供大量的深度神经网络模型561,用于对视频流中的人员、场景等进行结构化的数据分析,例如人脸识别、人脸聚类、以图搜人、口罩检测、表情分析、年龄分析、性别分析、活体检测、合成检测、人流量分析、轨迹分析、排队检测、行进方向分析、高空抛物检测、场景识别、图像审核、环境分析、文字识别、车牌识别、证件识别、票据识别、语音识别等。This module can analyze the input video stream data, output algorithm analysis results to determine whether abnormal events occur, and trigger abnormal linkage event alarms in the event of abnormal events. Among the abnormal events that trigger linkage, in addition to the abnormal signals in the equipment operation information, the triggers of more abnormal events can be obtained by analyzing the video stream data. FIG. 5H is a schematic diagram of an interactive interface for selecting a deep neural network model provided by an embodiment of the present disclosure. As shown in FIG. 5H , the deep neural network analysis module can provide a large number of deep neural network models 561 for analyzing people in video stream , scenes, etc. for structured data analysis, such as face recognition, face clustering, image search, mask detection, expression analysis, age analysis, gender analysis, liveness detection, synthetic detection, traffic flow analysis, trajectory analysis, Queuing detection, direction of travel analysis, high-altitude parabolic detection, scene recognition, image review, environmental analysis, text recognition, license plate recognition, document recognition, bill recognition, voice recognition, etc.
3)录制与回放模块:3) Recording and playback module:
该模块可以基于设定的联动策略,联动视频录制设备录制包括异常事件的视频数据,并能支持异常事件的视频回放。图5I为本公开实施例提供的一种异常事件的视频回放界面的示意图,如图5I所示,用户可以在该视频回放界面选择需要查看的视频片段571进行回放,还可以通过输入时间572、设备573、异常事件574等信息进行视频片段的筛选,从筛选出的视频片段中选择视频片段进行回放。Based on the set linkage strategy, this module can link video recording equipment to record video data including abnormal events, and can support video playback of abnormal events. FIG. 5I is a schematic diagram of a video playback interface for an abnormal event provided by an embodiment of the present disclosure. As shown in FIG. 5I, the user can select a video segment 571 to be viewed on the video playback interface for playback, and can also enter the time 572, Information such as equipment 573 and abnormal event 574 is used to screen video clips, and video clips are selected from the screened video clips for playback.
在本公开实施例中,可以利用多设备的智能联动策略对不同设备进行组合配置,在设定的联动周期下,基于不同的异常事件实现多设备之间的联动。此外,还可以利用多设备的智能联动策略对视频流中的人员特征、异常行为、场景类别等进行分析,并能利用多设备的智能联动策略完成设备的告警与精准录制,便于实时关注异常事件的发生和事后精准查找事件的视频记录。In the embodiments of the present disclosure, the intelligent linkage strategy of multiple devices can be used to combine and configure different devices, and the linkage between multiple devices can be realized based on different abnormal events under a set linkage period. In addition, the multi-device intelligent linkage strategy can be used to analyze the characteristics of personnel, abnormal behaviors, scene categories, etc. in the video stream, and the multi-device intelligent linkage strategy can be used to complete device alarms and accurate recording, which is convenient for real-time attention to abnormal events Video records of the occurrence of events and accurate search for events afterwards.
本公开实施例提供的设备联动方法,与相关技术中的设备联动方法相比,至少包括以下改进点:1)相关技术中仅在同类型的设备之间完成联动任务,本公开实施例中可以综合管控多种类型的设备,实现多种类型的设备之间的协同感知;2)相关技术中通常针对单一的主从设备完成联动的事件告警,本公开实施例中可以对设备运行信息的异常事件和视频分析的异常事件进行检测,触发多设备灵活组合的事件联动;3)相关技术中的设备之间基于单一的事件触发联动告警,本公开实施例中可以通过多种算法对多种异常事件进行并行分析,从而可以在同一时间内在同一组设备间基于运行的多个深度神经网络模型完成联动告警。Compared with the device linkage method in the related art, the device linkage method provided by the embodiment of the present disclosure includes at least the following improvements: 1) In the related art, the linkage task is only completed between devices of the same type. In the embodiment of the present disclosure, it can Comprehensive management and control of various types of equipment to achieve collaborative perception between various types of equipment; 2) In related technologies, the event alarm that is usually linked to a single master-slave equipment is completed. In the embodiment of the present disclosure, abnormal equipment operation information can be Events and abnormal events of video analysis are detected to trigger event linkage of flexible combination of multiple devices; 3) Devices in related technologies trigger linkage alarms based on a single event. Events are analyzed in parallel, so that linkage alarms can be completed based on multiple running deep neural network models among the same group of devices at the same time.
本公开实施例中,利用多设备的智能联动策略使得不同设备与视图通过统一的平台进行管理,不再需要通过多套平台管理不同设备(如监控平台管理摄像头,通行中心管理通行设备等),有效改善了跨平台间互通才可联动的问题。此外,本公开实施例中,利用深度学习,使得多种异常事件的检测以及相应的联动任务的触发更加精准,从而能够更好地综合分析异常事件的信息,也能够更加精确的查找、回看异常事件相关的视频数据。In the embodiment of the present disclosure, the intelligent linkage strategy of multiple devices is used to enable different devices and views to be managed through a unified platform, and it is no longer necessary to manage different devices through multiple platforms (such as the monitoring platform to manage cameras, the traffic center to manage traffic devices, etc.), Effectively improved the problem of interoperability between cross-platforms. In addition, in the embodiments of the present disclosure, deep learning is used to make the detection of various abnormal events and the triggering of corresponding linkage tasks more accurate, so that the information of abnormal events can be better comprehensively analyzed, and the information of abnormal events can be searched and reviewed more accurately. Video data related to abnormal events.
图6为本公开实施例提供的一种设备联动装置的组成结构示意图,如图6所示,设备联动装置600包括:第一获取部分610、检测部分620、触发部分630和保存部分640,其中:Fig. 6 is a schematic structural diagram of a device linkage device provided by an embodiment of the present disclosure. As shown in Fig. 6, the device linkage device 600 includes: a first acquisition part 610, a detection part 620, a trigger part 630 and a storage part 640, wherein :
第一获取部分610,被配置为获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备;The first acquisition part 610 is configured to acquire the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device ;
检测部分620,被配置为基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果;The detection part 620 is configured to detect the trigger data based on the abnormal event preset in the linkage strategy, and obtain a detection result;
触发部分630,被配置为响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据;The triggering part 630 is configured to trigger the linkage device to acquire image data including the abnormal event in response to the detection result being the detection of the abnormal event;
保存部分640,被配置为保存所述包括所述异常事件的图像数据。The saving part 640 is configured to save the image data including the abnormal event.
在一些实施例中,所述联动策略中的所述联动设备包括以下至少之一:图像采集设备、平台服务器。In some embodiments, the linkage device in the linkage strategy includes at least one of the following: an image acquisition device, and a platform server.
在一些实施例中,在所述触发数据为在线视频流、抓拍图像、设备运行信息中至少之一的情况下,所述联动设备为图像采集设备;所述触发部分还被配置为:向所述图像采集设备发送录制指令;接收所述图像采集设备响应于所述录制指令发送的包括所述异常事件的图像数据。In some embodiments, when the trigger data is at least one of online video streams, captured images, and device operation information, the linkage device is an image acquisition device; the trigger part is further configured to: The image acquisition device sends a recording instruction; and the image data including the abnormal event sent by the image acquisition device in response to the recording instruction is received.
在一些实施例中,在所述触发数据为已录制的视频流的情况下,所述联动设备为所述平台服务器;所述触发部分还被配置为:从所述已录制的视频流中截取包括所述异常事件的图像数据。In some embodiments, when the trigger data is a recorded video stream, the linkage device is the platform server; the trigger part is further configured to: intercept the recorded video stream Image data including the abnormal event is included.
在一些实施例中,所述联动策略还包括联动周期,所述装置还包括:设置部分,被配置为设置所述触发设备的工作时间为所述联动周期。In some embodiments, the linkage strategy further includes a linkage period, and the apparatus further includes: a setting part configured to set the working time of the trigger device as the linkage period.
在一些实施例中,所述联动策略还包括联动周期,所述检测部分还被配置为:响应于所述触发数据的发生时刻在所述联动周期内,基于所述联动策略中预设的异常事件,对所述触发数据进行检测。In some embodiments, the linkage strategy further includes a linkage period, and the detection part is further configured to: in response to the occurrence of the trigger data within the linkage period, based on the abnormality preset in the linkage strategy An event is used to detect the trigger data.
在一些实施例中,所述联动策略还包括联动周期,所述检测部分还被配置为:响应于所述触发数据的发生时刻不在所述联动周期内,丢弃所述触发数据。In some embodiments, the linkage strategy further includes a linkage period, and the detection part is further configured to: discard the trigger data in response to an occurrence time of the trigger data not within the linkage period.
在一些实施例中,所述联动设备还包括告警设备,所述装置还包括:告警部分,被配置为:响应于所述检测结果为检测到所述异常事件,触发所述告警设备输出告警信息;或者,响应于所述检测结果为未检测到所述异常事件,丢弃所述触发数据。In some embodiments, the linkage device further includes a warning device, and the apparatus further includes: a warning part configured to: trigger the warning device to output warning information in response to the detection result being that the abnormal event is detected ; or, discarding the trigger data in response to the detection result being that the abnormal event is not detected.
在一些实施例中,所述装置还包括:呈现部分,被配置为响应于对所述联动策略的配置操作,呈现所述第一配置界面;所述第一配置界面用于设置所述触发设备,为所述触发设备关联联动设备和为所述触发设备设置待检测的异常事件;第二获取部分,被配置为基于针对所述第一配置界面中所述触发设备和所述联动设备的设置操作,获取针对所述触发设备的联动策略;其中,所述触发设备与联动设备之间的数量关系包括以下之一:一对一、一对多、多对一、多对多。In some embodiments, the apparatus further includes: a presentation part configured to present the first configuration interface in response to the configuration operation on the linkage strategy; the first configuration interface is used to set the trigger device , associating a linkage device with the trigger device and setting an abnormal event to be detected for the trigger device; the second acquisition part is configured based on the settings for the trigger device and the linkage device in the first configuration interface The operation is to obtain a linkage strategy for the triggering device; wherein, the quantity relationship between the triggering device and the linkage device includes one of the following: one-to-one, one-to-many, many-to-one, and many-to-many.
在一些实施例中,所述触发数据为图像数据的情况下,所述异常事件至少包括以下至少之一:图像数据包含的对象信息与预设的对象信息不匹配;图像数据包含的第一对象信息与第二对象信息所表征的对象不匹配;图像数据包含的对象信息与预设的异常属性关联。In some embodiments, when the trigger data is image data, the abnormal event includes at least one of the following: the object information contained in the image data does not match the preset object information; the first object contained in the image data The information does not match the object represented by the second object information; the object information contained in the image data is associated with preset abnormal attributes.
在一些实施例中,所述触发数据为设备运行信息的情况下,所述异常事件包括以下至少之一:设备硬件故障;设备电源异常;设备网络异常;设备所处环境异常。In some embodiments, when the trigger data is device operation information, the abnormal event includes at least one of the following: device hardware failure; device power supply abnormality; device network abnormality; device environment abnormality.
在一些实施例中,所述触发数据为视频流的情况下,所述异常事件包括预设的异常场景;所述检测部分还被配置为:基于所述联动策略中预设的异常场景,利用与所述异常场景匹配的场景模型,对所述视频流进行检测,得到表征是否检测到所述异常场景的检测结果。In some embodiments, when the trigger data is a video stream, the abnormal event includes a preset abnormal scene; the detection part is further configured to: based on the preset abnormal scene in the linkage strategy, use The scene model matched with the abnormal scene detects the video stream, and obtains a detection result representing whether the abnormal scene is detected.
在一些实施例中,所述装置还包括:输出部分,被配置为响应于对所述异常事件的回放操作,输出包括所述异常事件的图像数据。In some embodiments, the apparatus further includes: an output section configured to output image data including the abnormal event in response to a playback operation on the abnormal event.
以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本公开装置实施例中未披露的技术细节,请参照本公开方法实施例的描述而理解。The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
在本公开实施例以及其他的实施例中,“部分”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是单元,还可以是模块也可以是非模块化的。In the embodiments of the present disclosure and other embodiments, a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course it may also be a unit, a module or a non-modular one.
需要说明的是,本公开实施例中,如果以软件功能模块的形式实现上述的设备联动方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本公开各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本公开实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present disclosure, if the above device linkage method is implemented in the form of software function modules and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the embodiments of the present disclosure or the part that contributes to the related technology can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read-only memory (Read Only Memory, ROM), magnetic disk or optical disk. As such, embodiments of the present disclosure are not limited to any specific combination of hardware and software.
本公开实施例提供一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述方法中的步骤。An embodiment of the present disclosure provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the steps in the above method when executing the program.
本公开实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程 序被处理器执行时实现上述方法中的步骤。所述计算机可读存储介质可以是瞬时性的,也可以是非瞬时性的。An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented. The computer readable storage medium may be transitory or non-transitory.
本公开实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现上述方法中的部分或全部步骤。该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。An embodiment of the present disclosure provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, a part or part of the above method is implemented. All steps. The computer program product can be specifically realized by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. Wait.
本公开实施例提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算机设备中运行时,所述计算机设备中的处理器实现上述方法中的部分或全部步骤。An embodiment of the present disclosure provides a computer program, including computer readable codes. When the computer readable codes are run in a computer device, a processor in the computer device implements part or all of the steps in the above method.
这里需要指出的是:以上存储介质、计算机程序、计算机程序产品和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本公开存储介质、计算机程序产品和设备实施例中未披露的技术细节,请参照本公开方法实施例的描述而理解。It should be pointed out here that: the above descriptions of the storage medium, computer program, computer program product, and device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to those of the method embodiments. For technical details not disclosed in the storage medium, computer program product, and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
需要说明的是,图7为本公开实施例中计算机设备的一种硬件实体示意图,如图7所示,该计算机设备700的硬件实体包括:处理器701、通信接口702和存储器703,其中:It should be noted that FIG. 7 is a schematic diagram of a hardware entity of a computer device in an embodiment of the present disclosure. As shown in FIG. 7 , the hardware entity of the computer device 700 includes: a processor 701, a communication interface 702, and a memory 703, wherein:
处理器701通常控制计算机设备700的总体操作。 Processor 701 generally controls the overall operation of computer device 700 .
通信接口702可以使计算机设备通过网络与其他终端或服务器通信。The communication interface 702 enables the computer device to communicate with other terminals or servers through the network.
存储器703配置为存储由处理器701可执行的指令和应用,还可以缓存待处理器701以及计算机设备700中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(Random Access Memory,RAM)实现。处理器701、通信接口702和存储器703之间可以通过总线704进行数据传输。The memory 703 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or processed by the processor 701 and various modules in the computer device 700 (for example, image data, audio data, voice communication data and Video communication data) can be realized by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission may be performed between the processor 701 , the communication interface 702 and the memory 703 through the bus 704 .
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本公开的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本公开的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本公开实施例的实施过程构成任何限定。上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic related to the embodiment is included in at least one embodiment of the present disclosure. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that in various embodiments of the present disclosure, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, rather than by the embodiments of the present disclosure. The implementation process constitutes any limitation. The serial numbers of the above-mentioned embodiments of the present disclosure are for description only, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
在本公开所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络 单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may be used as a single unit, or two or more units may be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in computer-readable storage media. When the program is executed, the execution includes The steps of the foregoing method embodiments; and the foregoing storage media include: removable storage devices, read-only memory (Read Only Memory, ROM), magnetic disks or optical disks and other media that can store program codes.
或者,本公开上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本公开各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present disclosure are realized in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present disclosure or the part that contributes to related technologies can be embodied in the form of software products, the computer software products are stored in a storage medium, and include several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks.
以上所述,仅为本公开的实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。The above is only the embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope of the present disclosure, and should within the protection scope of the present disclosure.
工业实用性Industrial Applicability
本公开实施例提供了一种设备联动方法、装置、设备、存储介质、程序产品及计算机程序,其中,所述方法包括:获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备;基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果;响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据;保存所述包括所述异常事件的图像数据。本公开实施例中,可以通过在联动策略中灵活地配置异常事件以及与触发设备关联的联动设备,提高设备联动的灵活性,并且能够精准地获取并保存包括异常事件的图像数据,便于异常事件的回放与分析。Embodiments of the present disclosure provide a device linkage method, device, device, storage medium, program product, and computer program, wherein the method includes: acquiring trigger data transmitted by a trigger device, and setting a linkage for the trigger device strategy; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device; based on the preset abnormal event in the linkage strategy, the trigger data is detected to obtain a detection result; in response to The detection result is that the abnormal event is detected, triggering the linkage device to acquire image data including the abnormal event; and saving the image data including the abnormal event. In the embodiment of the present disclosure, the flexibility of device linkage can be improved by flexibly configuring the abnormal event and the linkage device associated with the triggering device in the linkage strategy, and the image data including the abnormal event can be accurately acquired and saved, which facilitates the abnormal event playback and analysis.

Claims (26)

  1. 一种设备联动方法,应用于平台服务器,所述方法包括:A device linkage method applied to a platform server, the method comprising:
    获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备;Acquiring the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device;
    基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果;Detecting the trigger data based on the preset abnormal events in the linkage strategy to obtain a detection result;
    响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据;In response to the detection result being the detection of the abnormal event, triggering the linkage device to acquire image data including the abnormal event;
    保存所述包括所述异常事件的图像数据。The image data including the abnormal event is saved.
  2. 根据权利要求1所述的方法,其中,所述联动策略中的所述联动设备包括以下至少之一:图像采集设备、平台服务器。The method according to claim 1, wherein the linkage device in the linkage strategy includes at least one of the following: an image acquisition device, and a platform server.
  3. 根据权利要求2所述的方法,其中,在所述触发数据为在线视频流、抓拍图像、设备运行信息中至少之一的情况下,所述联动设备为图像采集设备;The method according to claim 2, wherein, when the trigger data is at least one of online video streams, snapshot images, and device operation information, the linkage device is an image acquisition device;
    所述触发所述联动设备获取包括所述异常事件的图像数据,包括:The triggering the linkage device to acquire the image data including the abnormal event includes:
    向所述图像采集设备发送录制指令;sending a recording instruction to the image acquisition device;
    接收所述图像采集设备响应于所述录制指令发送的包括所述异常事件的图像数据。receiving the image data including the abnormal event sent by the image acquisition device in response to the recording instruction.
  4. 根据权利要求2或3所述的方法,其中,在所述触发数据为已录制的视频流的情况下,所述联动设备为所述平台服务器;The method according to claim 2 or 3, wherein, when the trigger data is a recorded video stream, the linkage device is the platform server;
    所述触发所述联动设备获取包括所述异常事件的图像数据,包括:The triggering the linkage device to acquire the image data including the abnormal event includes:
    从所述已录制的视频流中截取包括所述异常事件的图像数据。Image data including the abnormal event is intercepted from the recorded video stream.
  5. 根据权利要求1至4任一项所述的方法,其中,所述联动策略还包括联动周期,所述方法还包括以下之一:The method according to any one of claims 1 to 4, wherein the linkage strategy further includes a linkage period, and the method further includes one of the following:
    设置所述触发设备的工作时间为所述联动周期;Setting the working time of the trigger device as the linkage cycle;
    响应于所述触发数据的发生时刻在所述联动周期内,基于所述联动策略中预设的异常事件,对所述触发数据进行检测。In response to the occurrence time of the trigger data being within the linkage period, the trigger data is detected based on an abnormal event preset in the linkage strategy.
  6. 根据权利要求5所述的方法,所述方法还包括:响应于所述触发数据的发生时刻不在所述联动周期内,丢弃所述触发数据。The method according to claim 5, further comprising: discarding the trigger data in response to the occurrence time of the trigger data not within the linkage period.
  7. 根据权利要求2至6任一项所述的方法,其中,所述联动设备还包括告警设备,所述方法还包括以下之一:The method according to any one of claims 2 to 6, wherein the linkage device further includes an alarm device, and the method further includes one of the following:
    响应于所述检测结果为检测到所述异常事件,触发所述告警设备输出告警信息;triggering the alarm device to output alarm information in response to the detection result being the detection of the abnormal event;
    响应于所述检测结果为未检测到所述异常事件,丢弃所述触发数据。In response to the detection result being that the abnormal event is not detected, the trigger data is discarded.
  8. 根据权利要求1至7任一项所述的方法,所述方法还包括:The method according to any one of claims 1 to 7, further comprising:
    响应于对所述联动策略的配置操作,呈现所述第一配置界面;所述第一配置界面用于设置所述触发设备,为所述触发设备关联联动设备和为所述触发设备设置待检测的异常事件;In response to the configuration operation of the linkage policy, the first configuration interface is presented; the first configuration interface is used to set the trigger device, associate the trigger device with a linkage device and set the trigger device to be detected abnormal events;
    基于针对所述第一配置界面中所述触发设备和所述联动设备的设置操作,获取针对所述触发设备的联动策略;Acquiring a linkage strategy for the trigger device based on the setting operation for the trigger device and the linkage device in the first configuration interface;
    其中,所述触发设备与联动设备之间的数量关系包括以下之一:一对一、一对多、多对一、多对多。Wherein, the quantitative relationship between the triggering device and the linkage device includes one of the following: one-to-one, one-to-many, many-to-one, and many-to-many.
  9. 根据权利要求1至8任一项所述的方法,其中,所述触发数据为图像数据的情况下,所述异常事件至少包括以下至少之一:The method according to any one of claims 1 to 8, wherein, when the trigger data is image data, the abnormal event includes at least one of the following:
    图像数据包含的对象信息与预设的对象信息不匹配;The object information contained in the image data does not match the preset object information;
    图像数据包含的第一信息与第二信息不匹配;The first information contained in the image data does not match the second information;
    图像数据包含的对象信息与预设的异常属性关联;The object information contained in the image data is associated with preset abnormal attributes;
    所述触发数据为设备运行信息的情况下,所述异常事件包括以下至少之一:In the case where the trigger data is equipment operation information, the abnormal event includes at least one of the following:
    设备硬件故障;equipment hardware failure;
    设备电源异常;The power supply of the equipment is abnormal;
    设备网络异常;The device network is abnormal;
    设备所处环境异常。The environment of the device is abnormal.
  10. 根据权利要求1至9任一项所述的方法,其中,所述触发数据为视频流的情况下,所述异常事件包括预设的异常场景;The method according to any one of claims 1 to 9, wherein, when the trigger data is a video stream, the abnormal event includes a preset abnormal scene;
    所述基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果,包括:The detection of the trigger data based on the preset abnormal events in the linkage strategy to obtain a detection result includes:
    基于所述联动策略中预设的异常场景,利用与所述异常场景匹配的场景模型,对所述视频流进行检测,得到表征是否检测到所述异常场景的检测结果。Based on the abnormal scene preset in the linkage strategy, the video stream is detected by using a scene model matching the abnormal scene, and a detection result indicating whether the abnormal scene is detected is obtained.
  11. 根据权利要求1至10任一项所述的方法,所述方法还包括:The method according to any one of claims 1 to 10, further comprising:
    响应于对所述异常事件的回放操作,输出包括所述异常事件的图像数据。Image data including the abnormal event is output in response to a playback operation of the abnormal event.
  12. 一种设备联动装置,包括:A device linkage device, comprising:
    第一获取部分,被配置为获取触发设备传输的触发数据,和为所述触发设备所设置的联动策略;所述联动策略至少包括预设的异常事件和与所述触发设备关联的联动设备;The first acquisition part is configured to acquire the trigger data transmitted by the trigger device, and the linkage strategy set for the trigger device; the linkage strategy includes at least a preset abnormal event and a linkage device associated with the trigger device;
    检测部分,被配置为基于所述联动策略中预设的异常事件,对所述触发数据进行检测,得到检测结果;The detection part is configured to detect the trigger data based on the abnormal event preset in the linkage strategy, and obtain a detection result;
    触发部分,被配置为响应于所述检测结果为检测到所述异常事件,触发所述联动设备获取包括所述异常事件的图像数据;A triggering part configured to trigger the linkage device to acquire image data including the abnormal event in response to the detection result being the detection of the abnormal event;
    保存部分,被配置为保存所述包括所述异常事件的图像数据。A saving section configured to save the image data including the abnormal event.
  13. 根据权利要求12所述的装置,其中,所述联动策略中的所述联动设备包括以下至少之一:图像采集设备、平台服务器。The apparatus according to claim 12, wherein the linkage device in the linkage strategy includes at least one of the following: an image acquisition device, and a platform server.
  14. 根据权利要求13所述的装置,其中,在所述触发数据为在线视频流、抓拍图像、设备运行信息中至少之一的情况下,所述联动设备为图像采集设备;所述触发部分还被配置为:向所述图像采集设备发送录制指令;接收所述图像采集设备响应于所述录制指令发送的包括所述异常事件的图像数据。The device according to claim 13, wherein, when the trigger data is at least one of online video streams, snapped images, and device operation information, the linkage device is an image acquisition device; the trigger part is further It is configured to: send a recording instruction to the image acquisition device; receive image data including the abnormal event sent by the image acquisition device in response to the recording instruction.
  15. 根据权利要求13或14所述的装置,其中,在所述触发数据为已录制的视频流的情况下,所述联动设备为所述平台服务器;所述触发部分还被配置为:从所述已录制的视频流中截取包括所述异常事件的图像数据。The device according to claim 13 or 14, wherein, when the trigger data is a recorded video stream, the linkage device is the platform server; the trigger part is further configured to: from the Image data including the abnormal event is intercepted from the recorded video stream.
  16. 根据权利要求12至15中任一项所述的装置,其中,所述联动策略还包括联动周期,所述检测部分还被配置为:响应于所述触发数据的发生时刻在所述联动周期内,基于所述联动策略中预设的异常事件,对所述触发数据进行检测;或者,所述装置还包括:设置部分,被配置为设置所述触发设备的工作时间为所述联动周期。The device according to any one of claims 12 to 15, wherein the linkage strategy further includes a linkage period, and the detection part is further configured to: respond to the trigger data occurring within the linkage period , detecting the trigger data based on an abnormal event preset in the linkage strategy; or, the device further includes: a setting part configured to set the working time of the trigger device as the linkage period.
  17. 根据权利要求16所述的装置,其中,所述检测部分还被配置为:响应于所述触发数据的发生时刻不在所述联动周期内,丢弃所述触发数据。The device according to claim 16, wherein the detection part is further configured to: discard the trigger data in response to the occurrence time of the trigger data not within the linkage period.
  18. 根据权利要求13至17中任一项所述的装置,其中,所述联动设备还包括告警设备,所述装置还包括:告警部分,被配置为:响应于所述检测结果为检测到所述异常事件,触发所述告警设备输出告警信息;或者,响应于所述检测结果为未检测到所述异常事件,丢弃所述触发数据。The device according to any one of claims 13 to 17, wherein the linkage device further comprises an alarm device, and the device further comprises: an alarm part configured to: detect the An abnormal event, triggering the alarm device to output alarm information; or, in response to the detection result that the abnormal event is not detected, discarding the trigger data.
  19. 根据权利要求12至18中任一项所述的装置,其中,所述装置还包括:呈现部分,被配置为响应于对所述联动策略的配置操作,呈现所述第一配置界面;所述第一配置界面用于设置所述触发设备,为所述触发设备关联联动设备和为所述触发设备设置 待检测的异常事件;第二获取部分,被配置为基于针对所述第一配置界面中所述触发设备和所述联动设备的设置操作,获取针对所述触发设备的联动策略;其中,所述触发设备与联动设备之间的数量关系包括以下之一:一对一、一对多、多对一、多对多。The device according to any one of claims 12 to 18, wherein the device further comprises: a presentation part configured to present the first configuration interface in response to a configuration operation on the linkage strategy; the The first configuration interface is used to set the trigger device, associate the trigger device with a linkage device and set the abnormal event to be detected for the trigger device; the second acquisition part is configured based on the first configuration interface The setting operation of the trigger device and the linkage device obtains a linkage strategy for the trigger device; wherein, the quantitative relationship between the trigger device and the linkage device includes one of the following: one-to-one, one-to-many, Many-to-one, many-to-many.
  20. 根据权利要求12至19中任一项所述的装置,其中,所述触发数据为图像数据的情况下,所述异常事件至少包括以下至少之一:图像数据包含的对象信息与预设的对象信息不匹配;图像数据包含的第一对象信息与第二对象信息所表征的对象不匹配;图像数据包含的对象信息与预设的异常属性关联;The device according to any one of claims 12 to 19, wherein, when the trigger data is image data, the abnormal event includes at least one of the following: object information contained in image data and preset object information The information does not match; the first object information contained in the image data does not match the object represented by the second object information; the object information contained in the image data is associated with preset abnormal attributes;
    所述触发数据为设备运行信息的情况下,所述异常事件包括以下至少之一:设备硬件故障;设备电源异常;设备网络异常;设备所处环境异常。When the trigger data is device operation information, the abnormal event includes at least one of the following: device hardware failure; device power supply abnormality; device network abnormality; device environment abnormality.
  21. 根据权利要求12至20中任一项所述的装置,其中,所述触发数据为视频流的情况下,所述异常事件包括预设的异常场景;所述检测部分还被配置为:基于所述联动策略中预设的异常场景,利用与所述异常场景匹配的场景模型,对所述视频流进行检测,得到表征是否检测到所述异常场景的检测结果。The device according to any one of claims 12 to 20, wherein when the trigger data is a video stream, the abnormal event includes a preset abnormal scene; the detection part is further configured to: based on the The abnormal scene preset in the linkage strategy is used, and the scene model matching the abnormal scene is used to detect the video stream, and a detection result representing whether the abnormal scene is detected is obtained.
  22. 根据权利要求12至21中任一项所述的装置,其中,所述装置还包括:输出部分,被配置为响应于对所述异常事件的回放操作,输出包括所述异常事件的图像数据。The apparatus according to any one of claims 12 to 21, wherein the apparatus further comprises an output section configured to output image data including the abnormal event in response to a playback operation of the abnormal event.
  23. 一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至11任一项所述方法中的步骤。A computer device, comprising a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the method described in any one of claims 1 to 11 when executing the computer program step.
  24. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现权利要求1至11任一项所述方法中的步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method of any one of claims 1 to 11 are realized.
  25. 一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现权利要求1至11中任一项所述方法中的步骤。A computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, when the computer program is read and executed by a computer, it realizes any one of claims 1 to 11 steps in the method.
  26. 一种计算机程序,包括计算机可读代码,在所述计算机可读代码在计算机设备中运行的情况下,所述计算机设备中的处理器实现权利要求1至11中任一项所述方法中的步骤。A computer program, comprising computer readable code, when the computer readable code is run in a computer device, a processor in the computer device implements the method in any one of claims 1 to 11 step.
PCT/CN2022/076210 2021-07-07 2022-02-14 Device linkage method and apparatus, and device, storage medium, program product and computer program WO2023279716A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110765584.1A CN113486799A (en) 2021-07-07 2021-07-07 Device linkage method, device, storage medium and program product
CN202110765584.1 2021-07-07

Publications (1)

Publication Number Publication Date
WO2023279716A1 true WO2023279716A1 (en) 2023-01-12

Family

ID=77941663

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/076210 WO2023279716A1 (en) 2021-07-07 2022-02-14 Device linkage method and apparatus, and device, storage medium, program product and computer program

Country Status (3)

Country Link
CN (1) CN113486799A (en)
TW (1) TW202303399A (en)
WO (1) WO2023279716A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486799A (en) * 2021-07-07 2021-10-08 深圳市商汤科技有限公司 Device linkage method, device, storage medium and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180124087A1 (en) * 2015-07-07 2018-05-03 Huawei Technologies Co., Ltd. Method, apparatus, and system for detecting terminal device anomaly
CN108733005A (en) * 2017-04-21 2018-11-02 北京京东尚科信息技术有限公司 A kind of method and device of control smart machine linkage
CN110704229A (en) * 2019-09-29 2020-01-17 苏州浪潮智能科技有限公司 Log recording method, system, device and storage medium when storage system is abnormal
CN111241050A (en) * 2020-01-06 2020-06-05 浪潮软件集团有限公司 Linkage analysis system and method for big data platform
CN112230616A (en) * 2020-10-28 2021-01-15 腾讯科技(深圳)有限公司 Linkage control method and device and linkage middleware
CN113486799A (en) * 2021-07-07 2021-10-08 深圳市商汤科技有限公司 Device linkage method, device, storage medium and program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180124087A1 (en) * 2015-07-07 2018-05-03 Huawei Technologies Co., Ltd. Method, apparatus, and system for detecting terminal device anomaly
CN108733005A (en) * 2017-04-21 2018-11-02 北京京东尚科信息技术有限公司 A kind of method and device of control smart machine linkage
CN110704229A (en) * 2019-09-29 2020-01-17 苏州浪潮智能科技有限公司 Log recording method, system, device and storage medium when storage system is abnormal
CN111241050A (en) * 2020-01-06 2020-06-05 浪潮软件集团有限公司 Linkage analysis system and method for big data platform
CN112230616A (en) * 2020-10-28 2021-01-15 腾讯科技(深圳)有限公司 Linkage control method and device and linkage middleware
CN113486799A (en) * 2021-07-07 2021-10-08 深圳市商汤科技有限公司 Device linkage method, device, storage medium and program product

Also Published As

Publication number Publication date
TW202303399A (en) 2023-01-16
CN113486799A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
Laufs et al. Security and the smart city: A systematic review
US10614627B2 (en) Holographic technology implemented security solution
CN110225299B (en) Video monitoring method and device, computer equipment and storage medium
US10424175B2 (en) Motion detection system based on user feedback
US11069214B2 (en) Event entity monitoring network and method
US20220092881A1 (en) Method and apparatus for behavior analysis, electronic apparatus, storage medium, and computer program
AU2019295856B2 (en) Object tracking using disparate monitoring systems
CN108269333A (en) Face identification method, application server and computer readable storage medium
KR102237086B1 (en) Apparatus and method for controlling a lobby phone that enables video surveillance through a communication terminal that can use a 5G mobile communication network based on facial recognition technology
CN111414873A (en) Alarm prompting method, device and alarm system based on wearing state of safety helmet
US20200401853A1 (en) Smart video surveillance system using a neural network engine
US11659144B1 (en) Security video data processing systems and methods
US20140266670A1 (en) Home Surveillance and Alert triggering system
Casado et al. Multi‐agent system for knowledge‐based event recognition and composition
WO2023279716A1 (en) Device linkage method and apparatus, and device, storage medium, program product and computer program
CN110895663B (en) Two-wheel vehicle identification method and device, electronic equipment and monitoring system
Bhargavi et al. Semantic intrusion detection with multisensor data fusion using complex event processing
US20220165140A1 (en) System and method for image analysis based security system
CN116308955A (en) Intelligent community for health care management based on AI artificial intelligence
Margapuri et al. Pibase: An iot-based security system using google firebase and raspberry pi
WO2022089220A1 (en) Image data processing method and apparatus, device, storage medium, and product
US11676439B2 (en) Face authentication system and face authentication method
CN115761614A (en) Abnormal behavior target detection system based on multi-view deep learning algorithm
US11017240B2 (en) System and method for image analysis based security system
US10922349B1 (en) Filtering remote access monitoring data

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE