WO2017124909A1 - 拍照装置及方法 - Google Patents
拍照装置及方法 Download PDFInfo
- Publication number
- WO2017124909A1 WO2017124909A1 PCT/CN2016/113756 CN2016113756W WO2017124909A1 WO 2017124909 A1 WO2017124909 A1 WO 2017124909A1 CN 2016113756 W CN2016113756 W CN 2016113756W WO 2017124909 A1 WO2017124909 A1 WO 2017124909A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- value
- color
- chromaticity value
- chromaticity
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
Definitions
- the present application relates to, but is not limited to, the field of photographing technology, and in particular, to a photographing apparatus and method.
- the current photographing method can only obtain the overall image when photographing. If the user wants to obtain a partial color image, the image needs to be processed by a specific software in the later stage. Obviously, the photographing method has a single image. , low intelligence.
- the embodiment of the invention provides a photographing device and a method, which aim to solve the technical problem that the traditional photographing mode is relatively simple and the intelligence is low.
- Generating a module configured to generate a color selection interface according to a chromaticity value of each pixel in the image displayed in the finder frame;
- a determining module configured to determine a chrominance value corresponding to the selection instruction when receiving a selection instruction input by the user based on the color selection interface
- a processing module configured to adjust a display parameter corresponding to a portion of the image that does not match the chromaticity value, and display an adjusted image in the finder frame, where the display parameter includes a transparency or a chromaticity value .
- the generating module may include:
- a transformation submodule configured to convert an RGB color model of the image into an HSV color model to obtain a transformed image
- a sub-module is generated, which is set to generate a color selection interface according to the chromaticity value of each pixel in the converted image.
- the generating submodule may include:
- An obtaining unit configured to obtain a color parameter corresponding to each pixel in the converted image, wherein the color parameter includes a hue, a saturation, and a brightness;
- a generating unit configured to generate a chrominance value corresponding to each pixel point according to a color parameter corresponding to each pixel point in the converted image
- a calculating unit configured to calculate a weight value of each chrominance value in the transformed image as a percentage of all chrominance values
- the generating unit is further configured to generate the color selection interface according to a weight value corresponding to each chrominance value.
- the calculation unit may be configured to calculate a weight value of each chrominance value in the converted image in all of the chromaticity values in the converted manner:
- Each chromaticity value in the image accounts for the weight value of all chrominance values.
- the generating module may be configured to generate a color selection interface according to a chromaticity value of each pixel in the image displayed in the finder frame by:
- a color selection interface is generated based on the weight values corresponding to each of the chrominance values.
- the generating module may be configured to calculate a weight value of each chrominance value in the image as a percentage of all chrominance values by:
- the determining module may include:
- the output unit is configured to output a tolerance range selection interface of the chromaticity value corresponding to the selection instruction when receiving a selection instruction input by the user based on the color selection interface;
- a determining unit configured to determine a chromaticity value corresponding to the tolerance range when receiving a tolerance range selected by the user based on the tolerance range selection interface, and using the determined chromaticity value as the selection instruction Corresponding chroma value.
- the photographing device may further include:
- Obtaining a module configured to acquire information corresponding to the information adding instruction when receiving an information adding instruction input by the user;
- An adding module is arranged to add the acquired information to the adjusted image to display an image to which the information is added.
- the processing module may be configured to adjust a display parameter corresponding to a portion of the image that does not match the chrominance value by:
- a chromaticity value corresponding to a portion of the image that does not match the chrominance value is adjusted to zero.
- the photographing apparatus may further include: a display module, configured to display an image in real time in a framing frame of the photographing application.
- an embodiment of the present invention further provides a photographing method, where the photographing method includes the following steps:
- the step of generating a color selection interface according to the chromaticity value of each pixel in the image displayed in the finder frame may include:
- a color selection interface is generated based on the chromaticity value of each pixel in the converted image.
- the step of generating a color selection interface according to the chromaticity value of each pixel in the converted image may include:
- the color selection interface is generated based on the weight values corresponding to each of the chrominance values.
- the step of calculating the weight value of each chroma value in all the chroma values in the converted image may include:
- Determining a chrominance value corresponding to each pixel in the converted image, according to the same chromaticity value The ratio of the number of pixels to the total number of all pixels in the image after conversion determines the weight value of each chrominance value in the converted image as a percentage of all chrominance values.
- the step of generating a color selection interface according to the chromaticity value of each pixel in the image displayed in the finder frame may include:
- a color selection interface is generated based on the weight values corresponding to each of the chrominance values.
- the calculating the weight value of each chrominance value in the image to all chrominance values may include:
- the step of determining the chrominance value corresponding to the selection instruction may include: when receiving the selection instruction input by the user based on the color selection interface:
- the photographing method may further include:
- the acquired information is added to the adjusted image to display an image to which the information is added.
- the step of adjusting a display parameter corresponding to a portion of the image that does not match the chrominance value can include:
- a chromaticity value corresponding to a portion of the image that does not match the chrominance value is adjusted to zero.
- the photographing method may further include: displaying an image in real time in a framing frame of the photographing application.
- an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the computer executable instruction processor to implement the above photographing method.
- the photographing apparatus and method provided by the embodiment of the invention includes a generating module, a determining module and a processing module, and the generating module generates a color selecting interface according to the chromaticity value of each pixel in the image displayed in the framing frame, and receives the user
- the determining module determines a chromaticity value corresponding to the selection instruction
- the processing module adjusts a display parameter corresponding to a portion of the image that does not match the chromaticity value, when the selection instruction is input by the color selection interface. And displaying the adjusted image in the finder frame.
- a color selection interface is generated according to the chromaticity value of each pixel in the image, and when the user selects the chromaticity value in the color selection interface, the color and the color are adjusted in the image.
- the display parameter corresponding to the part whose degree value does not match such as adjusting the transparency or the chromaticity value of the unmatched part, so that the adjusted part is clearly distinguished from the unadjusted part, so that the final displayed image of the finder frame is only
- the part of the chromaticity value selected by the user is normally displayed, and a partial color image can be generated when the photograph is taken, instead of only taking an overall color image or an overall black and white image, thereby improving the intelligence of photographing.
- FIG. 1 is a schematic structural diagram of hardware of an exemplary mobile terminal that implements an embodiment of the present application
- Figure 2 is a block diagram showing the electrical structure of the camera of Figure 1;
- FIG. 3 is a schematic diagram of functional modules of a first embodiment of a photographing apparatus of the present application.
- FIG. 4 is a schematic diagram of a refinement function module of the generation module in FIG. 3;
- FIG. 5 is a schematic diagram of a refinement function module of the generated sub-module in FIG. 4;
- FIG. 6 is a schematic diagram of a refinement function module of the determining module in FIG. 3;
- FIG. 7 is a schematic diagram of functional modules of a fourth embodiment of a photographing apparatus of the present application.
- FIG. 8 is a schematic flowchart diagram of a first embodiment of a photographing method according to the present application.
- FIG. 9 is a schematic flowchart diagram of an exemplary embodiment of generating a color selection interface according to a chromaticity value of each pixel in an image displayed in a finder frame in the present application;
- FIG. 10 is a schematic flow chart of an exemplary embodiment of generating a color selection interface according to a chromaticity value of each pixel in the converted image in the present application;
- FIG. 11 is a schematic flow chart of an exemplary embodiment of determining a chrominance value corresponding to the selection instruction when receiving a selection instruction input by a user based on the color selection interface;
- FIG. 12 is a schematic flowchart diagram of a fourth embodiment of a photographing method according to the present application.
- FIG. 13 is a schematic structural diagram of an HSV color model according to an embodiment of the present invention.
- FIG. 14 is a schematic diagram of an exemplary display manner of a color selection interface according to an embodiment of the present invention.
- the mobile terminal can be implemented in one or more forms.
- the terminal described in the present application may include, for example, a mobile phone, a smart phone, a video camera, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device Mobile terminals of the like and fixed terminals such as digital TVs, desktop computers, and the like.
- PDA Personal Digital Assistant
- PAD Tablett
- PMP Portable Multimedia Player
- the terminal is a mobile terminal.
- the configuration according to the embodiment of the present application can also be applied to a fixed type of terminal.
- FIG. 1 is a schematic structural diagram of hardware of an exemplary mobile terminal implementing an embodiment of the present application.
- the mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more.
- Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
- Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication device or network.
- the A/V input unit 120 is for receiving an audio or video signal.
- the A/V input unit 120 may include a camera 121 and a microphone 122 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode.
- the processed image frame can be displayed on the display unit 151.
- the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
- the microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
- the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the wireless communication unit 110 in the case of a telephone call mode.
- Microphone 122 may implement one or more types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
- the user input unit 130 may generate key input data according to a command input by the user to control one or more operations of the mobile terminal.
- the user input unit 130 allows the user to input one or more types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact). ), scroll wheel, rocker, etc.
- a touch screen can be formed.
- the sensing unit 140 detects a current state of the mobile terminal 100 (eg, an open or closed state of the mobile terminal 100), a location of the mobile terminal 100, and a user's contact with the mobile terminal 100 (ie, The presence or absence of the touch input, the orientation of the mobile terminal 100, the acceleration or the speed of the mobile terminal 100, and the like, and a command or signal for controlling the operation of the mobile terminal 100 are generated.
- a current state of the mobile terminal 100 eg, an open or closed state of the mobile terminal 100
- a location of the mobile terminal 100 ie, The presence or absence of the touch input, the orientation of the mobile terminal 100, the acceleration or the speed of the mobile terminal 100, and the like, and a command or signal for controlling the operation of the mobile terminal 100 are generated.
- a command or signal for controlling the operation of the mobile terminal 100 are generated.
- the sensing unit 140 can sense whether the slide type mobile phone is turned on or off.
- the sensing unit 140 can detect whether the power supply unit 190 provides power or
- the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100.
- the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
- the identification module may be one or more pieces of information stored to verify the user's use of the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identification Module (USIM), and the like.
- UIM User Identification Module
- SIM Customer Identification Module
- USB Universal Customer Identification Module
- the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device.
- the interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
- the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as one or more command signals allowing input from the base The path to the mobile terminal.
- One or more command signals or power input from the base may be used as a signal for identifying whether the mobile terminal is accurately mounted on the base.
- Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
- the output unit 150 may include a display unit 151 and the like.
- the display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
- UI user interface
- GUI graphical user interface
- the display unit 151 can function as an input device and an output device.
- the display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
- LCD liquid crystal display
- TFT-LCD thin film transistor LCD
- OLED organic light emitting diode
- a flexible display a three-dimensional (3D) display, and the like.
- 3D three-dimensional
- Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
- TOLED Transparent Organic Light Emitting Diode
- the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
- the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
- the memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 may store data regarding vibration and audio signals of one or more modes output when a touch is applied to the touch screen.
- the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
- the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
- the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
- the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, which may be constructed within the controller 180 or may be configured to be separate from the controller 180.
- the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
- the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate each component and component.
- One or more implementations described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
- the embodiments described herein may To use an application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, Microcontrollers, microprocessors, at least one of the electronic units designed to perform the functions described herein are implemented, and in some cases, such implementations may be implemented in controller 180.
- ASIC application specific integrated circuit
- DSP digital signal processor
- DSPD digital signal processing device
- PLD programmable logic device
- FPGA field programmable gate array
- processor controller
- Microcontrollers microprocessors
- at least one of the electronic units designed to perform the functions described herein are implemented, and in some cases, such implementations may be implemented in controller 180.
- implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
- the mobile terminal has been described in terms of its function.
- a slide type mobile terminal among a plurality of types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the embodiment of the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
- FIG. 2 is a block diagram showing the electrical structure of the camera 121 of FIG.
- the photographic lens 1211 is composed of a plurality of optical lenses for forming a subject image, and is a single focus lens or a zoom lens.
- the photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance.
- the lens drive control circuit 1222 performs drive control of the lens driver 1221 in accordance with a control command from the microcomputer 1217.
- An imaging element 1212 is disposed on the optical axis of the photographic lens 1211 near the position of the subject image formed by the photographic lens 1211.
- the imaging element 1212 is for capturing an image of a subject and acquiring captured image data.
- Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, which is subjected to charge accumulation by a capacitor connected to each photodiode.
- the front surface of each pixel is provided with a Bayer array of RGB color filters.
- the imaging element 1212 is connected to the imaging circuit 1213.
- the imaging circuit 1213 performs charge accumulation control and image signal readout control in the imaging element 1212, and performs waveform shaping after reducing the reset noise of the read image signal (analog image signal). Further, gain improvement or the like is performed to obtain an appropriate signal level.
- the imaging circuit 1213 is connected to an A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
- A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
- the bus 1227 is a transmission path for transmitting one or more kinds of data read or generated inside the camera.
- the A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, a SDRAM (Synchronous Dynamic Random Access Memory) 1218, and a memory interface are also connected. (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display) driver 1220.
- the image processor 1215 performs OB subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like on the image data based on the output of the imaging element 1212. deal with.
- the JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display. At the time of decompression, the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226. Further, in the present embodiment, the JPEG method is adopted as the image compression/decompression method. However, the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be
- the microcomputer 1217 functions as a control unit of the entire camera, and collectively controls one or more processing sequences of the camera.
- the microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
- the operating unit 1223 includes, but is not limited to, a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, an enlarge button Various control buttons such as input buttons and various input buttons.
- the operational state of these operational controls is detected, and the detection results are output to the microcomputer 1217.
- a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217.
- the microcomputer 1217 performs one or more processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
- the flash memory 1224 stores programs for executing one or more processing sequences of the microcomputer 1217.
- the microcomputer 1217 performs overall control of the camera in accordance with the program.
- the flash memory 1224 stores the phase The one or more adjustment values of the machine, the microcomputer 1217 reads out the adjustment value, and performs camera control according to the adjustment value.
- the SDRAM 1218 is an electrically rewritable volatile memory for temporarily storing image data or the like.
- the SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
- the memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225.
- the recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body.
- the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
- the LCD driver 1220 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218.
- the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed.
- the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
- the LCD 1226 is configured to display an image on the back of the camera body.
- the LCD 1226 can be an LCD display panel, but is not limited thereto, and various display panels such as an organic EL can also be used.
- FIG. 3 is a schematic diagram of functional modules of a first embodiment of a photographing apparatus of the present application.
- the functional block diagram shown in FIG. 3 is merely an exemplary diagram of an embodiment, and those skilled in the art can easily perform new functions around the functional modules of the photographing apparatus shown in FIG. 3.
- a supplement of the module; the name of each function module is a custom name, which is only used to assist in understanding each program function block of the camera device, and is not used to define the technical solution of the present application.
- the core of the technical solution of the present application is that each The function to be achieved by the function module that defines the name.
- This embodiment provides a photographing apparatus, and the photographing apparatus includes:
- the generating module 10 is configured to generate a color selection interface according to a chromaticity value of each pixel in the image displayed in the finder frame;
- the photographing device includes a display module, and the display module is configured to display an image in real time in a viewfinder frame of the photographing application, and the preset photographing application may be first opened, and the image is acquired by the camera of the photographing application. And then the display module displays the acquired image in a framing frame of the photographing application.
- the camera of the terminal can be changed in real time, that is, the image displayed in the finder frame can also be changed in real time.
- the generating module 10 generates a color selection interface according to the chromaticity value of each pixel in the image displayed in the framing frame, including:
- Method 1 When the display module displays an image in the finder frame, the image is first processed to obtain an RGB (Red, Green, Blue) color model of the image (also referred to as an additive color method). a color mixing model), after obtaining the RGB color model, first extracting a chromaticity value of each pixel in the image, the chromaticity value is a value obtained by mixing three primary color values, and the three primary color values include a red pixel value and a green pixel.
- RGB Red, Green, Blue
- a color mixing model after obtaining the RGB color model, first extracting a chromaticity value of each pixel in the image, the chromaticity value is a value obtained by mixing three primary color values, and the three primary color values include a red pixel value and a green pixel.
- each pixel point may include only one of the three primary color values, or may be obtained by adding any two of the three primary color values, or may be obtained by adding three primary color values;
- Chromaticity value ultimately, based on each image in the image
- the chromaticity value of the point, the chromaticity values are equalized into the same class, and finally each chromaticity value in the image can be obtained, and each color in the image can be determined according to each chromaticity value,
- a weight value of each chrominance value in all chromaticity values in the image is further calculated, the calculation manner includes:
- the generating module 10 generates a color selection interface, where the color selection interface may be a color selection interface corresponding to the plurality of chromaticity values, and the color selection interface may be a color selection interface corresponding to the chromaticity values of the plurality of chromaticity values.
- the plurality of chrominance values may be divided into chromaticity values of a preset type, and finally a color selection interface corresponding to the chromaticity values of the preset genre is displayed.
- the color selection interface may be a color selection interface corresponding to multiple chromaticity values. It can be understood that the color having a larger weight value has more regions occupied by the color selection interface, and the weight value is The smaller the color, the less area is occupied in the color selection interface.
- Method 2 It can be understood that any of the RGB color models in the image can be added and mixed by R, G, and B in different proportions, and the three primary color components are all 0 (most When weak), it is mixed into black light; when the three primary color components are all 255 (strongest), it is mixed into white light. Adjusting any of the three primary color coefficients r, g, b will change the color value of the color, and the color space of the RGB color model is represented by the physical three primary colors, so the physical meaning is clear and suitable for the color picture tube work.
- the generating module 10 includes:
- the conversion sub-module 11 is configured to convert the RGB color model of the image into an HSV color model to obtain a transformed image
- the generating sub-module 12 is configured to generate a color selection interface according to the chromaticity value of each pixel in the converted image.
- the conversion sub-module 11 first converts the RGB color model of the image into an HSV (Hue, Saturation, Value) color. model.
- the HSV color model may refer to FIG. 13, and the color parameters of the HSV color model include: hue H, saturation S, and brightness V.
- the hue H is measured by the angle, ranging from 0° to 360°, calculated from the red counterclockwise direction, red is 0°, green is 120°, blue is 240°, and their complementary colors are: yellow 60°, cyan is 180°, magenta is 300°.
- the saturation S indicates the extent to which the color is close to the spectral color.
- a color can be seen as the result of mixing a certain spectral color with white.
- the saturation is high and the color is deep and colorful.
- the white color component of the spectral color is 0, and the saturation is the highest.
- the value ranges from 0% to 100%.
- Brightness V indicates the degree of color brightness, for the color of the light source, the brightness value and the hair
- the brightness of the light body is related; for the color of the object, this value is related to the transmittance or reflectance of the object. Usually the value ranges from 0% (black) to 100% (white).
- the color represented is the brightest, the color H is obtained by the rotation angle around the V axis, and the saturation S is from 0 to 1.
- the gray is darkened by the brightness, that is, the gray with different gray levels.
- the determining module 20 is configured to generate a color selection interface corresponding to the plurality of chromaticity values according to the chromaticity value of each pixel in the image.
- the color selection interface is displayed, and when the user selects a selection instruction based on the input, the The determining module 20 determines a chrominance value corresponding to the selection instruction.
- the display form of the color selection interface includes a chroma bar or a color ring, and the color ring can refer to FIG. 14 , or the color bar or the color ring includes multiple colors, each The color corresponds to a chromaticity value.
- the processing module 30 is configured to adjust display parameters corresponding to the portion of the image that does not match the chromaticity value, and display the adjusted image in the finder frame, where the display parameter includes transparency or chromaticity value.
- the processing module 30 adjusts display parameters corresponding to the portion of the image that does not match the chromaticity value, and the display parameter includes transparency. Or chroma value.
- the manner in which the processing module 30 adjusts for example, the image in the image Transparency of the portion where the chromaticity values are not matched is adjusted to be turned up or down so that the adjusted portion is clearly distinguished from the unadjusted portion of the image; or, the image is adjusted to not match the chromaticity value
- the corresponding chromaticity value of the portion can be adjusted to zero so that the adjusted portion is clearly distinguished from the unadjusted portion of the image.
- the display parameter corresponding to the portion of the image that does not match the chromaticity value is adjusted, for example, adjusted to a black and white image, and the partial image corresponding to the chromaticity value selected by the user is normally displayed. So that the final image is displayed with local color.
- the similarity between the chromaticity value of each pixel in the image and the chromaticity value selected by the user reaches a preset ratio, for example, when 80%, the chromaticity value of the pixel is considered to be The chromaticity value selected by the user is matched; or, when the chromaticity value of each pixel point in the image and the chromaticity value of the user-selected chromaticity value are less than a preset value, the chromaticity value of the pixel point is considered The user selected chromaticity values match.
- the photographing apparatus includes a generating module, a determining module, and a processing module, and the generating module generates a color selecting interface according to the chromaticity value of each pixel in the image displayed in the finder frame, and the receiving user is based on the
- the color selection interface inputs a selection instruction
- the determining module determines a chromaticity value corresponding to the selection instruction
- the processing module adjusts a display parameter corresponding to a portion of the image that does not match the chromaticity value, and The adjusted image is displayed in the finder frame.
- a color selection interface is generated according to the chromaticity value of each pixel in the image, and when the user selects the chromaticity value in the color selection interface, the color and the color are adjusted in the image.
- the display parameter corresponding to the part whose degree value does not match such as adjusting the transparency or the chromaticity value of the unmatched part, so that the adjusted part is clearly distinguished from the unadjusted part, so that the final displayed image of the finder frame is only
- the portion of the chromaticity value selected by the user is normally displayed, and a partial color image can be generated when the photograph is taken, instead of only taking an overall color image or an overall black and white image.
- the embodiment of the present invention improves the intelligence of photographing.
- the generating sub-module 12 includes:
- the obtaining unit 121 is configured to obtain a color parameter corresponding to each pixel in the converted image, where the color parameter includes a hue, a saturation, and a brightness;
- a generating unit 122 configured to: according to the color corresponding to each pixel point in the converted image A parameter that generates a chrominance value corresponding to each pixel.
- the obtaining unit 121 acquires a color parameter corresponding to each pixel in the converted image, the color.
- the parameter includes a hue H, a saturation S, and a brightness V; the generating unit 122 generates a chromaticity value corresponding to each pixel point according to the color parameter corresponding to each pixel point in the converted image.
- an example is as follows: when the hue H of the pixel is 240°, the saturation S is 0, and the brightness V is 1, referring to FIG. 13, it is known that the pixel is located on the top surface of the cone.
- the color corresponding to the pixel is blue; when the hue H of the pixel is 120°, the saturation S is 1, and the brightness V is 1, referring to FIG. 13, the pixel is located at the edge.
- the corresponding color of the pixel is white; when the hue H of the pixel is 120°, the saturation S is 0.5, and the brightness V is 1, referring to FIG. 13, the pixel is known.
- the point is located at a radius of 1/2 of the top surface of the cone, and the color corresponding to the pixel point is light green.
- the generating unit 122 may generate a chrominance value corresponding to each pixel point according to a color parameter corresponding to each pixel point.
- the calculating unit 123 is configured to calculate a weight value of each chrominance value in the transformed image in all the chromaticity values.
- the calculating unit 123 calculates a weight value of each color in the image, and the calculation manner includes:
- d determine a chrominance value corresponding to each pixel in the converted image, and then obtain a plurality of pixels with the same chromaticity value, and respectively divide the sum of the number of the plurality of pixels having the same chromaticity value. Taking the total number of all the pixel points in the converted image to obtain the ratio of each chromaticity value to all the chromaticity values in the converted image, and finally calculating the calculated ratio as each chromaticity value. The weight value of all chroma values.
- the generating unit 122 is further configured to generate the color according to a weight value corresponding to each chrominance value. Color selection interface.
- the generating unit 122 generates a color selection interface corresponding to the plurality of chromaticity values, where the chromaticity value is the weight value corresponding to all the chromaticity values in the image. The larger the weight value, the more the area occupied in the color selection interface, and the smaller the weight value, the less the area occupied in the color selection interface.
- each of the HSV color models is calculated.
- the color parameter of the pixel obtains a plurality of chromaticity values corresponding to the image, so that the final generated color type is more detailed, and there are darker colors and lighter colors, which are not easily distorted for brighter colors. More realistic reflection of the multiple colors contained in the image, improving the accuracy of the color selection interface during the photographing process.
- the determining module 20 includes:
- the output unit 21 is configured to output a tolerance range selection interface of the chromaticity value corresponding to the selection instruction when receiving a selection instruction input by the user based on the color selection interface;
- the determining unit 22 is configured to determine a chromaticity value corresponding to the tolerance range when receiving a tolerance range selected by the user based on the tolerance range selection interface, and use the determined chromaticity value as the selection The chromaticity value corresponding to the instruction.
- the color selection interface is displayed, and then the user is received.
- the output unit 21 outputs a tolerance range selection interface of the chromaticity value corresponding to the selection instruction.
- the display manner of the tolerance range selection interface may include: a.
- a tolerance range input box for the user to input a tolerance range of the chromaticity value based on the tolerance range input box; b, displaying a curve interface, such as a parabola
- the interface the curve in the curve interface represents the chromaticity value formed by each pixel, and when the user adjusts the curve in the curve interface, the determining unit 22 determines the range adjusted by the user, and adjusts the user.
- the range is taken as the tolerance range, and the chromaticity value corresponding to the tolerance range is determined.
- an example is as follows: taking the HSV color model as an example, the user selects an input based on the color selection interface.
- the chromaticity value corresponding to the instruction is 240°, and the tolerance range input box of the chromaticity value of 240° is displayed. At this time, if the user inputs 20° in the tolerance range input box, the tolerance range corresponds to The chromaticity value is 220° to 260°, that is, the selected chromaticity value includes not only blue, but also light blue, sky blue and dark blue; if the user inputs 40° in the tolerance range input box
- the chromaticity value corresponding to the tolerance range is 200° to 280°, that is, the selected chromaticity value includes not only blue, but also ultramarine, indigo, light blue, sky blue, and dark blue.
- the photographing apparatus further includes:
- the obtaining module 40 is configured to acquire information corresponding to the information adding instruction when receiving an information adding instruction input by the user;
- the adding module 50 is arranged to add the acquired information to the adjusted image to display an image to which the information is added.
- the triggering manner of the information adding instruction includes: a, long pressing the processed image to trigger an information adding instruction; b, pressing a preset physical button or a virtual button to trigger an information adding instruction ;c, by pressing the preset voice control, and inputting voice information to trigger the information addition instruction.
- the obtaining module 40 acquires information input by the user based on the information input interface, and the information may include text or a pattern, and the text includes weather.
- the image may be a preset image, such as a heart shape, etc.; the adding module 50 adds the text or pattern information to the adjusted image, so that the captured image is richer. And fun.
- a preset information selection interface is displayed, and the obtaining module 40 acquires information selected by the user based on the information selection interface, that is, the terminal.
- some information is pre-stored as information to be added in the photographing process.
- the information may include text or a pattern, and the text includes a weather condition, a photographing place or a user mood, and the pattern may be a preset image.
- the adding module 50 directly adds the pre-stored information in the selection interface, so that the information is added more conveniently, and the user does not need to input, so that the shooting efficiency is higher.
- the embodiment of the invention further provides a photographing method.
- FIG. 8 is a schematic flowchart diagram of an embodiment of a photographing method according to the present application.
- This embodiment provides a photographing method, and the photographing method includes:
- step S10 a color selection interface is generated according to the chromaticity value of each pixel in the image displayed in the finder frame.
- the manner of displaying the image in real time in the framing frame of the photographing application includes: opening a preset photographing application, and An image is acquired by a camera of the photographing application, and then the acquired image is displayed in a finder frame of the photographing application. It can be understood that during the photographing process, the camera of the terminal can be changed in real time, that is, the image displayed in the finder frame can also be changed in real time.
- step S10 includes:
- Method 1 When an image is displayed in the finder frame, the image is first processed to obtain an RGB (Red, Green, Blue) color model of the image (also referred to as an additive color mixing model). After obtaining the RGB color model, first extracting a chromaticity value of each pixel in the image, the chromaticity value is a value obtained by mixing three primary color values, and the three primary color values include a red pixel value, a green pixel value, and a blue color.
- RGB Red, Green, Blue
- each pixel point may include only one of the three primary color values, or may be obtained by adding any two of the three primary color values, or may be obtained by adding three primary color values; After the three primary color values of the point, respectively calculate the sum of the three primary color values of each pixel, the chromaticity value of each pixel point can be obtained, for example, the three primary color values of the pixel point include a red pixel value, a green pixel value, and a blue pixel value.
- Each color in the image when each color in the image is obtained, further calculates a weight value of each chrominance value in the image as a percentage of all chrominance values, including:
- a color selection interface may be generated, where the color selection interface may be a color selection interface corresponding to multiple chromaticity values, or may be first The plurality of chrominance values are divided into chromaticity values of a preset type, and finally a color selection interface corresponding to the chromaticity values of the preset genre is displayed.
- the color selection interface may be a color selection interface corresponding to multiple chromaticity values. It can be understood that the color having a larger weight value has more regions occupied by the color selection interface, and the weight value is The smaller the color, the less area is occupied in the color selection interface.
- Method 2 It can be understood that any of the RGB color models in the image can be added and mixed by R, G, and B in different proportions, and the three primary color components are all 0 (most When weak), it is mixed into black light; when the three primary color components are all 255 (strongest), it is mixed into white light. Adjusting any of the three primary color coefficients r, g, b will change the color value of the color, and the color space of the RGB color model is represented by the physical three primary colors, so the physical meaning is clear and suitable for the color picture tube work.
- the step S10 includes:
- Step S11 converting the RGB color model of the image into an HSV color model to obtain a transformed image
- Step S12 generating a color selection interface according to the chromaticity value of each pixel in the converted image.
- the RGB color model of the image is first converted into an HSV (Hue, Saturation, Value) color model.
- the HSV color model may refer to FIG. 13, and the color parameters of the HSV color model include: hue H, saturation S, and brightness V.
- the hue H is measured by the angle, ranging from 0° to 360°, calculated from the red counterclockwise direction, red is 0°, green is 120°, blue is 240°, and their complementary colors are: yellow 60°, cyan is 180°, magenta is 300°.
- the saturation S indicates the extent to which the color is close to the spectral color. A color can be seen as the result of mixing a certain spectral color with white.
- the saturation is high and the color is deep and colorful.
- the white color component of the spectral color is 0, and the saturation is the highest.
- the value ranges from 0% to 100%.
- the brightness V indicates the degree to which the color is bright.
- the brightness value is related to the brightness of the illuminant; for the object color, this value is related to the transmittance or reflectance of the object. Usually the value ranges from 0% (black) to 100% (white).
- the color represented is the brightest, the color H is obtained by the rotation angle around the V axis, and the saturation S is from 0 to 1.
- the gray is darkened by the brightness, that is, the gray with different gray levels.
- Step S20 when receiving a selection instruction input by the user based on the color selection interface, The chromaticity value corresponding to the selection instruction is determined.
- the color selection interface is displayed, and when the user selects a selection instruction based on the input, the determination is performed.
- the chromaticity value corresponding to the selection instruction is described. It can be understood that the display form of the color selection interface includes a chroma bar or a color ring, and the color ring can refer to FIG. 14 , or the color bar or the color ring includes multiple colors, each The color corresponds to a chromaticity value.
- Step S30 adjusting display parameters corresponding to the portion of the image that does not match the chromaticity value, and displaying the adjusted image in the finder frame, wherein the display parameter includes a transparency or a chromaticity value.
- the display parameter corresponding to the portion of the image that does not match the chromaticity value is adjusted, and the display parameter includes a transparency or a chromaticity value.
- the transparency corresponding to the portion of the image that does not match the chromaticity value is turned up or down, so that the adjusted portion is clearly distinguished from the unadjusted portion of the image; or, adjustment A chrominance value corresponding to a portion of the image that does not match the chrominance value may adjust the chrominance value to zero such that the adjusted portion is clearly distinguished from the unadjusted portion of the image.
- the display parameter corresponding to the portion of the image that does not match the chromaticity value is adjusted, for example, adjusted to a black and white image, and the partial image corresponding to the chromaticity value selected by the user is normally displayed. So that the final image is displayed with local color.
- the similarity between the chromaticity value of each pixel in the image and the chromaticity value selected by the user reaches a preset ratio, for example, when 80%, the chromaticity value of the pixel is considered to be The chromaticity value selected by the user is matched; or, when the chromaticity value of each pixel point in the image and the chromaticity value of the user-selected chromaticity value are less than a preset value, the chromaticity value of the pixel point is considered The user selected chromaticity values match.
- the photographing method of the present embodiment generates a color selection interface according to the chromaticity value of each pixel in the image displayed in the finder frame, and determines the selection instruction when receiving a selection instruction input by the user based on the color selection interface. Corresponding chrominance values, finally adjusting display parameters corresponding to the portions of the image that do not match the chromaticity values, and displaying the adjusted images in the finder frame.
- a color selection interface is generated according to the chromaticity value of each pixel in the image, and when the user selects the chromaticity value in the color selection interface, the color and the color are adjusted in the image.
- the display parameter corresponding to the part that does not match the value such as adjusting the transparency or the chromaticity value of the unmatched part, so that the adjusted part is clearly distinguished from the unadjusted part, so that the final displayed image of the finder frame is only the user.
- the portion of the selected chromaticity value is normally displayed, so that a partial color image can be generated when photographing is performed, instead of only taking an overall color image or an overall black and white image, the embodiment of the present invention improves the intelligence of photographing.
- the step S12 includes:
- Step S121 obtaining a color parameter corresponding to each pixel in the converted image, where the color parameter includes hue, saturation, and brightness;
- Step S122 generating a chromaticity value corresponding to each pixel point according to the color parameter corresponding to each pixel point in the converted image.
- the color parameter includes a hue H
- the saturation S and the brightness V are generated according to the color parameter corresponding to each pixel in the converted image, and the chromaticity value corresponding to each pixel is generated.
- an example is as follows: when the hue H of the pixel is 240°, the saturation S is 0, and the brightness V is 1, referring to FIG. 13, it is known that the pixel is located on the top surface of the cone.
- the color corresponding to the pixel is blue; when the hue H of the pixel is 120°, the saturation S is 1, and the brightness V is 1, referring to FIG. 13, the pixel is located at the edge. At the center of the top surface of the cone, the color corresponding to the pixel is white; when the hue H of the pixel is 120°, the saturation S is 0.5, and the brightness V is 1, referring to FIG. 13, the pixel is known. Located at a radius of 1/2 of the top surface of the cone, the color corresponding to the pixel point is light green. Finally, according to the color parameter corresponding to each pixel, the chrominance value corresponding to each pixel can be generated.
- Step S123 calculating a weight value of each chrominance value in the transformed image as a percentage of all chrominance values.
- the weight value of each chrominance value in the converted image is calculated, and the calculation manner includes:
- d determine a chrominance value corresponding to each pixel in the converted image, and then obtain a plurality of pixels with the same chromaticity value, and respectively divide the sum of the number of the plurality of pixels having the same chromaticity value. Taking the total number of all the pixel points in the converted image to obtain the ratio of each chromaticity value to all the chromaticity values in the converted image, and finally calculating the calculated ratio as each chromaticity value. The weight value of all chroma values.
- Step S124 generating the color selection interface according to the weight value corresponding to each chrominance value.
- a color selection interface corresponding to the plurality of chromaticity values is generated, wherein the weight value is larger.
- the color the more regions occupied in the color selection interface, the smaller the weight value, the fewer regions occupy in the color selection interface.
- each of the HSV color models is calculated.
- the color parameter of the pixel obtains a plurality of chromaticity values corresponding to the image, so that the final generated color type is more detailed, and there are darker colors and lighter colors, which are not easily distorted for brighter colors. More realistic reflection of the multiple colors contained in the image, improving the accuracy of the color selection interface during the photographing process.
- the step S20 includes:
- Step S21 when receiving a selection instruction input by the user based on the color selection interface, output a tolerance range selection interface of the chromaticity value corresponding to the selection instruction;
- Step S22 when receiving a tolerance range selected by the user based on the tolerance range selection interface, determining a chromaticity value corresponding to the tolerance range, and determining the determined chromaticity value as the selection instruction Chroma value.
- the color selection interface is displayed, and then the user is selected based on the color selection.
- the tolerance of the chromaticity value corresponding to the selection instruction is output Range selection interface.
- the display manner of the tolerance range selection interface may include: a. displaying a tolerance range input box for the user to input a tolerance range of the color value based on the tolerance range input box; b, displaying a curve interface, such as a parabola interface The curve in the curve interface represents the chromaticity value formed by each pixel.
- the range of the user adjustment is determined, and the range adjusted by the user is used as the tolerance range. And determining a chromaticity value corresponding to the tolerance range.
- an example is as follows: taking the HSV color model as an example, the chromaticity value corresponding to the selection instruction input by the user based on the color selection interface is 240°, and the capacity of the chromaticity value of 240° is displayed. The difference range input box.
- the chromaticity value corresponding to the tolerance range is 220° to 260°, that is, the selected chromaticity value includes not only Blue, which may also include light blue, sky blue, and dark blue; if the user inputs 40° in the tolerance range input box, the tolerance range corresponds to a chromaticity value of 200° to 280°.
- the selected chromaticity value includes not only blue, but also several colors such as ultramarine, indigo, light blue, sky blue, and dark blue, that is, the larger the tolerance, the equivalent is 240° blue
- the tolerance range is small, the smaller the range of diffusion on both sides of the center line of 240° blue, only the color close to the selected color will be retained.
- the photographing method further includes:
- Step S40 Acquire information corresponding to the information adding instruction when receiving an information adding instruction input by the user;
- Step S50 adding the acquired information to the adjusted image to display an image to which the information is added.
- the triggering manner of the information adding instruction includes: a, long pressing the processed image to trigger an information adding instruction; b, pressing a preset physical button or a virtual button to trigger an information adding instruction ;c, trigger information by pressing the preset voice control and entering voice information Add an instruction.
- the information may include a text or a pattern, and the text includes a weather condition and a photographing place. Or the user's mood, etc., the pattern may be a preset image, such as a heart shape, etc.; in this embodiment, the text or pattern information is added to the adjusted image, so that the captured image is richer and more interesting.
- the preset information selection interface is displayed, and the information selected by the user based on the information selection interface is obtained, that is, the terminal is pre-stored first.
- the information is used as the information to be added in the photographing process.
- the information may include text or a pattern, and the text includes a weather condition, a photographing place or a user mood, and the like, and the pattern may be a preset image, such as a heart shape.
- the information pre-stored in the selection interface is directly added, so that the information is added more conveniently, and the user does not need to input, so that the shooting efficiency is higher.
- an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the computer executable instruction processor to implement the above photographing method.
- computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
- communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
- the embodiment of the present invention provides a photographing apparatus and method, which can generate a partial color image when photographing, instead of only taking an overall color image or an overall black and white image, thereby improving the intelligence of photographing.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
本文公开了一种拍照装置及方法,所述拍照装置包括:生成模块(10),设置为根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面;确定模块(20),设置为在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值;处理模块(30),设置为调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
Description
本申请涉及但不限于拍照技术领域,尤其涉及一种拍照装置及方法。
目前,智能手机等移动设备在相机成像上都采用较佳的硬件设施,整体成像质量相对进步较大,已能满足于一般生活记录和拍照记录需求。现在大部分拍照设备拍摄的图像几乎都是彩色图片,当然,用户可在拍照完成后对图像进行简单处理以得到处理后的图像,如进行黑白处理得到黑白图像等等。但是图像的彩色和黑白都是对整体而言的,若是用户想要将图像处理成局部的彩色图像,即图像中仅有一部分是彩色,而其余部分是黑白的图像,只能在图像拍摄完成依靠后期软件如PS软件(Photoshop软件,一种图像处理软件)进行局部去色处理,以达到图像中特定颜色的呈现。也就是说,现在的拍照方式,拍照时只能得到整体图像,若用户想要得到局部彩色图像,需要在后期通过特定的软件对图像进行处理,显然,这种拍照方式,拍摄的图像比较单一,智能性较低。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出一种拍照装置及方法,旨在解决传统的拍照方式,拍摄的图像比较单一,智能性较低的技术问题。
本发明实施例提供的一种拍照装置,包括:
生成模块,设置为根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面;
确定模块,设置为在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值;
处理模块,设置为调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
所述生成模块可以包括:
转化子模块,设置为将所述图像的RGB颜色模型转化为HSV颜色模型,得到转化后的图像;
生成子模块,设置为根据转化后的图像中每个像素点的色度值生成颜色选择界面。
所述生成子模块可以包括:
获取单元,设置为获取转化后的所述图像中每个像素点对应的颜色参数,其中,所述颜色参数包括色调、饱和度和亮度;
生成单元,设置为根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点对应的色度值;
计算单元,设置为计算转化后的所述图像中每种色度值占所有色度值的权重值;
所述生成单元,还设置为根据每种色度值对应的权重值生成所述颜色选择界面。
所述计算单元可以设置为通过以下方式计算转化后的所述图像中每种色度值占所有色度值的权重值:
确定转化后的所述图像中每种色度值对应的面积以及转化后的所述图像的总面积,根据每种色度值对应的面积占转化后的所述图像的总面积的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值;或者,
确定转化后的所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占转化后的所述图像中所有像素点的总数的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值。
所述生成模块可以设置为通过以下方式根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面:
计算RGB颜色模型的所述图像中每个像素点的色度值;
计算所述图像中每种色度值占所有色度值的权重值;
根据每种色度值对应的权重值生成颜色选择界面。
所述生成模块可以设置为通过以下方式计算所述图像中每种色度值占所有色度值的权重值:
计算所述图像中每种色度值对应的面积以及所述图像的总面积,根据每种色度值对应的面积占所述图像的总面积的比例,确定每种色度值占所有色度值的权重值;或者,
计算所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占所述图像中所有像素点的总数的比例,确定每种色度值占所有色度值的权重值。
所述确定模块可以包括:
输出单元,设置为在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面;
确定单元,设置为在接收到用户基于所述容差范围选择界面选择的容差范围时,确定所述容差范围对应的色度值,并将确定的所述色度值作为所述选择指令对应的色度值。
所述拍照装置还可以包括:
获取模块,设置为在接收用户输入的信息添加指令时,获取所述信息添加指令对应的信息;
添加模块,设置为将获取的所述信息添加到调整后的所述图像中,以显示添加所述信息的图像。
所述处理模块可以设置为通过以下方式调整所述图像中与所述色度值不匹配的部分对应的显示参数:
将所述图像中与所述色度值不匹配的部分对应的透明度调高或调低;或者,
将所述图像中与所述色度值不匹配的部分对应的色度值调整为零。
所述拍照装置还可以包括:显示模块,用于在拍照应用的取景框内实时显示图像。
此外,本发明实施例还提出一种拍照方法,所述拍照方法包括以下步骤:
根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面;
在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值;
调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
所述根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面的步骤可以包括:
将所述图像的RGB颜色模型转化为HSV颜色模型,得到转化后的图像;
根据转化后的图像中每个像素点的色度值生成颜色选择界面。
所述根据转化后的图像中每个像素点的色度值生成颜色选择界面的步骤可以包括:
获取转化后的所述图像中每个像素点对应的颜色参数,其中,所述颜色参数包括色调、饱和度和亮度;
根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点对应的色度值;
计算转化后的所述图像中每种色度值占所有色度值的权重值;
根据每种色度值对应的权重值生成所述颜色选择界面。
所述计算转化后的所述图像中每种色度值占所有色度值的权重值的步骤可以包括:
确定转化后的所述图像中每种色度值对应的面积以及转化后的所述图像的总面积,根据每种色度值对应的面积占转化后的所述图像的总面积的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值;或者,
确定转化后的所述图像中每个像素点对应的色度值,根据色度值相同的
像素点的数目占转化后的所述图像中所有像素点的总数的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值。
所述根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面的步骤可以包括:
计算RGB颜色模型的所述图像中每个像素点的色度值;
计算所述图像中每种色度值占所有色度值的权重值;
根据每种色度值对应的权重值生成颜色选择界面。
所述计算所述图像中每种色度值占所有色度值的权重值的步骤可以包括:
计算所述图像中每种色度值对应的面积以及所述图像的总面积,根据每种色度值对应的面积占所述图像的总面积的比例,确定每种色度值占所有色度值的权重值;或者,
计算所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占所述图像中所有像素点的总数的比例,确定每种色度值占所有色度值的权重值。
所述在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值的步骤可以包括:
在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面;
在接收到用户基于所述容差范围选择界面选择的容差范围时,确定所述容差范围对应的色度值,并将确定的所述色度值作为所述选择指令对应的色度值。
所述在所述取景框内显示调整后的图像的步骤之后,所述拍照方法还可以包括:
在接收用户输入的信息添加指令时,获取所述信息添加指令对应的信息;
将获取的所述信息添加到调整后的所述图像中,以显示添加所述信息的图像。
所述调整所述图像中与所述色度值不匹配的部分对应的显示参数的步骤
可以包括:
将所述图像中与所述色度值不匹配的部分对应的透明度调高或调低;或者,
将所述图像中与所述色度值不匹配的部分对应的色度值调整为零。
所述拍照方法还可以包括:在拍照应用的取景框内实时显示图像。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令处理器执行时实现上述的拍照方法。
本发明实施例提出的拍照装置及方法,包括生成模块、确定模块和处理模块,所述生成模块根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面,在接收到用户基于所述颜色选择界面输入的选择指令时,所述确定模块确定所述选择指令对应的色度值,所述处理模块调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像。如此,实现了在拍照过程中,根据图像中每个像素点的色度值生成颜色选择界面,并在用户选择所述颜色选择界面中的色度值时,调整所述图像中与所述色度值不匹配的部分对应的显示参数,如调整不匹配部分的透明度或是色度值,以使调整的部分与未调整的部分明显区分,使得所述取景框最终显示的图像,仅仅是将用户选择的色度值的部分正常显示,实现了拍照时即可生成局部彩色图像,而不是只能拍摄整体彩色图像或整体黑白图像,从而提高了拍照的智能性。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为实现本申请实施例的一个示例性移动终端的硬件结构示意图;
图2为图1中相机的电气结构框图;
图3为本申请的拍照装置的第一实施例的功能模块示意图;
图4为图3中生成模块的细化功能模块示意图;
图5为图4中生成子模块的细化功能模块示意图;
图6为图3中确定模块的细化功能模块示意图;
图7为本申请的拍照装置的第四实施例的功能模块示意图;
图8为本申请的拍照方法的第一实施例的流程示意图;
图9为本申请中根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面的示例性实施例的流程示意图;
图10为本申请中根据转化后的图像中每个像素点的色度值生成颜色选择界面的示例性实施例的流程示意图;
图11为在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值的示例性实施例的流程示意图;
图12为本申请的拍照方法的第四实施例的流程示意图;
图13为本发明实施例的HSV颜色模型的结构示意图;
图14为本发明实施例的颜色选择界面的示例显示方式的示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
应当理解,此处所描述的实施例仅仅用以解释本申请,并不用于限定本申请。
现在将参考附图描述实现本申请实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本申请的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
移动终端可以以一种或多种形式来实施。例如,本申请中描述的终端可以包括诸如移动电话、智能电话、摄像机、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移
动目的的元件之外,根据本申请的实施方式的构造也能够应用于固定类型的终端。
图1为实现本申请实施例的一个示例性移动终端的硬件结构示意图。
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有多种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信装置或网络之间的无线电通信。
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风122,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由无线通信单元110发送到移动通信基站的格式输出。麦克风122可以实施一种或多种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的一种或多种操作。用户输入单元130允许用户输入一种或多种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,
触摸输入)的有无、移动终端100的取向、移动终端100的加速或将速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型移动电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的一种或多种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为“识别装置”)可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的一种或多种命令信号通过其传输到移动终端的路径。从底座输入的一种或多种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151等等。
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储已经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的一种或多种方式的振动和音频信号的数据。
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作每个元件和组件所需的适当的电力。
这里描述的一种或多种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可
以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的多种类型的移动终端中的滑动型移动终端作为示例。因此,本发明实施例能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
参照图2,图2为图1中相机121的电气结构框图。
摄影镜头1211由用于形成被摄体像的多个光学镜头构成,为单焦点镜头或变焦镜头。摄影镜头1211在镜头驱动器1221的控制下能够在光轴方向上移动,镜头驱动器1221根据来自镜头驱动控制电路1222的控制信号,控制摄影镜头1211的焦点位置,在变焦镜头的情况下,也可控制焦点距离。镜头驱动控制电路1222按照来自微型计算机1217的控制命令进行镜头驱动器1221的驱动控制。
在摄影镜头1211的光轴上、由摄影镜头1211形成的被摄体像的位置附近配置有摄像元件1212。摄像元件1212用于对被摄体像摄像并取得摄像图像数据。在摄像元件1212上二维且呈矩阵状配置有构成每个像素的光电二极管。每个光电二极管产生与受光量对应的光电转换电流,该光电转换电流由与每个光电二极管连接的电容器进行电荷蓄积。每个像素的前表面配置有拜耳排列的RGB滤色器。
摄像元件1212与摄像电路1213连接,该摄像电路1213在摄像元件1212中进行电荷蓄积控制和图像信号读出控制,对该读出的图像信号(模拟图像信号)降低重置噪声后进行波形整形,进而进行增益提高等以成为适当的信号电平。
摄像电路1213与A/D转换器1214连接,该A/D转换器1214对模拟图像信号进行模数转换,向总线1227输出数字图像信号(以下称之为图像数据)。
总线1227是用于传送在相机的内部读出或生成的一种或多种数据的传送路径。在总线1227连接着上述A/D转换器1214,此外还连接着图像处理器1215、JPEG处理器1216、微型计算机1217、SDRAM(Synchronous Dynamic random access memory,同步动态随机存取内存)1218、存储器接口(以下称之为存储器I/F)1219、LCD(Liquid Crystal Display,液晶显示器)驱动器1220。
图像处理器1215对基于摄像元件1212的输出的图像数据进行OB相减处理、白平衡调整、颜色矩阵运算、伽马转换、色差信号处理、噪声去除处理、同时化处理、边缘处理等多种图像处理。JPEG处理器1216在将图像数据记录于记录介质1225时,按照JPEG压缩方式压缩从SDRAM1218读出的图像数据。此外,JPEG处理器1216为了进行图像再现显示而进行JPEG图像数据的解压缩。进行解压缩时,读出记录在记录介质1225中的文件,在JPEG处理器1216中实施了解压缩处理后,将解压缩的图像数据暂时存储于SDRAM1218中并在LCD1226上进行显示。另外,在本实施方式中,作为图像压缩解压缩方式采用的是JPEG方式,然而压缩解压缩方式不限于此,当然可以采用MPEG、TIFF、H.264等其他的压缩解压缩方式。
微型计算机1217发挥作为该相机整体的控制部的功能,统一控制相机的一种或多种处理序列。微型计算机1217连接着操作单元1223和闪存1224。
操作单元1223包括但不限于实体按键或者虚拟按键,该实体或虚拟按键可以为电源按钮、拍照键、编辑按键、动态图像按钮、再现按钮、菜单按钮、十字键、OK按钮、删除按钮、放大按钮等多种输入按钮和多种输入键等操作控件。检测这些操作控件的操作状态,将检测结果向微型计算机1217输出。此外,在作为显示器的LCD1226的前表面设有触摸面板,检测用户的触摸位置,将该触摸位置向微型计算机1217输出。微型计算机1217根据来自操作单元1223的操作位置的检测结果,执行与用户的操作对应的一种或多种处理序列。
闪存1224存储用于执行微型计算机1217的一种或多种处理序列的程序。微型计算机1217根据该程序进行相机整体的控制。此外,闪存1224存储相
机的一种或多种调整值,微型计算机1217读出调整值,按照该调整值进行相机的控制。
SDRAM1218是用于对图像数据等进行暂时存储的可电改写的易失性存储器。该SDRAM1218暂时存储从A/D转换器1214输出的图像数据和在图像处理器1215、JPEG处理器1216等中进行了处理后的图像数据。
存储器接口1219与记录介质1225连接,进行将图像数据和附加在图像数据中的文件头等数据写入记录介质1225和从记录介质1225中读出的控制。记录介质1225例如为能够在相机主体上自由拆装的存储器卡等记录介质,然而不限于此,也可以是内置在相机主体中的硬盘等。
LCD驱动器1220与LCD1226连接,将由图像处理器1215处理后的图像数据存储于SDRAM1218,需要显示时,读取SDRAM1218存储的图像数据并在LCD1226上显示,或者,JPEG处理器1216压缩过的图像数据存储于SDRAM1218,在需要显示时,JPEG处理器1216读取SDRAM1218的压缩过的图像数据,再进行解压缩,将解压缩后的图像数据通过LCD1226进行显示。
LCD1226配置在相机主体的背面进行图像显示。该LCD1226可以采用LCD显示面板,然而不限于此,也可以采用有机EL等多种显示面板。
基于上述移动终端硬件结构、以及相机的电气结构示意图,提出本申请的拍照装置的实施例。
参照图3,图3为本申请的拍照装置的第一实施例的功能模块示意图。
需要强调的是,对本领域技术人员来说,图3所示功能模块图仅仅是一个实施例的示例图,本领域技术人员围绕图3所示的拍照装置的功能模块,可轻易进行新的功能模块的补充;每个功能模块的名称是自定义名称,仅用于辅助理解该拍照装置的每个程序功能块,不用于限定本申请的技术方案,本申请技术方案的核心是,每个自定义名称的功能模块所要达成的功能。
本实施例提出一种拍照装置,所述拍照装置包括:
生成模块10,设置为根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面;
在本实施例中,所述拍照装置包括显示模块,所述显示模块用于在拍照应用的取景框内实时显示图像,可以先开启预设的拍照应用,并通过所述拍照应用的摄像头获取图像,然后所述显示模块在所述拍照应用的取景框内显示获取的所述图像。可以理解的是,在拍照过程中,终端的摄像头可以实时改变,即所述取景框内显示的图像也是可以实时改变的。
在本实施例中,所述生成模块10根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面的实施方式包括:
1)方式一、所述显示模块在所述取景框内显示图像时,先对所述图像进行处理,以得到所述图像的RGB(Red、Green、Blue)颜色模型(也称为加色法混色模型),在得到所述RGB颜色模型后,先提取所述图像中每个像素点的色度值,所述色度值为三原色值混合得到的值,三原色值包括红色像素值、绿色像素值和蓝色像素值;可以理解的是,每个像素点可以只包括其中一种三原色值,也可以由其中任意两个三原色值相加得到,还可以由三个三原色值相加得到;在得到每个像素点的三原色值后,分别计算每个像素点的三原色值之和,即可得到每个像素点的色度值,例如,像素点的三原色值包括红色像素值、绿色像素值和蓝色像素值,那么所述像素点的色度值的计算公式为:F=r[R]+g[G]+b[B],同理,计算出所述图像中每个像素点的色度值;最终,根据所述图像中每个像素点的色度值,将色度值相等的归为同一类,最终可得到所述图像中的每种色度值,根据每种色度值即可确定所述图像中的每种颜色,在得到所述图像中的每种颜色时,进一步计算所述图像中每种色度值占所有色度值的权重值,所述计算方式包括:
a、先分别确定所述图像中每种色度值对应的面积,以及所述图像的总面积,然后将每种色度值对应的面积除以所述图像的总面积,以得到每种色度值占所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值;
b、先确定所述图像中每个像素点对应的色度值,然后获取色度值相同的像素点,并分别将色度值相同的多个像素点的数量之和除以所述图像中所有像素点的总数,以得到每种色度值占所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值。
在得到每种色度值占所述图像中所有色度值对应的权重值时,所述生成模块10生成颜色选择界面,所述颜色选择界面可以是多种色度值对应的颜色选择界面,也可以是先将多种色度值进行划分,划分为预设种类的色度值,最终显示所述预设种类的色度值对应的颜色选择界面。本实施例中,所述颜色选择界面可以是多种色度值对应的颜色选择界面,可以理解的是,权重值越大的颜色,在所述颜色选择界面中占据的区域越多,权重值越小的颜色,在所述颜色选择界面中占据的区域越少。
2)方式二、可以理解的是,所述图像中的RGB颜色模型中,任何一种颜色都可由R、G、B三原色按不同的比例相加混合而成,当三原色分量都为0(最弱)时混合为黑色光;当三原色分量都为255(最强)时混合为白色光。调整三原色系数r、g、b中的任一系数都会改变颜色的色值,而所述RGB颜色模型的颜色空间采用物理三原色表示,因而物理意义很清楚,适合彩色显像管工作。然而并不适应人的视觉特点,因此,在本实施例中,为了提高拍照过程中图像处理的准确性,参照图4,所述生成模块10包括:
转化子模块11,设置为将所述图像的RGB颜色模型转化为HSV颜色模型,得到转化后的图像;
生成子模块12,设置为根据转化后的图像中每个像素点的色度值生成颜色选择界面。
在本实施例中,在对所述图像进行处理,得到所述图像的RGB颜色模型之后,所述转化子模块11先将所述图像的RGB颜色模型转化为HSV(Hue、Saturation、Value)颜色模型。所述HSV颜色模型可参照图13,所述HSV颜色模型的颜色参数包括:色调H、饱和度S和亮度V。色调H用角度进行度量,取值范围为0°到360°,从红色开始按逆时针方向计算,红色为0°,绿色为120°,蓝色为240°,而它们的补色是:黄色为60°,青色为180°,品红为300°。饱和度S表示颜色接近光谱色的程度。一种颜色,可以看成是某种光谱色与白色混合的结果,其中光谱色所占的比例愈大,颜色接近光谱色的程度就愈高,颜色的饱和度也就愈高。饱和度高,颜色则深而艳。光谱色的白光成分为0,饱和度达到最高。通常取值范围为0%到100%,值越大,颜色越饱和。亮度V表示颜色明亮的程度,对于光源色,亮度值与发
光体的光亮度有关;对于物体色,此值和物体的透射比或反射比有关。通常取值范围为0%(黑)到100%(白)。所述HSV颜色模型相当于圆柱坐标系中的一个圆锥形子集,圆锥的顶面对应于V=1,它包含RGB模型中的R=1,G=1,B=1三个面,所代表的颜色最亮,色彩H由绕V轴的旋转角得到,饱和度S取值从0到1,同样参照图13,从圆锥顶面的边缘越往圆心靠拢,饱和度的值越小,所以圆锥顶面的半径为1。在所述HSV颜色模型中,在圆锥的顶点处,V=0,H和S无定义,代表黑色。圆锥的顶面中心即原点处S=0,V=1,H无定义,代表白色。从顶点到原点代表亮度渐暗的灰色,即具有不同灰度的灰色。对于这些点,S=0,H的值无定义。可以说,HSV颜色模型中的V轴对应于RGB颜色空间中的主对角线。在圆锥顶面的边缘上的颜色,V=1,S=1,这种颜色是纯色。
在本实施例中,在对所述图像的RGB模型进行转化,转化得到所述HSV颜色模型后,获取转化后的图像中每个像素点的色度值,然后所述生成子模块12根据转化后的所述图像中每个像素点的色度值,以生成多种色度值对应的颜色选择界面。所述根据转化后的所述图像中每个像素点的色度值,以生成多种色度值对应的颜色选择界面的实施方式在下文中详述。
确定模块20,设置为根据所述图像中每个像素点的色度值生成多种色度值对应的颜色选择界面。
在本实施例中,在得到所述图像中多种色度值对应的颜色选择界面后,显示所述颜色选择界面,在所述颜色选择界面中接收到用户基于输入的选择指令时,所述确定模块20确定所述选择指令对应的色度值。可以理解的是,所述颜色选择界面的显示形式包括色度条或色环,所述色环可参照图14,所述色度条或者是所述色环中,包括多种颜色,每种颜色对应一个色度值。
处理模块30,设置为调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
在本实施例中,在确定所述选择指令对应的色度值后,所述处理模块30调整所述图像中与所述色度值不匹配的部分对应的显示参数,所述显示参数包括透明度或色度值。所述处理模块30调整的方式例如:将所述图像中与所
述色度值不匹配的部分对应的透明度调高或调低,以使调整的部分与所述图像中未调整的部分明显区分;或者是,调整所述图像中与所述色度值不匹配的部分对应的色度值,可将色度值调整为零,以使调整的部分与所述图像中未调整的部分明显区分。可以理解的是,在所述图像中,调整所述图像中与所述色度值不匹配的部分对应的显示参数,例如调整为黑白图像,而用户选择的色度值对应的部分图像正常显示,使得最终显示的是带有局部彩色的图像。
本实施例中,示例性地,在所述图像中每个像素点的色度值与用户选择的色度值的相似度达到预设比例,如80%时,认为像素点的色度值与用户选择的色度值匹配;或者是,在所述图像中每个像素点的色度值与用户选择的色度值的色度差值小于预设值时,认为像素点的色度值与用户选择的色度值匹配。
本实施例提出的拍照装置,包括生成模块、确定模块和处理模块,所述生成模块根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面,在接收到用户基于所述颜色选择界面输入的选择指令时,所述确定模块确定所述选择指令对应的色度值,所述处理模块调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像。如此,实现了在拍照过程中,根据图像中每个像素点的色度值生成颜色选择界面,并在用户选择所述颜色选择界面中的色度值时,调整所述图像中与所述色度值不匹配的部分对应的显示参数,如调整不匹配部分的透明度或是色度值,以使调整的部分与未调整的部分明显区分,使得所述取景框最终显示的图像,仅仅是将用户选择的色度值的部分正常显示,实现了拍照时即可生成局部彩色图像,而不是只能拍摄整体彩色图像或整体黑白图像,本发明实施例提高了拍照的智能性。
进一步地,为了提高拍照的准确性,基于第一实施例提出本申请的拍照装置的第二实施例,在本实施例中,参照图5,所述生成子模块12包括:
获取单元121,设置为获取转化后的所述图像中每个像素点对应的颜色参数,其中,所述颜色参数包括色调、饱和度和亮度;
生成单元122,设置为根据转化后的所述图像中每个像素点对应的颜色
参数,生成每个像素点对应的色度值。
在本实施例中,在得到转化后的图像后,即获取到图像对应的HSV颜色模型后,所述获取单元121获取转化后的所述图像中每个像素点对应的颜色参数,所述颜色参数包括色调H、饱和度S和亮度V;所述生成单元122根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点对应的色度值。为更好地理解本实施例,举例如下:在像素点的色调H为240°,饱和度S为0,亮度V为1时,参照图13,可知所述像素点位于所述圆锥体顶面的边缘处,得到所述像素点对应的颜色是蓝色;在像素点的色调H为120°,饱和度S为1,亮度V为1时,参照图13,可知所述像素点位于所述圆锥体顶面的圆心处,得到所述像素点的对应的颜色是白色;在像素点的色调H为120°,饱和度S为0.5,亮度V为1时,参照图13,可知所述像素点位于所述圆锥体顶面的1/2半径处,得到所述像素点对应的颜色是浅绿色。最终,所述生成单元122根据每个像素点对应的颜色参数,可生成每个像素点对应的色度值。
计算单元123,设置为计算转化后的所述图像中每种色度值占所有色度值的权重值。
在本实施例中,在得到每个像素点对应的颜色后,所述计算单元123计算所述图像中每个颜色占所有颜色的权重值,所述计算方式包括:
c、先分别确定转化后的所述图像中每种色度值对应的面积,以及转化后的所述图像的总面积,然后将每种色度值对应的面积除以转化后的所述图像的总面积,以得到每种色度值占转化后的所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值;
d、先确定转化后的所述图像中每个像素点对应的色度值,然后获取色度值相同的多个像素点,并分别将色度值相同的多个像素点的数目之和除以转化后的所述图像中的所有像素点的总数,以得到每种色度值占转化后的所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值。
所述生成单元122,还设置为根据每种色度值对应的权重值生成所述颜
色选择界面。
在本实施例中,在得到每种色度值占转化后的所述图像中所有色度值对应的权重值时,所述生成单元122生成多种色度值对应的颜色选择界面,其中,权重值越大的颜色,在所述颜色选择界面中占据的区域越多,权重值越小的颜色,在所述颜色选择界面中占据的区域越少。
在RGB颜色模型中,由于RGB图像会损失一部分亮度,比较鲜艳的色彩容易失真,容易导致所述图像生成的颜色选择界面不够准确,因此,在本实施例中,通过计算HSV颜色模型中每个像素点的颜色参数,得到所述图像对应的多种色度值,使得最终生成的颜色种类更加细致,有深色些的颜色,也有浅色些的颜色,对于较鲜艳的颜色也不容易失真,更加真实地反映了图像中包含的多种颜色,提高了拍照过程中,生成颜色选择界面的准确性。
进一步地,为了提高拍照的灵活性,基于第一或第二实施例提出本申请的拍照装置的第三实施例,在本实施例中,参照图6,所述确定模块20包括:
输出单元21,设置为在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面;
确定单元22,设置为在接收到用户基于所述容差范围选择界面选择的容差范围时,确定所述容差范围对应的色度值,并将确定的所述色度值作为所述选择指令对应的色度值。
在本实施例中,在所述生成模块10根据所述图像中每个像素点的色度值生成多种色度值对应的颜色选择界面后,显示所述颜色选择界面,然后在接收到用户基于所述颜色选择界面输入的选择指令时,所述输出单元21输出所述选择指令对应的色度值的容差范围选择界面。所述容差范围选择界面的显示方式可以包括:a、显示容差范围输入框,以供用户基于所述容差范围输入框输入色度值的容差范围;b、显示曲线界面,如抛物线界面,所述曲线界面中的曲线表示的是每个像素点构成的色度值,在接收到用户调整所述曲线界面中的曲线时,所述确定单元22确定用户调整的范围,将用户调整的范围作为容差范围,并确定所述容差范围对应的色度值。为更好地理解本实施例,举例如下:以HSV颜色模型为例,在用户基于所述颜色选择界面输入的选择
指令对应的色度值为240°,显示所述色度值240°的容差范围输入框,此时,用户在所述容差范围输入框中输入20°,则所述容差范围对应的色度值即为220°到260°,即选择的色度值不仅仅包括蓝色,还可能包括浅蓝色、天蓝色和深蓝色;若用户在所述容差范围输入框中输入40°,则所述容差范围对应的色度值即为200°到280°,即选择的色度值不仅仅包括蓝色,还可能包括群青色、靛青色、浅蓝色、天蓝色和深蓝色等等几种颜色,即容差越大,相当于是以240°蓝色为中心线两边扩散的范围越大,若选择容差范围小,以240°蓝色为中心线两边扩散的范围越小,只会保留跟选择颜色相近的颜色。
在本实施例中,在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面,然后在接收到用户选择的容差范围时,确定所述容差范围对应的色度值,实现了获取颜色选择界面中的色度值时,不仅仅可以获取用户基于所述颜色选择界面选择的颜色,还可以获取选择的色度值相邻的色度值,使得色度值的获取更加灵活。
进一步地,为了提高拍照的灵活性,基于第一或第二实施例提出本申请的拍照装置的第四实施例,在本实施例中,参照图7,所述拍照装置还包括:
获取模块40,设置为在接收用户输入的信息添加指令时,获取所述信息添加指令对应的信息;
添加模块50,设置为将获取的所述信息添加到调整后的所述图像中,以显示添加所述信息的图像。
在本实施例中,所述信息添加指令的触发方式包括:a、长按处理后的所述图像,以触发信息添加指令;b、按照预设的实体按键或虚拟按键,以触发信息添加指令;c、通过按压预设的语音控件,并输入语音信息,以触发信息添加指令。在接收到用户输入的信息添加指令时,显示预设的信息输入界面,所述获取模块40获取用户基于所述信息输入界面输入的信息,所述信息可以包括文字或图案,所述文字包括天气情况、拍照地点或用户心情等,所述图案可为预设的图像,如心形等;所述添加模块50在调整后的图像中添加所述文字或图案信息,使得拍出来的图像更加丰富和趣味。
进一步地,为了提高拍照的效率和便捷性,在接收到用户输入的信息添加指令时,显示预设的信息选择界面,所述获取模块40获取用户基于所述信息选择界面选择的信息,即终端中先预存一些信息作为拍照过程中待添加的信息,同理,所述信息可以包括文字或图案,所述文字包括天气情况、拍照地点或用户心情等,所述图案可为预设的图像,如心形等;所述添加模块50直接添加选择界面中预存的信息,使得信息的添加更加便捷,不需要用户进行输入,使得拍摄的效率更高。
本发明实施例进一步提供一种拍照方法。
参照图8,图8为本申请的拍照方法的实施例的流程示意图。
本实施例提出一种拍照方法,所述拍照方法包括:
步骤S10,根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面。
在本实施例中,所述步骤S10之前,包括在拍照应用的取景框内实时显示图像的步骤,所述在拍照应用的取景框内实时显示图像的方式包括:开启预设的拍照应用,并通过所述拍照应用的摄像头获取图像,然后在所述拍照应用的取景框内显示获取的所述图像。可以理解的是,在拍照过程中,终端的摄像头可以实时改变,即所述取景框内显示的图像也是可以实时改变的。
在本实施例中,所述步骤S10的实施方式包括:
1)方式一、在所述取景框内显示图像时,先对所述图像进行处理,以得到所述图像的RGB(Red、Green、Blue)颜色模型(也称为加色法混色模型),在得到所述RGB颜色模型后,先提取所述图像中每个像素点的色度值,所述色度值为三原色值混合得到的值,三原色值包括红色像素值、绿色像素值和蓝色像素值;可以理解的是,每个像素点可以只包括其中一种三原色值,也可以由其中任意两个三原色值相加得到,还可以由三个三原色值相加得到;在得到每个像素点的三原色值后,分别计算每个像素点的三原色值之和,即可得到每个像素点的色度值,例如,像素点的三原色值包括红色像素值、绿色像素值和蓝色像素值,那么所述像素点的色度值的计算公式为:F=r[R]+g[G]+b[B],同理,计算出所述图像中每个像素点的色度值;最终,
根据所述图像中每个像素点的色度值,将色度值相等的归为同一类,最终可得到所述图像中的每种色度值,根据每种色度值即可确定所述图像中的每种颜色,在得到所述图像中的每种颜色时,进一步计算所述图像中每种色度值占所有色度值的权重值,所述计算方式包括:
a、先分别确定所述图像中每种色度值对应的面积,以及所述图像的总面积,然后将每种色度值对应的面积除以所述图像的总面积,以得到每种色度值占所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值;
b、先确定所述图像中每个像素点对应的色度值,然后获取色度值相同的像素点,并分别将色度值相同的多个像素点的数量之和除以所述图像中所有像素点的总数,以得到每种色度值占所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值。
在得到每种色度值占所述图像中所有色度值对应的权重值时,生成颜色选择界面,所述颜色选择界面可以是多种色度值对应的颜色选择界面,也可以是先将多种色度值进行划分,划分为预设种类的色度值,最终显示所述预设种类的色度值对应的颜色选择界面。本实施例中,所述颜色选择界面可以是多种色度值对应的颜色选择界面,可以理解的是,权重值越大的颜色,在所述颜色选择界面中占据的区域越多,权重值越小的颜色,在所述颜色选择界面中占据的区域越少。
2)方式二、可以理解的是,所述图像中的RGB颜色模型中,任何一种颜色都可由R、G、B三原色按不同的比例相加混合而成,当三原色分量都为0(最弱)时混合为黑色光;当三原色分量都为255(最强)时混合为白色光。调整三原色系数r、g、b中的任一系数都会改变颜色的色值,而所述RGB颜色模型的颜色空间采用物理三原色表示,因而物理意义很清楚,适合彩色显像管工作。然而并不适应人的视觉特点,因此,在本实施例中,为了提高拍照过程中图像处理的准确性,参照图9,所述步骤S10包括:
步骤S11,将所述图像的RGB颜色模型转化为HSV颜色模型,得到转化后的图像;
步骤S12,根据转化后的图像中每个像素点的色度值生成颜色选择界面。
在本实施例中,在对所述图像进行处理,得到所述图像的RGB颜色模型之后,先将所述图像的RGB颜色模型转化为HSV(Hue、Saturation、Value)颜色模型。所述HSV颜色模型可参照图13,所述HSV颜色模型的颜色参数包括:色调H、饱和度S和亮度V。色调H用角度进行度量,取值范围为0°到360°,从红色开始按逆时针方向计算,红色为0°,绿色为120°,蓝色为240°,而它们的补色是:黄色为60°,青色为180°,品红为300°。饱和度S表示颜色接近光谱色的程度。一种颜色,可以看成是某种光谱色与白色混合的结果,其中光谱色所占的比例愈大,颜色接近光谱色的程度就愈高,颜色的饱和度也就愈高。饱和度高,颜色则深而艳。光谱色的白光成分为0,饱和度达到最高。通常取值范围为0%到100%,值越大,颜色越饱和。亮度V表示颜色明亮的程度,对于光源色,亮度值与发光体的光亮度有关;对于物体色,此值和物体的透射比或反射比有关。通常取值范围为0%(黑)到100%(白)。所述HSV颜色模型相当于圆柱坐标系中的一个圆锥形子集,圆锥的顶面对应于V=1,它包含RGB模型中的R=1,G=1,B=1三个面,所代表的颜色最亮,色彩H由绕V轴的旋转角得到,饱和度S取值从0到1,同样参照图13,从圆锥顶面的边缘越往圆心靠拢,饱和度的值越小,所以圆锥顶面的半径为1。在所述HSV颜色模型中,在圆锥的顶点处,V=0,H和S无定义,代表黑色。圆锥的顶面中心即原点处S=0,V=1,H无定义,代表白色。从顶点到原点代表亮度渐暗的灰色,即具有不同灰度的灰色。对于这些点,S=0,H的值无定义。可以说,HSV颜色模型中的V轴对应于RGB颜色空间中的主对角线。在圆锥顶面的边缘上的颜色,V=1,S=1,这种颜色是纯色。
在本实施例中,在对所述图像的RGB模型进行转化,转化得到所述HSV颜色模型后,获取转化后的图像中每个像素点的色度值,然后根据转化后的所述图像中每个像素点的色度值,以生成多种色度值对应的颜色选择界面。所述根据转化后的所述图像中每个像素点的色度值,以生成多种色度值对应的颜色选择界面的实施方式在下文中详述。
步骤S20,在接收到用户基于所述颜色选择界面输入的选择指令时,确
定所述选择指令对应的色度值。
在本实施例中,在得到所述图像中多种色度值对应的颜色选择界面后,显示所述颜色选择界面,在所述颜色选择界面中接收到用户基于输入的选择指令时,确定所述选择指令对应的色度值。可以理解的是,所述颜色选择界面的显示形式包括色度条或色环,所述色环可参照图14,所述色度条或者是所述色环中,包括多种颜色,每种颜色对应一个色度值。
步骤S30,调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
在本实施例中,在确定所述选择指令对应的色度值后,调整所述图像中与所述色度值不匹配的部分对应的显示参数,所述显示参数包括透明度或色度值。调整的方式例如:将所述图像中与所述色度值不匹配的部分对应的透明度调高或调低,以使调整的部分与所述图像中未调整的部分明显区分;或者是,调整所述图像中与所述色度值不匹配的部分对应的色度值,可将色度值调整为零,以使调整的部分与所述图像中未调整的部分明显区分。可以理解的是,在所述图像中,调整所述图像中与所述色度值不匹配的部分对应的显示参数,例如调整为黑白图像,而用户选择的色度值对应的部分图像正常显示,使得最终显示的是带有局部彩色的图像。
本实施例中,示例性地,在所述图像中每个像素点的色度值与用户选择的色度值的相似度达到预设比例,如80%时,认为像素点的色度值与用户选择的色度值匹配;或者是,在所述图像中每个像素点的色度值与用户选择的色度值的色度差值小于预设值时,认为像素点的色度值与用户选择的色度值匹配。
本实施例提出的拍照方法,根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面,在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值,最后调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像。如此,实现了在拍照过程中,根据图像中每个像素点的色度值生成颜色选择界面,并在用户选择所述颜色选择界面中的色度值时,调整所述图像中与所述色度
值不匹配的部分对应的显示参数,如调整不匹配部分的透明度或是色度值,以使调整的部分与未调整的部分明显区分,使得所述取景框最终显示的图像,仅仅是将用户选择的色度值的部分正常显示,实现了拍照时即可生成局部彩色图像,而不是只能拍摄整体彩色图像或整体黑白图像,本发明实施例提高了拍照的智能性。
进一步地,为了提高拍照的准确性,基于第一实施例提出本申请的拍照方法的第二实施例,在本实施例中,参照图10,所述步骤S12包括:
步骤S121,获取转化后的所述图像中每个像素点对应的颜色参数,其中,所述颜色参数包括色调、饱和度和亮度;
步骤S122,根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点对应的色度值。
在本实施例中,在得到转化后的图像后,即获取到图像对应的HSV颜色模型后,获取转化后的所述图像中每个像素点对应的颜色参数,所述颜色参数包括色调H、饱和度S和亮度V;根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点对应的色度值。为更好地理解本实施例,举例如下:在像素点的色调H为240°,饱和度S为0,亮度V为1时,参照图13,可知所述像素点位于所述圆锥体顶面的边缘处,得到所述像素点对应的颜色是蓝色;在像素点的色调H为120°,饱和度S为1,亮度V为1时,参照图13,可知所述像素点位于所述圆锥体顶面的圆心处,得到所述像素点对应的颜色是白色;在像素点的色调H为120°,饱和度S为0.5,亮度V为1时,参照图13,可知所述像素点位于所述圆锥体顶面的1/2半径处,得到所述像素点对应的颜色是浅绿色。最终,根据每个像素点对应的颜色参数,可生成每个像素点对应的色度值。
步骤S123,计算转化后的所述图像中每种色度值占所有色度值的权重值。
在本实施例中,在得到每个像素点对应的色度值后,计算转化后的所述图像中每种色度值占所有色度值的权重值,所述计算方式包括:
c、先分别确定转化后的所述图像中每种色度值对应的面积,以及转化后的所述图像的总面积,然后将每种色度值对应的面积除以转化后的所述图像
的总面积,以得到每种色度值占转化后的所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值;
d、先确定转化后的所述图像中每个像素点对应的色度值,然后获取色度值相同的多个像素点,并分别将色度值相同的多个像素点的数目之和除以转化后的所述图像中的所有像素点的总数,以得到每种色度值占转化后的所述图像中所有色度值的比例,最终将计算得到的比例作为每种色度值占所有色度值的权重值。
步骤S124,根据每种色度值对应的权重值生成所述颜色选择界面。
在本实施例中,在得到每种色度值占转化后的所述图像中所有色度值对应的权重值时,生成多种色度值对应的颜色选择界面,其中,权重值越大的颜色,在所述颜色选择界面中占据的区域越多,权重值越小的颜色,在所述颜色选择界面中占据的区域越少。
在RGB颜色模型中,由于RGB图像会损失一部分亮度,比较鲜艳的色彩容易失真,容易导致所述图像生成的颜色选择界面不够准确,因此,在本实施例中,通过计算HSV颜色模型中每个像素点的颜色参数,得到所述图像对应的多种色度值,使得最终生成的颜色种类更加细致,有深色些的颜色,也有浅色些的颜色,对于较鲜艳的颜色也不容易失真,更加真实地反映了图像中包含的多种颜色,提高了拍照过程中,生成颜色选择界面的准确性。
进一步地,为了提高拍照的灵活性,基于第一或第二实施例提出本申请的拍照方法的第三实施例,在本实施例中,参照图11,所述步骤S20包括:
步骤S21,在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面;
步骤S22,在接收到用户基于所述容差范围选择界面选择的容差范围时,确定所述容差范围对应的色度值,并将确定的所述色度值作为所述选择指令对应的色度值。
在本实施例中,在根据所述图像中每个像素点的色度值生成多种色度值对应的颜色选择界面后,显示所述颜色选择界面,然后在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差
范围选择界面。所述容差范围选择界面的显示方式可以包括:a、显示容差范围输入框,以供用户基于所述容差范围输入框输入色值的容差范围;b、显示曲线界面,如抛物线界面,所述曲线界面中的曲线表示的是每个像素点构成的色度值,在接收到用户调整所述曲线界面中的曲线时,确定用户调整的范围,将用户调整的范围作为容差范围,并确定所述容差范围对应的色度值。为更好地理解本实施例,举例如下:以HSV颜色模型为例,在用户基于所述颜色选择界面输入的选择指令对应的色度值为240°,显示所述色度值240°的容差范围输入框,此时,用户在所述容差范围输入框中输入20°,则所述容差范围对应的色度值即为220°到260°,即选择的色度值不仅仅包括蓝色,还可能包括浅蓝色、天蓝色和深蓝色;若用户在所述容差范围输入框中输入40°,则所述容差范围对应的色度值即为200°到280°,即选择的色度值不仅仅包括蓝色,还可能包括群青色、靛青色、浅蓝色、天蓝色、和深蓝色等等几种颜色,即容差越大,相当于是以240°蓝色为中心线两边扩散的范围越大,若选择容差范围小,以240°蓝色为中心线两边扩散的范围越小,只会保留跟选择颜色相近的颜色。
在本实施例中,在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面,然后在接收到用户选择的容差范围时,确定所述容差范围对应的色度值,实现了获取颜色选择界面中的色度值时,不仅仅可以获取用户基于所述颜色选择界面选择的颜色,还可以获取选择的色度值相邻的色度值,使得色度值的获取更加灵活。
进一步地,为了提高拍照的灵活性,基于第一或第二实施例提出本申请的拍照方法的第四实施例,在本实施例中,参照图12,所述拍照方法还包括:
步骤S40,在接收用户输入的信息添加指令时,获取所述信息添加指令对应的信息;
步骤S50,将获取的所述信息添加到调整后的所述图像中,以显示添加所述信息的图像。
在本实施例中,所述信息添加指令的触发方式包括:a、长按处理后的所述图像,以触发信息添加指令;b、按照预设的实体按键或虚拟按键,以触发信息添加指令;c、通过按压预设的语音控件,并输入语音信息,以触发信息
添加指令。在接收到用户输入的信息添加指令时,显示预设的信息输入界面,并获取用户基于所述信息输入界面输入的信息,所述信息可以包括文字或图案,所述文字包括天气情况、拍照地点或用户心情等,所述图案可为预设的图像,如心形等;本实施例在调整后的图像中添加所述文字或图案信息,使得拍出来的图像更加丰富和趣味。
进一步地,为了提高拍照的效率和便捷性,在接收到用户输入的信息添加指令时,显示预设的信息选择界面,并获取用户基于所述信息选择界面选择的信息,即终端中先预存一些信息作为拍照过程中待添加的信息,同理,所述信息可以包括文字或图案,所述文字包括天气情况、拍照地点或用户心情等,所述图案可为预设的图像,如心形等;本实施例中直接添加选择界面中预存的信息,使得信息的添加更加便捷,不需要用户进行输入,使得拍摄的效率更高。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令处理器执行时实现上述的拍照方法。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理单元的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)
和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
以上仅为本申请的示例性实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。
本申请实施例提供一种拍照装置及方法,实现了拍照时即可生成局部彩色图像,而不是只能拍摄整体彩色图像或整体黑白图像,从而提高了拍照的智能性。
Claims (20)
- 一种拍照装置,包括:生成模块(10),设置为根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面;确定模块(20),设置为在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值;处理模块(30),设置为调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
- 如权利要求1所述的拍照装置,其中,所述生成模块(10)包括:转化子模块(11),设置为将所述图像的RGB颜色模型转化为HSV颜色模型,得到转化后的图像;生成子模块(12),设置为根据转化后的图像中每个像素点的色度值生成颜色选择界面。
- 如权利要求2所述的拍照装置,其中,所述生成子模块(12)包括:获取单元(121),设置为获取转化后的所述图像中每个像素点对应的颜色参数,其中,所述颜色参数包括色调、饱和度和亮度;生成单元(122),设置为根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点对应的色度值;计算单元(123),设置为计算转化后的所述图像中每种色度值占所有色度值的权重值;所述生成单元(122),还设置为根据每种色度值对应的权重值生成所述颜色选择界面。
- 如权利要求3所述的拍照装置,其中,所述计算单元(123),设置为通过以下方式计算转化后的所述图像中每种色度值占所有色度值的权重值:确定转化后的所述图像中每种色度值对应的面积以及转化后的所述图像 的总面积,根据每种色度值对应的面积占转化后的所述图像的总面积的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值;或者,确定转化后的所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占转化后的所述图像中所有像素点的总数的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值。
- 如权利要求1所述的拍照装置,其中,所述生成模块(10),设置为通过以下方式根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面:计算RGB颜色模型的所述图像中每个像素点的色度值;计算所述图像中每种色度值占所有色度值的权重值;根据每种色度值对应的权重值生成颜色选择界面。
- 如权利要求5所述的拍照装置,其中,所述生成模块(10),设置为通过以下方式计算所述图像中每种色度值占所有色度值的权重值:计算所述图像中每种色度值对应的面积以及所述图像的总面积,根据每种色度值对应的面积占所述图像的总面积的比例,确定每种色度值占所有色度值的权重值;或者,计算所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占所述图像中所有像素点的总数的比例,确定每种色度值占所有色度值的权重值。
- 如权利要求1至6任一项所述的拍照装置,其中,所述确定模块(20)包括:输出单元(21),设置为在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面;确定单元(22),设置为在接收到用户基于所述容差范围选择界面选择的容差范围时,确定所述容差范围对应的色度值,并将确定的所述色度值作为所述选择指令对应的色度值。
- 如权利要求1至6任一项所述的拍照装置,所述拍照装置还包括:获取模块(40),设置为在接收用户输入的信息添加指令时,获取所述信息添加指令对应的信息;添加模块(50),设置为将获取的所述信息添加到调整后的所述图像中,以显示添加所述信息的图像。
- 如权利要求1所述的拍照装置,其中,所述处理模块(30),设置为通过以下方式调整所述图像中与所述色度值不匹配的部分对应的显示参数:将所述图像中与所述色度值不匹配的部分对应的透明度调高或调低;或者,将所述图像中与所述色度值不匹配的部分对应的色度值调整为零。
- 如权利要求1所述的拍照装置,所述拍照装置还包括:显示模块,用于在拍照应用的取景框内实时显示图像。
- 一种拍照方法,包括以下步骤:根据取景框内显示的图像中的每个像素点的色度值生成颜色选择界面;在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值;调整所述图像中与所述色度值不匹配的部分对应的显示参数,并在所述取景框内显示调整后的图像,其中,所述显示参数包括透明度或色度值。
- 如权利要求11所述的拍照方法,其中,所述根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面的步骤包括:将所述图像的RGB颜色模型转化为HSV颜色模型,得到转化后的图像;根据转化后的图像中每个像素点的色度值生成颜色选择界面。
- 如权利要求12所述的拍照方法,其中,所述根据转化后的图像中每个像素点的色度值生成颜色选择界面的步骤包括:获取转化后的所述图像中每个像素点对应的颜色参数,其中,所述颜色参数包括色调、饱和度和亮度;根据转化后的所述图像中每个像素点对应的颜色参数,生成每个像素点 对应的色度值;计算转化后的所述图像中每种色度值占所有色度值的权重值;根据每种色度值对应的权重值生成所述颜色选择界面。
- 如权利要求13所述的拍照方法,其中,所述计算转化后的所述图像中每种色度值占所有色度值的权重值,包括:确定转化后的所述图像中每种色度值对应的面积以及转化后的所述图像的总面积,根据每种色度值对应的面积占转化后的所述图像的总面积的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值;或者,确定转化后的所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占转化后的所述图像中所有像素点的总数的比例,确定转化后的所述图像中每种色度值占所有色度值的权重值。
- 如权利要求11所述的拍照方法,其中,所述根据取景框内显示的图像中每个像素点的色度值生成颜色选择界面,包括:计算RGB颜色模型的所述图像中每个像素点的色度值;计算所述图像中每种色度值占所有色度值的权重值;根据每种色度值对应的权重值生成颜色选择界面。
- 如权利要求15所述的拍照方法,其中,所述计算所述图像中每种色度值占所有色度值的权重值,包括:计算所述图像中每种色度值对应的面积以及所述图像的总面积,根据每种色度值对应的面积占所述图像的总面积的比例,确定每种色度值占所有色度值的权重值;或者,计算所述图像中每个像素点对应的色度值,根据色度值相同的像素点的数目占所述图像中所有像素点的总数的比例,确定每种色度值占所有色度值的权重值。
- 如权利要求11至16任一项所述的拍照方法,其中,所述在接收到用户基于所述颜色选择界面输入的选择指令时,确定所述选择指令对应的色度值的步骤包括:在接收到用户基于所述颜色选择界面输入的选择指令时,输出所述选择指令对应的色度值的容差范围选择界面;在接收到用户基于所述容差范围选择界面选择的容差范围时,确定所述容差范围对应的色度值,并将确定的所述色度值作为所述选择指令对应的色度值。
- 如权利要求11至16任一项所述的拍照方法,所述在所述取景框内显示调整后的图像的步骤之后,所述拍照方法还包括:在接收用户输入的信息添加指令时,获取所述信息添加指令对应的信息;将获取的所述信息添加到调整后的所述图像中,以显示添加所述信息的图像。
- 如权利要求11所述的拍照方法,其中,所述调整所述图像中与所述色度值不匹配的部分对应的显示参数,包括:将所述图像中与所述色度值不匹配的部分对应的透明度调高或调低;或者,将所述图像中与所述色度值不匹配的部分对应的色度值调整为零。
- 如权利要求11所述的拍照方法,所述拍照方法还包括:在拍照应用的取景框内实时显示图像。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610042049.2A CN105516606A (zh) | 2016-01-21 | 2016-01-21 | 拍照装置及方法 |
| CN201610042049.2 | 2016-01-21 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017124909A1 true WO2017124909A1 (zh) | 2017-07-27 |
Family
ID=55724206
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/113756 Ceased WO2017124909A1 (zh) | 2016-01-21 | 2016-12-30 | 拍照装置及方法 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105516606A (zh) |
| WO (1) | WO2017124909A1 (zh) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111582290A (zh) * | 2020-05-13 | 2020-08-25 | 郑州轻工业大学 | 一种计算机图像识别方法 |
| CN111626310A (zh) * | 2020-05-27 | 2020-09-04 | 百度在线网络技术(北京)有限公司 | 图像比对方法、装置、设备以及存储介质 |
| CN112053277A (zh) * | 2019-06-05 | 2020-12-08 | 杭州萤石软件有限公司 | 一种图像换肤的方法、装置、设备及存储介质 |
| WO2022257386A1 (zh) * | 2021-06-11 | 2022-12-15 | 北京卓越乐享网络科技有限公司 | 对目标对象的调整项进行显示的方法、装置、电子设备 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105516606A (zh) * | 2016-01-21 | 2016-04-20 | 努比亚技术有限公司 | 拍照装置及方法 |
| CN106027787B (zh) * | 2016-06-15 | 2019-10-18 | 维沃移动通信有限公司 | 一种移动终端的白平衡方法及移动终端 |
| CN106101666B (zh) * | 2016-06-30 | 2018-09-04 | 维沃移动通信有限公司 | 一种图像色彩保留的方法及移动终端 |
| CN111844530B (zh) * | 2020-07-10 | 2022-04-15 | 苏州普福斯信息科技有限公司 | 可再生资源回收选料方法 |
| CN115643811B (zh) * | 2020-12-31 | 2025-05-27 | 华为技术有限公司 | 一种图像处理方法、数据的获取方法及设备 |
| CN119953986B (zh) * | 2025-04-10 | 2025-07-18 | 上海小梯匠网络科技股份有限公司 | 一种电梯无接触式人机交互系统及人机交互方法 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1735129A (zh) * | 2004-07-21 | 2006-02-15 | 索尼株式会社 | 用户界面提供装置 |
| CN101420528A (zh) * | 2007-10-23 | 2009-04-29 | 三星Techwin株式会社 | 能够显示色彩分布图表的数字图像处理设备及其操作方法 |
| US20090231355A1 (en) * | 2008-03-11 | 2009-09-17 | Xerox Corporation | Color transfer between images through color palette adaptation |
| CN103618886A (zh) * | 2013-12-13 | 2014-03-05 | 厦门美图网科技有限公司 | 一种根据主色调智能脱色的摄像方法 |
| CN105516606A (zh) * | 2016-01-21 | 2016-04-20 | 努比亚技术有限公司 | 拍照装置及方法 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4684595B2 (ja) * | 2004-08-05 | 2011-05-18 | ソニー株式会社 | 画像表示装置 |
| JP6279825B2 (ja) * | 2011-05-18 | 2018-02-14 | ソニー株式会社 | 画像処理装置、画像処理方法、プログラムおよび撮像装置 |
| KR20140121711A (ko) * | 2013-04-08 | 2014-10-16 | 삼성전자주식회사 | 색 추출 기반의 영상 처리 방법, 상기 방법을 기록한 컴퓨터 판독 가능 저장매체 및 디지털 영상 장치 |
| CN103533248A (zh) * | 2013-10-24 | 2014-01-22 | 腾讯科技(上海)有限公司 | 一种图像处理的方法、终端及系统 |
| CN104660905B (zh) * | 2015-03-04 | 2018-03-16 | 广东欧珀移动通信有限公司 | 拍照处理方法及装置 |
-
2016
- 2016-01-21 CN CN201610042049.2A patent/CN105516606A/zh active Pending
- 2016-12-30 WO PCT/CN2016/113756 patent/WO2017124909A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1735129A (zh) * | 2004-07-21 | 2006-02-15 | 索尼株式会社 | 用户界面提供装置 |
| CN101420528A (zh) * | 2007-10-23 | 2009-04-29 | 三星Techwin株式会社 | 能够显示色彩分布图表的数字图像处理设备及其操作方法 |
| US20090231355A1 (en) * | 2008-03-11 | 2009-09-17 | Xerox Corporation | Color transfer between images through color palette adaptation |
| CN103618886A (zh) * | 2013-12-13 | 2014-03-05 | 厦门美图网科技有限公司 | 一种根据主色调智能脱色的摄像方法 |
| CN105516606A (zh) * | 2016-01-21 | 2016-04-20 | 努比亚技术有限公司 | 拍照装置及方法 |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112053277A (zh) * | 2019-06-05 | 2020-12-08 | 杭州萤石软件有限公司 | 一种图像换肤的方法、装置、设备及存储介质 |
| CN112053277B (zh) * | 2019-06-05 | 2023-10-20 | 杭州萤石软件有限公司 | 一种图像换肤的方法、装置、设备及存储介质 |
| CN111582290A (zh) * | 2020-05-13 | 2020-08-25 | 郑州轻工业大学 | 一种计算机图像识别方法 |
| CN111582290B (zh) * | 2020-05-13 | 2023-04-07 | 郑州轻工业大学 | 一种计算机图像识别方法 |
| CN111626310A (zh) * | 2020-05-27 | 2020-09-04 | 百度在线网络技术(北京)有限公司 | 图像比对方法、装置、设备以及存储介质 |
| CN111626310B (zh) * | 2020-05-27 | 2023-08-29 | 百度在线网络技术(北京)有限公司 | 图像比对方法、装置、设备以及存储介质 |
| WO2022257386A1 (zh) * | 2021-06-11 | 2022-12-15 | 北京卓越乐享网络科技有限公司 | 对目标对象的调整项进行显示的方法、装置、电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105516606A (zh) | 2016-04-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104284166B (zh) | 图像处理装置、摄像装置以及图像处理方法 | |
| US12254531B2 (en) | Image color adjustment method for electronic device and apparatus | |
| KR102158844B1 (ko) | 영상 처리 장치, 영상 처리 방법, 및 컴퓨터 판독가능 기록매체 | |
| JP6063092B2 (ja) | 画像処理装置、撮像装置、画像処理方法及びプログラム | |
| CN105513021B (zh) | 图像去噪装置和方法 | |
| CN105516606A (zh) | 拍照装置及方法 | |
| JP2016019080A (ja) | 画像処理装置、その制御方法、および制御プログラム | |
| US20180352201A1 (en) | Image processing method, device, terminal and storage medium | |
| KR20190088000A (ko) | 인터페이스 이미지 표시 방법, 장치, 프로그램 및 기록매체 | |
| WO2015151748A1 (ja) | 画像処理装置、撮像装置、画像処理方法及びプログラム | |
| WO2017071558A1 (zh) | 移动终端拍摄装置和方法 | |
| EP3273439A1 (en) | Method and device for enhancing color saturation | |
| US11501412B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and image processing program | |
| CN111918047A (zh) | 拍照控制方法及装置、存储介质和电子设备 | |
| CN104871526A (zh) | 图像处理装置、摄像装置、图像处理方法、图像处理程序 | |
| US10380949B2 (en) | Display apparatus and control method of the same | |
| CN115631250A (zh) | 图像处理方法与电子设备 | |
| US12136198B2 (en) | Method and apparatus for processing image | |
| JP4622510B2 (ja) | 撮像装置、画像処理方法及びプログラム | |
| CN101420528A (zh) | 能够显示色彩分布图表的数字图像处理设备及其操作方法 | |
| CN117408927B (zh) | 图像处理方法、设备及存储介质 | |
| JP2007043364A (ja) | 撮像装置 | |
| CN112188179B (zh) | 图像缩略图显示方法、图像缩略图显示装置及存储介质 | |
| JP2008160406A (ja) | 撮影装置 | |
| CN121000979A (zh) | 图像处理方法、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16886168 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16886168 Country of ref document: EP Kind code of ref document: A1 |