CN106934041B - image file management method and device - Google Patents

image file management method and device Download PDF

Info

Publication number
CN106934041B
CN106934041B CN201710155679.5A CN201710155679A CN106934041B CN 106934041 B CN106934041 B CN 106934041B CN 201710155679 A CN201710155679 A CN 201710155679A CN 106934041 B CN106934041 B CN 106934041B
Authority
CN
China
Prior art keywords
image file
file
image
stored
characteristic data
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.)
Expired - Fee Related
Application number
CN201710155679.5A
Other languages
Chinese (zh)
Other versions
CN106934041A (en
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.)
NATIONAL GEOMATICS CENTER OF CHINA
China Coal Survey & Remote Sensing Group Co Ltd
Original Assignee
NATIONAL GEOMATICS CENTER OF CHINA
China Coal Survey & Remote Sensing Group 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 NATIONAL GEOMATICS CENTER OF CHINA, China Coal Survey & Remote Sensing Group Co Ltd filed Critical NATIONAL GEOMATICS CENTER OF CHINA
Priority to CN201710155679.5A priority Critical patent/CN106934041B/en
Publication of CN106934041A publication Critical patent/CN106934041A/en
Application granted granted Critical
Publication of CN106934041B publication Critical patent/CN106934041B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and a device for managing image files, and relates to the field of electronic file management. Applied to a file server, the method comprises the following steps: acquiring an image file; calculating the characteristic data of the acquired image file by using an information abstract algorithm; comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database; when the characteristic data of the obtained image file is different from the characteristic data of the image file stored in the database, obtaining readability test data of the image file, wherein the readability test data comprises the characteristic data; and storing the obtained image file and the readability test data corresponding to the obtained image file in the database. Through the readability inspection to the image file before filing, improve the utilization ratio of storage space, reduce the consumption of manpower in the management process, improve the management efficiency.

Description

Image file management method and device
Technical Field
The invention relates to the field of electronic file management, in particular to a method and a device for managing image files.
Background
electronic files are files that are generated in digital devices and environments, stored in digital form on carriers such as magnetic tapes, magnetic disks, optical disks, etc., read, processed, and managed by computers, etc., and can be transferred over communication networks. Compared with the traditional file, the electronic file has the advantages of being small in occupied space and large in storage capacity.
But also because of the huge number of electronic files, the storage capacity is eventually limited. Meanwhile, electronic file recording has many advantages, but still has many problems. For example, electronic files are easily tampered, and are also easily disabled, damaged and repeatedly stored due to self or external reasons, so that storage space is occupied. This makes it particularly important for electronic document management. Taking an image file as an example, the image file is a file capable of rapidly recording precious records in social activities. But also because of its large number and large storage space. If the image file cannot be effectively managed, the storage space is wasted, and the image file cannot be effectively stored and transmitted.
Although electronic files are more convenient than traditional file management, manual management is still required, and both the inspection of filing and the inspection of whether the files are damaged after storage depend on manual participation. The manual management can not be accurate, and is time-consuming and labor-consuming. This also causes the management efficiency of the electronic file to be low, the storage space to be not reasonably utilized, and the electronic file to be not effectively stored.
disclosure of Invention
in order to solve the above problems, the embodiments of the present invention adopt the following technical solutions:
the embodiment of the invention provides an image file management method, which is applied to a file server, wherein the file server comprises a database for storing image files and readability test data corresponding to the image files, and the method comprises the following steps: acquiring an image file; calculating the characteristic data of the acquired image file by using an information abstract algorithm; comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database; when the characteristic data of the obtained image file is different from the characteristic data of the image file stored in the database, obtaining readability test data of the image file, wherein the readability test data comprises the characteristic data; and storing the obtained image file and the readability test data corresponding to the obtained image file in the database.
an embodiment of the present invention further provides an image file management apparatus, which is applied to a file server, where the file server includes a database for storing image files and readability test data corresponding to the image files, and the apparatus includes: the first obtaining module is used for obtaining the image file; the calculation module is used for calculating the characteristic data of the acquired image file by using an information abstract algorithm; the first comparison module is used for comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database; the verification data acquisition module is used for acquiring readability verification data of the image file when the characteristic data of the acquired image file is different from the characteristic data of the image file stored in the database, wherein the readability verification data comprises the characteristic data; and the storage module is used for storing the acquired image file and the readability test data corresponding to the acquired image file in the database.
Compared with the prior art, the image file management method and device provided by the embodiment of the invention are applied to a file server, the file server comprises a database for storing image files and readability test data corresponding to the image files, and the method comprises the following steps: acquiring an image file; calculating the characteristic data of the acquired image file by using an information abstract algorithm; comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database; when the characteristic data of the obtained image file is different from the characteristic data of the image file stored in the database, obtaining readability test data of the image file, wherein the readability test data comprises the characteristic data; and storing the obtained image file and the readability test data corresponding to the obtained image file in the database. Through the readability inspection to the image file before filing, improve the utilization ratio of storage space, reduce the consumption of manpower in the management process, improve the management efficiency.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a file server using an image file management device according to a preferred embodiment of the present invention.
fig. 2 is a flowchart illustrating an image file management method according to an embodiment of the present invention.
Fig. 3 is a flowchart of sub-steps of step S104 shown in fig. 2.
Fig. 4 is a flowchart of sub-steps of step S105 shown in fig. 2.
Fig. 5 is a flowchart of another part of a video file management method according to an embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating functional modules of an image file management apparatus according to an embodiment of the present invention.
FIG. 7 is a schematic diagram of the functional sub-modules of the inspection data acquisition module shown in FIG. 6.
Fig. 8 is a schematic diagram of functional sub-modules of the memory module shown in fig. 6.
Fig. 9 is a schematic diagram illustrating another part of functional modules of the image file management apparatus according to the embodiment of the present invention.
Icon: 100-a file server; 111-a memory; 112-a processor; 113-a communication unit; 200-video file management means; 201-a first obtaining module; 202-a calculation module; 203-a first comparison module; 204-a test data acquisition module; 2041-generating a submodule; 2042-thinning submodule; 205-a storage module; 2051-validation submodule; 2052-storage submodule; 206-a second acquisition module; 207-a processing module; 208-a query module; 209-a second comparison module; 210-a marking module; 300-database.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a block diagram of a file server 100. The file server 100 includes a video file management apparatus 200, a database 300, a memory 111, a processor 112, and a communication unit 113.
The memory 111, the processor 112 and the communication unit 113 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The image file management apparatus 200 and the database 300 include at least one software functional module which can be stored in the memory 111 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the file server 100. The processor 112 is used for executing executable modules stored in the memory 111, such as software functional modules and computer programs included in the image file management apparatus 200.
the Memory 111 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 111 is used to store programs or data. The communication unit 113 is configured to establish a communication connection between the file server 100 and another communication terminal via the network, and to transceive data via the network.
The database 300 is used to store image files and readability test data corresponding to the image files. The readability test data comprises test data which can be used to test the authenticity of the picture, test data for the integrity and validity test data. The authenticity refers to that after the content, the structure and the background information of the electronic file are identified, the electronic file is confirmed to be consistent with the original condition during formation; the integrity refers to the lossless defects of the content, the structure, the background information, the metadata and the like of the electronic file; the validity refers to the understandability and availability of the electronic file, and includes the identifiability of information, the reliability of a storage system, the integrity and compatibility of a carrier and the like. In this embodiment, the verification data for verifying authenticity may be feature data of the image file. The verification data for verifying integrity may be header information. The verification data for verifying validity may be a thinned image.
it should be understood that the structure shown in fig. 1 is merely a schematic diagram of the structure of the file server 100, and the file server 100 may include more or less components than those shown in fig. 1, or have a different configuration than that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
first embodiment
referring to fig. 2, fig. 2 is a flowchart illustrating an image file management method according to a preferred embodiment of the invention. For the file server 100, the file server 100 includes a database 300 for storing image files and readability test data corresponding to the image files. The image file management method comprises the following steps:
step S101, acquiring an image file.
In this embodiment, acquiring the image file may be acquiring the image file to be archived. Specifically, the communication unit 113 may obtain a video file to be archived. The image file can be, but is not limited to, a photograph, a scanned object, a video file, etc.
And step S102, calculating the characteristic data of the acquired image file by using an information abstract algorithm.
In this embodiment, the feature data is a unique identifier of the image file. Therefore, it can be understood that the same image file has the same feature data, and the feature data of different image files are different. Even if the image file is the same, if the image file is tampered, the characteristic data before the tampering is different from the characteristic data after the tampering. For example, the characteristic data may be an MD5 code. Specifically, the MD5 code of the image file can be obtained by calculation using a hash algorithm.
Step S103, comparing the feature data of the acquired image file with the feature data of the image file stored in the database 300.
in this embodiment, the readability verification data stored in the database 300 includes characteristic data. The feature data of the acquired image file is compared with the feature data stored in the database 300 one by one. When the feature data of the acquired image file is different from the feature data of the image file stored in the database 300, the process proceeds to step S104. When the feature data of the acquired image file is the same as the feature data of the image file stored in the database 300, the image file is rejected. Therefore, the storage of the repeated redundant image files is avoided, and the storage space is saved.
Step S104, obtaining readability test data of the image file.
In this embodiment, the readability test data further includes header information and a thinning image. As shown in fig. 3, step S104 includes the following sub-steps:
And a substep S1041 of generating the header information according to the header of the video file.
It should be noted that the header file is a part of the video file for describing the type of the video file. For example, the header file of the BMP bitmap includes: the type of file, the size of the file, the reserved words of the file, the starting location of the data, etc. Specifically, header file information that facilitates storage is generated from the header file. Even if the storage space occupied by the video file is too large, the header file information is small, reading the header file information can quickly judge whether the electronic video is damaged, for example, a suffix of an avi video file with the size of 1G is changed into a suffix of an image format of tif, and the header file information can quickly judge that the file is incomplete and damaged. Therefore, the integrity of the image file can be verified through the header file information.
And a substep S1042 of processing the image file by using an image pyramid algorithm to obtain the rarefaction image.
In this embodiment, the image pyramid algorithm performs gaussian blur on the image file according to a certain proportion to generate the rarefied picture. It should be noted that, if the image file is a video file, a frame of picture of the video file can be processed according to the selection of the user; and the pictures in the video file can be collected according to a preset time interval, and the collected pictures are processed. The existing image files are generally large, and in order to determine the identifiability of the image information, the file server 100 needs to display the image files to obtain a judgment instruction for judging the identifiability of the image files. When the electronic image is large, the speed of loading the image file by the file server 100 is slow, and a large amount of computer storage space is occupied, and the inspection speed can be greatly increased by replacing the image file with the thinning picture, so that the burden of the computer storage space is reduced.
Step S105, storing the obtained image file and the readability test data corresponding to the obtained image file in the database 300.
In this embodiment, a one-to-one correspondence relationship is established between the image file and the readability test data for storage, which facilitates the query. As shown in fig. 4, step S105 includes the following sub-steps:
And a substep S1051 of verifying the validity of the header file information and the rarefied image respectively. To verify the validity of the image file. In this embodiment, when at least one of the header information or the decimated image is invalid, the flow ends. When both the header file information and the thinned-out image are valid, the flow proceeds to S1052.
In the substep S1052, the image file and the feature data, header file information and the rarefaction image corresponding to the image file are stored in the database 300.
Referring to fig. 5, fig. 5 is another partial flowchart of a method for managing image files according to a preferred embodiment of the invention. The image file management method further comprises the following steps:
step S201, acquiring each stored image file in the database 300 according to a preset time period.
In the present embodiment, the stored image files stored in the database 300 are acquired one by one in each time period according to a preset time period (for example, the preset period is 5 days). That is, the stored image files stored in the database 300 are acquired one by one after the last period. And executing the following steps according to each acquired stored image file.
Step S202, the stored image file is processed to obtain the current readability test data of the stored image file.
In this embodiment, the current readability test data is obtained according to the obtained stored image file. The specific method is consistent with the previously described method for obtaining readability test data, and is not described herein again.
Step S203, querying readability test data corresponding to the stored image file from the database 300.
In the present embodiment, the readability test data during storage is the readability test data stored in the database 300 corresponding to the stored image file stored in the database 300. Specifically, the image file may be searched from the database 300 according to the corresponding relationship with the stored image file, and may be obtained.
step S204, comparing the current readability test data with the stored readability test data.
in this embodiment, when the readability test data is identical to the stored readability test data, the procedure is ended; when the readability test data is different from the stored readability test data, the flow proceeds to step S205.
Step S205, mark the stored image file.
In this embodiment, after the storage image file is marked, the user can conveniently view the storage image file in a centralized manner, know the storage condition of the storage image file, and facilitate management. Meanwhile, the marked stored image file does not belong to the acquired stored image file any more in a later period when step S201 is executed again. The inspection efficiency is improved. Specifically, the current readability test data comprises first characteristic data, first header file information and a first rarefaction image, the readability test data during storage comprises second characteristic data, second header file information and a second rarefaction image, and when the first characteristic data is different from the second characteristic data, change marks are made on the stored image files; when the first header file information is different from the second header file information, making a damage mark for the stored image file; and when the first rarefaction image is different from the second rarefaction image, making an invalid mark for the stored image file.
Second embodiment
Referring to fig. 6, fig. 6 is a functional module diagram of an image file management apparatus 200 according to a preferred embodiment of the present invention. The image file management apparatus 200 is applied to the file server 100, the file server 100 includes a database 300 for storing image files and readability test data corresponding to the image files, and the image file management apparatus 200 includes a first obtaining module 201, a calculating module 202, a first comparing module 203, a test data obtaining module 204, and a storing module 205.
The first obtaining module 201 is configured to obtain an image file.
In the embodiment of the present invention, the step S101 may be performed by the first obtaining module 201. It should be noted that acquiring the image file may be acquiring the image file to be archived.
the calculating module 202 is configured to calculate the feature data of the acquired image file by using an information summarization algorithm.
in the embodiment of the present invention, the step S102 may be executed by the computing module 202. The characteristic data is the only identification of the image file.
The first comparing module 203 is configured to compare the feature data of the acquired image file with the feature data of the image file already stored in the database 300.
in this embodiment of the present invention, the step S103 may be performed by the first comparing module 203.
A verification data obtaining module 204, configured to obtain readability verification data of the image file when the feature data of the obtained image file is different from the feature data of the image file already stored in the database 300, where the readability verification data includes the feature data.
In this embodiment of the present invention, the step S104 may be executed by the verification data obtaining module 204. As shown in FIG. 7, verification data acquisition module 204 includes the following functional sub-modules:
the generating submodule 2041 is configured to generate header file information according to a header file of the image file.
in the embodiment of the present invention, the sub-step S1041 may be performed by the generating sub-module 2041.
and the thinning submodule 2042 is configured to process the image file by using an image pyramid algorithm, so as to obtain the thinning image.
In an embodiment of the present invention, the sub-step S1042 may be performed by the thinning sub-module 2042.
A storage module 205, configured to store the obtained image file and the readability test data corresponding to the obtained image file in the database 300.
In this embodiment of the present invention, the step S105 may be executed by the storage module 205. As shown in fig. 8, the storage module 205 further includes the following functional sub-modules:
and a verification sub-module 2051, configured to verify validity of the header file information and the thinning image, respectively.
In the embodiment of the present invention, the sub-step S1051 may be performed by the verification sub-module 2051.
The storage sub-module 2052 is configured to, when the header file information and the validity of the thinning-out image are both valid, store the image file and the readability test data corresponding to the image file in the database 300.
In the embodiment of the present invention, the sub-step S1052 may be performed by the storage sub-module 2052.
Referring to fig. 9, the image file management apparatus 200 according to the embodiment of the present invention further includes a second obtaining module 206, a processing module 207, a query module 208, a second comparing module 209, and a marking module 210.
The second obtaining module 206 is configured to obtain each stored image file in the database 300 according to a preset time period.
In this embodiment of the present invention, the step S201 may be performed by the second obtaining module 206.
The processing module 207 is configured to process the stored image file to obtain current readability test data of the stored image file.
In the embodiment of the present invention, the step S202 may be executed by the processing module 207.
The query module 208 is configured to query the database 300 for readability test data corresponding to the stored image file during storage.
in this embodiment of the present invention, the step S203 may be performed by the query module 208.
A second comparing module 209 for comparing said current readability verification data with said stored readability verification data.
In this embodiment of the present invention, the step S204 may be executed by the second comparing module 209.
A marking module 210, configured to mark the stored image file when the current readability test data is different from the stored readability test data.
In this embodiment of the present invention, the step S205 may be performed by the marking module 210. The current readability test data comprises first characteristic data, first header file information and a first rarefaction image, and the readability test data during storage comprises second characteristic data, second header file information and a second rarefaction image. Specifically, the marking module 210 marks the stored image file in a manner that when the first characteristic data is different from the second characteristic data, a change mark is made to the stored image file; when the first header file information is different from the second header file information, making a damage mark for the stored image file; and when the first rarefaction image is different from the second rarefaction image, making an invalid mark for the stored image file.
In summary, the image file management method and apparatus provided by the present invention are applied to a file server. The file server includes a database for storing image files and readability test data corresponding to the image files, and the method includes: acquiring an image file; calculating the characteristic data of the acquired image file by using an information abstract algorithm; comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database; when the characteristic data of the obtained image file is different from the characteristic data of the image file stored in the database, obtaining readability test data of the image file, wherein the readability test data comprises the characteristic data; and storing the obtained image file and the readability test data corresponding to the obtained image file in the database. Through the readability inspection to the image file before filing, improve the utilization ratio of storage space, reduce the consumption of manpower in the management process, improve the management efficiency.
in the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. An image file management method is applied to a file server, the file server comprises a database used for storing image files and readability test data corresponding to the image files, and the method comprises the following steps:
acquiring an image file;
Calculating the characteristic data of the acquired image file by using an information abstract algorithm;
comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database;
When the characteristic data of the obtained image file is different from the characteristic data of the image file stored in the database, obtaining readability test data of the obtained image file, wherein the readability test data comprises the characteristic data, header file information and a thinning image;
Storing the obtained image file and the readability test data corresponding to the obtained image file in the database;
Acquiring each storage image file in the database according to a preset time period;
Processing the stored image file to obtain current readability test data of the stored image file, wherein the current readability test data comprise first characteristic data, first header file information and a first rarefaction image;
Querying readability test data corresponding to the stored image files during storage from the database, wherein the readability test data during storage comprise second characteristic data, second header file information and a second rarefaction image;
Comparing said current readability verification data with said stored readability verification data;
When the first characteristic data is different from the second characteristic data, changing marks are made on the stored image file;
When the first header file information is different from the second header file information, making a damage mark for the stored image file;
and when the first rarefaction image is different from the second rarefaction image, making an invalid mark for the stored image file.
2. The image file management method according to claim 1, wherein the step of acquiring readability test data of the acquired image file comprises:
generating the header file information according to the header file of the acquired image file;
And processing the obtained image file by using an image pyramid algorithm to obtain the rarefaction image.
3. The method as claimed in claim 2, wherein said step of storing said captured image file and said readability test data corresponding to said captured image file in said database comprises:
Respectively verifying the validity of the header file information and the rarefaction image;
And when the effectiveness of the header file information and the rarefaction image is effective, storing the acquired image file and the characteristic data, the header file information and the rarefaction image corresponding to the acquired image file in the database.
4. An image file management apparatus, applied to a file server including a database for storing image files and readability test data corresponding to the image files, the apparatus comprising:
The first obtaining module is used for obtaining the image file;
The calculation module is used for calculating the characteristic data of the acquired image file by using an information abstract algorithm;
The first comparison module is used for comparing the characteristic data of the acquired image file with the characteristic data of the image file stored in the database;
The verification data acquisition module is used for acquiring readability verification data of the acquired image file when the characteristic data of the acquired image file is different from the characteristic data of the image file stored in the database, wherein the readability verification data comprises the characteristic data, header file information and a rarefaction image;
the storage module is used for storing the acquired image file and the readability test data corresponding to the acquired image file in the database;
the second acquisition module is used for acquiring each storage image file in the database according to a preset time period;
The processing module is used for processing the stored image file to obtain current readability test data of the stored image file, wherein the current readability test data comprise first characteristic data, first header file information and a first thinning image;
the query module is used for querying readability test data corresponding to the stored image files during storage from the database, wherein the readability test data during storage comprise second characteristic data, second header file information and second rarefaction images;
a second comparing module for comparing said current readability test data with said stored readability test data;
And the marking module is used for marking the stored image file with a change when the first characteristic data is different from the second characteristic data, marking the stored image file with a damage when the first header file information is different from the second header file information, and marking the stored image file with an invalid mark when the first thinning image is different from the second thinning image.
5. The image file management device as claimed in claim 4, wherein the inspection data acquiring module comprises:
The generating submodule is used for generating the header file information according to the header file of the acquired image file;
And the thinning submodule is used for processing the obtained image file by utilizing an image pyramid algorithm to obtain the thinning image.
6. The image file management device as claimed in claim 5, wherein the storage module comprises:
The verification submodule is used for respectively verifying the validity of the header file information and the rarefaction image;
and the storage sub-module is used for storing the acquired image file and the readability test data corresponding to the acquired image file into the database when the header file information and the effectiveness of the sparse image are both effective.
CN201710155679.5A 2017-03-16 2017-03-16 image file management method and device Expired - Fee Related CN106934041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710155679.5A CN106934041B (en) 2017-03-16 2017-03-16 image file management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710155679.5A CN106934041B (en) 2017-03-16 2017-03-16 image file management method and device

Publications (2)

Publication Number Publication Date
CN106934041A CN106934041A (en) 2017-07-07
CN106934041B true CN106934041B (en) 2019-12-06

Family

ID=59432460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710155679.5A Expired - Fee Related CN106934041B (en) 2017-03-16 2017-03-16 image file management method and device

Country Status (1)

Country Link
CN (1) CN106934041B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107781646B (en) * 2017-11-21 2024-06-18 中煤航测遥感集团有限公司 Natural gas monitoring system
CN112181908A (en) * 2020-09-04 2021-01-05 北京灵汇数融科技有限公司 Electronic file identification method and system based on statistics

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166602A (en) * 2014-08-15 2014-11-26 小米科技有限责任公司 Data backup method and device and electronic device
CN104503864A (en) * 2014-11-20 2015-04-08 北京世纪高蓝科技有限公司 Method and device for file backup based on local area network
JP2015114685A (en) * 2013-12-09 2015-06-22 株式会社日立製作所 Video search apparatus, video search method, and storage medium
CN106327421A (en) * 2016-09-13 2017-01-11 首都师范大学 Image data storage method and image data storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114685A (en) * 2013-12-09 2015-06-22 株式会社日立製作所 Video search apparatus, video search method, and storage medium
CN104166602A (en) * 2014-08-15 2014-11-26 小米科技有限责任公司 Data backup method and device and electronic device
CN104503864A (en) * 2014-11-20 2015-04-08 北京世纪高蓝科技有限公司 Method and device for file backup based on local area network
CN106327421A (en) * 2016-09-13 2017-01-11 首都师范大学 Image data storage method and image data storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ArcSDE 的卫星遥感影像数据库研究;陈昌生等;《计算机技术与发展》;20100731;第20卷(第7期);正文第80-88页 *

Also Published As

Publication number Publication date
CN106934041A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US10438000B1 (en) Using recognized backup images for recovery after a ransomware attack
US8270684B2 (en) Automatic media sharing via shutter click
US10969971B2 (en) Data storage method and apparatus
JP6396897B2 (en) Search for events by attendees
CN104519316A (en) Monitoring system, monitoring method, monitoring program, and recording medium
CN111259282B (en) URL (Uniform resource locator) duplication removing method, device, electronic equipment and computer readable storage medium
CN110636258B (en) Method, device, equipment and storage medium for analyzing peer personnel
CN106934041B (en) image file management method and device
US20140029854A1 (en) Metadata supersets for matching images
CN114550076A (en) Method, device and equipment for monitoring area abnormal behaviors and storage medium
CN113343312A (en) Page tamper-proofing method and system based on front-end point burying technology
CN103314364A (en) Content management device, method for managing content, and program
CN113568934A (en) Data query method and device, electronic equipment and storage medium
CN111047657A (en) Picture compression method, device, medium and electronic equipment
US8811756B2 (en) Image compression
CN108415814B (en) Method for automatically recording field change, application server and computer readable storage medium
CN113379347A (en) Express delivery warehouse-out management method and device, electronic equipment and storage medium
CN114281769A (en) Method and device for managing files on disk, computer equipment and storage medium
CN113626647A (en) Data storage method and system for intelligent cell
CN111143626A (en) Group partner identification method, device, equipment and computer readable storage medium
CN111352917A (en) Information input method and device, electronic equipment and storage medium
CN117194326A (en) File archiving method, apparatus, device, storage medium and computer program product
US9547731B2 (en) Merging sets of data objects for display
CN118364515A (en) Image tamper-proof verification method, device, equipment and storage medium
Harish Kumar et al. Fingerprinting of Image Files Based on Metadata and Statistical Analysis

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
CB03 Change of inventor or designer information

Inventor after: Peng Guihui

Inventor after: Li Ming

Inventor after: Ni Biao

Inventor before: Peng Guihui

Inventor before: Ni Biao

Inventor before: Li Ming

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191206

CF01 Termination of patent right due to non-payment of annual fee