CN109783664A - A kind of archiving method and device - Google Patents
A kind of archiving method and device Download PDFInfo
- Publication number
- CN109783664A CN109783664A CN201811624021.5A CN201811624021A CN109783664A CN 109783664 A CN109783664 A CN 109783664A CN 201811624021 A CN201811624021 A CN 201811624021A CN 109783664 A CN109783664 A CN 109783664A
- Authority
- CN
- China
- Prior art keywords
- archives
- offline profile
- filing
- offline
- priority
- 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.)
- Withdrawn
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the present application provides a kind of archiving method and device, it is related to technical field of image processing, this method comprises: obtaining the spatial information of multiple facial images to be archived and multiple facial images to be archived in preset period of time, multiple facial images to be archived are classified according to the spatial information of multiple facial images to be archived, then the facial image to be archived in each classification is clustered, generates the multiple first pre- filing archives;Multiple first pre- filing archives are clustered, determine the second pre- filing archives.Later again for each second pre- filing archives, according to the spatial information of the second pre- filing archives, the offline profile of N priority is obtained from facial image database, when there is offline profile matched with the second pre- filing archives in the offline profile for determining N priority, second pre- filing archives are included into matched offline profile, without being directly compared the second pre- filing archives with all offline profiles, to effectively improve the efficiency filed offline.
Description
Technical field
The present embodiments relate to technical field of image processing more particularly to a kind of archiving methods and device.
Background technique
In today's society, for the needs of safeguard management, it is various public that monitoring camera has been covered with street, community, building etc.
Occasion.When alert occurs, police track down and arrest suspect using monitoring camera.
However as the expansion of monitoring network size, video data magnanimity increases.When there is alert, based on suspect's
It is more and more difficult that image obtains useful information or information from large nuber of images, not only low efficiency, while human cost is high.
Summary of the invention
Due in the prior art, when there is alert, useful letter being obtained from large nuber of images based on the image of suspect
Breath or information are more and more difficult, and not only low efficiency, while the problem that human cost is high, the embodiment of the present application provides one kind and returns
Shelves method and device.
On the one hand, the embodiment of the present application provides a kind of archiving method, comprising:
Obtain the spatial information of multiple facial images to be archived and multiple facial images to be archived in preset period of time;
Multiple described facial images to be archived are classified according to the spatial information of multiple facial images to be archived;
Facial image to be archived in sorted each classification is clustered, the multiple first pre- filing archives are generated;
The multiple first pre- filing archives are clustered, determine the second pre- filing archives;
For each second pre- filing archives, according to the spatial information of the described second pre- filing archives, from facial image database
The middle offline profile for obtaining N priority;It include at least one offline profile in the facial image database, the offline profile is
The archives filed before the preset period of time;Described second pre- filing archives are not looked in the offline profile of preceding N-1 priority
To matched offline profile;N is greater than 1, and preceding N-1 priority is higher than N priority;
Exist in the offline profile for determining the N priority and the described second pre- filing matched offline profile of archives
When, the described second pre- filing archives are included into the matched offline profile.
Optionally, further includes:
There is no file the matched offline shelves of archives in advance with described second in the offline profile for determining the N priority
When case, the offline profile of N+1 priority is obtained from the facial image database;
It determines in the offline profile of the N+1 priority with the presence or absence of matched offline with the described second pre- filing archives
Archives, the offline profile up to finding matched offline profile or each priority, which compares, to be finished.
Optionally, further includes:
After determining that the offline profile of each priority compares, there is no matched with the described second pre- filing archives
When offline profile, a new offline profile is established for the described second pre- filing archives.
Optionally, exist in the offline profile of the determination N priority and matched with the described second pre- filing archives
Offline profile, comprising:
For any offline profile in the offline profile of the N priority, according to the class center of the offline profile
With the similarity at the class center of the described second pre- filing archives, the phase of the offline profile with the described second pre- filing archives is determined
Like degree;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to first threshold, it is determined that institute
It states in the offline profile of N priority and exists and the described second pre- filing matched offline profile of archives.
On the one hand, the embodiment of the present application provides a kind of filing apparatus, comprising:
Module is obtained, for obtaining multiple facial images to be archived and multiple described face figures to be archived in preset period of time
The spatial information of picture;
Categorization module, will multiple described faces to be archived for the spatial information according to multiple facial images to be archived
Image is classified;
Cluster module generates multiple for clustering the facial image to be archived in sorted each classification
One pre- filing archives;The multiple first pre- filing archives are clustered, determine the second pre- filing archives;
Processing module is used to file the spatial information of archives in advance according to described second for each second pre- filing archives,
The offline profile of N priority is obtained from facial image database;It include at least one offline profile, institute in the facial image database
State the archives filed before offline profile is the preset period of time;The described second pre- filing archives preceding N-1 priority from
Matched offline profile is not found in line archives;N is greater than 1, and preceding N-1 priority is higher than N priority;
Profiling module, for existing in the offline profile for determining the N priority and the described second pre- filing archives
When matched offline profile, the described second pre- filing archives are included into the matched offline profile.
Optionally, the processing module is also used to:
There is no file the matched offline shelves of archives in advance with described second in the offline profile for determining the N priority
When case, the offline profile of N+1 priority is obtained from the facial image database;
It determines in the offline profile of the N+1 priority with the presence or absence of matched offline with the described second pre- filing archives
Archives, the offline profile up to finding matched offline profile or each priority, which compares, to be finished.
Optionally, the profiling module is also used to:
After determining that the offline profile of each priority compares, there is no matched with the described second pre- filing archives
When offline profile, a new offline profile is established for the described second pre- filing archives.
Optionally, the processing module is specifically used for:
For any offline profile in the offline profile of the N priority, according to the class center of the offline profile
With the similarity at the class center of the described second pre- filing archives, the phase of the offline profile with the described second pre- filing archives is determined
Like degree;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to first threshold, it is determined that institute
It states in the offline profile of N priority and exists and the described second pre- filing matched offline profile of archives.
On the one hand, the embodiment of the present application provides a kind of archival device, including at least one processing unit and at least one
A storage unit, wherein the storage unit is stored with computer program, when described program is executed by the processing unit,
So that the processing unit executes the step of archiving method.
On the one hand, the embodiment of the present application provides a kind of computer-readable medium, and being stored with can be executed by archival device
Computer program, when described program is run in archival device, so that the step of archival device holds archiving method.
In the embodiment of the present application, when being filed for multiple facial images to be archived obtained in preset period of time, first
Classify according to the spatial information of facial image to be archived, then clusters the facial image to be archived in each classification, it is raw
At the multiple first pre- filing archives;Then the multiple first pre- filing archives are clustered, determines the second pre- filing archives, therefore the
Facial image to be archived in two pre- filing archives includes similar characteristics of image.Later again with the space of the second pre- filing archives
Information filters out offline profile as prior information from facial image database, then by the second pre- filing archives with filter out
Offline profile is filed after being compared, and can effectively improve the efficiency filed offline.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is the system architecture diagram that the embodiment of the present application is applicable in;
Fig. 2 is a kind of flow diagram of archiving method of the embodiment of the present application;
Fig. 3 is a kind of flow diagram of archiving method of the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of filing apparatus of the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of archival device of the embodiment of the present application.
Specific embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair
It is bright, it is not intended to limit the present invention.
Archiving method in the embodiment of the present application can be applied to security protection, using the facial image of monitoring device acquisition as base
Plinth establishes facial image database, includes multiple face archives in facial image database, and an archives correspond to a people, wherein face shelves
The archiving method of case can be divided into online elite archiving and offline filing according to archiving method.Online elite archiving is real-time to monitoring device
The method that the facial image of acquisition is filed, offline filing are to be filed to the facial image acquired in set period of time
Method.For convenience of description, the face archives in the embodiment of the present application are known as online archives during online elite archiving, and the application is real
It applies the face archives in example and is known as offline profile in offline archiving process.Offline filing can be used for updating online elite archiving.?
Include real name archives and non-real name archives in line archives, also includes real name archives and non-real name archives in offline profile, wherein real
Include personal identification information in name archives, for example includes identity document in real name archives.
When alert occurs, police can with the face archives in the picture search facial image database of suspect, from
The corresponding face archives of middle acquisition suspect, analyze suspect according to the facial image in the corresponding face archives of suspect later
Activity trajectory, frequent activities the information such as regional, most emerging position, consequently facilitating police arrest suspect.
Fig. 1 illustrates the applicable system architecture of the embodiment of the present application, includes monitoring device in the system architecture
101, server 102.Acquisition video flowing takes monitoring device 101 then by the video stream of acquisition to server 102 in real time
It is engaged in including filing apparatus in device 102, server 102 obtains facial image to be archived from video flowing, then will be to be archived
Facial image is included into corresponding face archives.Monitoring device 101 is connect by wireless network with server 102, and monitoring device is
The electronic equipment, such as camera, video camera, video recorder etc. for having acquisition image function.Server 102 be a server or
The server cluster or cloud computing center of several servers composition.
Based on system architecture shown in FIG. 1, the embodiment of the present application provides a kind of process of archiving method, the stream of this method
Journey can be executed by filing apparatus, and filing apparatus can be server 102 shown in FIG. 1, as shown in Figure 2, comprising the following steps:
Step 201, the space of multiple facial images to be archived and multiple facial images to be archived in preset period of time is obtained
Information.
Preset period of time can be set according to the actual situation, for example preset period of time is one day.Facial image to be archived is
The facial image of in running order monitoring device acquisition.Each facial image to be archived carries spatial information and time
Information, wherein spatial information is mark and the position for the monitoring device for capturing facial image to be archived.Temporal information is monitoring
Equipment captures the time of facial image to be archived.
Illustratively, the spatial information of facial image A to be archived and temporal information are as follows:
Spatial information: camera identification are as follows: CAMERA_A, camera position: Xuhui District of Shanghai.
Temporal information: 2018-10-20 10:07:21.
Step 202, multiple facial images to be archived are classified according to the spatial information of multiple facial images to be archived.
Specifically, classification policy, such as camera classification policy can be set previously according to spatial information, i.e., according to camera shooting
Leader knows the strategy classified.Subregion classification policy, i.e., the strategy classified according to subregion.City-level territorial classification plan
Slightly, the strategy classified according to city-level region.Provincial region classification policy, the strategy classified according to provincial region.
Be specifically described below for camera classification policy, setting obtain 100 facial images to be archived and this 100
Open the spatial information of facial image to be archived, wherein spatial information is the mark for acquiring the camera of facial image to be archived.It presses
This 100 facial images to be archived are classified according to the corresponding camera identification of every facial image to be archived.Assuming that this 100
In facial image to be archived, having the corresponding camera identification of 50 facial images to be archived is CAMERA_A, and 20 to be archived
The corresponding camera identification of facial image is CAMERA_B, and the corresponding camera identification of 30 facial images to be archived is
This 100 facial images to be archived are then divided into above-mentioned 3 class by CAMERA_C.
It should be noted that according to subregion classification policy, city-level territorial classification strategy and provincial region classification policy
The process classified to facial image to be archived is identical as the process classified according to camera classification policy, herein no longer
It repeats.
Step 203, the facial image to be archived in sorted each classification is clustered, generates multiple first and returns in advance
Shelves archives cluster the multiple first pre- filing archives, determine the second pre- filing archives.
Specifically, for the facial image to be archived in each sorted classification, using clustering algorithm by the category
In facial image to be archived clustered, clustering algorithm include but is not limited to K-Means (K mean value) clustering algorithm, mean value drift
Move clustering algorithm, density-based algorithms.
Illustratively, setting is divided into three classes according to 100 facial images to be archived that camera identification will acquire, the first kind
Including 50 facial images to be archived, the second class includes 20 facial images to be archived, and third class includes 30 faces to be archived
Image.50 facial images to be archived in the first kind are clustered first, it is one that similar facial image to be archived, which is gathered,
Class.Assuming that 50 facial images to be archived in the first kind are polymerized to 3 subclasses, wherein including in the first subclass after end of clustering
20 facial images to be archived include 20 facial images to be archived in second subclass, include 10 to be archived in third subclass
Facial image then establishes one first pre- filing archives for 20 facial images to be archived in the first subclass, for second
20 facial images to be archived of subclass establish one first pre- filing archives, for 10 face figures to be archived of third subclass
As establishing one first pre- filing archives.Then using same method in the second class 20 facial images to be archived and
30 facial images to be archived in third class are clustered and establish the corresponding first pre- filing archives.Further, by
The multiple first pre- filing archives that one kind is generated into third class are clustered, and are generated second and are filed archives in advance.
Step 204, for each second pre- filing archives, according to the spatial information of the second pre- filing archives, from face figure
Offline profile as obtaining N priority in library.
It include at least one offline profile in facial image database, the archives of filing before offline profile is preset period of time, the
Two pre- filing archives do not find matched offline profile in the offline profile of preceding N-1 priority;N is greater than 1, and preceding N-1 excellent
First grade is higher than N priority.
Specifically, for the ease of according to the spatial information of the second pre- filing archives obtained from facial image database it is corresponding from
An information record sheet is arranged in each offline profile, has recorded face figure in offline profile in the record sheet for line archives
The spatial information and temporal information of picture.
In a kind of possible embodiment, what the facial image being recorded in offline profile in information record sheet was related to is taken the photograph
As leader know, each camera capture facial image quantity and the newest candid photograph of each camera facial image when
Between.
Illustratively, setting in offline profile 1 includes 6 facial images, wherein 5 facial images are by camera
CAMERA_A is captured, and in addition 1 facial image is captured by camera CAMERA_B, then the information record sheet of offline profile 1 is specific
It is as shown in table 1:
Table 1.
Camera identification | The quantity of the facial image of candid photograph | The time of the facial image of newest candid photograph |
CAMERA_A | 5 | 2018-10-23 10:05:15 |
CAMERA_B | 1 | 2018-10-23 10:07:21 |
Record in offline profile that every facial image is corresponding takes the photograph in a kind of possible embodiment, in information record sheet
As the mark of head, the position of the corresponding camera of every facial image, every facial image the candid photograph time.
Illustratively, setting in offline profile 2 includes 6 facial images, and wherein facial image a, facial image b are by imaging
Head CAMERA_A is captured, and facial image c, facial image d capture by camera CAMERA_B, facial image e, facial image f by
Camera CAMERA_C is captured, then the information record sheet of offline profile 2 is specifically as shown in table 2:
Table 2.
Facial image | Camera identification | The position of camera | The candid photograph time of facial image |
a | CAMERA_A | Xuhui District of Shanghai | 2018-10-21 10:07:21 |
b | CAMERA_A | Xuhui District of Shanghai | 2018-10-23 09:40:11 |
c | CAMERA_B | Pudong New Area, Shanghai | 2018-10-24 08:20:31 |
d | CAMERA_B | Pudong New Area, Shanghai | 2018-10-24 09:40:51 |
e | CAMERA_C | Hongkou district Shanghai | 2018-10-23 07:40:14 |
f | CAMERA_C | Hongkou district Shanghai | 2018-10-23 09:22:11 |
Step 205, exist in the offline profile for determining N priority and the second pre- filing matched offline profile of archives
When, the second pre- filing archives are included into matched offline profile.
Specifically, multiple screening strategies are determined according to spatial information and classification policy above-mentioned, according to screening strategy according to
The offline profile of each priority of archives is filed in secondary determination second in advance, wherein the corresponding spatial dimension of screening strategy is smaller, determines
Priority it is higher.When screening offline profile according to screening strategy, as long as there are a facial images and sieve in offline profile
Select strategy matching, then by the offline profile be determined as with the matched offline profile of screening strategy, later further according to each screening strategy
Priority, the offline profile of each priority of the first facial image will be determined as with the matched offline profile of each screening strategy.
Second pre- filing archives are compared, when this by the offline profile of every one priority of determination with the offline profile of the priority
When there is offline profile matched with the second pre- filing archives in the offline profile of priority, the second pre- filing archives are included into
The offline profile matched.
Illustratively, 100 facial images to be archived are divided into three classes by setting according to camera classification policy, first kind packet
50 facial images to be archived are included, corresponding camera identification is CAMERA_A, and the second class includes 20 facial images to be archived,
Corresponding camera identification is CAMERA_B, and third class includes 30 facial images to be archived, and corresponding camera identification is
CAMERA_C.Three first pre- filing archives are obtained after 50 facial images to be archived in the first kind are clustered, respectively
For the first pre- filing archives A, the first pre- filing archives B and first, filing archives C, these three first pre- filing archives are corresponding in advance
Camera identification be CAMERA_A.Two first are obtained after 20 facial images to be archived in second class are clustered in advance
File archives, filing archives E, the two first pre- filing archives are corresponding in advance by the respectively first pre- filing archives D and first
Camera identification is CAMERA_B.Two first are obtained after 30 facial images to be archived in third class are clustered to return in advance
Shelves archives, the respectively first pre- filing archives F and first filing archives G in advance, archives are corresponding takes the photograph for the two first pre- filings
As head is identified as CAMERA_C.Further, by the first pre- filing archives A to first, filing archives G is clustered in advance, and setting is poly-
It has been determined that four second are filed archives in advance after class, wherein the first pre- filing archives A, the first pre- archives D that files constitute second in advance
File archives L, the first pre- filing archives C, the first pre- filing archives E constitute the second pre- filing archives M, the first pre- filing archives
Filing archives F constitutes the second pre- filing archives N to B and first in advance, and the first pre- filing archives G is as the second pre- filing archives O.
According to spatial dimension sequence from small to large and classification policy, the following screening plan of the second pre- filing archives is determined
Slightly:
Screening strategy 1: the offline profile of the 1st priority is filtered out from facial image database according to " camera identification ".
Screening strategy 2: offline profile of all offline profiles as the 2nd priority in facial image database.
Further, for the second pre- filing archives L, the face for being CAMERA_A and CAMERA_B comprising camera identification
Image.It sets comprising camera identification as the facial image of CAMERA_A in offline profile 1 and offline profile 2, then according to sieve
The offline profile that choosing strategy 1 filters out the 1st priority from facial image database is offline profile 1 and offline profile 2, and setting is offline
Archives 2 and offline profile 3 include the facial image that camera identification is CAMERA_B, then can also be according to screening strategy 1 from people
The offline profile that the 1st priority is filtered out in face image library is offline profile 3.
Second pre- filing archives L is compared with offline profile 1, determines the second pre- filing archives L and offline profile 1
Second pre- filing archives L is included into offline profile 1 by timing.It can be to the out second pre- filing archives M to the based on same method
Two pre- filing archives O are filed, and details are not described herein again.
Since the life range of many people is relatively fixed, a people may often be captured by the camera of certain areas,
Therefore when filing to facial image to be archived, first classify according to the spatial information of facial image to be archived, it then will be each
Facial image to be archived in classification is clustered, and the multiple first pre- filing archives are generated, will multiple first file in advance archives into
Row cluster determines the second pre- filing archives;Therefore the facial image to be archived in the second pre- filing archives includes that similar image is special
Sign.Offline profile is filtered out from facial image database using the spatial information of the second pre- filing archives as prior information again later,
Then file after the second pre- filing archives being compared with the offline profile filtered out, the effect filed offline can be effectively improved
Rate.Further, when alert occurs, police can directly obtain suspicion according to the image of suspect from facial image database
The archives of people are doubted, and obtain useful information or information from the archives of suspect, improve the efficiency that police obtain information,
Human cost has been saved simultaneously.
Optionally, in above-mentioned steps S205, there is no file in advance with second in the offline profile for determining N priority
When the matched offline profile of archives, the offline profile of N+1 priority is obtained from facial image database;Determine N+1 priority
Offline profile in the presence or absence of with the second pre- filing matched offline profile of archives, until finding matched offline profile or each
The offline profile of priority is compared and is finished.
Illustratively, for the second pre- filing archives L, set according to camera identification as CAMERA_A and CAMERA_B from
The offline profile that the 1st priority is filtered out in facial image database is offline profile 1, offline profile 2 and offline profile 3, by second
Pre- filing archives L is compared with offline profile 1, offline profile 2 and offline profile 3 respectively, determine the second pre- filing archives L with
Offline profile 1, offline profile 2 and offline profile 3 mismatch, then using offline profile all in facial image database as the 2nd
The offline profile of priority.The offline profile of the 2nd priority is set as offline profile 1, offline profile 2, offline profile 3, offline
Archives 4.Second pre- filing archives L is compared with offline profile 4, second file in advance archives L with offline profile 1, from
Line archives 2 and offline profile 3 compare, therefore can no longer compare.When in offline profile 4 there are an offline profile with
When the second pre- filing archives L matching, the second pre- filing archives L is included into matched offline profile 4.
Further, after determining that the offline profile of each priority compares, there is no file archives in advance with second
When matched offline profile, a new offline profile is established for the second pre- filing archives.
Illustratively, it is said for the second pre- filing archives L when offline profile 4 and the second pre- filing archives L mismatch
There is no the matched offline profile of archives L is filed in advance with second in bright facial image database, then one is established in facial image database
Second pre- filing archives L is included into new offline profile by new offline profile.
Optionally, in above-mentioned steps S205, exist in the specific offline profile for determining N priority using following methods
File the matched offline profile of archives in advance with second:
It is pre- with second according to the class center of offline profile for any offline profile in the offline profile of N priority
The similarity for filing the class center of archives determines the similarity of offline profile with the second pre- filing archives.If offline profile and the
The similarity of two pre- filing archives is greater than or equal to first threshold, it is determined that exists and second in the offline profile of N priority
The pre- filing matched offline profile of archives.
Specifically, for the offline profile of different priorities, the first threshold of setting is not also identical, wherein priority is got over
Height, corresponding first threshold are smaller.Illustratively, the corresponding first threshold of the 1st priority is set as T0, and the 2nd priority is corresponding
First threshold be T1, then T0 < T1.
In a kind of possible embodiment, the class center of offline profile is one, such center is to scheme in offline profile
The highest facial image of image quality amount.The class center of second pre- filing archives is one, such center is in the second pre- filing archives
The highest facial image of picture quality.By the similarity at the class center of offline profile and the class center of the second pre- filing archives, really
The similarity being set between offline profile and the second pre- filing archives.
In specific implementation, in the similarity at the class center for determining offline profile and the class center of the second pre- filing archives,
The class center of the corresponding first eigenvector in class center and the second pre- filing archives that can determine offline profile first is corresponding
Second feature vector, then calculate the distance between first eigenvector and second feature vector, according to first eigenvector
The distance between second feature vector determines the similarity at the class center and the class center of the second pre- filing archives of offline profile.
In alternatively possible embodiment, the class center of offline profile is multiple, multiple class centers of offline profile
It can be determined according to the picture quality and characteristics of image of the facial image in offline profile.The class center of second pre- filing archives is
One, such center is the highest facial image of picture quality in the second pre- filing archives.Determine the class of the second pre- filing archives
The similarity at center and all kinds of centers of offline profile, then according to each of the class center of the second pre- filing archives and offline profile
The similarity at class center determines the similarity of offline profile with the second pre- filing archives.
In the similarity at multiple class centers at the class center and offline profile for determining the second pre- filing archives, can first divide
Not Que Ding the second pre- filing archives each class center of class center Yu offline profile similarity, it is then every according to offline profile
The weight at one class center melts the similarity at each class center of class center and offline profile of the second pre- filing archives
It closes, determines the similarity of offline profile with the second pre- filing archives, the weight at each class center of offline profile can be according to figure
Image quality amount is allocated, and can also be allocated according to characteristics of image.
In alternatively possible embodiment, the class center of the second pre- filing archives is multiple, the second pre- filing archives
Multiple class centers can be determined according to the picture quality and characteristics of image of facial image to be archived in the second pre- filing archives.From
The class center of line archives is one, such center is the highest facial image of picture quality in offline profile.Determine offline profile
Class center and all kinds of centers of the second pre- filing archives similarity, then returned in advance according to the class center of offline profile with second
The similarity at all kinds of centers of shelves archives determines the similarity of offline profile with the second pre- filing archives.
In the similarity at the class center for determining offline profile and all kinds of centers of the second pre- filing archives, can first distinguish
The similarity for determining the class center and second pre- filing each class center of archives of offline profile, then according to the second pre- filing shelves
The weight at each class center of case by the similarity at the class center of offline profile and second pre- filing each class center of archives into
Row fusion determines the similarity of offline profile with the second pre- filing archives, the weight at second pre- filing each class center of archives
It can be allocated, can also be allocated according to characteristics of image according to picture quality.
In alternatively possible embodiment, the class center of offline profile is multiple, multiple class centers of offline profile
It can be determined according to the picture quality and characteristics of image of the facial image in offline profile.The class center of second pre- filing archives is
Multiple, multiple class centers of the second pre- filing archives can be according to the image matter of facial image to be archived in the second pre- filing archives
Amount and characteristics of image determine.Determine the similarity at all kinds of centers and all kinds of centers of the second pre- filing archives of offline profile, so
Afterwards according to the similarity at all kinds of centers of offline profile and all kinds of centers of the second pre- filing archives, offline profile and second are determined
The similarity of pre- filing archives.
Archives are indicated since offline profile and the second pre- filing archives are all made of class center, therefore to the second pre- filing shelves
When case is filed offline, the class center of the second pre- filing archives need to be only compared with the class center of offline profile, be determined
File the matched offline profile of archives in advance with second, without filing every face figure in archives and offline profile in advance for second
As being compared, to improve offline filing efficiency.
Embodiment in order to preferably explain the present invention describes the embodiment of the present application below with reference to specific implement scene and provides
A kind of archiving method, this method can execute by filing apparatus, determine that classification policy is camera previously according to spatial information
Classification policy sets following screening strategy based on spatial information and classification policy:
Camera screening strategy: the offline profile of the 1st priority is filtered out from facial image database according to camera identification.
All screening strategies: offline profile of all offline profiles as the 2nd priority in facial image database.
Multiple facial images to be archived obtained for one day, filing apparatus execute following steps, as shown in Figure 3:
Step S301 classifies to multiple facial images to be archived based on camera classification policy.
Step S302 clusters the facial image to be archived in sorted each classification, and it is pre- to generate multiple first
File archives, the multiple first pre- filing archives are clustered, determines the second pre- filing archives.
Step S303, for each second pre- filing archives, according to the corresponding camera identification of the second pre- filing archives from
The offline profile of the 1st priority is filtered out in facial image database.
Second pre- filing archives are compared step S304 with the offline profile of the 1st priority.
Step S305 judges in the offline profile of the 1st priority with the presence or absence of matched offline with the second pre- filing archives
Archives, if so, S306 is thened follow the steps, it is no to then follow the steps S307.
Second pre- filing archives are included into matched offline profile by step S306.
Step S307, using offline profiles all in facial image database as the offline profile of the 2nd priority.
Second pre- filing archives are compared step S308 with the offline profile of the 2nd priority.
Step S309 judges in the offline profile of the 2nd priority with the presence or absence of matched offline with the second pre- filing archives
Archives, if so, S310 is thened follow the steps, it is no to then follow the steps S311.
Second pre- filing archives are included into matched offline profile by step S310.
Step S311 establishes a new offline profile for the second pre- filing archives.
In the embodiment of the present application, when being filed for multiple facial images to be archived obtained in preset period of time, first
Classify according to the spatial information of facial image to be archived, then clusters the facial image to be archived in each classification, it is raw
At the multiple first pre- filing archives;Multiple first pre- filing archives are clustered, determine the second pre- filing archives, therefore second is pre-
Filing the facial image to be archived in archives includes similar characteristics of image.Later again with the spatial information of the second pre- filing archives
As prior information, offline profile is filtered out from facial image database, then by the second pre- filing archives with filter out it is offline
Archives are filed after being compared, and can effectively improve the efficiency filed offline.
Based on the same technical idea, the embodiment of the invention provides a kind of filing apparatus, as shown in figure 4, the device 400
Include:
Module 401 is obtained, for obtaining multiple facial images to be archived and multiple described people to be archived in preset period of time
The spatial information of face image;
Categorization module 402, for the spatial information according to multiple facial images to be archived will described multiple to be to be archived
Facial image is classified;
Cluster module 403 generates multiple for clustering the facial image to be archived in sorted each classification
First pre- filing archives;The multiple first pre- filing archives are clustered, determine the second pre- filing archives;
Processing module 404, for being believed according to the space of the described second pre- filing archives for each second pre- filing archives
Breath, obtains the offline profile of N priority from facial image database;It include at least one offline shelves in the facial image database
Case, the archives that the offline profile is filed before being the preset period of time;Described second pre- filing archives are in preceding N-1 priority
Offline profile in do not find matched offline profile;N is greater than 1, and preceding N-1 priority is higher than N priority;
Profiling module 405, for existing in the offline profile for determining the N priority and the described second pre- filing shelves
When the matched offline profile of case, the described second pre- filing archives are included into the matched offline profile.
Optionally, the processing module 404 is also used to:
There is no file the matched offline shelves of archives in advance with described second in the offline profile for determining the N priority
When case, the offline profile of N+1 priority is obtained from the facial image database;
It determines in the offline profile of the N+1 priority with the presence or absence of matched offline with the described second pre- filing archives
Archives, the offline profile up to finding matched offline profile or each priority, which compares, to be finished.
Optionally, the profiling module 405 is also used to:
After determining that the offline profile of each priority compares, there is no matched with the described second pre- filing archives
When offline profile, a new offline profile is established for the described second pre- filing archives.
Optionally, the processing module 404 is specifically used for:
For any offline profile in the offline profile of the N priority, according to the class center of the offline profile
With the similarity at the class center of the described second pre- filing archives, the phase of the offline profile with the described second pre- filing archives is determined
Like degree;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to first threshold, it is determined that institute
It states in the offline profile of N priority and exists and the described second pre- filing matched offline profile of archives.
Based on the same technical idea, the embodiment of the present application provides a kind of archival device, as shown in figure 5, including at least
One processor 501, and the memory 502 connecting at least one processor do not limit processor in the embodiment of the present application
Specific connection medium between 501 and memory 502 is connected as in Fig. 5 by bus between processor 501 and memory 502
Example.Bus can be divided into address bus, data/address bus, control bus etc..
In the embodiment of the present application, memory 502 is stored with the instruction that can be executed by least one processor 501, at least
The instruction that one processor 501 is stored by executing memory 502, can execute step included in aforementioned archiving method.
Wherein, processor 501 is the control centre of archival device, can use various interfaces and connection archival device
Various pieces, by running or executing the instruction being stored in memory 502 and calling is stored in number in memory 502
According to realize filing.Optionally, processor 501 may include one or more processing units, and processor 501 can integrate application
Processor and modem processor, wherein the main processing operation system of application processor, user interface and application program etc.,
Modem processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into
In processor 501.In some embodiments, processor 501 and memory 502 can be realized on the same chip, in some realities
It applies in example, they can also be realized respectively on independent chip.
Processor 501 can be general processor, such as central processing unit (CPU), digital signal processor, dedicated integrated
Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other can
Perhaps transistor logic, discrete hardware components may be implemented or execute the application implementation for programmed logic device, discrete gate
Each method, step and logic diagram disclosed in example.General processor can be microprocessor or any conventional processor
Deng.The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware processor and execute completion, Huo Zheyong
Hardware and software module combination in processor execute completion.
Memory 502 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module.Memory 502 may include the storage medium of at least one type,
It such as may include flash memory, hard disk, multimedia card, card-type memory, random access storage device (Random Access
Memory, RAM), static random-access memory (Static Random Access Memory, SRAM), may be programmed read-only deposit
Reservoir (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), band
Electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory,
EEPROM), magnetic storage, disk, CD etc..Memory 502 can be used for carrying or storing have instruction or data
The desired program code of structure type and can by any other medium of computer access, but not limited to this.The application is real
Applying the memory 502 in example can also be circuit or other devices that arbitrarily can be realized store function, for storing program
Instruction and/or data.
Based on the same inventive concept, the embodiment of the present application provides a kind of computer-readable medium, and being stored with can be by returning
The computer program that shelves equipment executes, when described program is run in archival device, so that the archival device executes filing
The step of method.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention
Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of archiving method characterized by comprising
Obtain the spatial information of multiple facial images to be archived and multiple facial images to be archived in preset period of time;
Multiple described facial images to be archived are classified according to the spatial information of multiple facial images to be archived;
Facial image to be archived in sorted each classification is clustered, the multiple first pre- filing archives are generated, by institute
It states the multiple first pre- filing archives to be clustered, determines the second pre- filing archives;
It is obtained from facial image database for each second pre- filing archives according to the spatial information of the described second pre- filing archives
Take the offline profile of N priority;It include at least one offline profile in the facial image database, the offline profile is described
The archives filed before preset period of time;Described second pre- filing archives are not found in the offline profile of preceding N-1 priority
The offline profile matched;N is greater than 1, and preceding N-1 priority is higher than N priority;
When there is offline profile matched with the described second pre- filing archives in the offline profile for determining the N priority,
Described second pre- filing archives are included into the matched offline profile.
2. the method as described in claim 1, which is characterized in that further include:
There is no file the matched offline profile of archives in advance with described second in the offline profile for determining the N priority
When, the offline profile of N+1 priority is obtained from the facial image database;
It determines in the offline profile of the N+1 priority and files the matched offline shelves of archives in advance with the presence or absence of with described second
Case, the offline profile up to finding matched offline profile or each priority, which compares, to be finished.
3. method according to claim 2, which is characterized in that further include:
After determining that the offline profile of each priority compares, there is no matched offline with the described second pre- filing archives
When archives, a new offline profile is established for the described second pre- filing archives.
4. the method as described in claims 1 to 3 is any, which is characterized in that the offline profile of the determination N priority
It is middle to exist and the described second pre- filing matched offline profile of archives, comprising:
For any offline profile in the offline profile of the N priority, according to the class center of the offline profile and institute
The similarity for stating the class center of the second pre- filing archives determines that the offline profile is similar to the described second pre- filing archives
Degree;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to first threshold, it is determined that described the
Exist in the offline profile of N priority and the described second pre- filing matched offline profile of archives.
5. a kind of filing apparatus characterized by comprising
Module is obtained, for obtaining multiple facial images to be archived in preset period of time and multiple facial images to be archived
Spatial information;
Categorization module, will multiple described facial images to be archived for the spatial information according to multiple facial images to be archived
Classify;
It is pre- to generate multiple first for clustering the facial image to be archived in sorted each classification for cluster module
File archives;The multiple first pre- filing archives are clustered, determine the second pre- filing archives;
Processing module, for filing archives in advance for each second, according to the spatial information of the described second pre- filing archives, from people
The offline profile of N priority is obtained in face image library;In the facial image database include at least one offline profile, it is described from
The archives that line archives are filed before being the preset period of time;Offline shelves of the described second pre- filing archives in preceding N-1 priority
Matched offline profile is not found in case;N is greater than 1, and preceding N-1 priority is higher than N priority;
Profiling module is matched for existing in the offline profile for determining the N priority with the described second pre- filing archives
Offline profile when, the described second pre- filing archives are included into the matched offline profile.
6. device as claimed in claim 5, which is characterized in that the processing module is also used to:
There is no file the matched offline profile of archives in advance with described second in the offline profile for determining the N priority
When, the offline profile of N+1 priority is obtained from the facial image database;
It determines in the offline profile of the N+1 priority and files the matched offline shelves of archives in advance with the presence or absence of with described second
Case, the offline profile up to finding matched offline profile or each priority, which compares, to be finished.
7. device as claimed in claim 6, which is characterized in that the profiling module is also used to:
After determining that the offline profile of each priority compares, there is no matched offline with the described second pre- filing archives
When archives, a new offline profile is established for the described second pre- filing archives.
8. the device as described in claim 5 to 7 is any, which is characterized in that the processing module is specifically used for:
For any offline profile in the offline profile of the N priority, according to the class center of the offline profile and institute
The similarity for stating the class center of the second pre- filing archives determines that the offline profile is similar to the described second pre- filing archives
Degree;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to first threshold, it is determined that described the
Exist in the offline profile of N priority and the described second pre- filing matched offline profile of archives.
9. a kind of archival device, which is characterized in that including at least one processing unit and at least one storage unit, wherein
The storage unit is stored with computer program, when described program is executed by the processing unit, so that the processing unit
Perform claim requires the step of 1~4 any claim the method.
10. a kind of computer-readable medium, which is characterized in that it is stored with the computer program that can be executed by archival device, when
Described program in archival device when running, so that the archival device perform claim requires the step of 1~4 any the method
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624021.5A CN109783664A (en) | 2018-12-28 | 2018-12-28 | A kind of archiving method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624021.5A CN109783664A (en) | 2018-12-28 | 2018-12-28 | A kind of archiving method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783664A true CN109783664A (en) | 2019-05-21 |
Family
ID=66497974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811624021.5A Withdrawn CN109783664A (en) | 2018-12-28 | 2018-12-28 | A kind of archiving method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783664A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955794A (en) * | 2019-10-12 | 2020-04-03 | 北京地平线机器人技术研发有限公司 | Method and device for searching associated object and electronic equipment |
CN112199555A (en) * | 2020-10-21 | 2021-01-08 | 重庆紫光华山智安科技有限公司 | Personnel gathering method and device and electronic equipment |
CN113127712A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Archiving method and device |
-
2018
- 2018-12-28 CN CN201811624021.5A patent/CN109783664A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955794A (en) * | 2019-10-12 | 2020-04-03 | 北京地平线机器人技术研发有限公司 | Method and device for searching associated object and electronic equipment |
CN113127712A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Archiving method and device |
CN112199555A (en) * | 2020-10-21 | 2021-01-08 | 重庆紫光华山智安科技有限公司 | Personnel gathering method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109800674A (en) | A kind of archiving method and device | |
CN109740004A (en) | A kind of archiving method and device | |
CN109815829A (en) | A kind of method and device of determining passerby track | |
CN110807385B (en) | Target detection method, target detection device, electronic equipment and storage medium | |
CN109783685A (en) | A kind of querying method and device | |
CN109740003A (en) | A kind of archiving method and device | |
CN109784217A (en) | A kind of monitoring method and device | |
CN109710780A (en) | A kind of archiving method and device | |
CN109783664A (en) | A kind of archiving method and device | |
CN109815370A (en) | A kind of archiving method and device | |
JP2022518469A (en) | Information processing methods and devices, storage media | |
CN109800668A (en) | A kind of archiving method and device | |
CN109800318A (en) | A kind of archiving method and device | |
CN109800329B (en) | Monitoring method and device | |
CN109800664A (en) | A kind of method and device of determining passerby track | |
JP2022518459A (en) | Information processing methods and devices, storage media | |
CN109784220A (en) | A kind of method and device of determining passerby track | |
CN109857891A (en) | A kind of querying method and device | |
CN109783672A (en) | A kind of archiving method and device | |
CN109800673A (en) | A kind of archiving method and device | |
CN109800669A (en) | A kind of archiving method and device | |
CN109800322A (en) | A kind of monitoring method and device | |
CN109783663A (en) | A kind of archiving method and device | |
CN112818149A (en) | Face clustering method and device based on space-time trajectory data and storage medium | |
CN109558861A (en) | A kind of method and device of determining passerby track |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190521 |