CN103714173B - A kind of search method of video source, device and monitor terminal - Google Patents
A kind of search method of video source, device and monitor terminal Download PDFInfo
- Publication number
- CN103714173B CN103714173B CN201310754578.1A CN201310754578A CN103714173B CN 103714173 B CN103714173 B CN 103714173B CN 201310754578 A CN201310754578 A CN 201310754578A CN 103714173 B CN103714173 B CN 103714173B
- Authority
- CN
- China
- Prior art keywords
- condition
- path
- sub
- video source
- tree
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/73—Querying
- G06F16/732—Query formulation
- G06F16/7343—Query language or query format
Abstract
The invention discloses a kind of search method of video source, device and monitor terminal, for video technique field.In some feasible embodiments of the invention, method includes:The condition of retrieval is divided into N number of sub- condition, the N is the integer more than or equal to 2;Inquiry and the video source path of N number of sub- condition coupling are corresponded to using N number of thread respectively;Show the Query Result of each thread.Technical solution of the present invention corresponds to inquiry and the video source path of N number of sub- condition coupling respectively due to the condition of retrieval is divided into N number of sub- condition using N number of thread, and shows the Query Result of each thread, can improve retrieval rate, save system resource.
Description
Technical field
The present invention relates to video technique field, and in particular to a kind of search method of video source, device and monitor terminal.
Background technology
In video security monitoring technology, the retrieval of video source is the crucial calculating of one of which, and video retrieval technology is
Through gradually ripe and start to move towards market.
A kind of retrieval technique of existing video source is cached by setting up video data in internal memory;When acquisition term
Afterwards, searched in video data caching;If finding the caching record of corresponding term, root in video data caching
Retrieval set is generated according to the caching record and is returned.
Need system resource due to setting up data buffer storage, thus especially data volume than it is larger when, will result in system money
The waste in source, and retrieval rate is slower.
Practice finds that the retrieval technique of video source of the prior art wastes system resource, and retrieval rate is slow.
The content of the invention
The embodiment of the present invention provides a kind of search method of video source, device and monitor terminal, to solve in the prior art
Video source retrieval technique, waste system resource, the problem of retrieval rate is slow.
First aspect present invention provides a kind of search method of video source, including:
The condition of retrieval is divided into N number of sub- condition, the N is the integer more than or equal to 2;
Inquiry and the video source path of N number of sub- condition coupling are corresponded to using N number of thread respectively;
Show the Query Result of each thread.
Second aspect of the present invention provides a kind of retrieval device of video source, including:
Split module, for the condition of retrieval to be divided into N number of sub- condition, the N is the integer more than or equal to 2;
Match query module, for corresponding to inquiry and the video source path of N number of sub- condition coupling respectively using N number of thread;
Display module, the Query Result for showing each thread.
Third aspect present invention provides a kind of monitor terminal, and the monitor terminal includes described device
Therefore, the embodiment of the present invention is distinguished using the condition of retrieval is divided into N number of sub- condition using N number of thread
Correspondence inquiry and the video source path of N number of sub- condition coupling, and the Query Result of each thread is shown, retrieval rate can be improved,
Save system resource.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to institute in embodiment and description of the prior art
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of basic flow sheet of the search method of video source provided in an embodiment of the present invention;
Fig. 2 is a kind of basic logical structure schematic diagram of the retrieval of video source provided in an embodiment of the present invention;
Fig. 3 is a kind of another logical construction schematic diagram of the retrieval of video source provided in an embodiment of the present invention;
Fig. 4 is a kind of another logical construction schematic diagram of the retrieval of video source provided in an embodiment of the present invention.
Embodiment
The embodiment of the present invention provides the search method of video source, to solve the retrieval technique of video source of the prior art,
Waste system resource, the problem of retrieval rate is slow.The embodiment of the present invention also provides the retrieval and monitoring of corresponding video source
Terminal.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
Below by specific embodiment, it is described in detail respectively.
It refer to Fig. 1, a kind of search method of video source provided in an embodiment of the present invention, it may include:
110th, the condition of retrieval is divided into N number of sub- condition, the N is the integer more than or equal to 2.
In some embodiments of the invention, the condition of video source may include date, m roads video data(M is nature
Number), if there is alarm signal, matter formula, resolution ratio, video recording type etc..
For example, when user inputs search condition " alarm signal occurs in December, 2013 ", can be by the search condition of input
It is divided at least two sub- conditions " in December, 2013 " and " alarm signal occur ".
It is appreciated that in the specific implementation, point of different modes can be carried out condition according to the particular content of search condition
Cut.
120th, inquiry and the video source path of N number of sub- condition coupling are corresponded to using N number of thread respectively.
130th, the Query Result of each thread is shown.
The N number of thread of the use corresponds to inquiry and the video source path of N number of sub- condition coupling respectively to be included:
N number of sub- condition is dissipated and gone in more than two layers of tree, video source path is inquired about, and carry out with video source path
Matching;
Sub- condition and video source path corresponding with sub- condition after storage matching;
The Query Result for showing each thread includes:
Show the sub- condition and video source path corresponding with sub- condition.
In some embodiments of the invention, described dissipate N number of sub- condition is gone in more than two layers of tree, and inquiry is regarded
Frequency source path, and with video source path carry out match including:
When group condition reaches the tree root of tree, judge that the path on each node of subconditional first path and lower floor is
It is no similar;
If similarity is less than similarity minimum value, then it is assumed that similar, and creates new a child node and corresponding sides, described
In corresponding sides marked as the subconditional first path, the new child node counter is set to 1;Or,
If similarity is more than or equal to similarity minimum value, then it is assumed that dissimilar, take the maximum node of similarity to decline
Node, present node counter increase by 1.
Abovementioned steps are repeated, until the sub- condition is sky.
In some embodiments of the invention, described more than two layers of tree is two layers of Hash tree;
First tree Path Clustering is expressed asSecond tree Path Clustering is expressed as
The similarity is then designated as
Wherein, m and n are natural number,For p1In i+1 path;For p2In i+1 path.
It is appreciated that such scheme of the embodiment of the present invention such as can in monitor terminal be embodied in equipment.
Therefore, in some feasible embodiments of the present invention, by the way that the condition of retrieval is divided into N number of sub- bar
Part, corresponds to inquiry and the video source path of N number of sub- condition coupling, and show the inquiry knot of each thread respectively using N number of thread
Really, retrieval rate can be improved, system resource is saved.
In order to preferably implement the such scheme of the embodiment of the present invention, it is also provided below and implements such scheme for coordinating
Relevant apparatus.
Fig. 2 is refer to, the embodiment of the present invention provides a kind of retrieval device of video source, it may include:
Split module 210, for the condition of retrieval to be divided into N number of sub- condition, the N is the integer more than or equal to 2;
Match query module 220, for corresponding to inquiry and the video source road of N number of sub- condition coupling respectively using N number of thread
Footpath;
Display module 230, the Query Result for showing each thread.
Fig. 3 is refer to, in some embodiments of the invention, the match query module 220 may include:
Match query unit 2201, goes in more than two layers of tree for N number of sub- condition to be dissipated, inquiry video source road
Footpath, and matched with video source path;
Memory cell 2202, for storing sub- condition and video source path corresponding with sub- condition after matching;
The display module 2203, specifically for showing the sub- condition and video source path corresponding with sub- condition.
Fig. 4 is refer to, in some embodiments of the invention, the match query unit 2201 may include:
Judgment sub-unit 410, when reaching the tree root of tree for group condition, judges subconditional first path and lower floor
Whether the path on each node is similar, if similarity is less than similarity minimum value, then it is assumed that similar, if similarity is more than or waited
In similarity minimum value, then it is assumed that dissimilar;
Coupling subelement 420, for judging each section of subconditional first path and lower floor when the judgment sub-unit
When path on point is similar, then create new a child node and corresponding sides, in the corresponding sides marked as the sub- condition
First path, the new child node counter is set to 1;Or,
When the judgment sub-unit 410 judges subconditional first path and the path dissmilarity on each node of lower floor
When, then the maximum node of similarity is taken to decline node, present node counter increase by 1.
Abovementioned steps are repeated, until the sub- condition is sky.
In some embodiments of the invention, described more than two layers of tree is two layers of Hash tree;
First tree Path Clustering is expressed asSecond tree Path Clustering is expressed as
The similarity is then designated as
Wherein, m and n are natural number,For p1In i+1 path;For p2In i+1 path.
The retrieval device of the video source of embodiment of the present invention equipment such as can be monitor terminal.
It is appreciated that the function of each functional module of the retrieval device of the video source of the embodiment of the present invention can be according to above-mentioned
Method in embodiment of the method is implemented, and it implements process and can refer to associated description in above method embodiment, this
Place is repeated no more.
The embodiment of the present invention also provides a kind of monitor terminal, and the monitor terminal includes above-mentioned device.
Therefore, in some feasible embodiments of the present invention, by the way that the condition of retrieval is divided into N number of sub- bar
Part, corresponds to inquiry and the video source path of N number of sub- condition coupling, and show the inquiry knot of each thread respectively using N number of thread
Really, retrieval rate can be improved, system resource is saved.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in some embodiment
Part, may refer to the associated description of other embodiments.
To sum up, the search method of the video source of the embodiment of the present invention, device and monitor terminal, by the way that the condition of retrieval is divided
N number of sub- condition is cut into, inquiry and the video source path of N number of sub- condition coupling are corresponded to using N number of thread respectively, and show each line
The Query Result of journey, can improve retrieval rate, save system resource..
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because according to
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know,
Embodiment described in this description belongs to preferred embodiment, and not necessarily the present invention must for involved action and module
Must.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:ROM, RAM, disk or CD etc..
Search method, device and the monitor terminal of the video source provided above the embodiment of the present invention have carried out detailed Jie
Continue, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example is only
It is the method and its core concept for being used to help understand the present invention;Simultaneously for those of ordinary skill in the art, according to this hair
Bright thought, be will change in specific embodiments and applications, in summary, and this specification content should not be managed
Solve as limitation of the present invention.
Claims (5)
1. a kind of search method of video source, it is characterised in that including:
The condition of retrieval is divided into N number of sub- condition, the N is the integer more than or equal to 2;
Inquiry and the video source path of N number of sub- condition coupling are corresponded to using N number of thread respectively;
Show the Query Result of each thread;
Wherein, the N number of thread of the use corresponds to inquiry and the video source path of N number of sub- condition coupling and included respectively:
By N number of sub- condition dissipate go in more than two layers of tree, inquire about video source path, and with video source path carry out
Match somebody with somebody;
Sub- condition and video source path corresponding with sub- condition after storage matching;
The Query Result for showing each thread includes:
Show the sub- condition and video source path corresponding with sub- condition;
Wherein, it is described by N number of sub- condition dissipate go in more than two layers of tree, inquire about video source path, and with video source road
Footpath, which carries out matching, to be included:
When group condition reaches the tree root of tree, judge path on each node of subconditional first path and lower floor whether phase
Seemingly;
If similarity is more than or equal to similarity minimum value, then it is assumed that similar, and creates new a child node and corresponding sides, institute
State in corresponding sides marked as the subconditional first path, the new child node counter is set to 1;Or,
If similarity is less than similarity minimum value, then it is assumed that dissimilar, takes the maximum node of similarity to decline node, work as prosthomere
Point counter increase by 1.
2. according to the method described in claim 1, it is characterised in that described more than two layers of tree is two layers of Hash tree;
First tree Path Clustering is expressed asSecond tree Path Clustering is expressed as
The similarity is then designated as
Wherein, m and n are natural number,For p1In i+1 path;For p2In+1 path of jth.
3. a kind of retrieval device of video source, it is characterised in that including:
Split module, for the condition of retrieval to be divided into N number of sub- condition, the N is the integer more than or equal to 2;
Match query module, for corresponding to inquiry and the video source path of N number of sub- condition coupling respectively using N number of thread;
Display module, the Query Result for showing each thread;
The match query module includes:
Match query unit, goes in more than two layers of tree for N number of sub- condition to be dissipated, inquiry video source path, and with
Video source path is matched;
Memory cell, for storing sub- condition and video source path corresponding with sub- condition after matching;
The display module, specifically for showing the sub- condition and video source path corresponding with sub- condition;
The match query unit includes:
Judgment sub-unit, when reaching the tree root of tree for group condition, judges each section of subconditional first path and lower floor
Whether the path on point is similar, if similarity is more than or equal to similarity minimum value, then it is assumed that similar, if similarity is less than similar
Spend minimum value, then it is assumed that dissimilar;
Coupling subelement, for judging subconditional first path and the road on each node of lower floor when the judgment sub-unit
When footpath is similar, then create new a child node and corresponding sides, in the corresponding sides marked as the subconditional first via
Footpath, the new child node counter is set to 1;Or,
When the path that the judgment sub-unit is judged on subconditional first path and each node of lower floor is dissimilar, then take
The maximum node of similarity is declines node, and present node counter increases by 1.
4. device according to claim 3, it is characterised in that described more than two layers of tree is two layers of Hash tree;
First tree Path Clustering is expressed asSecond tree Path Clustering is expressed as
The similarity is then designated as
Wherein, m and n are natural number,For p1In i+1 path;For p2In+1 path of jth.
5. a kind of monitor terminal, it is characterised in that the monitor terminal includes the device any one of claim 3 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310754578.1A CN103714173B (en) | 2013-12-31 | 2013-12-31 | A kind of search method of video source, device and monitor terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310754578.1A CN103714173B (en) | 2013-12-31 | 2013-12-31 | A kind of search method of video source, device and monitor terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103714173A CN103714173A (en) | 2014-04-09 |
CN103714173B true CN103714173B (en) | 2017-08-01 |
Family
ID=50407148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310754578.1A Active CN103714173B (en) | 2013-12-31 | 2013-12-31 | A kind of search method of video source, device and monitor terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103714173B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183385A (en) * | 2007-12-04 | 2008-05-21 | 西安交通大学 | XML enquire method based on multi-modality indexes structure |
CN103177023A (en) * | 2011-12-23 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method, device and client side for obtaining information |
CN103425780A (en) * | 2013-08-19 | 2013-12-04 | 曙光信息产业股份有限公司 | Data inquiry method and data inquiry device |
CN103440296A (en) * | 2013-08-19 | 2013-12-11 | 曙光信息产业股份有限公司 | Data query method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7664728B2 (en) * | 2004-02-20 | 2010-02-16 | Microsoft Corporation | Systems and methods for parallel evaluation of multiple queries |
-
2013
- 2013-12-31 CN CN201310754578.1A patent/CN103714173B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183385A (en) * | 2007-12-04 | 2008-05-21 | 西安交通大学 | XML enquire method based on multi-modality indexes structure |
CN103177023A (en) * | 2011-12-23 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method, device and client side for obtaining information |
CN103425780A (en) * | 2013-08-19 | 2013-12-04 | 曙光信息产业股份有限公司 | Data inquiry method and data inquiry device |
CN103440296A (en) * | 2013-08-19 | 2013-12-11 | 曙光信息产业股份有限公司 | Data query method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103714173A (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7440952B1 (en) | Systems, methods, and computer products for information sharing using personalized index caching | |
US10671584B2 (en) | Identifying unvisited portions of visited information | |
CN107729371B (en) | Data indexing and querying method, device, equipment and storage medium of block chain | |
JP5265523B2 (en) | Significant change search alert | |
CN104636409B (en) | Promote the method, equipment and the method for generating search result of the display of search result | |
CN104809135B (en) | A kind of data access method and device | |
US20080082782A1 (en) | Location management of off-premise resources | |
US20170220635A1 (en) | Adapting a relational query to accommodate hierarchical data | |
CN103077254B (en) | Webpage acquisition methods and device | |
WO2013123831A1 (en) | Intelligent data archiving | |
CN104504137A (en) | Data storage method and system | |
EP2126724A1 (en) | Using scenario-related information to customize user experiences | |
US11947595B2 (en) | Storing semi-structured data | |
US7792826B2 (en) | Method and system for providing ranked search results | |
US7861154B2 (en) | Integration of annotations to dynamic data sets | |
EP1645978A1 (en) | Organization of static and dynamic data sets | |
CN105138674A (en) | Database access method | |
CN107085613A (en) | Enter the filter method and device of library file | |
Elbattah et al. | Large-scale ontology storage and query using graph database-oriented approach: The case of Freebase | |
US8583682B2 (en) | Peer-to-peer web search using tagged resources | |
KR20130063589A (en) | Method and apparatus for searching file by using tag-graph | |
CN103714173B (en) | A kind of search method of video source, device and monitor terminal | |
CN102129454A (en) | Method and system for processing encyclopaedia data based on cloud storage | |
CN109063215A (en) | Data retrieval method and device | |
US20150066947A1 (en) | Indexing apparatus and method for search of security monitoring data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |