WO2019011275A1 - Video search method and apparatus, cloud storage system and computer device - Google Patents

Video search method and apparatus, cloud storage system and computer device Download PDF

Info

Publication number
WO2019011275A1
WO2019011275A1 PCT/CN2018/095279 CN2018095279W WO2019011275A1 WO 2019011275 A1 WO2019011275 A1 WO 2019011275A1 CN 2018095279 W CN2018095279 W CN 2018095279W WO 2019011275 A1 WO2019011275 A1 WO 2019011275A1
Authority
WO
WIPO (PCT)
Prior art keywords
index information
monitoring video
video
information
feature
Prior art date
Application number
PCT/CN2018/095279
Other languages
French (fr)
Chinese (zh)
Inventor
薛成刚
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2019011275A1 publication Critical patent/WO2019011275A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

Provided are a video search method and apparatus, a cloud storage system and a computer device. The method comprises: a management node receiving a video search request, including feature information about a surveillance video to be searched, sent by a client, wherein the feature information comprises at least one of the following: a reference picture, a spatial range, a time range and attribute information; the management node determining a target storage node storing the surveillance video to be searched, and sending the video search request to each target storage node; each target storage node receiving the video search request, searching, according to a locally stored surveillance video, stored surveillance video index information and the feature information, for target surveillance video index information with a matching degree between same and the feature information being greater than a first pre-set threshold value, and sending the target surveillance video index information to the management node. The embodiments of the present application can realize the search of a surveillance video in a cloud storage system.

Description

一种视频搜索方法、装置、云存储系统及计算机设备Video search method, device, cloud storage system and computer equipment
本申请要求于2017年07月12日提交中国专利局、申请号为201710565416.1申请名称为“一种视频搜索方法、装置、云存储系统及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese Patent Application entitled "A Video Search Method, Apparatus, Cloud Storage System, and Computer Equipment" filed on July 12, 2017, with the application number of 201710565416.1, the entire contents of which are hereby incorporated by reference. The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及视频监控技术领域,特别是涉及一种视频搜索方法、装置、云存储系统及计算机设备。The present application relates to the field of video surveillance technologies, and in particular, to a video search method, apparatus, cloud storage system, and computer device.
背景技术Background technique
随着视频监控技术的不断发展,平安城市、智能小区、智能交通等建设的日益普遍,视频监控应用越来越广泛。这将导致监控视频呈几何指数的爆炸性增长。With the continuous development of video surveillance technology, the construction of safe cities, intelligent communities, and intelligent transportation is becoming more and more popular, and video surveillance applications are becoming more and more widespread. This will result in an explosive increase in the geometrical index of the surveillance video.
为满足对海量监控视频的存储,云存储系统应运而生。具体的,云存储系统可以包括管理节点、多个存储节点,前端监控设备采集的监控视频需要通过接入节点写入云存储系统。在监控视频存储过程中,如图1所示,数据流向为1.1-1.2-1.3-1.4,即接入节点在具体接入任一前端监控设备的监控视频时,可以首先通过接入节点向管理节点申请,为该前端监控设备分配一存储节点,从而该前端监控设备可以将其采集的监控视频发送给该存储节点存储。In order to meet the storage of massive surveillance video, cloud storage systems have emerged. Specifically, the cloud storage system may include a management node and multiple storage nodes, and the monitoring video collected by the front-end monitoring device needs to be written into the cloud storage system through the access node. In the process of monitoring video storage, as shown in Figure 1, the data flow direction is 1.1-1.2-1.3-1.4, that is, when the access node specifically accesses the monitoring video of any front-end monitoring device, it can first manage to the access node. The node applies to allocate a storage node to the front-end monitoring device, so that the front-end monitoring device can send the collected monitoring video to the storage node for storage.
其中,管理节点中存储有各存储节点中所存储监控视频的索引信息,该索引信息中至少包括各存储节点中所存储监控视频对应的粗略位置信息,如所属省、市、地区信息等;各存储节点中也存储有该存储节点所存储监控视频的索引信息,该索引信息中至少包括各监控视频对应的时间信息、详细位置信息,如所属街道名称等。The management node stores the index information of the monitoring video stored in each storage node, where the index information includes at least the rough location information corresponding to the monitoring video stored in each storage node, such as the province, city, and region information; The storage node also stores index information of the monitoring video stored by the storage node, where the index information includes at least time information and detailed location information corresponding to each monitoring video, such as the name of the street to which it belongs.
但是,仅仅只是提供存储大量监控视频的能力,对用户的实际应用来说还远远不够。如何智能的、快速的在云存储系统存储的海量监控视频中找到用户关注的、感兴趣的监控视频,如,某一时间段内位于某个位置处的监控视频,或包含某个特定目标的监控视频,成为一个亟待解决的问题。However, just providing the ability to store a large amount of surveillance video is not enough for the actual application of the user. How to intelligently and quickly find the monitoring video of interest and interest of the user in the massive monitoring video stored in the cloud storage system, such as a monitoring video located at a certain location within a certain period of time, or a specific target Monitoring video has become an urgent problem to be solved.
发明内容Summary of the invention
本申请实施例的目的在于提供一种视频搜索方法、装置、云存储系统及 计算机设备,以实现云存储系统中监控视频的搜索。具体技术方案如下:The purpose of the embodiments of the present application is to provide a video search method, device, cloud storage system, and computer device to implement monitoring of monitoring video in a cloud storage system. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种视频搜索方法,所述方法包括:In a first aspect, an embodiment of the present application provides a video search method, where the method includes:
管理节点接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;The management node receives a video search request that is sent by the client and includes feature information of the to-be-searched surveillance video, where the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
所述管理节点确定存储有所述待搜索监控视频的目标存储节点,并将所述视频搜索请求发送至各所述目标存储节点;The management node determines a target storage node that stores the to-be-searched surveillance video, and sends the video search request to each of the target storage nodes;
各所述目标存储节点接收所述视频搜索请求,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。Each of the target storage nodes receives the video search request, and according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, the matching degree between the search and the feature information is greater than the first preset. The target of the threshold monitors the video index information, and sends the target monitoring video index information to the management node.
可选的,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述各所述目标存储节点根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息的步骤包括:Optionally, when the feature information includes: a reference picture, a spatial range, a time range, and attribute information, each of the target storage nodes is configured according to locally stored monitoring video, stored monitoring video index information, and And the step of searching for the target monitoring video index information that the matching degree with the feature information is greater than the first preset threshold includes:
任一目标存储节点对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;Performing feature extraction on the reference picture by any target storage node to obtain picture feature information corresponding to the reference picture;
该目标存储节点在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;The target storage node searches for the candidate monitoring video index information that matches the spatial range and the time range in the locally stored monitoring video index information;
该目标存储节点在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。The target storage node sequentially reads the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extracts video feature information of the monitoring video by using a pre-configured feature algorithm, according to the video of the monitoring video. The feature information, and the picture feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitor video index information is used as the target monitoring video index information.
可选的,所述该目标存储节点在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息的步骤包括:Optionally, the target storage node sequentially reads the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extracts video feature information of the monitoring video by using a pre-configured feature algorithm. Calculating, according to the video feature information of the monitoring video, the image feature information and the attribute information, a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold If yes, the step of using the candidate monitoring video index information as the target monitoring video index information includes:
该目标存储节点构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;The target storage node constructs an initial index information set including each candidate monitoring video index information, and constructs an empty result index information set;
判断所述初始索引信息集合是否为空;Determining whether the initial index information set is empty;
如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;If not, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, Adding the candidate monitoring video index information to the result index information set, deleting the candidate monitoring video index information from the initial index information set, and returning to perform the step of determining whether the initial index information set is empty;
如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。If yes, the index information included in the result index information set is used as the target monitoring video index information.
可选的,各存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,所述采用预先配置的特征算法提取该监控视频的视频特征信息的步骤包括:Optionally, each of the storage nodes is pre-configured with a plurality of feature algorithms, and each feature algorithm has a corresponding priority. The step of extracting the video feature information of the monitoring video by using the pre-configured feature algorithm includes:
采用优先级最高的特征算法提取该监控视频的视频特征信息;Extracting video feature information of the surveillance video by using a feature algorithm with the highest priority;
所述将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息的步骤包括:The step of using the index information included in the result index information set as the target monitoring video index information includes:
判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty; when the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的 步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤。When the newly constructed initial index information set is empty, a step of performing the determination as to whether the result index information set is empty is returned.
可选的,所述将所述目标监控视频索引信息发送给所述管理节点之后,所述方法还包括:Optionally, after the sending the target monitoring video index information to the management node, the method further includes:
所述管理节点接收各目标存储节点发送的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述客户端。The management node receives target monitoring video index information sent by each target storage node, and sends the target monitoring video index information to the client.
可选的,所述将所述目标监控视频索引信息发送给所述客户端之后,所述方法还包括:Optionally, after the sending the target monitoring video index information to the client, the method further includes:
所述管理节点接收所述客户端发送的确认信息,并根据所述确认信息对各目标存储节点中的第一预设阈值进行调整。The management node receives the confirmation information sent by the client, and adjusts a first preset threshold in each target storage node according to the confirmation information.
可选的,所述根据所述确认信息对各目标存储节点中的第一预设阈值进行调整的步骤包括:Optionally, the step of adjusting the first preset threshold in each target storage node according to the confirmation information includes:
当所述确认信息中包括的准确率大于第二预设阈值时,减小所述第一预设阈值;When the accuracy rate included in the confirmation information is greater than a second preset threshold, decreasing the first preset threshold;
当所述确认信息中包括的准确率小于或等于所述第二阈值时,增大所述第一预设阈值。When the accuracy rate included in the confirmation information is less than or equal to the second threshold, the first preset threshold is increased.
可选的,所述管理节点确定存储有所述待搜索监控视频的目标存储节点的步骤包括:Optionally, the step of determining, by the management node, that the target storage node that is to be searched for the monitored video is stored includes:
所述管理节点根据所述空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有所述待搜索监控视频的目标存储节点。The management node determines, according to the spatial range and the index information of the monitoring video stored in each locally stored storage node, the target storage node that stores the to-be-searched surveillance video.
可选的,所述将所述视频搜索请求发送至各所述目标存储节点的步骤包括:Optionally, the step of sending the video search request to each of the target storage nodes includes:
所述管理节点构建包含各目标存储节点标识的目标存储节点列表;The management node constructs a list of target storage nodes including identifiers of the target storage nodes;
判断所述目标存储节点列表是否为空;当所述目标存储节点列表不为空时,将所述视频搜索请求发送至所述目标存储节点列表中一目标存储节点,并确定是否发送成功;Determining whether the target storage node list is empty; when the target storage node list is not empty, sending the video search request to a target storage node in the target storage node list, and determining whether the transmission is successful;
当发送成功时,将该目标存储节点标识从所述目标存储节点列表移除,并返回执行所述判断所述目标存储节点列表是否为空的步骤;When the sending is successful, removing the target storage node identifier from the target storage node list, and returning to perform the step of determining whether the target storage node list is empty;
当发送失败时,返回执行所述判断所述存储节点列表是否为空的步骤。When the transmission fails, a step of performing the determination of whether the storage node list is empty is returned.
可选的,所述管理节点接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求之前,所述方法还包括:Optionally, before the management node receives the video search request that is sent by the client and includes the feature information of the to-be-searched video, the method further includes:
所述客户端接收用户上传的所述参考图片;The client receives the reference picture uploaded by a user;
所述客户端接收用户输入的所述空间范围、所述时间范围、和所述属性信息;The client receives the spatial range, the time range, and the attribute information input by a user;
所述客户端将所述参考图片、所述空间范围、所述时间范围、和所述属性信息整合后生成所述视频搜索请求,并将所述视频搜索请求发送给所述管理节点。The client integrates the reference picture, the spatial range, the time range, and the attribute information to generate the video search request, and sends the video search request to the management node.
第二方面,本申请实施例提供了一种视频搜索方法,应用于云存储系统中的目标存储节点,所述云存储系统还包括管理节点,所述方法包括:In a second aspect, the embodiment of the present application provides a video search method, which is applied to a target storage node in a cloud storage system, where the cloud storage system further includes a management node, and the method includes:
接收所述管理节点发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述视频搜索请求是所述管理节点确定所述目标存储节点存储有待搜索监控视频时,向所述目标存储节点发送的,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;Receiving, by the management node, a video search request that includes feature information of a to-be-searched surveillance video, where the video search request is that the management node determines that the target storage node stores a to-be-searched surveillance video, and stores the target information The feature information sent by the node includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。Searching, according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, target monitoring video index information that is greater than a first preset threshold between the feature information and the target The monitoring video index information is sent to the management node.
可选的,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息的步骤包括:Optionally, when the feature information includes: a reference picture, a spatial range, a time range, and attribute information, the searching and storing according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, The step of matching the feature information with the target monitoring video index information that is greater than the first preset threshold includes:
对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;Performing feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture;
在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;Finding candidate monitoring video index information that matches the spatial range and time range in the locally stored monitoring video index information;
在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。In the candidate monitoring video index information, the monitoring video corresponding to each candidate monitoring video index information is sequentially read, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, according to the video feature information of the monitoring video, and Determining, by the picture feature information and the attribute information, a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold, and if yes, selecting the candidate monitoring video The index information is used as the target monitoring video index information.
可选的,所述在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息的步骤包括:Optionally, in the candidate monitoring video index information, the monitoring video corresponding to each candidate monitoring video index information is sequentially read, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, according to the monitoring video. The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The step of using the candidate monitoring video index information as the target monitoring video index information includes:
构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;Constructing an initial index information set including each candidate monitoring video index information, and constructing an empty result index information set;
判断所述初始索引信息集合是否为空;Determining whether the initial index information set is empty;
如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;If not, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, Adding the candidate monitoring video index information to the result index information set, deleting the candidate monitoring video index information from the initial index information set, and returning to perform the step of determining whether the initial index information set is empty;
如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。If yes, the index information included in the result index information set is used as the target monitoring video index information.
可选的,所述目标存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,所述采用预先配置的特征算法提取该监控视频的视频特征信息的步骤包括:Optionally, the target storage node is pre-configured with a plurality of feature algorithms, and each feature algorithm has a corresponding priority. The step of extracting the video feature information of the monitoring video by using the pre-configured feature algorithm includes:
采用优先级最高的特征算法提取该监控视频的视频特征信息;Extracting video feature information of the surveillance video by using a feature algorithm with the highest priority;
所述将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息的步骤包括:The step of using the index information included in the result index information set as the target monitoring video index information includes:
判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该 条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
第三方面,本申请实施例提供了一种云存储系统,所述云存储系统包括:管理节点和多个存储节点,In a third aspect, the embodiment of the present application provides a cloud storage system, where the cloud storage system includes: a management node and multiple storage nodes.
所述管理节点,用于接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;确定存储有所述待搜索监控视频的目标存储节点,并将所述视频搜索请求发送至各所述目标存储节点;The management node is configured to receive, by the client, a video search request that includes feature information of the to-be-searched surveillance video, where the feature information includes at least one of: a reference picture, a spatial range, a time range, and attribute information; Determining a target storage node storing the to-be-searched surveillance video, and transmitting the video search request to each of the target storage nodes;
各所述目标存储节点,用于接收所述视频搜索请求,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。Each of the target storage nodes is configured to receive the video search request, and according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, the matching degree between the search and the feature information is greater than A target of a preset threshold monitors video index information, and sends the target monitoring video index information to the management node.
可选的,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,Optionally, when the feature information includes: a reference picture, a spatial range, a time range, and attribute information,
任一目标存储节点,具体用于对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。Any target storage node is specifically configured to perform feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture; and search for candidate matching the spatial range and time range in the locally stored monitoring video index information Monitoring video index information; in the candidate monitoring video index information, sequentially reading the monitoring video corresponding to each candidate monitoring video index information, and extracting video feature information of the monitoring video by using a pre-configured feature algorithm, according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, The candidate monitoring video index information is used as the target monitoring video index information.
可选的,任一目标存储节点,具体用于构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;判断所述初始索引信息集合是否为空;如果否,在所述初始索引信息集合中顺序读取位于最前 面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。Optionally, any target storage node is specifically configured to construct an initial index information set including each candidate monitoring video index information, and construct an empty result index information set; determine whether the initial index information set is empty; if not, The monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the video feature information of the monitoring video. And the picture feature information and the attribute information, calculating a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold, and if yes, selecting the candidate The monitoring video index information is added to the result index information set, the candidate monitoring video index information is deleted from the initial index information set, and a step of determining whether the initial index information set is empty is performed; if yes, Taking the index information included in the result index information set as a The target monitors the video index information.
可选的,各存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,Optionally, multiple feature algorithms are pre-configured in each storage node, and each feature algorithm has a corresponding priority.
任一目标存储节点,具体用于采用优先级最高的特征算法提取该监控视频的视频特征信息;在将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息时,判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Any target storage node is specifically configured to extract video feature information of the monitoring video by using a feature algorithm with the highest priority; and when the index information included in the result index information set is used as the target monitoring video index information, Whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines whether the newly constructed initial index information set is air;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
可选的,所述管理节点,还用于接收各目标存储节点发送的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述客户端。Optionally, the management node is further configured to receive target monitoring video index information sent by each target storage node, and send the target monitoring video index information to the client.
可选的,所述管理节点,还用于接收客户端发送的确认信息,并根据所述确认信息对各目标存储节点中的第一预设阈值进行调整。Optionally, the management node is further configured to receive the acknowledgement information sent by the client, and adjust the first preset threshold in each target storage node according to the acknowledgement information.
可选的,所述管理节点,具体用于当所述确认信息中包括的准确率大于第二预设阈值时,减小所述第一预设阈值;当所述确认信息中包括的准确率小于或等于所述第二阈值时,增大所述第一预设阈值。Optionally, the management node is specifically configured to: when the accuracy rate included in the confirmation information is greater than a second preset threshold, reduce the first preset threshold; when the accuracy included in the confirmation information When less than or equal to the second threshold, the first preset threshold is increased.
可选的,所述管理节点,具体用于根据所述空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有所述待搜索监控视频的目标存储节点。Optionally, the management node is configured to determine, according to the spatial range, and the index information of the monitoring video stored in each locally stored storage node, the target storage node that stores the to-be-searched surveillance video.
可选的,所述管理节点,具体用于构建包含各目标存储节点标识的目标存储节点列表;判断所述目标存储节点列表是否为空;当所述目标存储节点列表不为空时,将所述视频搜索请求发送至所述目标存储节点列表中一目标存储节点,并确定是否发送成功;当发送成功时,将该目标存储节点标识从所述目标存储节点列表移除,并返回执行所述判断所述目标存储节点列表是否为空的步骤;当发送失败时,返回执行所述判断所述存储节点列表是否为空的步骤。Optionally, the management node is specifically configured to construct a target storage node list that includes each target storage node identifier; determine whether the target storage node list is empty; and when the target storage node list is not empty, Sending a video search request to a target storage node in the target storage node list, and determining whether the transmission is successful; when the transmission is successful, removing the target storage node identifier from the target storage node list, and returning to perform the Determining whether the target storage node list is empty; when the transmission fails, returning to the step of performing the determining whether the storage node list is empty.
第四方面,本申请实施例提供了一种视频搜索装置,应用于云存储系统中的目标存储节点,所述云存储系统还包括管理节点,所述装置包括:In a fourth aspect, the embodiment of the present application provides a video search device, which is applied to a target storage node in a cloud storage system, where the cloud storage system further includes a management node, and the device includes:
接收模块,用于接收所述管理节点发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述视频搜索请求是所述管理节点确定所述目标存储节点存储有待搜索监控视频时,向所述目标存储节点发送的,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;a receiving module, configured to receive, by the management node, a video search request that includes feature information of a to-be-searched surveillance video, where the video search request is that the management node determines that the target storage node stores a to-be-searched surveillance video, Sending to the target storage node, the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
搜索模块,用于根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。a search module, configured to search, according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, a target monitoring video index information that is greater than a first preset threshold between the feature information and the feature information, And transmitting the target monitoring video index information to the management node.
可选的,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述搜索模块包括:Optionally, when the feature information includes: a reference picture, a spatial range, a time range, and attribute information, the searching module includes:
特征提取子模块,用于对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;a feature extraction sub-module, configured to perform feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture;
查找子模块,用于在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;a search submodule, configured to search, in the locally stored monitoring video index information, candidate monitoring video index information that matches the spatial range and time range;
搜索子模块,用于在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信 息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。The search sub-module is configured to sequentially read the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extract the video feature information of the monitoring video by using a pre-configured feature algorithm, according to the monitoring video. The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitoring video index information is used as the target monitoring video index information.
可选的,所述搜索子模块,包括:Optionally, the search submodule includes:
构建子单元,用于构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;Constructing a subunit for constructing an initial index information set including each candidate monitoring video index information, and constructing an empty result index information set;
判断子单元,用于判断所述初始索引信息集合是否为空;a determining subunit, configured to determine whether the initial index information set is empty;
特征提取子单元,用于当所述判断子单元判断结果为否时,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息;a feature extraction subunit, configured to sequentially read, in the initial index information set, a monitoring video corresponding to a piece of candidate monitoring video index information in the initial index information set, using pre-configured features, when the determining subunit determines that the result is negative The algorithm extracts video feature information of the surveillance video;
搜索子单元,用于根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并触发所述判断子单元;a search subunit, configured to calculate a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, and the image feature information and the attribute information, and determine whether the matching degree is If the value is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, the candidate monitoring video index information is deleted from the initial index information set, and the determining subunit is triggered. ;
确定子单元,用于当所述判断子单元判断结果为是时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。Determining a subunit, configured to use index information included in the result index information set as the target monitoring video index information when the judgment subunit determines that the result is YES.
可选的,所述特征提取子单元,具体用于采用优先级最高的特征算法提取该监控视频的视频特征信息;Optionally, the feature extraction sub-unit is specifically configured to extract video feature information of the surveillance video by using a feature algorithm with the highest priority;
所述确定子单元,具体用于:The determining subunit is specifically configured to:
判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的 步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
第五方面,本申请实施例提供了一种计算机设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口、所述存储器通过所述通信总线完成相互间的通信;In a fifth aspect, an embodiment of the present application provides a computer device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete each other through the communication bus. Communication;
所述存储器,用于存放计算机程序;The memory is configured to store a computer program;
所述处理器,用于执行所述存储器上所存放的程序时,实现上述第二方面所述的方法步骤。The processor is configured to implement the method steps described in the second aspect when the program stored on the memory is executed.
第六方面,本申请提供了一种计算机可读存储介质,其中,该计算机可读存储介质用于存储可执行程序代码,所述可执行程序代码用于在运行时执行本申请第二方面所述的方法步骤。In a sixth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium is for storing executable program code for performing the second aspect of the present application at runtime Method steps described.
第七方面,本申请提供了一种应用程序,其中,该应用程序用于在运行时执行本申请第二方面所述的方法步骤。In a seventh aspect, the application provides an application, wherein the application is operative to perform the method steps of the second aspect of the present application at runtime.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。当然,本申请实施例并不一定达到上述全部的优点。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search. Of course, the embodiments of the present application do not necessarily achieve all of the above advantages.
附图说明DRAWINGS
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例 和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application and the technical solutions of the prior art, the following description of the embodiments and the drawings used in the prior art will be briefly introduced. Obviously, the drawings in the following description are only Some embodiments of the application may also be used to obtain other figures from those of ordinary skill in the art without departing from the scope of the invention.
图1为现有的监控视频存储到云存储系统的过程示意图;FIG. 1 is a schematic diagram of a process of storing a monitoring video to a cloud storage system;
图2为应用本申请实施例的一种视频搜索方法的系统架构图;2 is a system architecture diagram of a video search method to which an embodiment of the present application is applied;
图3为本申请实施例的一种视频搜索方法的流程图;3 is a flowchart of a video search method according to an embodiment of the present application;
图4为本申请实施例的一种视频搜索方法的另一流程图;4 is another flowchart of a video search method according to an embodiment of the present application;
图5为本申请实施例的一种视频搜索方法的另一流程图;FIG. 5 is another flowchart of a video search method according to an embodiment of the present application;
图6为本申请实施例的一种视频搜索方法的另一流程图;FIG. 6 is another flowchart of a video search method according to an embodiment of the present application;
图7为本申请实施例的一种视频搜索方法的另一流程图;FIG. 7 is another flowchart of a video search method according to an embodiment of the present application;
图8为本申请实施例的一种视频搜索方法的另一流程图;FIG. 8 is another flowchart of a video search method according to an embodiment of the present application;
图9为本申请实施例的云存储系统的结构示意图;FIG. 9 is a schematic structural diagram of a cloud storage system according to an embodiment of the present application;
图10为本申请实施例的一种视频搜索装置的结构示意图;FIG. 10 is a schematic structural diagram of a video search apparatus according to an embodiment of the present application;
图11为本申请实施例的一种计算机设备的结构示意图。FIG. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
以下通过具体实施例,对本申请进行详细说明。The present application will be described in detail below through specific embodiments.
请参考图2,其示出了应用本申请实施例方法的系统架构图。如图2所示,应用本申请实施例方法的系统可以包括云存储系统210和客户端220。其中,云存储系统210可以包括管理节点211和多个存储节点212,存储节点212中存储有监控视频。用户可以通过客户端220在存储节点212中搜索其想要的监控视频,具体的,客户端可以通过管理节点211将视频搜索请求发送给存储节点212,进而在存储节点212中进行视频搜索。Please refer to FIG. 2, which shows a system architecture diagram of a method applying the embodiment of the present application. As shown in FIG. 2, the system to which the method of the embodiment of the present application is applied may include a cloud storage system 210 and a client 220. The cloud storage system 210 can include a management node 211 and a plurality of storage nodes 212. The storage node 212 stores a monitoring video. The user can search for the desired monitoring video in the storage node 212 through the client 220. Specifically, the client can send the video search request to the storage node 212 through the management node 211, and then perform video search in the storage node 212.
具体的,请参考图3,其示出了本申请实施例的一种视频搜索方法流程,该方法可以包括以下步骤:Specifically, please refer to FIG. 3, which illustrates a video search method process according to an embodiment of the present application, and the method may include the following steps:
S301,管理节点接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息。S301. The management node receives a video search request that is sent by the client and includes feature information of the to-be-searched surveillance video, where the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information.
在本申请实施例中,在云存储系统存储监控视频后,用户可以在云存储系统中搜索其感兴趣的监控视频,如包含某个人的所有监控视频,或包含某辆车在某个时间段的所有监控视频等。具体的,用户可以在客户端生成包含待搜索监控视频的特征信息的视频搜索请求,并将该视频搜索请求发送给云存储系统的管理节点,进而管理节点可以根据该视频搜索请求,在存储节点所存储监控视频中搜索出满足条件的监控视频。其中,上述特征信息可以包括以下至少一项:参考图片、空间范围、时间范围、和属性信息。In the embodiment of the present application, after the cloud storage system stores the monitoring video, the user may search for the monitoring video of interest in the cloud storage system, such as including all monitoring videos of a certain person, or include a certain vehicle in a certain period of time. All monitoring videos and more. Specifically, the user may generate a video search request including feature information of the to-be-searched video on the client, and send the video search request to the management node of the cloud storage system, and the management node may perform the search request according to the video search node. A monitored video that satisfies the condition is searched for in the stored monitoring video. The foregoing feature information may include at least one of the following: a reference picture, a spatial range, a time range, and attribute information.
如,当想要搜索包含某个人的监控视频时,用户可以在客户端上传该人的照片,作为参考图片,从而可以根据该照片在云存储系统中搜索包含有该人的监控视频;或者,当想要搜索某人在某段时间内的监控视频,且知道该人在该段时间内的着装情况,如红色上衣黑色裤子时,用户可以将该人的照片和着装情况输入,着装情况作为属性信息,从而可以根据该照片和属性信息在云存储系统中搜索满足该条件的监控视频。For example, when searching for a surveillance video containing a certain person, the user can upload the photo of the person on the client as a reference picture, so that the cloud storage system can be searched for the surveillance video containing the person according to the photo; or When you want to search for a surveillance video of a person for a certain period of time, and know the person's dressing situation during that period of time, such as red blouse black pants, the user can enter the person's photo and dressing situation, dressing as Attribute information, so that the cloud storage system can be searched for the monitoring video that satisfies the condition according to the photo and attribute information.
S302,所述管理节点确定存储有所述待搜索监控视频的目标存储节点,并将所述视频搜索请求发送至各所述目标存储节点。S302. The management node determines a target storage node that stores the to-be-searched surveillance video, and sends the video search request to each of the target storage nodes.
通常情况下,云存储系统可以包括多个存储节点。并且,不同存储节点中存储的监控视频是不同的,管理节点中存储有各存储节点所存储监控视频的索引信息,该索引信息中至少包括各存储节点中所存储监控视频对应的粗略位置信息,如所属省、市、地区信息等。Typically, a cloud storage system can include multiple storage nodes. Moreover, the monitoring video stored in the different storage nodes is different, and the management node stores the index information of the monitoring video stored by each storage node, where the index information includes at least the rough location information corresponding to the monitoring video stored in each storage node. Such as the province, city, region information.
在本申请实施例中,管理节点接收到视频搜索请求后,可以首先确定存储有待搜索监控视频的目标存储节点,进而可以将视频搜索请求发送给各目标存储节点,以在各目标存储节点中进行监控视频搜索。In the embodiment of the present application, after receiving the video search request, the management node may first determine the target storage node that stores the monitoring video to be searched, and then send the video search request to each target storage node to perform in each target storage node. Monitor video search.
例如,当视频搜索请求中不包含空间范围、时间范围、属性信息等描述信息,只包含参考图片时,管理节点可以将所在云存储系统中所有的存储节点都确定为目标存储节点;当视频搜索请求中包含管理节点所存储索引信息中包含的相关信息,如空间范围等时,管理节点可以根据视频搜索请求中包括的空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有待搜索监控视频的目标存储节点。For example, when the video search request does not include the description information such as the spatial range, the time range, and the attribute information, and only includes the reference picture, the management node may determine all the storage nodes in the cloud storage system as the target storage node; when the video search The request includes related information included in the index information stored by the management node, such as a space range, etc., the management node may according to the spatial range included in the video search request, and the index information of the monitoring video stored in each locally stored storage node. Determine the target storage node where the monitored video to be searched is stored.
S303,各所述目标存储节点接收所述视频搜索请求,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征 信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。S303, each of the target storage nodes receives the video search request, and the matching degree between the search and the feature information is greater than the first according to the locally stored monitoring video, the stored monitoring video index information, and the feature information. The target of the preset threshold monitors the video index information, and sends the target monitoring video index information to the management node.
各目标存储节点接收到视频搜索请求后,可以根据本地所存储的监控视频、所存储监控视频索引信息、以及视频搜索请求中包括的特征信息,搜索与该特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将该目标监控视频索引信息发送给管理节点。After receiving the video search request, each target storage node may search for the matching degree with the feature information according to the locally stored monitoring video, the stored monitoring video index information, and the feature information included in the video search request. The target of the preset threshold monitors the video index information, and sends the target monitoring video index information to the management node.
如,任一目标存储节点可以在本地存储的所有的索引信息中,依次读取各索引信息对应的监控视频,并提取该监控视频的视频特征信息。之后,可以计算该监控视频的视频特征信息与视频搜索请求中包括的特征信息的匹配度,当该匹配度大于预设阈值,如80%、85%、90%时,确定该索引信息为目标监控视频索引信息。For example, any target storage node may sequentially read the monitoring video corresponding to each index information in all index information stored locally, and extract video feature information of the monitoring video. After that, the matching degree between the video feature information of the monitoring video and the feature information included in the video search request may be calculated. When the matching degree is greater than a preset threshold, such as 80%, 85%, or 90%, the index information is determined as a target. Monitor video index information.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
作为本申请实施例的一种实施方式,为了提高视频搜索效率,当目标存储节点接收到的视频搜索请求中的特征信息包括:参考图片、空间范围、时间范围、和属性信息时,各目标存储节点进行监控视频搜索的过程,如图4所示,可以包括以下步骤:As an implementation manner of the embodiment of the present application, in order to improve the video search efficiency, when the feature information in the video search request received by the target storage node includes: a reference picture, a spatial range, a time range, and attribute information, each target storage The process of monitoring video search by the node, as shown in FIG. 4, may include the following steps:
S401,任一目标存储节点对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息。S401. The target storage node performs feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture.
本申请实施例中,当特征信息包括参考图片、空间范围、时间范围、和属性信息时,任一目标存储节点可以根据这些信息,快速准确的进行监控视频搜索。In the embodiment of the present application, when the feature information includes a reference picture, a spatial range, a time range, and attribute information, any target storage node may perform a monitoring video search quickly and accurately according to the information.
具体的,目标存储节点可以首先对参考图片进行特征提取,得到该参考图片对应的图片特征信息。例如,目标存储节点可以利用任一种特征提取算法,对参考图片进行特征提取,本申请实施例对此不做限定。Specifically, the target storage node may first perform feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture. For example, the target storage node may perform feature extraction on the reference picture by using any feature extraction algorithm, which is not limited in this embodiment of the present application.
S402,该目标存储节点在本地所存储监控视频索引信息中查找与所述空 间范围和时间范围匹配的候选监控视频索引信息。S402. The target storage node searches for the candidate monitoring video index information that matches the space range and the time range in the locally stored monitoring video index information.
在本申请实施例中,为了提高监控视频搜索效率,目标存储节点可以不在自身存储的所有的监控视频中进行搜索,其可以根据特征信息中包括的空间范围和时间范围,在本地存储的监控视频索引信息中查找与该空间范围和时间范围匹配的候选监控视频索引信息。In the embodiment of the present application, in order to improve the monitoring video search efficiency, the target storage node may not search in all the monitoring videos stored by itself, and may store the monitored video locally according to the spatial range and time range included in the feature information. The index information is used to find candidate monitoring video index information that matches the spatial extent and time range.
例如,任一目标存储节点中存储的监控视频索引信息可以如表1所示:For example, the monitoring video index information stored in any target storage node can be as shown in Table 1:
表1Table 1
监控视频Surveillance video 时间信息Time information 位置信息location information
11 2017.3.2.1:00:00-2017.3.2.1:10:002017.3.2.1:00:00-2017.3.2.1:10:00 街道aStreet a
22 2017.3.2.1:10:00-2017.3.2.1:20:002017.3.2.1: 10:00-2017.3.2.1: 20:00 街道aStreet a
33 2017.3.2.1:20:00-2017.3.2.1:30:002017.3.2.1: 20:00-2017.3.2.1: 30:00 街道aStreet a
上述监控视频索引信息只是示例性的示出存储节点中所存储监控视频索引信息的内容,并不构成对监控视频索引信息的限定。The above-mentioned monitoring video index information is merely illustrative of the content of the monitoring video index information stored in the storage node, and does not constitute a limitation on the monitoring video index information.
当特征信息中包括的空间范围为街道a,时间范围为2017.3.2.1:01:00-2017.3.2.1:18:00时,该存储节点可以在其存储的监控视频索引信息中,查找到与该空间范围和时间范围匹配的候选监控视频索引信息为监控视频1和2对应的索引信息。When the spatial range included in the feature information is street a, and the time range is 2017.3.2.1:01:00-2017.3.2.1:18:00, the storage node may find and check in the stored monitoring video index information. The candidate monitoring video index information matching the spatial range and the time range is the index information corresponding to the monitoring videos 1 and 2.
S403,该目标存储节点在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。S403, the target storage node sequentially reads the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extracts video feature information of the monitoring video by using a pre-configured feature algorithm, according to the monitoring video. The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitoring video index information is used as the target monitoring video index information.
确定候选监控视频索引信息后,该目标存储节点可以进一步在候选监控视频索引信息中,确定满足条件的目标监控视频索引信息。After determining the candidate monitoring video index information, the target storage node may further determine target monitoring video index information that satisfies the condition in the candidate monitoring video index information.
具体的,该目标存储节点可以在候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频。如,该目标存储节点可以根据每条候选监控视频索引信息中包括的存储位置,从对应位置处读取对应的监控视频。读取到监控视频后,该存储节点可以进一步提取该监控视频的视频特征信息。Specifically, the target storage node may sequentially read the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information. For example, the target storage node may read the corresponding monitoring video from the corresponding location according to the storage location included in each candidate monitoring video index information. After the monitoring video is read, the storage node may further extract video feature information of the monitoring video.
在本申请实施例中,各存储节点中通常存储的是相同应用场景的监控视频,如,一个存储节点中存储的是道路监控视频,另一存储节点中存储的是小区监控视频等。可以理解,针对不同场景的监控视频,通常关注的视频特征也是不同的。如,针对道路监控视频,通常关注的是车辆特征;针对小区监控视频,通常关注的是人员特征。In the embodiment of the present application, the monitoring video of the same application scenario is usually stored in each storage node. For example, one storage node stores road monitoring video, and another storage node stores cell monitoring video. It can be understood that the video features that are usually focused on for different scenes of surveillance video are also different. For example, for road surveillance video, it is usually concerned with vehicle characteristics; for community surveillance video, it is usually concerned with personnel characteristics.
因此,在本申请实施例中,可以针对各存储节点,根据其中存储的监控视频的应用场景,预先在各存储节点中配置对应的一种特征算法。如,针对存储有道路监控视频的存储节点,可以在其中配置针对车辆进行特征提取的特征算法;针对存储有小区监控视频的存储节点,可以在其中配置针对人员进行特征提取的特征算法。当对监控视频进行特征提取时,存储节点即可根据预先配置的特征算法,对监控视频进行特征提取,从而得到监控视频的视频特征信息。Therefore, in the embodiment of the present application, a corresponding feature algorithm may be configured in each storage node in advance according to an application scenario of the monitoring video stored therein. For example, for a storage node storing a road monitoring video, a feature algorithm for performing feature extraction for the vehicle may be configured therein; and for a storage node storing the cell monitoring video, a feature algorithm for performing feature extraction for the person may be configured therein. When feature extraction is performed on the surveillance video, the storage node may perform feature extraction on the surveillance video according to a pre-configured feature algorithm, thereby obtaining video feature information of the surveillance video.
得到任一候选监控视频索引信息对应的视频特征信息后,该存储节点可以根据该监控视频的视频特征信息,以及图片特征信息和属性信息,计算该条候选监控视频索引信息与特征信息的匹配度。如,该存储节点可以根据任一种匹配度计算方法,来计算该条候选监控视频索引信息与特征信息的匹配度,本申请实施例对此不做限定。After obtaining the video feature information corresponding to any candidate monitoring video index information, the storage node may calculate the matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information and the attribute information. . For example, the storage node may calculate the matching degree between the candidate monitoring video index information and the feature information according to any matching degree calculation method, which is not limited in this embodiment of the present application.
计算得到该条候选监控视频索引信息与特征信息的匹配后,该存储节点可以进一步判断该匹配度是否大于第一预设阈值,如果是,则将该条候选监控视频索引信息作为目标监控视频索引信息。After the matching of the candidate monitoring video index information and the feature information is calculated, the storage node may further determine whether the matching degree is greater than a first preset threshold, and if yes, use the candidate monitoring video index information as a target monitoring video index. information.
如,当目标存储节点确定监控视频1和监控视频2对应的索引信息为候选监控视频索引信息时,其可以首先确定监控视频1的索引信息是否为目标监控视频索引信息,再确定监控视频2的索引信息是否为目标监控视频索引信息。当然,也可以先确定监控视频2的索引信息是否为目标监控视频索引信息,再确定监控视频1的索引信息是否为目标监控视频索引信息,本申请实施例对此不做限定。For example, when the target storage node determines that the index information corresponding to the monitoring video 1 and the monitoring video 2 is the candidate monitoring video index information, it may first determine whether the index information of the monitoring video 1 is the target monitoring video index information, and then determine the monitoring video 2 Whether the index information is the target monitoring video index information. Of course, it is also possible to determine whether the index information of the monitoring video 2 is the target monitoring video index information, and then determine whether the index information of the monitoring video 1 is the target monitoring video index information, which is not limited in this embodiment of the present application.
本实施例中,目标存储节点可以首先在其存储的监控视频索引信息中,查找出满足空间范围和时间范围的候选监控视频索引信息,进而再确定目标监控视频索引信息,从而能够提高监控视频搜索效率。In this embodiment, the target storage node may first find the candidate monitoring video index information that satisfies the spatial range and the time range in the stored monitoring video index information, and then determine the target monitoring video index information, thereby improving the monitoring video search. effectiveness.
作为本申请实施例的一种实施方式,目标存储节点在各候选监控视频索引信息中确定目标监控视频索引信息时,为了提高准确性,防止漏掉一个或多个候选监控视频索引信息,如图5所示,该过程可以包括以下步骤:As an implementation manner of the embodiment of the present application, when the target storage node determines the target monitoring video index information in each candidate monitoring video index information, in order to improve accuracy, one or more candidate monitoring video index information is prevented from being missed, as shown in the figure. As shown in Figure 5, the process can include the following steps:
S501,该目标存储节点构建包含各候选监控视频索引信息的初始索引信 息集合,并构建空的结果索引信息集合。S501. The target storage node constructs an initial index information set including each candidate monitoring video index information, and constructs an empty result index information set.
在本实施例中,为了提高监控视频搜索的准确性,目标存储节点在得到候选监控视频索引信息后,可以构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合。In this embodiment, in order to improve the accuracy of the monitoring video search, after obtaining the candidate monitoring video index information, the target storage node may construct an initial index information set including each candidate monitoring video index information, and construct an empty result index information set. .
如,当目标存储节点确定候选监控视频索引信息为监控视频1和监控视频2对应的索引信息时,其可以构建如表2所示的初始索引信息集合:For example, when the target storage node determines that the candidate monitoring video index information is the index information corresponding to the monitoring video 1 and the monitoring video 2, it can construct the initial index information set as shown in Table 2:
表2Table 2
监控视频Surveillance video 时间信息Time information 位置信息location information
11 2017.3.2.1:00:00-2017.3.2.1:10:002017.3.2.1:00:00-2017.3.2.1:10:00 街道aStreet a
22 2017.3.2.1:10:00-2017.3.2.1:20:002017.3.2.1: 10:00-2017.3.2.1: 20:00 街道aStreet a
S502,判断所述初始索引信息集合是否为空;如果否,执行步骤S503,如果是,执行步骤S504。S502: Determine whether the initial index information set is empty; if not, execute step S503, and if yes, execute step S504.
S503,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行步骤S502。S503. The monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the video of the monitoring video. The feature information, and the picture feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitor video index information is added to the result index information set, and the candidate monitor video index information is deleted from the initial index information set, and the process returns to step S502.
当目标存储节点判断出初始索引信息集合不为空时,该目标存储节点可以在该初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,并对该监控视频进行特征提取,之后可以根据该监控视频的视频特征信息,以及图片特征信息和属性信息,确定该监控视频索引信息与特征信息的匹配度。该过程与图4所示实施例中确定任一候选监控视频索引信息与特征信息的匹配度的过程基本相同,在此不进行赘述。When the target storage node determines that the initial index information set is not empty, the target storage node may sequentially read the monitoring video corresponding to the first candidate monitoring video index information in the initial index information set, and the monitoring video is Feature extraction is performed, and then the matching degree between the monitoring video index information and the feature information is determined according to the video feature information of the monitoring video, and the image feature information and the attribute information. The process is basically the same as the process of determining the matching degree of any candidate monitoring video index information and feature information in the embodiment shown in FIG. 4, and details are not described herein.
当目标存储节点确定任一条候选监控视频与特征信息的匹配度大于第一预设阈值时,其可以将该条候选监控视频索引信息加入结果索引信息集合,将该条候选监控视频索引信息从初始索引信息集合删除,并返回判断初始索引信息集合是否为空。When the target storage node determines that the matching degree between the candidate monitoring video and the feature information is greater than the first preset threshold, the target monitoring video index information may be added to the result index information set, and the candidate monitoring video index information is initialized from the initial The index information set is deleted, and it is returned to determine whether the initial index information set is empty.
例如,当初始索引信息集合为表2所示时,目标存储节点可以首先针对监 控视频1,判断监控视频1的索引信息与特征信息的匹配度是否大于第一预设阈值,如果是,将监控视频1的索引信息加入结果索引信息集合;如果否,将监控视频1的索引信息从初始索引信息集合删除,并继续针对监控视频2进行判断,确定是否将监控视频2的索引信息接入结果索引信息集合中。For example, when the initial index information set is as shown in Table 2, the target storage node may first determine, for the monitoring video 1, whether the matching degree of the index information of the monitoring video 1 and the feature information is greater than a first preset threshold, and if so, monitor The index information of the video 1 is added to the result index information set; if not, the index information of the monitoring video 1 is deleted from the initial index information set, and the judgment of the monitoring video 2 is continued to determine whether the index information of the monitoring video 2 is accessed. In the information collection.
S504,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。S504. Use index information included in the result index information set as the target monitoring video index information.
当初始索引信息集合为空时,表明已对所有的候选监控视频索引信息进行了判断,此时,在结果索引信息集合中的索引信息即为与特征信息的匹配度大于第一预设阈值的索引信息。这种情况下,该目标存储节点可以直接将结果索引信息集合中包括的索引信息作为目标监控视频索引信息。When the initial index information set is empty, it indicates that all the candidate monitoring video index information has been determined. At this time, the index information in the result index information set is that the matching degree with the feature information is greater than the first preset threshold. Index information. In this case, the target storage node may directly use the index information included in the result index information set as the target monitoring video index information.
本实施例中,可以通过构建初始索引信息集合和结果索引信息集合,来确定目标监控视频索引信息,从而能够保证对每个候选监控视频索引信息都进行判断,提高监控视频搜索的准确性。In this embodiment, the target monitoring video index information can be determined by constructing the initial index information set and the result index information set, thereby ensuring that each candidate monitoring video index information is judged and improving the accuracy of the monitoring video search.
可以理解,有些情况下,针对同一应用场景,也可能会进行不同类型的视频搜索。如,针对小区监控视频,除了进行人员搜索外,有时候也可能会需要进行车辆搜索。Understandably, in some cases, different types of video searches may be performed for the same application scenario. For example, for community surveillance video, in addition to personnel search, sometimes vehicle search may be required.
因此,作为本申请实施例的一种实施方式,为了提高监控视频搜索的适用性和准确性,在各存储节点中配置特征算法时,可以在各存储节点中配置多种特征算法。并且,各特征算法可以有其对于的优先级。如,针对存储小区监控视频的存储节点,可以在其中配置两种特征算法,分别为针对车辆进行特征提取的特征算法和针对人员进行特征提取的特征算法,且针对人员进行特征提取的特征算法的优先级高于针对车辆进行特征提取的特征算法的优先级。Therefore, as an implementation manner of the embodiment of the present application, in order to improve the applicability and accuracy of the surveillance video search, when configuring the feature algorithm in each storage node, multiple feature algorithms may be configured in each storage node. Also, each feature algorithm can have its priority. For example, for a storage node storing a cell monitoring video, two feature algorithms may be configured therein, namely, a feature algorithm for feature extraction for a vehicle and a feature algorithm for feature extraction for a person, and a feature algorithm for feature extraction for a person The priority is higher than the priority of the feature algorithm for feature extraction of the vehicle.
相应的,目标存储节点在各候选监控视频索引信息中确定目标监控视频索引信息时,如图6所示,该过程可以包括以下步骤:Correspondingly, when the target storage node determines the target monitoring video index information in each candidate monitoring video index information, as shown in FIG. 6, the process may include the following steps:
S601,该目标存储节点构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合。S601. The target storage node constructs an initial index information set including each candidate monitoring video index information, and constructs an empty result index information set.
S602,判断所述初始索引信息集合是否为空;如果否,执行步骤S603,如果是,执行步骤S604。S602. Determine whether the initial index information set is empty. If not, execute step S603, and if yes, perform step S604.
S603,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用优先级最高的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信 息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行步骤S602。S603. The monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a feature algorithm with the highest priority, and according to the monitoring video. The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, The candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the initial index information set, and the process returns to step S602.
上述步骤S601-S603与图5所示实施例中步骤S501-S503基本相同,在此不进行赘述。区别点在于步骤S503中,在目标存储节点中预先配置了多种特征算法的情况下,目标存储节点提取监控视频的视频特征信息时,所用的是优先级最高的特征算法。The above steps S601-S603 are basically the same as the steps S501-S503 in the embodiment shown in FIG. 5, and details are not described herein. The difference is that in step S503, when a plurality of feature algorithms are pre-configured in the target storage node, when the target storage node extracts video feature information of the surveillance video, the feature algorithm with the highest priority is used.
S604,判断所述结果索引信息集合是否为空,如果是,执行步骤S605,如果否,执行步骤S608。S604. Determine whether the result index information set is empty. If yes, go to step S605, if no, go to step S608.
在本申请实施例中,当得到结果索引信息集合后,目标存储节点可以判断该结果索引信息集合是否为空。In the embodiment of the present application, after obtaining the result index information set, the target storage node may determine whether the result index information set is empty.
当目标存储节点确定结果索引信息集合为空时,可能是因为所用的特征算法有误造成的。这种情况下,目标存储节点可以采用其他的特征算法对监控视频进行特征提取,并重新根据所提取的视频特征信息在候选监控视频索引信息中确定目标监控视频特征信息。When the target storage node determines that the result index information set is empty, it may be caused by a mistake in the feature algorithm used. In this case, the target storage node may perform feature extraction on the monitoring video by using other feature algorithms, and re-determine the target monitoring video feature information in the candidate monitoring video index information according to the extracted video feature information.
S605,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合。S605. The target storage node again constructs an initial index information set including each candidate monitoring video index information.
S606,判断最新构建的初始索引信息集合是否为空,如果否,执行步骤S607,如果是,返回执行步骤S604。S606. Determine whether the newly constructed initial index information set is empty. If not, execute step S607, and if yes, return to step S604.
S607,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行步骤S606。S607. The monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the video feature information of the monitoring video is extracted by using a next priority feature algorithm, and according to The video feature information of the monitoring video, and the image feature information and the attribute information, calculating a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold. If yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set, and the process returns to step S606.
上述步骤S605-S607与上述步骤S601-S603基本相同,在此不进行赘述。区别点在于步骤S607中,目标存储节点提取监控视频的视频特征信息时,所用的是下一优先级的特征算法。The above steps S605-S607 are substantially the same as the above steps S601-S603, and are not described herein. The difference is that in step S607, when the target storage node extracts the video feature information of the surveillance video, the feature algorithm of the next priority is used.
也就是说,目标存储节点在步骤S603中采用优先级最高的特征算法对监控视频进行特征提取,并进行匹配度计算之后,得到的结果索引信息集合为 空时,在步骤S607中采用优先级仅次于最高优先级的特征算法再次对监控视频进行特征提取并进行匹配度计算。That is, the target storage node performs feature extraction on the monitoring video by using the feature algorithm with the highest priority in step S603, and performs the matching degree calculation, and when the obtained result index information set is empty, the priority is only used in step S607. The feature algorithm next to the highest priority again performs feature extraction on the surveillance video and performs matching calculation.
采用优先级仅次于最高优先级的特征算法对所有的候选监控视频索引信息对应的监控视频进行特征提取并进行匹配度计算后,可以再次判断结果索引信息集合是否为空,若是,则再次使用第三优先级的特征算法对所有的候选监控视频索引信息对应的监控视频进行特征提取并进行匹配度计算,循环上述过程,直到结果索引信息集合不为空,或使用了所有的特征算法对候选监控视频索引信息对应的监控视频进行特征提取并进行匹配度计算。After feature extraction is performed on the monitoring video corresponding to the candidate monitoring video index information by using the feature algorithm with the priority next to the highest priority, and the matching degree is calculated, the result index information set may be judged again to be empty, and if so, it is used again. The feature algorithm of the third priority performs feature extraction on the monitoring video corresponding to all candidate monitoring video index information and performs matching degree calculation, and loops the above process until the result index information set is not empty, or all feature algorithm pairs are used. Monitor the video corresponding to the video index information for feature extraction and perform matching calculation.
S608,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。S608. Use index information included in the result index information set as the target monitoring video index information.
当存储节点确定结果索引信息集合不为空时,其可以将结果索引信息集合中包括的索引信息作为目标监控视频索引信息。When the storage node determines that the result index information set is not empty, it may use the index information included in the result index information set as the target monitoring video index information.
本实施例中,可以通过多种特征算法对监控视频进行特性提取,从而可以提高监控视频搜索的全面性和准确性。In this embodiment, the feature video can be extracted by using multiple feature algorithms, thereby improving the comprehensiveness and accuracy of the surveillance video search.
作为本申请实施例的一种实施方式,管理节点接收到各目标存储节点发送的目标监控视频索引信息后,可以将目标监控视频索引信息发送给客户端。并且,管理节点还可以进一步根据客户端的反馈信息,对各目标存储节点中的第一预设阈值进行调整。As an implementation manner of the embodiment of the present application, after receiving the target monitoring video index information sent by each target storage node, the management node may send the target monitoring video index information to the client. Moreover, the management node may further adjust the first preset threshold in each target storage node according to the feedback information of the client.
具体的,客户端接收到管理节点发送的目标监控视频索引信息后,可以根据目标监控视频索引信息,从各目标存储节点中获取对应的监控视频并展示,从而用户可以在客户端观看所展示的监控视频。例如,客户端可以根据监控视频索引信息中包括的各监控视频所在存储节点标识及存储位置,从对应存储节点相应位置处获取各监控视频并展示。Specifically, after receiving the target monitoring video index information sent by the management node, the client may obtain corresponding monitoring video from each target storage node according to the target monitoring video index information, and display, so that the user can view the displayed on the client. Monitor the video. For example, the client may obtain and display each monitoring video from the corresponding location of the corresponding storage node according to the storage node identifier and storage location of each monitoring video included in the monitoring video index information.
当用户在客户端观看所展示的监控视频后,其还可以判断监控视频是否为其想要搜索的监控视频,并输入确认信息。如,其可以输入监控视频的准确率,即其可以确认搜索到的监控视频中,符合要求的监控视频占所有的监控视频的比例。客户端接收到用户输入的确认信息后,可以将该确认信息发送给管理节点。After the user views the displayed surveillance video on the client, it can also determine whether the surveillance video is the surveillance video that it wants to search for and input confirmation information. For example, it can input the accuracy of the surveillance video, that is, it can confirm the proportion of the surveillance video that meets the requirements of the monitored video in the searched video. After receiving the confirmation information input by the user, the client may send the confirmation information to the management node.
管理节点接收到确认信息后,可以根据该确认信息对各目标存储节点中的第一预设阈值进行调整。例如,当确认信息中包括的准确率大于第二预设阈值时,表明当前的第一预设阈值比较大;这种情况下,管理节点可以减小第一预设阈值,以搜索到更多的监控视频。当确认信息中包括的准确率小于 或等于第二阈值时,表明当前的第一预设阈值比较小,监控视频搜索准确性较低;这种情况下,管理节点可以增大第一预设阈值,以提高监控视频搜索的准确性。After receiving the confirmation information, the management node may adjust the first preset threshold in each target storage node according to the confirmation information. For example, when the accuracy rate included in the confirmation information is greater than the second preset threshold, it indicates that the current first preset threshold is relatively large; in this case, the management node may decrease the first preset threshold to search for more. Monitoring video. When the accuracy rate included in the confirmation information is less than or equal to the second threshold, it indicates that the current first preset threshold is relatively small, and the monitoring video search accuracy is low; in this case, the management node may increase the first preset threshold. To improve the accuracy of surveillance video search.
本实施例中,管理节点可以根据客户的反馈信息,对目标存储节点的第一预设阈值进行调整,从而后续再次进行监控视频搜索时,可以搜索到更多满足要求的监控视频,或提高监控视频搜索的准确性。In this embodiment, the management node may adjust the first preset threshold of the target storage node according to the feedback information of the client, so that when the monitoring video search is performed again, more monitoring videos satisfying the requirements may be searched, or the monitoring may be improved. The accuracy of video search.
作为本申请实施例的一种实施方式,管理节点在确定目标存储节点后,为了准确的将视频搜索请求准确的发送给各目标存储节点,如图7所示,该过程可以包括以下步骤:As an implementation manner of the embodiment of the present application, after the management node determines the target storage node, in order to accurately send the video search request to each target storage node accurately, as shown in FIG. 7, the process may include the following steps:
S701,所述管理节点构建包含各目标存储节点标识的目标存储节点列表。S701. The management node constructs a target storage node list that includes each target storage node identifier.
在本申请实施例中,确定目标存储节点后,管理节点可以构建包含各目标存储节点标识的目标存储节点列表。如,管理节点构建的目标存储节点列表中可以包括目标存储节点1、目标存储节点2、目标存储节点3。In the embodiment of the present application, after determining the target storage node, the management node may construct a target storage node list including the identifiers of the target storage nodes. For example, the target storage node list constructed by the management node may include a target storage node 1, a target storage node 2, and a target storage node 3.
S702,判断所述目标存储节点列表是否为空;如果否,执行步骤S703,如果是,结束。S702. Determine whether the target storage node list is empty. If not, execute step S703, and if yes, end.
S703,将所述视频搜索请求发送至所述目标存储节点列表中一目标存储节点,并确定是否发送成功,如果是,执行步骤S704,如果否,返回执行步骤S702。S703. Send the video search request to a target storage node in the target storage node list, and determine whether the transmission is successful. If yes, go to step S704, and if no, go back to step S702.
当管理节点判断出目标存储节点列表不为空时,其可以将视频搜索请求发送至目标存储节点列表中一目标存储节点。将视频搜索请求发送至一目标存储节点后,管理节点还可以确定是否发送成功。When the management node determines that the target storage node list is not empty, it may send a video search request to a target storage node in the target storage node list. After sending the video search request to a target storage node, the management node can also determine if the transmission was successful.
如,管理节点可以根据各目标存储节点在目标存储节点列表的顺序,将视频搜索请求发送至排在最前面的目标存储节点。当目标存储节点列表中依次包括存储节点1、存储节点2、存储节点3时,管理节点可以首先将视频搜索请求发送至目标存储节点1。For example, the management node may send the video search request to the top target storage node according to the order of the target storage nodes in the target storage node list. When the storage node 1, the storage node 2, and the storage node 3 are sequentially included in the target storage node list, the management node may first send a video search request to the target storage node 1.
S704,将该目标存储节点标识从所述目标存储节点列表移除,并返回执行步骤S702。S704. The target storage node identifier is removed from the target storage node list, and the process returns to step S702.
当管理节点将视频搜索请求发送至一目标存储节点,并确认发送成功后,管理节点可以将该目标存储节点标识从目标存储节点列表移除,并返回判断目标存储节点列表是否为空,以保证将视频搜索请求发送至所有的目标存储节点。After the management node sends the video search request to a target storage node and confirms that the transmission is successful, the management node may remove the target storage node identifier from the target storage node list, and return to determine whether the target storage node list is empty, to ensure Send video search requests to all target storage nodes.
本实施例中,管理节点可以通过构建目标存储节点列表的方式将视频搜索请求发送至目标存储节点,从而可以保证成功的将视频搜索请求发送至每个目标存储节点。In this embodiment, the management node may send the video search request to the target storage node by constructing the target storage node list, so that the video search request can be successfully sent to each target storage node.
作为本申请实施例的一种实施方式,在进行监控视频搜索之前,客户端可以首先构建视频搜索请求,具体的,当进行监控视频搜索时,用户可以在客户端上传参考图片。如,其可以上传包含某个人或某辆车的图片,作为参考图片。As an implementation manner of the embodiment of the present application, before performing the monitoring video search, the client may first construct a video search request. Specifically, when performing a surveillance video search, the user may upload a reference picture on the client. For example, it can upload a picture containing a person or a car as a reference picture.
当用户想要搜索某人在一段时间内的监控视频,且大概知道这段时间内该人所在空间范围,和该人的着装情况等信息时,用户可以将这些信息输入客户端。如,用户可以在客户端提供的输入界面中,输入其所知道的所有的信息,以提高视频搜索的准确性。When the user wants to search for a surveillance video of a person for a period of time, and probably knows the location of the person's space during that time, and the person's dressing situation, the user can enter this information into the client. For example, the user can input all the information he knows in the input interface provided by the client to improve the accuracy of the video search.
客户端接收到用户输入的参考图片、空间范围、时间范围和属性信息后,其可以根据预定的格式标准,将参考图片、空间范围、时间范围、和属性信息整合后生成视频搜索请求,并将视频搜索请求发送给管理节点,以使管理节点根据视频搜索请求进行监控视频搜索。After receiving the reference picture, spatial range, time range and attribute information input by the user, the client may integrate the reference picture, the spatial range, the time range, and the attribute information according to a predetermined format standard to generate a video search request, and The video search request is sent to the management node to cause the management node to perform a surveillance video search based on the video search request.
本实施例中,客户端可以生成符合要求的视频搜索请求,从而保证云存储系统能够成功的进行监控视频搜索。In this embodiment, the client can generate a video search request that meets the requirements, thereby ensuring that the cloud storage system can successfully perform the surveillance video search.
相应的,本申请实施例还提供了一种视频搜索方法,应用于云存储系统中的目标存储节点,该云存储系统还包括管理节点,如图8所示,该方法包括以下步骤:Correspondingly, the embodiment of the present application further provides a video search method, which is applied to a target storage node in a cloud storage system, where the cloud storage system further includes a management node. As shown in FIG. 8, the method includes the following steps:
S801,接收所述管理节点发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述视频搜索请求是所述管理节点确定所述目标存储节点存储有待搜索监控视频时,向所述目标存储节点发送的,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息。S801. Receive a video search request that is sent by the management node and that includes the feature information of the to-be-searched video, where the video search request is that the management node determines that the target storage node stores the to-be-searched video. The feature information sent by the target storage node includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information.
在本申请实施例中,在云存储系统存储监控视频后,用户可以在云存储系统中搜索其感兴趣的监控视频,如包含某个人的所有监控视频,或包含某辆车在某个时间段的所有监控视频等。具体的,用户可以在客户端生成包含待搜索监控视频的特征信息的视频搜索请求,并将该视频搜索请求发送给云存储系统的管理节点,进而管理节点可以根据该视频搜索请求,在存储节点所存储监控视频中搜索出满足条件的监控视频。其中,上述特征信息可以包括以下至少一项:参考图片、空间范围、时间范围、和属性信息。In the embodiment of the present application, after the cloud storage system stores the monitoring video, the user may search for the monitoring video of interest in the cloud storage system, such as including all monitoring videos of a certain person, or include a certain vehicle in a certain period of time. All monitoring videos and more. Specifically, the user may generate a video search request including feature information of the to-be-searched video on the client, and send the video search request to the management node of the cloud storage system, and the management node may perform the search request according to the video search node. A monitored video that satisfies the condition is searched for in the stored monitoring video. The foregoing feature information may include at least one of the following: a reference picture, a spatial range, a time range, and attribute information.
管理节点接收到视频搜索请求后,可以首先确定存储有待搜索监控视频 的目标存储节点,进而可以将视频搜索请求发送给各目标存储节点,以在各目标存储节点中进行监控视频搜索。After receiving the video search request, the management node may first determine the target storage node storing the monitoring video to be searched, and then send the video search request to each target storage node to perform monitoring video search in each target storage node.
例如,当视频搜索请求中不包含空间范围、时间范围、属性信息等描述信息,只包含参考图片时,管理节点可以将所在云存储系统中所有的存储节点都确定为目标存储节点;当视频搜索请求中包含管理节点所存储索引信息中包含的相关信息,如空间范围等时,管理节点可以根据视频搜索请求中包括的空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有待搜索监控视频的目标存储节点。For example, when the video search request does not include the description information such as the spatial range, the time range, and the attribute information, and only includes the reference picture, the management node may determine all the storage nodes in the cloud storage system as the target storage node; when the video search The request includes related information included in the index information stored by the management node, such as a space range, etc., the management node may according to the spatial range included in the video search request, and the index information of the monitoring video stored in each locally stored storage node. Determine the target storage node where the monitored video to be searched is stored.
S802,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。S802: Search, according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, a target monitoring video index information that is greater than a first preset threshold between the feature information and the target information. The target monitoring video index information is sent to the management node.
目标存储节点接收到视频搜索请求后,可以根据本地所存储的监控视频、所存储监控视频索引信息、以及视频搜索请求中包括的特征信息,搜索与该特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将该目标监控视频索引信息发送给管理节点。After receiving the video search request, the target storage node may search for the matching degree with the feature information according to the locally stored monitoring video, the stored monitoring video index information, and the feature information included in the video search request. The target monitoring video index information is set, and the target monitoring video index information is sent to the management node.
如,目标存储节点可以在本地存储的所有的索引信息中,依次读取各索引信息对应的监控视频,并提取该监控视频的视频特征信息。之后,可以计算该监控视频的视频特征信息与视频搜索请求中包括的特征信息的匹配度,当该匹配度大于预设阈值,如80%、85%、90%时,确定该索引信息为目标监控视频索引信息。For example, the target storage node may sequentially read the monitoring video corresponding to each index information in all the index information stored locally, and extract the video feature information of the monitoring video. After that, the matching degree between the video feature information of the monitoring video and the feature information included in the video search request may be calculated. When the matching degree is greater than a preset threshold, such as 80%, 85%, or 90%, the index information is determined as a target. Monitor video index information.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
作为本申请实施例的一种实施方式,为了提高视频搜索效率,当目标存储节点接收到的视频搜索请求中的特征信息包括:参考图片、空间范围、时间范围、和属性信息时,各目标存储节点进行监控视频搜索的过程可以包括:As an implementation manner of the embodiment of the present application, in order to improve the video search efficiency, when the feature information in the video search request received by the target storage node includes: a reference picture, a spatial range, a time range, and attribute information, each target storage The process by which a node performs a surveillance video search may include:
对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;Performing feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture;
在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;Finding candidate monitoring video index information that matches the spatial range and time range in the locally stored monitoring video index information;
在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。In the candidate monitoring video index information, the monitoring video corresponding to each candidate monitoring video index information is sequentially read, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, according to the video feature information of the monitoring video, and Determining, by the picture feature information and the attribute information, a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold, and if yes, selecting the candidate monitoring video The index information is used as the target monitoring video index information.
本实施例中,目标存储节点可以首先在其存储的监控视频索引信息中,查找出满足空间范围和时间范围的候选监控视频索引信息,进而再确定目标监控视频索引信息,从而能够提高监控视频搜索效率。In this embodiment, the target storage node may first find the candidate monitoring video index information that satisfies the spatial range and the time range in the stored monitoring video index information, and then determine the target monitoring video index information, thereby improving the monitoring video search. effectiveness.
作为本申请实施例的一种实施方式,目标存储节点在各候选监控视频索引信息中确定目标监控视频索引信息时,为了提高准确性,防止漏掉一个或多个候选监控视频索引信息,该过程可以包括以下步骤:As an implementation manner of the embodiment of the present application, when the target storage node determines the target monitoring video index information in each candidate monitoring video index information, in order to improve accuracy and prevent one or more candidate monitoring video index information from being missed, the process The steps can be included:
构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;Constructing an initial index information set including each candidate monitoring video index information, and constructing an empty result index information set;
判断所述初始索引信息集合是否为空;Determining whether the initial index information set is empty;
如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;If not, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, Adding the candidate monitoring video index information to the result index information set, deleting the candidate monitoring video index information from the initial index information set, and returning to perform the step of determining whether the initial index information set is empty;
如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。If yes, the index information included in the result index information set is used as the target monitoring video index information.
本实施例中,可以通过构建初始索引信息集合和结果索引信息集合,来确定目标监控视频索引信息,从而能够保证对每个候选监控视频索引信息都进行判断,提高监控视频搜索的准确性。In this embodiment, the target monitoring video index information can be determined by constructing the initial index information set and the result index information set, thereby ensuring that each candidate monitoring video index information is judged and improving the accuracy of the monitoring video search.
可以理解,有些情况下,针对同一应用场景,也可能会进行不同类型的视频搜索。如,针对小区监控视频,除了进行人员搜索外,有时候也可能会 需要进行车辆搜索。Understandably, in some cases, different types of video searches may be performed for the same application scenario. For example, for community surveillance video, in addition to conducting personnel searches, vehicle searches may sometimes be required.
因此,作为本申请实施例的一种实施方式,为了提高监控视频搜索的适用性和准确性,在各存储节点中配置特征算法时,可以在各存储节点中配置多种特征算法。并且,各特征算法可以有其对于的优先级。如,针对存储小区监控视频的存储节点,可以在其中配置两种特征算法,分别为针对车辆进行特征提取的特征算法和针对人员进行特征提取的特征算法,且针对人员进行特征提取的特征算法的优先级高于针对车辆进行特征提取的特征算法的优先级。Therefore, as an implementation manner of the embodiment of the present application, in order to improve the applicability and accuracy of the surveillance video search, when configuring the feature algorithm in each storage node, multiple feature algorithms may be configured in each storage node. Also, each feature algorithm can have its priority. For example, for a storage node storing a cell monitoring video, two feature algorithms may be configured therein, namely, a feature algorithm for feature extraction for a vehicle and a feature algorithm for feature extraction for a person, and a feature algorithm for feature extraction for a person The priority is higher than the priority of the feature algorithm for feature extraction of the vehicle.
相应的,目标存储节点在各候选监控视频索引信息中确定目标监控视频索引信息时,该过程可以包括以下步骤:Correspondingly, when the target storage node determines the target monitoring video index information in each candidate monitoring video index information, the process may include the following steps:
采用优先级最高的特征算法提取该监控视频的视频特征信息;Extracting video feature information of the surveillance video by using a feature algorithm with the highest priority;
所述将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息的步骤包括:The step of using the index information included in the result index information set as the target monitoring video index information includes:
判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
本实施例中,可以通过多种特征算法对监控视频进行特性提取,从而可以提高监控视频搜索的全面性和准确性。In this embodiment, the feature video can be extracted by using multiple feature algorithms, thereby improving the comprehensiveness and accuracy of the surveillance video search.
相应的,本申请实施例还提供了一种云存储系统,如图9所示,所述云存储系统包括:管理节点910和多个存储节点920,Correspondingly, the embodiment of the present application further provides a cloud storage system. As shown in FIG. 9, the cloud storage system includes: a management node 910 and a plurality of storage nodes 920.
所述管理节点910,用于接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;确定存储有所述待搜索监控视频的目标存储节点920,并将所述视频搜索请求发送至各所述目标存储节点920;The management node 910 is configured to receive a video search request that is sent by the client and includes feature information of the to-be-searched surveillance video, where the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information. Determining a target storage node 920 storing the to-be-searched video, and transmitting the video search request to each of the target storage nodes 920;
各所述目标存储节点920,用于接收所述视频搜索请求,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点910。Each of the target storage nodes 920 is configured to receive the video search request, and according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, the matching degree between the search and the feature information is greater than The target of the first preset threshold monitors video index information, and sends the target monitoring video index information to the management node 910.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
作为本申请实施例的一种实施方式,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,As an implementation manner of the embodiment of the present application, when the feature information includes: a reference picture, a spatial range, a time range, and attribute information,
任一目标存储节点920,具体用于对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。Any target storage node 920 is specifically configured to perform feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture; and search for the spatial range and time range in the locally stored monitoring video index information. The candidate monitoring video index information; in the candidate monitoring video index information, the monitoring video corresponding to each candidate monitoring video index information is sequentially read, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitoring video index information is used as the target monitoring video index information.
作为本申请实施例的一种实施方式,任一目标存储节点920,具体用于构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;判断所述初始索引信息集合是否为空;如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监 控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。As an implementation manner of the embodiment of the present application, any target storage node 920 is specifically configured to construct an initial index information set including each candidate monitoring video index information, and construct an empty result index information set; and determine the initial index information. Whether the set is empty; if not, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and Calculating, according to the video feature information of the monitoring video, the image feature information and the attribute information, a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold If yes, add the candidate monitoring video index information to the result index information set, delete the candidate monitoring video index information from the initial index information set, and return to perform the determining whether the initial index information set is Empty step; if yes, the result index information The index information included in the set is used as the target monitoring video index information.
作为本申请实施例的一种实施方式,各存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,As an implementation manner of the embodiment of the present application, multiple feature algorithms are pre-configured in each storage node, and each feature algorithm has its corresponding priority.
任一目标存储节点920,具体用于采用优先级最高的特征算法提取该监控视频的视频特征信息;在将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息时,判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Any target storage node 920 is specifically configured to extract video feature information of the monitoring video by using a feature algorithm with the highest priority; and when the index information included in the result index information set is used as the target monitoring video index information, Whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines whether the newly constructed initial index information set is Is empty;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
作为本申请实施例的一种实施方式,所述管理节点910,还用于接收各目标存储节点发送的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述客户端。As an implementation manner of the embodiment of the present application, the management node 910 is further configured to receive target monitoring video index information sent by each target storage node, and send the target monitoring video index information to the client.
作为本申请实施例的一种实施方式,所述管理节点910,还用于接收客户端发送的确认信息,并根据所述确认信息对各目标存储节点中的第一预设阈值进行调整。As an implementation manner of the embodiment of the present application, the management node 910 is further configured to receive the acknowledgement information sent by the client, and adjust the first preset threshold in each target storage node according to the acknowledgement information.
作为本申请实施例的一种实施方式,所述管理节点910,具体用于当所述确认信息中包括的准确率大于第二预设阈值时,减小所述第一预设阈值;当所述确认信息中包括的准确率小于或等于所述第二阈值时,增大所述第一预设阈值。As an implementation manner of the embodiment of the present application, the management node 910 is specifically configured to: when the accuracy rate included in the confirmation information is greater than a second preset threshold, reduce the first preset threshold; When the accuracy rate included in the confirmation information is less than or equal to the second threshold, the first preset threshold is increased.
作为本申请实施例的一种实施方式,所述管理节点910,具体用于根据所述空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有所述待搜索监控视频的目标存储节点。As an implementation manner of the embodiment of the present application, the management node 910 is specifically configured to determine, according to the spatial range, and the index information of the monitoring video stored in each locally stored storage node, that the to-be-searched monitoring is stored. The target storage node for the video.
作为本申请实施例的一种实施方式,所述管理节点910,具体用于构建包含各目标存储节点标识的目标存储节点列表;判断所述目标存储节点列表是否为空;当所述目标存储节点列表不为空时,将所述视频搜索请求发送至所述目标存储节点列表中一目标存储节点,并确定是否发送成功;当发送成功时,将该目标存储节点标识从所述目标存储节点列表移除,并返回执行所述判断所述目标存储节点列表是否为空的步骤;当发送失败时,返回执行所述判断所述存储节点列表是否为空的步骤。As an implementation manner of the embodiment of the present application, the management node 910 is specifically configured to construct a target storage node list that includes each target storage node identifier; determine whether the target storage node list is empty; and when the target storage node is When the list is not empty, sending the video search request to a target storage node in the target storage node list, and determining whether the sending is successful; when the sending is successful, identifying the target storage node identifier from the target storage node list And removing, performing the step of determining whether the target storage node list is empty; when the sending fails, returning to performing the step of determining whether the storage node list is empty.
相应的,本申请实施例还提供了一种视频搜索装置,应用于云存储系统中的目标存储节点,所述云存储系统还包括管理节点,如图10所示,所述装置包括:Correspondingly, the embodiment of the present application further provides a video search device, which is applied to a target storage node in a cloud storage system, where the cloud storage system further includes a management node. As shown in FIG. 10, the device includes:
接收模块1010,用于接收所述管理节点发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述视频搜索请求是所述管理节点确定所述目标存储节点存储有待搜索监控视频时,向所述目标存储节点发送的,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;The receiving module 1010 is configured to receive, by the management node, a video search request that includes feature information of a to-be-searched surveillance video, where the video search request is that the management node determines that the target storage node stores a to-be-searched surveillance video. Sending to the target storage node, the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
搜索模块1020,用于根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。The search module 1020 is configured to search, according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, the target monitoring video index information that is matched with the feature information and is greater than the first preset threshold. And sending the target monitoring video index information to the management node.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
作为本申请实施例的一种实施方式,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述搜索模块1020包括:As an implementation manner of the embodiment of the present application, when the feature information includes: a reference picture, a spatial range, a time range, and attribute information, the searching module 1020 includes:
特征提取子模块(图中未示出),用于对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;a feature extraction sub-module (not shown) for performing feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture;
查找子模块(图中未示出),用于在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;a sub-module (not shown) for searching for candidate monitoring video index information matching the spatial range and time range in the locally stored monitoring video index information;
搜索子模块(图中未示出),用于在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。The search sub-module (not shown) is configured to sequentially read the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extract the video of the monitoring video by using a pre-configured feature algorithm. Feature information, according to the video feature information of the monitoring video, and the image feature information and the attribute information, calculating a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than the first The preset threshold, if yes, the candidate monitoring video index information is used as the target monitoring video index information.
作为本申请实施例的一种实施方式,所述搜索子模块,包括:As an implementation manner of the embodiment of the present application, the search submodule includes:
构建子单元(图中未示出),用于构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;Constructing a subunit (not shown) for constructing an initial index information set including each candidate monitoring video index information, and constructing an empty result index information set;
判断子单元(图中未示出),用于判断所述初始索引信息集合是否为空;a determining subunit (not shown) for determining whether the initial index information set is empty;
特征提取子单元(图中未示出),用于当所述判断子单元判断结果为否时,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息;a feature extraction sub-unit (not shown), configured to sequentially read, in the initial index information set, a monitoring corresponding to a piece of candidate monitoring video index information located in the front, when the determining sub-unit determines that the result is negative Video, extracting video feature information of the surveillance video by using a pre-configured feature algorithm;
搜索子单元(图中未示出),用于根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并触发所述判断子单元;Searching a subunit (not shown) for calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, and the image feature information and the attribute information And determining whether the matching degree is greater than the first preset threshold, and if yes, adding the candidate monitoring video index information to the result index information set, and deleting the candidate monitoring video index information from the initial index information set, And triggering the determining subunit;
确定子单元(图中未示出),用于当所述判断子单元判断结果为是时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。Determining a subunit (not shown) for using the index information included in the result index information set as the target monitoring video index information when the judgment subunit determines that the result is YES.
作为本申请实施例的一种实施方式,所述特征提取子单元,具体用于采用优先级最高的特征算法提取该监控视频的视频特征信息;As an implementation manner of the embodiment of the present application, the feature extraction sub-unit is specifically configured to extract video feature information of the surveillance video by using a feature algorithm with the highest priority;
所述确定子单元,具体用于:The determining subunit is specifically configured to:
判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时, 该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty;
当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
相应的,本申请实施例还提供了一种计算机设备,如图11所示,该计算机设备包括:处理器1110、通信接口1120、存储器1130和通信总线1140,其中,所述处理器1110、所述通信接口1120、所述存储器1130通过所述通信总线1140完成相互间的通信;Correspondingly, the embodiment of the present application further provides a computer device, as shown in FIG. 11, the computer device includes: a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140, wherein the processor 1110, the The communication interface 1120 and the memory 1130 complete communication with each other through the communication bus 1140;
所述存储器1130,用于存放计算机程序;The memory 1130 is configured to store a computer program;
所述处理器1110,用于执行所述存储器1130上所存放的程序时,实现上述实施例所述的应用于云存储系统中目标存储节点的一种视频搜索方法。The processor 1110 is configured to implement a video search method applied to a target storage node in a cloud storage system according to the foregoing embodiment when the program stored in the memory 1130 is executed.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
上述计算机设备提到的通信总线1140可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry  Standard Architecture,简称EISA)总线等。该通信总线1140可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 1140 mentioned in the above computer device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口1120用于上述计算机设备与其他设备之间的通信。 Communication interface 1120 is used for communication between the aforementioned computer devices and other devices.
存储器1130可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器1130还可以是至少一个位于远离前述处理器的存储装置。The memory 1130 may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. Optionally, the memory 1130 may also be at least one storage device located away from the foregoing processor.
上述的处理器1110可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Ne twork Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Applica tion Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 1110 may be a general-purpose processor, including a central processing unit (CPU), a network processor (Ne twork processor, NP for short), and the like; or a digital signal processor (Digital Signal Processing, referred to as DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
相应的,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例所述的应用于云存储系统中目标存储节点的一种视频搜索方法。Correspondingly, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the application is implemented as described in the foregoing embodiment. A video search method for a target storage node in a cloud storage system.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
相应地,本申请实施例还提供了一种应用程序,其中,该应用程序用于在运行时执行本申请实施例所述的应用于云存储系统中目标存储节点的一种视频搜索方法。Correspondingly, the embodiment of the present application further provides an application program, where the application is used to execute a video search method applied to a target storage node in a cloud storage system according to an embodiment of the present application at runtime.
本申请实施例中,当管理节点接收到视频搜索请求时,其可以首先确定存储有待搜索视频的目标存储节点,从而将视频搜索请求发送给各目标存储节点,各目标存储节点接收到视频搜索请求后,可以分别在其自身存储的监控视频中,搜索与视频搜索请求匹配的目标监控视频索引信息,并将搜索到 的目标监控视频索引信息发送给管理节点,从而管理节点接收到的即为与视频搜索请求匹配的全部的目标监控视频索引信息,实现了云存储系统中监控视频的搜索。并且,各存储节点单独搜索自身存储的与视频搜索请求匹配的目标监控视频索引信息,能够保证监控视频搜索的效率。In the embodiment of the present application, when the management node receives the video search request, it may first determine the target storage node storing the video to be searched, thereby transmitting the video search request to each target storage node, and each target storage node receives the video search request. After that, in the monitoring video stored by itself, the target monitoring video index information matching the video search request may be searched, and the searched target monitoring video index information is sent to the management node, so that the management node receives the The video search request matches all the target monitoring video index information, and realizes the search of the monitoring video in the cloud storage system. Moreover, each storage node separately searches for the target monitoring video index information stored by itself and matches the video search request, thereby ensuring the efficiency of monitoring the video search.
对于装置/云存储系统/计算机设备/存储介质/应用程序实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device/cloud storage system/computer device/storage medium/application embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above description is only the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the scope of the present application.

Claims (29)

  1. 一种视频搜索方法,其特征在于,应用于云存储系统,所述云存储系统包括管理节点和多个存储节点,所述方法包括:A video search method, which is applied to a cloud storage system, where the cloud storage system includes a management node and a plurality of storage nodes, and the method includes:
    管理节点接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;The management node receives a video search request that is sent by the client and includes feature information of the to-be-searched surveillance video, where the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
    所述管理节点确定存储有所述待搜索监控视频的目标存储节点,并将所述视频搜索请求发送至各所述目标存储节点;The management node determines a target storage node that stores the to-be-searched surveillance video, and sends the video search request to each of the target storage nodes;
    各所述目标存储节点接收所述视频搜索请求,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。Each of the target storage nodes receives the video search request, and according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, the matching degree between the search and the feature information is greater than the first preset. The target of the threshold monitors the video index information, and sends the target monitoring video index information to the management node.
  2. 根据权利要求1所述的方法,其特征在于,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述各所述目标存储节点根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息的步骤包括:The method according to claim 1, wherein when the feature information comprises: a reference picture, a spatial range, a time range, and attribute information, each of the target storage nodes is based on a locally stored monitoring video, The step of storing the monitoring video index information and the feature information, and searching for the target monitoring video index information that is greater than the first preset threshold by the matching of the feature information includes:
    任一目标存储节点对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;Performing feature extraction on the reference picture by any target storage node to obtain picture feature information corresponding to the reference picture;
    该目标存储节点在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;The target storage node searches for the candidate monitoring video index information that matches the spatial range and the time range in the locally stored monitoring video index information;
    该目标存储节点在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。The target storage node sequentially reads the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extracts video feature information of the monitoring video by using a pre-configured feature algorithm, according to the video of the monitoring video. The feature information, and the picture feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitor video index information is used as the target monitoring video index information.
  3. 根据权利要求2所述的方法,其特征在于,所述该目标存储节点在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息的步骤包括:The method according to claim 2, wherein the target storage node sequentially reads the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and adopts a pre-configured feature algorithm. Extracting video feature information of the monitoring video, calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, and the image feature information and the attribute information, and determining the Whether the matching degree is greater than the first preset threshold, if yes, the step of using the candidate monitoring video index information as the target monitoring video index information includes:
    该目标存储节点构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;The target storage node constructs an initial index information set including each candidate monitoring video index information, and constructs an empty result index information set;
    判断所述初始索引信息集合是否为空;Determining whether the initial index information set is empty;
    如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;If not, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, Adding the candidate monitoring video index information to the result index information set, deleting the candidate monitoring video index information from the initial index information set, and returning to perform the step of determining whether the initial index information set is empty;
    如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。If yes, the index information included in the result index information set is used as the target monitoring video index information.
  4. 根据权利要求3所述的方法,其特征在于,各存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,所述采用预先配置的特征算法提取该监控视频的视频特征信息的步骤包括:The method according to claim 3, wherein each of the storage nodes is pre-configured with a plurality of feature algorithms, and each feature algorithm has a corresponding priority, and the pre-configured feature algorithm is used to extract the video of the surveillance video. The steps of the feature information include:
    采用优先级最高的特征算法提取该监控视频的视频特征信息;Extracting video feature information of the surveillance video by using a feature algorithm with the highest priority;
    所述将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息的步骤包括:The step of using the index information included in the result index information set as the target monitoring video index information includes:
    判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集 合,并判断最新构建的初始索引信息集合是否为空;当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty; when the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information;
    当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
    当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤。When the newly constructed initial index information set is empty, a step of performing the determination as to whether the result index information set is empty is returned.
  5. 根据权利要求3或4所述的方法,其特征在于,所述将所述目标监控视频索引信息发送给所述管理节点之后,所述方法还包括:The method according to claim 3 or 4, wherein after the sending the target monitoring video index information to the management node, the method further comprises:
    所述管理节点接收各目标存储节点发送的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述客户端。The management node receives target monitoring video index information sent by each target storage node, and sends the target monitoring video index information to the client.
  6. 根据权利要求5所述的方法,其特征在于,所述将所述目标监控视频索引信息发送给所述客户端之后,所述方法还包括:The method according to claim 5, wherein after the sending the target monitoring video index information to the client, the method further comprises:
    所述管理节点接收所述客户端发送的确认信息,并根据所述确认信息对各目标存储节点中的第一预设阈值进行调整。The management node receives the confirmation information sent by the client, and adjusts a first preset threshold in each target storage node according to the confirmation information.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述确认信息对各目标存储节点中的第一预设阈值进行调整的步骤包括:The method according to claim 6, wherein the step of adjusting the first preset threshold in each target storage node according to the confirmation information comprises:
    当所述确认信息中包括的准确率大于第二预设阈值时,减小所述第一预设阈值;When the accuracy rate included in the confirmation information is greater than a second preset threshold, decreasing the first preset threshold;
    当所述确认信息中包括的准确率小于或等于所述第二阈值时,增大所述 第一预设阈值。When the accuracy rate included in the confirmation information is less than or equal to the second threshold, the first preset threshold is increased.
  8. 根据权利要求2-5任一项所述的方法,其特征在于,所述管理节点确定存储有所述待搜索监控视频的目标存储节点的步骤包括:The method according to any one of claims 2 to 5, wherein the determining, by the management node, the target storage node storing the monitoring video to be searched comprises:
    所述管理节点根据所述空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有所述待搜索监控视频的目标存储节点。The management node determines, according to the spatial range and the index information of the monitoring video stored in each locally stored storage node, the target storage node that stores the to-be-searched surveillance video.
  9. 根据权利要求1-5任一项所述的方法,其特征在于,所述将所述视频搜索请求发送至各所述目标存储节点的步骤包括:The method according to any one of claims 1-5, wherein the step of transmitting the video search request to each of the target storage nodes comprises:
    所述管理节点构建包含各目标存储节点标识的目标存储节点列表;The management node constructs a list of target storage nodes including identifiers of the target storage nodes;
    判断所述目标存储节点列表是否为空;当所述目标存储节点列表不为空时,将所述视频搜索请求发送至所述目标存储节点列表中一目标存储节点,并确定是否发送成功;Determining whether the target storage node list is empty; when the target storage node list is not empty, sending the video search request to a target storage node in the target storage node list, and determining whether the transmission is successful;
    当发送成功时,将该目标存储节点标识从所述目标存储节点列表移除,并返回执行所述判断所述目标存储节点列表是否为空的步骤;When the sending is successful, removing the target storage node identifier from the target storage node list, and returning to perform the step of determining whether the target storage node list is empty;
    当发送失败时,返回执行所述判断所述存储节点列表是否为空的步骤。When the transmission fails, a step of performing the determination of whether the storage node list is empty is returned.
  10. 一种视频搜索方法,其特征在于,应用于云存储系统中的目标存储节点,所述云存储系统还包括管理节点,所述方法包括:A video search method, which is applied to a target storage node in a cloud storage system, the cloud storage system further includes a management node, and the method includes:
    接收所述管理节点发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述视频搜索请求是所述管理节点确定所述目标存储节点存储有待搜索监控视频时,向所述目标存储节点发送的,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;Receiving, by the management node, a video search request that includes feature information of a to-be-searched surveillance video, where the video search request is that the management node determines that the target storage node stores a to-be-searched surveillance video, and stores the target information The feature information sent by the node includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
    根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。Searching, according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, target monitoring video index information that is greater than a first preset threshold between the feature information and the target The monitoring video index information is sent to the management node.
  11. 根据权利要求10所述的方法,其特征在于,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息的步骤包括:The method according to claim 10, wherein when the feature information comprises: a reference picture, a spatial range, a time range, and attribute information, the locally stored monitoring video and the stored monitoring video index information And the step of searching for the target monitoring video index information that the matching degree with the feature information is greater than the first preset threshold includes:
    对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;Performing feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture;
    在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;Finding candidate monitoring video index information that matches the spatial range and time range in the locally stored monitoring video index information;
    在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。In the candidate monitoring video index information, the monitoring video corresponding to each candidate monitoring video index information is sequentially read, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, according to the video feature information of the monitoring video, and Determining, by the picture feature information and the attribute information, a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than a first preset threshold, and if yes, selecting the candidate monitoring video The index information is used as the target monitoring video index information.
  12. 根据权利要求11所述的方法,其特征在于,所述在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息的步骤包括:The method according to claim 11, wherein in the candidate monitoring video index information, the monitoring video corresponding to each candidate monitoring video index information is sequentially read, and the monitoring video is extracted by using a pre-configured feature algorithm. The video feature information, according to the video feature information of the monitoring video, and the image feature information and the attribute information, calculating a matching degree between the candidate monitoring video index information and the feature information, and determining whether the matching degree is greater than The first preset threshold, if yes, the step of using the candidate monitoring video index information as the target monitoring video index information includes:
    构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;Constructing an initial index information set including each candidate monitoring video index information, and constructing an empty result index information set;
    判断所述初始索引信息集合是否为空;Determining whether the initial index information set is empty;
    如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;If not, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the initial index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, Adding the candidate monitoring video index information to the result index information set, deleting the candidate monitoring video index information from the initial index information set, and returning to perform the step of determining whether the initial index information set is empty;
    如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控 视频索引信息。If so, the index information included in the result index information set is used as the target monitoring video index information.
  13. 根据权利要求12所述的方法,其特征在于,所述目标存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,所述采用预先配置的特征算法提取该监控视频的视频特征信息的步骤包括:The method according to claim 12, wherein a plurality of feature algorithms are pre-configured in the target storage node, and each feature algorithm has a corresponding priority, and the monitoring video is extracted by using a pre-configured feature algorithm. The steps of the video feature information include:
    采用优先级最高的特征算法提取该监控视频的视频特征信息;Extracting video feature information of the surveillance video by using a feature algorithm with the highest priority;
    所述将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息的步骤包括:The step of using the index information included in the result index information set as the target monitoring video index information includes:
    判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty;
    当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
    当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
    当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
  14. 一种云存储系统,其特征在于,所述云存储系统包括:管理节点和多个存储节点,A cloud storage system, comprising: a management node and a plurality of storage nodes;
    所述管理节点,用于接收客户端发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述特征信息包括以下至少一项:参考图片、空间 范围、时间范围、和属性信息;确定存储有所述待搜索监控视频的目标存储节点,并将所述视频搜索请求发送至各所述目标存储节点;The management node is configured to receive, by the client, a video search request that includes feature information of the to-be-searched surveillance video, where the feature information includes at least one of: a reference picture, a spatial range, a time range, and attribute information; Determining a target storage node storing the to-be-searched surveillance video, and transmitting the video search request to each of the target storage nodes;
    各所述目标存储节点,用于接收所述视频搜索请求,根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。Each of the target storage nodes is configured to receive the video search request, and according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, the matching degree between the search and the feature information is greater than A target of a preset threshold monitors video index information, and sends the target monitoring video index information to the management node.
  15. 根据权利要求14所述的云存储系统,其特征在于,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,The cloud storage system according to claim 14, wherein when the feature information comprises: a reference picture, a spatial range, a time range, and attribute information,
    任一目标存储节点,具体用于对所述参考图片进行特征提取,得到所述参考图片对应的图片特征信息;在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。Any target storage node is specifically configured to perform feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture; and search for candidate matching the spatial range and time range in the locally stored monitoring video index information Monitoring video index information; in the candidate monitoring video index information, sequentially reading the monitoring video corresponding to each candidate monitoring video index information, and extracting video feature information of the monitoring video by using a pre-configured feature algorithm, according to the monitoring video The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if yes, The candidate monitoring video index information is used as the target monitoring video index information.
  16. 根据权利要求15所述的云存储系统,其特征在于,A cloud storage system according to claim 15 wherein:
    任一目标存储节点,具体用于构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;判断所述初始索引信息集合是否为空;如果否,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并返回执行所述判断所述初始索引信息集合是否为空的步骤;如果是,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。Any target storage node, specifically configured to construct an initial index information set including each candidate monitoring video index information, and construct an empty result index information set; determine whether the initial index information set is empty; if not, at the initial The monitoring information corresponding to the first candidate monitoring video index information is sequentially read in the index information set, and the video feature information of the monitoring video is extracted by using a pre-configured feature algorithm, and according to the video feature information of the monitoring video, The picture feature information and the attribute information are used to calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, the candidate monitoring video index information Adding the result index information set, deleting the candidate monitoring video index information from the initial index information set, and returning to perform the step of determining whether the initial index information set is empty; if yes, the result is Index information included in the index information set as the target Video index information.
  17. 根据权利要求16所述的云存储系统,其特征在于,各存储节点中预先配置有多种特征算法,且各特征算法有其对应的优先级,The cloud storage system according to claim 16, wherein each storage node is pre-configured with a plurality of feature algorithms, and each feature algorithm has a corresponding priority.
    任一目标存储节点,具体用于采用优先级最高的特征算法提取该监控视频的视频特征信息;在将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息时,判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时,该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Any target storage node is specifically configured to extract video feature information of the monitoring video by using a feature algorithm with the highest priority; and when the index information included in the result index information set is used as the target monitoring video index information, Whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines whether the newly constructed initial index information set is air;
    当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
    当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
    当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
  18. 根据权利要求16或17所述的云存储系统,其特征在于,A cloud storage system according to claim 16 or 17, wherein
    所述管理节点,还用于接收各目标存储节点发送的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述客户端。The management node is further configured to receive target monitoring video index information sent by each target storage node, and send the target monitoring video index information to the client.
  19. 根据权利要求18所述的云存储系统,其特征在于,A cloud storage system according to claim 18, wherein
    所述管理节点,还用于接收客户端发送的确认信息,并根据所述确认信息对各目标存储节点中的第一预设阈值进行调整。The management node is further configured to receive the acknowledgement information sent by the client, and adjust the first preset threshold in each target storage node according to the acknowledgement information.
  20. 根据权利要求19所述的云存储系统,其特征在于,A cloud storage system according to claim 19, wherein
    所述管理节点,具体用于当所述确认信息中包括的准确率大于第二预设阈值时,减小所述第一预设阈值;当所述确认信息中包括的准确率小于或等于所述第二阈值时,增大所述第一预设阈值。The management node is specifically configured to: when the accuracy rate included in the confirmation information is greater than a second preset threshold, reduce the first preset threshold; when the accuracy included in the confirmation information is less than or equal to When the second threshold is described, the first preset threshold is increased.
  21. 根据权利要求14-17任一项所述的云存储系统,其特征在于,A cloud storage system according to any of claims 14-17, wherein
    所述管理节点,具体用于根据所述空间范围,以及本地保存的各存储节点中所存储监控视频的索引信息,确定存储有所述待搜索监控视频的目标存储节点。The management node is specifically configured to determine, according to the spatial range, and the index information of the monitoring video stored in each locally stored storage node, the target storage node that stores the to-be-searched surveillance video.
  22. 根据权利要求14-17任一项所述的云存储系统,其特征在于,A cloud storage system according to any of claims 14-17, wherein
    所述管理节点,具体用于构建包含各目标存储节点标识的目标存储节点列表;判断所述目标存储节点列表是否为空;当所述目标存储节点列表不为空时,将所述视频搜索请求发送至所述目标存储节点列表中一目标存储节点,并确定是否发送成功;当发送成功时,将该目标存储节点标识从所述目标存储节点列表移除,并返回执行所述判断所述目标存储节点列表是否为空的步骤;当发送失败时,返回执行所述判断所述存储节点列表是否为空的步骤。The management node is specifically configured to construct a target storage node list including each target storage node identifier; determine whether the target storage node list is empty; and when the target storage node list is not empty, the video search request is Sending to a target storage node in the target storage node list, and determining whether the transmission is successful; when the transmission is successful, removing the target storage node identifier from the target storage node list, and returning to perform the determining the target The step of storing whether the node list is empty; when the sending fails, returning to the step of performing the determining whether the storage node list is empty.
  23. 一种视频搜索装置,其特征在于,应用于云存储系统中的目标存储节点,所述云存储系统还包括管理节点,所述装置包括:A video search device, which is applied to a target storage node in a cloud storage system, the cloud storage system further includes a management node, and the device includes:
    接收模块,用于接收所述管理节点发送的包含待搜索监控视频的特征信息的视频搜索请求,其中,所述视频搜索请求是所述管理节点确定所述目标存储节点存储有待搜索监控视频时,向所述目标存储节点发送的,所述特征信息包括以下至少一项:参考图片、空间范围、时间范围、和属性信息;a receiving module, configured to receive, by the management node, a video search request that includes feature information of a to-be-searched surveillance video, where the video search request is that the management node determines that the target storage node stores a to-be-searched surveillance video, Sending to the target storage node, the feature information includes at least one of the following: a reference picture, a spatial range, a time range, and attribute information;
    搜索模块,用于根据本地所存储的监控视频、所存储监控视频索引信息、以及所述特征信息,搜索与所述特征信息之间的匹配度大于第一预设阈值的目标监控视频索引信息,并将所述目标监控视频索引信息发送给所述管理节点。a search module, configured to search, according to the locally stored monitoring video, the stored monitoring video index information, and the feature information, a target monitoring video index information that is greater than a first preset threshold between the feature information and the feature information, And transmitting the target monitoring video index information to the management node.
  24. 根据权利要求23所述的装置,其特征在于,当所述特征信息包括:参考图片、空间范围、时间范围、和属性信息时,所述搜索模块包括:The apparatus according to claim 23, wherein when the feature information comprises: a reference picture, a spatial range, a time range, and attribute information, the searching module comprises:
    特征提取子模块,用于对所述参考图片进行特征提取,得到所述参考图 片对应的图片特征信息;a feature extraction sub-module, configured to perform feature extraction on the reference picture to obtain picture feature information corresponding to the reference picture;
    查找子模块,用于在本地所存储监控视频索引信息中查找与所述空间范围和时间范围匹配的候选监控视频索引信息;a search submodule, configured to search, in the locally stored monitoring video index information, candidate monitoring video index information that matches the spatial range and time range;
    搜索子模块,用于在所述候选监控视频索引信息中,依次读取每条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息,根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息作为目标监控视频索引信息。The search sub-module is configured to sequentially read the monitoring video corresponding to each candidate monitoring video index information in the candidate monitoring video index information, and extract the video feature information of the monitoring video by using a pre-configured feature algorithm, according to the monitoring video. The video feature information, and the image feature information and the attribute information, calculate a matching degree between the candidate monitoring video index information and the feature information, and determine whether the matching degree is greater than a first preset threshold, and if so, The candidate monitoring video index information is used as the target monitoring video index information.
  25. 根据权利要求24所述的装置,其特征在于,所述搜索子模块,包括:The device according to claim 24, wherein the search submodule comprises:
    构建子单元,用于构建包含各候选监控视频索引信息的初始索引信息集合,并构建空的结果索引信息集合;Constructing a subunit for constructing an initial index information set including each candidate monitoring video index information, and constructing an empty result index information set;
    判断子单元,用于判断所述初始索引信息集合是否为空;a determining subunit, configured to determine whether the initial index information set is empty;
    特征提取子单元,用于当所述判断子单元判断结果为否时,在所述初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用预先配置的特征算法提取该监控视频的视频特征信息;a feature extraction subunit, configured to sequentially read, in the initial index information set, a monitoring video corresponding to a piece of candidate monitoring video index information in the initial index information set, using pre-configured features, when the determining subunit determines that the result is negative The algorithm extracts video feature information of the surveillance video;
    搜索子单元,用于根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述初始索引信息集合删除,并触发所述判断子单元;a search subunit, configured to calculate a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, and the image feature information and the attribute information, and determine whether the matching degree is If the value is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, the candidate monitoring video index information is deleted from the initial index information set, and the determining subunit is triggered. ;
    确定子单元,用于当所述判断子单元判断结果为是时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。Determining a subunit, configured to use index information included in the result index information set as the target monitoring video index information when the judgment subunit determines that the result is YES.
  26. 根据权利要求25所述的装置,其特征在于,所述特征提取子单元,具体用于采用优先级最高的特征算法提取该监控视频的视频特征信息;The device according to claim 25, wherein the feature extraction subunit is specifically configured to extract video feature information of the surveillance video by using a feature algorithm with the highest priority;
    所述确定子单元,具体用于:The determining subunit is specifically configured to:
    判断所述结果索引信息集合是否为空;当所述结果索引信息集合为空时, 该目标存储节点再次构建包含各候选监控视频索引信息的初始索引信息集合,并判断最新构建的初始索引信息集合是否为空;Determining whether the result index information set is empty; when the result index information set is empty, the target storage node again constructs an initial index information set including each candidate monitoring video index information, and determines the newly constructed initial index information set. Whether it is empty;
    当最新构建的初始索引信息集合不为空时,在所述最新构建的初始索引信息集合中顺序读取位于最前面的一条候选监控视频索引信息对应的监控视频,采用下一优先级的特征算法提取该监控视频的视频特征信息,并根据该监控视频的视频特征信息,以及所述图片特征信息和所述属性信息,计算该条候选监控视频索引信息与所述特征信息的匹配度,并判断该匹配度是否大于第一预设阈值,如果是,将该条候选监控视频索引信息加入所述结果索引信息集合,将该条候选监控视频索引信息从所述最新构建的初始索引信息集合删除,并返回执行所述判断所述最新构建的初始索引信息集合是否为空的步骤;When the newly constructed initial index information set is not empty, the monitoring video corresponding to the first candidate monitoring video index information is sequentially read in the newly constructed initial index information set, and the next priority feature algorithm is adopted. Extracting video feature information of the monitoring video, and calculating a matching degree between the candidate monitoring video index information and the feature information according to the video feature information of the monitoring video, the image feature information, and the attribute information, and determining If the matching degree is greater than the first preset threshold, if yes, the candidate monitoring video index information is added to the result index information set, and the candidate monitoring video index information is deleted from the newly constructed initial index information set. And returning to the step of performing the determining whether the newly constructed initial index information set is empty;
    当最新构建的初始索引信息集合为空时,返回执行所述判断所述结果索引信息集合是否为空的步骤;When the newly constructed initial index information set is empty, returning to perform the step of determining whether the result index information set is empty;
    当所述结果索引信息集合不为空时,将所述结果索引信息集合中包括的索引信息作为所述目标监控视频索引信息。When the result index information set is not empty, the index information included in the result index information set is used as the target monitoring video index information.
  27. 一种计算机设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口、所述存储器通过所述通信总线完成相互间的通信;A computer device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
    所述存储器,用于存放计算机程序;The memory is configured to store a computer program;
    所述处理器,用于执行所述存储器上所存放的程序时,实现权利要求10-13任一所述的方法步骤。The processor, when used to execute a program stored on the memory, implements the method steps of any one of claims 10-13.
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储可执行程序代码,所述可执行程序代码用于在运行时执行如权利要求10-13任一项所述的方法步骤。A computer readable storage medium, for storing executable program code for performing, at runtime, according to any of claims 10-13 Method steps.
  29. 一种应用程序,其特征在于,所述应用程序用于在运行时执行如权利要求10-13任一项所述的方法步骤。An application, characterized in that the application is operative to perform the method steps of any one of claims 10-13 at runtime.
PCT/CN2018/095279 2017-07-12 2018-07-11 Video search method and apparatus, cloud storage system and computer device WO2019011275A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710565416.1A CN109255051B (en) 2017-07-12 2017-07-12 Video searching method and device, cloud storage system and computer equipment
CN201710565416.1 2017-07-12

Publications (1)

Publication Number Publication Date
WO2019011275A1 true WO2019011275A1 (en) 2019-01-17

Family

ID=65001059

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095279 WO2019011275A1 (en) 2017-07-12 2018-07-11 Video search method and apparatus, cloud storage system and computer device

Country Status (2)

Country Link
CN (1) CN109255051B (en)
WO (1) WO2019011275A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495615A (en) * 2022-11-15 2022-12-20 浪潮电子信息产业股份有限公司 Method, device, equipment, storage medium and terminal for mutual detection of video and text

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704505A (en) * 2019-09-23 2020-01-17 广州海颐信息安全技术有限公司 Method and device for searching and replaying historical privileged sessions
CN114297441B (en) * 2021-12-08 2023-05-12 北京格灵深瞳信息技术股份有限公司 Video object retrieval method, device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103107944A (en) * 2011-11-14 2013-05-15 中国移动通信集团公司 Content locating method and route equipment
US20140214885A1 (en) * 2013-01-31 2014-07-31 Electronics And Telecommunications Research Institute Apparatus and method for generating evidence video
CN104394380A (en) * 2014-12-09 2015-03-04 浙江省公众信息产业有限公司 Video monitoring management system and playback method of video monitoring record
CN105120321A (en) * 2015-08-21 2015-12-02 北京佳讯飞鸿电气股份有限公司 Video searching method, video storage method and related devices
CN105335387A (en) * 2014-07-04 2016-02-17 杭州海康威视系统技术有限公司 Retrieval method for video cloud storage system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979419B2 (en) * 2007-11-01 2011-07-12 Sharp Laboratories Of America, Inc. Distributed search methods for time-shifted and live peer-to-peer video streaming
CN105721883B (en) * 2014-12-05 2018-11-02 华中科技大学 Video sharing method and system based on information of tracing to the source in a kind of cloud storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103107944A (en) * 2011-11-14 2013-05-15 中国移动通信集团公司 Content locating method and route equipment
US20140214885A1 (en) * 2013-01-31 2014-07-31 Electronics And Telecommunications Research Institute Apparatus and method for generating evidence video
CN105335387A (en) * 2014-07-04 2016-02-17 杭州海康威视系统技术有限公司 Retrieval method for video cloud storage system
CN104394380A (en) * 2014-12-09 2015-03-04 浙江省公众信息产业有限公司 Video monitoring management system and playback method of video monitoring record
CN105120321A (en) * 2015-08-21 2015-12-02 北京佳讯飞鸿电气股份有限公司 Video searching method, video storage method and related devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495615A (en) * 2022-11-15 2022-12-20 浪潮电子信息产业股份有限公司 Method, device, equipment, storage medium and terminal for mutual detection of video and text
CN115495615B (en) * 2022-11-15 2023-02-28 浪潮电子信息产业股份有限公司 Method, device, equipment, storage medium and terminal for mutual detection of video and text

Also Published As

Publication number Publication date
CN109255051A (en) 2019-01-22
CN109255051B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN108038114B (en) Path query method, terminal and computer readable storage medium
US20130311742A1 (en) Image management method, mobile terminal and computer storage medium
WO2019011275A1 (en) Video search method and apparatus, cloud storage system and computer device
US10229208B2 (en) Optimization of query execution
KR20160044470A (en) Method, server and system for setting background image
CN107133248B (en) Application program classification method and device
CN109543566B (en) Information processing method and device, electronic equipment and storage medium
US11455117B2 (en) Data reading method, apparatus, and system, avoiding version rollback issues in distributed system
US20170206052A1 (en) Method and system for automatically managing content in an electronic device
CN110688353A (en) File management method, device and computer readable medium
CN105022793A (en) Image object identification method
US10171606B2 (en) System and method for providing data as a service (DaaS) in real-time
US20160248724A1 (en) Social Message Monitoring Method and Apparatus
WO2020151507A1 (en) File merging method and apparatus
EP2530611B1 (en) Methods and apparatuses for a network based on hierarchical name structure
CN111314094A (en) Grouping data processing method and device, electronic equipment and readable storage medium
WO2018153236A1 (en) Method and apparatus for accelerating dynamic resource access based on api request, medium, and device
US20140289307A1 (en) Method for transmitting data between electronic devices
CN113660336B (en) Cloud computing and fog computing system using KV storage device
CN108228101B (en) Method and system for managing data
RU2624558C2 (en) Method, terminal and server for file fields adjustment
CN112035413B (en) Metadata information query method, device and storage medium
CN112487082B (en) Biological feature recognition method and related equipment
US20170180511A1 (en) Method, system and apparatus for dynamic detection and propagation of data clusters
DE102016109557A1 (en) Device location determination by wireless signals

Legal Events

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

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18831058

Country of ref document: EP

Kind code of ref document: A1