CN109800674A - A kind of archiving method and device - Google Patents

A kind of archiving method and device Download PDF

Info

Publication number
CN109800674A
CN109800674A CN201811626770.1A CN201811626770A CN109800674A CN 109800674 A CN109800674 A CN 109800674A CN 201811626770 A CN201811626770 A CN 201811626770A CN 109800674 A CN109800674 A CN 109800674A
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
Application number
CN201811626770.1A
Other languages
Chinese (zh)
Inventor
俞梦洁
梁晓涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Yi Tu Network Technology Co Ltd
Shanghai Is According To Figure Network Technology Co Ltd
Shanghai Yitu Network Science and Technology Co Ltd
Original Assignee
Fujian Yi Tu Network Technology Co Ltd
Shanghai Is According To Figure Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Yi Tu Network Technology Co Ltd, Shanghai Is According To Figure Network Technology Co Ltd filed Critical Fujian Yi Tu Network Technology Co Ltd
Priority to CN201811626770.1A priority Critical patent/CN109800674A/en
Publication of CN109800674A publication Critical patent/CN109800674A/en
Withdrawn legal-status Critical Current

Links

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 space time 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 space time information of multiple facial images to be archived, then the facial image to be archived in each classification is clustered, it generates multiple first and files archives in advance, the multiple first pre- filing archives are subjected to the pre- filing archives of cluster determining second.Later again for each second pre- filing archives, according to the space time 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

A kind of archiving method and device
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:
The space time information of multiple facial images to be archived and multiple facial images to be archived in preset period of time is obtained, The space time information includes temporal information and spatial information;
Multiple described facial images to be archived are classified according to the space time 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 space time 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 space time information of picture, the space time information include temporal information and spatial information;
Categorization module, will multiple described faces to be archived for the space time 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 cluster the multiple first pre- filing archives, determine the second pre- filing archives;
Processing module is used to file the space time 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 space time 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, the 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 space time 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.
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-time 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.Space time information includes temporal information and spatial information, each to Filing facial image carries spatial information and temporal information, wherein spatial information is the monitoring for capturing facial image to be archived The mark of equipment and position.Temporal information is the time that monitoring device captures 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 space time information of multiple facial images to be archived.
Specifically, classification policy can be set previously according to space time information, specifically: one day is divided according to granule size For discrete time zone, for example with 1 hour 24 time zones were divided by one day for 1 time zone, with 4 hours for 1 A time zone was divided into 6 time zones for one day, by one day as time zone etc..It is divided according to granule size empty Between region, for example a camera identification, as an area of space, a sub-regions (such as Pudong New District) are used as a sky Between region, city-level region (such as Shanghai City) is used as an area of space, provincial region (such as Hunan Province) conduct One area of space etc..Time zone and area of space, which are combined, can determine classification policy, for example, according to the same time Region and same camera identification classify to multiple facial images to be archived, wherein each time zone is 1 hour.Than Such as, classify according to same time zone and same subregion to multiple facial images to be archived, wherein each time zone It is 4 hours.For example, classifying according to same time zone and same city-level region to multiple facial images to be archived, wherein Each time zone is 1 day.
It is exemplified below, setting obtains 100 facial images to be archived and the space-time of this 100 facial images to be archived Information, wherein space time information includes temporal information and spatial information, and spatial information is the corresponding camera of facial image to be archived Mark and camera position, temporal information be to capture the time of facial image to be archived.Classification policy are as follows: according to the same time Region and same subregion classify to multiple facial images to be archived, wherein each time zone is 4 hours, according to this Classification policy classifies this 100 facial images to be archived.In this 100 facial images to be archived, by meta position when capturing In same time zone, and the identical facial image to be archived of camera identification is divided into one kind.
It should be noted that above-mentioned be only illustrated, it according to the actual situation can be using other classification policies Classify to multiple facial images to be archived, details are not described herein again.
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 classification policy will acquire, first kind packet 50 facial images to be archived are included, the second class includes 20 facial images to be archived, and third class includes 30 face figures to be archived Picture.50 facial images to be archived in the first kind are clustered first, similar facial image to be archived is gathered for one kind. Assuming that 50 facial images to be archived in the first kind are polymerized to 3 subclasses after end of clustering, wherein including 20 in the first subclass Facial image to be archived includes 20 facial images to be archived in second subclass, includes 10 faces to be archived in third subclass Image then establishes one first pre- filing archives for 20 facial images to be archived in the first subclass, for the second subclass 20 facial images to be archived establish one first pre- filing archives, built for 10 facial images to be archived of third subclass Vertical one first pre- filing archives.Then using same method to 20 facial images to be archived and third in the second class 30 facial images to be archived in class are clustered and establish the corresponding first pre- filing archives.Further, by the first kind The pre- filing archives of multiple first 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 space time 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 space time 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.
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 the matched offline profile.
Optionally, multiple screening strategies are determined according to space time information and classification policy above-mentioned, due to using plan of classifying After slightly classifying, the space time information of the pre- filing archives of second determined is related to classification policy, it is subsequent to second file in advance archives into When row filing, screening strategy is corresponding with classification policy.The each of the second pre- filing archives is successively determined further in accordance with screening strategy later The offline profile of priority, wherein the corresponding space-time unique of screening strategy is smaller, and determining priority is higher.According to screening When Policy Filtering offline profile, matched as long as there are a facial images in offline profile with screening strategy, by the offline shelves Case is determined as will be with each screening strategy later further according to the priority of each screening strategy with the matched offline profile of screening strategy Matched offline profile is determined as the offline profile of each priority of the first facial image.The offline shelves of one priority of every determination Second pre- filing archives are compared by case with the offline profile of the priority, when in the offline profile of the priority in the presence of with When the matched offline profile of the second pre- filing archives, the second pre- filing archives are included into matched offline profile.
Illustratively, classification policy is set are as follows: according to same time zone and same subregion to multiple faces to be archived Image is classified, wherein each time zone is 4 hours.100 facial images to be archived are divided into according to the classification policy Three classes, the first kind include 50 facial images to be archived, and the second class includes 20 facial images to be archived, and third class includes 30 Facial image to be archived.Three first pre- filing shelves are obtained after 50 facial images to be archived in the first kind are clustered Case, the respectively first pre- filing archives A, the first pre- pre- filing archives C of filing archives B and first.By 20 in the second class Facial image to be archived obtains two first pre- filing archives, the respectively first pre- filing archives D and first after being clustered Pre- filing archives E.Two first pre- filing archives are obtained after 30 facial images to be archived in third class are clustered, point It Wei not the first pre- pre- filing archives G of filing archives F and first.Further, the first pre- filing archives A to first is filed in advance Archives G is clustered, and setting has determined four second pre- filing archives after clustering, wherein the first pre- filing archives A, first are in advance Filing archives D constitutes the second pre- filing archives L, and the first pre- filing archives C, the first pre- filing archives E constitute second and return in advance Filing archives F constitutes the second pre- filing archives N, the first pre- filing archives G in advance by shelves archives M, the first pre- filing archives B and first As the second pre- filing archives O.
According to space-time unique sequence from small to large and above-mentioned classification policy, the following sieve of the second pre- filing archives is determined Choosing strategy:
Screening strategy 1: according to second, the corresponding time zone of filing archives and subregion are screened from facial image database in advance The offline profile of 1st priority out, each time zone are 4 hours.
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, second files the corresponding time zone of archives L and subregion packet in advance Include the corresponding time zone of the first pre- filing archives A and subregion and the corresponding time zone of the first pre- filing archives D and son Region.When filtering out the offline profile of the 1st priority from facial image database according to screening strategy 1, first according to the first pre- filing The corresponding time zone of archives A and subregion filter out the offline profile of the 1st priority from facial image database, obtain offline shelves Case 1.According to first, the corresponding time zone of filing archives D and subregion filter out the 1st priority from facial image database in advance Offline profile obtains offline profile 2, and the second pre- filing archives L is compared with offline profile 1, determines the second pre- filing shelves When case L is matched with offline profile 1, the second pre- filing archives L is included into offline profile 1.It can be to out based on same method Filing archives O is filed two pre- filing archives M to second in advance, and details are not described herein again.
Since the life range of many people and living habit are relatively fixed, a people may often go out at some time point Some present region, therefore when filing to facial image to be archived, first according to the space time information of facial image to be archived point Then class clusters the facial image to be archived in each classification, the multiple first pre- filing archives are generated, by multiple first Pre- filing archives are clustered, and determine the second pre- filing archives, therefore the facial image to be archived in the second pre- filing archives includes Similar characteristics of image.It is sieved from facial image database using the space time information of the second pre- filing archives as prior information again later Offline profile is selected, files after being then compared the second pre- filing archives with the offline profile filtered out, can effectively improve The efficiency filed offline.Further, when alert occurs, police can be directly according to the image of suspect from face figure Archives as obtaining suspect in library, and useful information or information are obtained from the archives of suspect, it improves police and obtains The efficiency of information is taken, while having saved human cost.
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, setting filters out the 1st according to screening strategy 1 from facial image database The offline profile of priority is offline profile 1 and offline profile 2, respectively with offline profile 1 and offline by the second pre- filing archives L Archives 2 are compared, and determine that the second pre- filing archives L is mismatched with offline profile 1 and offline profile 2, then by facial image Offline profile of all offline profiles as the 2nd priority in library.Set the offline profile of the 2nd priority as offline profile 1, Offline profile 2, offline profile 3, offline profile 4.Second pre- filing archives L is carried out with offline profile 3 and offline profile 4 respectively Compare, the second pre- filing archives L is compared with offline profile 1 and offline profile 2, therefore can no longer be compared.When When being matched there are an offline profile with the second pre- filing archives L in offline profile 3 and offline profile 4, by the second pre- filing shelves Case L is included into matched offline profile.
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, for the second pre- filing archives L, when there is no return in advance with second in offline profile 3 and offline profile 4 When the matched offline profile of shelves archives L, illustrate to be not present in facial image database and the second pre- filing matched offline shelves of archives L Case then establishes a new offline profile in facial image database, and the second pre- filing archives L is included into new offline profile.
Optionally, in above-mentioned steps S205, exist in the specific offline profile for determining N priority using following methods With the one the second pre- filing matched offline profiles of archives:
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 according to same previously according to space time information One time zone and same camera identification classify to multiple facial images to be archived, wherein each time zone is 4 small When, following screening strategy is set based on space time information and classification policy:
Screening strategy 1: according to the second pre- corresponding time zone of archives and camera identification filed from facial image database The offline profile of the 1st priority is filtered out, each time zone is 4 hours.
Screening strategy 2: 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 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 filters out the 1st based on screening strategy 1 for each second pre- filing archives from facial image database The offline profile of priority.
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 space time 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, the 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 space time 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 space time information of face image, the space time information include temporal information and spatial information;
Categorization module 402, for the space time 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 cluster the multiple first pre- filing archives, determine the second pre- filing archives;
Processing module 404, for being believed according to the space-time 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
The space time information of multiple facial images to be archived and multiple facial images to be archived in preset period of time is obtained, it is described Space time information includes temporal information and spatial information;
Multiple described facial images to be archived are classified according to the space time 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 space time 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 Space time information, the space time information include temporal information and spatial information;
Categorization module, will multiple described facial images to be archived for the space time 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, determines the second pre- filing archives;
Processing module, for filing archives in advance for each second, according to the space time 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.
CN201811626770.1A 2018-12-28 2018-12-28 A kind of archiving method and device Withdrawn CN109800674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811626770.1A CN109800674A (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
CN201811626770.1A CN109800674A (en) 2018-12-28 2018-12-28 A kind of archiving method and device

Publications (1)

Publication Number Publication Date
CN109800674A true CN109800674A (en) 2019-05-24

Family

ID=66558099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811626770.1A Withdrawn CN109800674A (en) 2018-12-28 2018-12-28 A kind of archiving method and device

Country Status (1)

Country Link
CN (1) CN109800674A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487221A (en) * 2020-11-04 2021-03-12 北京澎思科技有限公司 Image filing method and device, electronic device and storage medium
CN112749652A (en) * 2020-12-31 2021-05-04 浙江大华技术股份有限公司 Identity information determination method and device, storage medium and electronic equipment
CN112818149A (en) * 2021-01-21 2021-05-18 浙江大华技术股份有限公司 Face clustering method and device based on space-time trajectory data and storage medium
CN112989887A (en) * 2019-12-16 2021-06-18 深圳云天励飞技术有限公司 File merging method and device and electronic equipment
CN113111206A (en) * 2021-04-19 2021-07-13 浙江商汤科技开发有限公司 Image searching method and device, electronic equipment and storage medium
CN113408557A (en) * 2020-03-17 2021-09-17 深圳云天励飞技术有限公司 File merging method and device and electronic equipment
WO2022111178A1 (en) * 2020-11-24 2022-06-02 Zhejiang Dahua Technology Co., Ltd. Clustering and archiving method, apparatus, device and computer storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989887A (en) * 2019-12-16 2021-06-18 深圳云天励飞技术有限公司 File merging method and device and electronic equipment
CN113408557A (en) * 2020-03-17 2021-09-17 深圳云天励飞技术有限公司 File merging method and device and electronic equipment
CN113408557B (en) * 2020-03-17 2023-10-13 深圳云天励飞技术有限公司 File merging method and device and electronic equipment
CN112487221A (en) * 2020-11-04 2021-03-12 北京澎思科技有限公司 Image filing method and device, electronic device and storage medium
WO2022111178A1 (en) * 2020-11-24 2022-06-02 Zhejiang Dahua Technology Co., Ltd. Clustering and archiving method, apparatus, device and computer storage medium
CN112749652A (en) * 2020-12-31 2021-05-04 浙江大华技术股份有限公司 Identity information determination method and device, storage medium and electronic equipment
CN112749652B (en) * 2020-12-31 2024-02-20 浙江大华技术股份有限公司 Identity information determining method and device, storage medium and electronic equipment
CN112818149A (en) * 2021-01-21 2021-05-18 浙江大华技术股份有限公司 Face clustering method and device based on space-time trajectory data and storage medium
CN113111206A (en) * 2021-04-19 2021-07-13 浙江商汤科技开发有限公司 Image searching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109800674A (en) A kind of archiving method and device
CN110807385B (en) Target detection method, target detection device, electronic equipment and storage medium
CN110516586B (en) Face image clustering method, system, product and medium
CN109815829A (en) A kind of method and device of determining passerby track
CN109740003A (en) A kind of archiving method and device
CN109784217A (en) A kind of monitoring method and device
CN110750670B (en) Stranger monitoring method, device and system and storage medium
CN109710780A (en) A kind of archiving method and device
CN109783664A (en) A kind of archiving method and device
CN109800329B (en) Monitoring method and device
CN109800668A (en) A kind of archiving method and device
CN110705477A (en) Behavior analysis method and apparatus, electronic device, and computer storage medium
CN109800318A (en) A kind of archiving method and device
CN109800664B (en) Method and device for determining passersby track
CN109800669A (en) A kind of archiving method and device
CN109800322A (en) A kind of monitoring method and device
CN109783672A (en) A kind of archiving method and device
CN110334231A (en) A kind of information processing method and device, storage medium
CN109800673A (en) A kind of archiving method and device
CN112818149A (en) Face clustering method and device based on space-time trajectory data and storage medium
CN105279496A (en) Human face recognition method and apparatus
CN109783663A (en) A kind of archiving method and device
CN109800675A (en) A kind of method and device of the identification image of determining face object
CN109784220B (en) Method and device for determining passerby track
CN109784218A (en) A kind of archiving method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190524

WW01 Invention patent application withdrawn after publication