CN107507143A - A kind of image restoring method and terminal - Google Patents

A kind of image restoring method and terminal Download PDF

Info

Publication number
CN107507143A
CN107507143A CN201710691666.XA CN201710691666A CN107507143A CN 107507143 A CN107507143 A CN 107507143A CN 201710691666 A CN201710691666 A CN 201710691666A CN 107507143 A CN107507143 A CN 107507143A
Authority
CN
China
Prior art keywords
parked
image
region
terminal
reparation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710691666.XA
Other languages
Chinese (zh)
Other versions
CN107507143B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710691666.XA priority Critical patent/CN107507143B/en
Publication of CN107507143A publication Critical patent/CN107507143A/en
Application granted granted Critical
Publication of CN107507143B publication Critical patent/CN107507143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of picture restoring method and terminal, information that this method can completely in display image strengthens display effect, and this method includes:Parked image is obtained, receives the selection instruction for treating restored image, and parked region is determined from parked image according to selection instruction;Being searched from pre-set image storehouse includes the reparation image in parked region;Determine parked object corresponding to parked region from repairing in image, and by parked object adjust to parked region identical displaying ratio;In parked image, the parked object after adjustment is covered to parked region, obtains restoring the parked image completed.

Description

A kind of image restoring method and terminal
Technical field
The present invention relates to image processing field, more particularly to a kind of image restoring method and terminal.
Background technology
With the fast development of electronics technology, variation is presented in the function of the mobile terminal such as smart mobile phone, flat board, uses Family can not only utilize mobile terminal to realize the basic communication functions such as make a phone call, send short messages, and can more be regarded by mobile terminal The operations such as frequency broadcasting, file-sharing, picture shooting.It is that mobile terminal can on network, locally be shot by obtaining or other The image that terminal is sent, to obtain the various information on image.
However, due to the difference of shooting angle, the information in image can be blocked by other objects, and now, user cannot The complete information obtained on image, the problem of causing display effect difference.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of image restoring method and terminal, can be complete Information in whole display image, strengthen display effect.
The technical proposal of the invention is realized in this way:
The embodiment of the present invention provides a kind of image restoring method, and methods described includes:
Parked image is obtained, receives the selection instruction to the parked image, and according to the selection instruction from institute State and parked region is determined in parked image;
Being searched from pre-set image storehouse includes the reparation image in the parked region;
Parked object corresponding to the parked region is determined from the reparation image, and by the parked thing Body adjust to the parked region identical displaying ratio;
In the parked image, the parked object after the adjustment is covered to the parked region Place, obtain restoring the parked image completed.
In the above-mentioned methods, being searched in the storehouse from pre-set image includes first image in the parked region, including:
By the parked region compared with the first image in the pre-set image storehouse;
When described first image includes the parked region, described first image is defined as the reparation figure Picture.
In the above-mentioned methods, described adjust the parked object to parked region identical shows ratio Example, including:
Determine the first displaying ratio corresponding to parked region described in the parked image;
Current displaying ratio corresponding to the parked object is adjusted to first displaying ratio.
In the above-mentioned methods, the parked object by after the adjustment is covered to the parked region, Including:
Region in the parked object after the adjustment in addition to the parked region is defined as restoring area;
On the parked image, the restoring area is covered to the junction in the parked region.
In the above-mentioned methods, it is described that described first image is defined as the reparation image, including:
Described first image is ranked up from big to small according to the matching degree with the area to be repaired;
The described first image maximum with the area to be repaired matching degree is defined as the reparation image.
The embodiment of the present invention provides a kind of terminal, and the terminal includes:Processor, memory and communication bus;It is described logical Letter bus is used to realize the connection communication between the processor and the memory;The processor is used to perform the storage The second operation program stored in device, to realize following steps:
Parked image is obtained, receives the selection instruction to the parked image, and according to the selection instruction from institute State and parked region is determined in parked image;
Being searched from pre-set image storehouse includes the reparation image in the parked region;
Parked object corresponding to the parked region is determined from the reparation image, and by the parked thing Body adjust to the parked region identical displaying ratio;
In the parked image, the parked object after the adjustment is covered to the parked region Place, obtain restoring the parked image completed.
In above-mentioned terminal, the processor, it is additionally operable to the in the parked region and the pre-set image storehouse One image is compared;
When described first image includes the parked region, described first image is defined as the reparation figure Picture.
In above-mentioned terminal, the processor, it is additionally operable to determine that parked region described in the parked image is corresponding The first displaying ratio;
Current displaying ratio corresponding to the parked object is adjusted to first displaying ratio.
In above-mentioned terminal, the processor, it is additionally operable to treat except described in the parked object after the adjustment The region restored outside region is defined as restoring area;
On the parked image, the restoring area is covered to the junction in the parked region;
The processor, be additionally operable to described first image according to the matching degree with the area to be repaired from big to small It is ranked up;
The described first image maximum with the area to be repaired matching degree is defined as the reparation image.
The embodiment of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has one Individual or multiple programs, one or more of programs can be by one or more computing devices, to realize following steps:
Parked image is obtained, receives the selection instruction to the parked image, and according to the selection instruction from institute State and parked region is determined in parked image;
Being searched from pre-set image storehouse includes the reparation image in the parked region;
Parked object corresponding to the parked region is determined from the reparation image, and by the parked thing Body adjust to the parked region identical displaying ratio;
In the parked image, the parked object after the adjustment is covered to the parked region Place, obtain restoring the parked image completed.
The embodiments of the invention provide a kind of image restoring method and terminal, obtains parked image, receives to parked The selection instruction of image, and parked region is determined from parked image according to selection instruction;Looked into from pre-set image storehouse Look for the reparation image including parked region;Parked object corresponding to parked region is determined in image from repairing, and will Parked object adjust to parked region identical displaying ratio;In parked image, by the parked thing after adjustment Body is covered to parked region, obtains restoring the parked image completed.Using above-mentioned technic relization scheme, terminal is obtained and treated Restored image, and parked region is determined from parked image, terminal is searched from pre-set image storehouse includes parked area The reparation image in domain, parked object corresponding to parked region is determined from repairing in image, and treat and restore object progress Adjustment, and cover to the parked region of parked image, terminal utilizes the reparation image in pre-set image storehouse to parked The parked region of image is repaired, and obtains the unobstructed parked image in parked region, being capable of complete display image On information, strengthen display effect.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart one of image restoring method provided in an embodiment of the present invention;
Fig. 4 is the signal that parked region is determined in a kind of exemplary image from parked provided in an embodiment of the present invention Figure one;
Fig. 5 is the signal that parked region is determined in a kind of exemplary image from parked provided in an embodiment of the present invention Figure two;
Fig. 6 is that a kind of exemplary building 1 on picture A provided in an embodiment of the present invention carries out completing showing for display It is intended to;
Fig. 7 is a kind of flowchart 2 of image restoring method provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special For moving outside purpose element, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:Sensor 101, display unit 102, user input unit 103, interface unit 104, memory 105th, the part such as processor 106, power supply 103 and radio frequency unit 104.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 106;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
Mobile terminal 100 also includes at least one sensor 101, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1021, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1021 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 102 is used for the information for showing the information inputted by user or being supplied to user.Display unit 102 can wrap Display panel 1021 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1021.
User input unit 103 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 103 may include contact panel 1031 with And other input equipments 1032.Contact panel 1031, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1031 or in contact panel 1031 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1031 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 106, and the order sent of reception processing device 106 and can be performed.In addition, can To realize contact panel 1031 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1031, user input unit 103 can also include other input equipments 1032.Specifically, other input equipments 1032 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1031 can cover display panel 1021, detect thereon when contact panel 1031 or After neighbouring touch operation, processor 106 is sent to determine the type of touch event, is followed by subsequent processing device 106 according to touch thing The type of part provides corresponding visual output on display panel 1021.Although in Fig. 1, contact panel 1031 and display panel 1021 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1031 and display panel 1021 is integrated, is not done herein specifically Limit.
Interface unit 104 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 104 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 105 can be used for storage software program and various data.Memory 105 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 105 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 106 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 105, and call and be stored in storage Data in device 105, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 106 may include one or more processing units;Preferably, processor 106 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 106.
Mobile terminal 100 can also include the power supply 107 (such as battery) to all parts power supply, it is preferred that power supply 107 Can be logically contiguous by power-supply management system and processor 106, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communication network second, each embodiment of the inventive method is proposed.
Embodiment one
The embodiment of the present invention provides a kind of image restoring method, as shown in figure 3, this method can include:
S101, parked image is obtained, receive and treat the selection instruction of restored image, and according to selection instruction from parked Parked region is determined in image.
A kind of image restoring method provided in an embodiment of the present invention is under the scene being blocked when the object image.
In the embodiment of the present invention, terminal can by shoot an image, receive other-end send an image or Select an image to obtain parked image from photograph album, specifically selected according to actual conditions, the embodiment of the present invention Specific restriction is not done.
In the embodiment of the present invention, terminal obtains parked image, and terminal can voluntarily treat restored image and be handled The all objects on parked image are isolated, so that user selects one or more objects as parked from all objects Region, terminal can also indicate that user is rule on parked image, to iris out the parked region that user specifies, specifically Selected according to actual conditions, the embodiment of the present invention does not do specific restriction.
In the embodiment of the present invention, when user is being rule to iris out the parked region specified on parked image, The scribing position of terminal recognition user, the tone of the peripheral image vegetarian refreshments of the scribing position is determined, scribing position is adjusted to adjacent At the pixel that tone differs greatly, so that it is determined that going out parked region.
In the embodiment of the present invention, terminal can be the fixed terminal with display screen or the shifting with display screen Dynamic terminal.
In the embodiment of the present invention, fixed terminal can be computer etc., and mobile terminal includes but is not limited to mobile phone, pen Remember this computer, camera, palm PC (PDA, Personal Digital Assistant), tablet personal computer (PAD, Portable Android Device), portable electronic device (PMP, Portable Media Player), guider etc..Terminal Internet can be connected to, wherein, the mode of connection can be that the mobile internet provided by operator is attached, also Can carry out network connection by accessing WAP.
In the embodiment of the present invention, if mobile terminal has operating system, the operating system can be UNIX, Linux, Windows, Android, Windows Phone etc..
It should be noted that species, shape, size to the display screen in terminal etc. is not limited, it is exemplary, eventually Display screen on end can be LCDs etc..
In the embodiment of the present invention, display screen is used for the interface for providing a user man-machine interaction, and display screen can be used as fingerprint to know Other region, to carry out fingerprint recognition operation.
, can be by identifying different fingers when carrying out fingerprint recognition using terminal touch panel in the embodiment of the present invention Different operations is performed respectively, for example can start application program with forefinger long-press screen, and little finger of toe and thumb are simultaneously by then Messages application etc. can be opened.
Optionally, if user worries that whole contact panel all supports fingerprint identification technology to bring the serious of mobile phone electricity Consumption, the difference that whole contact panel can also be divided between fingerprint recognition and routine use, by " reinforcing susceptibility " (ES, Enhanced Sensitivity) identify that user operates to the fingerprint recognition of terminal, and by " common susceptibility " (RS, Reduced Sensitivity) identify that user operates to the daily control of terminal.
Exemplary, as shown in figure 4, having image 1, image 2, image 3 and image 4 on picture A, user clicks on image 1, this When, user selects image 1 to be used as parked image.
Exemplary, as shown in figure 5, user is rule at picture A image 1, end side adjustment user's line Position, and image 1 is defined as parked image.
S102, the reparation image for including parked region is searched from pre-set image storehouse.
After terminal determines the parked region of parked image, terminal will determine to include complete parked region Reparation image, specifically, terminal searches the reparation image for including parked region from pre-set image storehouse.
Pre-set image storehouse is provided with the embodiment of the present invention, in terminal, pre-set image stock contains what is downloaded from network With the image preserved in this map office, after terminal determines parked region, terminal is by parked region and pre-set image storehouse Matched, when the first image in pre-set image storehouse includes parked region, the first image be defined as to repair image, To repair parked image.
In the embodiment of the present invention, terminal determines the tone of each pixel in parked region, and in pre-set image storehouse It is middle to find first image consistent with the pixel tone in parked region, using the first image as reparation image.
S103, parked object corresponding to parked region is determined from reparation image, and parked object is adjusted To with parked region identical displaying ratio.
After terminal finds the reparation image including parked region, terminal determines parked area from reparation image Parked object corresponding to domain, and by parked object adjust to parked region identical displaying ratio.
In the embodiment of the present invention, terminal determines parked object corresponding to parked region from reparation image, then The first displaying ratio corresponding to parked region in parked image is determined, terminal will currently show ratio corresponding to parked object Example is adjusted to the first displaying ratio, and now, the parked object after adjustment is identical with the displaying ratio in parked region, so, Terminal can just cover the parked object after adjustment to the parked region of parked image.
In the embodiment of the present invention, each object repaired in image possesses different tones, and terminal determines parked region Tone, and according to the very big adjacent pixel of hue difference from repair determine parked region in image corresponding to parked thing The edge pixel point of body, so as to determine parked object from reparation image.
S104, in parked image, the parked object after adjustment is covered to parked region, obtains having restored Into parked image.
After terminal adjusts parked object to parked region identical displaying ratio, terminal is in parked figure As in, the parked object after adjustment is covered to parked region, obtains restoring the parked image completed.
In the embodiment of the present invention, the region in the parked object after adjustment in addition to parked region is defined as repairing by terminal Multiple region, then, on parked image, restoring area is covered to the junction in parked region, completion and treats restored map The recuperation of picture;Or terminal directly covers the parked object after adjustment to parked region, completes to parked The recuperation of image, the specific method of release control are selected according to actual conditions, and the embodiment of the present invention does not do specific restriction.
Exemplary, as shown in fig. 6, the building 1 on picture A is blocked by building 2, end side is carried out to picture A Picture reduction technique, complete building 1 is shown on last picture A.
Further, the text information that the parked region in the embodiment of the present invention can also be missing from, now, terminal is just Can according to corresponding to finding the text information of missing in pre-set image storehouse complete text information, and with complete text information To replace the text information of missing.
It is understood that terminal obtains parked image, and parked region, terminal are determined from parked image Being searched from pre-set image storehouse includes the reparation image in parked region, is determined from repairing in image corresponding to parked region Parked object, and treat recovery object and be adjusted, and cover to the parked region of parked image, terminal is using in advance If the parked region that the reparation image in image library treats restored image is repaired, obtain that parked region is unobstructed to treat Restored image, information that can completely in display image, strengthen display effect.
Embodiment two
The embodiment of the present invention provides a kind of image restoring method, as shown in fig. 7, this method can include:
S201, terminal obtain parked image, and terminal receives the selection instruction for treating restored image, and according to selection instruction Parked region is determined from parked image.
A kind of image restoring method provided in an embodiment of the present invention is under the scene being blocked when the object image.
In the embodiment of the present invention, terminal can by shoot an image, receive other-end send an image or Select an image to obtain parked image from photograph album, specifically selected according to actual conditions, the embodiment of the present invention Specific restriction is not done.
In the embodiment of the present invention, terminal obtains parked image, and terminal can voluntarily treat restored image and be handled The all objects on parked image are isolated, so that user selects one or more objects as parked from all objects Region, terminal can also indicate that user is rule on parked image, to iris out the parked region that user specifies, specifically Selected according to actual conditions, the embodiment of the present invention does not do specific restriction.
In the embodiment of the present invention, when user is being rule to iris out the parked region specified on parked image, The scribing position of terminal recognition user, the tone of the peripheral image vegetarian refreshments of the scribing position is determined, scribing position is adjusted to adjacent At the pixel that tone differs greatly, so that it is determined that going out parked region.
In the embodiment of the present invention, terminal can be the fixed terminal with display screen or the shifting with display screen Dynamic terminal.
In the embodiment of the present invention, fixed terminal can be computer etc., and mobile terminal includes but is not limited to mobile phone, pen Remember this computer, camera, PDA, PA, PMP, guider etc..Terminal can be connected to internet, wherein, the mode of connection can To be that the mobile internet provided by operator is attached, can also be by accessing WAP to carry out network Connection.
In the embodiment of the present invention, if mobile terminal has operating system, the operating system can be UNIX, Linux, Windows, Android, Windows Phone etc..
It should be noted that species, shape, size to the display screen in terminal etc. is not limited, it is exemplary, eventually Display screen on end can be LCDs etc..
In the embodiment of the present invention, display screen is used for the interface for providing a user man-machine interaction, and display screen can be used as fingerprint to know Other region, to carry out fingerprint recognition operation.
, can be by identifying different fingers when carrying out fingerprint recognition using terminal touch panel in the embodiment of the present invention Different operations is performed respectively, for example can start application program with forefinger long-press screen, and little finger of toe and thumb are simultaneously by then Messages application etc. can be opened.
Optionally, if user worries that whole contact panel all supports fingerprint identification technology to bring the serious of mobile phone electricity Consumption, the difference that can also divide whole contact panel between fingerprint recognition and routine use, identifies user to end by ES The fingerprint recognition operation at end, and identify that user operates to the daily control of terminal by RS.
Exemplary, as shown in figure 4, having image 1, image 2, image 3 and image 4 on picture A, user clicks on image 1, this When, user selects image 1 to be used as parked image.
Exemplary, as shown in figure 5, user is rule at picture A image 1, end side adjustment user's line Position, and image 1 is defined as parked image.
S202, terminal are by parked region compared with the first image in pre-set image storehouse.
After terminal determines parked region corresponding to parked image, terminal will be by parked region with presetting Image library is compared, and the reparation image for repairing parked region is searched from pre-set image storehouse.
Pre-set image storehouse is provided with the embodiment of the present invention, in terminal, pre-set image stock contains what is downloaded from network With the image preserved in this map office, after terminal determines parked region, terminal is by parked region and pre-set image storehouse In the first image be compared, the reparation image for repairing parked region is searched from pre-set image storehouse.
S203, when the first image includes parked region, terminal by the first image be defined as repair image.
When the comparative result that terminal compares parked region and the first image includes parked region for the first image, First image is defined as repairing the reparation image in parked region by terminal.
In the embodiment of the present invention, terminal determines the tone of each pixel in parked region, and in pre-set image storehouse It is middle to find first image consistent with the pixel tone in parked region, using the first image as reparation image.
In the embodiment of the present invention, the first image can be an image, or multiple images, specifically according to reality Situation is selected, and the embodiment of the present invention does not do specific restriction.
In the embodiment of the present invention, when the first image is multiple images, terminal by multiple images according to area to be repaired Matching degree be ranked up from big to small, an and selection figure maximum with area to be repaired matching degree from multiple images As reparation image.
Further, when the first image does not include parked region, terminal is carried out according to matching degree to the first image Sequence, it will be defined as repairing image with parked Region Matching degree the first image of highest.
S204, terminal determine parked object corresponding to parked region from reparation image, and determine parked figure The first displaying ratio corresponding to parked region as in.
After terminal, which determines, repairs image, terminal determines parked thing corresponding to parked region from reparation image Body, and first displaying ratio in parked region and the current displaying ratio of parked object are determined respectively, so that follow-up shows Show that ratio adjusts.
In the embodiment of the present invention, terminal determines parked object corresponding to parked region from reparation image, then The current displaying ratio of the first displaying ratio corresponding to parked region and parked object in parked image is determined, for rear Continuous displaying ratio adjustment.
In the embodiment of the present invention, each object repaired in image possesses different tones, and terminal determines parked region Tone, and according to the very big adjacent pixel of hue difference from repair determine parked region in image corresponding to parked thing The edge pixel point of body, so as to determine parked object from reparation image.
Current displaying ratio corresponding to parked object is adjusted to the first displaying ratio by S205, terminal.
After terminal determines the first displaying ratio and current displaying ratio, terminal will be current corresponding to parked object Displaying ratio is adjusted to the first displaying ratio.
In the embodiment of the present invention, current displaying ratio corresponding to parked object is adjusted to the first displaying ratio by terminal, Now, the parked object after adjustment is identical with the displaying ratio in parked region, and so, terminal will can just be treated again after adjustment The original is covered to the parked region of parked image.
In the embodiment of the present invention, terminal determines the number of pixel shared by parked region, by shared by parked object Pixel number is proportionally adjusted to pixel number corresponding with shown parked region, is completed the tune of parked object Whole process.
Region in parked object after adjustment in addition to parked region is defined as restoring area by S206, terminal.
When terminal by current displaying ratio is adjusted to the first displaying ratio corresponding to parked object after, terminal will adjust Region in parked object afterwards in addition to parked region is defined as restoring area.
In the embodiment of the present invention, terminal will be picked in the parked object after adjustment with parked region identical region Remove, the region in addition to parked region is defined as restoring area.
S207, terminal cover restoring area to the junction in parked region on parked image.
After terminal determines restoring area, terminal covers restoring area to parked area on parked image The junction in domain.
In the embodiment of the present invention, terminal covers restoring area to the junction in parked region on parked image, The recuperation of restored image is treated in completion.
Exemplary, as shown in fig. 6, the building 1 on picture A is blocked by building 2, end side is carried out to picture A Picture reduction technique, complete building 1 is shown on last picture A.
Further, terminal directly covers the parked object after adjustment to parked region, completes to parked The recuperation of image, the specific method of release control are selected according to actual conditions, and the embodiment of the present invention does not do specific restriction.
Further, the text information that the parked region in the embodiment of the present invention can also be missing from, now, terminal is just Can according to corresponding to finding the text information of missing in pre-set image storehouse complete text information, and with complete text information To replace the text information of missing.
It is understood that terminal obtains parked image, and parked region, terminal are determined from parked image Being searched from pre-set image storehouse includes the reparation image in parked region, is determined from repairing in image corresponding to parked region Parked object, and treat recovery object and be adjusted, and cover to the parked region of parked image, terminal is using in advance If the parked region that the reparation image in image library treats restored image is repaired, obtain that parked region is unobstructed to treat Restored image, information that can completely in display image, strengthen display effect.
Embodiment three
Fig. 8 is the composition structural representation one for the terminal that the embodiment of the present invention proposes, in actual applications, based on embodiment One under the same inventive concept of embodiment two, as shown in figure 8, the terminal 1 of the embodiment of the present invention includes:Processor 10, storage Device 11 and communication bus 12.It should be noted that in an embodiment of the present invention, processor 10 and memory 11 in Fig. 8 divide Processor 106, user input unit 107 and the memory 105 in above-mentioned figure one are not corresponded to.In the process of specific embodiment In, above-mentioned processor 10 can be application-specific IC (ASIC, Application Specific Integrated Circuit), digital signal processor (DSP, Digital Signal Processor), digital signal processing device (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field Programmable Gate Array), CPU, controller, micro-control At least one of device processed, microprocessor.It is to be appreciated that for different equipment, for realizing above-mentioned processor function Electronic device can also be other, and the embodiment of the present invention is not especially limited.
In an embodiment of the present invention, above-mentioned communication bus 12 is used to realize the connection between processor 10 and memory 11 Communication;Above-mentioned processor 10 is used to perform the second operation program stored in memory 11, to realize following steps:
Parked image is obtained, receives the selection instruction to the parked image, and according to the selection instruction from institute State and parked region is determined in parked image;
Being searched from pre-set image storehouse includes the reparation image in the parked region;
Parked object corresponding to the parked region is determined from the reparation image, and by the parked thing Body adjust to the parked region identical displaying ratio;
In the parked image, the parked object after the adjustment is covered to the parked region Place, obtain restoring the parked image completed.
In embodiments of the present invention, further, above-mentioned processor 10, be additionally operable to by the parked region with it is described pre- If the first image in image library is compared;
When described first image includes the parked region, described first image is defined as the reparation figure Picture.
In embodiments of the present invention, further, above-mentioned processor 10, it is additionally operable to determine described in the parked image First displaying ratio corresponding to parked region;
Current displaying ratio corresponding to the parked object is adjusted to first displaying ratio.
In embodiments of the present invention, further, above-mentioned processor 10, it is additionally operable to the parked after the adjustment Region in object in addition to the parked region is defined as restoring area;
On the parked image, the restoring area is covered to the junction in the parked region;
The processor 10, be additionally operable to described first image according to the matching degree with the area to be repaired from greatly to It is small to be ranked up;
The described first image maximum with the area to be repaired matching degree is defined as the reparation image.
The terminal that the embodiment of the present invention proposes, parked image is obtained, receives the selection instruction to the parked image, And parked region is determined from the parked image according to the selection instruction;Being searched from pre-set image storehouse includes institute State the reparation image in parked region;Parked object corresponding to the parked region is determined from the reparation image, And by the parked object adjust to the parked region identical displaying ratio;, will in the parked image The parked object after the adjustment is covered to the parked region, obtains restoring the parked figure completed Picture.As can be seen here, the terminal that the embodiment of the present invention proposes, parked image is obtained, and determines to treat again from parked image Former region, terminal search the reparation image for including parked region from pre-set image storehouse, determine to treat again in image from repairing Parked object corresponding to former region, and treat recovery object and be adjusted, and cover to the parked region of parked image Place, the parked region that terminal treats restored image using the reparation image in pre-set image storehouse are repaired, and obtain parked The unobstructed parked image in region, information that can completely in display image, strengthen display effect.
The embodiment of the present invention provides a kind of computer-readable recording medium, and above computer readable storage medium storing program for executing is stored with one Individual or multiple programs, said one or multiple programs, applied in terminal, can be somebody's turn to do by one or more computing device The method such as embodiment one to embodiment two is realized when program is executed by processor.
Specifically, programmed instruction corresponding to a kind of icon sort method in the present embodiment can be stored in CD, In the storage mediums such as hard disk, USB flash disk, when programmed instruction corresponding with a kind of icon sort method is set by an electronics in storage medium During for reading or be performed, comprise the following steps:
Parked image is obtained, receives the selection instruction to the parked image, and according to the selection instruction from institute State and parked region is determined in parked image;
Being searched from pre-set image storehouse includes the reparation image in the parked region;
Parked object corresponding to the parked region is determined from the reparation image, and by the parked thing Body adjust to the parked region identical displaying ratio;
In the parked image, the parked object after the adjustment is covered to the parked region Place, obtain restoring the parked image completed.
In an embodiment of the present invention, further, from pre-set image storehouse search include the parked region First image, either multiple programs are by said one or multiple computing devices for said one, to realize following steps:
By the parked region compared with the first image in the pre-set image storehouse;
When described first image includes the parked region, described first image is defined as the reparation figure Picture.
In an embodiment of the present invention, further, by the parked object adjust to the parked region Identical displaying ratio, either multiple programs are following by said one or multiple computing devices, specific implementation for said one Step:
Determine the first displaying ratio corresponding to parked region described in the parked image;
Current displaying ratio corresponding to the parked object is adjusted to first displaying ratio.
In an embodiment of the present invention, further, the parked object after by the adjustment is covered to described At parked region, either multiple programs are by said one or multiple computing devices for said one, to realize following steps:
Region in the parked object after the adjustment in addition to the parked region is defined as restoring area;
On the parked image, the restoring area is covered to the junction in the parked region.
In an embodiment of the present invention, further, described first image is being defined as the reparation image, above-mentioned one Individual either multiple programs are by said one or multiple computing devices, to realize following steps:
Described first image is ranked up from big to small according to the matching degree with the area to be repaired;
The described first image maximum with the area to be repaired matching degree is defined as the reparation image.Need It is bright, herein, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, from And process, method, article or the device for include a series of elements not only include those key elements, but also including not bright The other element really listed, or also include for this process, method, article or the intrinsic key element of device.Do not having In the case of more limitations, the key element that is limited by sentence "including a ...", it is not excluded that in the process including the key element, side Other identical element in method, article or device also be present.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

  1. A kind of 1. image restoring method, it is characterised in that methods described includes:
    Parked image is obtained, receives the selection instruction to the parked image, and treated from described according to the selection instruction Parked region is determined in restored image;
    Being searched from pre-set image storehouse includes the reparation image in the parked region;
    Parked object corresponding to the parked region is determined from the reparation image, and the parked object is adjusted It is whole to the parked region identical displaying ratio;
    In the parked image, the parked object after the adjustment is covered to the parked region, obtained To the parked image for restoring completion.
  2. 2. according to the method for claim 1, it is characterised in that being searched in the storehouse from pre-set image includes the parked First image in region, including:
    By the parked region compared with the first image in the pre-set image storehouse;
    When described first image includes the parked region, described first image is defined as the reparation image.
  3. 3. according to the method for claim 1, it is characterised in that described adjust the parked object to described is treated again Former region identical displaying ratio, including:
    Determine the first displaying ratio corresponding to parked region described in the parked image;
    Current displaying ratio corresponding to the parked object is adjusted to first displaying ratio.
  4. 4. according to the method for claim 1, it is characterised in that the parked object by after the adjustment covers At to the parked region, including:
    Region in the parked object after the adjustment in addition to the parked region is defined as restoring area;
    On the parked image, the restoring area is covered to the junction in the parked region.
  5. 5. according to the method for claim 4, it is characterised in that described that described first image is defined as the reparation figure Picture, including:
    Described first image is ranked up from big to small according to the matching degree with the area to be repaired;
    The described first image maximum with the area to be repaired matching degree is defined as the reparation image.
  6. 6. a kind of terminal, it is characterised in that the terminal includes:Processor, memory and communication bus;The communication bus is used In realizing the connection communication between the processor and the memory;The processor is used to perform to store in the memory The second operation program, to realize following steps:
    Parked image is obtained, receives the selection instruction to the parked image, and treated from described according to the selection instruction Parked region is determined in restored image;
    Being searched from pre-set image storehouse includes the reparation image in the parked region;
    Parked object corresponding to the parked region is determined from the reparation image, and the parked object is adjusted It is whole to the parked region identical displaying ratio;
    In the parked image, the parked object after the adjustment is covered to the parked region, obtained To the parked image for restoring completion.
  7. 7. terminal according to claim 6, it is characterised in that
    The processor, it is additionally operable to the parked region compared with the first image in the pre-set image storehouse;When When described first image includes the parked region, described first image is defined as the reparation image.
  8. 8. terminal according to claim 6, it is characterised in that
    The processor, it is additionally operable to determine the first displaying ratio corresponding to parked region described in the parked image;Will Current displaying ratio is adjusted to first displaying ratio corresponding to the parked object.
  9. 9. terminal according to claim 6, it is characterised in that
    The processor, it is additionally operable to the region in the parked object after the adjustment in addition to the parked region is true It is set to restoring area;On the parked image, the restoring area is covered to the junction in the parked region;It is right Described first image is ranked up from big to small according to the matching degree with the area to be repaired;Will be with the area to be repaired The maximum described first image of matching degree is defined as the reparation image.
  10. A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize following steps:
    Parked image is obtained, receives the selection instruction to the parked image, and treated from described according to the selection instruction Parked region is determined in restored image;
    Being searched from pre-set image storehouse includes the reparation image in the parked region;
    Parked object corresponding to the parked region is determined from the reparation image, and the parked object is adjusted It is whole to the parked region identical displaying ratio;
    In the parked image, the parked object after the adjustment is covered to the parked region, obtained To the parked image for restoring completion.
CN201710691666.XA 2017-08-14 2017-08-14 Image restoration method and terminal Active CN107507143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710691666.XA CN107507143B (en) 2017-08-14 2017-08-14 Image restoration method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710691666.XA CN107507143B (en) 2017-08-14 2017-08-14 Image restoration method and terminal

Publications (2)

Publication Number Publication Date
CN107507143A true CN107507143A (en) 2017-12-22
CN107507143B CN107507143B (en) 2021-04-16

Family

ID=60690930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710691666.XA Active CN107507143B (en) 2017-08-14 2017-08-14 Image restoration method and terminal

Country Status (1)

Country Link
CN (1) CN107507143B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861970A (en) * 2019-04-23 2020-10-30 天和防务技术(北京)有限公司 Ancient cultural relic restoration processing method and device, computer equipment and storage medium
CN112184835A (en) * 2020-10-16 2021-01-05 深圳阿图科技有限公司 Method and system for restoring deformation of piano keyboard image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482968A (en) * 2008-01-07 2009-07-15 日电(中国)有限公司 Image processing method and equipment
CN102821228A (en) * 2012-07-16 2012-12-12 西安电子科技大学 Low-rank video background reconstructing method
CN105208281A (en) * 2015-10-09 2015-12-30 广东欧珀移动通信有限公司 Night scene shooting method and device
CN105335935A (en) * 2014-06-11 2016-02-17 富士通株式会社 Image processing apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482968A (en) * 2008-01-07 2009-07-15 日电(中国)有限公司 Image processing method and equipment
CN102821228A (en) * 2012-07-16 2012-12-12 西安电子科技大学 Low-rank video background reconstructing method
CN105335935A (en) * 2014-06-11 2016-02-17 富士通株式会社 Image processing apparatus and method
CN105208281A (en) * 2015-10-09 2015-12-30 广东欧珀移动通信有限公司 Night scene shooting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861970A (en) * 2019-04-23 2020-10-30 天和防务技术(北京)有限公司 Ancient cultural relic restoration processing method and device, computer equipment and storage medium
CN111861970B (en) * 2019-04-23 2023-11-10 天和防务技术(北京)有限公司 Ancient relic restoration processing method and device, computer equipment and storage medium
CN112184835A (en) * 2020-10-16 2021-01-05 深圳阿图科技有限公司 Method and system for restoring deformation of piano keyboard image
CN112184835B (en) * 2020-10-16 2024-01-19 深圳阿图科技有限公司 Deformation recovery method and system for piano keyboard image

Also Published As

Publication number Publication date
CN107507143B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN107526722A (en) A kind of character relation analysis method and terminal
CN107729133A (en) A kind of method, terminal and computer-readable recording medium for running application program
CN107809526A (en) End application sorting technique, mobile terminal and computer-readable recording medium
CN105912919B (en) A kind of unlocked by fingerprint method and terminal
CN107346200A (en) One kind interval screenshot method and terminal
CN107682525A (en) Screenshot processing method, terminal and computer-readable recording medium
CN107704176A (en) A kind of picture-adjusting method and terminal
CN108536364A (en) A kind of image pickup method, terminal and computer readable storage medium
CN109032466A (en) Long screenshot method, mobile terminal and storage medium based on double screen
CN107231470A (en) Image processing method, mobile terminal and computer-readable recording medium
CN108108081A (en) Method for information display, mobile terminal and readable storage medium storing program for executing based on double-sided screen
CN108241752A (en) Photo display methods, mobile terminal and computer readable storage medium
CN107589887A (en) One kind applies startup method and terminal
CN107566980A (en) The localization method and mobile terminal of a kind of mobile terminal
CN107766523A (en) A kind of file management method, mobile terminal and computer-readable recording medium
CN107967056A (en) Control method, terminal and the computer-readable recording medium of flexible screen
CN108021470A (en) A kind of data backup method, mobile terminal and computer-readable recording medium
CN107656706A (en) A kind of data processing method, terminal and computer-readable storage medium
CN107566608A (en) A kind of system air navigation aid, equipment and computer-readable recording medium
CN108196774A (en) A kind of message consults method, flexible screen terminal and computer readable storage medium
CN107888759A (en) A kind of method, equipment and computer-readable recording medium realized information and sent
CN107563316A (en) A kind of image pickup method, terminal and computer-readable recording medium
CN107239218A (en) Control method, mobile terminal and the computer-readable recording medium of mobile terminal
CN107507143A (en) A kind of image restoring method and terminal
CN108234979A (en) A kind of image pickup method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant