CN111666453B - Video management and retrieval method and device, electronic equipment and storage medium - Google Patents

Video management and retrieval method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111666453B
CN111666453B CN201910173319.7A CN201910173319A CN111666453B CN 111666453 B CN111666453 B CN 111666453B CN 201910173319 A CN201910173319 A CN 201910173319A CN 111666453 B CN111666453 B CN 111666453B
Authority
CN
China
Prior art keywords
transaction
target
image frame
command
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910173319.7A
Other languages
Chinese (zh)
Other versions
CN111666453A (en
Inventor
张晓奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910173319.7A priority Critical patent/CN111666453B/en
Publication of CN111666453A publication Critical patent/CN111666453A/en
Application granted granted Critical
Publication of CN111666453B publication Critical patent/CN111666453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/207Surveillance aspects at ATMs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

The embodiment of the invention provides a video management method, a video retrieval method, a video management device, a video retrieval device, electronic equipment and a storage medium. The video management method is applied to an ATM host and comprises the following steps: receiving a target command sent by client equipment; judging whether the target command is one command in at least one preset command; any predetermined command is a command generated by the client device when the client device detects that a user performs a predetermined transaction operation on the client device; different predetermined transaction operations correspond to different predetermined commands; if yes, acquiring transaction parameters formed by the predetermined transaction operation corresponding to the target command, and searching target image frames from the real-time monitoring video of the client device, wherein the target image frames are image frames representing the predetermined transaction operation corresponding to the target command; and establishing an association relation between the transaction parameters and the target image frames. The embodiment of the invention can realize intelligent management of the monitoring video stored by the ATM host, thereby providing a retrieval basis for intelligent video retrieval.

Description

Video management and retrieval method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a video management method, a video search device, an electronic device, and a storage medium.
Background
The ATM host is a special high-definition digital hard disk video recorder for the financial industry, and can realize high-definition coding and video recording. The ATM host supports the access of the analog camera and the access of the digital camera, and can also carry out network access and networking so as to meet the requirements of video monitoring digitization, networking and high definition. Therefore, ATM hosts have been widely used for video and audio monitoring in ATM (Automatic Teller Machine, automated teller machine), bank counter, and the like. In particular, ATM hosts store video and audio content regarding a user's performance of a transaction operation at an ATM, a transaction device at a bank counter, or the like.
In practical applications, it is sometimes necessary to retrieve a video corresponding to specific transaction information from among a large number of monitoring videos stored in an ATM host. For example, it is necessary to search for a video corresponding to a certain bank card number from among a large number of monitoring videos stored in the ATM host.
However, the existing ATM host stores only video and audio data of the monitoring video for the monitoring video collected by the audio-video collecting apparatus. Because only the video and audio data of the monitoring video are stored in the ATM host, when the video corresponding to certain specific transaction information needs to be searched, comparison search is usually performed in the monitoring video stored in the ATM host manually, so that the searching efficiency of video searching is lower. Therefore, how to intelligently manage mass monitoring videos in an ATM host, so as to provide a retrieval base for intelligent video retrieval, is a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention aims to provide a video management and retrieval method, a device, electronic equipment and a storage medium, so as to realize intelligent management of monitoring video stored by an ATM host, thereby providing a retrieval basis for intelligent video retrieval. The specific technical scheme is as follows:
in a first aspect, the present invention provides a video management method applied to an ATM host, where the ATM host is communicatively connected to a client device, the method including:
receiving a target command sent by the client device;
judging whether the target command is one command in at least one preset command; wherein any predetermined command is a command generated by the client device when detecting that a user performs a predetermined transaction operation on the client device; different predetermined transaction operations correspond to different predetermined commands;
when the judgment result is yes, acquiring transaction parameters formed by the predetermined transaction operation corresponding to the target command, and searching target image frames from the real-time monitoring video corresponding to the client device, wherein the target image frames are image frames capable of representing the predetermined transaction operation corresponding to the target command;
And establishing an association relation between the transaction parameters and the target image frames.
Optionally, the frame type of the target image frame is I-frame;
the searching the target image frame from the real-time monitoring video corresponding to the client device comprises the following steps:
searching an I frame with the closest timestamp to a target time point from the real-time monitoring video corresponding to the client equipment as a target image frame; the target time point is a time point for acquiring the transaction parameters.
Optionally, the at least one predetermined command includes: the method comprises the steps that the client device generates a first command when detecting that the user performs a transaction starting operation, and generates a second command when detecting that the user performs a transaction ending operation;
the method further comprises the steps of:
when the target command is the first command, after searching a target image frame from the real-time monitoring video corresponding to the client device, marking the target image frame as a starting image frame, wherein the starting image frame is an image frame for representing the opening of a transaction;
and when the target command is the second command, after searching a target image frame from the real-time monitoring video corresponding to the client device, marking the target image frame as a termination image frame, wherein the termination image frame is an image frame representing the end of the transaction.
Optionally, the establishing the association relationship between the transaction parameter and the target image frame includes:
and correspondingly storing the transaction parameters and the frame identification of the target image frame into a hard disk of the ATM host or a storage device connected with the ATM host.
Optionally, after the association relationship between the transaction parameter and the target image frame is established, the method further includes:
and adding the transaction parameters to a plurality of continuous image frames of the real-time monitoring video, wherein a first frame of the plurality of continuous image frames is the target image frame.
In a second aspect, the present invention provides a video retrieval method applied to an ATM host, the method comprising:
receiving a search instruction, wherein the search instruction carries: target transaction parameters;
determining a first target image frame corresponding to a target transaction parameter based on a pre-established association relation between the transaction parameter and the target image frame, wherein the first target image frame is a target image frame containing the target transaction parameter in the corresponding transaction parameter; the association relation between the transaction parameters and the target image frames is established according to the video management method of the first aspect;
And searching video data containing the first target image frame in the stored monitoring video, and determining the searched video data as a search result.
Optionally, the method searches the stored monitoring video for the video containing the first target image frame, and determines the searched video as the search result, and then the method further comprises:
the target transaction parameter is added to a plurality of consecutive image frames of the video as the search result, a first frame of the plurality of consecutive image frames being the first target image frame.
In a third aspect, the present invention provides a video management apparatus for use with an ATM host, the ATM host being communicatively coupled to a client device, the apparatus comprising:
the first receiving module is used for receiving a target command sent by the client device;
the judging module is used for judging whether the target command is one command in at least one preset command; wherein any predetermined command is a command generated by the client device when detecting that a user performs a predetermined transaction operation on the client device; different predetermined transaction operations correspond to different predetermined commands;
The acquisition module is used for acquiring transaction parameters formed by the predetermined transaction operation corresponding to the target command when the judgment result is yes, and searching target image frames from the real-time monitoring video corresponding to the client device, wherein the target image frames are image frames capable of representing the predetermined transaction operation corresponding to the target command;
and the establishing module is used for establishing the association relation between the transaction parameters and the target image frames.
Optionally, the frame type of the target image frame is I-frame;
the acquisition module is specifically configured to search, from a real-time monitoring video corresponding to the client device, an I frame with a timestamp closest to a target time point as a target image frame; the target time point is a time point for acquiring the transaction parameters.
Optionally, the at least one predetermined command includes: the method comprises the steps that the client device generates a first command when detecting that the user performs a transaction starting operation, and generates a second command when detecting that the user performs a transaction ending operation;
the apparatus further comprises:
the first control module is used for marking the target image frame as a starting image frame after the acquisition module searches the target image frame from the real-time monitoring video corresponding to the client device when the target command is the first command, wherein the starting image frame is an image frame for representing the opening of a transaction;
And the second control module is used for marking the target image frame as a termination image frame after the acquisition module searches the target image frame from the real-time monitoring video corresponding to the client device when the target command is the second command, wherein the termination image frame is an image frame representing the end of the transaction.
Optionally, the establishing module is specifically configured to store the transaction parameter and the frame identifier of the target image frame in a hard disk of the ATM host, or in a storage device connected to the ATM host.
Optionally, the apparatus further comprises:
and the first adding module is used for adding the transaction parameters to a plurality of continuous image frames of the real-time monitoring video after the establishing module establishes the association relation between the transaction parameters and the target image frames, wherein the first frame of the plurality of continuous image frames is the target image frame.
In a fourth aspect, the present invention provides a video retrieval apparatus for use with an ATM host, the apparatus comprising:
the second receiving module is used for receiving a search instruction, and the search instruction carries: target transaction parameters;
the determining module is used for determining a first target image frame corresponding to the target transaction parameter based on a pre-established association relation between the transaction parameter and the target image frame, wherein the first target image frame is a target image frame containing the target transaction parameter in the corresponding transaction parameter; the association relation between the transaction parameter and the target image frame is established by the video management device in the third aspect;
And the searching module is used for searching the video data containing the first target image frame in the stored monitoring video and determining the searched video data as a search result.
Optionally, the apparatus further comprises:
and the second adding module is used for searching the video containing the first target image frame in the stored monitoring video, determining the searched video as a search result, and adding the target transaction parameter into a plurality of continuous image frames of the video as the search result, wherein the first frame of the plurality of continuous image frames is the first target image frame.
In a fifth aspect, the present invention provides an electronic device, where the electronic device is an ATM host, and includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of the video management method according to the first aspect when executing the program stored in the memory.
In a sixth aspect, the present invention provides an electronic device, where the electronic device is an ATM host, and includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the steps of the video retrieval method as described in the second aspect above when executing a program stored on a memory.
In a seventh aspect, the present invention provides a computer readable storage medium having stored therein a computer program which when executed by a processor implements the video management method steps of the first aspect above.
In an eighth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the video retrieval method steps of the second aspect above.
The above can be seen that, by applying the video management method provided by the embodiment of the present invention, after receiving the target command sent by the client device, the ATM host determines whether the target command is one of at least one predetermined command; and when the judgment result is yes, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client equipment, and then establishing an association relation between the transaction parameter and the target image frame. Therefore, by the video management method, intelligent management of the monitoring video stored by the ATM host can be realized, and a retrieval basis is provided for intelligent video retrieval.
In addition, based on the video management method provided by the embodiment of the invention, compared with manual retrieval in the prior art, the video retrieval method provided by the embodiment of the invention can quickly and effectively retrieve the video corresponding to the specific transaction information.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a video management method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another video management method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a video retrieval method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of another video retrieval method according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a video management apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a video retrieval device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The ATM host is a special high-definition digital hard disk video recorder for the financial industry, is communicated with ATM, transaction equipment at a bank counter and the like, can be used as a back-end server of the ATM, the transaction equipment at the bank counter and the like, and can realize high-definition coding and video recording. The existing ATM host only stores video and audio data of the monitoring video for the monitoring video collected by the audio-video collecting equipment. Because only the video and audio data of the monitoring video are stored in the ATM host, when the video corresponding to certain specific transaction information needs to be searched, comparison search is usually performed in the monitoring video stored in the ATM host manually, so that the searching efficiency of video searching is lower. Therefore, how to intelligently manage mass monitoring videos in an ATM host, so as to provide a retrieval base for intelligent video retrieval, is a problem to be solved urgently.
In order to solve the technical problems, the embodiment of the invention provides a video management method.
It should be noted that the video management method provided by the embodiment of the invention can be applied to an ATM host. The ATM host may store a surveillance video of a user performing a transaction operation at a client device. The client device may be an ATM, a transaction device at a bank counter, or the like. In the embodiment of the invention, there may be one or more client devices.
It can be understood that, because the embodiment of the present invention provides a video management method, the ATM host needs to be able to obtain a monitoring video corresponding to the client device, where the monitoring video specifically includes: and audio and video data corresponding to the client equipment. In the monitoring video corresponding to the client device, the process of executing the transaction operation by the user at the client device can be monitored.
In a specific application, the monitoring video corresponding to the client device may be acquired by an audio/video acquisition device corresponding to the client device. In one manner, the audio/video capturing device corresponding to the client device may be the client device itself, where the client device may actively or passively upload the captured audio/video data to the ATM host or another storage device in communication with the ATM host. In another manner, the audio/video capturing device corresponding to the client device may be an audio/video capturing device installed near the client device, where the audio/video capturing device may actively or passively upload the captured audio/video data to the ATM host or another storage device in communication with the ATM host. Whether the client device itself or the audio/video acquisition device installed near the client device, the acquired audio/video data are: and monitoring the audio and video data obtained in the process of executing the transaction operation by the user at the client device.
In addition, it should be emphasized that when the audio/video data corresponding to the client device is uploaded to another storage device, the ATM host may request to obtain the audio/video data corresponding to the client device from the other storage device. And the client device itself or the audio/video collection device installed near the client device can collect the audio/video data corresponding to the client device all the time in real time, or can start collecting the audio/video data corresponding to the client device when detecting the user or the user to execute the transaction starting operation, which is reasonable.
The following describes a video management method according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a flow chart of a video management method according to an embodiment of the present invention. As shown in fig. 1, a video management method provided by an embodiment of the present invention may include the following steps:
s101, receiving a target command sent by the client device.
When any user performs a transaction operation at a client device, the client device may detect the transaction operation and generate a target command corresponding to the transaction operation. Further, the client device may send the target command to the ATM host to inform the ATM host that a user is currently performing a transaction operation on the client device. Specifically, in this embodiment, the ATM host may have previously agreed with the client device to: when the client device detects that the user performs a transaction operation at the client device, the client device generates a target command corresponding to the transaction operation and sends the target command to the ATM host. Specifically, when the target command is transmitted, the target command may be transmitted by wired communication or wireless communication.
The transaction operations described above may include, but are not limited to: inserting a card, inquiring, withdrawing money, depositing deposit, modifying a password, transferring accounts, inquiring without a card, depositing without a card, taking a card and the like.
It will be appreciated that a transaction operation may form a corresponding transaction parameter. The transaction parameters may include, but are not limited to, the transaction operation: transaction time, transaction operation type, transaction card number, transaction amount, etc.
Based on this, the transaction parameters formed by the corresponding transaction operations may be carried in the target command so that the ATM host may obtain the transaction parameters. Of course, these transaction parameters may not be carried in the target command, but the ATM host may be notified by simply sending the target command: currently there are users performing transaction operations on client devices.
S102, judging whether the target command is one command in at least one preset command.
Wherein any predetermined command is a command generated by the client device upon detecting that the user is performing a predetermined transaction operation at the client device. In this embodiment, different predetermined transaction operations correspond to different predetermined commands. It will be appreciated that determining whether the target command is one of at least one predetermined command is a determination as to whether the transaction operation currently being performed by the user is a predetermined transaction operation.
The predetermined transaction operations may be predefined transaction operations of some standard or specification. For example, the predetermined transaction operations may include, but are not limited to: inserting a card, inquiring, withdrawing money, depositing deposit, modifying a password, transferring accounts, inquiring without a card, depositing without a card, taking a card and the like. Each predetermined command is therefore a command that the user generates when performing a certain standard or canonical transaction operation. Moreover, a transaction operation corresponds to a predetermined command.
In a specific application, for each predetermined command, a check code corresponding to the predetermined command may be predefined. After receiving the target command, the ATM host may determine whether the target command is one of the at least one predetermined command by determining whether the check code of the target command is a check code of one of the at least one predetermined command. Of course, there may be various ways to determine whether the target command is one of the at least one predetermined command, which is not limited by the present invention.
And S103, when the judgment result is yes, acquiring transaction parameters formed by the predetermined transaction operation corresponding to the target command, and searching the target image frame from the real-time monitoring video corresponding to the client device.
Wherein the target image frame is an image frame capable of characterizing a predetermined transaction operation corresponding to the target command.
And when the judgment result is yes, the target command passes the correctness check, and the target command is one command in at least one preset command. That is, the transaction operation corresponding to the target command is a predetermined transaction operation. Then, the ATM host can acquire the transaction parameters formed by the predetermined transaction operation corresponding to the target command, and search the target image frame from the real-time monitoring video corresponding to the client device. Since the target image frame is an image frame capable of characterizing a predetermined transaction operation corresponding to the target command, an association relationship of the acquired transaction parameters and the searched target image frame can be further established.
The transaction parameters formed by the predetermined transaction operations corresponding to the target command may include, but are not limited to: transaction time, transaction operation type, transaction card number, transaction amount, etc.
In one case, the target command may carry transaction parameters formed by the corresponding transaction operations, as described in step S101. In this case, then, the ATM host may parse the packet of the target command after receiving the target command, and extract from the packet: transaction parameters formed by the predetermined transaction operations corresponding to the target commands.
In another case, the target command may not carry the transaction parameters formed by the corresponding transaction operations. Then, in this case, the ATM host may send a transaction parameter acquisition request to the client device, and receive the request sent by the client device in response to the request: transaction parameters formed by the predetermined transaction operations corresponding to the target commands.
In this embodiment, the ATM host may acquire a real-time monitoring video corresponding to the client device, and search for the target image frame from the real-time monitoring video. The frame type of the target image frame may be an I frame, i.e., a key frame. Specifically, the ATM host may send an acquisition instruction to the audio/video acquisition device, to acquire the monitoring video acquired by the audio/video acquisition device corresponding to the client device in real time. The specific process of the ATM host to acquire the monitoring video acquired by the audio and video acquisition equipment in real time can be as follows: the audio and video acquisition equipment acquires audio and video signals, and after receiving an acquisition instruction, the acquired audio and video signals are encoded into an audio and video code stream by an encoder, and the audio and video code stream is sent to the ATM host; the ATM host writes the received audio and video code stream into a pre-allocated code stream buffer, reads the audio and video code stream from the code stream buffer, and writes the read audio and video code stream into a video partition of a hard disk of the pre-allocated ATM host. The audio and video code stream is the real-time monitoring video corresponding to the client device.
The embodiment of the invention is not limited to the video coding format for coding the video signal, and any video coding format capable of coding the video signal can be applied to the application. Also, the embodiment of the present invention is not limited to the audio encoding format for encoding the audio signal, and any audio encoding format capable of encoding the audio signal may be applied to the present application.
Optionally, when the frame type of the target image frame is an I frame, in one implementation, searching the target image frame from the real-time monitoring video corresponding to the client device may include:
searching an I frame with the closest timestamp to a target time point from a real-time monitoring video corresponding to the client equipment as a target image frame; the target time point is a time point for acquiring the transaction parameters.
In this implementation, the timestamp of one I frame refers to: acquisition time of the frame. Since the transaction parameters are transaction parameters formed by the predetermined transaction operations corresponding to the target commands, an I-frame with a time stamp closest to the time point of acquiring the transaction parameters is taken as a target image frame, and the target image frame can be taken as an image frame representing the predetermined transaction operations corresponding to the target commands executed by the user. That is, the target image frame may be an image frame when the user performs the predetermined transaction operation.
The method for searching the target image frames in the real-time monitoring video corresponding to the client equipment is not limited. Any existing method for searching target image frames from the real-time monitoring video corresponding to the client equipment can be applied to the method.
For example: in other implementations, the time point when the ATM host receives the target command may be taken as a target time point, so that from the real-time monitoring video corresponding to the client device, an I frame with a time stamp closest to the target time point is searched and taken as the target image frame. Because the target command is generated and sent to the ATM host when the client device detects that the user performs a predetermined transaction operation on the client device, an I frame with a time stamp closest to the time point when the target command is received by the ATM host is taken as a target image frame, and the target image frame can be taken as an image frame representing the predetermined transaction operation corresponding to the target command performed by the user. That is, the target image frame may be an image frame when the user performs the predetermined transaction operation.
Also for example: searching an I frame with a timestamp after a target time point and closest to the target time point from a real-time monitoring video corresponding to the client device as a target image frame; or, searching an I frame with a time stamp before and closest to the target time point from the real-time monitoring video corresponding to the client device as a target image frame. The target time point may be a time point when the transaction parameter is acquired or a time point when the ATM host receives the target command.
S104, establishing an association relation between the transaction parameters and the target image frames.
After the transaction parameters formed by the preset transaction operation corresponding to the target command are obtained and the target image frames are searched from the real-time monitoring video corresponding to the client equipment, the ATM host can establish the association relationship between the transaction parameters and the target image frames.
Optionally, in an implementation, establishing the association relationship between the transaction parameter and the target image frame may include:
the transaction parameters and the frame identification of the target image frame are correspondingly stored in a hard disk of the ATM host or a storage device connected with the ATM host.
In this implementation, the frame identification of the target image frame may be: the timestamp of the target image frame. The timestamp of the target image frame refers to: the acquisition time of the target image frame. In this embodiment, the ATM host may store the real-time monitoring video corresponding to the client device in a local hard disk, and then the frame identifier of the target image frame may further be: the target image frame is offset in the corresponding hard disk partition. The corresponding hard disk partition refers to: and storing the hard disk partition of the real-time monitoring video corresponding to the client device in the hard disk of the ATM host.
Specifically, the ATM host may write the acquired transaction parameters into a pre-allocated transaction parameter cache, and simultaneously read the transaction parameters from the transaction parameter cache, and write the read transaction parameters into a transaction parameter partition of a hard disk of the pre-allocated ATM host. When the transaction parameters are written into the transaction parameter partition, the frame identification of the target image frame is also written into the transaction parameter partition, so that the transaction parameters and the frame identification of the target image frame are correspondingly stored into the hard disk of the ATM host.
Of course, the transaction parameters and the frame identification of the target image frame may also be stored correspondingly to: in a storage device connected to an ATM host. The storage device connected with the ATM host may specifically be: a network disk or other type of storage device connected to the ATM host.
The association relation between the transaction parameters and the target image frames established by the ATM host can provide a retrieval basis for intelligent video retrieval. Namely: the video corresponding to the specific transaction information can be retrieved from the massive monitoring videos stored in the ATM host based on the association relation between the transaction parameters and the target image frames established by the ATM host.
The above can be seen that, by applying the video management method provided by the embodiment of the present invention, after receiving the target command sent by the client device, the ATM host determines whether the target command is one of at least one predetermined command; and when the judgment result is yes, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client equipment, and then establishing an association relation between the transaction parameter and the target image frame. Therefore, by the video management method, intelligent management of the monitoring video stored by the ATM host can be realized, and a retrieval basis is provided for intelligent video retrieval.
Optionally, in an implementation, in an embodiment shown in fig. 1, the at least one predetermined command may include: the method comprises the steps that a first command is generated when the client device detects that a user performs a transaction starting operation, and a second command is generated when the client device detects that the user performs a transaction ending operation;
accordingly, the method may further include:
when the target command is a first command, after searching a target image frame from a real-time monitoring video corresponding to the client device, marking the target image frame as a starting image frame, wherein the starting image frame is an image frame for representing the starting of transaction;
and when the target command is a second command, after searching the target image frame from the real-time monitoring video corresponding to the client device, marking the target image frame as a termination image frame, wherein the termination image frame is an image frame representing the end of the transaction.
In this implementation, the above-mentioned transaction starting operation may be: and (5) card insertion operation. It will be appreciated that the card insertion operation is typically the first transaction operation performed by the user throughout the transaction conducted by the client device. When the user performs a card insertion operation, this means that the user starts a transaction at the client device. Then, when the target command is the first command, the ATM host may mark the target image frame as a start image frame, which is an image frame representing the opening of the transaction, after searching the target image frame from the real-time monitoring video corresponding to the client device. That is, the starting image frame is: an image frame representing a user beginning a transaction process at a client.
When video retrieval is performed in a massive monitoring video stored in an ATM host, a target transaction parameter is often given, and a video segment of a transaction process corresponding to the target transaction parameter is expected to be retrieved. For example, given a target transaction parameter a that is generated by a user when performing a predetermined transaction operation b, and the transaction process including the transaction operation b is c, it is often desirable to retrieve a video segment of the transaction process c. Based on this, when the target command is the first command described above, marking the target image frame as the start image frame after the target image frame is searched can facilitate: and determining the starting position of the video segment of the transaction process corresponding to the target transaction parameter. The starting position may be represented by a starting image frame.
In this implementation, the transaction ending operation may be: and (5) card taking operation. It will be appreciated that the card-picking operation is typically the last transaction operation performed by the user throughout the transaction performed by the client device. When the user performs a card-taking operation, this means that the user has finished the transaction performed at the client device. Then, when the target command is the second command, the ATM host may mark the target image frame as a termination image frame, which is an image frame representing the end of the transaction, after searching the target image frame from the real-time monitoring video corresponding to the client device. That is, the termination image frame is: an image frame representing a user ending a certain transaction process at a client.
As described above, when video searching is performed in a massive monitoring video stored in an ATM host, a target transaction parameter is often given, and it is desired to search a video segment of a transaction process corresponding to the target transaction parameter. Based on this, when the target command is the above-described second command, marking the target image frame as a termination image frame after the target image frame is searched can facilitate: and determining the ending position of the video segment of the transaction process corresponding to the target transaction parameter. The end position may be represented by a termination image frame.
Therefore, through the implementation manner, when the video segment of the transaction process corresponding to the target transaction parameter needs to be searched, the starting position and the ending position of the video segment can be determined by using the marked starting image frame and the marked ending image frame respectively, so that the video segment is determined.
Particularly when the target image frame is marked as the starting image frame, the marking can be performed by means of modes 1 and 2. Mode 1: a start identifier is added to the target image frame, the start identifier being an identifier that characterizes the beginning of the transaction. Mode 2: the frame identification of the target image frame is recorded as a start identification, which is an identification characterizing the beginning of the transaction. Also, when the target image frame is marked as the termination image frame, the marking can be performed in modes 3 and 4. Mode 3: an end identifier is added to the target image frame, the end identifier being an identifier that characterizes the end of the transaction. Mode 4: the frame identification of the target image frame is recorded as an end identification, which is an identification characterizing the end of the transaction. Of course, the above is merely exemplary, and in practical applications, there are various ways of marking the target image frame as the start image frame/the end image frame, and the marking ways of the embodiments of the present invention are not limited.
Fig. 2 is a flowchart of another video management method according to an embodiment of the present invention. As shown in fig. 2, after step S104, the method may further include the following steps, based on the embodiment shown in fig. 1:
s105, adding the transaction parameters into a plurality of continuous image frames of the real-time monitoring video, wherein a first frame of the plurality of continuous image frames is a target image frame.
After establishing the association between the transaction parameter and the target image frame, the transaction parameter may be further added to a plurality of continuous image frames in the real-time monitoring video, wherein the continuous image frames are the first frames. The added transaction parameters here refer to: the transaction parameters are displayed in a succession of image frames starting from the target image frame. That is, the transaction parameters are displayed in the image frames for a period of time starting from the target image frame so that the transaction parameters formed when the user performs the predetermined transaction operation are intuitively displayed in the image frame representing the predetermined transaction operation. The number of the continuous plurality of image frames may be set as needed, for example: the consecutive plurality of image frames is 120 consecutive image frames.
In the present embodiment, the transaction parameters may be added in a continuous plurality of image frames by an OSD (On-Screen Display) method, for example. By displaying the transaction parameters in the image frames by the method, the transaction parameters can be displayed in a 'post-superposition' manner. The "post-overlay" herein is another way of displaying the transaction parameters by incorporating the transaction parameters into the audio-video code stream of the surveillance video, as distinguished from the prior art. The display mode of the post-superposition is as follows: when a user issues a transaction parameter display instruction at an ATM host, the transaction parameters are acquired and display of the transaction parameters is controlled by a separate thread. Specifically, the target transaction parameters are displayed for a period of time from the target image frames by control of the separate thread. That is, the transaction parameters can be displayed according to the user's needs, and since the transaction parameters are not incorporated into the audio-video code stream of the monitoring video, the transaction information leakage can be avoided.
The above can be seen that, by applying the video management method provided by the embodiment of the present invention, after receiving the target command sent by the client device, the ATM host determines whether the target command is one of at least one predetermined command; and when the judgment result is yes, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client equipment, and then establishing an association relation between the transaction parameter and the target image frame. Therefore, by the video management method, intelligent management of the monitoring video stored by the ATM host can be realized, and a retrieval basis is provided for intelligent video retrieval. Further, by adding the transaction parameters to a plurality of consecutive image frames in the real-time monitoring video, the image frames representing the predetermined transaction operation, the transaction parameters formed when the user performs the predetermined transaction operation, can be intuitively displayed in the image frames representing the predetermined transaction operation.
In practical applications, it is increasingly required to retrieve a video corresponding to specific transaction information from among a large number of monitoring videos stored in an ATM host. For example, it is necessary to search for a video corresponding to a certain bank card number from among a large number of monitoring videos stored in the ATM host.
However, the existing ATM host stores only video and audio data of the monitoring video for the monitoring video collected by the audio-video collecting apparatus. Because only the video and audio data of the monitoring video are stored in the ATM host, when the video corresponding to certain specific transaction information needs to be searched, comparison search is usually performed in the monitoring video stored in the ATM host manually, so that the searching efficiency of video searching is lower. In order to solve the technical problems, the embodiment of the invention provides a video retrieval method.
It should be noted that the video retrieval method provided by the embodiment of the invention can be applied to an ATM host.
The following describes a video retrieval method provided by the embodiment of the invention.
Fig. 3 is a flowchart of a video retrieval method according to an embodiment of the present invention. The method is applied to an ATM host. As shown in fig. 3, the method may include the steps of:
S301, receiving a search instruction, wherein the search instruction carries: target transaction parameters.
When any user needs to search the ATM host for the video corresponding to the specific transaction information, the user may issue a search instruction to the ATM host, and the specific transaction information may be included in the search instruction as a target transaction parameter. Illustratively, the user may enter the target transaction parameters in a predetermined interface of the ATM host, click a ok or retrieve button, and thereby issue a retrieve instruction.
The target transaction parameters may include one or more, for example, may be one or more of transaction time, type of transaction operation, transaction card number, transaction amount, and the like. The target transaction parameters here represent specific values of corresponding kinds of transaction parameters. For example, when the target transaction parameter is a transaction time, the target transaction parameter is represented as a specific value of the transaction time, such as: 2018, 5, 1, 10:00.
S302, determining a first target image frame corresponding to the target transaction parameter based on a pre-established association relation between the transaction parameter and the target image frame, wherein the first target image frame is a target image frame containing the target transaction parameter in the corresponding transaction parameter; the association relation between the transaction parameters and the target image frames is established according to the video management method shown in fig. 1 or fig. 2.
When the ATM host receives the retrieval instruction, the first target image frame corresponding to the target transaction parameter may be determined based on the association relationship between the transaction parameter and the target image frame established according to the video management method shown in fig. 1 or fig. 2. It will be appreciated that the type of transaction parameter corresponding to any one of the target image frames is uncertain, and may be one or more, depending on the predetermined transaction performed by the user. Therefore, in the present embodiment, the first target image frame is a target image frame including the target transaction parameter in the corresponding transaction parameter. That is, when the target transaction parameters are one or more, the transaction parameters corresponding to the first target image frame should include the one or more target transaction parameters. The inclusion herein means: the first target image frame is a specific value of the corresponding transaction parameter, and contains a specific value of the target transaction parameter.
It will be appreciated that in practical applications, the determined first target image frame may be one frame or may be multiple frames.
Because of the association between the transaction parameters and the target image frames established by the video management method shown in fig. 1 or fig. 2, the association between the transaction parameters formed when the user performs the predetermined transaction operation and the image frames representing the predetermined transaction operation is substantial. Therefore, the first target image frame determined in this step is: when a user performs a predetermined transaction operation to form a target transaction parameter, a target image frame of the predetermined transaction operation may be characterized.
S303, searching video data containing the first target image frame in the stored monitoring video, and determining the searched video data as a search result.
The stored monitoring video may specifically be a monitoring video corresponding to each client device. The client device may be an ATM cash dispenser, a bank counter device, or the like. That is, the user may perform a transaction operation on the client device.
Typically, the surveillance video stored by the ATM host may be stored in segments in the ATM host. Therefore, in this embodiment, the video clip in which the first target image frame is located, that is, the video data including the first target image frame, may be determined according to the frame identification of the first target image frame, and the determined video clip may be used as the search result. Wherein the frame identification of the first target image frame may be: a time stamp of the first target image frame. The time stamp of the first target image frame may refer to: the acquisition time of the first target image frame. In this embodiment, the ATM host may store the monitoring video in a local hard disk, and then the frame identifier of the first target image frame may be: the first target image frame has an offset address in the corresponding hard disk partition. The corresponding hard disk partition refers to: the hard disk of the ATM host stores the hard disk partition of the monitoring video.
It can be understood that, for the case that the first target image frame is a plurality of frames, when the monitoring video segments of a plurality of frames are identical, the monitoring video segments do not need to be repeatedly used as the search result.
In order to retrieve the video data more accurately, the video data of the transaction process corresponding to the target transaction parameter may also be determined by using the start image frame and the end image frame marked in the embodiment of fig. 1 or fig. 2, that is, a sub-segment of the transaction process including the first target image frame may be determined from the video segment. Specifically, after determining the video segment including the first target image frame, the starting image frame and the ending image frame marked in the embodiment of fig. 1 or fig. 2 may be used to determine the starting position and the ending position of the sub-segment of the transaction process corresponding to the target transaction parameter, so as to determine the sub-segment from the video segment including the first target image frame, where the sub-segment is the video data including the first target image frame. When the first target image frame is not the initial image frame and the ending image frame, the nearest initial image frame before the first target image frame is used as the initial position of the transaction process, and the nearest ending image frame after the first target image frame is used as the ending position of the transaction process; when the first target image frame is a starting image frame, the first target image frame is taken as a starting position of a transaction process, and a last frame of ending image frame after the first target image frame is taken as an ending position of the transaction process; when the first target image frame is a termination image frame, the nearest frame start image frame before the first target image frame is used as the starting position of the transaction process, and the first target image frame is used as the ending position of the transaction process.
For example, every 30 minutes of the monitoring video is taken as one video clip. Video clips 8:00-8:30,8:30-9:00, etc., determining a sub-clip containing a first target image frame based on a start image frame, a stop image frame, and the first target image frame; if the determined sub-segments are 8:10-8:20, indicating that the first target image frame is also in the video segment, taking the video data of 8:10-8:20 as a retrieval result; if the determined sub-segments are 8:20-8:40 and the time stamp of the first target image frame is 8:25, taking the video data of 8:20-8:30 as a retrieval result; if the determined sub-segments are 8:20-8:40 and the time stamp of the first target image frame is 8:35, taking the video data of 8:30-8:40 as a retrieval result.
The above can be seen that, by applying the scheme provided by the embodiment of the invention, the ATM host determines the video corresponding to the target transaction parameter from the stored monitoring video based on the pre-established association relation between the transaction parameter and the target image frame. Compared with manual retrieval in the prior art, the video corresponding to the specific transaction information can be retrieved quickly and effectively.
Fig. 4 is a flowchart of another video retrieval method according to an embodiment of the present invention. As shown in fig. 4, on the basis of the embodiment shown in fig. 3, after step S303, the following steps may be further included:
S304, adding the target transaction parameter to a plurality of consecutive image frames of the video as the search result, wherein a first frame of the plurality of consecutive image frames is a first target image frame.
In the stored monitoring video, a video including a first target image frame is searched, and after the searched video is determined as a search result, a target transaction parameter may be further added to a plurality of consecutive image frames having the first target image frame as a first frame in the video as a search result. The addition target transaction parameters here refer to: the target transaction parameters are displayed in a succession of image frames starting from a first target image frame. That is, the target transaction parameters are displayed in the image frames for a period of time starting from the first target image frame so that the target transaction parameters formed when the user performs the certain predetermined transaction operation are intuitively displayed in the image frames representing the certain predetermined transaction operation. The number of the continuous plurality of image frames may be set as needed, for example: the consecutive plurality of image frames is 120 consecutive image frames.
In the present embodiment, the target transaction parameters may be added in a continuous plurality of image frames by an OSD (On-Screen Display) method, for example. By displaying the target transaction parameters in the image frames by the method, the target transaction parameters can be displayed in a 'post-superposition' mode. The "post-overlay" herein is another display manner that is distinguished from the existing display of the target transaction parameters by incorporating the target transaction parameters into the audio-video code stream of the surveillance video. The display mode of the post-superposition is as follows: when the user sends out the target transaction parameter display instruction at the ATM host, the target transaction parameters are acquired, and the display of the target transaction parameters is controlled through a separate thread. Specifically, the target transaction parameters are displayed for a period of time starting from the first target image frame by control of the separate thread. That is, the target transaction parameters can be displayed according to the user's needs, and since the target transaction parameters are not incorporated into the audio-video code stream of the monitoring video, the leakage of transaction information can be avoided.
The above can be seen that, by applying the scheme provided by the embodiment of the invention, the ATM host determines the video corresponding to the target transaction parameter from the stored monitoring video based on the pre-established association relation between the transaction parameter and the target image frame. Compared with manual retrieval in the prior art, the video corresponding to the specific transaction information can be retrieved quickly and effectively. Further, by adding the target transaction parameter to a plurality of consecutive image frames of the stored monitoring video, the first target image frame being the first frame, the target transaction parameter formed when the user performs the certain predetermined transaction operation can be intuitively displayed in the image frame representing the certain predetermined transaction operation.
Corresponding to the video management method provided by the embodiment of the invention, the embodiment of the invention also provides a video management device. The video management apparatus is applied to an ATM host which is communicatively connected to a client device.
Fig. 5 is a video management apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus may include the following modules:
a first receiving module 501, configured to receive a target command sent by the client device;
A judging module 502, configured to judge whether the target command is a command in at least one predetermined command; wherein any predetermined command is a command generated by the client device when detecting that a user performs a predetermined transaction operation on the client device; different predetermined transaction operations correspond to different predetermined commands;
an obtaining module 503, configured to obtain a transaction parameter formed by a predetermined transaction operation corresponding to the target command and search a target image frame from a real-time monitoring video corresponding to the client device, where the target image frame is an image frame capable of representing the predetermined transaction operation corresponding to the target command when the determination result is yes;
and a building module 504, configured to build an association relationship between the transaction parameter and the target image frame.
The above can be seen that, by applying the video management device provided by the embodiment of the present invention, after receiving the target command sent by the client device, the ATM host determines whether the target command is one of at least one predetermined command; and when the judgment result is yes, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client equipment, and then establishing an association relation between the transaction parameter and the target image frame. Therefore, by the video management method, intelligent management of the monitoring video stored by the ATM host can be realized, and a retrieval basis is provided for intelligent video retrieval.
As one implementation of the embodiment of the present invention, the frame type of the target image frame is an I frame;
the obtaining module 503 is specifically configured to search, from a real-time monitoring video corresponding to the client device, an I frame having a timestamp closest to a target time point, as a target image frame; the target time point is a time point for acquiring the transaction parameters.
As an implementation of the embodiment of the present invention, the at least one predetermined command includes: the method comprises the steps that the client device generates a first command when detecting that the user performs a transaction starting operation, and generates a second command when detecting that the user performs a transaction ending operation;
the apparatus further comprises:
a first control module, configured to, when the target command is the first command, mark, after the obtaining module 503 searches a target image frame from a real-time monitoring video corresponding to the client device, the target image frame as a start image frame, where the start image frame is an image frame that characterizes a transaction start;
and a second control module, configured to, when the target command is the second command, mark the target image frame as a termination image frame after the acquisition module 503 searches the target image frame from the real-time monitoring video corresponding to the client device, where the termination image frame is an image frame representing that the transaction is ended.
As an implementation manner of the embodiment of the present invention, the establishing module 504 is specifically configured to store the transaction parameter and the frame identifier of the target image frame in a hard disk of the ATM host, or in a storage device connected to the ATM host.
As an implementation manner of the embodiment of the present invention, the apparatus further includes:
a first adding module, configured to add the transaction parameter to a plurality of continuous image frames of the real-time monitoring video after the association relationship between the transaction parameter and the target image frame is established by the establishing module 504, where a first frame of the plurality of continuous image frames is the target image frame.
Corresponding to the video retrieval method provided by the embodiment of the invention, the embodiment of the invention also provides a video retrieval device. The video retrieval device is applied to an ATM host.
Fig. 6 is a video retrieval device according to an embodiment of the present invention, as shown in fig. 6, the device may include the following modules:
the second receiving module 601 is configured to receive a search instruction, where the search instruction carries: target transaction parameters;
a determining module 602, configured to determine a first target image frame corresponding to a target transaction parameter based on a pre-established association relationship between the transaction parameter and the target image frame, where the first target image frame is a target image frame including the target transaction parameter in the corresponding transaction parameter; the association relation between the transaction parameters and the target image frames is established by the video management device shown in fig. 5;
And a searching module 603, configured to search the stored monitoring video for video data including the first target image frame, and determine the searched video data as a search result.
The above can be seen that, by applying the scheme provided by the embodiment of the invention, the ATM host determines the video corresponding to the target transaction parameter from the stored monitoring video based on the pre-established association relation between the transaction parameter and the target image frame. Compared with manual retrieval in the prior art, the video corresponding to the specific transaction information can be retrieved quickly and effectively.
As an implementation manner of the embodiment of the present invention, the apparatus further includes:
a second adding module, configured to, in the searching module 603, search a stored monitoring video for a video including the first target image frame, determine the searched video as a search result, and then add the target transaction parameter to a plurality of consecutive image frames of the video as the search result, where a first frame of the plurality of consecutive image frames is the first target image frame.
The embodiment of the invention also provides an electronic device, which is an ATM host, as shown in fig. 7, and includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702 and the memory 703 complete communication with each other through the communication bus 704,
A memory 703 for storing a computer program;
the processor 701 is configured to implement a video management method provided in the above embodiment of the present invention when executing a program stored in the memory 703, so as to obtain the same technical effects.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the invention also provides another electronic device, which is an ATM host, as shown in fig. 8, and includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the video search method provided in the above embodiment of the present invention when executing the program stored in the memory 803, so as to obtain the same technical effects.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the video management method of any of the above embodiments to obtain the same technical effects.
In yet another embodiment of the present invention, there is further provided another computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the video retrieval method of any of the above embodiments to obtain the same technical effect.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the video management method of any of the above embodiments to achieve the same technical effects.
In yet another embodiment of the present invention, there is provided another computer program product containing instructions that, when executed on a computer, cause the computer to perform the video retrieval method of any of the above embodiments to achieve the same technical effect.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device/ATM host/storage medium/computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the description of the method embodiments in part.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (8)

1. A video management method for use with an ATM host, the ATM host communicatively coupled to a client device, the method comprising:
receiving a target command sent by the client device;
judging whether the target command is one command of at least one preset command or not by judging whether the check code of the target command is the check code of one command of the at least one preset command or not; wherein any predetermined command is a command generated by the client device when detecting that a user performs a predetermined transaction operation on the client device; different predetermined transaction operations correspond to different predetermined commands, the at least one predetermined command comprising: the method comprises the steps that the client device generates a first command when detecting that the user performs a transaction starting operation, and generates a second command when detecting that the user performs a transaction ending operation;
When the judgment result is yes and the target command is the first command, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client device, and marking the target image frame as a starting image frame by adding a starting identifier to the target image frame or recording a frame identifier of the target image frame as a starting identifier, wherein the starting image frame is an image frame representing the starting of the transaction, and the starting identifier is an identifier representing the starting of the transaction;
when the judgment result is yes and the target command is the second command, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client device, and marking the target image frame as a termination image frame by adding a termination mark for the target image frame or recording a frame mark of the target image frame as a termination mark, wherein the termination image frame is an image frame representing the termination of the transaction, and the termination mark is a mark representing the termination of the transaction;
establishing an association relationship between the transaction parameters and the target image frames;
Adding the transaction parameters to a plurality of continuous image frames taking the target image frames as first frames in the real-time monitoring video through an on-screen menu display method, so that when the ATM host receives a display instruction of the transaction parameters, the transaction parameters are controlled to be displayed through a single thread, wherein the adding of the transaction parameters to the plurality of continuous image frames taking the target image frames as first frames in the real-time monitoring video means that: the transaction parameters are displayed in a succession of image frames starting from the target image frame.
2. The method of claim 1, wherein the frame type of the target image frame is an I-frame;
the searching the target image frame from the real-time monitoring video corresponding to the client device comprises the following steps:
searching an I frame with the closest timestamp to a target time point from the real-time monitoring video corresponding to the client equipment as a target image frame; the target time point is a time point for acquiring the transaction parameters.
3. The method according to any one of claims 1-2, wherein said establishing an association of the transaction parameters with the target image frames comprises:
And correspondingly storing the transaction parameters and the frame identification of the target image frame into a hard disk of the ATM host or a storage device connected with the ATM host.
4. A video retrieval method for use with an ATM host, the method comprising:
receiving a search instruction, wherein the search instruction carries: target transaction parameters;
determining a first target image frame corresponding to a target transaction parameter based on a pre-established association relation between the transaction parameter and the target image frame, wherein the first target image frame is a target image frame containing the target transaction parameter in the corresponding transaction parameter; the association relation between the transaction parameters and the target image frames is established according to the video management method of any one of claims 1-3;
in the stored monitoring video, determining video data comprising the first target image frame by using marked initial image frames and marked termination image frames, and determining the searched video data as a search result;
adding the target transaction parameter to a plurality of continuous image frames taking the first target image frame as a first frame in the video serving as a search result through an on-screen menu display method, so that when the ATM host receives a display instruction of the target transaction parameter, the target transaction parameter is controlled to be displayed through a separate thread, wherein the adding the target transaction parameter to the plurality of continuous image frames taking the first target image frame as the first frame in the video serving as the search result means that: the target transaction parameters are displayed in a consecutive plurality of image frames starting from the first target image frame.
5. A video management apparatus for use with an ATM host, said ATM host being communicatively coupled to a client device, said apparatus comprising:
the first receiving module is used for receiving a target command sent by the client device;
the judging module is used for judging whether the target command is one command in at least one preset command or not by judging whether the check code of the target command is one command in at least one preset command or not; wherein any predetermined command is a command generated by the client device when detecting that a user performs a predetermined transaction operation on the client device; different predetermined transaction operations correspond to different predetermined commands, the at least one predetermined command comprising: the method comprises the steps that the client device generates a first command when detecting that the user performs a transaction starting operation, and generates a second command when detecting that the user performs a transaction ending operation;
the acquisition module is used for acquiring transaction parameters formed by preset transaction operation corresponding to the target command when the judgment result is yes and the target command is the first command, searching target image frames from real-time monitoring video corresponding to the client equipment, and marking the target image frames as initial image frames by adding initial identifiers to the target image frames or recording frame identifiers of the target image frames as initial identifiers, wherein the initial image frames are image frames representing the starting of the transaction, and the initial identifiers are identifiers representing the starting of the transaction; when the judgment result is yes and the target command is the second command, acquiring a transaction parameter formed by a preset transaction operation corresponding to the target command, searching a target image frame from a real-time monitoring video corresponding to the client device, and marking the target image frame as a termination image frame by adding a termination mark for the target image frame or recording a frame mark of the target image frame as a termination mark, wherein the termination image frame is an image frame representing the termination of the transaction, and the termination mark is a mark representing the termination of the transaction;
The establishing module is used for establishing the association relation between the transaction parameters and the target image frames;
the apparatus also includes means for:
adding the transaction parameters to a plurality of continuous image frames taking the target image frames as first frames in the real-time monitoring video through an on-screen menu display method, so that when the ATM host receives a display instruction of the transaction parameters, the transaction parameters are controlled to be displayed through a single thread, wherein the adding of the transaction parameters to the plurality of continuous image frames taking the target image frames as first frames in the real-time monitoring video means that: the transaction parameters are displayed in a succession of image frames starting from the target image frame.
6. A video retrieval apparatus for use with an ATM host, said apparatus comprising:
the second receiving module is used for receiving a search instruction, and the search instruction carries: target transaction parameters;
the determining module is used for determining a first target image frame corresponding to the target transaction parameter based on a pre-established association relation between the transaction parameter and the target image frame, wherein the first target image frame is a target image frame containing the target transaction parameter in the corresponding transaction parameter; the association relation between the transaction parameters and the target image frames is established by the video management device of claim 5;
The searching module is used for determining video data comprising the first target image frame by using the marked initial image frame and the marked termination image frame in the stored monitoring video, and determining the searched video data as a searching result;
the apparatus also includes means for:
adding the target transaction parameter to a plurality of continuous image frames taking the first target image frame as a first frame in the video serving as a search result through an on-screen menu display method, so that when the ATM host receives a display instruction of the target transaction parameter, the target transaction parameter is controlled to be displayed through a separate thread, wherein the adding the target transaction parameter to the plurality of continuous image frames taking the first target image frame as the first frame in the video serving as the search result means that: the target transaction parameters are displayed in a consecutive plurality of image frames starting from the first target image frame.
7. The electronic equipment is characterized by being an ATM host, and comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the method of any of claims 1-4 when executing a program stored on a memory.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-4.
CN201910173319.7A 2019-03-07 2019-03-07 Video management and retrieval method and device, electronic equipment and storage medium Active CN111666453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910173319.7A CN111666453B (en) 2019-03-07 2019-03-07 Video management and retrieval method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910173319.7A CN111666453B (en) 2019-03-07 2019-03-07 Video management and retrieval method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111666453A CN111666453A (en) 2020-09-15
CN111666453B true CN111666453B (en) 2024-01-02

Family

ID=72382231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910173319.7A Active CN111666453B (en) 2019-03-07 2019-03-07 Video management and retrieval method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111666453B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5636036A (en) * 1987-02-27 1997-06-03 Ashbey; James A. Interactive video system having frame recall dependent upon user input and current displayed image
CN101872515A (en) * 2010-06-24 2010-10-27 成都基业长青科技有限责任公司 Transaction linkage video image monitoring system for banking system
CN103155550A (en) * 2010-10-11 2013-06-12 Lg电子株式会社 Image-monitoring device and method for searching for objects therefor
CN105373581A (en) * 2015-10-09 2016-03-02 浙江大华技术股份有限公司 Method and device for processing video files in transaction processes
CN106294454A (en) * 2015-05-29 2017-01-04 中兴通讯股份有限公司 Video retrieval method and device
CN109121008A (en) * 2018-08-03 2019-01-01 腾讯科技(深圳)有限公司 A kind of video previewing method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5636036A (en) * 1987-02-27 1997-06-03 Ashbey; James A. Interactive video system having frame recall dependent upon user input and current displayed image
CN101872515A (en) * 2010-06-24 2010-10-27 成都基业长青科技有限责任公司 Transaction linkage video image monitoring system for banking system
CN103155550A (en) * 2010-10-11 2013-06-12 Lg电子株式会社 Image-monitoring device and method for searching for objects therefor
CN106294454A (en) * 2015-05-29 2017-01-04 中兴通讯股份有限公司 Video retrieval method and device
CN105373581A (en) * 2015-10-09 2016-03-02 浙江大华技术股份有限公司 Method and device for processing video files in transaction processes
CN109121008A (en) * 2018-08-03 2019-01-01 腾讯科技(深圳)有限公司 A kind of video previewing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111666453A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
US8676027B2 (en) Method for event initiated video capturing and a video camera for capture event initiated video
US7904621B2 (en) Data reproducing apparatus, content management method, program, and storage medium
US11032584B2 (en) Picture storage method, apparatus and video monitoring system
US20190174089A1 (en) Method and device for storing warning image
CN104093038B (en) For test and method for supervising and the device of real time flow medium identification service
CN108650538A (en) It is a kind of to record near field audio and far field video method and system simultaneously
CN111552567A (en) Thread management method and device, electronic equipment and storage medium
CN111666453B (en) Video management and retrieval method and device, electronic equipment and storage medium
CN112579820A (en) Time hopping video data processing method, device, medium and electronic equipment
CN111628905B (en) Data packet capturing method, device and equipment
WO2024001626A1 (en) Video patrol inspection method and apparatus, electronic device, and computer program product
JP2007274582A (en) Monitoring video image management system
CN116132625A (en) Supervision method and device for transaction flow
CN109962944A (en) A kind of media data storage method, storage device and electronic equipment
CN104637496A (en) Computer system and audio comparison method
CN112434711B (en) Data management method and device and electronic equipment
CN108174187B (en) Method and system for testing response time of smart television
CN116466883B (en) Distributed multi-source information acquisition and storage system and storage method thereof
CN113709408B (en) Data acquisition method and device and video processing equipment
CN111355910B (en) Video storage method, video search method and device
CN115022676B (en) Video stream pushing method and device, electronic equipment and readable medium
CN115618023B (en) Video retrieval method, system and device
CN114356490B (en) Financial information visualization processing method and system based on big data
CN107730705B (en) Method, device, equipment and storage medium for starting and stopping data and continuous data acquisition
CN115665476B (en) Video analysis method and device, electronic equipment and storage medium

Legal Events

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