Nothing Special   »   [go: up one dir, main page]

CN105516606A - Shooting device and method - Google Patents

Shooting device and method Download PDF

Info

Publication number
CN105516606A
CN105516606A CN201610042049.2A CN201610042049A CN105516606A CN 105516606 A CN105516606 A CN 105516606A CN 201610042049 A CN201610042049 A CN 201610042049A CN 105516606 A CN105516606 A CN 105516606A
Authority
CN
China
Prior art keywords
image
chromatic value
color
pixel
chromatic
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
CN201610042049.2A
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 CN201610042049.2A priority Critical patent/CN105516606A/en
Publication of CN105516606A publication Critical patent/CN105516606A/en
Priority to PCT/CN2016/113756 priority patent/WO2017124909A1/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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • 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 shooting device. The shooting device comprises a generation module, a determination module and a processing module. The generation module is used for generating a color selection interface according to chromatic values of all pixel points in an image displayed in a finder frame. The determination module is used for determining the chromatic value corresponding to a selection instruction when the selection instruction input by a user based on the color selection interface is received. The processing module is used for adjusting display parameters corresponding to the portion, not matched with the chromatic value, in the image and displaying the adjusted image in the finder frame. The display parameters comprise transparency or the chromatic values. The invention further discloses a shooting method. Shooting intelligence is improved.

Description

Camera arrangement and method
Technical field
The present invention relates to shooting technology field, particularly relate to a kind of camera arrangement and method.
Background technology
At present, the mobile devices such as smart mobile phone all adopt preferably hardware facility on camera imaging, and overall image quality relevant progress is comparatively large, can be satisfied with general life record and Taking Pictures recording demand.The image of present most of photographing device shooting is nearly all colour picture, certainly, user can carry out simple process to obtain the image after processing to image after having taken pictures, black and white image etc. is obtained as carried out black and white process, but the colour of image and black and white are all to generally speaking, if user wants the coloured image processing the image into local, namely in image, only some is colored, and remainder is the image of black and white, can only complete at image taking relies on later stage software as PS software (Photoshop software, a kind of image processing software) carry out local and to discolor process, to reach presenting of particular color in image, that is, present shooting style, general image can only be obtained when taking pictures, if user wants to obtain partial color image, need to be processed image by specific software in the later stage, obviously, this shooting style, the image ratio of shooting is more single, intelligent lower.
Summary of the invention
Main purpose of the present invention is to propose a kind of camera arrangement and method, is intended to traditional shooting style, and the image ratio of shooting is more single, intelligent lower technical problem.
For achieving the above object, a kind of camera arrangement provided by the invention, described camera arrangement comprises:
Generation module, generates color selecting interface for the chromatic value according to each pixel in the image shown in view-finder;
Determination module, for when receiving the selection instruction that user inputs based on described color selecting interface, determines the chromatic value that described selection instruction is corresponding;
Processing module, for adjusting display parameters corresponding with the unmatched part of described chromatic value in described image, and in described view-finder, show the image after adjustment, wherein, described display parameters comprise transparency or chromatic value.
Alternatively, described generation module comprises:
Transformant module, for the RGB color model of described image is converted into hsv color model, obtains the image after transforming;
Generate submodule, for generating color selecting interface according to the chromatic value of each pixel in the image after conversion.
Alternatively, described generation submodule comprises:
Acquiring unit, for obtaining the color parameter that in the described image after conversion, each pixel is corresponding, wherein, described color parameter comprises tone, saturation and brightness;
Generation unit, for the color parameter corresponding according to each pixel in the described image after conversion, generates the chromatic value that each pixel is corresponding;
Computing unit, accounts for the weighted value of all chromatic values for calculating various chromatic value in the described image after conversion;
Described generation unit, also generates described color selecting interface for the weighted value corresponding according to various chromatic value.
Alternatively, described determination module comprises:
Output unit, for when receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface;
Determining unit, for when receiving the range of tolerable variance that user selects interface to select based on described range of tolerable variance, determines the chromatic value that described range of tolerable variance is corresponding, and using the described chromatic value determined as chromatic value corresponding to described selection instruction.
Alternatively, described camera arrangement also comprises:
Acquisition module, for when receiving the information addition instruction of user's input, obtains the information that described information addition instruction is corresponding;
Add module, for adding in the described image after adjustment, to show the image adding described information by the described information obtained.
In addition, for achieving the above object, the present invention also proposes a kind of photographic method, and described photographic method comprises the following steps:
Chromatic value according to each pixel in the image shown in view-finder generates color selecting interface;
When receiving the selection instruction that user inputs based on described color selecting interface, determine the chromatic value that described selection instruction is corresponding;
Adjust display parameters corresponding with the unmatched part of described chromatic value in described image, and in described view-finder, show the image after adjustment, wherein, described display parameters comprise transparency or chromatic value.
Alternatively, in the described image according to showing in view-finder, the step at the chromatic value generation color selecting interface of each pixel comprises:
The RGB color model of described image is converted into hsv color model, obtains the image after transforming;
Color selecting interface is generated according to the chromatic value of each pixel in the image after conversion.
Alternatively, the step at the described chromatic value generation color selecting interface according to each pixel in the image after conversion comprises:
Obtain the color parameter that in the described image after transforming, each pixel is corresponding, wherein, described color parameter comprises tone, saturation and brightness;
The color parameter corresponding according to each pixel in the described image after conversion, generates the chromatic value that each pixel is corresponding;
Calculate various chromatic value in the described image after transforming and account for the weighted value of all chromatic values;
The weighted value corresponding according to various chromatic value generates described color selecting interface.
Alternatively, described when receiving the selection instruction that user inputs based on described color selecting interface, determine that the step of the chromatic value that described selection instruction is corresponding comprises:
When receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface;
When receiving the range of tolerable variance that user selects interface to select based on described range of tolerable variance, determine the chromatic value that described range of tolerable variance is corresponding, and using the described chromatic value determined as chromatic value corresponding to described selection instruction.
Alternatively, described show in described view-finder adjustment after image step after, described photographic method also comprises:
When receiving the information addition instruction of user's input, obtain the information that described information addition instruction is corresponding;
The described information obtained is added in the described image after adjustment, to show the image adding described information.
The camera arrangement that the present invention proposes and method, comprise generation module, determination module and processing module, described generation module generates color selecting interface according to the chromatic value of each pixel in the image shown in view-finder, when receiving the selection instruction that user inputs based on described color selecting interface, described determination module determines the chromatic value that described selection instruction is corresponding, described processing module adjusts display parameters corresponding with the unmatched part of described chromatic value in described image, and the image shown in described view-finder after adjustment, achieve in the process of taking pictures, chromatic value according to each pixel in image generates color selecting interface, and when user selects the chromatic value in described color selecting interface, adjust display parameters corresponding with the unmatched part of described chromatic value in described image, as adjusted transparency or the chromatic value of not compatible portion, obviously distinguish with unadjusted part to make the part of adjustment, make the image that described view-finder finally shows, only that the part of the chromatic value of user's selection is normally shown, achieve when taking pictures and can generate partial color image, instead of overall coloured image or overall black and white image can only be taken, invention increases take pictures intelligent.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram realizing an optional mobile terminal in each embodiment of the present invention;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the high-level schematic functional block diagram of camera arrangement first embodiment of the present invention;
Fig. 4 is the refinement high-level schematic functional block diagram of generation module in Fig. 3;
Fig. 5 is the refinement high-level schematic functional block diagram generating submodule in Fig. 4;
Fig. 6 is the refinement high-level schematic functional block diagram of determination module in Fig. 3;
Fig. 7 is the high-level schematic functional block diagram of camera arrangement of the present invention 4th embodiment;
Fig. 8 is the schematic flow sheet of photographic method first embodiment of the present invention;
Fig. 9 is that the present invention generates the schematic flow sheet of color selecting interface preferred embodiment according to the chromatic value of each pixel in the image shown in view-finder;
Figure 10 is that the present invention generates the schematic flow sheet of color selecting interface preferred embodiment according to the chromatic value of each pixel in the image after conversion;
Figure 11 is when receiving the selection instruction that user inputs based on described color selecting interface, determines the schematic flow sheet of the chromatic value preferred embodiment that described selection instruction is corresponding;
Figure 12 is the schematic flow sheet of photographic method of the present invention 4th embodiment;
Figure 13 is the structural representation of hsv color model of the present invention;
Figure 14 is the schematic diagram of the better display mode at color selecting interface of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, video camera, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration schematic diagram realizing an optional mobile terminal in each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and radio communication device or network.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 122, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 121 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration of mobile terminal 100 or speed is moved and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 181 for reproducing (or playback) multi-medium data, and multi-media module 181 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
With reference to the electrical structure block diagram that Fig. 2, Fig. 2 are camera in Fig. 1.
Phtographic lens 1211 is made up of the multiple optical lens for the formation of shot object image, is single-focus lens or zoom lens.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, lens driver 1221 is according to the control signal from lens driving control circuit 1222, control the focal position of phtographic lens 1211, when zoom lens, also can control focal length.Lens driving control circuit 1222 carries out the drived control of lens driver 1221 according to the control command from microcomputer 1217.
Imaging apparatus 1212 is configured with near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211.Imaging apparatus 1212 is for making a video recording to shot object image and obtaining image data.On imaging apparatus 1212 two dimension and be arranged in a matrix the photodiode forming each pixel.Each photodiode produces the opto-electronic conversion electric current corresponding with light income, and this opto-electronic conversion electric current carries out charge accumulation by the capacitor be connected with each photodiode.The front surface of each pixel is configured with the RGB colour filter of Bayer arrangement.
Imaging apparatus 1212 is connected with imaging circuit 1213, this imaging circuit 1213 carries out charge accumulation and controls and picture signal reading control in imaging apparatus 1212, to the picture signal (analog picture signal) of this reading reduce reset noise after carry out waveform shaping, and then carry out gain raising etc. to become suitable signal level.Imaging circuit 1213 is connected with A/D converter 1214, and this A/D converter 1214 pairs of analog picture signals carry out analog-to-digital conversion, to bus 1227 output digital image signal (hereinafter referred to as view data).
Bus 1227 is the transfer paths of the various data that the inside for being transmitted in camera reads or generates.Above-mentioned A/D converter 1214 is connected in bus 1227, be connected to image processor 1215, jpeg processor 1216, microcomputer 1217, SDRAM (SynchronousDynamicrandomaccessmemory in addition, SDRAM) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (LiquidCrystalDisplay, liquid crystal display) driver 1220.
Image processor 1215 carries out OB to the view data of the output based on imaging apparatus 1212 and subtracts each other process, blank level adjustment, color matrix computing, gamma conversion, color difference signal process, noise removal process, changes the various image procossing such as process, edge treated simultaneously.Jpeg processor 1216 by Imagery Data Recording in recording medium 1225 time, according to JPEG compress mode compression from SDRAM1218 read view data.In addition, jpeg processor 1216 carries out the decompression of jpeg image data in order to carry out image reproducing display.When decompressing, read the file that is recorded in recording medium 1225, implement decompression in jpeg processor 1216 after, the view data of decompression to be temporarily stored in SDRAM1218 and to show on LCD1226.H.264 in addition, in the present embodiment, what adopt as image compression decompression mode is JPEG mode, but compressed and decompressed mode is not limited thereto, and certainly can adopt MPEG, TIFF, other the compressed and decompressed mode such as.
Microcomputer 1217 plays the function of the control part as this camera entirety, the unified various process sequences controlling camera.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but not limited to physical button or virtual key, this entity or virtual key can be the operational controls such as various load button and various enter keies such as power knob, key of taking pictures, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, large buttons, detect the mode of operation of these operational controls.
Testing result is exported to microcomputer 1217.In addition, be provided with touch panel at the front surface of the LCD1226 as display, detect the touch location of user, this touch location is exported to microcomputer 1217.Microcomputer 1217, according to the testing result of the operating position from operating unit 1223, performs the various process sequences corresponding with the operation of user.
Flash memory 1224 stores the program of the various process sequences for performing microcomputer 1217.Microcomputer 1217 carries out the control of camera entirety according to this program.In addition, flash memory 1224 stores the various adjusted values of camera, and microcomputer 1217 reads adjusted value, carries out the control of camera according to this adjusted value.
SDRAM1218 is can the electricity volatile memory of rewriting for what carry out view data etc. temporarily storing.This SDRAM1218 temporarily stores the view data that exports from A/D converter 1214 and image processor 1215, jpeg processor 1216 etc., to have carried out the view data after processing.
Memory interface 1219 is connected with recording medium 1225, carries out the control by view data and the first-class data writing recording medium 1225 of file be attached in view data and reading from recording medium 1225.Recording medium 1225 be such as can on camera main-body the recording medium such as memory card of disassembled and assembled freely, but being not limited thereto, also can be the hard disk etc. be built in camera main-body.
Lcd driver 1210 is connected with LCD1226, view data after being processed by image processor 1215 is stored in SDRAM1218, when needing display, read the view data that SDRAM1218 stores also to show on LCD1226, or the compressed view data of jpeg processor 1216 is stored in SDRAM1218, when needs show, jpeg processor 1216 reads the compressed view data of SDRAM1218, then decompresses, and the view data after decompressing is shown by LCD1226.
Image display is carried out at the back side that LCD1226 is configured in camera main-body.This LCD1226LCD), but be not limited thereto, also can adopt the various display floaters (LCD1226) such as organic EL, but be not limited thereto, also can adopt the various display floaters such as organic EL.
Based on the electrical structure schematic diagram of above-mentioned mobile terminal hardware configuration and camera, each embodiment of camera arrangement of the present invention is proposed
With reference to the high-level schematic functional block diagram that Fig. 3, Fig. 3 are camera arrangement first embodiment of the present invention.
It is emphasized that, to one skilled in the art, functional block diagram shown in Fig. 3 is only the exemplary plot of a preferred embodiment, and those skilled in the art, around the functional module of the camera arrangement shown in Fig. 3, can carry out supplementing of new functional module easily; The title of each functional module is self-defined title, and only for auxiliary each program function block understanding this camera arrangement, be not used in and limit technical scheme of the present invention, the core of technical solution of the present invention is, the function that the functional module of respective define name will be reached.
The present embodiment proposes a kind of camera arrangement, and described camera arrangement comprises:
Generation module 10, generates color selecting interface for the chromatic value according to each pixel in the image shown in view-finder;
In the present embodiment, described camera arrangement comprises display module, described display module is used for showing image in real time in the view-finder of application of taking pictures, concrete, first open the application of taking pictures preset, and the camera of application of taking pictures described in passing through obtains image, then described display module shows the described image of acquisition in the view-finder of described application of taking pictures.Be understandable that, in the process of taking pictures, the camera of described terminal can change in real time, and namely in described view-finder, the image of display also can change in real time.
In the present embodiment, the execution mode that described generation module 10 generates color selecting interface according to the chromatic value of each pixel in the image shown in view-finder comprises:
1) mode one, when described display module shows image in described view-finder, first described image is processed, to obtain the RGB (Red of described image, Green, Blue) color model (also referred to as additive mixture model), after obtaining described RGB color model, first extract the chromatic value of each pixel in described image, described chromatic value is the value that tristimulus values is mixed to get, tristimulus values comprises red pixel value, green pixel values and blue pixel value, be understandable that, each pixel can only include wherein a kind of tristimulus values, also can be added by wherein any two tristimulus values and obtain, can also be added by three tristimulus values and obtain, after obtaining the tristimulus values of each pixel, calculate the tristimulus values sum of each pixel respectively, the chromatic value of each pixel can be obtained, such as, the tristimulus values of pixel comprises red pixel value, green pixel values and blue pixel value, the computing formula of the chromatic value of so described pixel is: F=r [R]+g [G]+b [B], in like manner, calculate the chromatic value of each pixel in described image, finally, according to the chromatic value of each pixel in described image, equal for chromatic value is classified as same class, finally can obtain the various chromatic values in described image, the shades of colour in described image can be determined according to various chromatic value, when obtaining the shades of colour in described image, in the described image of further calculating, various chromatic value accounts for the weighted value of all chromatic values, described account form comprises:
A, first determine the area that in described image, various chromatic value is corresponding respectively, and the gross area of described image, then by the gross area of area corresponding for various chromatic value divided by described image, to obtain each ratio that various chromatic value accounts for all chromatic values in described image, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
B, first determine the chromatic value that in described image, each pixel is corresponding, then each identical pixel of chromatic value is obtained, and respectively by the sum of the sum of each identical for chromatic value pixel divided by pixels all in described image, to obtain each ratio that various chromatic value accounts for all chromatic values in described image, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
When obtaining various chromatic value and accounting for the weighted value that in described image, all chromatic values are corresponding, described generation module 10 generates color selecting interface, described color selecting interface can be the color selecting interface that various chromatic value is corresponding, also can be first various chromatic value is divided, be divided into the chromatic value of default kind, the color selecting interface that the chromatic value of the described default kind of final display is corresponding, in the present embodiment, preferred described color selecting interface is the color selecting interface that various chromatic value is corresponding, be understandable that, the color that weighted value is larger, the region occupied in described color selecting interface is more, the color that weighted value is less, the region occupied in described color selecting interface is fewer.
2) mode two, be understandable that, in the RGB color model in described image, any one color all can by R, G, B three primary colors in different ratios be added mix, be mixed into black light when three primary color components is all 0 (the most weak); White light is mixed into when three primary color components is all 255 (the strongest).Arbitrary coefficient in adjustment trichromatic coefficient r, g, b all can change the colour of color, and the color space of described RGB color model adopts physics three primary colors to represent, thus physical significance is very clear, is applicable to color picture tube work.But and be not suitable with the visual characteristic of people, therefore, in the present embodiment, in order to improve the accuracy of image procossing in the process of taking pictures, with reference to Fig. 4, described generation module 10 comprises:
Transformant module 11, for the RGB color model of described image is converted into hsv color model, obtains the image after transforming;
Generate submodule 12, for generating color selecting interface according to the chromatic value of each pixel in the image after conversion.
In the present embodiment, described image is being processed, after obtaining the RGB color model of described image, the RGB color model of described image is first converted into HSV (Hue by described transformant module 11, Saturation, Value) color model, described hsv color model can refer to Figure 13, the color parameter of described hsv color model comprises: tone H, saturation S and brightness V, tone H angle is measured, span is 0 ° ~ 360 °, by counterclockwise calculating from redness, redness is 0 °, green is 120 °, blueness is 240 °, and their complementary color is: yellow is 60 °, cyan is 180 °, magenta is 300 °, saturation S represents the degree of color close to spectrum colour.A kind of color, can regard the result that certain spectrum colour mixes with white as, and the ratio wherein shared by spectrum colour is larger, and color is just higher close to the degree of spectrum colour, and the saturation of color is also just high.Saturation is high, and color is then dark and gorgeous.The white light composition of spectrum colour is 0, and saturation reaches the highest.Usual span is 0% ~ 100%, and be worth larger, color is more saturated; Brightness V represents bright degree, and for light source color, brightness value is relevant with the brightness of luminous element; For object color, transmittance or the reflectance of this value and object are relevant.Usual span is that 0% (black) is to 100% (in vain).Described hsv color model is equivalent to a conical subset in cylindrical-coordinate system, the end face of circular cone corresponds to V=1, and it comprises the R=1 in RGB model, G=1, B=1 tri-faces, representative color is the brightest, and color H is obtained by the anglec of rotation around V axle, and saturation S value is from 0 to 1, same with reference to Figure 13, more draw close toward the center of circle from the edge of circular cone end face, the value of saturation is less, so the radius of circular cone end face is 1.In described hsv color model, at the summit place of circular cone, V=0, H and S, without definition, represent black.The end face center of circular cone and initial point place S=0, V=1, H, without definition, represent white.From summit to initial point, represent the grey that brightness is gradually dark, namely there is the grey of different gray scale.For these points, the value of S=0, H is without definition.Can say, the V axle in hsv color model corresponds to the leading diagonal in RGB color space.Color on the edge of circular cone end face, V=1, S=1, this color is pure color.
In the present embodiment, the RGB model of described image is being transformed, after conversion obtains described hsv color model, obtain the chromatic value of each pixel in the image after transforming, then described generation submodule 12 is according to the chromatic value of each pixel in the described image after conversion, to generate color selecting interface corresponding to various chromatic value, the described chromatic value according to each pixel in the described image after conversion, describes in detail hereinafter with the concrete execution mode generating color selecting interface corresponding to various chromatic value.
Determination module 20, for generating color selecting interface corresponding to various chromatic value according to the chromatic value of each pixel in described image;
In the present embodiment, after obtaining color selecting interface corresponding to various chromatic value in described image, show described color selecting interface, when receiving user based on the selection instruction inputted in described color selecting interface, described determination module 20 determines the chromatic value that described selection instruction is corresponding, be understandable that, the display format at described color selecting interface comprises colourity bar or colour circle, described colour circle can refer to Figure 14, in described colourity bar or described colour circle, comprise shades of colour, often kind of Color pair answers a chromatic value.
Processing module 30, for adjusting display parameters corresponding with the unmatched part of described chromatic value in described image, and in described view-finder, show the image after adjustment, wherein, described display parameters comprise transparency or chromatic value.
In the present embodiment, after determining the chromatic value that described selection instruction is corresponding, described processing module 30 adjusts display parameters corresponding with the unmatched part of described chromatic value in described image, described display parameters comprise transparency or chromatic value, the mode that described processing module 30 adjusts is such as: transparency corresponding with the unmatched part of described chromatic value in described image is heightened or turned down, obviously distinguishes to make the part of adjustment with unadjusted part in described image; Or, adjust chromatic value corresponding with the unmatched part of described chromatic value in described image, chromatic value can be adjusted to zero, obviously distinguish with unadjusted part in described image to make the part of adjustment.Be understandable that, in described image, adjust display parameters corresponding with the unmatched part of described chromatic value in described image, such as, be adjusted to as black and white image, and parts of images corresponding to chromatic value that user selects normally shows, what make final display is image with partial color.
In the present embodiment, preferably in described image, the similarity of the chromatic value that the chromatic value of each pixel and user select reaches preset ratio, as 80% time, think that the chromatic value that the chromatic value of pixel and user select mates; Or, when the chroma difference of the chromatic value that the chromatic value of each pixel and user select is less than preset value in described image, think that the chromatic value that the chromatic value of pixel and user select mates.
The camera arrangement that the present embodiment proposes, comprise generation module, determination module and processing module, described generation module generates color selecting interface according to the chromatic value of each pixel in the image shown in view-finder, when receiving the selection instruction that user inputs based on described color selecting interface, described determination module determines the chromatic value that described selection instruction is corresponding, described processing module adjusts display parameters corresponding with the unmatched part of described chromatic value in described image, and the image shown in described view-finder after adjustment, achieve in the process of taking pictures, chromatic value according to each pixel in image generates color selecting interface, and when user selects the chromatic value in described color selecting interface, adjust display parameters corresponding with the unmatched part of described chromatic value in described image, as adjusted transparency or the chromatic value of not compatible portion, obviously distinguish with unadjusted part to make the part of adjustment, make the image that described view-finder finally shows, only that the part of the chromatic value of user's selection is normally shown, achieve when taking pictures and can generate partial color image, instead of overall coloured image or overall black and white image can only be taken, invention increases take pictures intelligent.
Further, in order to improve the accuracy of taking pictures, propose the second embodiment of camera arrangement of the present invention based on the first embodiment, in the present embodiment, with reference to Fig. 5, described generation submodule 12 comprises:
Acquiring unit 121, for obtaining the color parameter that in the described image after conversion, each pixel is corresponding, wherein, described color parameter comprises tone, saturation and brightness;
Generation unit 122, for the color parameter corresponding according to each pixel in the described image after conversion, generates the chromatic value that each pixel is corresponding;
In the present embodiment, after obtaining the image after transforming, namely after getting hsv color model corresponding to image, described acquiring unit 121 obtains the color parameter that in the described image after transforming, each pixel is corresponding, described color parameter comprises tone H, saturation S and brightness V, the color parameter that described generation unit 122 is corresponding according to each pixel in the described image after conversion, generate the chromatic value that each pixel is corresponding, for better understanding the present embodiment, be exemplified below: be 240 ° at the tone H of pixel, saturation S is 0, when brightness V is 1, now, with reference to Figure 13, known described pixel is positioned at the edge of described cone end face, the color obtaining the correspondence of described pixel is blue, , be 120 ° at the tone H of pixel, saturation S is 1, and when brightness V is 1, now, with reference to Figure 13, known described pixel is positioned at the circle centre position of described cone end face, and the color obtaining the correspondence of described pixel is white, it is 120 ° at the tone H of pixel, saturation S is 0.5, when brightness V is 1, now, with reference to Figure 13, known described pixel is positioned at 1/2 radius of described cone end face, the color obtaining the correspondence of described pixel is light green color, finally, the color parameter that described generation unit 122 is corresponding according to each pixel, can generate the chromatic value that each pixel is corresponding.
Computing unit 123, accounts for the weighted value of all chromatic values for calculating various chromatic value in the described image after conversion;
In the present embodiment, after obtaining color corresponding to each pixel, described computing unit 123 calculates each color in described pending image and accounts for the weighted value of all colours, and described account form comprises:
C, first determine area corresponding to various chromatic value in the described image after transforming respectively, and the gross area of described image after transforming, then by the gross area of area corresponding for various chromatic value divided by the described image after conversion, to obtain each ratio that various chromatic value accounts for all chromatic values in the described image after conversion, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
D, first determine chromatic value corresponding to each pixel in the described image after transforming, then each identical pixel of chromatic value is obtained, and respectively by the sum of each identical for chromatic value pixel sum divided by all pixels in the described image after conversion, to obtain each ratio that various chromatic value accounts for all chromatic values in the described image after conversion, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
Described generation unit 124, also generates described color selecting interface for the weighted value corresponding according to various chromatic value.
In the present embodiment, during the weighted value that in the described image after obtaining various chromatic value and accounting for conversion, all chromatic values are corresponding, described generation unit 124 generates color selecting interface corresponding to various chromatic value, wherein, the color that weighted value is larger, the region occupied in described color selecting interface is more, the color that weighted value is less, and the region occupied in described color selecting interface is fewer.
By in RGB color model, because RGB image can lose a part of brightness, the relatively easy distortion of gay colours, easily cause the color selecting interface of described Computer image genration not accurate enough, therefore, in the present embodiment, by calculating the color parameter of each pixel in hsv color model, obtain the various chromatic values that described image is corresponding, make the final color category generated more careful, there is more dark color, also the color that light color is a little is had, also distortion is not easy for comparatively chromatic colour, reflect the shades of colour comprised in image more really, improve in the process of taking pictures, generate the accuracy at color selecting interface.
Further, in order to improve the flexibility of taking pictures, propose the 3rd embodiment of camera arrangement of the present invention based on the first or second embodiment, in the present embodiment, with reference to Fig. 6, described determination module 20 comprises:
Output unit 21, for when receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface;
Determining unit 22, for when receiving the range of tolerable variance that user selects interface to select based on described range of tolerable variance, determines the chromatic value that described range of tolerable variance is corresponding, and using the described chromatic value determined as chromatic value corresponding to described selection instruction.
In the present embodiment, after described generation module 10 generates color selecting interface corresponding to various chromatic value according to the chromatic value of each pixel in described image, show described color selecting interface, then when receiving the selection instruction that user inputs based on described color selecting interface, the tolerance that described output unit 21 exports chromatic value corresponding to described selection instruction selects interface, preferred described tolerance selects the display mode at interface to comprise: a, display tolerance scope input frame, for the range of tolerable variance of user based on described range of tolerable variance input frame input colour; B, display curve interface as parabola interface, as described in curve in curve interface represents is the chromatic value that each pixel is formed, when receiving the curve that user adjusts in described curve interface, described determining unit 22 determines the scope that user adjusts, scope user adjusted as range of tolerable variance, and determines the chromatic value that described range of tolerable variance is corresponding.For better understanding in the present embodiment, be exemplified below: for hsv color model, chromatic value corresponding to the selection instruction inputted based on described color selecting interface user is 240 °, show the range of tolerable variance input frame of described chromatic value 240 °, now, user inputs 20 ° in described range of tolerable variance input frame, the colour that then described range of tolerable variance is corresponding is 220 °-260 °, namely the colour selected not only comprises blueness, also may comprise light blue, sky blue and navy blue, if user inputs 40 ° in described range of tolerable variance input frame, the colour that then described range of tolerable variance is corresponding is 200 °-280 °, namely the colour selected not only comprises blueness, also ultra marine blue may be comprised, Indigo, light blue, sky blue, color several with navy blue etc., namely tolerance is larger, the scope being the equal of line both sides diffusion centered by 240 ° of bluenesss is larger, if select range of tolerable variance little, centered by 240 ° of bluenesss, the scope of line both sides diffusion is less, only can retain with selecting the color that color is close.
In the present embodiment, when receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface, then when receiving the range of tolerable variance that user selects, determine the chromatic value that described range of tolerable variance is corresponding, when achieving the chromatic value obtained in color selecting interface, not only can obtain the color that user selects based on described color selecting interface, the chromatic value that the chromatic value of selection is adjacent can also be obtained, make the acquisition of chromatic value more flexible.
Further, in order to improve the flexibility of taking pictures, propose the 4th embodiment of camera arrangement of the present invention based on the first or second embodiment, in the present embodiment, with reference to Fig. 7, described camera arrangement also comprises:
Acquisition module 40, for when receiving the information addition instruction of user's input, obtains the information that described information addition instruction is corresponding;
Add module 50, for adding in the described image after adjustment, to show the image adding described information by the described information obtained.
In the present embodiment, the triggering mode of described information addition instruction comprises: a, length, by the described image after process, add instruction with trigger message; B, according to preset physical button or virtual key, with trigger message add instruction; C, the voice control preset by pressing, and input voice information, add instruction with trigger message.When receiving the information addition instruction of user's input, the information input interface that display is preset, described acquisition module 40 obtains the information that user inputs based on described information input interface, described information preferably includes word or pattern, described word comprises weather condition, shooting places or user mood etc., and described pattern can be default image, as heart etc., add described word or pattern-information in described interpolation module 50 image after the adjustment, the image taking is enriched and entertaining more.
Further, in order to improve the efficiency and convenience of taking pictures, when receiving the information addition instruction of user's input, the Information Selection interface that display is preset, described acquisition module 40 obtains the information that user selects based on described Information Selection interface, namely some information that first prestore in terminal are as information to be added in the process of taking pictures, in like manner, described information preferably includes word or pattern, described word comprises weather condition, shooting places or user mood etc., described pattern can be default image, as heart etc., described interpolation module 50 directly adds the information of selecting to prestore in interface, make the interpolation of information more convenient, user is not needed to input, make the efficiency of shooting higher.
The present invention further provides a kind of photographic method.
With reference to the schematic flow sheet that Fig. 8, Fig. 8 are photographic method preferred embodiment of the present invention.
The present embodiment proposes a kind of photographic method, and described photographic method comprises:
Step S10, the chromatic value according to each pixel in the image shown in view-finder generates color selecting interface;
In the present embodiment, before described step S10, be included in the step of the view-finder interior display in real time image of application of taking pictures, the described mode showing image in the view-finder of application of taking pictures in real time comprises: open the application of taking pictures preset, and the camera of application of taking pictures described in passing through obtains image, in the view-finder of described application of taking pictures, then show the described image of acquisition.Be understandable that, in the process of taking pictures, the camera of described terminal can change in real time, and namely in described view-finder, the image of display also can change in real time.
In the present embodiment, the execution mode of described step S10 comprises:
1) mode one, when showing image in described view-finder, first described image is processed, to obtain the RGB (Red of described image, Green, Blue) color model (also referred to as additive mixture model), after obtaining described RGB color model, first extract the chromatic value of each pixel in described image, described chromatic value is the value that tristimulus values is mixed to get, tristimulus values comprises red pixel value, green pixel values and blue pixel value, be understandable that, each pixel can only include wherein a kind of tristimulus values, also can be added by wherein any two tristimulus values and obtain, can also be added by three tristimulus values and obtain, after obtaining the tristimulus values of each pixel, calculate the tristimulus values sum of each pixel respectively, the chromatic value of each pixel can be obtained, such as, the tristimulus values of pixel comprises red pixel value, green pixel values and blue pixel value, the computing formula of the chromatic value of so described pixel is: F=r [R]+g [G]+b [B], in like manner, calculate the chromatic value of each pixel in described image, finally, according to the chromatic value of each pixel in described image, equal for chromatic value is classified as same class, finally can obtain the various chromatic values in described image, the shades of colour in described image can be determined according to various chromatic value, when obtaining the shades of colour in described image, in the described image of further calculating, various chromatic value accounts for the weighted value of all chromatic values, described account form comprises:
A, first determine the area that in described image, various chromatic value is corresponding respectively, and the gross area of described image, then by the gross area of area corresponding for various chromatic value divided by described image, to obtain each ratio that various chromatic value accounts for all chromatic values in described image, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
B, first determine the chromatic value that in described image, each pixel is corresponding, then each identical pixel of chromatic value is obtained, and respectively by the sum of the sum of each identical for chromatic value pixel divided by pixels all in described image, to obtain each ratio that various chromatic value accounts for all chromatic values in described image, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
When obtaining various chromatic value and accounting for the weighted value that in described image, all chromatic values are corresponding, generate color selecting interface, described color selecting interface can be the color selecting interface that various chromatic value is corresponding, also can be first various chromatic value is divided, be divided into the chromatic value of default kind, the color selecting interface that the chromatic value of the described default kind of final display is corresponding, in the present embodiment, preferred described color selecting interface is the color selecting interface that various chromatic value is corresponding, be understandable that, the color that weighted value is larger, the region occupied in described color selecting interface is more, the color that weighted value is less, the region occupied in described color selecting interface is fewer.
2) mode two, be understandable that, in the RGB color model in described image, any one color all can by R, G, B three primary colors in different ratios be added mix, be mixed into black light when three primary color components is all 0 (the most weak); White light is mixed into when three primary color components is all 255 (the strongest).Arbitrary coefficient in adjustment trichromatic coefficient r, g, b all can change the colour of color, and the color space of described RGB color model adopts physics three primary colors to represent, thus physical significance is very clear, is applicable to color picture tube work.But and be not suitable with the visual characteristic of people, therefore, in the present embodiment, in order to improve the accuracy of image procossing in the process of taking pictures, with reference to Fig. 9, described step S10 comprises:
Step S11, is converted into hsv color model by the RGB color model of described image, obtains the image after transforming;
Step S12, generates color selecting interface according to the chromatic value of each pixel in the image after conversion.
In the present embodiment, described image is being processed, after obtaining the RGB color model of described image, first the RGB color model of described image is converted into HSV (Hue, Saturation, Value) color model, described hsv color model can refer to Figure 13, the color parameter of described hsv color model comprises: tone H, saturation S and brightness V, tone H angle is measured, span is 0 ° ~ 360 °, by counterclockwise calculating from redness, redness is 0 °, green is 120 °, blueness is 240 °, and their complementary color is: yellow is 60 °, cyan is 180 °, magenta is 300 °, saturation S represents the degree of color close to spectrum colour.A kind of color, can regard the result that certain spectrum colour mixes with white as, and the ratio wherein shared by spectrum colour is larger, and color is just higher close to the degree of spectrum colour, and the saturation of color is also just high.Saturation is high, and color is then dark and gorgeous.The white light composition of spectrum colour is 0, and saturation reaches the highest.Usual span is 0% ~ 100%, and be worth larger, color is more saturated; Brightness V represents bright degree, and for light source color, brightness value is relevant with the brightness of luminous element; For object color, transmittance or the reflectance of this value and object are relevant.Usual span is that 0% (black) is to 100% (in vain).Described hsv color model is equivalent to a conical subset in cylindrical-coordinate system, the end face of circular cone corresponds to V=1, and it comprises the R=1 in RGB model, G=1, B=1 tri-faces, representative color is the brightest, and color H is obtained by the anglec of rotation around V axle, and saturation S value is from 0 to 1, same with reference to Figure 13, more draw close toward the center of circle from the edge of circular cone end face, the value of saturation is less, so the radius of circular cone end face is 1.In described hsv color model, at the summit place of circular cone, V=0, H and S, without definition, represent black.The end face center of circular cone and initial point place S=0, V=1, H, without definition, represent white.From summit to initial point, represent the grey that brightness is gradually dark, namely there is the grey of different gray scale.For these points, the value of S=0, H is without definition.Can say, the V axle in hsv color model corresponds to the leading diagonal in RGB color space.Color on the edge of circular cone end face, V=1, S=1, this color is pure color.
In the present embodiment, the RGB model of described image is being transformed, after conversion obtains described hsv color model, obtain the chromatic value of each pixel in the image after transforming, then according to the chromatic value of each pixel in the described image after conversion, to generate color selecting interface corresponding to various chromatic value, the described chromatic value according to each pixel in the described image after conversion, describes in detail hereinafter with the concrete execution mode generating color selecting interface corresponding to various chromatic value.
Step S20, when receiving the selection instruction that user inputs based on described color selecting interface, determines the chromatic value that described selection instruction is corresponding;
In the present embodiment, after obtaining color selecting interface corresponding to various chromatic value in described image, show described color selecting interface, when receiving user based on the selection instruction inputted in described color selecting interface, determine the chromatic value that described selection instruction is corresponding, be understandable that, the display format at described color selecting interface comprises colourity bar or colour circle, described colour circle can refer to Figure 14, in described colourity bar or described colour circle, comprise shades of colour, often kind of Color pair answers a chromatic value.
Step S30, adjusts display parameters corresponding with the unmatched part of described chromatic value in described image, and in described view-finder, show the image after adjustment, and wherein, described display parameters comprise transparency or chromatic value.
In the present embodiment, after determining the chromatic value that described selection instruction is corresponding, adjust display parameters corresponding with the unmatched part of described chromatic value in described image, described display parameters comprise transparency or chromatic value, adjustment mode such as: transparency corresponding with the unmatched part of described chromatic value in described image is heightened or is turned down, obviously distinguishes with unadjusted part in described image to make the part of adjustment; Or, adjust chromatic value corresponding with the unmatched part of described chromatic value in described image, chromatic value can be adjusted to zero, obviously distinguish with unadjusted part in described image to make the part of adjustment.Be understandable that, in described image, adjust display parameters corresponding with the unmatched part of described chromatic value in described image, such as, be adjusted to as black and white image, and parts of images corresponding to chromatic value that user selects normally shows, what make final display is image with partial color.
In the present embodiment, preferably in described image, the similarity of the chromatic value that the chromatic value of each pixel and user select reaches preset ratio, as 80% time, think that the chromatic value that the chromatic value of pixel and user select mates; Or, when the chroma difference of the chromatic value that the chromatic value of each pixel and user select is less than preset value in described image, think that the chromatic value that the chromatic value of pixel and user select mates.
The photographic method that the present embodiment proposes, chromatic value according to each pixel in the image shown in view-finder generates color selecting interface, when receiving the selection instruction that user inputs based on described color selecting interface, determine the chromatic value that described selection instruction is corresponding, finally adjust display parameters corresponding with the unmatched part of described chromatic value in described image, and the image shown in described view-finder after adjustment, achieve in the process of taking pictures, chromatic value according to each pixel in image generates color selecting interface, and when user selects the chromatic value in described color selecting interface, adjust display parameters corresponding with the unmatched part of described chromatic value in described image, as adjusted transparency or the chromatic value of not compatible portion, obviously distinguish with unadjusted part to make the part of adjustment, make the image that described view-finder finally shows, only that the part of the chromatic value of user's selection is normally shown, achieve when taking pictures and can generate partial color image, instead of overall coloured image or overall black and white image can only be taken, invention increases take pictures intelligent.
Further, in order to improve the accuracy of taking pictures, propose the second embodiment of photographic method of the present invention based on the first embodiment, in the present embodiment, with reference to Figure 10, described step S12 comprises:
Step S121, obtain the color parameter that in the described image after transforming, each pixel is corresponding, wherein, described color parameter comprises tone, saturation and brightness;
Step S122, the color parameter corresponding according to each pixel in the described image after conversion, generates the chromatic value that each pixel is corresponding;
In the present embodiment, after obtaining the image after transforming, namely after getting hsv color model corresponding to image, obtain the color parameter that in the described image after transforming, each pixel is corresponding, described color parameter comprises tone H, saturation S and brightness V, the color parameter corresponding according to each pixel in the described image after conversion, generate the chromatic value that each pixel is corresponding, for better understanding the present embodiment, be exemplified below: be 240 ° at the tone H of pixel, saturation S is 0, when brightness V is 1, now, with reference to Figure 13, known described pixel is positioned at the edge of described cone end face, the color obtaining the correspondence of described pixel is blue, , be 120 ° at the tone H of pixel, saturation S is 1, and when brightness V is 1, now, with reference to Figure 13, known described pixel is positioned at the circle centre position of described cone end face, and the color obtaining the correspondence of described pixel is white, it is 120 ° at the tone H of pixel, saturation S is 0.5, when brightness V is 1, now, with reference to Figure 13, known described pixel is positioned at 1/2 radius of described cone end face, the color obtaining the correspondence of described pixel is light green color, finally, the color parameter corresponding according to each pixel, can generate the chromatic value that each pixel is corresponding.
Step S123, calculates various chromatic value in the described image after transforming and accounts for the weighted value of all chromatic values;
In the present embodiment, after obtaining chromatic value corresponding to each pixel, calculate various chromatic value in the described image after transforming and account for the weighted value of all chromatic values, described account form comprises:
C, first determine area corresponding to various chromatic value in the described image after transforming respectively, and the gross area of described image after transforming, then by the gross area of area corresponding for various chromatic value divided by the described image after conversion, to obtain each ratio that various chromatic value accounts for all chromatic values in the described image after conversion, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
D, first determine chromatic value corresponding to each pixel in the described image after transforming, then each identical pixel of chromatic value is obtained, and respectively by the sum of each identical for chromatic value pixel sum divided by all pixels in the described image after conversion, to obtain each ratio that various chromatic value accounts for all chromatic values in the described image after conversion, each ratio accounts for the weighted value of all chromatic values as various chromatic value the most at last.
Step S124, the weighted value corresponding according to various chromatic value generates described color selecting interface.
In the present embodiment, during the weighted value that in the described image after obtaining various chromatic value and accounting for conversion, all chromatic values are corresponding, generate the color selecting interface that various chromatic value is corresponding, wherein, the color that weighted value is larger, the region occupied in described color selecting interface is more, the color that weighted value is less, and the region occupied in described color selecting interface is fewer.
By in RGB color model, because RGB image can lose a part of brightness, the relatively easy distortion of gay colours, easily cause the color selecting interface of described Computer image genration not accurate enough, therefore, in the present embodiment, by calculating the color parameter of each pixel in hsv color model, obtain the various chromatic values that described image is corresponding, make the final color category generated more careful, there is more dark color, also the color that light color is a little is had, also distortion is not easy for comparatively chromatic colour, reflect the shades of colour comprised in image more really, improve in the process of taking pictures, generate the accuracy at color selecting interface.
Further, in order to improve the flexibility of taking pictures, propose the 3rd embodiment of photographic method of the present invention based on the first or second embodiment, in the present embodiment, with reference to Figure 11, described step S20 comprises:
Step S21, when receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface;
Step S22, when receiving the range of tolerable variance that user selects interface to select based on described range of tolerable variance, determines the chromatic value that described range of tolerable variance is corresponding, and using the described chromatic value determined as chromatic value corresponding to described selection instruction.
In the present embodiment, after generating color selecting interface corresponding to various chromatic value according to the chromatic value of each pixel in described image, show described color selecting interface, then when receiving the selection instruction that user inputs based on described color selecting interface, the tolerance exporting chromatic value corresponding to described selection instruction selects interface, preferred described tolerance selects the display mode at interface to comprise: a, display tolerance scope input frame, for the range of tolerable variance of user based on described range of tolerable variance input frame input colour; B, display curve interface as parabola interface, as described in curve in curve interface represents is the chromatic value that each pixel is formed, when receiving the curve that user adjusts in described curve interface, determine the scope that user adjusts, scope user adjusted as range of tolerable variance, and determines the chromatic value that described range of tolerable variance is corresponding.For better understanding in the present embodiment, be exemplified below: for hsv color model, chromatic value corresponding to the selection instruction inputted based on described color selecting interface user is 240 °, show the range of tolerable variance input frame of described chromatic value 240 °, now, user inputs 20 ° in described range of tolerable variance input frame, the colour that then described range of tolerable variance is corresponding is 220 °-260 °, namely the colour selected not only comprises blueness, also may comprise light blue, sky blue and navy blue, if user inputs 40 ° in described range of tolerable variance input frame, the colour that then described range of tolerable variance is corresponding is 200 °-280 °, namely the colour selected not only comprises blueness, also ultra marine blue may be comprised, Indigo, light blue, sky blue, color several with navy blue etc., namely tolerance is larger, the scope being the equal of line both sides diffusion centered by 240 ° of bluenesss is larger, if select range of tolerable variance little, centered by 240 ° of bluenesss, the scope of line both sides diffusion is less, only can retain with selecting the color that color is close.
In the present embodiment, when receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface, then when receiving the range of tolerable variance that user selects, determine the chromatic value that described range of tolerable variance is corresponding, when achieving the chromatic value obtained in color selecting interface, not only can obtain the color that user selects based on described color selecting interface, the chromatic value that the chromatic value of selection is adjacent can also be obtained, make the acquisition of chromatic value more flexible.
Further, in order to improve the flexibility of taking pictures, propose the 4th embodiment of photographic method of the present invention based on the first or second embodiment, in the present embodiment, with reference to Figure 12, described photographic method also comprises:
Step S40, when receiving the information addition instruction of user's input, obtains the information that described information addition instruction is corresponding;
Step S50, adds in the described image after adjustment, to show the image adding described information by the described information obtained.
In the present embodiment, the triggering mode of described information addition instruction comprises: a, length, by the described image after process, add instruction with trigger message; B, according to preset physical button or virtual key, with trigger message add instruction; C, the voice control preset by pressing, and input voice information, add instruction with trigger message.When receiving the information addition instruction of user's input, the information input interface that display is preset, and obtain the information that user inputs based on described information input interface, described information preferably includes word or pattern, described word comprises weather condition, shooting places or user mood etc., and described pattern can be default image, as heart etc., add described word or pattern-information in the present embodiment image after the adjustment, the image taking is enriched and entertaining more.
Further, in order to improve the efficiency and convenience of taking pictures, when receiving the information addition instruction of user's input, the Information Selection interface that display is preset, and obtain the information of user based on the selection of described Information Selection interface, namely some information that first prestore in terminal are as information to be added in the process of taking pictures, in like manner, described information preferably includes word or pattern, described word comprises weather condition, shooting places or user mood etc., described pattern can be default image, as heart etc., the information of selecting to prestore in interface is directly added in the present embodiment, make the interpolation of information more convenient, user is not needed to input, make the efficiency of shooting higher.
It should be noted that, in this article, term " comprises ", " comprising " or its other variant any are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or system and not only comprise those key elements, but also comprise other key element clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or system.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the system comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a camera arrangement, is characterized in that, described camera arrangement comprises:
Generation module, generates color selecting interface for the chromatic value according to each pixel in the image shown in view-finder;
Determination module, for when receiving the selection instruction that user inputs based on described color selecting interface, determines the chromatic value that described selection instruction is corresponding;
Processing module, for adjusting display parameters corresponding with the unmatched part of described chromatic value in described image, and in described view-finder, show the image after adjustment, wherein, described display parameters comprise transparency or chromatic value.
2. camera arrangement as claimed in claim 1, it is characterized in that, described generation module comprises:
Transformant module, for the RGB color model of described image is converted into hsv color model, obtains the image after transforming;
Generate submodule, for generating color selecting interface according to the chromatic value of each pixel in the image after conversion.
3. camera arrangement as claimed in claim 2, it is characterized in that, described generation submodule comprises:
Acquiring unit, for obtaining the color parameter that in the described image after conversion, each pixel is corresponding, wherein, described color parameter comprises tone, saturation and brightness;
Generation unit, for the color parameter corresponding according to each pixel in the described image after conversion, generates the chromatic value that each pixel is corresponding;
Computing unit, accounts for the weighted value of all chromatic values for calculating various chromatic value in the described image after conversion;
Described generation unit, also generates described color selecting interface for the weighted value corresponding according to various chromatic value.
4. the camera arrangement as described in any one of claim 1-3, is characterized in that, described determination module comprises:
Output unit, for when receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface;
Determining unit, for when receiving the range of tolerable variance that user selects interface to select based on described range of tolerable variance, determines the chromatic value that described range of tolerable variance is corresponding, and using the described chromatic value determined as chromatic value corresponding to described selection instruction.
5. the camera arrangement as described in any one of claim 1-3, is characterized in that, described camera arrangement also comprises:
Acquisition module, for when receiving the information addition instruction of user's input, obtains the information that described information addition instruction is corresponding;
Add module, for adding in the described image after adjustment, to show the image adding described information by the described information obtained.
6. a photographic method, is characterized in that, described photographic method comprises the following steps:
Chromatic value according to each pixel in the image shown in view-finder generates color selecting interface;
When receiving the selection instruction that user inputs based on described color selecting interface, determine the chromatic value that described selection instruction is corresponding;
Adjust display parameters corresponding with the unmatched part of described chromatic value in described image, and in described view-finder, show the image after adjustment, wherein, described display parameters comprise transparency or chromatic value.
7. photographic method as claimed in claim 6, is characterized in that, in the described image according to showing in view-finder, the step at the chromatic value generation color selecting interface of each pixel comprises:
The RGB color model of described image is converted into hsv color model, obtains the image after transforming;
Color selecting interface is generated according to the chromatic value of each pixel in the image after conversion.
8. photographic method as claimed in claim 7, is characterized in that, the step at the described chromatic value generation color selecting interface according to each pixel in the image after conversion comprises:
Obtain the color parameter that in the described image after transforming, each pixel is corresponding, wherein, described color parameter comprises tone, saturation and brightness;
The color parameter corresponding according to each pixel in the described image after conversion, generates the chromatic value that each pixel is corresponding;
Calculate various chromatic value in the described image after transforming and account for the weighted value of all chromatic values;
The weighted value corresponding according to various chromatic value generates described color selecting interface.
9. the photographic method as described in any one of claim 6-8, is characterized in that, described when receiving the selection instruction that user inputs based on described color selecting interface, determines that the step of the chromatic value that described selection instruction is corresponding comprises:
When receiving the selection instruction that user inputs based on described color selecting interface, the range of tolerable variance exporting chromatic value corresponding to described selection instruction selects interface;
When receiving the range of tolerable variance that user selects interface to select based on described range of tolerable variance, determine the chromatic value that described range of tolerable variance is corresponding, and using the described chromatic value determined as chromatic value corresponding to described selection instruction.
10. the photographic method as described in any one of claim 6-8, is characterized in that, described show in described view-finder adjustment after image step after, described photographic method also comprises:
When receiving the information addition instruction of user's input, obtain the information that described information addition instruction is corresponding;
The described information obtained is added in the described image after adjustment, to show the image adding described information.
CN201610042049.2A 2016-01-21 2016-01-21 Shooting device and method Pending CN105516606A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610042049.2A CN105516606A (en) 2016-01-21 2016-01-21 Shooting device and method
PCT/CN2016/113756 WO2017124909A1 (en) 2016-01-21 2016-12-30 Image capturing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610042049.2A CN105516606A (en) 2016-01-21 2016-01-21 Shooting device and method

Publications (1)

Publication Number Publication Date
CN105516606A true CN105516606A (en) 2016-04-20

Family

ID=55724206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610042049.2A Pending CN105516606A (en) 2016-01-21 2016-01-21 Shooting device and method

Country Status (2)

Country Link
CN (1) CN105516606A (en)
WO (1) WO2017124909A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027787A (en) * 2016-06-15 2016-10-12 维沃移动通信有限公司 White balance method of mobile terminal, and mobile terminal
CN106101666A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 The method of a kind of image color reservation and mobile terminal
WO2017124909A1 (en) * 2016-01-21 2017-07-27 努比亚技术有限公司 Image capturing device and method
CN111844530A (en) * 2020-07-10 2020-10-30 苏州普福斯信息科技有限公司 Renewable resource recovery method
WO2022141476A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Image processing method, data obtaining method, and device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053277B (en) * 2019-06-05 2023-10-20 杭州萤石软件有限公司 Method, device, equipment and storage medium for changing image skin
CN111582290B (en) * 2020-05-13 2023-04-07 郑州轻工业大学 Computer image recognition method
CN111626310B (en) * 2020-05-27 2023-08-29 百度在线网络技术(北京)有限公司 Image comparison method, device, equipment and storage medium
CN113419695A (en) * 2021-06-11 2021-09-21 北京达佳互联信息技术有限公司 Method and device for displaying adjustment items of target object and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731860A (en) * 2004-08-05 2006-02-08 索尼株式会社 Image display device
US20090231355A1 (en) * 2008-03-11 2009-09-17 Xerox Corporation Color transfer between images through color palette adaptation
CN102790886A (en) * 2011-05-18 2012-11-21 索尼公司 Image processing apparatus, image processing method, program and imaging apparatus
CN103533248A (en) * 2013-10-24 2014-01-22 腾讯科技(上海)有限公司 Image processing method, terminal and system
CN103618886A (en) * 2013-12-13 2014-03-05 厦门美图网科技有限公司 Shooting method for intelligently decoloring according to main color tone
CN104104931A (en) * 2013-04-08 2014-10-15 三星电子株式会社 Color extraction-based image processing method and digital image apparatus
CN104660905A (en) * 2015-03-04 2015-05-27 深圳市欧珀通信软件有限公司 Shooting processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4403397B2 (en) * 2004-07-21 2010-01-27 ソニー株式会社 User interface providing device
KR101427649B1 (en) * 2007-10-23 2014-08-07 삼성전자주식회사 Digital image processing appratus and method displaying distribution chart of color
CN105516606A (en) * 2016-01-21 2016-04-20 努比亚技术有限公司 Shooting device and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731860A (en) * 2004-08-05 2006-02-08 索尼株式会社 Image display device
US20090231355A1 (en) * 2008-03-11 2009-09-17 Xerox Corporation Color transfer between images through color palette adaptation
CN102790886A (en) * 2011-05-18 2012-11-21 索尼公司 Image processing apparatus, image processing method, program and imaging apparatus
CN104104931A (en) * 2013-04-08 2014-10-15 三星电子株式会社 Color extraction-based image processing method and digital image apparatus
CN103533248A (en) * 2013-10-24 2014-01-22 腾讯科技(上海)有限公司 Image processing method, terminal and system
CN103618886A (en) * 2013-12-13 2014-03-05 厦门美图网科技有限公司 Shooting method for intelligently decoloring according to main color tone
CN104660905A (en) * 2015-03-04 2015-05-27 深圳市欧珀通信软件有限公司 Shooting processing method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124909A1 (en) * 2016-01-21 2017-07-27 努比亚技术有限公司 Image capturing device and method
CN106027787A (en) * 2016-06-15 2016-10-12 维沃移动通信有限公司 White balance method of mobile terminal, and mobile terminal
CN106027787B (en) * 2016-06-15 2019-10-18 维沃移动通信有限公司 A kind of white balance method and mobile terminal of mobile terminal
CN106101666A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 The method of a kind of image color reservation and mobile terminal
CN111844530A (en) * 2020-07-10 2020-10-30 苏州普福斯信息科技有限公司 Renewable resource recovery method
WO2022141476A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Image processing method, data obtaining method, and device

Also Published As

Publication number Publication date
WO2017124909A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
CN105516606A (en) Shooting device and method
CN105430295B (en) Image processing apparatus and method
CN104380706B (en) Image processing apparatus, camera head, computer and image processing method
CN105578056A (en) Photographing terminal and method
CN105516585B (en) A kind of device and method of the adjust automatically colour of skin
US10516860B2 (en) Image processing method, storage medium, and terminal
CN109741279A (en) Image saturation method of adjustment, device, storage medium and terminal
CN106134189B (en) Image processing apparatus, photographic device, image processing method and program
CN106797453A (en) Image processing apparatus, camera head, image processing method and image processing program
CN104380727B (en) Image processing apparatus and image processing method
CN105491358B (en) A kind of image processing method and device, terminal
KR20190088000A (en) Interface image display method, apparatus, program, and recording medium
CN106576155A (en) Image processing apparatus, image capturing apparatus, image processing method, and program
CN108510955A (en) Adjust the method and Related product of brightness of display screen
US20240212229A1 (en) Image Color Adjustment Method for Electronic Device and Apparatus
CN104660903A (en) Shooting method and shooting device
CN112114929B (en) Display device and image display method thereof
CN105357444B (en) focusing method and device
CN113132704A (en) Image processing method, device, terminal and storage medium
CN105611264A (en) Automatic white balance method and device
CN109729281A (en) Image processing method, device, storage medium and terminal
CN105513021A (en) Image noise reduction device and method
CN108711402A (en) Brightness of display screen method of adjustment and Related product
CN106165409A (en) Image processing apparatus, camera head, image processing method and program
KR20140094161A (en) Method and apparatus for transformation of display image according to ambient light

Legal Events

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

Application publication date: 20160420

RJ01 Rejection of invention patent application after publication