CN106097242A - A kind of method for correcting of picture recombination error - Google Patents

A kind of method for correcting of picture recombination error Download PDF

Info

Publication number
CN106097242A
CN106097242A CN201610380558.6A CN201610380558A CN106097242A CN 106097242 A CN106097242 A CN 106097242A CN 201610380558 A CN201610380558 A CN 201610380558A CN 106097242 A CN106097242 A CN 106097242A
Authority
CN
China
Prior art keywords
picture
block
correcting
acquaintance
mcu
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
CN201610380558.6A
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.)
SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd
Original Assignee
SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority to CN201610380558.6A priority Critical patent/CN106097242A/en
Publication of CN106097242A publication Critical patent/CN106097242A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses the method for correcting of a kind of picture recombination error, comprise the following steps: S1: restructuring picture;S2: showing interface;S3: judge whether the picture recombinated is normal picture, normally then preserves picture and terminates;Abnormal then execution S4;S4: delete corresponding piece of picture malformation;S5: at in-memory scanning and calculate similar block;S6: reselect the similar block calculating, is spliced into new picture.Beneficial effects of the present invention is as follows: with form composition and the displaying full picture of block, can delete the erroneous block information in picture;The part of mistake in picture can be chosen and find corresponding piece of error section to be deleted;The high block of phase knowledge and magnanimity can be scanned and extract and splicing in storage device, forming complete and correct picture, the success rate that the image data of raising recovers;Ensure that the complete recovery after loss of data.

Description

A kind of method for correcting of picture recombination error
Technical field
The present invention relates to field of information security technology, particularly to the method for correcting of a kind of picture recombination error.
Background technology
In the 21 century that informationization develops rapidly, computer technology is maked rapid progress, closely bound up with daily life, Storage device data is lost and is tended to individual, and even business unit brings endless worry and trouble, is relating to computer number According in storage work, as in enterprise work, it is immeasurable that business data loses the loss causing, and little Ze Shi company cannot Carrying out the work, enterprises' loss greatly then may being caused heavy and close down, particularly in informatization enterprise, the electronic bits of data of company is just Being their lifeblood, if recovering these data can save enterprise, allowing the loss of enterprise be preferably minimized;As at police field, Perhaps, these data are exactly the electronic evidence of case, if reviewer can obtain the data in more multicomputer, then just Advantageously in the detection early of case, it is also possible to provide more reliable evidence to court;This is to evidence obtaining, particularly data Resume work and have higher requirement.
Have some to recover the software of picture and product and patent at present, but it is not high to revert to power, the picture recovering Inaccurate, recover mistake etc..
Professional knowledge involved in the present invention is as follows:
MCU: be the data of a square array pixel in image.In picture pixels data stream, information is divided into One section of minimum code unit (Minimum Coded Unit, MCU) data stream connecing one section.Inside each MCU, data Order is Y, Cr, Cb.If a color component has multiple data cell, then order is from left to right, from top to bottom.Each MCU is divided into again several data cells.The size of data cell must be 8*8, so the data cell number of each MCU is Hmax*Vmax, Hmax are horizontal decimation factor maximums in tri-components of Y, Cr, Cb, and Vmax is Vertical Sampling factor maximum.
Content of the invention
The present invention is directed to the defect of prior art, provide the method for correcting of a kind of picture recombination error, can effectively solve The problem that certainly above-mentioned prior art exists.
The method for correcting of a kind of picture recombination error, comprises the following steps:
S1: restructuring picture;
S2: the picture completing restructuring carries out showing interface;
S3: by observing, see whether the picture of restructuring is normal picture, normally then preserves picture and terminates;Abnormal then Perform S4;
S4: choose and delete corresponding piece of picture malformation;
S5: according to the normal segments of picture, at in-memory scanning and calculate similar block;
S6: reselect the similar block calculating, is spliced into new picture, is shown, and extremely normally and preserves to picture.
As preferably, showing that interface is broadly divided into exposition and block message part in described S2, block message part shows Pictorial information and all block messages of composition picture, block one button of correspondence, after exposition is the restructuring of whole picture Appearance show area;
The corresponding multiple mcu values of each block, can calculate pictorial information by mcu value, also just can calculate this pieces of debris Regional address in the drawings;
As preferably, described S4 chooses the unmatched part with picture, by the deletion of corresponding piece of this part MCU address;
As preferably, the detailed step of described S5 is as follows:
S51: choose the normal blocks before picture malformation, as match block;
S52: scan all free blocks in storage device, and carry out phase knowledge and magnanimity calculating with match block;
S53: if phase knowledge and magnanimity are more than the threshold value preset, think and be probably the acquaintance block of picture, screened out.
The detailed step of described S6 is as follows:
S61: by all of acquaintance block arrangement;
S62: select an acquaintance block, in splicing to artwork piece;
S63: check that whether picture is correct;If correct, terminate;Continue if incorrect this block of deletion takes next acquaintance block Coupling is till picture splices correctly or do not has remaining acquaintance block.
Compared with prior art it is an advantage of the current invention that: with form composition and the displaying full picture of block, can delete Erroneous block information in picture;The part of mistake in picture can be chosen and find corresponding piece of error section to be deleted;Can be Scanning the high block of phase knowledge and magnanimity in storage device and extracting and splicing, forming complete and correct picture, the image data of raising is extensive Multiple success rate;Ensure that the complete recovery after loss of data.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, by the following examples, the present invention is done into One step describes in detail.
The method for correcting of a kind of picture recombination error, comprises the following steps:
S1: restructuring picture;(method of this restructuring picture is patent name: a kind of based on data phase in JPEG picture file Like the fragment recombination method of degree, the patent No.: disclosed in 201511030662.4)
S2: the picture completing restructuring carries out showing interface;
S3: by observing, see whether the picture of restructuring is normal picture, normally then preserves picture and terminates;Abnormal then Perform S4;
S4: choose and delete corresponding piece of picture malformation;
S5: according to the normal segments of picture, at in-memory scanning and calculate similar block;
S6: reselect the similar block calculating, is spliced into new picture, is shown, and extremely normally and preserves to picture.
Described S2 showing, interface is broadly divided into exposition and block message part, left-hand component display pictorial information and All block messages of composition picture, block one button of correspondence, the right is the appearance show area after whole picture is recombinated;
The corresponding multiple mcu values of each pieces of debris, we can calculate pictorial information by mcu value, also just can calculate This pieces of debris region in the drawings;
Picture has horizontal mcu number and longitudinal mcu number, is similar to the resolution ratio of picture, and each block has mcu number, by this 3 Individual value may determine that the corresponding in the drawings address of block.The horizontal mcu of such as picture has 50, and longitudinal mcu has 100, both a total of 5000 mcu, a block has 150 mcu, and block is just in the address of the 1st to the 150th mcu of figure, and two blocks have 200 mcu, It is exactly the address of the 151st to the 350th mcu in the drawings.
Described S4 chooses the unmatched part with picture, by the deletion of corresponding piece of this part MCU address;
The detailed step of described S5 is as follows:
S51: choose the normal blocks before picture malformation, as match block;
S52: scan all free blocks in storage device, and carry out phase knowledge and magnanimity calculating with match block;(the calculating of phase knowledge and magnanimity Method is in the patent No.: 201511030662.4 disclosures)
S53: if phase knowledge and magnanimity are more than the threshold value (threshold value of similarity: Similarity value must be greater than 93%, it is stipulated that model preset Enclosing is to be manually set, and can be set as between 93% to 100%, it is also possible to set between 95% to 97%) then think and be probably The acquaintance block of picture, screened out.
The detailed step of described S6 is as follows:
S61: by all of acquaintance block arrangement;
S62: select an acquaintance block, in splicing to artwork piece;
S63: check that whether picture is correct;If correct, terminate;Continue if incorrect this block of deletion takes next acquaintance block Coupling is till picture splices correctly or do not has remaining acquaintance block.
Those of ordinary skill in the art it will be appreciated that embodiment described here be to aid in reader understanding this Bright implementation, it should be understood that protection scope of the present invention is not limited to such special statement and embodiment.Ability The those of ordinary skill in territory can enlighten according to these technology disclosed by the invention makes various its without departing from essence of the present invention Its various concrete deformation and combination, these deformation and combination are still within the scope of the present invention.

Claims (5)

1. the method for correcting of a picture recombination error, it is characterised in that comprise the following steps:
S1: restructuring picture;
S2: the picture completing restructuring carries out showing interface;
S3: by observing, see whether the picture of restructuring is normal picture, normally then preserves picture and terminates;Abnormal, perform S4;
S4: choose and delete corresponding piece of picture malformation;
S5: according to the normal segments of picture, at in-memory scanning and calculate similar block;
S6: reselect the similar block calculating, is spliced into new picture, is shown, and extremely normally and preserves to picture.
2. the method for correcting of a kind of picture recombination error according to claim 1, it is characterised in that: described S2 shows boundary Face is broadly divided into exposition and block message part, all pieces of letters of block message part display pictorial information and composition picture Breath, block one button of correspondence, exposition is the appearance show area after whole picture is recombinated;
The corresponding multiple mcu values of each block, can calculate pictorial information by mcu value, also just can calculate this pieces of debris at figure In regional address.
3. the method for correcting of a kind of picture recombination error according to claim 2, it is characterised in that: described S4 chooses and schemes The unmatched part of piece, by the deletion of corresponding piece of this part MCU address.
4. the method for correcting of a kind of picture recombination error according to claim 3, it is characterised in that the detailed step of described S5 Rapid as follows:
S51: choose the normal blocks before picture malformation, as match block;
S52: scan all free blocks in storage device, and carry out phase knowledge and magnanimity calculating with match block;
S53: if phase knowledge and magnanimity are more than the threshold value preset, think and be probably the acquaintance block of picture, screened out.
5. the method for correcting of a kind of picture recombination error according to claim 4, it is characterised in that the detailed step of described S6 Rapid as follows:
S61: by all of acquaintance block arrangement;
S62: select an acquaintance block, in splicing to artwork piece;
S63: check that whether picture is correct;If correct, terminate;If incorrect this block of deletion takes next acquaintance block continues coupling Till picture splices correctly or does not has remaining acquaintance block.
CN201610380558.6A 2016-05-31 2016-05-31 A kind of method for correcting of picture recombination error Pending CN106097242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610380558.6A CN106097242A (en) 2016-05-31 2016-05-31 A kind of method for correcting of picture recombination error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610380558.6A CN106097242A (en) 2016-05-31 2016-05-31 A kind of method for correcting of picture recombination error

Publications (1)

Publication Number Publication Date
CN106097242A true CN106097242A (en) 2016-11-09

Family

ID=57229878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610380558.6A Pending CN106097242A (en) 2016-05-31 2016-05-31 A kind of method for correcting of picture recombination error

Country Status (1)

Country Link
CN (1) CN106097242A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682024A (en) * 2011-03-11 2012-09-19 中国科学院高能物理研究所 Method for recombining incomplete JPEG file fragmentation
CN102937949A (en) * 2012-10-15 2013-02-20 福建榕基软件股份有限公司 Method and system for checking English spelling in rich text editor
CN103679678A (en) * 2013-12-18 2014-03-26 山东大学 Semi-automatic splicing recovery method for character characteristic rectangular scraps of paper
JP2015077199A (en) * 2013-10-15 2015-04-23 Hoya株式会社 Confocal endoscope system
CN105183877A (en) * 2015-09-18 2015-12-23 四川效率源信息安全技术股份有限公司 Method for reorganizing docx file fragmentation data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682024A (en) * 2011-03-11 2012-09-19 中国科学院高能物理研究所 Method for recombining incomplete JPEG file fragmentation
CN102937949A (en) * 2012-10-15 2013-02-20 福建榕基软件股份有限公司 Method and system for checking English spelling in rich text editor
JP2015077199A (en) * 2013-10-15 2015-04-23 Hoya株式会社 Confocal endoscope system
CN103679678A (en) * 2013-12-18 2014-03-26 山东大学 Semi-automatic splicing recovery method for character characteristic rectangular scraps of paper
CN105183877A (en) * 2015-09-18 2015-12-23 四川效率源信息安全技术股份有限公司 Method for reorganizing docx file fragmentation data

Similar Documents

Publication Publication Date Title
CN102184378B (en) Method for cutting portable data file (PDF) 417 standard two-dimensional bar code image
JP4557866B2 (en) Mixed code, mixed code generation method and apparatus, and recording medium
US20220156476A1 (en) Method, device, and system for generating, repairing, and identifying an incomplete qr code
JP2006134337A (en) Method and apparatus for decoding mixed code, and recording medium
CN103069430B (en) Two-dimensional code reader and program
CN103020929B (en) The broken document recovery method of shredder based on character features
US9959586B1 (en) System, method, and computer program for encoding and decoding a unique signature in a video file as a set of watermarks
TW201719505A (en) Methods, apparatus, and tangible computer readable storage media to extract text from imaged documents
CN101453575A (en) Video subtitle information extracting method
CN112601068B (en) Video data augmentation method, device and computer readable medium
WO2023045277A1 (en) Method and device for converting table in image into spreadsheet
CN105677797B (en) A kind of fragment recombination method based on data similarity in JPEG picture file
CN102546101A (en) Non-feedback optical channel unidirectional transmission method based on connection type multi-system bar code
CN108961193A (en) A kind of image repair method, device and storage medium
CN113901434B (en) Display terminal identity recognition method, system and computer readable storage medium
CN108052955A (en) A kind of high-precision braille recognition methods and system
CN106097242A (en) A kind of method for correcting of picture recombination error
Ruban et al. The model and the method for forming a mosaic sustainable marker of augmented reality
CN107958261B (en) Braille point detection method and system
CN104463156B (en) Digital piano coding-decoding method
Dean et al. Quick layered response (qlr) codes
CN105260993A (en) Hyperspectral image stripe missing restoring method based on edge constraint and self-adaptive morphological filter
CN111935106B (en) Method for collecting labeled data set by using improved verification code
CN109274858B (en) Color separation image restoration method
CN108062548A (en) A kind of braille side's adaptive location method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109

RJ01 Rejection of invention patent application after publication