CN111641805B - Method and device for acquiring video, terminal equipment and server - Google Patents
Method and device for acquiring video, terminal equipment and server Download PDFInfo
- Publication number
- CN111641805B CN111641805B CN202010361928.8A CN202010361928A CN111641805B CN 111641805 B CN111641805 B CN 111641805B CN 202010361928 A CN202010361928 A CN 202010361928A CN 111641805 B CN111641805 B CN 111641805B
- Authority
- CN
- China
- Prior art keywords
- video
- camera
- target
- server
- acquisition request
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Closed-Circuit Television Systems (AREA)
- Studio Devices (AREA)
Abstract
The invention provides a method, a device, terminal equipment and a server for acquiring a video, wherein after a first video acquisition request aiming at target prompt information triggered by a user is received, a target camera address corresponding to a target camera identifier contained in the target prompt information is searched according to the corresponding relation between the first camera identifier and the first camera address, and a second video acquisition request carrying the target camera address is generated; and sending the second video acquisition request to a server of the monitoring service system, and sending the second video acquisition request to a server of the video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information. According to the invention, the target camera address of the target camera device in the video management system is determined through the target camera identification in the target prompt information, so that the video related to the target prompt information is obtained from the video management system, a large amount of storage resources of the monitoring service system are not required to be occupied for storing the monitoring video, and the data storage cost is reduced.
Description
Technical Field
The invention relates to the technical field of security protection, in particular to a method and a device for acquiring a video, terminal equipment and a server.
Background
In the process of using the security system, after receiving the prompt information, the user usually needs to read the video corresponding to the prompt information to backtrack the related scenes. In the related art, videos corresponding to the prompt messages are usually stored in a server of a service platform generating the prompt messages, and if the number of the prompt messages is large, a large amount of storage resources are required to be occupied to store the corresponding videos, so that the data storage cost of a user is increased.
Disclosure of Invention
The invention aims to provide a method, a device, terminal equipment and a server for acquiring videos so as to reduce data storage cost.
In a first aspect, an embodiment of the present invention provides a method for acquiring a video, where the method is applied to a user front end running a monitoring service system; the server of the monitoring service system is connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; a first camera identifier of a camera device in a preset range in a video management system and a first camera address corresponding to the first camera identifier are stored in a user front end in advance; the method comprises the following steps: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the front end of a user by a server of the monitoring service system; searching a target camera address corresponding to the target camera identification according to the corresponding relation between the first camera identification and the first camera address, and generating a second video acquisition request carrying the target camera address; and sending the second video acquisition request to a server of the monitoring service system, and sending the second video acquisition request to a server of the video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where before the step of receiving a first video acquisition request for target prompt information, which is triggered by a user, the method further includes: receiving target prompt information sent by a server of a monitoring service system; the target prompt information comprises a target camera identification of the target camera shooting device; if the first camera identification comprises a target camera identification, providing a trigger interface for a user; the triggering interface is used for enabling a user to trigger a first video obtaining request aiming at the target prompt information.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the target prompt information includes a prompt time; the first video acquisition request comprises the duration of a video to be acquired; the step of generating the second video acquisition request carrying the address of the target camera includes: extracting prompt time from the target prompt information; extracting the duration of the video to be acquired from the first video acquisition request; determining the time period of the video to be acquired according to the prompt time and the duration of the video to be acquired; and generating a second video acquisition request according to the address of the target camera and the time period of the video to be acquired.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the method further includes: if an instruction of a newly built camera device triggered by a user is received, extracting a second camera address registered in the monitoring service system by the newly built camera device from the instruction; matching the second camera addresses with the first camera addresses one by one; and determining the first camera identification corresponding to the successfully matched first camera address as a second camera identification corresponding to the second camera address in the monitoring service system of the newly-built camera device.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the method further includes: receiving and storing a first camera identifier sent by a server of a monitoring service system and a first camera address corresponding to the first camera identifier; the first camera identification and the first camera address corresponding to the first camera identification are obtained through the following modes: a server of a monitoring service system sends a query interface calling request to a server of a video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier; and the video management system judges whether the inquiry interface calling request is legal or not according to the authentication identifier, and if so, sends the first camera identifier and the first camera address corresponding to the first camera identifier to a server of the monitoring service system through an inquiry interface corresponding to the inquiry interface calling request.
In a second aspect, an embodiment of the present invention further provides a method for acquiring a video, where the method is applied to a server of a monitoring service system, and the server of the monitoring service system is connected to a front end of a user operating the monitoring service system; the server of the monitoring service system is also connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; the method comprises the following steps: receiving a second video acquisition request sent by a front end of a user; the second video acquisition request is generated by the user front end in the following way: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to a user front end by a monitoring service system; searching a target camera address corresponding to a target camera identifier according to a pre-stored corresponding relation between a first camera identifier and a first camera address corresponding to the first camera identifier of a camera device in a preset range in a video management system, and generating a second video acquisition request carrying the target camera address; and sending the second video acquisition request to a server of the video management system to acquire a video corresponding to the target prompt information.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the step of sending the second video obtaining request to a server of the video management system includes: adding a pre-acquired authentication identifier to the second video acquisition request; wherein the authentication identifier is used for: a server of the video management system verifies whether the monitoring service system has the authority of acquiring the video corresponding to the target camera address; and sending the second video acquisition request added with the authentication identification to a server of the video management system.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where after the step of sending the second video acquisition request to the server of the video management system, the method further includes: if a video returned by the video management system is received, converting the format of the video into a preset format; and sending the converted video to a user front end.
With reference to the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where before the step of receiving a second video acquisition request sent by a user front end, the method further includes: generating target prompt information; the target prompt message comprises a target camera identification of the target camera device; and sending the target prompt information to the front end of the user.
With reference to the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the method further includes: sending a query interface calling request to a server of the video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier, so that the video management system judges whether the query interface calling request is legal or not according to the authentication identifier, and if the query interface calling request is legal, sending a first camera identifier and a first camera address corresponding to the first camera identifier to the server of the monitoring service system through a query interface corresponding to the query interface calling request; and sending the first camera identification and a first camera address corresponding to the first camera identification to the user front end, so that the user front end stores the first camera identification and the first camera address corresponding to the first camera identification.
With reference to the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the authentication identifier is obtained by: calling a login interface of a video management system through a preset user name and a preset password, and receiving an authentication identifier returned by the login interface; the user name and the password pass authentication of the video management system in advance.
In a third aspect, an embodiment of the present invention further provides a device for acquiring a video, where the device is disposed at a front end of a user operating a monitoring service system; the server of the monitoring service system is connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; a first camera identifier of a camera device in a preset range in a video management system and a first camera address corresponding to the first camera identifier are stored in a user front end in advance; the device includes: the first request receiving module is used for receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera shooting device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the front end of a user by a server of the monitoring service system; the request generation module is used for searching a target camera address corresponding to the target camera identifier according to the corresponding relation between the first camera identifier and the first camera address, and generating a second video acquisition request carrying the target camera address; and the first request sending module is used for sending the second video acquisition request to a server of the monitoring service system, and sending the second video acquisition request to a server of the video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information.
In a fourth aspect, an embodiment of the present invention further provides a device for acquiring a video, where the device is disposed in a server of a monitoring service system, and the server of the monitoring service system is connected to a front end of a user operating the monitoring service system; the server of the monitoring service system is also connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; the device includes: the second request receiving module is used for receiving a second video acquisition request sent by the front end of the user; the second video acquisition request is generated by the user front end in the following way: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to a user front end by a monitoring service system; searching a target camera address corresponding to a target camera identifier according to a pre-stored corresponding relation between a first camera identifier and a first camera address corresponding to the first camera identifier of a camera device in a preset range in a video management system, and generating a second video acquisition request carrying the target camera address; and the second request sending module is used for sending the second video acquisition request to a server of the video management system so as to acquire the video corresponding to the target prompt information.
In a fifth aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory, where the memory stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the method applied to the user front end.
In a sixth aspect, embodiments of the present invention further provide a server, including a processor and a memory, where the memory stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the method applied to the server.
In a seventh aspect, embodiments of the present invention also provide a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-mentioned method.
The embodiment of the invention provides a method, a device, terminal equipment and a server for acquiring a video, wherein after a first video acquisition request aiming at target prompt information triggered by a user is received, a target camera address corresponding to a target camera identifier contained in the target prompt information is searched according to the corresponding relation between the first camera identifier and the first camera address, and a second video acquisition request carrying the target camera address is generated; and then sending the second video acquisition request to a server of a monitoring service system, and sending the second video acquisition request to a server of a video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information. In the method, the target camera address of the target camera device in the video management system is determined through the target camera identification in the target prompt information, and then the video related to the target prompt information is obtained from the video management system, so that the monitoring video is stored without occupying a large amount of storage resources of the monitoring service system, and the data storage cost of a user is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram illustrating a connection between a monitoring service system and a video management system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for acquiring a video according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for acquiring a video according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for acquiring a video according to an embodiment of the present invention;
fig. 5 is a flowchart of another method for acquiring a video according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a connection relationship between a camera device, a network video recorder, a VMS system, and a monitoring service system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an interaction process of a front end, a monitoring service system, and a video management system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for acquiring video according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another apparatus for acquiring video according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the process of using the security system, after receiving the prompt information (such as alarm information), the user generally needs to read the video corresponding to the prompt information to realize backtracking of the related scene. In the related art, videos corresponding to the prompt messages are usually stored in a server of a service platform generating the prompt messages, and the video corresponding to each prompt message is usually a video with a duration of 10s before and after the prompt time, which has the following disadvantages:
(1) each 10s video is about 3M, and under the condition that the number of the prompt messages is large (also called as a mass alarm condition), the server of the service platform cannot store the video files corresponding to the prompt messages, so that more servers are required to be added for storage, and the user cost is greatly increased.
(2) At present, the longest time of each video stored by a server of a service platform is 15s, and all scenes before and after an event cannot be completely restored in a service system, which is not beneficial to backtracking of a user to the whole scene.
Based on the technical problems, embodiments of the present invention provide a method, an apparatus, a terminal device and a server for acquiring a video, and the technology can be applied to video acquisition processes of various systems, such as a security system, an access control system, and the like.
The first embodiment is as follows:
firstly, a method for acquiring a video provided by the embodiment of the invention is introduced, the method is applied to a user front end running with a monitoring service system, and a server of the monitoring service system is connected with a server of a preset video management system; the connection between the monitoring service system and the video management system is schematically shown in fig. 1.
The video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; the method comprises the steps that a first camera identification of a camera device in a preset range in a video management system and a first camera address corresponding to the first camera identification are stored in the front end of a user in advance; as shown in fig. 2, the method comprises the steps of:
step S200, receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identification of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the front end of a user by a server of the monitoring service system.
The target prompt information can be generated by a server of the monitoring service system according to videos or images shot by a camera device in the monitoring service system. When the monitoring service system identifies the content related to the preset prompt task in the shot video or image, prompt information is generated; the prompt task can be set personnel prompt, contraband prompt or abnormal behavior prompt and the like. The prompt message may include information of an image capturing device that captures a video or an image, such as a camera identifier, a camera address, and the like, and may further include a time when the prompt message is generated, a picture or a video corresponding to the prompt message, and identified content, and the like.
The prompt information selected by the user can be called target prompt information, and the user can directly select the prompt information as the target prompt information when the prompt information is sent to the front end of the user; target prompt information can also be selected from a preset prompt information history list. A video viewing identifier corresponding to the target prompt information, such as a button or a slider, can be displayed in the front end of the user; when a user presses a button or slides a sliding block, a first video acquisition request aiming at target prompt information is triggered; at this time, the camera identification of the target imaging device, which is the imaging device that takes the picture or video that generated the target prompt information, may be extracted from the target prompt information. In addition, the first video acquisition request also typically includes information on the time length of the video to be acquired, such as the video duration or the start time and the end time of the video.
Step S202, a target camera address corresponding to the target camera identification is searched according to the corresponding relation between the first camera identification and the first camera address, and a second video acquisition request carrying the target camera address is generated.
The camera identification is generally an identification that is unique to each image pickup apparatus in a system to which the image pickup apparatus is connected, and the identification of different image pickup apparatuses is different in the same system. The camera address may display different formats in different systems, but is usually generated based on the IP address of the camera, and the camera address in different systems has some same characters, and the first camera address is the camera address of the image pickup apparatus in the video management system, and the video management system stores the corresponding relationship between the first camera address and the first camera identifier of the image pickup apparatus. When the camera device is accessed to the monitoring service system, if the process of newly building the camera device aiming at the camera device is already completed in the monitoring service system, the camera mark can be directly displayed. If a new camera device process for the camera device is not performed, only a camera address (which may be referred to as a second camera address) of the camera device in the monitoring service system is in the monitoring service system, it is required to determine whether a first camera address matching the camera address exists according to a first camera identifier of the camera device and a first camera address corresponding to the first camera identifier, which are stored in advance, in the monitoring service system, and if so, determine a camera identifier corresponding to the camera device in the monitoring service system according to the first camera identifier corresponding to the first camera address (the process is a process for newly creating the camera device). The first camera identifier of the image capturing apparatus and the first camera address corresponding to the first camera identifier may be obtained by the monitoring service system from the video management system in advance, and stored in the user front end in a list or table.
Specifically, after receiving a first video acquisition request including a target camera identifier of a target imaging apparatus, the target camera identifier of the target imaging apparatus may be searched for from camera identifiers (i.e., the first camera identifiers) of a plurality of pre-stored imaging apparatuses; if the camera identifier is found, it is indicated that the target camera device has accessed the video management system, so that the first camera address corresponding to the found first camera identifier can be used as the target camera address. And adding the target camera address of the target camera device in the video management system into the first video acquisition request sent by the user to generate a second video acquisition request.
And step S204, sending the second video acquisition request to a server of the monitoring service system, and sending the second video acquisition request to a server of the video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information.
After receiving the second video acquisition request, the server of the monitoring service system may send the second video acquisition request to the server of the video management system. Because the second video acquisition request comprises the camera address of the target camera device in the video management system, the server of the video management system can read the video corresponding to the target prompt information from the corresponding target camera address and then return the video to the server of the monitoring service system, and the server of the monitoring service system sends the video to the front end of the user, so that the user can view the video through the front end of the user.
When the video management system serves a third party, the monitoring service system usually needs authority authentication in the process of communicating with the video management system; the monitoring service system can register and log in a user in the video management system so as to obtain the authentication identifier returned by the video management system. In this case, before sending the second video acquisition request to the video management system, the monitoring service system further adds an authentication identifier to the second video acquisition request to pass the authority authentication of the video management system.
The embodiment of the invention provides a method for acquiring a video, which comprises the steps of searching a target camera address corresponding to a target camera identifier contained in target prompt information according to the corresponding relation between a first camera identifier and a first camera address after receiving a first video acquisition request aiming at the target prompt information triggered by a user, and generating a second video acquisition request carrying the target camera address; and then sending the second video acquisition request to a server of a monitoring service system, and sending the second video acquisition request to a server of a video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information. In the method, the target camera address of the target camera device in the video management system is determined through the target camera identification in the target prompt information, and then the video related to the target prompt information is obtained from the video management system, so that the monitoring video is stored without occupying a large amount of storage resources of the monitoring service system, and the data storage cost of a user is reduced.
Example two:
the embodiment of the invention also provides another method for acquiring the video, which is realized on the basis of the method of the embodiment; the method mainly describes a specific implementation process (implemented by the following steps S300-S302) of providing a user with a trigger interface for triggering a first video acquisition request for target prompt information, and a specific implementation process (implemented by the following steps S306-S312) of generating a second video acquisition request carrying a camera address of a target camera in a video management system, as shown in fig. 3, the method includes the following steps:
step S300, receiving target prompt information sent by a server of the monitoring service system; the target prompting information comprises a target camera identification of the target shooting device.
The target prompt information is generated by a monitoring service system based on a picture or a video shot by a target camera device; after the target prompt message is generated, the server of the monitoring service system may send the message to the front end of the user, so as to remind the user to view the prompt message.
Step S302, judging whether the first camera identification contains a target camera identification; if yes, go to step S304; if not, the process is ended.
Specifically, it may be found whether a target camera identifier of the target image capturing apparatus exists in the camera identifiers (i.e., the first camera identifier) of the image capturing apparatuses stored in advance; if the target camera identification of the target camera device exists, the video management system can be considered to manage the video shot by the device. When the target camera identifier does not exist, it can be considered that the video shot by the device is not managed in the video management system, and the method provided by the embodiment of the invention is not suitable for the video acquisition process of the target prompt information and is directly ended.
Step S304, providing a trigger interface for a user; the triggering interface is used for enabling a user to trigger a first video acquisition request aiming at the target prompt information.
The trigger interface can be an icon such as a button and a slider, and is displayed on a display interface at the front end of the user, so that the user can trigger a first video acquisition request for the target prompt information through the trigger interface.
Step S306, receiving a first video acquisition request triggered by a user and directed to target prompt information, where the target prompt information includes a target camera identifier of a target camera device.
When the target camera device is first accessed to the monitoring service system, a new camera device process for the target camera device is usually performed in the monitoring system. When a camera device to be newly built accesses a monitoring service system, the monitoring service system generates a camera address of a target camera device in the monitoring service system based on the IP address of the target camera device, and a corresponding relationship needs to be established between the camera device and a camera identifier and a camera address thereof in the monitoring service system, and between the camera device and a camera identifier and a camera address thereof in a video management system (usually included in a first camera address), which is specifically realized by the following steps:
(1) if an instruction of a newly built camera device triggered by a user is received, extracting a second camera address registered in the monitoring service system by the newly built camera device from the instruction; the newly-built camera device can be the target camera device, and the user can input the second camera address of the camera device in the monitoring service system to the user front end.
(2) The second camera addresses are matched with the first camera addresses one by one, and the camera addresses of the camera devices in the video management system are also generated based on the IP addresses of the camera devices, so that the camera addresses of the same camera devices in the monitoring service system and the camera addresses of the same camera devices in the video management system have the same characters, and if the camera address of one camera device in the monitoring service system is rtsp:// admin: admin @10.231.20.155/1, the camera address of the same camera device in the video management system can be 10.231.20.155, and the matching relationship between the camera addresses and the camera addresses can be determined based on the same characters. If the first camera address matched with the second camera address exists, the newly-built camera device is indicated to be accessed to the video management system, otherwise, the newly-built camera device is not accessed to the video management system.
(3) Determining a first camera identifier corresponding to the successfully matched first camera address as a second camera identifier corresponding to a second camera address in the monitoring service system of the newly built camera device; at this time, the corresponding relationship between the camera device in the monitoring service system and the camera device in the video management system is established.
Step S308, searching a target camera address corresponding to the target camera identification according to the corresponding relation between the first camera identification and the first camera address.
The corresponding relation between the first camera identifier and the first camera address is pre-stored in a user front end executing the method, and the user front end can receive and store the first camera identifier sent by a server of the monitoring service system and the first camera address corresponding to the first camera identifier; the first camera identification and the first camera address corresponding to the first camera identification are obtained through the following modes: a server of a monitoring service system sends a query interface calling request to a server of a video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier; and the video management system judges whether the inquiry interface calling request is legal or not according to the authentication identifier, and if so, sends the first camera identifier and the first camera address corresponding to the first camera identifier to a server of the monitoring service system through an inquiry interface corresponding to the inquiry interface calling request.
Step S310, extracting prompt time from target alarm information; the target prompt information generally comprises prompt time, the prompt time can be the time when the target camera device shoots a picture for generating the target prompt information, and the prompt time can be determined from the target prompt information.
Step S312, extracting the duration of the video to be acquired from the first video acquisition request; specifically, the first video obtaining request may include a duration of a video to be obtained; the user can input the duration of the video which the user wants to view to the user front end, and the duration is added to the first video acquisition request by the user front end.
Step S314, determining the time period of the video to be acquired according to the prompting time and the duration of the video to be acquired.
Specifically, the time period may include a start time and an end time; the starting time and the ending time can be determined according to the alarm time and the duration of the video to be acquired, wherein one common determination method is as follows:
(1) and taking half of the time length of the video to be acquired as the difference time length, and determining the corresponding time after subtracting the difference time length from the alarm time as the starting time of the video.
(2) And determining the corresponding time after the alarm time is added with the difference time length as the termination time of the video.
In addition, the proportion of the duration of the video before the alarm time and the proportion of the duration of the video after the alarm time can be set, and the proportion can be determined according to the requirements.
Step S316, a second video acquisition request is generated according to the target camera address and the time period of the video to be acquired.
After the time period of the video to be acquired and the target camera address of the target camera device for shooting the video in the video management system are determined, a second video acquisition request can be generated in a preset request format; the time period and the target camera address information are included in the request.
Step S318, sending the second video obtaining request to the server of the monitoring service system, and sending the second video obtaining request to the server of the video management system through the server of the monitoring service system, so as to obtain the video corresponding to the target prompt information.
The method for acquiring the video, provided by the embodiment of the invention, comprises the steps of firstly receiving target prompt information sent by a server of a monitoring service system, and if a target camera identifier contained in the target prompt information is stored in advance, providing a trigger interface for a user; when a first video acquisition request aiming at target prompt information triggered by a user is received, acquiring a camera identifier of a target camera device from the target prompt information, and determining a time period of a video to be acquired from the request; then, searching a camera address corresponding to the target camera identification, and generating a second video acquisition request carrying the target camera address and the time period of the video; and further sending the second video acquisition request to a server of the monitoring service system to acquire a video corresponding to the target prompt information. The method can store continuous and uninterrupted videos through the video management system, reduces data storage cost of users, obtains corresponding videos according to length requirements of the users on the videos, and meets backtracking requirements of the users on related scenes of the prompt messages.
Example three:
the embodiment of the invention also provides another method for acquiring the video, which is realized on the basis of the method of the embodiment; the method is applied to a server of a monitoring service system, and the server of the monitoring service system is connected with a front end of a user operating the monitoring service system; the server of the monitoring service system is also connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; as shown in fig. 4, the method comprises the steps of:
step S400, receiving a second video acquisition request sent by the user front end.
The second video acquisition request is generated by the user front end in the following way: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to a user front end by a monitoring service system; and searching a target camera address corresponding to the target camera identification according to a pre-stored corresponding relation between the first camera identification and the first camera address corresponding to the first camera identification of the camera device in the video management system within a preset range, and generating a second video acquisition request carrying the target camera address.
Step S402, sending the second video acquisition request to a server of the video management system to acquire a video corresponding to the target prompt information.
The embodiment of the invention provides a method for acquiring a video, which is characterized in that when a second video acquisition request of a target camera address sent by a front end of a user is received, the second video acquisition request is sent to a server of a video management system to acquire a video corresponding to target prompt information. In the mode, the video is stored in the video management system, a large amount of storage resources of the monitoring service system are not required to be occupied, when the video related to the prompt information needs to be read, the corresponding video is required to be requested from the video management system according to the camera address corresponding to the prompt information provided by the front end of the user, and the data storage cost of the user is reduced.
Example four:
the embodiment of the invention also provides another method for acquiring the video, which is realized on the basis of the method of the embodiment; the method mainly describes a specific implementation process of sending a first video acquisition request to a server of a video management system (implemented by the following steps S506 and S508), and a specific implementation process of sending a video returned by the video management system to a user front end when the video is received (implemented by the following steps S510 and S512), as shown in fig. 5, the method includes the following steps:
step S500, generating target prompt information; the target prompt message includes a target camera identification of the target camera device; specifically, the target alarm information may be generated by recognizing a picture taken by the target imaging device.
Step S502, the target prompt message is sent to the front end of the user.
Step S504, receiving a second video acquisition request sent by a user front end; the second video acquisition request carries a target camera address of the target camera device in the video management system;
step S506, adding the pre-acquired authentication identifier to the second video acquisition request; wherein the authentication identifier is used for: and the server of the video management system verifies whether the monitoring service system has the authority of acquiring the video corresponding to the target camera device.
The authentication identifier may be obtained by: calling a login interface of a video management system through a preset user name and a preset password, and receiving an authentication identifier returned by the login interface; the user name and the password pass authentication of the video management system in advance.
The authentication identifier is further used in a process that a server of the monitoring service system queries the video management system for the first camera identifier and the first camera address corresponding to the first camera identifier, and the authentication identifier specifically includes the following steps:
(1) and sending a query interface calling request to a server of the video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier, so that the video management system judges whether the query interface calling request is legal or not according to the authentication identifier, and if the query interface calling request is legal, sending the first camera identifier and a first camera address corresponding to the first camera identifier to the server of the monitoring service system through a query interface corresponding to the query interface calling request.
(2) Sending the first camera identification and a first camera address corresponding to the first camera identification to a user front end, so that the user front end stores the first camera identification and the first camera address corresponding to the first camera identification; specifically, the server monitoring the business system will typically send the first camera identification and the corresponding first camera address to the user front end for the subsequent video acquisition process.
When the video management system serves as a third party and the monitoring system sends a request to the video management system, the video management system usually needs to pass the authentication; the authentication identifier can be sent to the monitoring service system by the video management system after the monitoring service system performs user registration and login in the video management system.
Step S508, sending the second video acquisition request added with the authentication identifier to a server of the video management system.
Step S510, if a video returned by the video management system is received, converting the format of the video into a preset format; when the video stored in the video management system is not in the video format commonly used by the front end of the user, the server of the monitoring service system can convert the format of the received video into a preset format, and the preset format can be specifically realized through a preset plug-in.
And step S512, sending the converted video to the front end of the user.
The embodiment of the invention provides a method for acquiring a video, which comprises the steps of generating target alarm information comprising a camera identifier of a target camera device, and then sending the target alarm information to the front end of a user; when a second video acquisition request which is sent by the front end of the user and carries the camera address of the target camera device in the video management system is received, a pre-acquired authentication identifier is added to the second video acquisition request, and the second video acquisition request added with the authentication identifier is sent to a server of the video management system to acquire a video corresponding to the target prompt information. The method does not need to occupy a large amount of storage resources of the monitoring service system, and reduces the data storage cost of the user.
Example five:
the embodiment of the present invention further provides another method for acquiring a Video, where the method is implemented based on a camera device (also referred to as a camera), a Network Video Recorder (NVR for short, also referred to as an NVR storage device), a Video centralized management platform device (usually a VMS system, also referred to as a VMS platform, and equivalent to the Video management system in the foregoing embodiment), and a monitoring service system, and a schematic connection relationship diagram of the method is shown in fig. 6. The video centralized management platform is used for managing videos stored in the NVR, such as reading videos stored in the NVR.
The NVR can be used for continuously storing video shot by the camera, but cannot be applied to video storage of the camera of the monitoring service system when the NVR is not associated with the monitoring service system (also referred to as a service platform). The method needs to firstly guide a user to automatically establish the association of camera identification (also called deviceiD) between the service platform and the VMS, so that video clips (also called video clips) before and after camera alarm (also called prompt) in the service platform can be obtained from the NVR, the storage space of the service platform is expanded without more expense, and meanwhile, as the videos stored by the NVR are continuous, the backtracking requirement of the user on scenes before and after alarm can be met through the customized playback time.
The mode adopts a video storage system based on NVR and VMS systems, greatly reduces the dependence on a service platform server, can store more longer videos, and realizes instant use; and the scene condition before and after the alarm can be better checked aiming at the alarm, and the scene backtracking capability is improved.
Firstly, establishing association between a monitoring service platform and a camera of a VMS system; the VMS system and the monitoring service platform are two completely independent platforms, and the VMS system serves a third party; although the service platform and the VMS system are both connected with the cameras, the modes of storing the camera addresses of the service platform and the VMS system are different, only an interface for inquiring a camera list and playing back a video can be provided, and the cameras of the two platforms cannot be directly related; the method establishes the connection in the following way:
(1) enabling the NVR device connected with the VMS system to access all preset cameras to form a camera list (which can be called as 'vmsCameraList');
(2) establishing a communication relation between a monitoring service platform and a VMS system: the monitoring service platform must pass authorization of the VMS system when calling the interface of the VMS platform.
The server of the service platform may operate in a node programming language environment, and at this time, a software layer of the server may be referred to as a node layer. The environment variables VMS _ NAME and VMS _ PASSSWORD are defined in the node layer, and registered in the VMS system through VMS _ NAME and VMS _ PASSSWORD to obtain authorization.
After the user logs in the service platform, the node layer can call an interface of the VMS to inquire the camera list. If during the calling process, it finds that there is no authorization authentication (equivalent to the authentication identifier in the above embodiment, also called auth), the node layer may call the login interface through VMS _ NAME, VMS _ PASSWORD, and add the authentication identifier returned by the interface to the header (also called header) of the request (also called request) calling the interface of VMS, and every 5s heartbeat is sent to ensure that the authentication identifier is available. Therefore, the user can not sense the authentication identifier when calling the VMS system, and secondary login is avoided. In addition, because the node layer is not exposed to the user, the security of the account is also ensured to a certain extent.
(3) After the interface of the VMS is successfully called, the queried vmsCamereList is stored in the front end (corresponding to the user front end in the above embodiment).
(4) Establishing association between a camera of the service platform and a camera of the VMS system: when a user creates a camera address stored in a camera input service platform (which can be expressed in the form of a Uniform Resource Locator, called a "URL" for short), an input (input) onchange event is monitored; when monitoring the change of the input URL, dynamically matching whether the same address exists in the saved vmsCamereList list or not; for example, when the input camera address is rtsp:// admin: admin @10.231.20.155/1, if the matching is performed to the camera with the camera address 10.231.20.155 included in the vmscammeelist, the user may be prompted to dynamically fill in VMS information, for example, information such as a camera identifier related to the camera in the vmscammeelist is filled in a form of the camera corresponding to the input camera address, or the deviceID of the camera matched in the vmscammeelist may be automatically filled in the newly added camera information, so as to establish the association between the camera of the service platform and the camera of the VMS system (with the camera identifier as a strong association).
After the association between the cameras of the service platform and the cameras of the VMS system is established, when the video of a certain camera in the service platform needs to be played, the video is dynamically matched with the information in the vmsCamereList, and if the deviceiD is the same, the video clip in the NVR can be directly called to alarm and play back; the process is realized based on the interaction of a front end, a monitoring service system and a video management system, and specifically comprises the following steps as shown in fig. 7:
step 700, after determining whether there is a camera corresponding to video playback, the front end sends a request pull stream (equivalent to a video acquisition request in the above embodiment) to a server (also referred to as a node layer) of the monitoring service system; wherein, the request pull flow comprises the parameters: camera address and start time.
Step S702, a server of the monitoring service system sends a request pull stream to NVR storage equipment; wherein, the request pull flow comprises the parameters: camera address and start time; the process is usually the forwarding of the request pull stream through the VMS system.
In step S704, the NVR storage device returns the storage data to the monitoring service system.
Step S706, the monitoring service system converts the format into the storage data of the FLV and sends the storage data to the front end.
The above process is described in detail as follows:
(1) when the monitoring service system generates a new alarm record (corresponding to the prompt message in the above embodiment, also called "warning"), and sends the alarm record to the user front end; the user opens the detailed interface of the alarm record, and displays the snapshot of the alarm, the comparison graph, the recognition time (equivalent to the prompt time in the above embodiment), the snapshot camera ID (equivalent to the above camera identification), and the like in the interface. The front end of the user can control the display and the hiding of a video viewing button by setting a variable (such as showplay); when the variable is assigned to false, the video viewing button is hidden; when the variable is assigned as the future, displaying a video viewing button; this variable defaults to false.
(2) Matching the camera in the alarm information with the vmscarmerelst, setting showplay to true if there is a camera with a deviceID matching, displaying a video viewing button on the interface, and enabling the user to click the button to trigger a video viewing event (which is equivalent to the first video acquisition request for the target prompt information in the above embodiment).
(3) The playback interval time (indicated in the replaySpaceTime field) is set in the user personalization setting interface. The time length of the playback segment can be controlled by configuring the playback interval event information, the default value of the playback interval time is 10s, and the time length can be controlled by a + button and a-button. For example, each click of the + button, the playback interval time is increased by 5 s; each click of a button, the playback interval time is decreased by 5 s; the shortest time interval can be preset to be 10s, and the longest time is 3600 s. Controlling the time not to exceed the range by whether the + or-button can be clicked.
(4) The user clicks to check the video playback, and the user front end can calculate the playback start time startTime and the end time endTime according to the snapshot time captureTime and the video playback interval time of the alarm: startTime ═ captureTime-displayspacetime/2; endTime ═ captureTime + replaySpaceTime/2; then, according to the playback address, startTime, endTime of the camera matched with the VMS system, the video clip (corresponding to the video corresponding to the target cue information in the above embodiment) stored in the NVR device is requested.
(5) After receiving the VIDEO clip returned by the VMS system, the Node service layer transcodes the VIDEO clip into an FLV (FLASH VIDEO, streaming media format) format by using an ffmpeg plug-in and then pushes the VIDEO clip to a browser for playing.
The method effectively reduces the cost of the user for video playback, solves the problem that the NVR video clip cannot be acquired due to the fact that cameras between the VMS and the service platform are not intercommunicated, and simultaneously meets the backtracking capability of the user on the whole scene before and after the alarm through the self-defined playback time.
Example six:
corresponding to the above method embodiment for acquiring video, the embodiment of the invention provides a device for acquiring video, which is arranged at a user front end running with a monitoring service system, wherein the user front end is connected with a server of the monitoring service system; the server of the monitoring service system is connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; the method comprises the steps that a first camera identification and a first camera address corresponding to the first camera identification of a camera device in a preset range in a video management system are stored in a user front end in advance; as shown in fig. 8, the apparatus includes:
a first request receiving module 800, configured to receive a first video acquisition request for target prompt information triggered by a user, where the target prompt information includes a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the front end of a user by a server of the monitoring service system;
a request generating module 802, configured to search, according to a correspondence between the first camera identifier and the first camera address, a target camera address corresponding to the target camera identifier, and generate a second video acquisition request carrying the target camera address;
the first request sending module 804 is configured to send the second video obtaining request to a server of the monitoring service system, and send the second video obtaining request to a server of the video management system through the server of the monitoring service system, so as to obtain a video corresponding to the target prompt information.
Further, the above apparatus further comprises: the information receiving module is used for receiving target prompt information sent by a server of the monitoring service system; the target prompt information comprises a target camera identification of the target camera shooting device; the interface providing module is used for providing a trigger interface for a user if the first camera identification comprises a target camera identification; the triggering interface is used for enabling a user to trigger a first video obtaining request aiming at the target prompt information.
Specifically, the target prompt information includes a prompt time; the first video acquisition request comprises the duration of a video to be acquired; the request generation module is further configured to: extracting prompt time from the target prompt information; extracting the duration of the video to be acquired from the first video acquisition request; determining the time period of the video to be acquired according to the prompt time and the duration of the video to be acquired; and generating a second video acquisition request according to the address of the target camera and the time period of the video to be acquired.
Further, the above apparatus further comprises: the address extraction module is used for extracting a second camera address registered in the monitoring service system by the newly-built camera device from the instruction if the instruction of the newly-built camera device triggered by the user is received; the matching module is used for matching the second camera addresses with the first camera addresses one by one; and the camera device newly-built module is used for determining the first camera identifier corresponding to the successfully-matched first camera address as a second camera identifier corresponding to the second camera address in the monitoring service system of the newly-built camera device.
Further, the above apparatus further comprises: the identification receiving module is used for receiving and storing a first camera identification sent by a server of the monitoring service system and a first camera address corresponding to the first camera identification; the first camera identification and the first camera address corresponding to the first camera identification are obtained through the following modes: a server of a monitoring service system sends a query interface calling request to a server of a video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier; and the video management system judges whether the inquiry interface calling request is legal or not according to the authentication identifier, and if so, sends the first camera identifier and the first camera address corresponding to the first camera identifier to a server of the monitoring service system through an inquiry interface corresponding to the inquiry interface calling request.
The implementation principle and the generated technical effects of the apparatus for acquiring video provided by the embodiment of the present invention are the same as those of the foregoing method for acquiring video, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method for acquiring video without reference to the embodiment of the apparatus for acquiring video.
Example seven:
corresponding to the above method embodiment for acquiring video, the embodiment of the present invention further provides another device for acquiring video, where the device is disposed in a server of a monitoring service system, and the server of the monitoring service system is connected to a front end of a user operating the monitoring service system; the server of the monitoring service system is also connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; as shown in fig. 9, the apparatus includes:
a second request receiving module 900, configured to receive a second video acquisition request sent by the user front end; the second video acquisition request is generated by the user front end in the following way: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to target prompt information, and the target prompt information is generated after the video is analyzed and is sent to a user front end by a monitoring service system; searching a target camera address corresponding to a target camera identifier according to a pre-stored corresponding relation between a first camera identifier and a first camera address corresponding to the first camera identifier of a camera device in a preset range in a video management system, and generating a second video acquisition request carrying the target camera address;
a second request sending module 902, configured to send a second video obtaining request to a server of the video management system, so as to obtain a video corresponding to the target prompt information.
Further, the second request sending module is further configured to: adding a pre-acquired authentication identifier to the second video acquisition request; wherein the authentication identifier is used for: a server of the video management system verifies whether the monitoring service system has the authority of acquiring the video corresponding to the target camera address; and sending the second video acquisition request added with the authentication identification to a server of the video management system.
Further, the above apparatus further comprises: the format conversion module is used for converting the format of the video into a preset format if the video returned by the video management system is received; and the video sending module is used for sending the converted video to the front end of the user.
Further, the above apparatus further comprises: the information generating module is used for generating target prompt information; the target prompt message comprises a target camera identification of the target camera device; and the information sending module is used for sending the target prompt information to the front end of the user.
Further, the above apparatus further comprises: the calling request sending module is used for sending a query interface calling request to a server of the video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier, so that the video management system judges whether the query interface calling request is legal or not according to the authentication identifier, and if the query interface calling request is legal, the query interface calling request corresponding to the query interface sends a first camera identifier and a first camera address corresponding to the first camera identifier to the server of the monitoring service system; and the identification and address sending module is used for sending the first camera identification and the first camera address corresponding to the first camera identification to the user front end so that the user front end stores the first camera identification and the first camera address corresponding to the first camera identification.
Specifically, the authentication identifier is obtained by: calling a login interface of a video management system through a preset user name and a preset password, and receiving an authentication identifier returned by the login interface; the user name and the password pass authentication of the video management system in advance.
The implementation principle and the generated technical effects of the apparatus for acquiring video provided by the embodiment of the present invention are the same as those of the foregoing method for acquiring video, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method for acquiring video without reference to the embodiment of the apparatus for acquiring video.
Example eight:
an embodiment of the present invention further provides a terminal device, as shown in fig. 10, where the terminal device includes a processor 130 and a memory 131, the memory 131 stores machine executable instructions capable of being executed by the processor 130, and the processor 130 executes the machine executable instructions to implement a method for acquiring a video.
The embodiment of the present invention further provides a server, which has a structure similar to that of the terminal device described above, and as shown in fig. 10, the server also includes a processor 130 and a memory 131, the memory 131 stores machine executable instructions capable of being executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the method for acquiring the video.
Further, the terminal device shown in fig. 10 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133, and the memory 131 are connected through the bus 132.
The Memory 131 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 132 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 10, but this does not indicate only one bus or one type of bus.
The processor 130 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 130. The Processor 130 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the method for acquiring a video.
The method and apparatus for acquiring a video and the computer program product of the server provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (16)
1. A method for obtaining video is characterized in that the method is applied to a user front end running a monitoring service system; the server of the monitoring service system is connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; a first camera identifier of the camera device in the preset range in a video management system and a first camera address corresponding to the first camera identifier are stored in the user front end in advance; the method comprises the following steps:
receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to the target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the user front end by a server of the monitoring service system;
searching a target camera address corresponding to the target camera identification according to the corresponding relation between the first camera identification and the first camera address;
generating a second video acquisition request carrying the target camera address according to the target camera address and the time period of the video to be acquired; the time period comprises a start time and an end time;
and sending the second video acquisition request to a server of the monitoring service system, and sending the second video acquisition request to a server of the video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information.
2. The method of claim 1, wherein the step of receiving a user-triggered first video capture request for targeted reminder information is preceded by the method further comprising:
receiving target prompt information sent by a server of the monitoring service system; the target prompt message comprises a target camera identification of the target camera device;
providing a trigger interface to the user if the target camera identification is included in the first camera identification; the triggering interface is used for enabling the user to trigger a first video acquisition request aiming at the target prompt information.
3. The method of claim 1, wherein the target alert information includes an alert time; the first video acquisition request comprises the duration of a video to be acquired;
the step of generating a second video acquisition request carrying the target camera address includes:
extracting prompt time from the target prompt information;
extracting the duration of the video to be acquired from the first video acquisition request;
determining the time period of the video to be acquired according to the prompt time and the duration of the video to be acquired;
and generating the second video acquisition request according to the target camera address and the time period of the video to be acquired.
4. The method of claim 1, further comprising:
if an instruction of a newly built camera device triggered by the user is received, extracting a second camera address registered in the monitoring service system by the newly built camera device from the instruction;
matching the second camera addresses with the first camera addresses one by one;
and determining the first camera identifier corresponding to the successfully matched first camera address as a second camera identifier corresponding to the second camera address in the monitoring service system of the newly-built camera device.
5. The method of claim 1, further comprising:
receiving and storing the first camera identifier sent by a server of the monitoring service system and a first camera address corresponding to the first camera identifier;
the first camera identification and the first camera address corresponding to the first camera identification are obtained through the following modes: the server of the monitoring service system sends a query interface calling request to the server of the video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier; and the video management system judges whether the inquiry interface calling request is legal or not according to the authentication identifier, and if so, sends the first camera identifier and the first camera address corresponding to the first camera identifier to a server of the monitoring service system through an inquiry interface corresponding to the inquiry interface calling request.
6. A method for obtaining video is characterized in that the method is applied to a server of a monitoring service system, and the server of the monitoring service system is connected with a user front end running with the monitoring service system; the server of the monitoring service system is also connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; the method comprises the following steps:
receiving a second video acquisition request sent by the front end of the user;
wherein the second video acquisition request is generated by the user front end by: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to the target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the user front end by the monitoring service system; searching a target camera address corresponding to a target camera identifier according to a pre-stored corresponding relation between a first camera identifier and a first camera address corresponding to the first camera identifier of a camera device in a preset range in a video management system; generating a second video acquisition request carrying the target camera address according to the target camera address and the time period of the video to be acquired; the time period comprises a start time and an end time;
and sending the second video acquisition request to a server of the video management system to acquire a video corresponding to the target prompt information.
7. The method of claim 6, wherein sending the second video acquisition request to a server of the video management system comprises:
adding a pre-acquired authentication identifier to the second video acquisition request; wherein the authentication identifier is configured to: the server of the video management system verifies whether the monitoring service system has the authority of acquiring the video corresponding to the target camera address;
and sending the second video acquisition request added with the authentication identification to a server of the video management system.
8. The method of claim 6, wherein after the step of sending the second video acquisition request to a server of the video management system, the method comprises:
if a video returned by the video management system is received, converting the format of the video into a preset format;
and sending the converted video to the front end of the user.
9. The method of claim 6, wherein the step of receiving a second video acquisition request sent by the customer premises is preceded by the method further comprising:
generating target prompt information; the target prompt message comprises a target camera identification of the target camera device;
and sending the target prompt message to the user front end.
10. The method of claim 6, further comprising:
sending a query interface calling request to a server of the video management system, wherein the query interface calling request comprises a pre-acquired authentication identifier, so that the video management system judges whether the query interface calling request is legal or not according to the authentication identifier, and if the query interface calling request is legal, sending a first camera identifier and a first camera address corresponding to the first camera identifier to the server of the monitoring service system through a query interface corresponding to the query interface calling request;
and sending the first camera identification and a first camera address corresponding to the first camera identification to the user front end, so that the user front end stores the first camera identification and the first camera address corresponding to the first camera identification.
11. The method of claim 10, wherein the authentication identifier is obtained by:
calling a login interface of the video management system through a preset user name and a preset password, and receiving an authentication identifier returned by the login interface; the user name and the password pass authentication of the video management system in advance.
12. The device for acquiring the video is characterized in that the device is arranged at the front end of a user operating a monitoring service system; the server of the monitoring service system is connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; a first camera identifier of the camera device in the preset range in a video management system and a first camera address corresponding to the first camera identifier are stored in the user front end in advance; the device comprises: the first request receiving module is used for receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to the target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the user front end by a server of the monitoring service system;
a request generation module, configured to search for a target camera address corresponding to the target camera identifier according to a correspondence between the first camera identifier and the first camera address; generating a second video acquisition request carrying the target camera address according to the target camera address and the time period of the video to be acquired; the time period comprises a start time and an end time;
and the first request sending module is used for sending the second video acquisition request to a server of the monitoring service system, and sending the second video acquisition request to a server of the video management system through the server of the monitoring service system so as to acquire a video corresponding to the target prompt information.
13. A device for acquiring video is characterized in that the device is arranged on a server of a monitoring service system, and the server of the monitoring service system is connected with a front end of a user running with the monitoring service system; the server of the monitoring service system is also connected with a server of a preset video management system, the video management system is used for managing storage equipment, and the storage equipment is used for storing videos collected by the camera device within a preset range; the device comprises:
the second request receiving module is used for receiving a second video acquisition request sent by the user front end;
wherein the second video acquisition request is generated by the user front end by: receiving a first video acquisition request aiming at target prompt information triggered by a user, wherein the target prompt information comprises a target camera identifier of a target camera device; the first video acquisition request is used for acquiring a video corresponding to the target prompt information, and the target prompt information is generated after the video is analyzed and is sent to the user front end by the monitoring service system; searching a target camera address corresponding to a target camera identifier according to a pre-stored corresponding relation between a first camera identifier and a first camera address corresponding to the first camera identifier of a camera device in a preset range in a video management system; generating a second video acquisition request carrying the target camera address according to the target camera address and the time period of the video to be acquired; the time period comprises a start time and an end time;
and the second request sending module is used for sending the second video acquisition request to a server of the video management system so as to acquire the video corresponding to the target prompt information.
14. A terminal device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of any one of claims 1 to 5.
15. A server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of any one of claims 6 to 11.
16. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1 to 11.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010361928.8A CN111641805B (en) | 2020-04-30 | 2020-04-30 | Method and device for acquiring video, terminal equipment and server |
PCT/CN2020/119499 WO2021218035A1 (en) | 2020-04-30 | 2020-09-30 | Video obtaining method and apparatus, terminal device, and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010361928.8A CN111641805B (en) | 2020-04-30 | 2020-04-30 | Method and device for acquiring video, terminal equipment and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111641805A CN111641805A (en) | 2020-09-08 |
CN111641805B true CN111641805B (en) | 2021-10-01 |
Family
ID=72331916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010361928.8A Active CN111641805B (en) | 2020-04-30 | 2020-04-30 | Method and device for acquiring video, terminal equipment and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111641805B (en) |
WO (1) | WO2021218035A1 (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111641805B (en) * | 2020-04-30 | 2021-10-01 | 武汉旷视金智科技有限公司 | Method and device for acquiring video, terminal equipment and server |
CN112449159B (en) * | 2020-11-13 | 2022-03-29 | 珠海大横琴科技发展有限公司 | Monitoring video display control method and device, electronic equipment and storage medium |
CN112770184B (en) * | 2020-12-24 | 2023-03-24 | 上海掌门科技有限公司 | Method and equipment for providing video resources |
CN114245070B (en) * | 2021-11-30 | 2022-08-19 | 慧之安信息技术股份有限公司 | Method and system for centralized viewing of regional monitoring content |
CN114222093A (en) * | 2021-12-15 | 2022-03-22 | 武汉科迪智能环境股份有限公司 | Control management method, control management device, computer-readable storage medium and control equipment |
CN114554079B (en) * | 2022-01-11 | 2024-08-06 | 浙江大华技术股份有限公司 | Intelligent service management method and intelligent service management system |
CN114500945A (en) * | 2022-01-21 | 2022-05-13 | 广联达科技股份有限公司 | Video source management method and video source management system |
CN114827674B (en) * | 2022-03-30 | 2023-09-05 | 北京奇艺世纪科技有限公司 | Network resource display method, device and system |
CN114900661A (en) * | 2022-05-10 | 2022-08-12 | 上海浦东发展银行股份有限公司 | Monitoring method, device, equipment and storage medium |
CN115022592A (en) * | 2022-06-01 | 2022-09-06 | 新奥数能科技有限公司 | Method and device for playing monitoring videos with multiple interfaces |
CN115359615B (en) * | 2022-08-15 | 2023-08-04 | 北京飞讯数码科技有限公司 | Indoor fire alarm early warning method, system, device, equipment and medium |
CN116033187B (en) * | 2023-01-05 | 2024-08-30 | 北京奇艺世纪科技有限公司 | Video processing system, method, device, electronic equipment and storage medium |
CN118317196B (en) * | 2024-06-06 | 2024-08-06 | 杭州海康威视系统技术有限公司 | Method, device, equipment and storage medium for distributing preset bits of camera |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104700533A (en) * | 2014-12-31 | 2015-06-10 | 大亚湾核电运营管理有限责任公司 | Nuclear safety linkage control method and system |
CN105120223A (en) * | 2015-09-01 | 2015-12-02 | 中国移动通信集团青海有限公司 | Method and system for acquiring view of scenery spot |
CN107197208A (en) * | 2017-06-28 | 2017-09-22 | 广州高清视信数码科技股份有限公司 | Video monitoring comprehensive business system |
CN108109132A (en) * | 2016-11-25 | 2018-06-01 | 杭州海康威视数字技术股份有限公司 | A kind of image analysis method and device |
CN108512804A (en) * | 2017-02-24 | 2018-09-07 | 美的智慧家居科技有限公司 | Safe recording method and device |
CN108696725A (en) * | 2018-06-01 | 2018-10-23 | 宜春学院 | A kind of camera long-range control method Internet-based and system |
CN108989837A (en) * | 2017-08-25 | 2018-12-11 | 北京视联动力国际信息技术有限公司 | A kind of method and apparatus of picture interception |
CN110536118A (en) * | 2019-09-06 | 2019-12-03 | 腾讯科技(深圳)有限公司 | A kind of data capture method, device and computer storage medium |
CN111063144A (en) * | 2019-12-03 | 2020-04-24 | 联通物联网有限责任公司 | Abnormal behavior monitoring method, device, equipment and computer readable storage medium |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365848A (en) * | 2012-03-27 | 2013-10-23 | 华为技术有限公司 | Method, device and system for inquiring videos |
CN105791249A (en) * | 2014-12-26 | 2016-07-20 | 深圳云之家网络有限公司 | Third-party application processing method, device and system |
US9361011B1 (en) * | 2015-06-14 | 2016-06-07 | Google Inc. | Methods and systems for presenting multiple live video feeds in a user interface |
US10380429B2 (en) * | 2016-07-11 | 2019-08-13 | Google Llc | Methods and systems for person detection in a video feed |
US20190110112A1 (en) * | 2017-10-06 | 2019-04-11 | Six Star Services LLC | Video streaming system with participant tracking and highlight selection |
CN109842781B (en) * | 2017-11-29 | 2021-05-14 | 杭州海康威视系统技术有限公司 | Monitoring video playing method, device, system, media server and storage medium |
CN108806153A (en) * | 2018-06-21 | 2018-11-13 | 北京旷视科技有限公司 | Alert processing method, apparatus and system |
CN109783680B (en) * | 2019-01-16 | 2021-03-23 | 北京旷视科技有限公司 | Image pushing method, image acquisition device and image processing system |
CN109831647A (en) * | 2019-01-22 | 2019-05-31 | 视联动力信息技术股份有限公司 | A kind of method and apparatus for transferring monitoring |
CN110072081B (en) * | 2019-03-22 | 2021-06-08 | 广东省重工建筑设计院有限公司 | Engineering site field monitoring system |
CN111641805B (en) * | 2020-04-30 | 2021-10-01 | 武汉旷视金智科技有限公司 | Method and device for acquiring video, terminal equipment and server |
-
2020
- 2020-04-30 CN CN202010361928.8A patent/CN111641805B/en active Active
- 2020-09-30 WO PCT/CN2020/119499 patent/WO2021218035A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104700533A (en) * | 2014-12-31 | 2015-06-10 | 大亚湾核电运营管理有限责任公司 | Nuclear safety linkage control method and system |
CN105120223A (en) * | 2015-09-01 | 2015-12-02 | 中国移动通信集团青海有限公司 | Method and system for acquiring view of scenery spot |
CN108109132A (en) * | 2016-11-25 | 2018-06-01 | 杭州海康威视数字技术股份有限公司 | A kind of image analysis method and device |
CN108512804A (en) * | 2017-02-24 | 2018-09-07 | 美的智慧家居科技有限公司 | Safe recording method and device |
CN107197208A (en) * | 2017-06-28 | 2017-09-22 | 广州高清视信数码科技股份有限公司 | Video monitoring comprehensive business system |
CN108989837A (en) * | 2017-08-25 | 2018-12-11 | 北京视联动力国际信息技术有限公司 | A kind of method and apparatus of picture interception |
CN108696725A (en) * | 2018-06-01 | 2018-10-23 | 宜春学院 | A kind of camera long-range control method Internet-based and system |
CN110536118A (en) * | 2019-09-06 | 2019-12-03 | 腾讯科技(深圳)有限公司 | A kind of data capture method, device and computer storage medium |
CN111063144A (en) * | 2019-12-03 | 2020-04-24 | 联通物联网有限责任公司 | Abnormal behavior monitoring method, device, equipment and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
非接触双目立体视觉图像位移测试技术研究及其应用;王振亮;《中国优秀硕士学位论文全文数据库信息科技辑》;20170215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111641805A (en) | 2020-09-08 |
WO2021218035A1 (en) | 2021-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111641805B (en) | Method and device for acquiring video, terminal equipment and server | |
US10021318B2 (en) | Method and apparatus in a motion video capturing system | |
KR101680714B1 (en) | Method for providing real-time video and device thereof as well as server, terminal device, program, and recording medium | |
CN113411642B (en) | Screen projection method and device, electronic equipment and storage medium | |
JP2017108389A (en) | Method and system for providing time machine function in live program | |
CN109660854B (en) | Video recommendation method, device, equipment and storage medium | |
CN106534910B (en) | Multimedia playing control system, method and device | |
CN109982322B (en) | Screen projection method, device, system and storage medium | |
CN111444415B (en) | Barrage processing method, server, client, electronic equipment and storage medium | |
KR102063463B1 (en) | Multimedia information reproduction method and system, standardization server, live broadcasting terminal | |
WO2018205833A1 (en) | Method and apparatus for transmitting music file information, storage medium, and electronic apparatus | |
CN112256225A (en) | Screen projection method, server, terminal device and computer readable storage medium | |
US10455277B2 (en) | Linking devices | |
CN114071242A (en) | Video playing method, video pushing device and electronic equipment | |
CN113784156A (en) | Live broadcast method and device, electronic equipment and storage medium | |
CN116366789A (en) | Video storage and playback method, device and system | |
CA3102425C (en) | Video processing method, device, terminal and storage medium | |
CN106331891B (en) | A kind of information interacting method and electronic equipment | |
CN110996044A (en) | Monitoring round-robin method and device, electronic equipment and storage medium | |
CN110809172A (en) | Interactive special effect display method and device and electronic equipment | |
CN106792251A (en) | Method for information display, device and terminal | |
US11004472B2 (en) | Method and device of playing video, and computing device | |
CN113613029B (en) | Live broadcast picture display method and device, storage medium and electronic equipment | |
CN108076381B (en) | Video display method, video forwarding equipment and system | |
JP2005526305A (en) | Method and apparatus for obtaining internet content for a wireless device |
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 |