[go: up one dir, main page]

CN110018930A - Image recovery method, device, equipment and storage medium - Google Patents

Image recovery method, device, equipment and storage medium Download PDF

Info

Publication number
CN110018930A
CN110018930A CN201910312291.0A CN201910312291A CN110018930A CN 110018930 A CN110018930 A CN 110018930A CN 201910312291 A CN201910312291 A CN 201910312291A CN 110018930 A CN110018930 A CN 110018930A
Authority
CN
China
Prior art keywords
image
file
target image
restored
target
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.)
Pending
Application number
CN201910312291.0A
Other languages
Chinese (zh)
Inventor
张维
张宇成
厉白
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Happy Box Software Co Ltd
Original Assignee
Suzhou Happy Box Software 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 Suzhou Happy Box Software Co Ltd filed Critical Suzhou Happy Box Software Co Ltd
Priority to CN201910312291.0A priority Critical patent/CN110018930A/en
Publication of CN110018930A publication Critical patent/CN110018930A/en
Priority to PCT/CN2019/118986 priority patent/WO2020211371A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of image recovery method, device, equipment and storage mediums, wherein this method comprises: determining target image cache file according to characteristics of image;Target image cache file is parsed, be restored image.The embodiment of the present invention improves the covering surface and serious forgiveness of image recovery, and does not need other equipment and be used cooperatively, and improves the convenience and safety of image recovery, further improves the experience effect of user.

Description

Image recovery method, device, equipment and storage medium
Technical field
The present embodiments relate to technical field of data processing more particularly to a kind of image recovery method, device, equipment and Storage medium.
Background technique
With the development of intelligent terminal, more and more intelligent terminals enter in people's lives, and user can be by not Congener intelligent terminal realizes that functions, the images that user stores in an intelligent terminal such as the shooting of photo or video occupy more next More spaces, user can usually carry out cleaning manually to image and delete.But in practical applications, if accidentally being deleted, Great puzzlement can be brought to user.
In the prior art, it when user deletes image in an intelligent terminal, can directly be deleted by photograph album, then by thoroughly deleting The mode removed deletes the photo in local and cloud.In the event of accidentally deleting, intelligent terminal is usually connected into computer, using disk The mode of reading imports the photo of recovery in intelligent terminal to restore photo, but this mode technology is complicated, convenience It is relatively low with efficiency.The cache image generated when alternatively, passing through image browsing is restored, but this mode user It can not achieve the recovery of image after cache image is cleared up or after capped.Image recovery method in the prior art is not It is able to satisfy the demand of people.
Summary of the invention
The embodiment of the invention provides a kind of image recovery method, device, equipment and storage mediums, can solve existing skill Convenience and the technical issues of low efficiency in art.
In a first aspect, the embodiment of the invention provides a kind of image recovery methods, comprising:
Target image cache file is determined according to characteristics of image;
The target image cache file is parsed, be restored image.
Second aspect, the embodiment of the invention also provides a kind of image recovery device, which includes:
File acquisition module, for determining target image cache file according to characteristics of image;
Parsing module, for parsing the target image cache file, be restored image.
Further, the target image cache file includes target image index file and target image storage file;
Described device further include:
Screening module is obtained for being screened according to the target image index file to target image storage file Target image storage file after screening.
Further, the screening module is specifically used for:
The target image index file is read, picture material mark is obtained;
Effective judgement is carried out to the target image storage file according to described image content identification;
The target image storage file is screened according to the result of the Effective judgement, the mesh after being screened Logo image storage file.
Further, the parsing module includes:
Information acquisition unit, for obtaining the image information of the image to be restored in the target image cache file, institute Stating image information includes offset and data volume;
Extraction unit, the data for the image to be restored according to described image information extraction;
Format conversion unit is formatted for the data to the image to be restored, and be restored image.
Further, described image information further includes check information, and the quantity of the image to be restored is at least one;
The parsing module further include:
Verification unit, for being carried out to the check information in each image to be restored in the target image storage file Verification determines and verifies successfully image to be restored.
Further, described image feature includes default file suffix name and default file head, the file acquisition module Include:
Global search unit obtains initial pictures caching for carrying out global search according to the default file suffix name File;
Initial screening unit is obtained for being screened based on the default file head to the initial pictures cache file To target image cache file.
Further, the target image cache file is stored based on BlobCache caching mechanism.
The third aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes image recovery method as described above.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the program realize image recovery method as described above when being executed by processor.
Image recovery method provided in an embodiment of the present invention can determine target image cache file according to characteristics of image, Target image cache file is parsed, be restored image.It is that target is determined based on preset characteristics of image in the embodiment of the present invention Image buffer storage file improves the covering surface of image recovery since the target image cache file will not be cleaned or cover And serious forgiveness, and do not need other equipment and be used cooperatively, the convenience and safety of image recovery are improved, into one Step improves the experience effect of user.
Detailed description of the invention
Fig. 1 is the flow chart of the image recovery method in the embodiment of the present invention one;
Fig. 2 is the schematic diagram of the characteristics of image in the embodiment of the present invention one;
Fig. 3 is the schematic diagram of the image storage file in the embodiment of the present invention one;
Fig. 4 is the flow chart of the image recovery method in the embodiment of the present invention two;
Fig. 5 is the schematic diagram of the image index file in the embodiment of the present invention two;
Fig. 6 is the structural schematic diagram of the image recovery device in the embodiment of the present invention three;
Fig. 7 is the structural schematic diagram of the equipment in the embodiment of the present invention four.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart of the image recovery method in the embodiment of the present invention one, and the present embodiment is applicable to smart machine In image when accidentally being deleted to image the case where restoring, this method can be executed by image recovery device, which can use soft The mode of part and/or hardware realizes that the device is configured in equipment, such as the equipment can be smart phone, computer or flat Plate computer etc..
As shown in Figure 1, this method can specifically include:
S110, target image cache file is determined according to characteristics of image.
Wherein, characteristics of image can be the special spy of being capable of only representative image cache file in the cache file of smart machine Sign, can will extract according to the characteristics of image from smart machine in image buffer storage file.To image spy in the present embodiment The concrete type of sign is not construed as limiting, and can be set according to the actual situation, after characteristics of image is in the present embodiment with default file Sew and is illustrated for name and default file head.
Target image cache file can be the image buffer storage file based on the storage of BlobCache caching mechanism. BlobCache is a kind of image buffer storage algorithm, cache image can be compressed into the file of a binary stream, this document is not It can be cleared up by system or user, will not be cleaned to smart machine brush machine.Target image cache file may include mesh Logo image index file and target image storage file wherein can store target image storage text in target image index file Related content of part, such as the size of target image storage file etc..The quantity of target image cache file can be multiple.
Specifically, determining target according to characteristics of image when characteristics of image includes default file suffix name and default file head Image buffer storage file, comprising: global search is carried out according to default file suffix name, obtains initial pictures cache file;Based on pre- If file header screens initial pictures cache file, target image cache file is obtained.Wherein, file suffixes name is also known as text Part extension name (Filename Extension) is a kind of mechanism for being used to logo file type in smart machine operating system, Common file suffixes name can follow behind root name, by a separators.Such as a file is entitled " imgcache.0 ", wherein " imgcache " is root name, " 0 " is file suffixes name.File header starts positioned at file One section of data for undertaking certain task, generally all in the part of beginning.
Default file suffix name and default file head can be set according to the actual situation, the default text in the present embodiment Part suffix name is illustrated by taking number and " id " as an example, and number is the default file suffix name of target image storage file, " idx " For the default suffix name of target image index file.Since BlobCache caching mechanism can pre-define four before file header The file signature of a byte, therefore default file head is said by taking " 303027B3 " and " 108524BD " as an example in the present embodiment Bright, the default file head of " 303027B3 " target image index file, " 108524BD " is the default of target image storage file File header.
According to the file stored on default file suffix name whole scan smart machine and its storage card, finds and preset The matched cache file of file suffixes name, the cache file are initial pictures cache file.It is the present invention referring specifically to Fig. 2, Fig. 2 The schematic diagram of characteristics of image in embodiment one, three initial pictures found in figure according to default file suffix name cache File 11,12 and 13, file suffixes name are respectively 0,1 and " idx ".Further, initial to what is obtained based on default file head Image buffer storage file is screened, and will be deleted with the different initial pictures cache file of default file head, remaining initial graph As cache file is determined as target image cache file.
S120, parsing target image cache file, be restored image.
Wherein, restoring image is the image for restoring to obtain corresponding with the image that user deletes.
Specifically, obtaining the image to be restored in target image cache file after determining target image cache file Image information, image information include offset and data volume;The data of image to be restored are extracted according to image information;To be restored The data of image format, and be restored image.Since target image cache file includes target image index file With target image storage file, the target image storage file of current active can be determined according to target image index file, and Parse the target image storage file.
Further, it can store at least one image to be restored in a target image storage file, specifically store The quantity of image to be restored can be set according to the actual situation.Read each image to be restored in target image cache file Image information, image information may include current offset and data of the image to be restored in target image cache file Amount, data volume can be byte number.It is the schematic diagram of the image storage file in the embodiment of the present invention one, figure referring to Fig. 3, Fig. 3 In the target image storage file data screenshot that includes including file entitled " imgcache.0 ", " 04000000 " table in figure Show current offset of the image to be restored in target image cache file, " 0C440000 " indicates the number of current image to be restored According to amount, " 04000000 " and " 0C440000 " is binary data, can read its int value generation to every 4 bytes therein The meaning of table.
It can be extracted according to the image information of each of target image cache file image to be restored each to be restored The data of image, due to the data be binary data, formatted by the data to image to be restored, that is, pass through by New image file is written in binary data stream stream, and recovery image can be obtained.
Further, the description information of image to be restored, i.e. image information can also be stored in target image cache file In can also include description information, the mobile phone of the different model description information can variant, the description information may include store The information such as path, image creation time and picture format.It further include the description information in " 0C440000 " referring to Fig. 3, such as "/ local/image/item/1586+2+1543550200JFIF".According to the description information, restore image format can with it is right The format of image before the deletion answered is consistent.
Also, image information can also include check information, and the quantity of image to be restored is at least one, then according to image It can also include: to each image to be restored in target image storage file before the data of information extraction image to be restored In check information verified, determine verify successfully image to be restored.Wherein check information can be check code, be used for school Test whether image is tampered.Referring to Fig. 3, " F2E8F1E1 ", " 673D81DE " and " 0F3976FE0 " in figure is currently to extensive The check code of complex pattern can determine whether current image to be restored verifies success according to the check code.According to image to be restored In check information verified, for verify successfully image to be restored, obtain target image cache file in it is to be restored The image information of image extracts the data of image to be restored according to image information, carries out format to the data of image to be restored and turns It changes, be restored image.And for the image to be restored of verification failure, then without restoring.
The technical solution of the present embodiment can determine target image cache file according to characteristics of image, parse target image Cache file, be restored image.It is that target image cache file is determined based on preset characteristics of image in the embodiment of the present invention, Since the target image cache file will not be cleaned or cover, the covering surface and serious forgiveness of image recovery are improved, and It does not need other equipment to be used cooperatively, improves the convenience and safety of image recovery, further improve user Experience effect;And image is verified during recovery, further improves the accuracy rate of image recovery.
Embodiment two
Fig. 4 is the flow chart of the image recovery method in the embodiment of the present invention two.Base of the present embodiment in above-described embodiment On plinth, above-mentioned image recovery method has been advanced optimized.Correspondingly, as shown in figure 4, the method for the present embodiment specifically includes:
S210, global search is carried out according to default file suffix name, obtains initial pictures cache file.
Wherein, default file suffix name can be set according to the actual situation, the default file suffix in the present embodiment Name is illustrated by taking number and " idx " as an example, and number is the default file suffix name of target image storage file, and " idx " is mesh The default suffix name of logo image index file.
According to the file stored on default file suffix name whole scan smart machine and its storage card, finds and preset The matched cache file of file suffixes name, the cache file are initial pictures cache file.
S220, initial pictures cache file is screened based on default file head, obtains target image cache file.
Default file head can be set according to the actual situation, since BlobCache caching mechanism can pre-define The file signature of good file header first four byte, thus in the present embodiment default file head with " 303027B3 " and " 108524BD " For be illustrated, the default file head of " 303027B3 " target image index file, " 108524BD " be target image storage The default file head of file.
It is slow to obtained initial pictures based on default file head after obtaining initial pictures cache file in the present embodiment It deposits file to be screened, will be deleted with the different initial pictures cache file of default file head, remaining initial pictures caching File is determined as target image cache file.Target image cache file can be based on the storage of BlobCache caching mechanism Image buffer storage file.
S230, target image storage file is screened according to target image index file, the target after being screened Image storage file.
Target image cache file may include target image index file and target image storage file, wherein target figure Related content, such as the size of target image storage file as can store target image storage file in index file etc.. The quantity of target image cache file can be multiple.
Specifically, being screened according to target image index file to target image storage file, the mesh after being screened Logo image storage file may include: to read target image index file, obtain picture material mark;According to picture material mark Know and Effective judgement is carried out to target image storage file;Target image storage file is carried out according to the result of Effective judgement Screening, the target image storage file after being screened.Wherein, picture material mark can be to deposit in target image index file Relevant information in the target cache file of storage.By reading its int to every 4 bytes of content in target image index file It is worth the meaning represented, available picture material mark.Int can indicate integer variable, be a kind of data type, for defining One integer variable, there is different sizes in different translation and compiling environments, and different compilation run environment are of different sizes.
Referring specifically to Fig. 5, Fig. 5 is the schematic diagram of the image index file in the embodiment of the present invention two, in figure " 88130000 " indicate maximum and how many image buffer storages, " 0000800C " are supported to indicate maximum and how many memory storage supported, Which storage file what " 00000000 " indicated current active is, " 04000000 " how many a images that indicated currently stored, " 24CF0000 " indicates the size of target image memory buffers file, and " 05000000 " indicates current target image index file Version, " 5E032B3F " indicate the md5 code of current target image storage file.
Validity is carried out to target image storage file according to the picture material of the target image index file of reading mark Whether judgement, i.e. judgement are consistent with the relevant information of target image storage file, if unanimously, can determine that target image stores File is effective, if inconsistent, can determine that target image storage file is invalid.It will be invalid according to the result of Effective judgement Target image storage file is deleted, and the target image storage file after being screened is effective.For the target figure after screening As storage file, S240 is continued to execute.Such as by " 5E032B3F " in Fig. 5 read its int value representative meaning after md5 Code, compared with the md5 code of current target image storage file, if they are the same, then it represents that current target image storage file is effective, if It is different, then it represents that current target image storage file is invalid.
S240, obtain target image cache file in image to be restored image information, image information includes offset And data volume.
S250, the data that image to be restored is extracted according to image information.
Also, image information further includes check information, and the quantity of image to be restored is at least one;It is mentioned according to image information Before the data for taking image to be restored, further includes: believe the verification in each image to be restored in target image storage file Breath is verified, and is determined and is verified successfully image to be restored.
S260, the data of image to be restored are formatted, be restored image.
Further, the description information of image to be restored, i.e. image information can also be stored in target image cache file In can also include description information, the mobile phone of the different model description information can variant, the description information may include store The information such as path, image creation time and picture format.It further include the description information in " 0C440000 " referring to Fig. 3, such as "/ local/image/item/1586+2+1543550200JFIF".According to the description information, restore image format can with it is right The format of image before the deletion answered is consistent.
The technical solution of the present embodiment can carry out global search according to default file suffix name, it is slow to obtain initial pictures File is deposited, initial pictures cache file is screened based on default file head, target image cache file is obtained, according to target Image index file screens target image storage file, the target image storage file after being screened, and obtains target The image information of image to be restored in image storage file, image information includes offset and data volume, according to image information The data for extracting image to be restored format the data of image to be restored, and be restored image.The embodiment of the present invention In be that target image cache file is determined based on preset characteristics of image, will not be cleaned due to the target image cache file or Person's covering, improves the covering surface and serious forgiveness of image recovery, and does not need other equipment and be used cooperatively, and improves The convenience and safety that image restores, further improve the experience effect of user;And it is extensive to target image storage file It increases Effective judgement before multiple and image is verified during recovery, further improve image recovery Accuracy rate.
Embodiment three
Fig. 6 is the structural schematic diagram of the image recovery device in the embodiment of the present invention three, and the present embodiment is applicable to realize The case where image when accidentally deleting in smart machine to image restores.Image recovery device provided by the embodiment of the present invention is executable Image recovery method provided by any embodiment of the invention has the corresponding functional module of execution method and beneficial effect.
The device specifically includes file acquisition module 310 and parsing module 320, in which:
File acquisition module 310, for determining target image cache file according to characteristics of image;
Parsing module 320, for parsing target image cache file, be restored image.
The technical solution of the embodiment of the present invention can determine target image cache file according to characteristics of image, parse target Image buffer storage file, be restored image.It is to determine that target image is cached based on preset characteristics of image in the embodiment of the present invention File improves the covering surface and serious forgiveness of image recovery since the target image cache file will not be cleaned or cover, And it does not need other equipment to be used cooperatively, improves the convenience and safety of image recovery, further improve The experience effect of user.
Further, target image cache file includes target image index file and target image storage file;The dress It sets further include:
Screening module is screened for being screened according to target image index file to target image storage file Target image storage file afterwards.
Further, screening module is specifically used for:
Target image index file is read, picture material mark is obtained;
Effective judgement is carried out to target image storage file according to picture material mark;
Target image storage file is screened according to the result of Effective judgement, the target image after being screened is deposited Store up file.
Further, parsing module 320 includes:
Information acquisition unit, for obtaining the image information of the image to be restored in target image cache file, image letter Breath includes offset and data volume;
Extraction unit, for extracting the data of image to be restored according to image information;
Format conversion unit is formatted for the data to image to be restored, and be restored image.
Further, image information further includes check information, and the quantity of image to be restored is at least one;
Parsing module 320 further include:
Verification unit, for carrying out school to the check information in each image to be restored in target image storage file It tests, determines and verify successfully image to be restored.
Further, characteristics of image includes default file suffix name and default file head, and file acquisition module 310 includes:
Global search unit obtains initial pictures cache file for carrying out global search according to default file suffix name;
Initial screening unit obtains target figure for screening based on default file head to initial pictures cache file As cache file.
Further, target image cache file is stored based on BlobCache caching mechanism.
It is extensive that image provided by any embodiment of the invention can be performed in image recovery device provided by the embodiment of the present invention Compound method has the corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 7 is the structural schematic diagram of the equipment in the embodiment of the present invention four.Fig. 7, which is shown, to be suitable for being used to realizing that the present invention is real Apply the block diagram of the example devices 412 of mode.The equipment 412 that Fig. 7 is shown is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in fig. 7, equipment 412 is showed in the form of common apparatus.The component of equipment 412 can include but is not limited to: One or more processor 416, storage device 428 connect different system components (including storage device 428 and processor 416) bus 418.
Bus 418 indicates one of a few class bus structures or a variety of, including storage device bus or storage device control Device processed, peripheral bus, graphics acceleration port, processor or total using the local of any bus structures in a variety of bus structures Line.For example, these architectures include but is not limited to industry standard architecture (Industry Subversive Alliance, ISA) bus, microchannel architecture (Micro Channel Architecture, MAC) bus is enhanced Isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local are total Line and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Equipment 412 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment The usable medium of 412 access, including volatile and non-volatile media, moveable and immovable medium.
Storage device 428 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory, RAM) 430 and/or cache memory 432.Equipment 412 can be wrapped further Include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system 434 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although It is not shown in Fig. 7, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and To removable anonvolatile optical disk, such as CD-ROM (Compact Disc Read-Only Memory, CD-ROM), number Optic disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write CD drive Dynamic device.In these cases, each driver can be connected by one or more data media interfaces with bus 418.It deposits Storage device 428 may include at least one program product, which has one group of (for example, at least one) program module, this A little program modules are configured to perform the function of various embodiments of the present invention.
Program/utility 440 with one group of (at least one) program module 442 can store in such as storage dress It sets in 428, such program module 442 includes but is not limited to operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.Program module 442 usually execute function and/or method in embodiment described in the invention.
Equipment 412 can also be logical with one or more external equipments 414 (such as keyboard, direction terminal, display 424 etc.) Letter, can also be enabled a user to one or more terminal interact with the equipment 412 communicate, and/or with make the equipment 412 Any terminal (such as network interface card, modem etc.) communication that can be communicated with one or more of the other computing terminal.This Kind communication can be carried out by input/output (I/O) interface 422.Also, equipment 412 can also by network adapter 420 with One or more network (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, for example, internet) communication.As shown in fig. 7, network adapter 420 passes through bus 418 and equipment 412 Other modules communication.It should be understood that although not shown in the drawings, other hardware and/or software mould can be used with bonding apparatus 412 Block, including but not limited to: microcode, terminal driver, redundant processor, external disk drive array, disk array (Redundant Arrays of Independent Disks, RAID) system, tape drive and data backup storage system System etc..
The program that processor 416 is stored in storage device 428 by operation, thereby executing various function application and number According to processing, such as realize image recovery method provided by the embodiment of the present invention, this method comprises:
Target image cache file is determined according to characteristics of image;
Target image cache file is parsed, be restored image.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The image recovery method as provided by the embodiment of the present invention is realized when program is executed by processor, this method comprises:
Target image cache file is determined according to characteristics of image;
Target image cache file is parsed, be restored image.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on remote computer or terminal completely on the remote computer on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service Quotient is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of image recovery method characterized by comprising
Target image cache file is determined according to characteristics of image;
The target image cache file is parsed, be restored image.
2. the method according to claim 1, wherein the target image cache file includes target image index File and target image storage file;
After determining target image cache file according to characteristics of image, further includes:
Target image storage file is screened according to the target image index file, the target image after being screened is deposited Store up file.
3. according to the method described in claim 2, it is characterized in that, being deposited according to the target image index file to target image Storage file is screened, the target image storage file after being screened, comprising:
The target image index file is read, picture material mark is obtained;
Effective judgement is carried out to the target image storage file according to described image content identification;
The target image storage file is screened according to the result of the Effective judgement, the target figure after being screened As storage file.
4. be restored figure the method according to claim 1, wherein parsing the target image cache file Picture, comprising:
Obtain the image information of the image to be restored in the target image cache file, described image information include offset and Data volume;
The data of the image to be restored according to described image information extraction;
The data of the image to be restored are formatted, be restored image.
5. described to extensive according to the method described in claim 4, it is characterized in that, described image information further includes check information The quantity of complex pattern is at least one;
Before the data of the image to be restored according to described image information extraction, further includes:
Check information in each image to be restored in the target image storage file is verified, determination verifies successfully Image to be restored.
6. the method according to claim 1, wherein described image feature includes default file suffix name and presets File header determines target image cache file according to characteristics of image, comprising:
Global search is carried out according to the default file suffix name, obtains initial pictures cache file;
The initial pictures cache file is screened based on the default file head, obtains target image cache file.
7. the method according to claim 1, wherein the target image cache file is slow based on BlobCache Deposit mechanism storage.
8. a kind of image recovery device characterized by comprising
File acquisition module, for determining target image cache file according to characteristics of image;
Parsing module, for parsing the target image cache file, be restored image.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now image recovery method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The image recovery method as described in any in claim 1-7 is realized when execution.
CN201910312291.0A 2019-04-18 2019-04-18 Image recovery method, device, equipment and storage medium Pending CN110018930A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910312291.0A CN110018930A (en) 2019-04-18 2019-04-18 Image recovery method, device, equipment and storage medium
PCT/CN2019/118986 WO2020211371A1 (en) 2019-04-18 2019-11-15 Image restoration method and apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910312291.0A CN110018930A (en) 2019-04-18 2019-04-18 Image recovery method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110018930A true CN110018930A (en) 2019-07-16

Family

ID=67191667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910312291.0A Pending CN110018930A (en) 2019-04-18 2019-04-18 Image recovery method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110018930A (en)
WO (1) WO2020211371A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020211371A1 (en) * 2019-04-18 2020-10-22 苏州开心盒子软件有限公司 Image restoration method and apparatus, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140250076A1 (en) * 2008-09-05 2014-09-04 Commvault Systems, Inc. Image level copy or restore, such as image level restore without knowledge of data object metadata
CN104050103A (en) * 2014-06-06 2014-09-17 华中科技大学 Cache replacement method and system for data recovery
US20150149693A1 (en) * 2013-11-25 2015-05-28 Sandisk Technologies Inc. Targeted Copy of Data Relocation
CN105468987A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Data processing method and device
CN108009233A (en) * 2017-11-29 2018-05-08 北京锐安科技有限公司 A kind of image restoring method, apparatus, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870361A (en) * 2014-03-21 2014-06-18 小米科技有限责任公司 Image recovery method and device
CN105912591A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Method and device for looking back image documents and mobile terminal
CN107748780B (en) * 2017-10-20 2020-07-10 Oppo广东移动通信有限公司 A recovery method and device for recycle bin files
CN108874586B (en) * 2018-06-06 2022-02-08 Oppo广东移动通信有限公司 Data recovery method and related product
CN110018930A (en) * 2019-04-18 2019-07-16 苏州开心盒子软件有限公司 Image recovery method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140250076A1 (en) * 2008-09-05 2014-09-04 Commvault Systems, Inc. Image level copy or restore, such as image level restore without knowledge of data object metadata
US20150149693A1 (en) * 2013-11-25 2015-05-28 Sandisk Technologies Inc. Targeted Copy of Data Relocation
CN104050103A (en) * 2014-06-06 2014-09-17 华中科技大学 Cache replacement method and system for data recovery
CN105468987A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Data processing method and device
CN108009233A (en) * 2017-11-29 2018-05-08 北京锐安科技有限公司 A kind of image restoring method, apparatus, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
????.????.??: "相册磁盘缓存分析", 《CSDN》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020211371A1 (en) * 2019-04-18 2020-10-22 苏州开心盒子软件有限公司 Image restoration method and apparatus, device and storage medium

Also Published As

Publication number Publication date
WO2020211371A1 (en) 2020-10-22

Similar Documents

Publication Publication Date Title
WO2007032972A1 (en) Extensible visual effects on active content in user interfaces
US20190012325A1 (en) Method and Apparatus for Presenting To-Be-Cleaned Data, and Electronic Device
CN109471851A (en) Data processing method, device, server and storage medium
CN108628738A (en) The generation method and device of application programming interface test case
CN111866577A (en) Screen recording method, electronic device, and computer-readable storage medium
CN104731530A (en) Mobile terminal and file management method applied to same
CN109634625A (en) A kind of OpenStack dispositions method and system based on Clonezilla
CN114721964A (en) A method, device, equipment and medium for automatic generation of test cases
CN112506878B (en) File processing method, device, storage medium and electronic device
CN108984339B (en) Data recovery method and related product
US10031764B2 (en) Managing executable files
CN111008934B (en) Scene construction method, device, equipment and storage medium
US10318612B2 (en) System and method for implementing screen capture
CN108874441A (en) A kind of board configuration method, device, server and storage medium
CN110018930A (en) Image recovery method, device, equipment and storage medium
CN109542604A (en) The method, apparatus, equipment and storage medium of grouting socket in thread
CN107977436A (en) Method, device, terminal and storage medium for generating file name of screen recording file
CN110347597B (en) Interface testing method and device of picture server, storage medium and mobile terminal
CN109522174A (en) Control adb enabled method, apparatus, terminal and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN113438419B (en) Camera starting method and device and electronic equipment
WO2023143545A1 (en) Resource processing method and apparatus, electronic device, and computer-readable storage medium
JP2022083418A (en) Optical character recognition segmentation and processing methods, computer programs, hardware devices (optical character recognition segmentation)
CN114064652A (en) Data processing method and device, computer equipment and storage medium
CN112802134A (en) Coding method and device of three-dimensional model and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716