patents.google.com

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

  • ️Fri Sep 27 2019

Specific embodiment

The technical issues of in order to keep the embodiment of the present invention solved, technical solution and beneficial effect are more clearly understood, with The embodiment of the present invention is further described in lower combination accompanying drawings and embodiments.It should be appreciated that specific implementation described herein Example is only used to explain the present invention, is not intended to limit the present invention.

Embodiment of the method one

Referring to Fig.1, a kind of step flow chart of image processing method embodiment one of the embodiment of the present invention is shown, is applied In mobile terminal, the mobile terminal includes at least two cameras, can specifically include following steps:

Step 101, the shooting request of user is received;

In the embodiment of the present invention, mobile terminal may include the smart machine of at least two cameras, using the movement Terminal is shot, first the shooting request of reception user triggering, wherein the mode that user triggers shooting request can be by connecing The click event of touch screen curtain is also possible to the press event by pressing physical button, or is shot by setting self-timing Mode shoot picture, the embodiment of the present invention does not make any limitation to this.

Step 102, it is requested for the shooting, the first picture is shot using the first camera, and, using the second camera shooting Head shooting second picture;

Applied to the embodiment of the present invention, the first camera and second camera are also set using different focus informations, Further, in the embodiment of the present invention, the first camera of mobile terminal is respectively set using different acquisition parameters and second takes the photograph As head, wherein the acquisition parameters may include focus information and/or aperture information and/or aperture time information and/or gain Information, specifically, focus information refers in the camera for the mobile terminal for being, (sensor devices, Charge- from center of lens to CCD Coupled Device) imaging plane distance, focus information can be set between 10mm-35mm, in the embodiment of the present invention, First camera is set as different parameters from the focus information of second camera;Aperture is one and takes the photograph for controlling light transmission It is usually inside camera lens as the camera lens of head enters the device of CCD light quantity.Expression aperture information is typically of size of with F value, example Such as F1, F1.4, F2, F2.8, F4, F5.6, F8, f value is bigger, and light-inletting quantity is smaller.Shutter is to be used to control light in apparatus for making a video recording Irradiate the device of the time of CCD.Aperture time information can be the time of irradiation CCD, for example, 1/250 second, 1/60 second, determine Determine the brightness of photo.Gain information refers to the procedure parameter compensated to picture.It should be noted that i.e. using different Focusing mode (different focus informations and different focus informations), obtains the first picture and second picture of different angle, In, the arrangement mode of the first camera and second camera can be horizontally arranged or erects arrangement, and the embodiment of the present invention is to this It is not intended to be limited in any.

Step 103, the fisrt feature region for meeting presetting rule is identified from first picture;Wherein, described One characteristic area has first location information;

Specifically, first picture is converted to the first gray scale picture, the bright of the first gray scale picture is selected The fisrt feature pixel region less than the first preset threshold is spent, judges whether the fisrt feature pixel region is less than fixed ratio Example determines that the fisrt feature pixel region is fisrt feature area when the fisrt feature pixel region is less than fixed proportion Domain.First picture is converted into the first gray scale picture, is identified in the first gray scale picture and meets presetting rule Fisrt feature region, wherein meet presetting rule fisrt feature region may include preset threshold that brightness is less than and The fisrt feature region less than fixed proportion of the area for accounting for the first picture, be applied to the embodiment of the present invention, described first Characteristic area can be certain " barriers " on the first picture, for example, the picture that an overall color becomes clear accounts for certain figure The black rock of piece ratio or the black shade etc. for accounting for certain picture ratio.Above-mentioned " barrier " is identified first, identification Mode may include to specific luminance and accounting for the size of picture ratio, identifies " barrier ", then obtains scheming for " barrier " The location information of on piece.

Step 104, the corresponding second feature region of the first location information is extracted from the second picture;

For example, corresponding second spy is extracted from the second picture of the shooting of second camera according to first location information Levy region, it should be noted that the adjacent location information in second picture of first location information can also be extracted, chosen The corresponding character pixel region of the adjacent location information is as second feature region, in other words, the second feature area The quantity in domain may include it is multiple, the embodiment of the present invention to this with no restriction.

Step 105, the fisrt feature region is replaced using the second feature region in first picture, generated Third picture.

Specific in the embodiment of the present invention, adjacent first of first picture is obtained according to the first location information Character pixel region obtains the characteristic similarity in the second feature region Yu the adjacent fisrt feature pixel region, when When the characteristic similarity is greater than the second preset threshold, then using the second feature region replacement described first of the second picture The fisrt feature region of picture generates third picture.Compare the adjacent fisrt feature picture in second feature region and the first picture The characteristic similarity in plain region, the characteristic similarity can be set of histograms similarity, can also be image outsourcing polygon Similarity, can also be the image similarity based on characteristic point, the embodiment of the present invention to this with no restriction.It is mentioned for second picture The adjacent character pixel area in the fisrt feature region (can be understood as " barrier ") in the second feature region and the first picture that take Domain compares, when the similarity is greater than the second certain preset threshold, for example, when similarity is greater than 80%, then using the Replace the fisrt feature region of the first picture in the second feature region of two pictures.

It in the embodiment of the present invention, is requested for the shooting, the first picture is shot using the first camera, and, it uses Second camera shoots second picture, and the fisrt feature region for meeting presetting rule is identified from first picture;Wherein, The fisrt feature region has first location information, and the first location information according to the fisrt feature region is from described second Picture extracts corresponding second feature region, special using second feature region replacement described first in first picture Region is levied, third picture is generated.The embodiment of the present invention uses two pictures of at least two cameras shooting, identifies the first figure " barrier " for accounting for certain picture ratio in piece, and the similar part of second picture is used, " obstacle described in substitution Object " guarantees the total tune of the picture of picture, improves the quality of shooting picture, enhances the experience of user.

Embodiment of the method two

Referring to Fig. 2, a kind of step flow chart of image processing method embodiment two of the embodiment of the present invention is shown, is applied In mobile terminal, the mobile terminal includes at least two cameras, can specifically include following steps:

Step 201, the shooting request of user is received;

In the embodiment of the present invention, mobile terminal may include the smart machine of at least two cameras, and user can basis Virtual key and/or physical button triggering shooting request, the embodiment of the present invention to this with no restriction.

Step 202, first camera is used to shoot the first picture with the first focus;

Step 203, the second camera is used to shoot second picture with the second focus;

Applied in the embodiment of the present invention, the first camera and second camera are set using different focus informations, Shooting obtains the picture of two different angles, in addition, in the embodiment of the present invention, also using other parameters be arranged the first camera and Second camera, for example, focus information and/or aperture information and/or aperture time information and/or gain information.

Step 204, first picture is converted into the first gray scale picture;

Further, the first picture of the first camera is converted into gray scale picture, conversion regime can be logical for three primary colors The average value in road can also call other softwares directly to convert, not any restrictions to this of the embodiment of the present invention.

Step 205, fisrt feature pixel region of the brightness less than the first preset threshold of the first gray scale picture is selected Domain;

In a kind of preferred embodiment of the embodiment of the present invention, the brightness for selecting the first gray scale picture is less than The step of fisrt feature pixel region of one preset threshold, includes the following steps: the first gray scale picture being divided into area Identical multiple pixel regions;Judge the brightness of the pixel region whether less than the first preset threshold;When the pixel region Brightness less than the first preset threshold when, choose corresponding pixel region as fisrt feature pixel region.

Specifically, the first picture corresponding grey scale picture is divided into multiple pixel regions, for example, can be by gray scale Picture is divided into a length of 10 pixels, width be 10 pixels pixel rectangle or radius be 10 pixels pixel circle, the present invention Whether embodiment with no restriction, judges the pixel region brightness in less than one specific threshold value, wherein specific threshold this Value can be the average brightness of the first picture, be also possible to the average brightness being arranged according to the actual situation, and the present invention is implemented Example to this with no restriction.

Step 206, judge whether the fisrt feature pixel region is less than fixed proportion;

Further, judge the size (size for accounting for picture ratio) of the fisrt feature pixel region (" barrier "), example Such as, when the fisrt feature pixel region is less than the 2% of picture area, it is believed that ratio shared by " barrier " is small, replacement " barrier Hinder object " while can retain the style of whole picture and beautiful.

Step 207, when the fisrt feature pixel region is less than fixed proportion, the fisrt feature pixel region is determined For fisrt feature region;

Described first is determined when the fisrt feature pixel region is less than fixed proportion applied to the embodiment of the present invention Character pixel region be fisrt feature region, be determined for compliance with condition pixel region be characterized region (Zhan Yiding picture ratio " barrier ").

Step 208, the fisrt feature region is replaced using the second feature region in first picture, generated Third picture.

It is described that the second feature area is used in first picture in a kind of preferred embodiment of the embodiment of the present invention The step of fisrt feature region is replaced in domain, generates third picture includes: to obtain described the according to the first location information The adjacent fisrt feature pixel region of one picture.Obtain the second feature region and the adjacent fisrt feature pixel region Characteristic similarity;Judge whether the characteristic similarity is greater than the second preset threshold;When the characteristic similarity is greater than second When preset threshold, then the fisrt feature region of first picture is replaced using the second feature region of the second picture, it is raw At third picture.

It is described to obtain described first using the first location information in another preferred embodiment of the embodiment of the present invention The step of picture adjacent fisrt feature pixel region, is the following steps are included: obtain the adjacent bit confidence of the first location information Breath;Using fisrt feature pixel region adjacent described in the adjacent position acquisition of information.

For reality, by the fisrt feature pixel region adjacent with the first picture of the second feature region in second picture Specific similarity, second that the characteristic similarity in the second feature region of second picture is greater than to the second certain preset threshold are special Sign region substitutes the fisrt feature region of first picture, generates third picture, in the embodiment of the present invention, the second preset threshold Can be 90%, can also according to the actual situation and be arranged any numerical value, the embodiment of the present invention to this with no restriction.

In the embodiment of the present invention, two different cameras is used to shoot two different angles with different focus informations Picture selects fisrt feature pixel of the brightness less than the first preset threshold of the corresponding first gray scale picture of first picture Region determines that the fisrt feature pixel region is fisrt feature when the fisrt feature pixel region is less than fixed proportion The fisrt feature region is replaced using the second feature region in first picture in region, generates third picture, knows Not Chu the first picture " barrier " not being consistent with the first picture whole style less than certain picture ratio, will be described " barrier " is special with second feature region replacement described first similar with adjacent fisrt feature pixel region in second picture Pixel region is levied, the picture of overall picture uniform quality is generated, improves the harmony of overall picture, keep the style of picture consistent Property, the quality of the picture of the generation of raising has great raising to the experience of user, enhances the viscosity of user.

It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.

Installation practice three

Fig. 3 is the block diagram of the mobile terminal of one embodiment of the invention.Mobile terminal 300 shown in Fig. 3 includes that shooting is asked Ask receiving module 301, picture shooting module 302, fisrt feature region identification module 303, second feature region extraction module 304 With third image generating module 305.

Request receiving module 301 is shot, the shooting for receiving user is requested;

Picture shooting module 302, for requesting for the shooting, the first picture is shot using the first camera, with And second picture is shot using second camera;

Fisrt feature region identification module 303 meets the first of presetting rule for identifying from first picture Characteristic area;Wherein, the fisrt feature region has first location information;

Second feature region extraction module 304, it is corresponding for extracting the first location information from the second picture Second feature region;

Third image generating module 305, for being used in first picture described in the replacement of the second feature region Fisrt feature region generates third picture.

Optionally, the picture shooting module 302 includes:

First picture shooting submodule, for using first camera to shoot the first picture with the first focus;

Second picture shooting submodule, for using the second camera to shoot second picture with the second focus.

Optionally, the fisrt feature region identification module 303 includes:

First gray scale picture transform subblock, for first picture to be converted to the first gray scale picture;

Fisrt feature pixel region chooses submodule, and the brightness for selecting the first gray scale picture is pre- less than first If the fisrt feature pixel region of threshold value;

Fisrt feature pixel region judging submodule, for judging whether the fisrt feature pixel region is less than fixed ratio Example;

Fisrt feature region determines submodule, for determining when the fisrt feature pixel region is less than fixed proportion The fisrt feature pixel region is fisrt feature region.

Optionally, the fisrt feature pixel region selection submodule includes:

Pixel region division unit, for the first gray scale picture to be divided into the identical multiple pixel regions of area;

Second preset threshold judging unit, for judging the brightness of the pixel region whether less than the first preset threshold;

Fisrt feature pixel region selection unit, for when the brightness of the pixel region is less than the first preset threshold, Corresponding pixel region is chosen as fisrt feature pixel region.

Optionally, the third image generating module 305 includes:

Adjacent fisrt feature pixel region acquisition submodule, for obtaining described first according to the first location information The fisrt feature pixel region adjacent with fisrt feature region in picture;

Characteristic similarity acquisition submodule, for obtaining the second feature region and the adjacent fisrt feature pixel The characteristic similarity in region;

Second preset threshold judging submodule, for judging whether the characteristic similarity is greater than the second preset threshold;

Third picture generates submodule, for when the characteristic similarity is greater than the second preset threshold, then using described The fisrt feature region of first picture is replaced in the second feature region of second picture, generates third picture.

Optionally, the adjacent fisrt feature pixel region acquisition submodule includes:

Adjacent position information acquisition unit, for obtaining the adjacent position information of the first location information;

Adjacent fisrt feature pixel region acquiring unit, for using adjacent described in the adjacent position acquisition of information Fisrt feature pixel region.

Installation practice four

Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 400 shown in Fig. 4 includes: at least One processor 401, memory 402, at least one network interface 404, other users interface 403 and component 406 of taking pictures.It is mobile Various components in terminal 400 are coupled by bus system 405.It is understood that bus system 405 is for realizing these groups Connection communication between part.Bus system 405 further includes power bus, control bus and state in addition to including data/address bus Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 405 in Fig. 4, component 406 of taking pictures Including the first camera and second camera, wherein the first camera second camera is respectively used to the figure of shooting different angle Piece.

Wherein, user interface 403 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..

It is appreciated that the memory 402 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 402 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In the memory of these and any other suitable type.

In some embodiments, memory 402 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 4021 and application program 4022.

Wherein, operating system 4021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 4022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 4022.

In embodiments of the present invention, by the program or instruction of calling memory 402 to store, specifically, can be application The program or instruction stored in program 4022, processor 401 are used to receive the shooting request of user;It is requested for the shooting, First picture is shot using the first camera, and, second picture is shot using second camera;Know from first picture The fisrt feature region of presetting rule Chu not met;Wherein, the fisrt feature region has first location information;According to described in First location information extracts corresponding second feature region from the second picture;Described second is used in first picture Characteristic area replaces the fisrt feature region, generates third picture.

The method that the embodiments of the present invention disclose can be applied in processor 401, or be realized by processor 401. Processor 401 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing Device 401 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecificIntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 402, and processor 401 reads the information in memory 402, and the step of the above method is completed in conjunction with its hardware Suddenly.

It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (App LicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for executing herein described function In member or combinations thereof.

For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.

Optionally, processor 401 is also used to: first camera being used to shoot the first picture with the first focus information;

The second camera is used to shoot second picture with the second focus information.

Optionally, processor 401 is also used to: first picture is converted to the first gray scale picture;

Select fisrt feature pixel region of the brightness less than the first preset threshold of the first gray scale picture;

Judge whether the fisrt feature pixel region is less than fixed proportion;

When the fisrt feature pixel region is less than fixed proportion, determine that the fisrt feature pixel region is first special Levy region.

Optionally, processor 401 is also used to: the first gray scale picture is divided into the identical multiple pixel regions of area Domain;

Judge the brightness of the pixel region whether less than the first preset threshold;

When the brightness of the pixel region is less than the first preset threshold, corresponding pixel region is chosen as fisrt feature Pixel region.

Optionally, processor 401 is also used to: being obtained according to the first location information special with first in first picture Levy the adjacent fisrt feature pixel region in region;

Obtain the characteristic similarity in the second feature region Yu the adjacent fisrt feature pixel region;

Judge whether the characteristic similarity is greater than the second preset threshold;

When the characteristic similarity is greater than the second preset threshold, then replaced using the second feature region of the second picture The fisrt feature region of first picture is changed, third picture is generated.

Optionally, processor 401 is also used to: obtaining the adjacent position information of the first location information;

Using fisrt feature pixel region adjacent described in the adjacent position acquisition of information.

It in the embodiment of the present invention, is requested for the shooting, the first picture is shot using the first camera, and, it uses Second camera shoots second picture, and the fisrt feature region for meeting presetting rule is identified from first picture;Wherein, The fisrt feature region has first location information, and the first location information according to the fisrt feature region is from described second Picture extracts corresponding second feature region, special using second feature region replacement described first in first picture Region is levied, third picture is generated.The embodiment of the present invention uses two pictures of at least two cameras shooting, identifies the first figure " barrier " for accounting for certain picture ratio in piece, and the similar part of second picture is used, " obstacle described in substitution Object " guarantees the total tune of the picture of picture, improves the quality of shooting picture, enhances the experience of user.

Installation practice five

Fig. 5 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 5 500 can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.

Mobile terminal 500 in Fig. 5 includes radio frequency (RadioFrequency, RF) circuit 510, memory 520, input list First 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (WirelessFidelity) module 580, power supply 590 With part 5100 of taking pictures.

Wherein, input unit 530 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 531.Touch panel 531, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 531 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 560 is given again, and can be received order that processor 560 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input unit 530 can also include other input equipments 532, other input equipments 532 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.

Wherein, display unit 540 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, can use LCD or organic hair The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 541.

It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 560 is sent to determine the type of touch event, is followed by subsequent processing device 560 provide corresponding visual output according to the type of touch event in touch display screen.

Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.

Component 5100 of taking pictures includes the first camera and second camera, wherein the first camera second camera difference For shooting the picture of different angle.

Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 521, and calling storage Data in second memory 522 execute the various functions and processing data of mobile terminal 500, thus to mobile terminal 500 Carry out integral monitoring.Optionally, processor 560 may include one or more processing units.

In embodiments of the present invention, by call store the first memory 521 in software program and/or module and/ Or the data in the second memory 522, processor 560 are used to receive the shooting request of user;It requests, adopts for the shooting The first picture is shot with the first camera, and, second picture is shot using second camera;It is identified from first picture Meet the fisrt feature region of presetting rule out;Wherein, the fisrt feature region has first location information;According to described One location information extracts corresponding second feature region from the second picture;It is special using described second in first picture It levies region and replaces the fisrt feature region, generate third picture.

Optionally, first camera is used to shoot the first picture with the first focus;

Optionally, the second camera is used to shoot second picture with the second focus.

Optionally, first picture is converted into the first gray scale picture;

Optionally, fisrt feature pixel region of the brightness less than the first preset threshold of the first gray scale picture is selected Domain;

Optionally, judge whether the fisrt feature pixel region is less than fixed proportion;

Optionally, when the fisrt feature pixel region is less than fixed proportion, the fisrt feature pixel region is determined For fisrt feature region.

Optionally, the first gray scale picture is divided into the identical multiple pixel regions of area;

Optionally, judge the brightness of the pixel region whether less than the first preset threshold;

Optionally, when the brightness of the pixel region is less than the first preset threshold, corresponding pixel region conduct is chosen Fisrt feature pixel region.

Optionally, it is obtained adjacent with fisrt feature region first in first picture according to the first location information Character pixel region;

Optionally, the characteristic similarity in the second feature region Yu the adjacent fisrt feature pixel region is obtained;

Optionally, judge whether the characteristic similarity is greater than the second preset threshold;

Optionally, when the characteristic similarity is greater than the second preset threshold, then special using the second of the second picture The fisrt feature region of first picture is replaced in sign region, generates third picture.

Optionally, the adjacent position information of the first location information is obtained;

Optionally, using fisrt feature pixel region adjacent described in the adjacent position acquisition of information.

As it can be seen that using two different cameras to shoot two differences with different focus informations in the embodiment of the present invention The picture of angle selects first spy of the brightness less than the first preset threshold of the corresponding first gray scale picture of first picture Pixel region is levied, when the fisrt feature pixel region is less than fixed proportion, determines that the fisrt feature pixel region is the One characteristic area replaces the fisrt feature region using the second feature region in first picture, generates third Picture identifies " barrier " not being consistent with the first picture whole style less than certain picture ratio of the first picture, By described in " barrier " is described in similar second feature region is replaced with adjacent fisrt feature pixel region in second picture Fisrt feature pixel region generates the picture of overall picture uniform quality, improves the harmony of overall picture, keep the wind of picture Lattice consistency, the quality of the picture of the generation of raising have great raising to the experience of user, enhance the viscosity of user.

Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.

In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.

The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.

It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.

It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.

The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.