CN107087108A - A kind of image processing method and device based on dual camera - Google Patents

A kind of image processing method and device based on dual camera Download PDF

Info

Publication number
CN107087108A
CN107087108A CN201710353200.9A CN201710353200A CN107087108A CN 107087108 A CN107087108 A CN 107087108A CN 201710353200 A CN201710353200 A CN 201710353200A CN 107087108 A CN107087108 A CN 107087108A
Authority
CN
China
Prior art keywords
image
parameter information
camera
color parameter
dual camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710353200.9A
Other languages
Chinese (zh)
Inventor
陈小翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710353200.9A priority Critical patent/CN107087108A/en
Publication of CN107087108A publication Critical patent/CN107087108A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths

Landscapes

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

Abstract

The invention discloses a kind of image processing method and device based on dual camera.Methods described includes:Call the first camera in dual camera to shoot black white image, call the second camera shoot coloured image in the dual camera;Extract the color parameter information of the black white image and the color parameter information of the coloured image;According to the color parameter information of the black white image, the color parameter information of the coloured image is adjusted.The present invention in order to avoid coloured image it is over-exposed the problem of, the first camera and second camera in dual camera is called to shoot black white image and coloured image respectively, according to the color parameter information of the accurate black white image of exposure, the possible over-exposed coloured image of adjustment, and the coloured image after adjustment color parameter information is provided, and then avoid over-exposed coloured image being presented to user.

Description

A kind of image processing method and device based on dual camera
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of image processing method and dress based on dual camera Put.
Background technology
With continuing to develop for mobile terminal technology, mobile terminal can shoot picture, shoot video, record data, look into Information and control other-end equipment are ask, therefore mobile terminal is had become in people's daily life not by powerful function The part that can or lack.
At present, the camera pixel configuration of existing mobile terminal is higher, so that mobile terminal shoots the definition of picture It is higher, the picture of shooting can be highly reduced, the life of user is recorded.But, during routine use, moved using existing Image is easily over-exposed during dynamic terminal taking photo, the problem of image is not normal, picture quality is low occurs, Consumer's Experience effect is not It is good.
The content of the invention
It is a primary object of the present invention to propose a kind of image processing method and device based on dual camera, it is intended to solve The problem of image is easily over-exposed when shooting photo using existing mobile terminal.
For above-mentioned technical problem, the present invention is solved by the following technical programs:
The invention provides a kind of image processing method based on dual camera, methods described includes:Call dual camera In the first camera shoot black white image, call the second camera shoot coloured image in the dual camera;Extract institute State the color parameter information of black white image and the color parameter information of the coloured image;According to the color of the black white image Parameter information, adjusts the color parameter information of the coloured image.
Alternatively, the first camera in dual camera is called to shoot black white image, including:In the picture of shooting, really The agent object that the fixed dual camera is shot;The first camera in the dual camera is called to shoot the agent object Black-and-white photograph.
Optionally it is determined that the agent object that the dual camera is shot, including:According to the depth of view information of the object of shooting or Person determines the agent object that the dual camera is shot according to the object selected in the object of shooting.
Alternatively, according to the color parameter information of the black white image, the color parameter information of the coloured image is adjusted, Including:The color parameter information of the black white image is assigned to the coloured image, makes the corresponding color of the coloured image Colour parameter information is identical with the color parameter information of the black white image.
Alternatively, the parameter item in the color parameter information includes:Contrast, saturation degree and exposure.
Present invention also offers a kind of image processing apparatus based on dual camera, described device includes:Calling module, is used In calling the first camera in dual camera to shoot black white image, the second camera in the dual camera is called to shoot color Color image;Extraction module, for extracting the color parameter information of the black white image and the color parameter of the coloured image Information;Adjusting module, for the color parameter information according to the black white image, adjusts the color parameter letter of the coloured image Breath.
Alternatively, the calling module, is used for:In the picture of shooting, the main body pair that the dual camera is shot is determined As;The first camera in the dual camera is called to shoot the black-and-white photograph of the agent object.
Alternatively, the calling module, is further used for according to the depth of view information of the object of shooting or according in shooting Object in the object that selects, determine the agent object that the dual camera is shot.
Alternatively, the adjusting module, is used for:The color parameter information of the black white image is assigned to the cromogram Picture, makes the corresponding color parameter information of the coloured image identical with the color parameter information of the black white image.
Alternatively, the parameter item in the color parameter information includes:Contrast, saturation degree and exposure.
Image processing method and device proposed by the present invention based on dual camera have following technique effect:
The present invention in order to avoid coloured image it is over-exposed the problem of, call the first camera and second in dual camera Camera shoots black white image and coloured image respectively, according to the color parameter information of the accurate black white image of exposure, The possible over-exposed coloured image of adjustment, and the coloured image after adjustment color parameter information is provided, and then avoid exposing The excessive coloured image of light is presented to user.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of the image processing method based on dual camera according to first embodiment of the invention;
Fig. 4 is the particular flow sheet of the image processing method based on dual camera according to second embodiment of the invention;
Fig. 5 is the schematic diagram of the black white image of the agent object according to second embodiment of the invention;
Fig. 6 is the schematic diagram according to the over-exposed coloured image of the shooting picture of second embodiment of the invention;
Fig. 7 is the schematic diagram of the coloured image after being adjusted according to the color parameter information of second embodiment of the invention;
Fig. 8 is the structure chart of the image processing apparatus based on dual camera according to third embodiment of the invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.
However, it will be understood by those skilled in the art that, in addition to being used in particular for moving the element of purpose, according to this hair The construction of bright embodiment can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of realization each optional mobile terminal of embodiment one of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be by using such as multimedia broadcasting-ground
(DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), forward link Media (MediaFLO@) Radio Data System, the digit broadcasting system of received terrestrial digital broadcasting integrated service (ISDB-T) etc. Receive digital broadcasting.Broadcasting reception module 111 may be constructed such that be adapted to provide for the various broadcast systems of broadcast singal and on State digit broadcasting system.The broadcast singal and/or broadcast related information received via broadcasting reception module 111 can be stored in In reservoir 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 122, the static images that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus Or the view data of video is handled.Picture frame after processing may be displayed on display unit 151.Handled through camera 121 Picture frame afterwards can be stored in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (voice data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can be by so Acoustic processing be voice data.Audio (voice) data after processing can be converted in the case of telephone calling model can The form output of mobile communication base station is sent to via mobile communication module 112.Microphone 122 can implement various types of make an uproar Sound eliminates (or suppression) algorithm to eliminate the noise or dry that (or suppression) produces during receiving and sending audio signal Disturb.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link. If any of interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 formation interfaces, MSC and BSC275 formation interface, and BSC275 correspondingly control BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Embodiment one
The embodiment of the present invention provides a kind of image processing method based on dual camera.
In the present embodiment, executive agent is the mobile terminal with dual camera.
Mobile terminal can be the terminal devices such as smart mobile phone, tablet personal computer.Dual camera can be located at mobile whole simultaneously The front or the back side at end, the front and back of mobile terminal can also be located at respectively.
When dual camera is located at the front and back of mobile terminal respectively, at least one camera in dual camera can To adjust angle coverage by the mode such as rotation, flexible, folding, make the viewfinder range of dual camera identical or basically identical, Identical picture can be shot will pass through dual camera.
The image processing method based on dual camera of the present invention is described below in conjunction with the accompanying drawings, as shown in figure 3, being The flow chart of the image processing method based on dual camera according to a first embodiment of the present invention.
Step S310, calls the first camera in dual camera to shoot black white image, calls in the dual camera Second camera shoot coloured image.
In the present embodiment, the first camera and second camera in dual camera is set to shoot different figures respectively Picture, makes the first camera shoot black white image, makes second camera shoot coloured image.
Wherein, the first camera is identical or basically identical with the viewfinder range of second camera, thus black white image and The shooting picture of coloured image is identical.
Black white image only includes black-and-white two color, is easier to control exposure, and coloured image includes multiple color, does not allow Exposure easy to control, it is easily over-exposed, so for compared to coloured image, the color parameter information of black white image is relatively defined Really, the present embodiment can adjust colored in the case where coloured image is over-exposed according to the color parameter information of black white image The color parameter information of image.
Step S320, extracts the color parameter information of the black white image and the color parameter letter of the coloured image Breath.
In the present embodiment, the parameter item in color parameter information includes but is not limited to:Contrast, saturation degree and exposure Degree.
If coloured image is over-exposed, the color parameter that the color parameter information of coloured image will be with black white image There is larger difference between information.
Step S330, according to the color parameter information of the black white image, adjusts the color parameter letter of the coloured image Breath.
In the present embodiment, it can recognize whether coloured image is over-exposed, and identify that coloured image is exposed In the case of degree, according to the color parameter information of the black white image, the color parameter information of the coloured image is adjusted.When So, those skilled in the art are it is appreciated that the various image in order to obtain better quality, can nonrecognition coloured image whether In the case of over-exposed, directly according to the color parameter information of the black white image, the color ginseng of the coloured image is adjusted Number information.
Specifically, can be by the color parameter information of the parameter item in the color parameter information of black white image and coloured image In corresponding parameter item be compared, if the parameter item and coloured image in the color parameter information of black white image color ginseng Whether the absolute value of the difference in number information between correspondence parameter item is more than predetermined threshold value, then is exposed by color image recognition The image of degree, at this moment adjusts the parameter item in the color parameter information of coloured image, makes the color parameter information of black white image In parameter item and coloured image color parameter information in corresponding parameter item between difference absolute value be less than or equal to institute State threshold value.
The contrast of the contrast of black white image and coloured image is compared, if the absolute difference of contrast is big In predetermined threshold value, then the contrast of coloured image is adjusted, makes the difference of the contrast of coloured image and the contrast of black white image Absolute value is less than the threshold value.
The saturation degree of the saturation degree of black white image and coloured image is compared, if the absolute difference of saturation degree is big In predetermined threshold value, then the saturation degree of coloured image is adjusted, makes the difference of the saturation degree of coloured image and the saturation degree of black white image Absolute value is less than the threshold value.
The exposure of the exposure of black white image and coloured image is compared, if the absolute difference of exposure is big In predetermined threshold value, then the exposure of coloured image is adjusted, makes the difference of the exposure of coloured image and the exposure of black white image Absolute value is less than the threshold value.
After the color parameter information of adjustment coloured image, the coloured image after adjustment is supplied to user.
In the present embodiment, in order to avoid coloured image it is over-exposed the problem of, call first in dual camera to image Head and second camera shoot black white image and coloured image respectively, can be according to the color of the accurate black white image of exposure Colour parameter information, the color parameter information for the coloured image that adjustment may be over-exposed, and provide the user adjustment color parameter Coloured image after information, and then avoid over-exposed coloured image being presented to user.
The image processing method based on dual camera of the present embodiment can be applied during picture shooting or video In shooting process, image is adjusted in real time, obtains the normal picture of exposure or video image, it is to avoid the picture of shooting is regarded Frequently it is over-exposed, better user experience.
Embodiment two
In order that the present invention is clearer, the present embodiment will be carried out to image processing method of the present invention based on dual camera Further illustrate.The executive agent of the present embodiment is the mobile terminal with dual camera.
As shown in figure 4, being the specific stream of the image processing method based on dual camera according to second embodiment of the invention Cheng Tu.
Step S410, in the picture of shooting, determines the agent object that dual camera is shot.
Agent object refers to this main body shot, is object mainly prominent in image.
According to the depth of view information of the object of shooting or according to the object selected in the object of shooting, determine that described pair is taken the photograph The agent object shot as head.Further, in shooting picture, the depth of view information of each object in picture is obtained, by the depth of field The object that value is in preset range is defined as the agent object of dual camera shooting.The depth of field value of object in the preset range Less than default depth of field threshold value;Or, in shooting picture, each object and right that dual camera is shot is shown in view-finder Burnt frame, user drags focus frame in view-finder, selectes an object, and then the object that focus frame is selected is clapped for dual camera The agent object taken the photograph.In general, the less object of depth of field value in shooting picture can be defined as to the master of dual camera shooting Body object.
For example:The herds of horses run quickly on grassland that dual camera is shot are shown in view-finder, user wishes main shooting Courser positioned at herds of horses forefront, drags focus frame, and focus frame is aligned into the courser for being located at forefront, at this moment determines that this is located at The courser of forefront is the agent object that dual camera is shot.
Step S420, calls the first camera in the dual camera to shoot the black white image of agent object.
In the present embodiment, black white image is the topography of the picture captured by dual camera.
It is determined that after the agent object that dual camera is shot, the first camera according to agent object in picture it is residing The area that position and agent object are occupied in picture, reduces the viewfinder range of the first camera, shoots the first camera Partial picture comprising agent object.
For example:The viewfinder range of first camera is rectangle, and agent object is located at the lower right corner of viewfinder range and main body Object occupies a quarter of viewfinder range, and the viewfinder range of the first camera is narrowed down into a quarter of former viewfinder range simultaneously And the lower right corner for former viewfinder range of finding a view, it can thus realize and the local of agent object in shooting picture is shot, be wrapped Topography's (black white image) containing agent object.
Step S430, calls the second camera in the dual camera to shoot the coloured image of the picture.
In the present embodiment, coloured image is the general image of the picture captured by dual camera.
The picture that black white image is shot is included in the picture of coloured image, is the topography of coloured image.
For example:The herds of horses run quickly on grassland are shot using dual camera, the courser positioned at herds of horses foremost is dual camera The agent object of shooting, then black white image is the courser of the black and white tone shot, coloured image is run quickly for colored on grassland The herds of horses speeded.
Step S440, extracts the color parameter information of the black white image and the color parameter letter of the coloured image Breath.
In the present embodiment, the parameter item in color parameter information includes:Contrast, saturation degree and exposure.So, exist When extracting color parameter information, contrast, saturation degree and exposure are extracted in black white image, and extracted in coloured image Contrast, saturation degree and exposure.
In the present embodiment, by by pair in the contrast in coloured image, saturation degree and exposure and black white image It is compared than degree, saturation degree and exposure, to recognize whether coloured image is over-exposed.
Step S450, is assigned to the coloured image by the color parameter information of the black white image, makes the cromogram The corresponding color parameter information of picture is identical with the color parameter information of the black white image.
In the present embodiment, can be in the case where identifying that coloured image is over-exposed, by the color of the black white image Colour parameter information is assigned to the coloured image, makes the corresponding color parameter information and the black white image of the coloured image Color parameter information it is identical.Certainly, those skilled in the art it is appreciated that the various only for improve picture quality, can also The color parameter information of the black white image is assigned to the coloured image, makes the corresponding color parameter of the coloured image Information is identical with the color parameter information of the black white image.
Preserve the coloured image after adjustment and be shown in the terminal according to user's request, so that user can look into See the coloured image of better quality.
For example:According to Fig. 5 is the schematic diagram of the black white image according to the agent object of second embodiment of the invention, Fig. 6 The schematic diagram of the over-exposed coloured image of the shooting picture of second embodiment of the invention, personage is excessively bright;Fig. 7 is according to the present invention The color parameter information of second embodiment be adjusted after coloured image schematic diagram.Can by the image compared in Fig. 5~Fig. 7 To know, Fig. 5 exposure is preferable;Fig. 6 image is excessively quick-fried, and agent object is too bright not clear enough on the contrary in the picture, image matter Amount is poor;Fig. 7 image is image in the image of Fig. 6 after being adjusted, Fig. 7 compared to the image in Fig. 6, more clearly, It is natural and the problem of be not present quick-fried.So, by the adjusted image of the present embodiment, improve picture quality, it is to avoid figure As the problem of excessively quick-fried.
The image processing method based on dual camera of the present embodiment can be applied during picture shooting or video In shooting process, it is to avoid the picture or video of shooting are over-exposed.
The present embodiment can carry out setting for acquisition parameters before calling dual camera to shoot black white image and coloured image Put, exposure, tone, flash lamp parameter are such as set, when shooting black white image and coloured image, joined according to the shooting of setting Number is shot.
During shooting image, call dual camera to shoot black white image and coloured image in real time, carry in real time Take the color parameter information of the black white image and the color parameter information of the coloured image;And in real time according to described The color parameter information of black white image, adjusts the color parameter information of the coloured image.By the present embodiment, adjust in real time Exposure per two field picture, to make the video data finally obtained be the video data after being adjusted, it is to avoid was being shot In journey due to the over-exposed video frequency data quality that causes it is poor the problem of.
Embodiment three
The present embodiment provides a kind of image processing apparatus based on dual camera.The figure based on dual camera of the present embodiment It can be arranged in the mobile terminal with dual camera as processing unit.
As shown in figure 8, being the structure chart of the image processing apparatus based on dual camera according to third embodiment of the invention.
Calling module 810, for calling the first camera in dual camera to shoot black white image, calls double shootings Second camera shoot coloured image in head.
Extraction module 820, for extracting the color parameter information of the black white image and the color of the coloured image Parameter information.
Adjusting module 830, for the color parameter information according to the black white image, adjusts the color of the coloured image Parameter information.
In one embodiment, the calling module 830, is used for:In the picture of shooting, determine that the dual camera is clapped The agent object taken the photograph;The first camera in the dual camera is called to shoot the black-and-white photograph of the agent object.
In another embodiment, the calling module 830, be further used for according to the depth of view information of the object of shooting or According to the object selected in the object of shooting, the agent object that the dual camera is shot is determined.
In another embodiment, the adjusting module 830, is used for:By the color parameter information assignment of the black white image To the coloured image, make the corresponding color parameter information of the coloured image and the color parameter information of the black white image It is identical.
In another embodiment, the parameter item in the color parameter information includes:Contrast, saturation degree and exposure.
The function of device described in the present embodiment is described in the embodiment of the method shown in Fig. 1~Fig. 7, therefore Not detailed part, may refer to the related description in previous embodiment, will not be described here in the description of the present embodiment.
Image processing apparatus of the present invention based on dual camera, is asked in order to avoid coloured image is over-exposed Topic, calls the first camera and second camera in dual camera to shoot black white image and coloured image respectively, according to exposure The color parameter information of accurate black white image, the coloured image that adjustment may be over-exposed are spent, and adjustment color is provided Coloured image after parameter information, and then avoid over-exposed coloured image being presented to user.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of image processing method based on dual camera, it is characterised in that methods described includes:
Call the first camera in dual camera to shoot black white image, call the second camera in the dual camera to shoot Coloured image;
Extract the color parameter information of the black white image and the color parameter information of the coloured image;
According to the color parameter information of the black white image, the color parameter information of the coloured image is adjusted.
2. according to the method described in claim 1, it is characterised in that call the first camera in dual camera to shoot artwork master Picture, including:
In the picture of shooting, the agent object that the dual camera is shot is determined;
The first camera in the dual camera is called to shoot the black-and-white photograph of the agent object.
3. method according to claim 2, it is characterised in that determine the agent object that the dual camera is shot, including:
According to the depth of view information of the object of shooting or according to the object selected in the object of shooting, the dual camera is determined The agent object of shooting.
4. according to the method described in claim 1, it is characterised in that according to the color parameter information of the black white image, adjustment The color parameter information of the coloured image, including:
The color parameter information of the black white image is assigned to the coloured image, makes the corresponding color of the coloured image Parameter information is identical with the color parameter information of the black white image.
5. according to method according to any one of claims 1 to 4, it is characterised in that the parameter in the color parameter information Item includes:Contrast, saturation degree and exposure.
6. a kind of image processing apparatus based on dual camera, it is characterised in that described device includes:
Calling module, for calling the first camera in dual camera to shoot black white image, is called in the dual camera Second camera shoot coloured image;
Extraction module, for extracting the color parameter information of the black white image and the color parameter letter of the coloured image Breath;
Adjusting module, for the color parameter information according to the black white image, adjusts the color parameter letter of the coloured image Breath.
7. device according to claim 6, it is characterised in that the calling module, is used for:
In the picture of shooting, the agent object that the dual camera is shot is determined;
The first camera in the dual camera is called to shoot the black-and-white photograph of the agent object.
8. device according to claim 7, it is characterised in that the calling module, is further used for pair according to shooting The depth of view information of elephant or according to the object selected in the object of shooting, determines the agent object that the dual camera is shot.
9. device according to claim 6, it is characterised in that the adjusting module, is used for:
The color parameter information of the black white image is assigned to the coloured image, makes the corresponding color of the coloured image Parameter information is identical with the color parameter information of the black white image.
10. the device according to any one of claim 6~9, it is characterised in that the parameter in the color parameter information Item includes:Contrast, saturation degree and exposure.
CN201710353200.9A 2017-05-18 2017-05-18 A kind of image processing method and device based on dual camera Pending CN107087108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710353200.9A CN107087108A (en) 2017-05-18 2017-05-18 A kind of image processing method and device based on dual camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710353200.9A CN107087108A (en) 2017-05-18 2017-05-18 A kind of image processing method and device based on dual camera

Publications (1)

Publication Number Publication Date
CN107087108A true CN107087108A (en) 2017-08-22

Family

ID=59608816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710353200.9A Pending CN107087108A (en) 2017-05-18 2017-05-18 A kind of image processing method and device based on dual camera

Country Status (1)

Country Link
CN (1) CN107087108A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948540A (en) * 2017-12-28 2018-04-20 信利光电股份有限公司 A kind of image pickup method of road monitoring camera and road monitoring image
CN109587396A (en) * 2018-11-27 2019-04-05 浙江舜宇光学有限公司 Image pickup method and filming apparatus
CN113055580A (en) * 2019-12-26 2021-06-29 中兴通讯股份有限公司 Environment recognition method, shooting mode switching method, terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938796A (en) * 2011-08-15 2013-02-20 中兴通讯股份有限公司 Mobile phone
CN105049718A (en) * 2015-07-06 2015-11-11 深圳市金立通信设备有限公司 Image processing method and terminal
CN105554383A (en) * 2015-12-17 2016-05-04 努比亚技术有限公司 Mobile terminal and method for controlling camera shooting by utilizing mobile terminal
CN105578063A (en) * 2015-07-14 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Image processing method and terminal
CN105657103A (en) * 2016-03-22 2016-06-08 北京奇虎科技有限公司 Mobile terminal with two cameras
CN105827990A (en) * 2016-01-22 2016-08-03 维沃移动通信有限公司 Automatic exposure method and mobile terminal
CN106060419A (en) * 2016-06-30 2016-10-26 维沃移动通信有限公司 Photographing method and mobile terminal
CN106454121A (en) * 2016-11-11 2017-02-22 努比亚技术有限公司 Double-camera shooting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938796A (en) * 2011-08-15 2013-02-20 中兴通讯股份有限公司 Mobile phone
CN105049718A (en) * 2015-07-06 2015-11-11 深圳市金立通信设备有限公司 Image processing method and terminal
CN105578063A (en) * 2015-07-14 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Image processing method and terminal
CN105554383A (en) * 2015-12-17 2016-05-04 努比亚技术有限公司 Mobile terminal and method for controlling camera shooting by utilizing mobile terminal
CN105827990A (en) * 2016-01-22 2016-08-03 维沃移动通信有限公司 Automatic exposure method and mobile terminal
CN105657103A (en) * 2016-03-22 2016-06-08 北京奇虎科技有限公司 Mobile terminal with two cameras
CN106060419A (en) * 2016-06-30 2016-10-26 维沃移动通信有限公司 Photographing method and mobile terminal
CN106454121A (en) * 2016-11-11 2017-02-22 努比亚技术有限公司 Double-camera shooting method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948540A (en) * 2017-12-28 2018-04-20 信利光电股份有限公司 A kind of image pickup method of road monitoring camera and road monitoring image
CN107948540B (en) * 2017-12-28 2020-08-25 信利光电股份有限公司 Road monitoring camera and method for shooting road monitoring image
CN109587396A (en) * 2018-11-27 2019-04-05 浙江舜宇光学有限公司 Image pickup method and filming apparatus
CN113055580A (en) * 2019-12-26 2021-06-29 中兴通讯股份有限公司 Environment recognition method, shooting mode switching method, terminal and storage medium
CN113055580B (en) * 2019-12-26 2023-10-03 中兴通讯股份有限公司 Environment recognition method, shooting mode switching method, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN105100491B (en) A kind of apparatus and method for handling photo
CN106990828A (en) A kind of apparatus and method for controlling screen display
CN106713716A (en) Double cameras shooting control method and device
CN106097284B (en) A kind of processing method and mobile terminal of night scene image
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106888349A (en) A kind of image pickup method and device
CN106851128A (en) A kind of video data handling procedure and device based on dual camera
CN107016639A (en) A kind of image processing method and device
CN106686451A (en) Terminal and video playing control method
CN106911850A (en) Mobile terminal and its screenshotss method
CN106851113A (en) A kind of photographic method and mobile terminal based on dual camera
CN105245938B (en) The device and method for playing multimedia file
CN106790202A (en) A kind of multimedia file shares processing method, device and terminal
CN107071329A (en) The method and device of automatic switchover camera in video call process
CN106873936A (en) Electronic equipment and information processing method
CN107016309A (en) A kind of terminal and audio matching process
CN106534543A (en) TV control apparatus, mobile terminal and method
CN107018334A (en) A kind of applied program processing method and device based on dual camera
CN106911881A (en) A kind of an action shot filming apparatus based on dual camera, method and terminal
CN106851125A (en) A kind of mobile terminal and multiple-exposure image pickup method
CN106959816A (en) Video intercepting method and mobile terminal
CN106131327A (en) Terminal and image-pickup method
CN107087108A (en) A kind of image processing method and device based on dual camera
CN106993134A (en) A kind of video generation device and method, terminal
CN107018326A (en) A kind of image pickup method and device

Legal Events

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

Application publication date: 20170822

RJ01 Rejection of invention patent application after publication