CN106060419B - A kind of photographic method and mobile terminal - Google Patents

A kind of photographic method and mobile terminal Download PDF

Info

Publication number
CN106060419B
CN106060419B CN201610513592.6A CN201610513592A CN106060419B CN 106060419 B CN106060419 B CN 106060419B CN 201610513592 A CN201610513592 A CN 201610513592A CN 106060419 B CN106060419 B CN 106060419B
Authority
CN
China
Prior art keywords
image
color
black
complementary color
white image
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
CN201610513592.6A
Other languages
Chinese (zh)
Other versions
CN106060419A (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 CN201610513592.6A priority Critical patent/CN106060419B/en
Publication of CN106060419A publication Critical patent/CN106060419A/en
Application granted granted Critical
Publication of CN106060419B publication Critical patent/CN106060419B/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/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • 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
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Landscapes

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

Abstract

The embodiment of the invention provides a kind of photographic method and mobile terminals.This method comprises: the luminance information of monitoring photographed scene;When monitoring the luminance information of photographed scene less than the first luminance threshold, control black and white sensor camera carries out focusing imaging to the target object in photographed scene, obtains black white image;Characteristics of objects identification is carried out to black white image, determines the characteristic area of each object in black white image;Complementary color processing is carried out to the characteristic area of object each in black white image, obtains the corresponding color image of black white image.The embodiment of the present invention is by shooting image using black and white sensor camera under low-light (level) environment, and the characteristic area for carrying out object to the black white image taken identifies, and the complementary color for carrying out corresponding color to the characteristic area of each object recognized is handled, to obtain the corresponding color image of the black white image, the imaging of color image under low-light (level) environment is realized, imaging clearly, effect are good.

Description

A kind of photographic method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of photographic methods and mobile terminal.
Background technique
Current mobile terminal only has color sensor (sensor) camera mostly, then when mobile terminal is in low photograph When spending under environment (such as only under the night environment of star and the moon) shooting image, figure insufficient in the prevalence of lightness The problem that piece is unintelligible and noise is big.
To solve the above-mentioned problems, the solution of the prior art is that black and white sensor (sensor) camera is added.Though So it can realize that image under low-light (level) environment is imaged to a certain extent, but its image presented is black and white, and It is presented without colored.
It can be seen that scheme is imaged when the image under to low light environment is imaged in image in the prior art, and Clear color image cannot be accessed, imaging effect is poor.
Summary of the invention
The embodiment of the present invention provides a kind of photographic method and mobile terminal, to solve to carry out image bat under low-light (level) environment When taking the photograph, clear color image, the problem of imaging effect difference cannot be accessed.
In a first aspect, the method is applied to mobile terminal, the shifting the embodiment of the invention provides a kind of photographic method Dynamic terminal has black and white sensor camera and color sensor camera, which comprises
Monitor the luminance information of photographed scene;
When monitoring the luminance information of the photographed scene less than the first luminance threshold, controls the black and white sensor and take the photograph As head carries out focusing imaging to the target object in the photographed scene, black white image is obtained;
Characteristics of objects identification is carried out to the black white image, determines the characteristic area of each object in the black white image;
Complementary color processing is carried out to the characteristic area of each object in the black white image, it is corresponding to obtain the black white image Color image.
Second aspect, the embodiment of the invention also provides a kind of mobile terminal, the mobile terminal includes black and white sensor Camera and color sensor camera, the mobile terminal further include:
Monitoring modular, for monitoring the luminance information of photographed scene;
First image-forming module, it is bright less than first for the luminance information when the monitoring module monitors to the photographed scene When spending threshold value, controls the black and white sensor camera and focusing imaging is carried out to the target object in the photographed scene, Obtain black white image;
Identification module, the black white image for obtaining to first image-forming module carry out characteristics of objects identification, really The characteristic area of each object in the fixed black white image;
Complementary color module, the characteristic area for each object in the black white image determining to the identification module carry out Complementary color processing, obtains the corresponding color image of the black white image.
In this way, the embodiment of the present invention, which passes through, shoots image using black and white sensor camera under low-light (level) environment, and right The black white image taken carries out the characteristic area identification of object, and carries out phase to the characteristic area of each object recognized It answers the complementary color of color to handle, to obtain the corresponding color image of the black white image, realizes colour under low-light (level) environment The imaging of image, imaging clearly, effect are good.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the photographic method of first embodiment of the invention;
Fig. 2 is the flow chart of the photographic method of second embodiment of the invention;
Fig. 3 is the block diagram of the mobile terminal of third embodiment of the invention;
Fig. 4 is the block diagram of another mobile terminal of third embodiment of the invention;
Fig. 5 is the block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 6 is the structural schematic diagram of the mobile terminal of fifth embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig.1, the flow chart of the photographic method of one embodiment of the invention is shown, mobile terminal is applied to, it is described Mobile terminal includes black and white sensor camera and color sensor camera, and this method can specifically include following steps:
Step 101, the luminance information of photographed scene is monitored.
Wherein, when using mobile terminal shooting photo, shooting preview interface can be initially entered, then monitoring is current claps Take the photograph the luminance information under scene.
Step 102, when monitoring the luminance information of the photographed scene less than the first luminance threshold, the black and white is controlled Sensor camera carries out focusing imaging to the target object in the photographed scene, obtains black white image.
Wherein, when the luminance information is less than the first luminance threshold, then show that present filming scene belongs to low light environment, Black and white sensor camera can so be opened the target object under the scene is focused and is imaged, obtain black and white shadow Picture.
Step 103, characteristics of objects identification is carried out to the black white image, determines the spy of each object in the black white image Levy region.
Wherein it is possible to using feature identification technique to characteristics of objects (such as the five features, environmental characteristic in black white image Deng) identified, it may thereby determine that the characteristic area of each object in the black white image.
Step 104, complementary color processing is carried out to the characteristic area of each object in the black white image, obtains the artwork master As corresponding color image.
Wherein it is possible to which the feature region to each object in black white image carries out complementary color processing, can make in this way Each feature after complementary color obtains sufficient complementary color processing, and the incomplete situation of complementary color is not present, to obtain colored figure Picture.
In this way, the embodiment of the present invention, which passes through, shoots image using black and white sensor camera under low-light (level) environment, and right The black white image taken carries out the characteristic area identification of object, and carries out phase to the characteristic area of each object recognized It answers the complementary color of color to handle, to obtain the corresponding color image of the black white image, realizes colour under low-light (level) environment The imaging of image, imaging clearly, effect are good.
Second embodiment
Referring to Fig. 2, the flow chart of the photographic method of another embodiment of the present invention is shown, is applied to mobile terminal, it should Mobile terminal includes black and white sensor camera and color sensor camera, and this method can specifically include following steps:
Step 201, the luminance information of photographed scene is monitored.
Wherein, when using mobile terminal shooting photo, shooting preview interface can be initially entered, then monitoring is current claps Take the photograph the brightness value under scene.
Step 202, the luminance information is made comparisons with the second luminance threshold, obtains the second comparison result.
Wherein, the brightness value is compared with biggish luminance threshold first, to judge that present filming scene is place In the lower environment of luminosity (for example, indoor environment) or the higher environment of luminosity (for example, outdoor environment), preset here The second luminance threshold be 50 luxs (Lux).
Then, after obtaining the second comparison result, so that it may according to second comparison result, determine the target image Focusing imaging mode, it is specific as follows:
Step 203, when the luminance information is greater than second luminance threshold, color sensor camera is controlled to institute The target image stated in photographed scene carries out focusing imaging, obtains color image.
Wherein, if the brightness value is the 60Lux greater than the second luminance threshold 50Lux, illustrate the bright of current environment Can directly be focused by color sensor camera imaging, and imaging clearly are spent, then obtains color image.
Step 204, when the luminance information is less than second luminance threshold, by the luminance information and described first Luminance threshold is made comparisons.
Wherein, if the brightness value is the 30Lux less than the second luminance threshold 50Lux, illustrate the bright of current environment Degree is relatively darker, at this point, color sensor camera has been not easy to focus successfully, in order to further judge present intensity value category In which kind of low luminous environment, it is also necessary to by the brightness value compared with lesser luminance threshold, the first luminance threshold here is 1Lux, That is, the first luminance threshold is less than the second luminance threshold, and two luminance thresholds are all the creativeness by many experiments and calculating Obtained from labour.In some embodiments, which can be between 0.001~1Lux, second luminance threshold Value is greater than 30Lux.
Step 205, when the luminance information is greater than first luminance threshold, black and white sensor camera is controlled to institute The target image stated in photographed scene carries out focusing process, obtains focusing information, the focusing information is sent to the colour Sensor camera.
Wherein, due to the 30Lux that the brightness value is greater than the first luminance threshold 1Lux, showing current environment, there are also faint Light is not without the low luminous environment such as moonlight, and still, color sensor camera can not accurately focus at this time.Therefore, Ke Yiqi Dynamic black and white sensor camera focuses to target image, obtains AF (auto-focusing) information, and the AF information is sent to Color sensor camera.
Step 206, control color sensor camera focuses into the target image according to the focusing information As processing, color image is obtained.
Wherein, color sensor camera AF information can to carry out auxiliary focusing to target object based on the received, To realize the accurate focusing of target object, then it is imaged, obtains clearly color image.
Step 207, it when the luminance information monitored is less than the first luminance threshold, controls the black and white sensor and takes the photograph As head carries out focusing imaging to the target object in the present filming scene, black white image is obtained.
Wherein, if present intensity value is to show current photographed scene less than the 0.0002 of the first luminance threshold 1Lux Light it is very faint, belong to the low luminous environment of no moonlight, even if being at this time transmitted to AF information by black and white sensor camera Color sensor camera, which, which wears, just plays a camera and also can not accurately focus imaging.Therefore, black and white sensor is needed at this time Camera directly focuses to target object and carries out imaging, and black-and-white image is obtained.
Step 208, characteristics of objects identification is carried out to the black white image, determines the spy of each object in the black white image Levy region.
Wherein, the specific implementation step of the step 208 may include: the edge of each object in the determining black white image Information;According to the marginal information, the characteristic area of each object is determined.
That is, can be by face recognition technology and other feature identification techniques to each object in black white image The marginal information of (such as the objects such as the face such as lip, eyes object and hair, four limbs, flowers and plants) carries out identification determination, and root The characteristic area of each object, i.e., the entire object in feature contour are determined according to marginal information.
Wherein, in determining black white image when the marginal information of each object, i.e., the edge of each object is detected When, edge detection algorithm in the prior art, such as Robert boundary operator, Prewitt boundary operator, Sobel can be used Boundary operator, Kirsch boundary operator and Laplacian operator etc. carry out edge detection to image.
Step 209, complementary color processing is carried out to the characteristic area of each object in the black white image, obtains the artwork master As corresponding color image.
Wherein, the specific implementation step of the step 209 may include: based on default complementary color library, to each object into Row classification, determines the corresponding complementary color type of each object;Based on the default complementary color library, determine that each complementary color type is corresponding Complementary color color;Based on the corresponding complementary color color of each complementary color type, to each object in the black white image Characteristic area carries out complementary color processing respectively, obtains the corresponding color image of the black white image.
Wherein, the complementary color type and the corresponding complementary color color of each complementary color type that complementary color library includes different objects are preset, Wherein the complementary color color is constituted by various color matrix and (is had been carried out and be stored in advance).It can be convenient in this way and quickly call color Color matrix to carry out parallel complementary color to the characteristics of objects region of identical complementary color type, improves complementary color speed.
For example, one kind can be divided by presetting the object that meeting is same or similar to color in complementary color library, i.e., they correspond to phases Same complementary color color, such as.Face and body trunk --- it mends yellowish pink;Hair --- mend black;Lip --- it mends red;Tree Leaf --- mend green;Sky --- blue is mended, there are also the benefits of the features such as other stones, metal, building, cloud and mist certainly Color, details are not described herein.So face characteristics of objects and body trunk characteristics of objects belong to a complementary color type, then to people When face and body trunk object carries out complementary color, so that it may while the complementary color processing of same color is carried out, improve complementary color efficiency.
By means of the technical solution of the above embodiment of the present invention, the embodiment of the present invention can at night or the dark of low-light (level) Clearly black white image is accurately taken under environment, while the automatic identification of feature quickly can be carried out simultaneously to black white image Complementary color, to can also photograph beautiful photochrome in dark environment.In this way, regardless of captured object is to go back indoors It is outdoor, no matter how dark environment is, can quickly take clearly coloured photo whenever and wherever possible and come.Bat can not only be improved According to experience;And the method for the embodiment of the present invention be also applied to it is some it is more hidden keep away the scene for taking the photograph bat, then in order to collect evidence, Can be in the case where the side of being taken can't see shooting side, shooting side still clearly can shoot or record required cromogram Picture or image are convenient for various evidence obtainings.
3rd embodiment
Referring to Fig. 3, the block diagram of the mobile terminal of one embodiment of the invention is shown.Wherein, the mobile terminal includes Black and white sensor camera and color sensor camera, also, mobile terminal shown in Fig. 3 300 further include:
Monitoring modular 301, for monitoring the luminance information of photographed scene.
First image-forming module 302, for monitoring that the luminance information of the photographed scene is less than when the monitoring modular 301 When the first luminance threshold, controls the black and white sensor camera and focusing imaging is carried out to the target object in the photographed scene Processing, obtains black white image.
Identification module 303, the black white image for obtaining to first image-forming module 302 carry out characteristics of objects knowledge Not, the characteristic area of each object in the black white image is determined.
Complementary color module 304, the characteristic area for each object in the black white image of the identification module 303 determination Complementary color processing is carried out, the corresponding color image of the black white image is obtained.
Referring to Fig. 4, on the basis of Fig. 3, optionally, the mobile terminal 300 may also include that
Second comparison module 305, the luminance information and the second luminance threshold for monitoring the monitoring modular 301 Value is made comparisons, and the second comparison result is obtained.
Determine policy module 306, second comparison result for being obtained according to second comparison module 305, really The fixed focusing imaging mode to the target image.
Wherein, the determining policy module 306 includes:
First imaging submodule 3061, for when the luminance information is greater than second luminance threshold, control to be colored Sensor camera carries out focusing imaging to the target image in the photographed scene, obtains color image.
First Comparative sub-module 3062 is used for when the luminance information is less than second luminance threshold, will be described bright Degree information and first luminance threshold are made comparisons.
Correspondingly, first image-forming module 302 is also used to judge the brightness when first Comparative sub-module 3062 When information is less than first luminance threshold, the black and white sensor camera is controlled to the target object in the photographed scene Focusing imaging is carried out, black white image is obtained.
First Focusing module 307, for judging the luminance information greater than described when first Comparative sub-module 3062 When the first luminance threshold, control black and white sensor camera carries out focusing process to the target image in the photographed scene, obtains To focusing information.
Sending module 308, the focusing information for obtaining first Focusing module 307 are sent to the colour Sensor camera.
Second Focusing module 309, for controlling color sensor camera according to the sending module 308 transmission Focusing information carries out focusing imaging to the target image, obtains color image.
In addition, the identification module 303 includes:
Edge submodule 3031 is determined, for determining the marginal information of each object in the black white image.
Determine characteristic area submodule 3032, the edge for determining according to the determining edge submodule 3041 is believed Breath, determines the characteristic area of each object.
The complementary color module 304 includes:
Submodule 3041 of classifying classifies to each object based on default complementary color library, determines that each object is corresponding Complementary color type.
It determines complementary color color submodule 3042, for being based on the default complementary color library, determines that the classification submodule determines Each of complementary color color corresponding to the complementary color type.
Correspondingly, the complementary color module 304, is also used to the described each of complementary color color submodule determination based on the determination The corresponding complementary color color of the complementary color type, carries out at complementary color the characteristic area of each object in the black white image respectively Reason, obtains the corresponding color image of the black white image.
Mobile terminal 300 can be realized that mobile terminal in the embodiment of the method for Fig. 1 to Fig. 2 realizes at night or low-light (level) Dark surrounds under accurately take clearly black white image, while the automatic of feature quickly can be carried out to black white image Simultaneously complementary color is identified, to can also photograph beautiful photochrome in dark environment.In this way, regardless of captured object be It is indoor or outdoor, regardless of how dark environment is, clearly coloured photo can be quickly taken whenever and wherever possible and is come.It can not only Raising is taken pictures experience;And the method for the embodiment of the present invention be also applied to it is some it is more hidden keep away the scene for taking the photograph bat, then for Evidence obtaining, can in the case where the side of being taken can't see shooting side, needed for shooting side still clearly can shoot or record Color image or image, be convenient for various evidence obtainings, to avoid repeating, which is not described herein again.
Fourth embodiment
Fig. 5 is the block diagram of the mobile terminal of another embodiment of the invention.Mobile terminal 500 shown in fig. 5 includes: at least One processor 501, memory 502, at least one network interface 504, user interface 503, black and white camera 506 and colour are taken the photograph As head 507.Various components in mobile terminal 500 are coupled by bus system 505.It is understood that bus system 505 is used Connection communication between these components of realization.Bus system 505 further includes power bus, control in addition to including data/address bus Bus and status signal bus in addition processed.But for the sake of clear explanation, various buses are all designated as bus system 505 in Fig. 5.
Wherein, user interface 503 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 502 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 502 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 502 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 5021 and application program 5022.
Wherein, operating system 5021 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 5022 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 5022.
In embodiments of the present invention, by the program or instruction of calling memory 502 to store, specifically, can be application The program or instruction stored in program 5022, processor 501 are used to monitor the luminance information of photographed scene;When monitoring the bat When taking the photograph the luminance information of scene less than the first luminance threshold, the black and white sensor camera is controlled in the photographed scene Target object carries out focusing imaging, obtains black white image;To the black white image carry out characteristics of objects identification, determine described in The characteristic area of each object in black white image;Complementary color processing is carried out to the characteristic area of each object in the black white image, Obtain the corresponding color image of the black white image.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501. Processor 501 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 501 or the instruction of software form.Above-mentioned processing Device 501 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 502, and processor 501 reads the information in memory 502, 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 501 is also used to: the luminance information being made comparisons with the second luminance threshold, obtains the second ratio Relatively result;According to second comparison result, the focusing imaging mode to the target image is determined.
Optionally, processor 501 is used to control the colour when the luminance information is greater than second luminance threshold Sensor camera carries out focusing imaging to the target image in the photographed scene, obtains color image.
Optionally, processor 501 is used to believe the brightness when the luminance information is less than second luminance threshold Breath and first luminance threshold are made comparisons;When the luminance information is less than first luminance threshold, the control is executed The black and white sensor camera carries out focusing imaging to the target object in the photographed scene, obtains black white image Step.
Optionally, processor 501 is used to control the black and white when the luminance information is greater than first luminance threshold Sensor camera carries out focusing process to the target image in the photographed scene, obtains focusing information;The focusing is believed Breath is sent to the color sensor camera;The color sensor camera is controlled according to the focusing information to the mesh Logo image carries out focusing imaging, obtains color image.
Optionally, processor 501 is used to determine the marginal information of each object in the black white image;According to the edge Information determines the characteristic area of each object.
Optionally, processor 501 is used to classify to each object, it is each right to determine based on default complementary color library As corresponding complementary color type;Based on the default complementary color library, the corresponding complementary color color of each complementary color type is determined;Based on institute The corresponding complementary color color of each complementary color type is stated, the characteristic area of each object in the black white image is mended respectively Color processing, obtains the corresponding color image of the black white image.
Mobile terminal 500 can be realized that mobile terminal in previous embodiment realizes at night or the dark surrounds of low-light (level) Under accurately take clearly black white image, while the automatic identification and benefit of feature can be quickly carried out to black white image Color, to can also photograph beautiful photochrome in dark environment.In this way, regardless of captured object be indoors or Outdoor can quickly take clearly coloured photo whenever and wherever possible and come regardless of how dark environment is.It can not only improve and take pictures Experience;And the method for the embodiment of the present invention be also applied to it is some it is more hidden keep away the scene for taking the photograph bat, then in order to collect evidence, energy Enough in the case where the side of being taken can't see shooting side, shooting side still clearly can shoot or record required color image Or image, it is convenient for various evidence obtainings, to avoid repeating, which is not described herein again.
5th embodiment
Fig. 6 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6 600 can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 600 in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 610, memory 620, input list First 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (WirelessFidelity) module 680, power supply 690, black and white camera 6100 and colour imagery shot 6110.
Wherein, input unit 630 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 600 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 631.Touch panel 631, 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 631 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 631 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 660 is given again, and can be received order that processor 660 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 631.In addition to touch panel 631, input unit 630 can also include other input equipments 632, other input equipments 632 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 640 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 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hair The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 641.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 660 is sent to determine the type of touch event, is followed by subsequent processing device 660 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.
Wherein processor 660 is the control centre of mobile terminal 600, 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 621, and calling storage Data in second memory 622 execute the various functions and processing data of mobile terminal 600, thus to mobile terminal 600 Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, processor 660 are used to monitor the luminance information of photographed scene;When monitoring the bat When taking the photograph the luminance information of scene less than the first luminance threshold, the black and white sensor camera is controlled in the photographed scene Target object carries out focusing imaging, obtains black white image;To the black white image carry out characteristics of objects identification, determine described in The characteristic area of each object in black white image;Complementary color processing is carried out to the characteristic area of each object in the black white image, Obtain the corresponding color image of the black white image.
Optionally, processor 660 obtains second and compares knot for the luminance information to be made comparisons with the second luminance threshold Fruit;According to second comparison result, the focusing imaging mode of the target image is determined.
Optionally, processor 660 is used to control the colour when the luminance information is greater than second luminance threshold Sensor camera carries out focusing imaging to the target image in the photographed scene, obtains color image.
Optionally, processor 660 is used to believe the brightness when the luminance information is less than second luminance threshold Breath and first luminance threshold are made comparisons;When the luminance information is less than first luminance threshold, the control is executed The black and white sensor camera carries out focusing imaging to the target object in the photographed scene, obtains black white image Step.
Optionally, processor 660 is used to control the black and white when the luminance information is greater than first luminance threshold Sensor camera carries out focusing process to the target image in the photographed scene, obtains focusing information;The focusing is believed Breath is sent to the color sensor camera;The color sensor camera is controlled according to the focusing information to the mesh Logo image carries out focusing imaging, obtains color image.
Optionally, processor 660 is used to determine the marginal information of each object in the black white image;According to the edge Information determines the characteristic area of each object.
Optionally, processor 660 is used to classify to each object, it is each right to determine based on default complementary color library As corresponding complementary color type;Based on the default complementary color library, the corresponding complementary color color of each complementary color type is determined;Based on institute The corresponding complementary color color of each complementary color type is stated, the characteristic area of each object in the black white image is mended respectively Color processing, obtains the corresponding color image of the black white image.
As it can be seen that the embodiment of the present invention can accurately take clearly colour at night or under the dark surrounds of low-light (level) Photo, to avoid repeating, which is not described herein again.
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 (12)

1. a kind of photographic method is applied to mobile terminal, which is characterized in that the mobile terminal includes the camera shooting of black and white sensor Head, which comprises
Monitor the luminance information of photographed scene;
When monitoring the luminance information of the photographed scene less than the first luminance threshold, the black and white sensor camera is controlled Focusing imaging is carried out to the target object in the photographed scene, obtains black white image;
Characteristics of objects identification is carried out to the black white image, determines the characteristic area of each object in the black white image;
Complementary color processing is carried out to the characteristic area of each object in the black white image, obtains the corresponding colour of the black white image Image;
Wherein, the characteristic area to each object in the black white image carries out complementary color processing, obtains the black white image The step of corresponding color image, comprising: based on default complementary color library, classify to each object, determine each object Corresponding complementary color type;Based on the default complementary color library, the corresponding complementary color color of each complementary color type is determined;Based on described The corresponding complementary color color of each complementary color type, carries out complementary color to the characteristic area of each object in the black white image respectively Processing, obtains the corresponding color image of the black white image.
2. the method according to claim 1, wherein described ought monitor that the luminance information of the photographed scene is small When the first luminance threshold, controls the black and white sensor camera and focused into the target object in the photographed scene Before the step of handling, obtaining black white image, the method also includes:
The luminance information is made comparisons with the second luminance threshold, obtains the second comparison result;
According to second comparison result, the focusing imaging mode of the target image is determined.
3. according to the method described in claim 2, it is characterized in that, the mobile terminal further includes color sensor camera, It is described according to second comparison result, the step of determining the focusing imaging mode of the target image, comprising:
When the luminance information is greater than second luminance threshold, the color sensor camera is controlled to the shooting field Target image in scape carries out focusing imaging, obtains color image.
4. according to the method described in claim 2, determination is to described it is characterized in that, described according to second comparison result The step of focusing imaging mode of target image, further includes:
When the luminance information is less than second luminance threshold, the luminance information and first luminance threshold are made into ratio Compared with;
When the luminance information is less than first luminance threshold, the control black and white sensor camera is executed to institute State the step of target object in photographed scene carries out focusing imaging, obtains black white image.
5. according to the method described in claim 4, it is characterized in that, described by the luminance information and first luminance threshold After the step of making comparisons, the method also includes:
When the luminance information is greater than first luminance threshold, the black and white sensor camera is controlled to the shooting field Target image in scape carries out focusing process, obtains focusing information;
The focusing information is sent to the color sensor camera;
It controls the color sensor camera and focusing imaging is carried out to the target image according to the focusing information, obtain To color image.
6. the method according to claim 1, wherein it is described to the black white image carry out characteristics of objects identification, The step of determining the characteristic area of each object in the black white image, comprising:
Determine the marginal information of each object in the black white image;
According to the marginal information, the characteristic area of each object is determined.
7. a kind of mobile terminal, which is characterized in that the mobile terminal includes black and white sensor camera, and the mobile terminal is also Include:
Monitoring modular, for monitoring the luminance information of photographed scene;
First image-forming module, for when the luminance information of the monitoring module monitors to the photographed scene is less than the first luminance threshold When value, controls the black and white sensor camera and focusing imaging is carried out to the target object in the photographed scene, obtain Black white image;
Identification module, the black white image for obtaining to first image-forming module carry out characteristics of objects identification, determine institute State the characteristic area of each object in black white image;
Complementary color module, the characteristic area for each object in the black white image determining to the identification module carry out complementary color Processing, obtains the corresponding color image of the black white image;
Wherein, the complementary color module includes: classification submodule, based on default complementary color library, is classified to each object, really Determine the corresponding complementary color type of each object;It determines complementary color color submodule, for being based on the default complementary color library, determines described point Complementary color color corresponding to each of the class submodule determination complementary color type;Correspondingly, the complementary color module, is also used to be based on The corresponding complementary color color of each complementary color type that the determining complementary color color submodule determines, to the black white image In the characteristic area of each object carry out complementary color processing respectively, obtain the corresponding color image of the black white image.
8. mobile terminal according to claim 7, which is characterized in that the mobile terminal further include:
Second comparison module, for by the monitoring module monitors to the luminance information make comparisons with the second luminance threshold, Obtain the second comparison result;
Determine policy module, second comparison result for obtaining according to second comparison module is determined to the mesh The focusing imaging mode of logo image.
9. mobile terminal according to claim 8, which is characterized in that the mobile terminal further includes color sensor camera shooting Head, the determining policy module include:
First imaging submodule, for when the luminance information is greater than second luminance threshold, controlling the colored sensing Device camera carries out focusing imaging to the target image in the photographed scene, obtains color image.
10. mobile terminal according to claim 8, which is characterized in that the determining policy module further include:
First Comparative sub-module, for when the luminance information is less than second luminance threshold, by the luminance information and First luminance threshold is made comparisons;
First image-forming module is also used to judge that the luminance information is bright less than described first when first Comparative sub-module When spending threshold value, controls the black and white sensor camera and focusing imaging is carried out to the target object in the photographed scene, Obtain black white image.
11. mobile terminal according to claim 10, which is characterized in that the mobile terminal further include:
First Focusing module, for judging that the luminance information is greater than first luminance threshold when first Comparative sub-module When, it controls the black and white sensor camera and focusing process is carried out to the target image in the photographed scene, obtain focusing letter Breath;
Sending module, the focusing information for obtaining first Focusing module are sent to the color sensor camera shooting Head;
Second Focusing module is believed for controlling the color sensor camera according to the focusing that the sending module is sent Breath carries out focusing imaging to the target image, obtains color image.
12. mobile terminal according to claim 7, which is characterized in that the identification module includes:
Edge submodule is determined, for determining the marginal information of each object in the black white image;
Determine characteristic area submodule, the marginal information for being determined according to the determining edge submodule, determine described in The characteristic area of each object.
CN201610513592.6A 2016-06-30 2016-06-30 A kind of photographic method and mobile terminal Active CN106060419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610513592.6A CN106060419B (en) 2016-06-30 2016-06-30 A kind of photographic method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610513592.6A CN106060419B (en) 2016-06-30 2016-06-30 A kind of photographic method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106060419A CN106060419A (en) 2016-10-26
CN106060419B true CN106060419B (en) 2019-05-17

Family

ID=57201685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610513592.6A Active CN106060419B (en) 2016-06-30 2016-06-30 A kind of photographic method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106060419B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106226976B (en) * 2016-09-22 2019-09-03 宇龙计算机通信科技(深圳)有限公司 A kind of dual camera image pickup method, system and terminal
CN106534696A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Focusing apparatus and method
CN106791379A (en) * 2016-12-05 2017-05-31 奇酷互联网络科技(深圳)有限公司 Method and device based on the synthesis of dual camera image
CN106791734A (en) * 2016-12-27 2017-05-31 珠海市魅族科技有限公司 The method of device, electronic installation and IMAQ for IMAQ
CN107018326B (en) * 2017-03-31 2020-10-16 努比亚技术有限公司 Shooting method and device
CN106878621B (en) * 2017-04-19 2020-12-18 宇龙计算机通信科技(深圳)有限公司 Double-camera shooting method and device
CN107087108A (en) * 2017-05-18 2017-08-22 努比亚技术有限公司 A kind of image processing method and device based on dual camera
CN107465881B (en) * 2017-09-30 2020-06-26 努比亚技术有限公司 Dual-camera focusing method, mobile terminal and computer readable storage medium
CN107872622B (en) * 2017-11-24 2020-12-25 广东小天才科技有限公司 Close-range imaging method and mobile terminal
CN109544659B (en) * 2018-10-15 2023-07-18 创新先进技术有限公司 Schematic diagram generation method and device
US10805579B2 (en) * 2019-01-30 2020-10-13 Primesensor Technology Inc. Motion detection methods and motion sensors capable of more accurately detecting true motion event
CN110536068B (en) * 2019-09-29 2021-09-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112073596B (en) * 2020-09-18 2021-07-20 青岛大学 Simulated color processing method and system for specific black-and-white video signal
CN113924967B (en) * 2021-11-15 2023-01-17 中国农业科学院都市农业研究所 Intelligent plant factory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480593A (en) * 2010-11-25 2012-05-30 杭州华三通信技术有限公司 Double-lens video camera switching method and device
CN103595982A (en) * 2013-11-07 2014-02-19 天津大学 Color image collection device based on gray level sensor and color image sensor
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129148A (en) * 2010-01-20 2011-07-20 鸿富锦精密工业(深圳)有限公司 Camera and photo shooting and processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480593A (en) * 2010-11-25 2012-05-30 杭州华三通信技术有限公司 Double-lens video camera switching method and device
CN103595982A (en) * 2013-11-07 2014-02-19 天津大学 Color image collection device based on gray level sensor and color image sensor
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

Also Published As

Publication number Publication date
CN106060419A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106060419B (en) A kind of photographic method and mobile terminal
CN106331510B (en) A kind of backlight photographic method and mobile terminal
CN105227858B (en) A kind of image processing method and mobile terminal
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN105827990B (en) A kind of automatic explosion method and mobile terminal
CN105827964B (en) A kind of image processing method and mobile terminal
CN105898143B (en) A kind of grasp shoot method and mobile terminal of moving object
CN106254682B (en) A kind of photographic method and mobile terminal
CN107659769B (en) A kind of image pickup method, first terminal and second terminal
CN107395976B (en) A kind of acquisition parameters setting method and mobile terminal
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN106954027B (en) Image shooting method and mobile terminal
CN110505411A (en) Image capturing method, device, storage medium and electronic equipment
CN106060406A (en) Photographing method and mobile terminal
CN107172296A (en) A kind of image capturing method and mobile terminal
CN106454085B (en) A kind of image processing method and mobile terminal
CN106416222A (en) Real-time capture exposure adjust gestures
CN106657806B (en) A kind of exposure method and mobile terminal
CN106161967A (en) A kind of backlight scene panorama shooting method and mobile terminal
CN105827965A (en) Image processing method based on mobile terminal and mobile terminal
CN106060386A (en) Preview image generation method and mobile terminal
CN107395898A (en) A kind of image pickup method and mobile terminal
CN107231530A (en) A kind of photographic method and mobile terminal
CN106937055A (en) A kind of image processing method and mobile terminal
CN106210526A (en) A kind of image pickup method and 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