CN107071259A - It is a kind of to realize method, device and capture apparatus that light paints photography - Google Patents
It is a kind of to realize method, device and capture apparatus that light paints photography Download PDFInfo
- Publication number
- CN107071259A CN107071259A CN201611064274.2A CN201611064274A CN107071259A CN 107071259 A CN107071259 A CN 107071259A CN 201611064274 A CN201611064274 A CN 201611064274A CN 107071259 A CN107071259 A CN 107071259A
- Authority
- CN
- China
- Prior art keywords
- pixel
- value
- light source
- point
- source point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 239000003973 paint Substances 0.000 title claims abstract description 29
- 238000012545 processing Methods 0.000 claims description 16
- 230000009467 reduction Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 9
- 238000004891 communication Methods 0.000 description 15
- 230000015654 memory Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 10
- 238000010295 mobile communication Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000033001 locomotion Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 241000196324 Embryophyta Species 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 241001062009 Indigofera Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000002463 transducing effect Effects 0.000 description 1
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/80—Camera processing pipelines; Components thereof
-
- 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/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Method, device and capture apparatus that light paints photography are realized the invention discloses a kind of, including:Obtain the pixel value of each pixel of the every two field picture photographed;For each pixel, the pixel value difference between adjacent two field picture is calculated respectively;According to the pixel value difference of acquisition and the light source point threshold value pre-set, each pixel is defined as light source point or background pixel point, and reduce the pixel value of background pixel point.The present invention is by the difference to light source point and background pixel point and reduces the pixel value of background pixel point, increase the track of light and the contrast effect of background, so that the background luminance of image is dimmed, the effect that light strong Scene realization night light is painted is crossed on daytime, the application scenarios that light paints photography are extended, user is improved and shoots experience.
Description
Technical field
The present invention relates to field camera work, more particularly to a kind of realize method, device and capture apparatus that light paints photography.
Background technology
It is a kind of simple and full of intention, surprising Techniques for Photography that light, which paints photography,.Light, which paints photography, needs at least two
People cooperates and could completed, therefore also more changeable, more interesting.Mainly use the motion of light source and set off environment or master by contrast
The photography art mode of body.Light source was moved within a period of time, and the photo-sensitive cell of camera, was uniform record per unit
The light at moment, so as to record out the lamp motion track of whole picture.Light paint photography can indoors, night, more even
Carried out the dim lights that can not be taken pictures at all in the environment of.
In order to protrude the track expressive ability of light, at present, light, which paints photography, needs the scene in dark to carry out, in light
More bright scene is that the track that can not take light contrasts clearly demarcated effect.That is, at present, light paints the application of photography
Scene is confined to night or rather dark scene, if the shooting that so scene of the user on daytime or bright light has been found
Scene, is that the light that can not be recorded at that time paints effect, undoubtedly reduces user and shoots experience.
The content of the invention
It is a primary object of the present invention to propose a kind of to realize method, device and capture apparatus that light paints photography, Neng Goukuo
The application scenarios of Zhan Guanghui photographies, lifting user shoots experience.
To achieve the above object, the method that light paints photography is realized the embodiments of the invention provide a kind of, including:
Obtain the pixel value of each pixel of the every two field picture photographed;
For each pixel, the pixel value difference between adjacent two field picture is calculated respectively;
According to the pixel value difference of acquisition and the light source point threshold value pre-set, each pixel is defined as light source point or background
Pixel, and reduce the pixel value of background pixel point.
Alternatively, also include before methods described:
The capture apparatus with shadow camera function is set up using fixing equipment;
Mobile light source point, presses shooting button or triggers virtual shooting button, be continuously shot the multiframe of recording light source track
Described image.
Alternatively, it is described each pixel is defined as light source point or background pixel point to include:
The pixel value difference is more than the pixel of the light source point threshold value, is defined as light source point;The pixel value difference is less than
Or equal to the pixel of light source point threshold value, it is defined as background pixel point.
Alternatively, the pixel value of the reduction background pixel point includes:The brightness value of the background pixel point is set to
0。
Alternatively, for the pixel for being defined as light source point, when it is described calculate be more than the light source point threshold value
Pixel value difference include two or more when, in addition to:
Brightness value maximum in the pixel value difference is chosen as the brightness value of the pixel, or, by multiple pictures
The average value of the brightness value of plain difference as the pixel brightness value.
The device that light paints photography is realized present invention also offers a kind of, including:Acquisition module, processing module, determining module,
Wherein,
Acquisition module, the pixel value of each pixel for obtaining the every two field picture photographed;
Processing module, for for each pixel, the pixel value difference between adjacent two field picture to be calculated respectively;
Determining module, for the pixel value difference according to acquisition and the light source point threshold value pre-set, each pixel is determined
For light source point or background pixel point, and reduce the pixel value of background pixel point.
Alternatively, the determining module specifically for:
The pixel value difference is more than to the pixel of the light source point threshold value, is defined as light source point;By the pixel value difference
Less than or equal to the pixel of the light source point threshold value, it is defined as background pixel point, and reduce the pixel value of background pixel point.
Alternatively, the pixel value of the reduction background pixel point includes:The brightness value of the background pixel point is set to
0。
Alternatively, when the pixel value difference more than the light source point threshold value calculated includes two or more
When, the processing module is additionally operable to:
Brightness value maximum in the pixel value difference is chosen as the brightness value of the pixel, or, by multiple pictures
The average value of the brightness value of plain difference as the pixel brightness value.
Present invention also offers a kind of capture apparatus, including light paints the device of photography to realizing described in any of the above-described.
Technical scheme proposed by the present invention includes:Obtain the pixel value of each pixel of the every two field picture photographed;It is right
In each pixel, the pixel value difference between adjacent two field picture is calculated respectively;According to the pixel value difference of acquisition and pre-set
Light source point threshold value, each pixel is defined as light source point or background pixel point, and reduce the pixel value of background pixel point.This hair
The pixel value of bright difference and reduction background pixel point by light source point and background pixel point, increases track and the background of light
Contrast effect so that the background luminance of image is dimmed, and the effect that light strong Scene realization night light is painted is crossed on daytime, expand
The application scenarios that light paints photography have been opened up, user has been improved and shoots experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 realizes that light paints the flow chart of the method for photography for the present invention;
Fig. 3 illustrates not occur the curve of cyclical fluctuations of the brightness value of certain pixel of light source point between different frame in the present invention
Figure;
Fig. 4 illustrates to occur the curve of cyclical fluctuations of the brightness value of certain pixel of light source point between different frame in the present invention
Figure;
Fig. 5 shows to occur the curve of cyclical fluctuations of the brightness value of certain pixel of two light source points between different frame in the present invention
It is intended to;
Fig. 6 realizes that light paints the schematic flow sheet of the embodiment of the method for photography for the present invention;
Fig. 7 realizes that light paints the composition structural representation of the device of photography for the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of realization each optional mobile terminal of embodiment one of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites
Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three
Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Microphone 1220, the static map that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus
The view data of piece or video is handled.Picture frame after processing may be displayed on display unit 151.At camera 121
Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110
Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by
Such acoustic processing is voice data.Audio (voice) data after processing can be changed in the case of telephone calling model
For the form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds
Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) produce during receiving and sending audio signal or
Person disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch
Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape
State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal
The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 1410, to be combined below
This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00
Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from
The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity
Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit
151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list
Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control
Device 180 processed is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation
Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai
Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operated.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Fig. 2 realizes that light paints the flow chart of the method for photography for the present invention, for the capture apparatus with shadow camera function,
Such as camera, mobile terminal, when pressing shooting button or triggering virtual shooting button, as shown in Fig. 2 including:
Step 200:Obtain the pixel value of each pixel of the every two field picture photographed.
Pixel value in this step can be brightness value P.Brightness value P in the application is equal to gray value.If light is painted
What photography was carried out is color camera, then needs that color-values first are converted into gray value, recycle the method for the present invention to realize that light is painted
Photography.Here, how color-values are converted into the conventional techniques that gray value belongs to those skilled in the art, implemented simultaneously
It is not intended to limit the scope of the invention, repeats no more here.
Also include before this step:
The capture apparatus with shadow camera function is set up using fixing equipment such as tripod etc., is made with shadow photography work(
The capture apparatus of energy is remained stationary;
Mobile light source point, presses shooting button or triggers virtual shooting button, be continuously shot the multiframe of recording light source track
Image.
Step 201:For each pixel, the pixel value difference between adjacent two field picture is calculated respectively.
Fig. 3 illustrates not occur the curve of cyclical fluctuations of the brightness value of certain pixel of light source point between different frame in the present invention
Figure, Fig. 4 for the present invention in there is curve of cyclical fluctuations schematic diagram of the brightness value of certain pixel of light source point between different frame.In reality
In the application of border, present inventor has found, is background dot for the non-light source point in image, and the brightness of its brightness ratio light source point will
It is low, if as shown in figure 3, there is not light source point in whole light paints shooting in some pixel, then, at the pixel position
Pixel value of the brightness value in each two field picture to be that brightness value is general become up and down in an a small range on the basis of brightness value P0
Change, when the reason for brightness small range of image pixel changes is due to the capture apparatus imaging with shadow camera function, image
Handle the amount of pixels brought to change caused by cause not of uniform size, this excursion is smaller, will not be mistaken as be due to
The fluctuation that light source point is brought;
And when light paints shooting, if occurring light source point in image, then, the brightness value P of the light source point corresponding pixel points
It is typically higher, as shown in Figure 4, it is shown that the pixel value such as brightness value P of some pixel per two field picture are between different frame
Fluctuating change curve, during being continuously shot, there is light source point in a certain moment t1, the pixel position, in the pixel
The pixel curve of cyclical fluctuations of point can see an obvious pulse ripple, i.e. pixel brightness value and jump to brightness value by brightness value P0
P1;
In this step, exactly by calculating the situation of change of each pixel in consecutive frame respectively, as judging each pixel
Whether be light source point foundation.
For some pixel, its pixel value difference between adjacent two field picture is:The pixel value of latter two field picture is for example bright
Angle value P (t+1) subtracts the pixel value difference d (t) that the pixel value such as brightness value P (t) of previous frame image is obtained.
Step 202:According to the pixel value difference of acquisition and the light source point threshold value pre-set, each pixel is defined as light source
Point or background pixel point, and reduce the pixel value of background pixel point.
It is more than light source point threshold value Threshold pixel for pixel value difference d (t), is defined as light source point, and for picture
Plain difference is less than or equal to the pixel of light source point threshold value, is defined as background pixel point.
Light source point threshold value Threshold to be arranged at light source relevant with background difference situation.Typically, the light source pixel of image
After occurring in the scene, the brightness of light source pixel and the brightness of background pixel can be variant, kept not in filming apparatus such as camera
Dynamic, variation of the background pixel between each frame is smaller, and typically near 0 value, light source point threshold value Threshold is at least needed
It is greater than 0, by counting each middle different light source, present inventor has found that light source is stronger, and background is darker, light source and background
Difference d it is bigger, light source point threshold value Threshold can set larger, otherwise light source point threshold value Threshold will set small
Some.
Difference value d of the image slices vegetarian refreshments between each frame, can be by counting the light of varying strength between [0,255]
Source and the difference value d of background, obtain the difference value d of statistics minimum value dmin, then, light source point threshold value Threshold's takes
Value may range from (0, dmin).
In order to which the track for obtaining light contrasts clearly demarcated effect, the brightness value for the background pixel point determined can be set
It is very low, such as can be by the brightness of background pixel point as long as the optical track mark that can form light source point is embodied clearly
Value is set to 0.So, the background luminance of image is dimmed, and the effect that light strong Scene realization night light is painted is crossed on daytime.
Alternatively, for some pixel, if in step 201 calculate pixel value difference, occur two or two with
On pixel value difference d (t) when being more than light source point threshold value Threshold pixel, Fig. 5 is is more than in the presence of two pixel difference values
The schematic diagram of light source point threshold value Threshold situation, as shown in figure 5, in moment t1, there is light source point in the pixel position,
Obvious pulse ripple, i.e. a pixel brightness value are can see in the pixel curve of cyclical fluctuations of the pixel to be jumped to by brightness value P0
Brightness value P1;In moment t2, there is light source point in the pixel position, and one is can see in the pixel curve of cyclical fluctuations of the pixel
Obvious pulse ripple, i.e. pixel brightness value jump to brightness value P2 by brightness value P0.At this point it is possible to choose maximum of which brightness
Be worth as the pixel brightness value, can also using the average value of this multiple brightness value as brightness value of the pixel, etc.,
As long as ensureing that the track for obtaining light contrasts clearly demarcated effect.There is two or more pixel value difference d (t) more than light source point threshold value
The situation of Threshold pixel is similar, repeats no more here.
Fig. 6 realizes that light is painted in the schematic flow sheet of the embodiment of the method for photography, the present embodiment for the present invention, it is assumed that have
The camera that light paints photography is erected on fixing equipment such as tripod, mobile light source point, and presses shooting button or the virtual bat of triggering
Button is taken the photograph, the multiple image of recording light source track is continuously shot, including:
Step 600:Obtain the pixel value of each pixel of the every two field picture photographed.
Pixel value in this step is brightness value P, and brightness value P is equal to gray value.
If it should be noted that light paint photography carry out be color camera, need that color-values first are converted into gray scale
Value, recycles the method for the present invention to realize that light paints photography.Here, how color-values are converted into gray value and belong to art technology
The conventional techniques of personnel, implement the protection domain being not intended to limit the present invention, repeat no more here.
Step 601:For each pixel, the pixel value difference between adjacent two field picture is calculated respectively.
For example, it is assumed that including m pixel per two field picture:Pixel 1, pixel 2, pixel 3 ... pixel n, pixel
Point n+1 ... pixels m.For pixel n, it is assumed that at the t2 moment, brightness value P is brightness value P1, at t2+1 moment, brightness value P
For P0, brightness value P1>Brightness value P0, then, pixel value difference d (t)=P1-P0 of the pixel.If it should be noted that
T2 moment, brightness value P is brightness value P0, at the t2+1 moment, and brightness value P is P1, brightness value P1>Brightness value P0, then, the pixel
The difference that pixel value difference d (t)=P1-P0 of point is obtained takes absolute value again.
Step 602:For each pixel, compare the pixel value difference of acquisition and the light source point threshold value pre-set, if
The pixel value difference of acquisition is more than light source point threshold value, then into step 6031;If the pixel value difference obtained is less than or equal to light source
Point threshold value, then into step 6032.
Light source point threshold value Threshold to be arranged at light source relevant with background difference situation.Typically, the light source pixel of image
After occurring in the scene, the brightness of light source pixel and the brightness of background pixel can be variant, kept not in filming apparatus such as camera
Dynamic, variation of the background pixel between each frame is smaller, and typically near 0 value, light source point threshold value Threshold is at least needed
It is greater than 0, by counting each middle different light source, present inventor has found that light source is stronger, and background is darker, light source and background
Difference d it is bigger, light source point threshold value Threshold can set larger, otherwise light source point threshold value Threshold will set small
Some.
Difference value d of the image slices vegetarian refreshments between each frame, can be by counting the light of varying strength between [0,255]
Source and the difference value d of background, obtain the difference value d of statistics minimum value dmin, then, light source point threshold value Threshold's takes
Value may range from (0, dmin).
Step 6031:It is light source point to determine the pixel, and return to step 602, until whole pixels compare completion, is entered
Enter step 604.
Step 6032:It is background pixel point, return to step 602, until whole pixels are completeer to determine the pixel
Into into step 604.
Step 604:The brightness value for the light source point determined is set to the brightness value of maximum, by the background pixel determined
The brightness value of point is set to 0.
Fig. 7 realizes that light paints the composition structural representation of the device of photography for the present invention, as shown in fig. 7, at least including:Obtain
Module, processing module, determining module, wherein,
Acquisition module, the pixel value of each pixel for obtaining the every two field picture photographed.
Processing module, for for each pixel, the pixel value difference between adjacent two field picture to be calculated respectively.
Determining module, for the pixel value difference according to acquisition and the light source point threshold value pre-set, each pixel is determined
For light source point or background pixel point, and reduce the pixel value of background pixel point.
Alternatively,
Processing module specifically for:
For some pixel, its pixel value difference between adjacent two field picture is:The pixel value of latter two field picture is for example bright
Angle value P (t+1) subtracts the pixel value difference d (t) that the pixel value such as brightness value P (t) of previous frame image is obtained.
Determining module specifically for:
It is more than light source point threshold value Threshold pixel for pixel value difference d (t), is defined as light source point, for pixel
Difference is less than or equal to the pixel of light source point threshold value, is defined as background pixel point, and reduce the pixel value of background pixel point.
Wherein, light source point threshold value Threshold to be arranged at light source relevant with background difference situation.Typically, the light of image
After source pixel occurs in the scene, the brightness of light source pixel and the brightness of background pixel can be variant, in filming apparatus such as camera
Remain stationary as, variation of the background pixel between each frame is smaller, typically near 0 value, light source point threshold value Threshold
At least need to be more than 0, by counting each middle different light source, present inventor has found that light source is stronger, and background is darker, light source
Difference d with background is bigger, and light source point threshold value Threshold can set larger, otherwise light source point threshold value Threshold will
Set smaller.
Difference value d of the image slices vegetarian refreshments between each frame, can be by counting the light of varying strength between [0,255]
Source and the difference value d of background, obtain the difference value d of statistics minimum value dmin, then, light source point threshold value Threshold's takes
Value may range from (0, dmin).
Alternatively,
When there is pixel of two or more pixel value difference d (t) more than light source point threshold value Threshold,
Maximum of which brightness value is chosen as the brightness value of the pixel, or, it regard the average value of multiple brightness values as the pixel
The brightness value of point.
The present invention also provides a kind of capture apparatus, and including realizing described in any of the above-described, light paints the device of photography.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of realize the method that light paints photography, it is characterised in that including:
Obtain the pixel value of each pixel of the every two field picture photographed;
For each pixel, the pixel value difference between adjacent two field picture is calculated respectively;
According to the pixel value difference of acquisition and the light source point threshold value pre-set, each pixel is defined as light source point or background pixel
Point, and reduce the pixel value of background pixel point.
2. according to the method described in claim 1, it is characterised in that also include before methods described:
The capture apparatus with shadow camera function is set up using fixing equipment;
Mobile light source point, presses shooting button or triggers virtual shooting button, described in the multiframe for being continuously shot recording light source track
Image.
3. method according to claim 1 or 2, it is characterised in that described that each pixel is defined as light source point or background
Pixel includes:
The pixel value difference is more than the pixel of the light source point threshold value, is defined as light source point;The pixel value difference is less than or waited
In the pixel of light source point threshold value, it is defined as background pixel point.
4. method according to claim 1 or claim 2, it is characterised in that the pixel value of the reduction background pixel point includes:By institute
The brightness value for stating background pixel point is set to 0.
5. method according to claim 3, it is characterised in that for the pixel for being defined as light source point, when described
When the pixel value difference more than the light source point threshold value calculated includes two or more, in addition to:
Brightness value maximum in the pixel value difference is chosen as the brightness value of the pixel, or, by multiple pixel differences
The average value of the brightness value of value as the pixel brightness value.
6. a kind of realize the device that light paints photography, it is characterised in that including:Acquisition module, processing module, determining module, wherein,
Acquisition module, the pixel value of each pixel for obtaining the every two field picture photographed;
Processing module, for for each pixel, the pixel value difference between adjacent two field picture to be calculated respectively;
Determining module, for the pixel value difference according to acquisition and the light source point threshold value pre-set, light is defined as by each pixel
Source point or background pixel point, and reduce the pixel value of background pixel point.
7. device according to claim 6, it is characterised in that the determining module specifically for:
The pixel value difference is more than to the pixel of the light source point threshold value, is defined as light source point;The pixel value difference is less than
Or equal to the pixel of the light source point threshold value, it is defined as background pixel point, and reduce the pixel value of background pixel point.
8. device according to claim 7, it is characterised in that the pixel value of the reduction background pixel point includes:By institute
The brightness value for stating background pixel point is set to 0.
9. device according to claim 7, it is characterised in that when the picture more than the light source point threshold value calculated
When plain difference includes two or more, the processing module is additionally operable to:
Brightness value maximum in the pixel value difference is chosen as the brightness value of the pixel, or, by multiple pixel differences
The average value of the brightness value of value as the pixel brightness value.
10. a kind of capture apparatus, it is characterised in that including realizing described in claim any one of 6~claim 9, light is painted takes the photograph
The device of shadow.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611064274.2A CN107071259A (en) | 2016-11-28 | 2016-11-28 | It is a kind of to realize method, device and capture apparatus that light paints photography |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611064274.2A CN107071259A (en) | 2016-11-28 | 2016-11-28 | It is a kind of to realize method, device and capture apparatus that light paints photography |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107071259A true CN107071259A (en) | 2017-08-18 |
Family
ID=59618681
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611064274.2A Pending CN107071259A (en) | 2016-11-28 | 2016-11-28 | It is a kind of to realize method, device and capture apparatus that light paints photography |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071259A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110035141A (en) * | 2019-02-22 | 2019-07-19 | 华为技术有限公司 | A kind of image pickup method and equipment |
TWI761049B (en) * | 2021-01-26 | 2022-04-11 | 瑞昱半導體股份有限公司 | Signal processing circuit and signal processing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103810695A (en) * | 2012-11-15 | 2014-05-21 | 浙江大华技术股份有限公司 | Light source positioning method and device |
CN104052913A (en) * | 2013-03-15 | 2014-09-17 | 博世(中国)投资有限公司 | Method for providing light painting effect, and device for realizing the method |
CN104159040A (en) * | 2014-08-28 | 2014-11-19 | 深圳市中兴移动通信有限公司 | Photographing method and photographing device |
US20150042832A1 (en) * | 2012-08-28 | 2015-02-12 | Ryan Harrison Warnberg | Lightpainting live view |
-
2016
- 2016-11-28 CN CN201611064274.2A patent/CN107071259A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150042832A1 (en) * | 2012-08-28 | 2015-02-12 | Ryan Harrison Warnberg | Lightpainting live view |
CN103810695A (en) * | 2012-11-15 | 2014-05-21 | 浙江大华技术股份有限公司 | Light source positioning method and device |
CN104052913A (en) * | 2013-03-15 | 2014-09-17 | 博世(中国)投资有限公司 | Method for providing light painting effect, and device for realizing the method |
CN104159040A (en) * | 2014-08-28 | 2014-11-19 | 深圳市中兴移动通信有限公司 | Photographing method and photographing device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110035141A (en) * | 2019-02-22 | 2019-07-19 | 华为技术有限公司 | A kind of image pickup method and equipment |
TWI761049B (en) * | 2021-01-26 | 2022-04-11 | 瑞昱半導體股份有限公司 | Signal processing circuit and signal processing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502693B (en) | A kind of image display method and device | |
CN105933544B (en) | Screenshotss method and mobile terminal | |
CN106909274A (en) | A kind of method for displaying image and device | |
CN106601189A (en) | Display method and terminal | |
CN106686301A (en) | Picture shooting method and device | |
CN106900036A (en) | A kind of display methods and terminal | |
CN107016639A (en) | A kind of image processing method and device | |
CN106973227A (en) | Intelligent photographing method and device based on dual camera | |
CN106713744A (en) | Method and apparatus for realizing light painting photography, and shooting device | |
CN107087074A (en) | A kind of method, device and terminal for adjusting screen intensity | |
CN106686212A (en) | Automatic brightness adjusting method and terminal | |
CN106713718A (en) | Dual camera-based focusing method and mobile terminal | |
CN105242483B (en) | The method and apparatus that a kind of method and apparatus for realizing focusing, realization are taken pictures | |
CN106791187A (en) | A kind of mobile terminal and NFC method | |
CN106534552A (en) | Mobile terminal and photographing method thereof | |
CN106572246A (en) | Camera opening device, terminal and camera opening method | |
CN105959520B (en) | A kind of photo camera and method | |
CN106506963A (en) | A kind of photographic method and terminal based on dual camera | |
CN106851114A (en) | A kind of photo shows, photo generating means and method, terminal | |
CN107018326A (en) | A kind of image pickup method and device | |
CN106646442A (en) | Distance measurement method and terminal | |
CN106791016A (en) | A kind of photographic method and terminal | |
CN106683613A (en) | Display method and terminal | |
CN107071259A (en) | It is a kind of to realize method, device and capture apparatus that light paints photography | |
CN107087108A (en) | A kind of image processing method and device based on dual camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170818 |