CN106454085B - 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
CN106454085B
CN106454085B CN201610879529.4A CN201610879529A CN106454085B CN 106454085 B CN106454085 B CN 106454085B CN 201610879529 A CN201610879529 A CN 201610879529A CN 106454085 B CN106454085 B CN 106454085B
Authority
CN
China
Prior art keywords
picture
fisrt feature
region
pixel region
shooting
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.)
Active
Application number
CN201610879529.4A
Other languages
Chinese (zh)
Other versions
CN106454085A (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 CN201610879529.4A priority Critical patent/CN106454085B/en
Publication of CN106454085A publication Critical patent/CN106454085A/en
Application granted granted Critical
Publication of CN106454085B publication Critical patent/CN106454085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a kind of image processing method and mobile terminals, are applied to mobile terminal, and the mobile terminal includes at least two cameras, which is characterized in that the described method includes: receiving the shooting request of user;It is requested for the shooting, the first picture is shot using the first camera, and, second picture is shot using second camera;The fisrt feature region for meeting presetting rule is identified from first picture;Wherein, the fisrt feature region has first location information;The corresponding second feature region of the first location information is extracted from the second picture;The fisrt feature region is replaced using the second feature region in first picture, generates third picture.It identifies " barrier " for accounting for certain picture ratio in the first picture, and uses the similar part of second picture, described in substitution " barrier ", guarantee the total tune of the picture of picture, improve the quality of shooting picture, enhance the experience of user.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to the technical fields of mobile terminal, more particularly to a kind of image processing method based on mobile terminal With a kind of image processing apparatus based on mobile terminal.
Background technique
With the continuous development of electronic products, the mobile terminal with shooting function is more more and more universal, and user can be at any time It is taken pictures everywhere with it, resulting image is sent to relatives and friends in the form of multimedia short message etc., that is, claps and send out, convenient Fast.
The mobile terminals such as smart phone are no longer simple meanss of communication, but collect the function such as leisure, amusement and communication The craftwork of energy.At the same time, requirement of the user to shooting effect is also higher and higher.User when being taken pictures using mobile terminal, Usually all the quality of picture can be required to improve, such as, it is desirable that the brightness of the picture entirety of picture and picture scenery Harmony, still, the layout between picture scenery are difficult to change, especially the layout of natural scene, and this requires move The picture that dynamic terminal obtains shooting carries out certain processing.Further, when user is taken pictures using mobile terminal, because of shooting The reason of angle, certain " barriers " can be such that the scenery of original picture is blocked.
Summary of the invention
In view of the above problems, the embodiment of the present invention provides a kind of image processing method and mobile terminal, to solve existing skill The scenery shot in art can be blocked and the above problem of harmony.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of image processing methods, are applied to mobile terminal, institute Stating mobile terminal includes at least two cameras, which is characterized in that the described method includes:
Receive the shooting request of user;
It is requested for the shooting, the first picture is shot using the first camera, and, using second camera shooting the Two pictures;
The fisrt feature region for meeting presetting rule is identified from first picture;Wherein, the fisrt feature area Domain has first location information;
The corresponding second feature region of the first location information is extracted from the second picture;
The fisrt feature region is replaced using the second feature region in first picture, generates third figure Piece.
The embodiment of the invention also discloses a kind of mobile terminal, the mobile terminal includes at least two cameras, described Terminal includes:
Request receiving module is shot, the shooting for receiving user is requested;
Picture shooting module shoots the first picture using the first camera for requesting for the shooting, and, it adopts Second picture is shot with second camera;
Fisrt feature region identification module, for identifying the fisrt feature for meeting presetting rule from first picture Region;Wherein, the fisrt feature region has first location information;
Second feature region extraction module, for extracting the first location information corresponding second from the second picture Characteristic area;
Third image generating module, for replacing described first using the second feature region in first picture Characteristic area generates third picture.
The embodiment of the present invention includes following advantages:
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;Foundation The first location information in the fisrt feature region extracts corresponding second feature region from the second picture, described first The fisrt feature region is replaced using the second feature region in picture, generates third picture.The embodiment of the present invention uses Two pictures of at least two cameras shooting, identify " barrier " for accounting for certain picture ratio in the first picture, and And the similar part of second picture is used, described in substitution " barrier ", guarantee the total tune of the picture of picture, improves and clap The quality for taking the photograph picture enhances the experience of user.
In the embodiment of the present invention, identify the first picture be less than certain picture ratio with the first picture whole style simultaneously " barrier " not being consistent, will described in " barrier " in second picture with adjacent fisrt feature pixel region similar second Characteristic area replaces the fisrt feature pixel region, and the scenery for avoiding shooting is blocked, and generates overall picture uniform quality Picture, improve the harmony of overall picture, keep the style consistency of picture, the quality of the picture of the generation of raising, to The experience at family has great raising, enhances the viscosity of user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of step flow chart of image processing method embodiment one of the embodiment of the present invention;
Fig. 2 is a kind of step flow chart of image processing method embodiment two of the embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of mobile terminal of Installation practice three in the embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of mobile terminal of Installation practice four in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of mobile terminal of Installation practice five in the embodiment of the present invention.
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.

Claims (6)

1. a kind of image processing method is applied to mobile terminal, the mobile terminal includes at least two cameras, and feature exists In, which comprises
Receive the shooting request of user;
It is requested for the shooting, the first picture is shot using the first camera, and, the second figure is shot using second camera Piece;
The fisrt feature region for meeting presetting rule is identified from first picture;Wherein, the fisrt feature region tool There is first location information;
The corresponding second feature region of the first location information is extracted from the second picture;
The fisrt feature region is replaced using the second feature region in first picture, generates third picture;
Wherein, described the step of identifying the fisrt feature region for meeting presetting rule from first picture, includes:
First picture is converted into the first gray scale picture;
Brightness is selected in the first gray scale picture less than the fisrt feature pixel region of the first preset threshold;
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 fisrt feature area Domain;
Wherein, described to be requested for the shooting, the first picture is shot using the first camera, and, using second camera Shoot second picture the step of include:
First camera is used to shoot the first picture with the first focus;
The second camera is used to shoot second picture with the second focus.
2. the method according to claim 1, wherein the brightness for selecting the first gray scale picture is less than The step of fisrt feature pixel region of first preset threshold includes:
The first gray scale picture is divided into the identical multiple pixel regions of area;
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.
3. the method according to claim 1, wherein described use the second feature in first picture The step of fisrt feature region is replaced in region, generates third picture include:
Fisrt feature pixel region adjacent with fisrt feature region in first picture is obtained according to the first location information Domain;
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 institute is replaced using the second feature region of the second picture The fisrt feature region of the first picture is stated, third picture is generated.
4. a kind of mobile terminal, which is characterized in that the mobile terminal includes at least two cameras, and the terminal includes:
Request receiving module is shot, the shooting for receiving user is requested;
Picture shooting module, for being requested for the shooting, using the first camera the first picture of shooting, and, using the Two cameras shoot second picture;
Fisrt feature region identification module, for identifying the fisrt feature area for meeting presetting rule from first picture Domain;Wherein, the fisrt feature region has first location information;
Second feature region extraction module, for extracting the corresponding second feature of the first location information from the second picture Region;
Third image generating module, for replacing the fisrt feature using the second feature region in first picture Region generates third picture;
Wherein, the fisrt feature region identification module 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, for selecting the brightness of the first gray scale picture less than the first default threshold The fisrt feature pixel region of value;
Fisrt feature pixel region judging submodule, for judging whether the fisrt feature pixel region is less than fixed proportion;
Fisrt feature region determines submodule, described in determining when the fisrt feature pixel region is less than fixed proportion Fisrt feature pixel region is fisrt feature region;
Wherein, the picture shooting module 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.
5. terminal according to claim 4, which is characterized in that the fisrt feature pixel region chooses submodule and 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 choosing when the brightness of the pixel region is less than the first preset threshold Corresponding pixel region is as fisrt feature pixel region.
6. terminal according to claim 4, which is characterized in that the third image generating module includes:
Adjacent fisrt feature pixel region acquisition submodule, for obtaining first picture according to the first location information Adjacent fisrt feature pixel region;
Characteristic similarity acquisition submodule, for obtaining the second feature region and the adjacent fisrt feature pixel region Characteristic similarity;
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 second The fisrt feature region of first picture is replaced in the second feature region of picture, generates third picture.
CN201610879529.4A 2016-09-30 2016-09-30 A kind of image processing method and mobile terminal Active CN106454085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610879529.4A CN106454085B (en) 2016-09-30 2016-09-30 A kind of image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610879529.4A CN106454085B (en) 2016-09-30 2016-09-30 A kind of image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106454085A CN106454085A (en) 2017-02-22
CN106454085B true CN106454085B (en) 2019-09-27

Family

ID=58172301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610879529.4A Active CN106454085B (en) 2016-09-30 2016-09-30 A kind of image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106454085B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063884B (en) * 2017-11-15 2021-02-26 维沃移动通信有限公司 Image processing method and mobile terminal
CN108494996B (en) * 2018-05-14 2021-01-15 Oppo广东移动通信有限公司 Image processing method, device, storage medium and mobile terminal
CN109035185A (en) * 2018-06-29 2018-12-18 努比亚技术有限公司 A kind of image processing method and terminal
CN109104573B (en) * 2018-09-29 2021-01-08 维沃移动通信(杭州)有限公司 Method for determining focusing point and terminal equipment
CN109587410A (en) * 2018-12-12 2019-04-05 北京北电科林电子有限公司 Panoptic visualization safety defense monitoring system
CN109948644A (en) * 2019-01-21 2019-06-28 深圳壹账通智能科技有限公司 A kind of similar source of houses data detection method, device and terminal device
CN110377259B (en) * 2019-07-19 2023-07-07 深圳前海达闼云端智能科技有限公司 Equipment hiding method, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826065A (en) * 2013-12-12 2014-05-28 小米科技有限责任公司 Image processing method and apparatus
CN103856719A (en) * 2014-03-26 2014-06-11 深圳市金立通信设备有限公司 Photographing method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110090164A (en) * 2010-02-03 2011-08-10 삼성전자주식회사 Image data transmitting method and display apparatus using the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826065A (en) * 2013-12-12 2014-05-28 小米科技有限责任公司 Image processing method and apparatus
CN103856719A (en) * 2014-03-26 2014-06-11 深圳市金立通信设备有限公司 Photographing method and terminal

Also Published As

Publication number Publication date
CN106454085A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106454085B (en) A kind of image processing method and mobile terminal
CN105827990B (en) A kind of automatic explosion method and mobile terminal
CN106331510B (en) A kind of backlight photographic method and mobile terminal
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN106131449B (en) A kind of photographic method and mobile terminal
CN106060419B (en) A kind of photographic method and mobile terminal
CN105872148B (en) A kind of generation method and mobile terminal of high dynamic range images
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
CN107197169B (en) high dynamic range image shooting method and mobile terminal
CN105827964B (en) A kind of image processing method and mobile terminal
CN106131341B (en) A kind of photographic method and mobile terminal
CN107659769B (en) A kind of image pickup method, first terminal and second terminal
CN107231530B (en) A kind of photographic method and mobile terminal
CN106060406A (en) Photographing method and mobile terminal
CN106161967A (en) A kind of backlight scene panorama shooting method and mobile terminal
CN106937055A (en) A kind of image processing method and mobile terminal
CN106506962A (en) A kind of image processing method and mobile terminal
CN106254682A (en) A kind of photographic method and mobile terminal
CN106454086B (en) Image processing method and mobile terminal
CN106101545A (en) A kind of image processing method and mobile terminal
CN105827963B (en) Scene-change detecting method and mobile terminal during one kind is taken pictures
CN105827970A (en) Image processing method and mobile terminal
CN106412457B (en) A kind of image processing method and mobile terminal
CN106357961A (en) Photographing method and mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal

Legal Events

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