CN108063884A - A kind of image processing method and mobile terminal - Google Patents

A kind of image processing method and mobile terminal Download PDF

Info

Publication number
CN108063884A
CN108063884A CN201711131135.1A CN201711131135A CN108063884A CN 108063884 A CN108063884 A CN 108063884A CN 201711131135 A CN201711131135 A CN 201711131135A CN 108063884 A CN108063884 A CN 108063884A
Authority
CN
China
Prior art keywords
region
image
comparison chart
mobile terminal
chart picture
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
CN201711131135.1A
Other languages
Chinese (zh)
Other versions
CN108063884B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711131135.1A priority Critical patent/CN108063884B/en
Publication of CN108063884A publication Critical patent/CN108063884A/en
Application granted granted Critical
Publication of CN108063884B publication Critical patent/CN108063884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

An embodiment of the present invention provides a kind of image processing method and mobile terminals, and wherein the method, which is applied to the first mobile terminal, includes:It establishes and connects with the second mobile terminal, wherein, second mobile terminal is at least one mobile terminal with the distance of first mobile terminal within a preset range;Pending image is sent to second mobile terminal;Receive at least comparison chart picture that second mobile terminal is sent;It is identified with reference to the comparison chart picture in the pending image and optimizes region;According to the comparison chart picture in the pending image it is each it is described can optimize region, carry out image procossing and obtain target image.By image procossing scheme provided in an embodiment of the present invention, the region that optimizes in pending image is handled one by one manually without user, therefore human resources can be saved and promote treatment effeciency, so as to promote the shooting of user experience.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of image processing method and mobile terminal.
Background technology
With the continuous promotion of camera pixel in mobile terminal, mobile terminal captured image is substantially instead of traditional phase Machine, user have become a part indispensable in daily life using mobile terminal captured image.
User can carry out image taking whenever and wherever possible by mobile terminal.When being taken pictures in popular tourist attractions, due to Domestic visitors large user is present with unrest in captured image it is easy to appear the situation that personage disorderly enters in captured image in sight spot Enter the image of personage, then it is then that can optimize region disorderly to enter region shared by the image of personage.At present, figure work(can be repaiied by the later stage Can, region can be optimized one by one manually and handled, but this kind of mode is cumbersome, it is both time- and labor-consuming.
The content of the invention
The embodiment of the present invention provides a kind of image capturing method and mobile terminal, to solve manually one by one will in the prior art The region that optimizes in image is handled, and existing the problem of taking time and effort.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, provide a kind of image processing method, applied to the first mobile terminal, the described method includes:With Two mobile terminals establish connection, wherein, second mobile terminal is the distance with first mobile terminal in preset range Interior at least one mobile terminal;Pending image is sent to second mobile terminal;Receive second mobile terminal At least comparison chart picture sent, wherein, an at least comparison chart picture is to be treated in second mobile terminal with described Handle the image of the Background matching of image;It is identified with reference to the comparison chart picture in the pending image and optimizes region;According to According to the comparison chart picture in the pending image it is each it is described can optimize region, carry out image procossing and obtain target image.
Second aspect, providing a kind of mobile terminal includes:Matching module connects for being established with the second mobile terminal, Wherein, second mobile terminal is that at least one movement with the distance of first mobile terminal within a preset range is whole End;Sending module, for pending image to be sent to second mobile terminal;Receiving module, for receiving described second At least comparison chart picture that mobile terminal is sent, wherein, an at least comparison chart picture is in second mobile terminal With the image of the Background matching of the pending image;Identification module, it is described pending for being identified with reference to the comparison chart picture Optimize region in image;Processing module, for according to the comparison chart picture in the pending image it is each it is described can Optimize region, carry out image procossing and obtain target image.
The third aspect provides a kind of mobile terminal, including:It memory, processor and is stored on the memory simultaneously The computer program that can be run on the processor realizes the figure when computer program is performed by the processor As the step of processing method.
Fourth aspect provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program, the step of image processing method is realized when the computer program is executed by processor.
Compared with prior art, the present invention has the following advantages:
In embodiments of the present invention, by with the second mobile terminal establish connect, got at the second mobile terminal with The pending matched comparison chart picture of image background identifies that the region that optimizes in pending image is treated as existed with reference to comparison chart picture The region of object is removed, and the region that optimizes in pending image is handled according to comparison chart picture, user can be obtained The target image of desired high quality.Due to without user manually one by one to optimizing at region in pending image Reason, therefore human resources can be saved and promote treatment effeciency, so as to promote the shooting of user experience.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various advantages and benefit are for ordinary skill people Member will be apparent understanding.Attached drawing is only used for showing preferred embodiment, and is not considered as limitation of the present invention.And In entire attached drawing, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart of according to embodiments of the present invention one image processing method;
Fig. 2 is a kind of step flow chart of according to embodiments of the present invention two image processing method;
Fig. 3 is a kind of structure diagram of according to embodiments of the present invention three mobile terminal;
Fig. 4 is a kind of hardware architecture diagram of according to embodiments of the present invention four mobile terminal.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
Embodiment one
Reference Fig. 1 shows a kind of step flow chart of image processing method of the embodiment of the present invention one.
The image processing method of the embodiment of the present invention comprises the following steps:
Step 101:It establishes and connects with the second mobile terminal.
In the embodiment of the present invention, stand and illustrated in the first mobile terminal side.Wherein, the second mobile terminal is to be moved with first At least one mobile terminal of the distance of dynamic terminal within a preset range.
First mobile terminal and the second mobile terminal, which are established, to be connected, it is therefore an objective to which the data transmission established between mobile terminal is led to Road carries out wireless short-range communication.First mobile terminal will be treated by the data transmission channel established with the second mobile terminal Processing image is sent to the second mobile terminal, and the second mobile terminal sends comparison chart by data transmission channel to mobile terminal Picture.
Step 102:Pending image is sent to the second mobile terminal.
After each second mobile terminal receives pending image, the image that pending image is managed with itself is carried on the back Scape matches, and obtains and the matched comparison chart picture of pending image background.
Specifically in matching, background being indicated to, two images in identical place are determined as the image to match;Also may be used It is determined as the image to match with two images that Background matching degree is more than to preset value.
Step 103:Receive the comparison chart picture of the second mobile terminal transmission.
Wherein, the comparison chart picture that the second mobile terminal is sent can be one or more.
Step 104:It is identified with reference to comparison chart picture in pending image and optimizes region.
Comparison chart picture is the same or similar image of shooting background with pending image.If identical shooting background is without unrest The image background for entering object then captured image is identical.It therefore, can be true by the way that comparison chart picture is compared with pending image Unrest in fixed pending image enters the image of object, and the circumscribed rectangular region of each image, which is one, can optimize region.
For that can optimize region, unrest that when subsequent processing can will can be optimized in region by way of image texture reparation Enter the image deletion to picture.
Step 105:Optimize region to each in pending image according to comparison chart picture, carry out image procossing and obtain target Image.
When that pair can optimize region and carry out image procossing, can be selected by user from pending image it is pending can be excellent Change region, mobile terminal is handled for chosen each corresponding comparison chart picture of regional choice that optimizes.Can also by with One or more comparison chart picture is selected at family from comparison chart picture, and mobile terminal is directed to chosen each contrast images from pending figure The corresponding region that optimizes is selected to carry out image procossing as in.
It is a kind of preferably to optimize region to each in pending image according to comparison chart picture, it carries out image procossing and obtains mesh The mode of logo image is:
During pending image is identified with reference to comparison chart picture optimize region after, show the thumbnail of each comparison chart picture; Receive selection instruction of the user to each thumbnail;According to the corresponding comparison chart picture of selected thumbnail, in pending image It is each optimize region, carry out image procossing and obtain target image.
This kind of preferred image processing method, user can select comparison chart picture to carry out image procossing according to demand, can Meet the individual demand of user, promote user experience.
Image capturing method provided in an embodiment of the present invention is connected by being established with the second mobile terminal, from the second movement Got at terminal with the matched comparison chart picture of pending image background, with reference to comparison chart picture identify in pending image can be excellent Change region such as there are the region of object to be cleaned, and according to comparison chart picture to optimizing at region in pending image Reason can obtain the target image of the desired high quality of user.Due to without user manually one by one in pending image Region can be optimized to be handled, therefore human resources can be saved and promote treatment effeciency, so as to promote the shooting of user experience.
Embodiment two
Reference Fig. 2 shows a kind of step flow chart of image processing method of the embodiment of the present invention two.
The image processing method of the embodiment of the present invention specifically includes following steps:
Step 201:It establishes and connects with the second mobile terminal.
It stands in the embodiment of the present invention in the first mobile terminal side, the image processing method of the embodiment of the present invention is said It is bright.First mobile terminal and the second mobile terminal, which are established, to be connected, it is therefore an objective to establish data transmission channel between mobile terminal into Row wireless short-range communication.
Second mobile terminal is at least one mobile terminal with the distance of the first mobile terminal within a preset range.
The mode that a kind of preferably the first mobile terminal establishes connection with the second mobile terminal is as follows:
First, the first mobile terminal sends images match request broadcast singal by wireless short-range communication module;
Wherein, wireless short-range communication module can be WiFi module, infrared module or ZigBee module, ZigBee skills Art be it is a kind of closely, low complex degree, low-power consumption, low rate, the bidirectional wireless communication technology of low cost.
Secondly, the response signal that the second mobile terminal asks broadcast singal to return according to images match is received, is rung with returning Second mobile terminal of induction signal establishes connection.
If there is equipment supports said function in broadcast singal covering scope, you can receive request broadcast singal, and to the One mobile terminal replys answer signal, that is, response signal.It should be noted that if the second shifting is not received in the first preset time The response signal that dynamic terminal returns then exports the first prompt message to prompt around user without attachable second mobile terminal, It can not carry out image procossing.
Step 202:Pending image is sent to the second mobile terminal.
Comparison chart picture can be determined as follows by the second mobile terminal:First, the second mobile terminal, which identifies, waits to locate Manage the image background of image;Secondly, each local image of storage is traveled through, the image with pending image in each local image is carried on the back Scape matching degree is determined as comparison chart picture higher than the image of preset value.
Wherein, preset value can be configured by those skilled in the art according to actual demand, right in the embodiment of the present invention This is not specifically limited.Such as:Preset value can be 80%, 90% or 95% etc..
Specifically, for the second mobile terminal after pending image is received, backstage is automatic to carry out intelligent background model matching, profit The image classifications recognizers such as word bag model, background scenery element is extracted from pending image, and is traveled through from the device Whether matching has the image of similar background, finds out image synchronization of the similarity higher than preset value to the first mobile terminal.
Step 203:Receive the comparison chart picture of the second mobile terminal transmission.
Second mobile terminal can be one or more.Second mobile terminal, may after pending image is received The local image for being higher than preset value with pending images match degree can be matched, can also can not be matched and pending figure As matching degree is higher than the local image of preset value.Therefore, the second mobile terminal of part may be sent out without image is compared to mobile terminal It send, the second mobile terminal of part may send a contrast images to mobile terminal, also have the second mobile terminal of part may be to First mobile terminal sends two or more comparison chart picture.
It should be noted that if the comparison chart picture of the second mobile terminal transmission is not received in the second preset time, then it is defeated Go out the second prompt message user to be prompted to optimize resource as background without comparison chart, subsequent image procossing behaviour can not be performed Make.
Step 204:It identifies each object to be cleaned in pending image, and determines the external square of each object to be cleaned respectively Shape region.
Each object to be cleaned corresponding image in pending image, the circumscribed rectangular region of the image are to treat clearly Except the circumscribed rectangular region of object.Circumscribed rectangular region is set for object to be cleaned, convenient for subsequently calculating promotion treatment effeciency.It treats Handle the circumscribed rectangular region that one or more objects to be cleaned are included in image.Determining the boundary rectangle of each object to be cleaned , it is necessary to determine whether each circumscribed rectangular region is that can optimize region according to comparison chart picture behind region.Step 205 to step 207 is It determines whether a circumscribed rectangular region is the idiographic flow that can optimize region, during specific implementation, repeats the stream Journey judges whether each circumscribed rectangular region is that can optimize region.
Step 205:For each circumscribed rectangular region, position of the circumscribed rectangular region in pending image is determined.
In pending image, the position of each circumscribed rectangular region is different, and the position of boundary rectangle can use boundary rectangle The coordinate characterization of the coordinate of first pixel in region, the length and width of rectangular area and last;Circumscribed rectangular region can also be used The coordinate of center position pixel, the length of rectangular area and wide characterization.
Step 206:Comparison chart picture is traveled through, determines whether that there are the first comparison chart pictures at the position being background.
Such as:The left upper of pending image is in the definite circumscribed rectangular region there are a circumscribed rectangular region It is no for can optimize region when, the upper left corner for traveling through each comparison chart picture judges whether only background, if then illustrate comparison chart as Image of the left upper without other objects.If the left upper of some or multiple comparison chart pictures is only background, can be explained The circumscribed rectangular region of left upper in pending image is the image of object to be cleaned.If it is background there is no the upper left corner First comparison chart picture, then definition graph is as the image of the object in the upper left corner is not object to be cleaned, but intrinsic object.
Step 207:If in the presence of optimizing region by what circumscribed rectangular region was determined as pending image;Foundation can be excellent Change region and the correspondence of the first comparison chart picture.
Such as:Totally five comparison chart pictures are respectively A, B, C, D and E, wherein, comparison chart is the back of the body as the left upper of A, B Scape, the left upper of other three images have the image of other objects.It is the first comparison chart picture then to determine image A, B.It is pending The circumscribed rectangular region of the object to be cleaned of the left upper of image is that can optimize region.Establish this can optimize region and image A, The correspondence of B.
Specifically, the mark that can optimize region can be added in object set, the mark of the first comparison chart picture is added It is added in image collection.
Step 208:Region can respectively be optimized by being marked in pending image.
Repeat that step 205 to step 207 can determine in pending image it is each optimize region, in the picture pair can Optimization region is marked, and intuitively determines which region can optimize in pending image convenient for user.User can be according to demand Selection one or more can optimize region and carry out image texture repair process.
It should be noted that if can not optimize region in pending image, then exportable 3rd prompt message is to prompt to use It can optimize without region in the pending image in family.
Step 209:The selection instruction in region can be optimized by receiving user couple, and the selected region that optimizes is determined as target Optimize region.
User can select one or more that can optimize region according to demand, be handled as objective optimization region.Its In, can be image texture repair process to the processing in objective optimization region.
Step 210:For each objective optimization region, the corresponding first comparison chart picture in objective optimization region is determined;According to the Background image region corresponding with objective optimization region in one comparison chart picture carries out image texture to objective optimization region and repairs To target image.
The correspondence in region and the first comparison chart picture can be optimized by having been had been established in step 207, be by the object relationship It can determine the corresponding first comparison chart picture in each objective optimization region.After image texture reparation being carried out to objective optimization region, you can The image of object to be cleaned in objective optimization region is deleted in pending image.
When carrying out image texture reparation, the first mobile terminal utilizes the image repair algorithm based on texture for example Criminisi algorithms, region corresponding with that can optimize region, which obtains, from the first comparison chart picture repairs texture, in pending image The middle reparation synthesis for completing image texture, user can live preview image texture repairing effect, and can also be according to demand Selection recovers original effect, neatly to handle image.
Texture repairing processing can be carried out to each objective optimization region in pending image by repeating step 210, be obtained To preferable image.
Step 208 independently selects to illustrate exemplified by the objective optimization region in pending image to step 210 for user. Be not limited to this during specific implementation, user can also autonomous selection target comparison chart picture, the first mobile terminal then foundation Target comparison chart picture determines that the objective optimization region in pending image carries out image optimization, and specific embodiment can be as follows:
First, the thumbnail of each first comparison chart picture is shown;
Can specifically be showed on preview operation interface in a manner of suspension sliding list etc. the first comparison chart as Thumbnail.
Secondly, selection instruction of the user to each thumbnail is received, by the corresponding first comparison chart picture of selected thumbnail It is determined as target comparison chart picture;
User can select one or more thumbnails, and each thumbnail corresponds to a first comparison chart picture.
Again, for each target comparison chart picture, determine that target comparison chart optimizes region as corresponding;It is compared according to target Optimize the corresponding background image region in region with described in image, image line is carried out to the region that optimizes in pending image Reason repairs and obtains target image.
User more specifically can respectively can also optimize the autonomous selection target comparison chart picture in region, and the first mobile terminal is then Processing is optimized to can correspondingly optimize region in pending image according to can respectively optimize the corresponding target comparison chart picture in region, Specific embodiment can be as follows:
First, according to the correspondence that can optimize region and the first comparison chart picture, display pair at region is optimized each The thumbnail for the first comparison chart picture answered;
One of them can optimize region and correspond to one or more first comparison chart pictures, thus it is each optimize region go out it is aobvious Show one or more thumbnails.User may be selected the corresponding first comparison chart picture of a thumbnail be used as to this can optimize region into The target comparison chart picture of row optimization processing.
Secondly, optimize region for each, determine that user can optimize this selection behaviour of thumbnail shown at region Make, the corresponding first comparison chart picture of selected thumbnail is determined as this can optimize the corresponding target comparison chart picture in region;
Again, respectively according to can respectively optimize the corresponding target comparison chart picture in region, image line is carried out to can respectively optimize region Reason repairs and obtains target image.
User can select respectively optimize the corresponding target comparison chart picture in region according to self-demand in this kind of preferred embodiment, Make that image optimization is more careful, meets users ' individualized requirement, the usage experience of user can be promoted.
Image processing method provided in an embodiment of the present invention, except being had with the image processing method shown in embodiment one Outside some advantageous effects, can also by user according to demand from pending image include each to optimize selection target in region excellent Change region, delete processing selectively is carried out to object to be cleaned, the individual demand of user is disclosure satisfy that, promotes user's Usage experience.
Embodiment three
Reference Fig. 3 shows a kind of structure diagram of mobile terminal of the embodiment of the present invention three.
The mobile terminal of the embodiment of the present invention includes:Matching module 301 connects for being established with the second mobile terminal, In, second mobile terminal is at least one mobile terminal with the distance of first mobile terminal within a preset range; Sending module 302, for pending image to be sent to second mobile terminal;Receiving module 303, for receiving described At least comparison chart picture that two mobile terminals are sent, wherein, an at least comparison chart picture is second mobile terminal In image with the Background matching of the pending image;Identification module 304, for being treated with reference to the comparison chart as described in identification Optimize region in processing image;Processing module 305, for according to the comparison chart picture to each in the pending image It is described to optimize region, it carries out image procossing and obtains target image.
Preferably, the matching module 301 includes:Signal sending submodule 3011, for passing through wireless short-range communication Module sends images match request broadcast singal;Signal receiving submodule 3012, for receiving the second mobile terminal according to The response signal that images match request broadcast singal returns, the second mobile terminal with returning to the response signal, which is established, to be connected.
Preferably, the identification module 304 includes:Rectangular area determination sub-module 3041, it is described pending for identifying Each object to be cleaned in image, and the circumscribed rectangular region of each object to be cleaned is determined respectively;Location determination submodule 3042, For being directed to each circumscribed rectangular region, position of the circumscribed rectangular region in the pending image is determined;Traversal Submodule 3043 for traveling through the comparison chart picture, determines whether that there are the first comparison chart pictures at the position being background;If In the presence of then optimizing region by what the circumscribed rectangular region was determined as the pending image;Region can be optimized described in foundation With the correspondence of the first comparison chart picture.
Preferably, the processing module 305 includes:Submodule 3051 is marked, for being marked in the pending image Going out each described can optimize region;First command reception submodule 3052 can optimize the selection instruction in region for receiving user couple, The selected region that optimizes is determined as objective optimization region;First repairs submodule 3053, for being directed to each target Optimize region, determine the corresponding first comparison chart picture in the objective optimization region;According in the first comparison chart picture with it is described The corresponding background image region in objective optimization region carries out image texture to the objective optimization region and repairs to obtain target figure Picture.
Preferably, the processing module 305 further includes:First display sub-module 3054, for area can be optimized according to Domain and the correspondence of the first comparison chart picture, in each breviary for optimizing the corresponding first comparison chart picture of display at region Figure;Second command reception submodule 3055 can each optimize region for being directed to, and determine that user shows described optimize at region The corresponding first comparison chart picture of the selected thumbnail is determined as described to optimize area by the selection operation of the thumbnail shown The corresponding target comparison chart picture in domain;Second repairs submodule 3056, can respectively optimize the corresponding target ratio in region for foundation respectively To image, repair to obtain target image to can respectively optimize region progress image texture.
Preferably, the processing module 305 further includes:Second display sub-module 3057, for showing each first ratio To the thumbnail of image;3rd command reception submodule 3058, will for receiving selection instruction of the user to each thumbnail The corresponding first comparison chart picture of the selected thumbnail is determined as target comparison chart picture;3rd repairs submodule 3059, uses In for each target comparison chart picture, determine that the target comparison chart optimizes region as corresponding;According to the target ratio To optimizing the corresponding background image region in region with described in image, to region can be optimized described in the pending image Image texture is carried out to repair to obtain target image.
Preferably, the processing module 305 further includes:Thumbnail display sub-module 30510, for showing each comparison The thumbnail of image;Receiving submodule 30511, for receiving selection instruction of the user to each thumbnail;Handle submodule 30512, for according to the corresponding comparison chart picture of the selected thumbnail, in the pending image it is each it is described can be excellent Change region, carry out image procossing and obtain target image.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 Each process, to avoid repeating, which is not described herein again.
Mobile terminal provided in an embodiment of the present invention, by establishing connection at the second mobile terminal with the second mobile terminal Get with the matched comparison chart picture of pending image background, identified with reference to comparison chart picture in pending image and optimize region Such as there are the circumscribed rectangular region of object to be cleaned, and figure is carried out to the region that optimizes in pending image according to comparison chart picture As texture repairing, the desired target image of user can be obtained, due to being incited somebody to action one by one from pending image manually without user The image of object to be cleaned is deleted, therefore can be saved human resources and be promoted treatment effeciency, so as to promote the shooting of user experience.
Example IV
A kind of hardware architecture diagram of Fig. 4 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 400 includes but not limited to:It is radio frequency unit 401, network module 402, audio output unit 403, defeated Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor The components such as 410 and power supply 411.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 4 is not formed Restriction to mobile terminal, mobile terminal can include than illustrate more or fewer components either combine some components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 410 connects for being established with the second mobile terminal, wherein, second mobile terminal is and described the At least one mobile terminal of the distance of one mobile terminal within a preset range;Pending image is sent to second movement Terminal;At least comparison chart picture that second mobile terminal is sent is received, wherein, an at least comparison chart picture is institute State the image with the Background matching of the pending image in the second mobile terminal;It waits to locate as described in identification with reference to the comparison chart Optimize region in reason image;According to the comparison chart picture in the pending image it is each it is described can optimize region, into Row image procossing obtains target image.
Mobile terminal provided in an embodiment of the present invention is connected by being established with the second mobile terminal, from the second mobile terminal Place get with the matched comparison chart picture of pending image background, identified with reference to comparison chart picture in pending image and optimize area Domain is handled the region that optimizes in pending image according to comparison chart picture, energy such as there are the region of object to be cleaned Access the target image of the desired high quality of user.Due to without user manually one by one to optimizing in pending image Region is handled, therefore can be saved human resources and be promoted treatment effeciency, so as to promote the shooting of user experience.
It should be understood that in the embodiment of the present invention, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, handled to processor 410;In addition, by uplink Data sending is to base station.In general, radio frequency unit 401 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 402 and has accessed, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 403 can be receiving by radio frequency unit 401 or network module 402 or in memory 409 The voice data of storage is converted into audio signal and exports as sound.Moreover, audio output unit 403 can also be provided and moved The relevant audio output of specific function that dynamic terminal 400 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 403 includes loud speaker, buzzer and receiver etc..
Input unit 404 is used to receive audio or video signal.Input unit 404 can include graphics processor (Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike Wind 4042 can receive sound, and can be voice data by such acoustic processing.Treated voice data can be The form output of mobile communication base station can be sent to via radio frequency unit 401 by being converted in the case of telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear Display panel 4061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 406 is used to show by information input by user or be supplied to the information of user.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for the number for receiving input or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 407 include touch panel 4071 and Other input equipments 4072.Touch panel 5071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 4071 or in touch panel 4071 Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area It manages the order that device 410 is sent and is performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 4071.Except touch panel 4071, user input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it On or near touch operation after, send to processor 410 with determine touch event type, be followed by subsequent processing device 410 according to touch The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display Panel 4061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 408 is the interface that external device (ED) is connected with mobile terminal 400.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 408 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 400 can be used in 400 He of mobile terminal Data are transmitted between external device (ED).
Memory 409 can be used for storage software program and various data.Memory 409 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 409 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 410 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 409 and/or module and call Data in device 409 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also be included to the power supply 411 (such as battery) of all parts power supply, it is preferred that power supply 411 Can be logically contiguous by power-supply management system and processor 410, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, and including processor 410, memory 409 is stored in On memory 409 and the computer program that can be run on the processor 410, the computer program are performed by processor 410 Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
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 substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form is belonged within the protection of the present invention.

Claims (16)

1. a kind of image processing method, applied to the first mobile terminal, which is characterized in that the described method includes:
It establishes and connects with the second mobile terminal, wherein, second mobile terminal is to exist with the distance of first mobile terminal At least one mobile terminal in preset range;Pending image is sent to second mobile terminal;
At least comparison chart picture that second mobile terminal is sent is received, wherein, an at least comparison chart picture is institute State the image with the Background matching of the pending image in the second mobile terminal;
It is identified with reference to the comparison chart picture in the pending image and optimizes region;
According to the comparison chart picture in the pending image it is each it is described can optimize region, carry out image procossing and obtain target Image.
2. according to the method described in claim 1, it is characterized in that, described establish the step of connecting, bag with the second mobile terminal It includes:
By wireless short-range communication module, images match request broadcast singal is sent;
The response signal that the second mobile terminal is returned according to described image matching request broadcast singal is received, with returning to the response Second mobile terminal of signal establishes connection.
3. according to the method described in claim 1, it is characterized in that, it is described according to the comparison chart picture to the pending image In it is each it is described can optimize region, carry out the step of image procossing obtains target image, including:
Show the thumbnail of each comparison chart picture;
Receive selection instruction of the user to each thumbnail;
According to the corresponding comparison chart picture of the selected thumbnail, described area can be optimized to each in the pending image Domain carries out image procossing and obtains target image.
4. according to the method described in claim 1, it is characterized in that, described identify the pending figure with reference to the comparison chart picture As in the step of optimizing region, including:
It identifies each object to be cleaned in the pending image, and determines the boundary rectangle area of each object to be cleaned respectively Domain;
For each circumscribed rectangular region, position of the circumscribed rectangular region in the pending image is determined;
The comparison chart picture is traveled through, determines whether that there are the first comparison chart pictures at the position being background;
If in the presence of optimizing region by what the circumscribed rectangular region was determined as the pending image;It can be excellent described in foundation Change region and the correspondence of the first comparison chart picture.
5. according to the method described in claim 4, it is characterized in that, it is described according to the comparison chart picture to the pending image In it is each it is described can optimize region, carry out the step of image procossing obtains target image, including:
Being marked in the pending image each described can optimize region;
The selection instruction in region can be optimized by receiving user couple, and the selected region that optimizes is determined as objective optimization region;
For each objective optimization region, the corresponding first comparison chart picture in the objective optimization region is determined;According to described Background image region corresponding with the objective optimization region in one comparison chart picture carries out image line to the objective optimization region Reason repairs and obtains target image.
6. according to the method described in claim 4, it is characterized in that, it is described according to the comparison chart picture to the pending image In it is each it is described can optimize region, carry out the step of image procossing obtains target image, including:
According to the correspondence for optimizing region and the first comparison chart picture, correspondence is shown at region in each optimize The first comparison chart picture thumbnail;
Optimize region for each, determine that user, will be by the selection operation for optimizing the thumbnail shown at region The corresponding first comparison chart picture of the thumbnail of selection can optimize the corresponding target comparison chart picture in region described in being determined as;
Respectively according to can respectively optimize the corresponding target comparison chart picture in region, repair to obtain to can respectively optimize region progress image texture Target image.
7. according to the method described in claim 4, it is characterized in that, it is described according to the comparison chart picture to the pending image In it is each it is described can optimize region, carry out the step of image procossing obtains target image, including:
Show the thumbnail of each first comparison chart picture;
User is received to the selection instruction of each thumbnail, the corresponding first comparison chart picture of the selected thumbnail is true It is set to target comparison chart picture;
For each target comparison chart picture, determine that the target comparison chart optimizes region as corresponding;According to the target Optimize the corresponding background image region in region with described in comparison chart picture, to area can be optimized described in the pending image Domain carries out image texture and repairs to obtain target image.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Matching module connects for being established with the second mobile terminal, wherein, second mobile terminal is and the described first movement At least one mobile terminal of the distance of terminal within a preset range;
Sending module, for pending image to be sent to second mobile terminal;
Receiving module, for receiving at least comparison chart picture that second mobile terminal is sent, wherein, described at least one Comparison chart picture is the image with the Background matching of the pending image in second mobile terminal;
Identification module optimizes region for being identified with reference to the comparison chart picture in the pending image;
Processing module, for according to the comparison chart picture in the pending image it is each it is described can optimize region, carry out figure As processing obtains target image.
9. mobile terminal according to claim 8, which is characterized in that the matching module includes:
Signal sending submodule for passing through wireless short-range communication module, sends images match request broadcast singal;
Signal receiving submodule, for receiving the response that the second mobile terminal is returned according to described image matching request broadcast singal Signal, the second mobile terminal with returning to the response signal, which is established, to be connected.
10. mobile terminal according to claim 8, which is characterized in that the processing module includes:
Thumbnail display sub-module, for showing the thumbnail of each comparison chart picture;
Receiving submodule, for receiving selection instruction of the user to each thumbnail;
Submodule is handled, for according to the corresponding comparison chart picture of the selected thumbnail, in the pending image Region can be optimized described in each, image procossing is carried out and obtain target image.
11. mobile terminal according to claim 8, which is characterized in that the identification module includes:
Rectangular area determination sub-module for identifying each object to be cleaned in the pending image, and determines respectively to treat respectively Remove the circumscribed rectangular region of object;
Location determination submodule for being directed to each circumscribed rectangular region, determines that the circumscribed rectangular region is waited to locate described Manage the position in image;
Submodule is traveled through, for traveling through the comparison chart picture, determines whether that there are the first comparison charts at the position being background Picture;If in the presence of optimizing region by what the circumscribed rectangular region was determined as the pending image;It can optimize described in foundation Region and the correspondence of the first comparison chart picture.
12. mobile terminal according to claim 11, which is characterized in that the processing module includes:
Submodule is marked, each described can optimize region for being marked in the pending image;
First command reception submodule can optimize the selection instruction in region for receiving user couple, optimize area by selected Domain is determined as objective optimization region;
First repairs submodule, for being directed to each objective optimization region, determines the objective optimization region corresponding first Comparison chart picture;According to background image region corresponding with the objective optimization region in the first comparison chart picture, to the mesh Mark optimization region carries out image texture and repairs to obtain target image.
13. mobile terminal according to claim 12, which is characterized in that the processing module further includes:
First display sub-module, for the correspondence in region and the first comparison chart picture can be optimized according to, each The thumbnail that corresponding first comparison chart picture is shown at region can be optimized;
Second command reception submodule can each optimize region for being directed to, and receive user and described optimize is shown at region Thumbnail selection operation, the corresponding first comparison chart picture of the selected thumbnail is determined as described to optimize region Corresponding target comparison chart picture;
Second repairs submodule, can respectively optimize the corresponding target comparison chart picture in region for foundation respectively, to can respectively optimize region Image texture is carried out to repair to obtain target image.
14. mobile terminal according to claim 11, which is characterized in that the processing module includes:
Second display sub-module, for showing the thumbnail of each first comparison chart picture;
3rd command reception submodule, for receiving selection instruction of the user to each thumbnail, by the selected contracting The corresponding first comparison chart picture of sketch map is determined as target comparison chart picture;
3rd repair submodule, for being directed to each target comparison chart picture, determine the target comparison chart as it is corresponding can be excellent Change region;Optimize the corresponding background image region in region with described according in the target comparison chart picture, to described pending The region progress image texture that optimizes in image is repaired to obtain target image.
15. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 7 is realized when the computer program is performed by the processor Any one of image processing method the step of.
16. a kind of computer readable storage medium, which is characterized in that computer journey is stored on the computer readable storage medium Sequence, the image processing method as any one of claim 1 to 7 is realized when the computer program is executed by processor Step.
CN201711131135.1A 2017-11-15 2017-11-15 Image processing method and mobile terminal Active CN108063884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711131135.1A CN108063884B (en) 2017-11-15 2017-11-15 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711131135.1A CN108063884B (en) 2017-11-15 2017-11-15 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108063884A true CN108063884A (en) 2018-05-22
CN108063884B CN108063884B (en) 2021-02-26

Family

ID=62134877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711131135.1A Active CN108063884B (en) 2017-11-15 2017-11-15 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108063884B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855897A (en) * 2019-12-20 2020-02-28 维沃移动通信有限公司 Image shooting method and device, electronic equipment and storage medium
CN111401463A (en) * 2020-03-25 2020-07-10 维沃移动通信有限公司 Method for outputting detection result, electronic device, and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266685A (en) * 2007-03-14 2008-09-17 中国科学院自动化研究所 A method for removing unrelated images based on multiple photos
JP2015162050A (en) * 2014-02-27 2015-09-07 セイコーエプソン株式会社 Image processor, image processing method, and image processing program
CN106204435A (en) * 2016-06-27 2016-12-07 北京小米移动软件有限公司 Image processing method and device
CN106454085A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Image processing method and mobile terminal
KR101723551B1 (en) * 2016-11-21 2017-04-05 주식회사 성진하이텍 System for simulating car accident of pedestrian

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266685A (en) * 2007-03-14 2008-09-17 中国科学院自动化研究所 A method for removing unrelated images based on multiple photos
JP2015162050A (en) * 2014-02-27 2015-09-07 セイコーエプソン株式会社 Image processor, image processing method, and image processing program
CN106204435A (en) * 2016-06-27 2016-12-07 北京小米移动软件有限公司 Image processing method and device
CN106454085A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Image processing method and mobile terminal
KR101723551B1 (en) * 2016-11-21 2017-04-05 주식회사 성진하이텍 System for simulating car accident of pedestrian

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855897A (en) * 2019-12-20 2020-02-28 维沃移动通信有限公司 Image shooting method and device, electronic equipment and storage medium
CN111401463A (en) * 2020-03-25 2020-07-10 维沃移动通信有限公司 Method for outputting detection result, electronic device, and medium
CN111401463B (en) * 2020-03-25 2024-04-30 维沃移动通信有限公司 Method for outputting detection result, electronic equipment and medium

Also Published As

Publication number Publication date
CN108063884B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN107835364A (en) One kind is taken pictures householder method and mobile terminal
CN107566728A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN108540724A (en) A kind of image pickup method and mobile terminal
CN107817939A (en) A kind of image processing method and mobile terminal
CN107592459A (en) A kind of photographic method and mobile terminal
CN107734251A (en) A kind of photographic method and mobile terminal
CN107948499A (en) A kind of image capturing method and mobile terminal
CN107734260A (en) A kind of image processing method and mobile terminal
CN107845057A (en) One kind is taken pictures method for previewing and mobile terminal
CN108279948A (en) A kind of application program launching method and mobile terminal
CN108174103A (en) A kind of shooting reminding method and mobile terminal
CN107886321A (en) A kind of method of payment and mobile terminal
CN108833709A (en) A kind of the starting method and mobile terminal of camera
CN108182267A (en) A kind of sharing files method and mobile terminal
CN107682637A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107749046A (en) A kind of image processing method and mobile terminal
CN108541015A (en) A kind of signal strength reminding method and mobile terminal
CN107888765A (en) A kind of method of handoff scenario pattern, mobile terminal
CN107678672A (en) A kind of display processing method and mobile terminal
CN108495349A (en) A kind of switching method and mobile terminal of carrier network
CN108123999A (en) A kind of information push method and mobile terminal
CN108718389A (en) A kind of screening-mode selection method and mobile terminal
CN110519503A (en) A kind of acquisition methods and mobile terminal of scan image
CN108510266A (en) A kind of Digital Object Unique Identifier recognition methods and mobile terminal
CN108600544A (en) A kind of Single-hand control method 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
GR01 Patent grant
GR01 Patent grant