CN109740004A - A kind of archiving method and device - Google Patents
A kind of archiving method and device Download PDFInfo
- Publication number
- CN109740004A CN109740004A CN201811624049.9A CN201811624049A CN109740004A CN 109740004 A CN109740004 A CN 109740004A CN 201811624049 A CN201811624049 A CN 201811624049A CN 109740004 A CN109740004 A CN 109740004A
- Authority
- CN
- China
- Prior art keywords
- archives
- colleague
- filing
- similarity
- offline profile
- 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.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Image Analysis (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (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: when being filed for multiple facial images to be archived obtained in preset period of time, first facial image to be archived is clustered, it generates first and files archives in advance, colleague's archives in the first pre- filing archives are then determined according to the spatial information of facial image to be archived in the first pre- filing.Since colleague's archives are probably the archives of the same person, therefore first colleague's archives are compared, colleague's archives that the second similarity between archives of going together is greater than second threshold are merged, it generates second and files archives in advance, file after being later again compared the second pre- filing archives with the offline profile in facial image database, the efficiency filed offline can be effectively improved.
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:
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 clustered, first is generated and files archives in advance, wherein any first returns in advance
Similarity in any facial image and other first pre- filing archives in shelves archives between any facial image is less than
First threshold;
The each first pre- filing archives are determined according to the space time information of the facial image to be archived in each first pre- filing archives
In colleague's archives;
When determining that the second similarity between colleague's archives is greater than second threshold, merge colleague's archives, it is raw
At the second pre- filing archives;
For any one the second pre- filing archives, exist in determining the facial image database and the described second pre- filing
When the matched offline profile of archives, the described second pre- filing archives are included into the matched offline profile, the facial image
It include at least one offline profile, the archives that the offline profile is filed before being the preset period of time in library.
Optionally, the space time information according to the facial image to be archived in each first pre- filing archives determines each first
Colleague's archives in pre- filing archives, comprising:
File archives in advance for any two first, according to the face figures to be archived in the described two first pre- filing archives
The space time information of picture determines colleague's number of the described two first pre- filing archives;
It is pre- by described two first when determining that colleague's number of the described two first pre- filing archives is greater than third threshold value
Filing archives are determined as archives of going together.
Optionally, described when determining that the second similarity between colleague's archives is greater than second threshold, described in merging
Colleague's archives generate second and file archives in advance, comprising:
For first colleague's archives in multiple colleague's archives, the first colleague archives are in the multiple colleague's archives
Any colleague's archives, according to it is described first colleague archives class center with second go together archives class center similarity, really
The second similarity that fixed first colleague's archives go together archives with described second, the second colleague archives are the multiple same
Any colleague's archives in row archives in addition to the first colleague archives;
If the second similarity that first colleague's archives go together archives with described second is greater than second threshold, merge institute
It states first colleague's archives to go together archives with described second, generates the second filing archives in advance.
Optionally, exist in the offline profile in the determination facial image database and the described second pre- filing archives
The offline profile matched, comprising:
For any offline profile, according to the class center at the class center of the offline profile and the described second pre- filing archives
Third similarity, determine the similarity of the offline profile with the described second pre- filing archives;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to the 4th threshold value, it is determined that institute
It states in the offline profile in facial image database and exists and the described second pre- filing matched offline profile of archives.
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;
Cluster module, for clustering to multiple described facial images to be archived, archives are filed in generation first in advance,
In, in any facial image and other first pre- filing archives in any first pre- filing archives any facial image it
Between similarity be less than first threshold;
Analysis module, for determining each the according to the space time information of the facial image to be archived in each first pre- filing archives
Colleague's archives in one pre- filing archives;
Merging module, for merging institute when determining that the second similarity between colleague's archives is greater than second threshold
Colleague's archives are stated, second is generated and files archives in advance;
Profiling module, for for any one second pre- filing archives, exist in determining the facial image database with
When the matched offline profile of the described second pre- filing archives, the described second pre- filing archives are included into the matched offline shelves
Case includes at least one offline profile in the facial image database, what the offline profile was filed before being the preset period of time
Archives.
Optionally, the analysis module is specifically used for:
File archives in advance for any two first, according to the face figures to be archived in the described two first pre- filing archives
The space time information of picture determines colleague's number of the described two first pre- filing archives;
It is pre- by described two first when determining that colleague's number of the described two first pre- filing archives is greater than third threshold value
Filing archives are determined as archives of going together.
Optionally, the merging module is specifically used for:
For first colleague's archives in multiple colleague's archives, the first colleague archives are in the multiple colleague's archives
Any colleague's archives, according to it is described first colleague archives class center with second go together archives class center similarity, really
The second similarity that fixed first colleague's archives go together archives with described second, the second colleague archives are the multiple same
Any colleague's archives in row archives in addition to the first colleague archives;
If the second similarity that first colleague's archives go together archives with described second is greater than second threshold, merge institute
It states first colleague's archives to go together archives with described second, generates the second filing archives in advance.
Optionally, the profiling module is specifically used for:
For any offline profile, according to the class center at the class center of the offline profile and the described second pre- filing archives
Third similarity, determine the similarity of the offline profile with the described second pre- filing archives;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to the 4th threshold value, it is determined that institute
It states in the offline profile in facial image database 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
Facial image to be archived is clustered, first is generated and files archives in advance, then according to face figure to be archived in the first pre- filing
The spatial information of picture determines colleague's archives in the first pre- filing archives.Since colleague's archives are probably the shelves of the same person
Case, thus first will colleague archives be compared, by go together archives between the second similarity be greater than second threshold colleague's archives into
Row merges, and generates second and files archives in advance, later again carries out the offline profile in the second pre- filing archives and facial image database
After file, the efficiency filed offline can be effectively improved.
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 structural schematic diagram of filing apparatus of the embodiment of the present application;
Fig. 4 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 clustered, generates first and files archives in advance.
Wherein, any first files in any facial image and other first pre- filing archives in archives any in advance
Similarity between facial image is less than first threshold.
Specifically, for multiple facial images to be archived, using clustering algorithm by the facial image to be archived in the category
It is clustered, clustering algorithm includes but is not limited to K-Means (K mean value) clustering algorithm, mean shift clustering algorithm, based on density
Clustering algorithm.
Illustratively, 100 facial images to be archived are divided into three classes by setting using K-Means clustering algorithm, 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 then establishes one first pre- filing archives for 50 facial images to be archived in the first kind, for the 20 of the second class
It opens facial image to be archived and establishes one first pre- filing archives, establish one for 30 facial images to be archived of third class
First pre- filing archives.
Step 203, determine that each first is pre- according to the space time information of the facial image to be archived in each first pre- filing archives
File colleague's archives in archives.
Optionally, file archives in advance for any two first in each first pre- filing archives, returned in advance according to two first
The space time information of facial image to be archived in shelves archives determines colleague's number of two first pre- filing archives.Determining two
When colleague's number of a first pre- filing archives is greater than third threshold value, two first pre- filing archives are determined as archives of going together.
In specific implementation, primary colleague refers to that two facial images to be archived are captured by a camera, and the time of candid photograph
It is spaced in preset duration.For example, setting preset duration as 5 seconds, the first pre- filing archives A includes facial image a to be archived, is grabbed
The CAMERA_A that is identified as of the camera of facial image a to be archived is clapped, the candid photograph time is 2018-10-20 10:07:21.First
Pre- filing archives B includes facial image b to be archived, and that captures the camera of facial image b to be archived is identified as CAMERA_A, grabs
The bat time is 2018-10-2010:07:22, due to capturing the camera of facial image a and facial image b to be archived to be archived
Mark is CAMERA_A, and the time interval captured is being 1 second, then can determine that the first pre- filing archives A returns in advance with first
There is primary colleague in shelves archives B.It can be by every face figure to be archived in the first default archives A using above-mentioned same method
As being compared with every facial image to be archived in the first default archives B, determine that the first pre- filing archives A returns in advance with first
Colleague's number of shelves archives B.
Third threshold value can be preset, for example be set as 3, when the first pre- filing archives A and first files archives B's in advance
When colleague's number of colleague's number is greater than 3, the first pre- pre- number of going together for filing archives B of filing archives A and first is determined as
Colleague's archives.
Step 204, when determining that the second similarity between colleague's archives is greater than second threshold, merge colleague's archives, it is raw
At the second pre- filing archives.
Specifically, when one first only one colleague's archives of pre- filing archives, by the first pre- filing archives and same
Row archives are compared, and when similarity is greater than second threshold, the first pre- filing archives are closed with corresponding archives of going together
And it generates second and files archives in advance.
Illustratively, colleague's archives of the first pre- filing archives A are set as the first pre- filing archives B, when the first pre- filing
When the second similarity that archives A and first files archives B in advance is greater than second threshold, the first pre- filing archives A is returned in advance with first
Shelves archives B merges, and generates second and files archives in advance.
When one first pre- filing archives include multiple colleague's archives, then by the first pre- filing archives respectively at multiple
Colleague's archives are compared, and the first pre- filing archives are closed with archives of going together of second similarity greater than second threshold are met
And it generates second and files archives in advance.
Illustratively, colleague's archives of the first pre- filing archives A are set as the first pre- pre- filing shelves of filing archives B and first
First pre- filing archives A is compared with the first pre- filing archives B, the first pre- filing archives A and first is filed in advance by case C
Archives C is compared.When the second similarity that the first pre- filing archives A and first files archives B in advance is greater than second threshold, and
When the second similarity of first pre- filing archives A and first filing archives C in advance is greater than second threshold, first is filed in advance archives A,
Filing archives C merges in advance for first pre- filing archives B, first, generates second and files archives in advance.
Step 205, for any one the second pre- filing archives, exist in determining facial image database and the second pre- filing
When the matched offline profile of archives, the second pre- filing archives are included into matched offline profile.
It include at least one offline profile, the archives that offline profile is filed before being preset period of time in facial image database.
When being filed for multiple facial images to be archived obtained in preset period of time, first by facial image to be archived
It is clustered, generates first and file archives in advance, then determined according to the spatial information of facial image to be archived in the first pre- filing
Colleague's archives in first pre- filing archives.Since colleague's archives are probably the archives of the same person, therefore the shelves that will first go together
Case is compared, and colleague's archives that the second similarity between archives of going together is greater than second threshold are merged, generate second
Pre- filing archives are filed after being later again compared the second pre- filing archives with the offline profile in facial image database, can be had
Effect improves the efficiency filed offline.Further, when alert occurs, police can directly according to the image of suspect from
The archives of suspect are obtained in facial image database, and obtain useful information or information from the archives of suspect, improve police service
Personnel obtain the efficiency of information, while having saved human cost.
Optionally, in above-mentioned steps S204, for first colleague's archives in multiple colleague's archives, first colleague's archives
For any colleague's archives in multiple colleague's archives, the class center that archives are gone together with second according to the class center of first colleague's archives
Similarity, determine first colleague's archives and second go together archives the second similarity, second colleague's archives are multiple colleague's shelves
Any colleague's archives in case in addition to first colleague's archives;If first colleague's archives and second go together archives the second similarity
Greater than second threshold, then merges first colleague's archives and go together archives with second, generate second and files archives in advance.
The class center of the offline profile of first colleague's archives can be one, such center is image in first colleague's archives
The highest facial image to be archived of quality.First colleague archives offline profile class center may be it is multiple, in multiple classes
The heart can be determined according to the picture quality and characteristics of image of the facial image to be archived in first colleague's archives.
Likewise, the class center of the offline profile of second colleague's archives can be one, such center is second colleague's shelves
The highest facial image to be archived of picture quality in case.Second colleague archives offline profile class center may be it is multiple,
Multiple class centers can be determined according to the picture quality and characteristics of image of the facial image to be archived in second colleague's archives.
Optionally, it in above-mentioned steps S205, is specifically determined in the offline profile in facial image database using following methods
File the matched offline profile of archives in advance in the presence of with second:
For any offline profile, according to the third phase at the class center of offline profile and the class center of the second pre- filing archives
Like degree, the similarity of offline profile with the second pre- filing archives is determined;
If offline profile and the similarity of the second pre- filing archives are greater than or equal to the 4th threshold value, it is determined that facial image database
In offline profile in exist and the second pre- filing matched offline profile of archives.
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 to be archived of picture quality.By the third at the class center of offline profile and the class center of the second pre- filing archives
Similarity, the similarity being determined as 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 third phase at the class center and the class center of the second pre- filing archives of offline profile
Like degree.
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 to be archived of picture quality in the second pre- filing archives.Determine the second pre- filing shelves
The similarity at all kinds of centers at the class center and offline profile of case, then according to the class center of the second pre- filing archives and offline shelves
The third similarity at all kinds of centers of case 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 third similarity, then according to the class center and second of offline profile
The third similarity at all kinds of centers of pre- filing 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 is similar to the second pre- filing third at each class center of archives by the class center of offline profile
Degree is merged, and determines the similarity of offline profile with the second pre- filing archives, second pre- filing each class center of archives
Weight can be allocated according to picture quality, can also be allocated according to characteristics of image.
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 that all kinds of centers of offline profile are similar to the second pre- filing third at all kinds of centers of archives
Degree determines offline then according to the third similarity at all kinds of centers of offline profile and all kinds of centers of the second pre- filing archives
The similarity of archives and the second 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.
Optionally, directly pre- by first for the first pre- filing archives not merged with other first pre- filing archives
Filing archives are compared with the offline profile in facial image database, exist in determining facial image database and the first pre- filing shelves
When the matched offline profile of case, the first pre- filing archives are included into matched offline profile.
In the embodiment of the present application, when being filed for multiple facial images to be archived obtained in preset period of time, first
Facial image to be archived is clustered, first is generated and files archives in advance, then according to face figure to be archived in the first pre- filing
The spatial information of picture determines colleague's archives in the first pre- filing archives.Since colleague's archives are probably the shelves of the same person
Case, thus first will colleague archives be compared, by go together archives between the second similarity be greater than second threshold colleague's archives into
Row merges, and generates second and files archives in advance, later again carries out the offline profile in the second pre- filing archives and facial image database
After file, the efficiency filed offline can be effectively improved.
Based on the same technical idea, the embodiment of the invention provides a kind of filing apparatus, as shown in figure 3, the device 300
Include:
Module 301 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;
Cluster module 302, for clustering to multiple described facial images to be archived, archives are filed in generation first in advance,
Wherein, any facial image in any first pre- filing archives and any facial image in other first pre- filing archives
Between similarity be less than first threshold;
Analysis module 303, for being determined according to the space time information of the facial image to be archived in each first pre- filing archives
Colleague's archives in each first pre- filing archives;
Merging module 304, for merging when determining that the second similarity between colleague's archives is greater than second threshold
Colleague's archives generate second and file archives in advance;
Profiling module 305, for existing in determining the facial image database for any one the second pre- filing archives
When offline profile matched with the described second pre- filing archives, the described second pre- filing archives are included into the matched offline shelves
Case includes at least one offline profile in the facial image database, what the offline profile was filed before being the preset period of time
Archives.
Optionally, the analysis module 303 is specifically used for:
File archives in advance for any two first, according to the face figures to be archived in the described two first pre- filing archives
The space time information of picture determines colleague's number of the described two first pre- filing archives;
It is pre- by described two first when determining that colleague's number of the described two first pre- filing archives is greater than third threshold value
Filing archives are determined as archives of going together.
Optionally, the merging module 304 is specifically used for:
For first colleague's archives in multiple colleague's archives, the first colleague archives are in the multiple colleague's archives
Any colleague's archives, according to it is described first colleague archives class center with second go together archives class center similarity, really
The second similarity that fixed first colleague's archives go together archives with described second, the second colleague archives are the multiple same
Any colleague's archives in row archives in addition to the first colleague archives;
If the second similarity that first colleague's archives go together archives with described second is greater than second threshold, merge institute
It states first colleague's archives to go together archives with described second, generates the second filing archives in advance.
Optionally, the profiling module 305 is specifically used for:
For any offline profile, according to the class center at the class center of the offline profile and the described second pre- filing archives
Third similarity, determine the similarity of the offline profile with the described second pre- filing archives;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to the 4th threshold value, it is determined that institute
It states in the offline profile in facial image database 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 4, including at least
One processor 401, and the memory 402 connecting at least one processor do not limit processor in the embodiment of the present application
Specific connection medium between 401 and memory 402 is connected as in Fig. 4 by bus between processor 401 and memory 402
Example.Bus can be divided into address bus, data/address bus, control bus etc..
In the embodiment of the present application, memory 402 is stored with the instruction that can be executed by least one processor 401, at least
The instruction that one processor 401 is stored by executing memory 402, can execute step included in aforementioned archiving method.
Wherein, processor 401 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 402 and calling is stored in number in memory 402
According to realize filing.Optionally, processor 401 may include one or more processing units, and processor 401 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 401.In some embodiments, processor 401 and memory 402 can be realized on the same chip, in some realities
It applies in example, they can also be realized respectively on independent chip.
Processor 401 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 402 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 402 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 402 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 402 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 clustered, first is generated and files archives in advance, wherein any first pre- filing shelves
Similarity in any facial image and other first pre- filing archives in case between any facial image is less than first
Threshold value;
It is determined in each first pre- filing archives according to the space time information of the facial image to be archived in each first pre- filing archives
Colleague's archives;
When determining that the second similarity between colleague's archives is greater than second threshold, merge colleague's archives, generates the
Two pre- filing archives;
For any one the second pre- filing archives, exist in determining the facial image database and the described second pre- filing archives
When matched offline profile, the described second pre- filing archives are included into the matched offline profile, in the facial image database
Including at least one offline profile, the archives of filing before the offline profile is the preset period of time.
2. the method as described in claim 1, which is characterized in that the face to be archived according in each first pre- filing archives
The space time information of image determines colleague's archives in each first pre- filing archives, comprising:
File archives in advance for any two first, according to the facial image to be archived in the described two first pre- filing archives
Space time information determine colleague's numbers of the described two first pre- filing archives;
When determining that colleague's number of the described two first pre- filing archives is greater than third threshold value, by the described two first pre- filings
Archives are determined as archives of going together.
3. the method as described in claim 1, which is characterized in that described to determine the second similarity between colleague's archives
When greater than second threshold, merge colleague's archives, generate second and file archives in advance, comprising:
For first colleague's archives in multiple colleague's archives, the first colleague archives are appointing in the multiple colleague's archives
One colleague archives, according to it is described first colleague archives class center with second go together archives class center similarity, determine institute
The second similarity that first colleague's archives go together archives with described second is stated, the second colleague archives are the multiple colleague's shelves
Any colleague's archives in case in addition to the first colleague archives;
If the second similarity that first colleague's archives go together archives with described second is greater than second threshold, merge described the
One colleague's archives are gone together archives with described second, generate the second filing archives in advance.
4. the method as described in claim 1, which is characterized in that deposited in the offline profile in the determination facial image database
Filing the matched offline profile of archives in advance with described second, comprising:
For any offline profile, according to the of the class center of the offline profile and the class center of the described second pre- filing archives
Three similarities determine the similarity of the offline profile with the described second pre- filing archives;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to the 4th threshold value, it is determined that the people
Exist in offline profile in face image library 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;
Cluster module generates first and files archives in advance, wherein appoint for clustering to multiple described facial images to be archived
In any facial image and other first pre- filing archives in one first pre- filing archives between any facial image
Similarity is less than first threshold;
Analysis module, for determining that each first is pre- according to the space time information of the facial image to be archived in each first pre- filing archives
File colleague's archives in archives;
Merging module, for merging described same when determining that the second similarity between colleague's archives is greater than second threshold
Row archives generate second and file archives in advance;
Profiling module, for for any one second pre- filing archives, exist in determining the facial image database with it is described
When the matched offline profile of the second pre- filing archives, the described second pre- filing archives are included into the matched offline profile, institute
Stating includes at least one offline profile in facial image database, the archives that the offline profile is filed before being the preset period of time.
6. device as claimed in claim 5, which is characterized in that the analysis module is specifically used for:
File archives in advance for any two first, according to the facial image to be archived in the described two first pre- filing archives
Space time information determine colleague's numbers of the described two first pre- filing archives;
When determining that colleague's number of the described two first pre- filing archives is greater than third threshold value, by the described two first pre- filings
Archives are determined as archives of going together.
7. device as claimed in claim 5, which is characterized in that the merging module is specifically used for:
For first colleague's archives in multiple colleague's archives, the first colleague archives are appointing in the multiple colleague's archives
One colleague archives, according to it is described first colleague archives class center with second go together archives class center similarity, determine institute
The second similarity that first colleague's archives go together archives with described second is stated, the second colleague archives are the multiple colleague's shelves
Any colleague's archives in case in addition to the first colleague archives;
If the second similarity that first colleague's archives go together archives with described second is greater than second threshold, merge described the
One colleague's archives are gone together archives with described second, generate the second filing archives in advance.
8. device as claimed in claim 5, which is characterized in that the profiling module is specifically used for:
For any offline profile, according to the of the class center of the offline profile and the class center of the described second pre- filing archives
Three similarities determine the similarity of the offline profile with the described second pre- filing archives;
If the offline profile and the similarity of the described second pre- filing archives are greater than or equal to the 4th threshold value, it is determined that the people
Exist in offline profile in face image library 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 |
---|---|---|---|
CN201811624049.9A CN109740004B (en) | 2018-12-28 | 2018-12-28 | Filing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624049.9A CN109740004B (en) | 2018-12-28 | 2018-12-28 | Filing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109740004A true CN109740004A (en) | 2019-05-10 |
CN109740004B CN109740004B (en) | 2023-07-11 |
Family
ID=66361853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811624049.9A Active CN109740004B (en) | 2018-12-28 | 2018-12-28 | Filing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109740004B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110348347A (en) * | 2019-06-28 | 2019-10-18 | 深圳市商汤科技有限公司 | A kind of information processing method and device, storage medium |
CN110413811A (en) * | 2019-08-05 | 2019-11-05 | 北京深醒科技有限公司 | A kind of across channel polymerization in passerby library based on recognition of face |
CN110750670A (en) * | 2019-09-05 | 2020-02-04 | 北京旷视科技有限公司 | Stranger monitoring method, device and system and storage medium |
CN111026920A (en) * | 2019-12-17 | 2020-04-17 | 深圳云天励飞技术有限公司 | File merging method and device, electronic equipment and storage medium |
CN111309946A (en) * | 2020-02-10 | 2020-06-19 | 浙江大华技术股份有限公司 | Established file optimization method and device |
CN111368867A (en) * | 2019-06-26 | 2020-07-03 | 杭州海康威视系统技术有限公司 | Archive classification method and system and computer readable storage medium |
CN112487221A (en) * | 2020-11-04 | 2021-03-12 | 北京澎思科技有限公司 | Image filing method and device, electronic device and storage medium |
CN113127712A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Archiving method and device |
CN113127572A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Archive merging method, device, equipment and computer readable storage medium |
CN115017359A (en) * | 2022-05-27 | 2022-09-06 | 浙江大华技术股份有限公司 | Method and device for searching picture and electronic equipment |
CN113127712B (en) * | 2019-12-31 | 2024-06-07 | 深圳云天励飞技术有限公司 | Filing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140074790A1 (en) * | 2012-09-12 | 2014-03-13 | International Business Machines Corporation | Using a metadata image of a file system and archive instance to restore data objects in the file system |
CN106791708A (en) * | 2017-02-07 | 2017-05-31 | 深圳云天励飞技术有限公司 | A kind of method for processing video frequency and device |
CN108664920A (en) * | 2018-05-10 | 2018-10-16 | 深圳市深网视界科技有限公司 | A kind of cascade face cluster method and apparatus extensive in real time |
CN108897777A (en) * | 2018-06-01 | 2018-11-27 | 深圳市商汤科技有限公司 | Target object method for tracing and device, electronic equipment and storage medium |
-
2018
- 2018-12-28 CN CN201811624049.9A patent/CN109740004B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140074790A1 (en) * | 2012-09-12 | 2014-03-13 | International Business Machines Corporation | Using a metadata image of a file system and archive instance to restore data objects in the file system |
CN106791708A (en) * | 2017-02-07 | 2017-05-31 | 深圳云天励飞技术有限公司 | A kind of method for processing video frequency and device |
CN108664920A (en) * | 2018-05-10 | 2018-10-16 | 深圳市深网视界科技有限公司 | A kind of cascade face cluster method and apparatus extensive in real time |
CN108897777A (en) * | 2018-06-01 | 2018-11-27 | 深圳市商汤科技有限公司 | Target object method for tracing and device, electronic equipment and storage medium |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111368867B (en) * | 2019-06-26 | 2023-09-05 | 杭州海康威视系统技术有限公司 | File classifying method and system and computer readable storage medium |
CN111368867A (en) * | 2019-06-26 | 2020-07-03 | 杭州海康威视系统技术有限公司 | Archive classification method and system and computer readable storage medium |
CN110348347A (en) * | 2019-06-28 | 2019-10-18 | 深圳市商汤科技有限公司 | A kind of information processing method and device, storage medium |
CN110413811A (en) * | 2019-08-05 | 2019-11-05 | 北京深醒科技有限公司 | A kind of across channel polymerization in passerby library based on recognition of face |
CN110750670B (en) * | 2019-09-05 | 2022-04-19 | 北京旷视科技有限公司 | Stranger monitoring method, device and system and storage medium |
CN110750670A (en) * | 2019-09-05 | 2020-02-04 | 北京旷视科技有限公司 | Stranger monitoring method, device and system and storage medium |
CN111026920A (en) * | 2019-12-17 | 2020-04-17 | 深圳云天励飞技术有限公司 | File merging method and device, electronic equipment and storage medium |
CN113127712A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Archiving method and device |
CN113127572A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Archive merging method, device, equipment and computer readable storage medium |
CN113127572B (en) * | 2019-12-31 | 2023-03-03 | 深圳云天励飞技术有限公司 | Archive merging method, device, equipment and computer readable storage medium |
CN113127712B (en) * | 2019-12-31 | 2024-06-07 | 深圳云天励飞技术有限公司 | Filing method and device |
CN111309946B (en) * | 2020-02-10 | 2023-04-07 | 浙江大华技术股份有限公司 | Established file optimization method and device |
CN111309946A (en) * | 2020-02-10 | 2020-06-19 | 浙江大华技术股份有限公司 | Established file optimization method and device |
CN112487221A (en) * | 2020-11-04 | 2021-03-12 | 北京澎思科技有限公司 | Image filing method and device, electronic device and storage medium |
CN115017359A (en) * | 2022-05-27 | 2022-09-06 | 浙江大华技术股份有限公司 | Method and device for searching picture and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109740004B (en) | 2023-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109740004A (en) | A kind of archiving method and device | |
CN109815829A (en) | A kind of method and device of determining passerby track | |
CN108733819B (en) | Personnel archive establishing method and device | |
CN109710780A (en) | A kind of archiving method and device | |
CN110807385B (en) | Target detection method, target detection device, electronic equipment and storage medium | |
CN109783685A (en) | A kind of querying method and device | |
CN107798354B (en) | Image clustering method and device based on face image and storage equipment | |
CN109815370A (en) | A kind of archiving method and device | |
CN109800674A (en) | A kind of archiving method and device | |
CN109784217A (en) | A kind of monitoring method and device | |
CN109800668A (en) | A kind of archiving method and device | |
CN109800318A (en) | A kind of archiving method and device | |
CN109726674A (en) | A kind of face identification method and device | |
CN106203333A (en) | Face identification method and system | |
CN109740003A (en) | A kind of archiving method and device | |
CN108446692A (en) | Face comparison method, device and system | |
CN109784220A (en) | A kind of method and device of determining passerby track | |
CN110675433A (en) | Video processing method and device, electronic equipment and storage medium | |
CN109857891A (en) | A kind of querying method and device | |
CN109800664A (en) | A kind of method and device of determining passerby track | |
CN109740517A (en) | A kind of method and device of determining object to be identified | |
CN109783672A (en) | A kind of archiving method and device | |
CN109800322A (en) | A kind of monitoring method and device | |
CN109800329A (en) | A kind of monitoring method and device | |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |