CN109977260B - Video acquisition method, device, system, electronic equipment and storage medium - Google Patents

Video acquisition method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN109977260B
CN109977260B CN201910111854.XA CN201910111854A CN109977260B CN 109977260 B CN109977260 B CN 109977260B CN 201910111854 A CN201910111854 A CN 201910111854A CN 109977260 B CN109977260 B CN 109977260B
Authority
CN
China
Prior art keywords
camera
video
log
target
sub
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910111854.XA
Other languages
Chinese (zh)
Other versions
CN109977260A (en
Inventor
赵子钧
廖子铭
游延筠
刘备
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lutuo Technology Co Ltd
Original Assignee
Shenzhen Lutuo Technology Co Ltd
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 Shenzhen Lutuo Technology Co Ltd filed Critical Shenzhen Lutuo Technology Co Ltd
Priority to CN201910111854.XA priority Critical patent/CN109977260B/en
Publication of CN109977260A publication Critical patent/CN109977260A/en
Application granted granted Critical
Publication of CN109977260B publication Critical patent/CN109977260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video acquisition method, a device, a system, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a log selection instruction for an equipment log, wherein the equipment log comprises a trigger event of the sub-equipment and trigger time corresponding to the trigger event, and the log selection instruction is used for selecting target sub-equipment and a target log of the target sub-equipment; and acquiring the video of the camera corresponding to the target log according to the log selection instruction. According to the method and the device, the device log is associated with the camera video, so that a user can obtain the corresponding camera video by selecting the log, the user can conveniently check the video triggered by the device event, and the space utilization rate of the storage of the terminal can be correspondingly improved.

Description

Video acquisition method, device, system, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for acquiring a video.
Background
Along with the rise of intelligent house, people's life is more and more pressed close to as the important one in the intelligent home systems to the intelligent camera, and its application is also more and more diversified, for example security protection function, old man's nurse, sprout pet guardianship and so on.
At present, the intelligent camera records and stores video files (cloud or local) in the field of view of a monitored area, and when a user checks videos, the video files recorded by the camera need to be screened and searched, so that the operation efficiency is low. With the application of high-pixel image sensors, the images of the cameras become clearer, and video files become larger.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, a system, an electronic device, and a storage medium for acquiring a video, which can facilitate a user to check a video triggered by a device event.
In a first aspect, an embodiment of the present application provides a video acquisition method, including: acquiring a log selection instruction for an equipment log, wherein the equipment log comprises a trigger event of a sub-device and trigger time corresponding to the trigger event, and the log selection instruction is used for selecting a target sub-device and a target log of the target sub-device; and acquiring the video of the camera corresponding to the target log according to the log selection instruction.
In a second aspect, an embodiment of the present application provides a video recording obtaining apparatus, where the apparatus includes: the log selection module is used for acquiring a log selection instruction for an equipment log, wherein the equipment log comprises a trigger event of a piece of sub-equipment and trigger time corresponding to the trigger event, and the log selection instruction is used for selecting a target piece of sub-equipment and a target log of the target piece of sub-equipment; and the video acquisition module is used for acquiring the video of the camera corresponding to the target log according to the log selection instruction.
In a third aspect, an embodiment of the present application provides an electronic device, which includes: a memory; one or more processors coupled with the memory; one or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of the first aspect as described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which program codes are stored, and the program codes can be called by a processor to execute the method according to the first aspect.
The video acquisition method, the video acquisition device, the video acquisition system, the electronic device and the storage medium provided by the embodiment of the application can be used for firstly acquiring a log selection instruction aiming at a device log, wherein the device log comprises a trigger event of the sub-device and trigger time corresponding to the trigger event, the log selection instruction is used for selecting a target sub-device and a target log of the target sub-device, and then acquiring a video of a camera corresponding to the target log according to the log selection instruction. According to the method and the device, the device log is associated with the camera video, so that a user can obtain the corresponding camera video by selecting the log, the user can conveniently check the video triggered by the device event, and the space utilization rate of the storage of the terminal can be correspondingly improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application environment suitable for use in embodiments of the present application;
fig. 2 is a schematic flowchart illustrating a video capture method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a video capture method according to another embodiment of the present application;
fig. 4 is a schematic flowchart illustrating steps S401 to S404 in a video recording acquisition method according to another embodiment of the present application;
fig. 5 is a schematic flowchart illustrating steps S501 to S502 in a video recording acquisition method according to another embodiment of the present application;
fig. 6 is a schematic flowchart illustrating steps S601 to S602 in a video recording acquisition method according to another embodiment of the present application;
fig. 7 is a block diagram illustrating a video recording acquisition apparatus according to an embodiment of the present application;
fig. 8 is a block diagram illustrating a structure of a video recording acquisition system according to an embodiment of the present application;
fig. 9 is a block diagram illustrating a configuration of an electronic device for executing a video recording acquisition method according to an embodiment of the present application;
fig. 10 shows a storage unit for storing or carrying program codes for implementing the video recording acquisition method according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Along with the rise of intelligent house, people's life is more and more pressed close to as the important one in the intelligent home systems to the intelligent camera, and its application is also more and more diversified, for example security protection function, old man's nurse, sprout pet guardianship and so on.
At present, the smart camera records and stores (cloud or local) video files.
At present, when a user checks a video, the video file recorded by the camera needs to be screened and searched, and the operation efficiency is low. With the application of high-pixel image sensors, the images of the cameras become clearer, and video files become larger.
The inventor finds that, as the content of the video recorded by the intelligent camera is more, a user needs to watch and screen the complete video of a certain event in a series of video files one by one, and the cost of labor and time is higher.
In addition, with the application of a high-pixel image sensor, the image of the camera becomes clearer and clearer, and meanwhile, the video file is larger and larger, so that a user needs to download a large amount of video files from a cloud or a local camera when the user wants to check the video recorded by the camera from other terminals, and the storage pressure of the terminal is increased.
How to facilitate the user to quickly find the required video and meet the application differentiation of various scenes of the user becomes more and more important.
Based on the above problems, the inventor researches the difficulty of viewing videos of users at present, and more comprehensively considers the requirements of various scenes, and provides a video acquisition method, a device, a system, an electronic device and a storage medium according to the embodiment of the application.
In order to better understand a video acquisition method, an apparatus, a system, an electronic device, and a storage medium provided in the embodiments of the present application, an application environment suitable for the embodiments of the present application is described below.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment suitable for the embodiment of the present application. The video acquisition method provided by the embodiment of the application can be applied to the intelligent control system 10 shown in fig. 1. The intelligent control system 10 includes a sub-device 110, a user terminal 120, a router, a server, and a gateway. The server may be a traditional server or a cloud server, which is not limited herein. The number of the gateways is at least one, wherein the server is respectively connected with the at least one gateway, for example, the server can be respectively connected with the at least one gateway through a wireless network based on a router for data interaction between the server and the gateway.
The sub-devices 110 may include, but are not limited to, various types of smart sensors, smart controllers, lights, air conditioners, curtains, televisions, refrigerators, fans, and other smart home devices. The number of the sub-devices 110 is at least one, and the at least one sub-device 110 is respectively connected to at least one gateway, for example, one gateway is connected to a plurality of sub-devices 110, or a plurality of gateways are connected to one sub-device 110, which is not limited herein. The gateway and the sub-device 110 may be connected in a wireless or wired manner, such as bluetooth, Z-Wave, WiFi, or ZigBee.
The user terminal 120 may be connected to the gateway through a wireless network, and the user terminal 120 may be a personal computer, a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. In some embodiments, the user terminal 120 is used for interaction with a user, and the user can communicate with the gateway wirelessly based on a router through the user terminal 120. In addition, the user can add an account information at the same time between the gateway and the user terminal 120, and the information synchronization between the gateway and the user terminal 120 is realized through the account information.
As a way, the sub-device 110 is connected to a gateway, and the user terminal 120 may interact with the gateway through a local area network path (i.e., user terminal-router-gateway), so as to implement interaction with the sub-device 110 connected to the gateway. Further, the user terminal 120 may interact with the gateway through a wide area network path (i.e., user terminal-server-gateway), so as to interact with the sub-device 110 connected to the gateway.
As another way, the sub-device 110 may also establish communication with the user terminal 120 to perform interaction after being connected to the router in a wireless communication manner without going through a gateway. Further, the sub-device 110 may also establish communication with the user terminal 120 through a wireless communication module such as a ZigBee module or a bluetooth module, and perform interaction.
In some embodiments, the kid device 110 may also be integrated with a gateway. For example, the camera gateway may have a function of a smart camera, and may also be used as a gateway to control other connected sub-devices and interact with the user terminal 120, a server, and the like.
The following describes in detail a video acquisition method, an apparatus, a system, a sub-device, and a storage medium provided in the embodiments of the present application with specific embodiments.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a video acquisition method according to an embodiment of the present application. The flow shown in fig. 2 will be described in detail below. The video acquisition method may specifically include the following steps:
step S201: a log selection instruction for a device log is obtained.
In this embodiment, the device log includes a trigger event of the sub device and a trigger time corresponding to the trigger event, and the log selection instruction is used to select the target sub device and a target log of the target sub device.
The sub-devices can be various types of intelligent sensors, intelligent controllers, lamps, air conditioners, curtains, televisions, refrigerators, fans and other intelligent household appliances in an intelligent home scene, and each sub-device has a trigger condition associated with the function of the sub-device.
For example, for a human body infrared sensor, in an automatic scheme, when a person is detected to pass through, a signal for opening doors and windows is generated and sent to a gateway, so that the gateway can control the opening of intelligent doors and windows according to the signal. In this case, the triggering condition of the human body infrared sensor may be regarded as "the passage of a person is detected".
It can be understood that, when a certain event satisfies the trigger condition of the sub-device, the sub-device records the event and the time when the event occurs, and generates a corresponding device log, where the event is the trigger event of the sub-device.
In some embodiments, a subset of the same type may have multiple corresponding trigger event types. For example, the smart door sensor has trigger events such as "door open" and "door closed"; dynamic and static stickers (a smart sensor attached to other objects) have triggering events such as "sensing tilt" and "item touched".
As a mode, after the child device generates the device log, the child device may report the device log to the cloud server, and implement periodic or real-time synchronization of the device log with the cloud server. And when the user terminal starts the corresponding intelligent home application program client and is connected to the cloud server, acquiring the device log of the sub-device bound by the user terminal from the cloud server.
As a mode, after the user terminal obtains the device log, the user can check the device log reported by each currently bound sub-device through the corresponding smart home application client. The device log records the type of the trigger event and the occurrence time of the trigger event, so that a user can conveniently monitor the running state of each device in the intelligent home environment.
In some embodiments, a user may select a certain log in the device log (the device log may be selected by operating the user terminal in a virtual key, a physical key, voice, or the like), and the user terminal may generate a corresponding log selection instruction after detecting the operation of the user.
In this embodiment, the user terminal may be a mobile terminal such as a smart phone, a tablet computer, and a smart watch, or may be a terminal device such as a computer.
Step S202: and acquiring the video of the camera corresponding to the target log according to the log selection instruction.
In this embodiment, after the log selection instruction is obtained, the camera record associated with the target log corresponding to the log selection instruction may be obtained.
As one way, the camera may be a camera gateway, which has both the functions of a camera (recording an image and outputting in the format of a video file) and an intelligent gateway.
As a manner, the trigger time corresponding to the trigger event in the device log may be matched with the time generated by the image in the video recorded by the camera, and if the recording time of a certain frame of image in the video recorded by the camera is the same as the trigger time, or the trigger time falls within the recording time interval of two consecutive frames of images, or the time difference between the trigger time and any frame of image in the video is within a preset range, it may be considered that the trigger event has the corresponding video recorded by the camera, and at this time, the device log corresponding to the trigger event may be associated with the video recorded by the camera.
In some embodiments, the camera records images all the way through the startup process, and the output camera video is stored in the local or external memory of the camera in the form of a video file.
In some embodiments, the camera may also have a trigger event corresponding thereto, and the camera records when the trigger event occurs. In this case, the corresponding camera record may be acquired not only by selecting the device log of the camera itself but also by selecting the device logs of other sub-devices.
As one approach, the camera recordings for the same device log may come from different cameras. If a plurality of cameras are arranged in the intelligent home environment, and when a trigger event corresponding to a target log occurs, the cameras are used for recording, at the moment, a user terminal can acquire a plurality of video files from the cameras corresponding to the target log, so that the user can be helped to more comprehensively know the real situation of the event from a plurality of positions and angles.
It can be understood that, because the user terminal can only obtain the video camera corresponding to the target log after selecting the target log, compared with the traditional video acquisition mode of completely downloading and screening, the video camera required by the user can be more accurately obtained, the local storage pressure of the user terminal is correspondingly reduced, and the space utilization rate of the terminal storage is improved.
As a possible implementation scenario, after the user operates the user terminal to open the smart home application, the method can select the sub-device on the main interface of the application program, and choose to jump to the device log interface corresponding to the sub-device, the user terminal can request the cloud server to obtain (or read from the local memory) the latest log information of the sub-device, the cloud server returns an array containing the log information, the user terminal analyzes the array to obtain the specific trigger event type and the corresponding trigger time, and the log is displayed on an interactive interface (such as a touch display screen) in the form of an equipment log, a user can select a certain log in the equipment log (at this time, the user terminal obtains a log selection instruction for a target log in the equipment log), and the user terminal can request the camera (or a gateway or a cloud server) for the camera video corresponding to the entry mark log.
According to the video acquisition method provided by one embodiment of the application, the device log and the camera videos can be associated, so that a user can acquire the corresponding camera videos by selecting the log, the user can conveniently check the videos triggered by the device event, and the space utilization rate of the terminal storage can be correspondingly improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a video capture method according to another embodiment of the present application. As will be described in detail with respect to the flow shown in fig. 3, the video capture method may specifically include the following steps:
step S301: a log selection instruction for a device log is obtained.
In this embodiment, the device log includes a trigger event of the sub device and a trigger time corresponding to the trigger event, and the log selection instruction is used to select the target sub device and a target log of the target sub device. For details, reference may be made to the related description in the previous embodiment, and further description is omitted here.
Step S302: and acquiring a camera list corresponding to the target sub-equipment according to the log selection instruction.
In this embodiment, after the log selection instruction is acquired, the camera list associated with the target sub-device corresponding to the target log may be acquired first. In this embodiment, the camera list may include at least one of the following cameras:
the upper-level gateway camera of the target sub-device;
a camera under the associated account of the target sub-device;
and the camera is associated with the position information of the target sub-device.
The upper-level gateway camera of the target sub-device may be a gateway camera (an all-in-one machine of a camera and a gateway) for controlling the target sub-device, or a camera controlled by the gateway for controlling the target sub-device. For example, an a-gateway camera and an intelligent human body sensor are installed in a room a, the intelligent human body sensor is connected with the a-gateway camera and controlled by the a-gateway camera, the a-gateway camera is a previous-level gateway camera of the intelligent human body sensor of the sub-device, the a-gateway camera can shoot videos in various situations in the room a, when a person enters the room a, the intelligent human body sensor is triggered and generates a corresponding device log, at the moment, the a-gateway camera may shoot the video of the corresponding person entering the room a, and at the moment, the video can be associated with the device log of the intelligent human body sensor of the sub-device. It is understood that the upper level gateway camera of the sub-device may be in the same environment (e.g., in the same room) as the sub-device, or may be in a different environment (e.g., respectively installed in different rooms) from the sub-device. It should be noted that, since a user may need to obtain a video recording in not only the environment of the sub-device but also in other environments when an event occurs, so as to restore the whole process of the event, it is meaningful even if the video recording of the camera is not the video recording in the environment of the sub-device, and similarly, whether the camera and the sub-device associated with the sub-device are in the same environment or not has significance.
The camera under the associated account of the target sub-device may be a gateway camera (all-in-one) added under the user account added with the target sub-device, or a camera controlled by a gateway added under the user account. Taking the all-in-one gateway camera as an example, the room a is installed with a gateway camera and a target sub-device, and the user account added with the target sub-device is also added with a B gateway camera installed in the room B and a C gateway camera installed in the room C, and at this time, the cameras under the associated account of the target sub-device at least include the a gateway camera, the B gateway camera and the C gateway camera. It should be noted that there may be more than one user account added to the same sub-device, and in this case, the camera list corresponding to the target sub-device may include only the camera (or gateway camera) added under the current account, or may include cameras added under other accounts associated with the target sub-device, which is not limited herein.
The camera associated with the location information of the target sub-device may be a camera (or gateway camera) associated with the actual location of the target sub-device. For example, if the preset moving path of the intelligent sweeping robot is from room a to room B to room C, the cameras associated with the position information of the intelligent sweeping robot may include a gateway camera set in room a, a gateway camera set in room B, and a gateway camera set in room C. It is to be understood that, since the location information of the target sub-device may be changed, the cameras associated with the location information may also be the same or different, and if the locations of the target sub-device at the time of the two events are different, the cameras and camera videos associated with the two corresponding device logs may also be different, and the cameras in the related camera list may also be different.
In some embodiments, the camera list associated with the child device may be customized by a user through an intelligent home application client on the user terminal, that is, the user may add, modify, or delete the camera associated with the child device in the camera list according to the actual need of the user. It should be understood that the cameras in the camera list may not be limited to the above three types, and may also include cameras that are not associated with the slave control relationship, the account relationship, and the geographic location of the sub-device, and may be set by the user according to actual needs, which is not limited herein.
Step S303: a list of cameras is displayed.
In this embodiment, after the camera list is acquired, the camera list may be displayed on an interactive interface (for example, a touch display screen) of the user terminal, so that the user may select a camera that needs to acquire a video.
Step S304: and acquiring a camera selection instruction, and acquiring a camera video corresponding to the target log in the target camera according to the camera selection instruction.
In this embodiment, the camera selection instruction is used to select a target camera in the camera list. After the camera list is displayed and a camera selection instruction for a target camera on the camera list is acquired, a request may be made to the corresponding target camera (or a cloud server or a gateway) to acquire a camera record corresponding to a target log recorded by the target camera.
In this embodiment, as shown in fig. 4, as one mode, step S304 may include the following steps:
step S401: a camera selection instruction acting on a target camera in the camera list is acquired.
In this embodiment, the process of acquiring the camera selection instruction may refer to the process of acquiring the log selection instruction.
Step S402: and requesting the target camera to acquire the video index.
In this embodiment, after the camera selection instruction is obtained, a video index including video information and time information corresponding to the video information may be requested from the target camera.
In this embodiment, after the video index is obtained in step S402, the video of the camera corresponding to the target log may be obtained based on the video index.
Step S403: and judging whether the trigger time corresponding to the trigger event recorded in the target log is searched in the video index or not.
In this embodiment, if the trigger time corresponding to the trigger event recorded in the target log matches the time information corresponding to a certain piece of video recording information in the video recording index, it may be considered that the trigger time can be retrieved in the video recording index.
For example, when the names of a plurality of video files, and the start time and the end time of the plurality of videos are included in the video index, and the gateway camera and the user terminal are synchronized in time, if the trigger time corresponding to the trigger event, which is the target log, is included in any one of a plurality of time periods from the start time to the end time of the plurality of videos, it is considered that the trigger time of the target log can be retrieved from the video index.
In this embodiment, when the trigger time corresponding to the trigger event recorded in the target log is retrieved from the video index, step S404 may be executed; when the trigger time corresponding to the trigger event recorded in the target log is not retrieved from the video recording index, step S405 may be executed.
Step S404: and acquiring the video of the camera corresponding to the trigger time corresponding to the trigger event recorded in the target log.
In this embodiment, when the trigger time of the target log can be retrieved from the video index, the camera video including the trigger time in the video recording time period may be acquired from the target camera. For example, when the video shot by the camera includes a shot time of a certain video as 8:00 to 12:00 of a certain day and a trigger time of the target log is 8:23, the camera video can be used as the camera video corresponding to the target log.
In some embodiments, because the time period for video recording by the camera may be longer, and the time period for the occurrence of the trigger event may be shorter, a part of video in the original video recorded by the camera is redundant for the user, at this time, the original video recorded by the camera may be sliced according to the trigger time of the target log, and a section of video whose video recording time period is closer to the trigger time of the target log is obtained, so as to increase transmission efficiency and storage efficiency, and improve user experience.
Step S405: prompting that the associated video is not retrieved.
In this embodiment, as a manner, when the trigger time recorded in the target log is not retrieved in the video index, it may be considered that the camera does not record the related video when the trigger event occurs, and at this time, it may be prompted that the related video is not retrieved, and the prompting manner may be displaying a prompt message, a voice prompt, and the like on the interactive interface, which is not limited in this embodiment.
In some embodiments, when the target camera is not retrieved and the related videos are recorded, the camera list may be returned for the user to reselect, or the target camera may be automatically switched to another camera, and the corresponding video index is obtained for retrieval, and the user may be prompted when the related videos are successfully retrieved or all the cameras in the camera list do not retrieve the related videos.
In the above steps S401 to S405, the video recording method may be considered as a video recording method in which the user terminal acquires the index from the camera and searches locally in the user terminal.
In the present embodiment, as shown in fig. 5, as another mode, after acquiring a camera selection instruction acting on a target camera in a camera list in step S401, the following steps may be further performed:
step S501: and sending a video acquisition request containing the trigger time of the target log to the target camera so that the target camera inquires whether corresponding camera videos exist according to the trigger time of the target log.
In this embodiment, the user terminal may further send the trigger time of the target log to the target camera, and the target camera may query the camera locally according to the trigger time, so that the camera determines whether the video related to the target log is recorded.
Step S502: and acquiring the camera video sent by the target camera when the camera video corresponding to the trigger time of the target log exists.
In this embodiment, when the camera queries that there is a camera record related to the target log, the camera record related to the target log may be returned to the user terminal.
As one mode, when the camera does not inquire the camera record related to the target log, the information that the related record is not retrieved can be returned to the user terminal, so that the user terminal prompts the user according to the information.
It can be understood that, the video query is performed by the camera, and the user terminal only needs to send the video acquisition request and receive the feedback of the camera, so that the local calculation pressure of the user terminal is reduced.
In some embodiments, the user terminal may further send a video acquisition request to the multiple target cameras at the same time, so that efficiency of acquiring videos of the relevant cameras may be correspondingly improved. Similarly, the user terminal may acquire a plurality of video indices from a plurality of target cameras at the same time.
Referring to fig. 6, in this embodiment, when obtaining the video camera record corresponding to the target log, specifically, the following steps may be performed:
step S601: and sending the log grade corresponding to the target log to the target camera.
In this embodiment, the log level may be used to represent the trigger event recorded by the target log and/or the importance degree of the trigger time corresponding to the trigger event.
For example, for a tamper alarm, the trigger event is removed, and the risk of the trigger event is high, so that the log of the tamper alarm, the trigger event being removed, is ranked higher. For another example, for the smart door/window sensor, the triggering event is that the door/window is opened, and if the triggering time of the triggering event is night, the danger level of the triggering time is high, so that the triggering event of the smart door/window sensor is that the equipment log of the opened door/window, and the log level of the triggering time is night is high. It will be appreciated that the log level may, to some extent, represent the degree of situational risk at the time of the event to which the log corresponds.
In one mode, the log grade can be automatically marked according to a preset grade evaluation rule or set by a user according to actual requirements.
Step S602: and acquiring the video of the camera of the corresponding parameter sent by the target camera according to the log grade.
In this embodiment, the corresponding parameter includes at least one of a time length of the video recording and a pixel of the video recording.
It can be understood that, for a target log with a higher log level, a user would prefer to know more information about the event corresponding to the log, so the time length of the video recorded by the camera that needs to be viewed is longer, and the definition requirement of the recorded video is higher.
As a mode, after acquiring the log level of the target log, the camera captures the video whose trigger time extends forward and backward for a certain time length based on the trigger time of the target log and taking the trigger time as a center, and returns the captured video to the user terminal. It will be appreciated that the higher the journal level of the target journal, the longer the video length captured by the camera and the higher the clarity of the video.
In this embodiment, by associating the corresponding parameters of the video camera with the log level, the user terminal can acquire the video camera with richer information when the log level is higher, and acquire the video with smaller volume after interception and compression when the log level is lower, so that the transmission efficiency of the video camera and the storage efficiency of the user terminal can be effectively improved, the occupied bandwidth is reduced, the implementation of the scheme is more intelligent, and the use experience of the user is improved.
It should be noted that, portions not described in detail in this embodiment may refer to the foregoing embodiments, and are not described herein again.
Compared with the method shown in fig. 2, the video acquisition method provided in another embodiment of the present application further intelligently associates the camera with the device log, and provides a visual camera list for the user to select, which can help the user to know the complete video when the device event occurs in all directions, and associates the video with the corresponding parameter by setting the log level, thereby effectively improving the efficiency of acquiring information by the user and the efficiency of transmitting and storing video, and further improving the user experience.
Referring to fig. 7, fig. 7 is a block diagram illustrating a video recording acquiring apparatus according to an embodiment of the present disclosure. As will be explained below with reference to the block diagram shown in fig. 7, the video recording acquisition apparatus 700 includes: a log selection module 710 and a video recording acquisition module 720, wherein:
the log selection module 710 is configured to obtain a log selection instruction for an equipment log, where the equipment log includes a trigger event of a sub-device and a trigger time corresponding to the trigger event, and the log selection instruction is used to select a target sub-device and a target log of the target sub-device.
And the video acquisition module 720 is configured to acquire the video of the camera corresponding to the target log according to the log selection instruction. Further, the video capture module 720 includes:
and the camera list acquisition submodule is used for acquiring a camera list corresponding to the target sub-equipment according to the log selection instruction.
And the list display submodule is used for displaying the camera list. By one approach, the camera list includes at least one of the following cameras:
the upper-level gateway camera of the target sub-device;
a camera under the associated account of the target sub-device;
and the camera is associated with the position information of the target sub-device.
And the video acquisition sub-module is used for acquiring a camera selection instruction, acquiring a camera video corresponding to the target log in the target camera according to the camera selection instruction, and selecting the target camera in the camera list by the camera selection instruction. Further, the video capture sub-module includes:
an instruction acquisition unit configured to acquire a camera selection instruction acting on a target camera in the camera list.
And the index request unit is used for requesting the target camera to acquire a video index, and the video index comprises video information and time information corresponding to the video information.
And the video acquisition unit is used for acquiring the video of the camera corresponding to the target log based on the video index. Further, the video recording acquisition unit includes:
and the judging subunit is used for judging whether the trigger time corresponding to the trigger event recorded in the target log is searched in the video index.
And the video acquisition sub-unit is used for acquiring the video of the camera corresponding to the trigger time corresponding to the trigger event recorded in the target log when the trigger time corresponding to the trigger event recorded in the target log is searched in the video index.
And the video recording request unit is used for sending a video recording acquisition request containing the trigger time of the target log to the target camera so that the target camera inquires whether the corresponding camera video exists according to the trigger time of the target log.
And a video receiving unit for acquiring the video of the camera transmitted by the target camera when the camera video corresponding to the trigger time of the target log exists.
In this embodiment, in order to obtain the video camera record corresponding to the target log, the video record obtaining module 720 may further include:
and the first log level submodule is used for sending the log level corresponding to the target log to the target camera, and the log level is used for representing the trigger event recorded by the target log and/or the importance degree of the trigger time corresponding to the trigger event.
And the second log grade submodule is used for acquiring the camera video of the corresponding parameters sent by the target camera according to the log grade.
The video acquisition apparatus 700 provided in this embodiment of the application is used to implement the corresponding video acquisition method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 8, fig. 8 is a block diagram illustrating a video recording acquisition system 800 according to an embodiment of the present application. The video acquisition system 800 includes a sub-device 810, a camera 820, a gateway 830, a mobile terminal 840 and a cloud server 850, wherein the gateway 830 is connected with the sub-device 810 and the camera 820, and the cloud server 850 is connected with the gateway 830 and the mobile terminal 840.
The cloud server 850 is configured to send a device log to the mobile terminal 840, where the device log includes a trigger event of the child device 810 and a trigger time corresponding to the trigger event; the mobile terminal 840 is configured to obtain a log selection instruction for the device log, where the log selection instruction is used to select the target sub-device 810 and a target log of the target sub-device 810; the mobile terminal 840 is further configured to obtain and display a camera list corresponding to the target sub-device 810 according to the log selection instruction, obtain a camera 820 selection instruction acting on the target camera 820 in the camera list, and request the target camera 820 to obtain a video index, where the video index includes video information and time information corresponding to the video information; the camera 820 is used for sending the video index to the mobile terminal 840; the mobile terminal 840 is further configured to determine whether the trigger time corresponding to the trigger event recorded in the target log is retrieved from the video index, and when the trigger time is retrieved, send a video playback request for obtaining a video of the camera corresponding to the trigger time corresponding to the trigger event recorded in the target log to the target gateway 830; and a camera 820 for transmitting a camera record corresponding to the trigger time corresponding to the trigger event recorded in the target log in the target camera 820 to the mobile terminal 840 according to the record playback request.
In some embodiments, the mobile terminal 840 may be further configured to send a video recording acquisition request including the trigger time of the target log to the target camera 820; the camera 820 may also be configured to query whether a corresponding camera video exists according to the trigger time of the target log sent by the mobile terminal 840; the mobile terminal 840 may be further configured to obtain a camera record sent by the target camera 820 when there is a camera record corresponding to the trigger time of the target log.
In this embodiment, the interaction between the mobile terminal 840, the camera 820 and the sub-device 810 can be performed through the cloud server 850 and the gateway 830. In some embodiments, the mobile terminal 840 may also be directly connected with the gateway 830, the camera 820, the sub-device 810.
In this embodiment, the connected gateway 830 and the camera 820 may be an all-in-one machine (i.e., have the functions of both the gateway 830 and the camera 820), or may be an independent gateway 830 and camera 820.
The video acquisition system 800 provided in the embodiment of the present application is used to implement the corresponding video acquisition method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Referring to fig. 9, a block diagram of an electronic device according to an embodiment of the present disclosure is shown. The electronic device 900 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. The electronic device 900 in the present application may include one or more of the following components: a processor 910, a memory 920, and one or more applications, wherein the one or more applications may be stored in the memory 920 and configured to be executed by the one or more processors 910, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 910 may include one or more processing cores. The processor 910 interfaces with various components throughout the electronic device 900 using various interfaces and circuitry to perform various functions of the electronic device 900 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 920 and invoking data stored in the memory 920. Alternatively, the processor 910 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 910 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 910, but may be implemented by a communication chip.
The Memory 920 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 920 may be used to store instructions, programs, code sets, or instruction sets. The memory 920 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 900 (e.g., phone books, audio-visual data, chat log data), and so forth.
Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. The computer-readable storage medium 1000 stores program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 1000 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1000 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1000 has storage space for program code 1100 for performing any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code 1100 may be compressed, for example, in a suitable form.
To sum up, the video acquisition method, the video acquisition device, the video acquisition system, the electronic device, and the storage medium according to the embodiments of the present application may first acquire a log selection instruction for a device log, where the device log includes a trigger event of a sub device and a trigger time corresponding to the trigger event, and the log selection instruction is used to select a target sub device and a target log of the target sub device, and then acquire a video of a camera corresponding to the target log according to the log selection instruction. According to the method and the device, the device log is associated with the camera video, so that a user can obtain the corresponding camera video by selecting the log, the user can conveniently check the video triggered by the device event, and the space utilization rate of the storage of the terminal can be correspondingly improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A video acquisition method is characterized by comprising the following steps:
acquiring a log selection instruction for an equipment log, wherein the equipment log comprises a trigger event of a sub-device and trigger time corresponding to the trigger event, and the log selection instruction is used for selecting a target sub-device and a target log of the target sub-device;
acquiring a video of a camera corresponding to the target log according to the log selection instruction;
wherein, the obtaining the video camera record corresponding to the target log according to the log selection instruction comprises:
acquiring a camera list corresponding to the target sub-device according to the log selection instruction;
acquiring a camera selection instruction acting on a target camera in the camera list;
requesting the target camera to acquire a video index, wherein the video index comprises video information and time information corresponding to the video information;
judging whether the trigger time corresponding to the trigger event recorded by the target log is retrieved in the video index or not;
and when the trigger time corresponding to the trigger event recorded in the target log is searched in the video index, acquiring the video of the camera corresponding to the trigger time corresponding to the trigger event recorded in the target log.
2. The video recording acquisition method according to claim 1, wherein after the acquiring, according to the log selection instruction, the camera list corresponding to the target sub-device, the video recording acquisition method further comprises:
displaying the list of cameras.
3. The video recording acquisition method according to claim 1, wherein said camera list includes at least one of:
the upper-level gateway camera of the target sub-device;
a camera under an associated account of the target sub-device;
and the camera is associated with the position information of the target sub-device.
4. The video recording acquisition method according to claim 1, wherein after said acquiring a camera selection instruction acting on a target camera in the camera list, said video recording acquisition method further comprises:
sending a video acquisition request containing the trigger time of the target log to the target camera, so that the target camera inquires whether a corresponding camera video exists according to the trigger time of the target log;
and acquiring the camera video sent by the target camera when the camera video corresponding to the trigger time of the target log exists.
5. The video recording acquisition method according to any one of claims 1 to 4, wherein said acquiring the video camera video corresponding to the target log comprises:
sending a log grade corresponding to the target log to a target camera, wherein the log grade is used for representing a trigger event recorded by the target log and/or the importance degree of the trigger time corresponding to the trigger event;
and acquiring the camera video of the corresponding parameters sent by the target camera according to the log grade.
6. The video recording acquisition method according to claim 5, wherein the corresponding parameter includes at least one of a time length of a video recording and a pixel of the video recording.
7. A video recording acquisition apparatus, comprising:
the log selection module is used for acquiring a log selection instruction for an equipment log, wherein the equipment log comprises a trigger event of a piece of sub-equipment and trigger time corresponding to the trigger event, and the log selection instruction is used for selecting a target piece of sub-equipment and a target log of the target piece of sub-equipment;
the video acquisition module is used for acquiring the video of the camera corresponding to the target log according to the log selection instruction;
the video acquisition module further comprises a camera list acquisition submodule, wherein the camera list acquisition submodule is used for acquiring a camera list corresponding to the target sub-device according to the log selection instruction;
the video acquisition sub-module is used for acquiring a camera selection instruction, and acquiring a camera video corresponding to the target log in a target camera according to the camera selection instruction, wherein the camera selection instruction is used for selecting the target camera in a camera list;
wherein, the video acquisition submodule includes:
an instruction acquisition unit configured to acquire a camera selection instruction acting on a target camera in the camera list;
the index requesting unit is used for requesting the target camera to acquire a video index, and the video index comprises video information and time information corresponding to the video information;
a video acquisition unit, configured to acquire a video of the camera corresponding to the target log based on the video index;
wherein, video acquisition unit includes:
the judging subunit is used for judging whether the triggering time corresponding to the triggering event recorded in the target log is retrieved in the video index;
and the video acquisition sub-unit is used for acquiring the video of the camera corresponding to the trigger time corresponding to the trigger event recorded in the target log when the trigger time corresponding to the trigger event recorded in the target log is searched in the video index.
8. A video capture system, comprising:
a sub-device;
a camera;
a gateway connected with the sub-device and the camera;
a mobile terminal;
the cloud server is connected with the gateway and the mobile terminal;
wherein:
the cloud server is used for sending an equipment log to the mobile terminal, wherein the equipment log comprises a trigger event of the sub-equipment and trigger time corresponding to the trigger event;
the mobile terminal is used for acquiring a log selection instruction aiming at the equipment log, and the log selection instruction is used for selecting target sub-equipment and a target log of the target sub-equipment;
the mobile terminal is further configured to obtain and display a camera list corresponding to the target sub-device according to the log selection instruction, obtain a camera selection instruction acting on a target camera in the camera list, and request the target camera to obtain a video index, where the video index includes video information and time information corresponding to the video information;
the camera is used for sending the video index to the mobile terminal;
the mobile terminal is further configured to determine whether trigger time corresponding to the trigger event recorded in the target log is retrieved in the video index, and when the trigger time is retrieved, send a video playback request for obtaining a video of a camera corresponding to the trigger time corresponding to the trigger event recorded in the target log to a target gateway;
and the camera is used for sending the camera video corresponding to the trigger time corresponding to the trigger event recorded by the target log in the target camera to the mobile terminal according to the video playback request.
9. An electronic device, comprising:
a memory;
one or more processors coupled with the memory;
one or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the video capture method of any of claims 1-6.
10. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the video recording acquisition method according to any one of claims 1-6.
CN201910111854.XA 2019-02-12 2019-02-12 Video acquisition method, device, system, electronic equipment and storage medium Active CN109977260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910111854.XA CN109977260B (en) 2019-02-12 2019-02-12 Video acquisition method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910111854.XA CN109977260B (en) 2019-02-12 2019-02-12 Video acquisition method, device, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109977260A CN109977260A (en) 2019-07-05
CN109977260B true CN109977260B (en) 2021-04-30

Family

ID=67076935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910111854.XA Active CN109977260B (en) 2019-02-12 2019-02-12 Video acquisition method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109977260B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597693B (en) 2019-08-06 2021-04-23 浙江大华技术股份有限公司 Alarm information sending method, device, equipment, system and storage medium
CN113591090B (en) * 2020-04-30 2024-01-09 腾讯科技(深圳)有限公司 Program bug reporting method, device, equipment and storage medium
CN112752100B (en) * 2020-12-28 2022-08-12 杭州海康威视系统技术有限公司 Method and device for determining video integrity and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768845A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Video index method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4536299B2 (en) * 2001-08-29 2010-09-01 パナソニック株式会社 Event video recording / playback system, event management device, and local recording device
CN104122863A (en) * 2014-07-17 2014-10-29 江苏惠居乐信息科技有限公司 Remote intelligent monitoring system facing home furnishing and control method thereof
CN105791774A (en) * 2016-03-31 2016-07-20 北京工业大学 Surveillance video transmission method based on video content analysis
CN108512881A (en) * 2017-02-28 2018-09-07 中兴通讯股份有限公司 A kind of intelligent domestic system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768845A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Video index method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"视频监控系统安全架构设计和研究";洪功义 等;《电力系统通信》;20121010;第33卷(第10期);24-28 *

Also Published As

Publication number Publication date
CN109977260A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
US11947780B2 (en) Timeline-video relationship processing for alert events
US11599259B2 (en) Methods and systems for presenting alert event indicators
US11238290B2 (en) Timeline-video relationship processing for alert events
KR101695075B1 (en) Method and device for remote intelligent control
CN109977260B (en) Video acquisition method, device, system, electronic equipment and storage medium
RU2667368C1 (en) Method and device for image output
US20150350611A1 (en) Methods and systems for monitoring environments using smart devices
KR101635068B1 (en) Home network system and method using robot
CN104994335A (en) Alarm method and terminal
WO2022052613A1 (en) Camera control method and apparatus, electronic device, and storage medium
CN104023207A (en) Live communication terminal capable of automatically carrying out bidirectional communication after unidirectional call, method and tool
US20030221119A1 (en) Methods and apparatus for communicating with a security access control system
CN114579394A (en) Log viewing method, log generating method and device and electronic equipment
CN105100749A (en) Image pick-up method and device as well as terminal
US12033389B2 (en) Timeline-video relationship processing for alert events
CN117789069A (en) Event viewing method and device, electronic equipment and storage medium
CN118193863A (en) Personalized page recommendation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant