CN105791689A - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

Publication number
CN105791689A
CN105791689A CN201610131582.6A CN201610131582A CN105791689A CN 105791689 A CN105791689 A CN 105791689A CN 201610131582 A CN201610131582 A CN 201610131582A CN 105791689 A CN105791689 A CN 105791689A
Authority
CN
China
Prior art keywords
image
light source
starlight
pixel
brightness value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610131582.6A
Other languages
Chinese (zh)
Inventor
曹磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610131582.6A priority Critical patent/CN105791689A/en
Publication of CN105791689A publication Critical patent/CN105791689A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

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

Abstract

An embodiment of the invention discloses an image processing method and an image processing device. The image processing method is applied on a terminal which comprises a camera and comprises the steps of acquiring a to-be-processed image, determining whether a light source exists in the image, and if yes, performing starlight processing on the image so that a starlight effect of the light source is displayed in displaying the image. According to the embodiment of the invention, through adding a virtual starlight filter in the terminal, a technical problem of incapability of using the filter effect of a starlight scope in photographing by an intelligent terminal in prior art, and a new function is added on a camera. Compared with a tedious step of replacing a physical lens in prior art, photographing efficiency can be further improved.

Description

A kind of image processing method and device
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of image processing method and device.
Background technology
Development along with image processing techniques and mobile terminal device, mobile device is used as camera arrangement the commonly used critical function having become as in daily life anywhere or anytime, and people are taken pictures by camera arrangement and record fine moment easily and in order to show emotion.At present, major part intelligent terminal (such as mobile phone, panel computer and intelligent watch etc.), both provide camera function.
Star sensor is the one of camera filter, is briefly the surface glass filter that is carved with netted shallow slot.Star sensor can softening image slightly, centered by luminous point, pearlescent effect is formed after producing diffraction of light effect, this be a kind of when shooting stage or night scene must effect mirror, effect out of the ordinary can be played for picture, star sensor has Multiple Type by starlight effect difference, such as a word, cross, rice word, snowflake mirror etc..
It is more and more that currently used mobile terminal is taken pictures, but the filtering effects of star sensor, realize only by camera lens in kind at present, owing to terminal needs user installation star sensor when shooting has the photo of starlight effect, therefore, shooting has that the operation of photo of starlight effect is comparatively laborious, efficiency comparison is low.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method and device, it is possible to solves shooting at present and has the technical problem that operation is comparatively laborious, efficiency comparison is low of the photo of starlight effect.
The embodiment of the present invention provides a kind of image processing method, comprises the following steps:
Obtain pending image;
Judge whether described image exists light source;
If so, then described image is carried out starlight process, so that starlight effect occurs in described light source when showing described image;
Wherein, the described step judging whether to there is light source in described image specifically includes:
Obtain the brightness value of pixel in described image;
Brightness value according to described pixel judges whether to exist in described image described light source;
Further, the described brightness value according to described pixel judges that the step that whether there is described light source in described image specifically includes:
Judge that whether the brightness value of described pixel is more than predetermined luminance value;
If, it is determined that described image exists described light source;
Wherein, the described step that described image carries out starlight process specifically includes:
Determine described light source position in described image;
According to described position, described light source is carried out starlight process;
Further, the described step determining described light source position in described image specifically includes:
Obtain in described image brightness value more than the pixel position of described predetermined luminance value;
Described light source position in described image is determined according to described pixel position.
The embodiment of the present invention additionally provides a kind of image processing apparatus, including: image collection module, judge module and processing module;
Described image collection module, for obtaining pending image;
Described judge module, is used for judging whether there is light source in described image;
Described processing module, for when described judge module is judged as YES, carrying out starlight process to described image, so that starlight effect occurs in described light source when showing described image;
Wherein, described judge module specifically includes: luminance acquisition submodule and judge submodule;
Described luminance acquisition submodule, for obtaining the brightness value of pixel in described image;
Described judgement submodule, judges whether to exist in described image described light source for the brightness value according to described pixel;
Further, described judgement submodule, specifically for judging that whether the brightness value of described pixel is more than predetermined luminance value;
If, it is determined that described image exists described light source;
Wherein, described processing module specifically includes: determines submodule and processes submodule;
Described determine submodule, for determining described light source position in described image;
Described process submodule, for carrying out starlight process according to described position to described light source;
Further, described determine submodule, specifically for obtaining in described image brightness value more than the pixel position of described predetermined luminance value;
Described light source position in described image is determined according to described pixel position.
The embodiment of the present invention adopts and obtains pending image, it is judged that whether there is light source in image, if so, then image is carried out starlight process, so that starlight effect occurs in light source when showing image;The embodiment of the present invention is by increasing virtual starlight filter in the terminal, it is possible to solving to shoot the photo with starlight effect at present needs to change camera lens in kind and cause the technical problem that operation is comparatively laborious, efficiency comparison is low.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of a kind of image processing method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of image processing method that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of a kind of image processing apparatus that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of another image processing apparatus that Fig. 4 provides for the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of image processing method and device.To be described in detail respectively below.
Embodiment one,
Referring to the schematic flow sheet of a kind of image processing method that Fig. 1, Fig. 1 provide for the embodiment of the present invention one, this image processing method is applied in terminal, including:
Step S101, obtains pending image.
Concrete, above-mentioned image can be after terminal starts photographic head, get and be shown in the picture to be captured of the preview area of terminal at current time by photographic head, for instance after user opens a terminal shoot function, be image preview area in the region of shooting interface display preview image;Optionally, this pending image can also is that the image obtained by other approach, is such as downloaded by network or the picture etc. of other user terminals transmission.
In embodiments of the present invention, above-mentioned pending picture is the image of the pending object shown at the image preview area of terminal, for instance, when certain scenery is shot, after terminal operating camera function, in shooting interface, the image of this scenery can be formed in certain region, for reference;Now, showing that the region of image is image preview area in this shooting interface, the image of display is preview image.
Concrete steps may include that the triggering command receiving user's input, camera application program (such as camera programm) corresponding in terminal is opened according to this triggering command, form an image preview area on a terminal screen, and in this image preview area, form the preview image of object to be captured.
In the present embodiment, object to be captured can be personage, landscape, animal, object (such as house or automobile) etc..
Such as, user applies smart mobile phone when somewhere landscape is shot, and first smart mobile phone receives the order opening " camera " application program;Then smart mobile phone automatically opens up this " camera " application program;Then smart mobile phone forms an image preview area on screen, and calls photographic head and treat reference object and shoot, to form the preview image of this object to be captured at image preview area.
Step S102, it is judged that whether there is light source in above-mentioned image, if so, then performs step S103, if it is not, then perform step S104.
Wherein, above-mentioned light source refers to light source luminous in present image, and such as, this light source can be the electric light turned on, the wax candle lighted and the star moon etc..
Concrete, the embodiment of the present invention judging, the step that whether there is light source in image can specifically include: obtain the brightness value of pixel in above-mentioned image, judge whether above-mentioned image exists light source according to the brightness value of this pixel.
Step S103, if judging to exist in image light source, carries out starlight process to above-mentioned image, so that starlight effect occurs in light source when showing above-mentioned image.
Concrete, user is when taking pictures, the sensor (sensor) of camera is first by original image, namely starlight view data before treatment is transferred to ISP (ImageSignalProcessing, image signal processing device), this image is carried out starlight process by ISP, makes the light source in image launch scattered beam after producing diffraction of light effect, and namely when showing above-mentioned image, starlight effect occurs in light source.
In the present embodiment, before whether there is the step of light source in judging above-mentioned image, can also first judge whether user selects to use starlight filter, if it is determined that use starlight filter to shoot, then continue to judge whether above-mentioned image exists light source, wherein judge whether user uses starlight filter can have multiple method, such as, detect whether to receive the use instruction of starlight filter, if detecting the use instruction receiving above-mentioned starlight filter, then determine that use starlight filter shoots, wherein, the instruction that uses of starlight filter can be that the starlight filter operation that uses that user triggers in the camera applications opened generates, camera applications is used to carry out in the process taken pictures user, to choose whether as required to use starlight filter.
Such as, after opening camera applications, will determine that and whether use starlight filter, now, corresponding marquee can be ejected in the interface of camera applications, so that user's trigger action, wherein, if user triggers use starlight filter operation, then illustrate to take pictures use starlight filter.
Optionally, owing to starlight filter mostly just can use in dark environment in actual applications, the embodiment of the present invention can also detect whether the brightness of each pixel in present image meets the brightness conditions preset, if detecting, the brightness of each pixel meets predetermined luminance condition, then determine that use starlight filter shoots, wherein, meet above-mentioned predetermined luminance condition and may include that in present image, the brightness value of all pixels is below the first luminance threshold, or, in present image brightness more than the number of the pixel of the second luminance threshold and brightness less than the ratio of the number of the pixel of the second luminance threshold less than default ratio.
Step S104, if judging to be absent from image light source, then preserves present image.
Such as, obtain the brightness value of pixel in above-mentioned image, judge whether above-mentioned image exists light source according to the brightness value of this pixel, preserve if it is not, then adopt common screening-mode to carry out shooting, namely image is not done starlight process.
From the foregoing, it will be observed that the embodiment of the present invention adopts obtains the image that object to be captured is corresponding, it is judged that whether image exists light source, if so, then image is carried out starlight process, so that starlight effect occurs in light source when showing image;The embodiment of the present invention is by increasing virtual starlight filter in the terminal, the photo of intelligent terminal's shooting in prior art can be solved and cannot use the technical problem of starlight effect, for the New function that camera increases, shooting efficiency also can be improved further relative to changing camera lens in kind;On the other hand, the image processing method that the embodiment of the present invention provides also has that cost is low, implement the advantages such as simple.
Embodiment two,
Referring to the schematic flow sheet of Fig. 2 a kind of image processing method provided for the embodiment of the present invention two, this image processing method includes:
Step S201, obtains pending image.
Concrete, it is possible to receive the triggering command of user's input, open a terminal camera function above according to this triggering command, found a view by the photographic head in terminal, in shooting interface, certain region forms the image of object to be captured, for reference;Now, showing that the region of image is image preview area in this shooting interface, the image of display is preview image.
Such as, user applies smart mobile phone when somewhere landscape is shot, and first smart mobile phone receives the order opening " camera " application program;Then smart mobile phone automatically opens up this " camera " application program;Then smart mobile phone forms an image preview area on screen, and calls photographic head and treat reference object and shoot, to form the preview image of this object to be captured at image preview area.
Step S202, it may be judged whether use starlight filter, if so, then performs step S203, if it is not, then perform step S204.
The starlight filter that specifically can send by detecting whether to receive user uses instruction to judge whether to use starlight filter.
Such as, terminal can show the inquiry message of " whether using starlight filter to shoot " on display interface, and arranges "Yes" option and "No" option, if user have selected "Yes" option, then determining that user triggers the instruction using starlight filter, terminal uses starlight filter to shoot;If user have selected "No" option, it is determined that user does not trigger the instruction using starlight filter, screening-mode is adopted to shoot.
Step S203, if judging to use starlight filter, obtains the brightness value of pixel in image.
In embodiments of the present invention, need first to obtain the brightness value of pixel in image, then judge whether image exists light source according to the brightness value of pixel, such as, terminal unit can pass through the light sensor etc. being arranged on above screen back tabula rasa, carry out the present intensity value of each pixel on real-time measuring terminals device screen, in concrete practical application, on above-mentioned measuring terminals device screen, the light sensor of the present intensity value of each pixel can be arranged on the top of terminal screen, other certain correct positions that can accurately measure relevant parameter can also be arranged on, at this, the position of light sensor is not done any concrete restriction.
Step S204, if judging not use starlight filter to shoot, then uses general mode to shoot.
Concrete, if judging not use starlight filter to shoot, triggering and carrying out taking pictures to obtain photo, the operation as by user triggers the photo that camera applications carries out taking pictures currently to be taken pictures corresponding to picture.
Step S205, it is judged that the brightness value of above-mentioned pixel whether more than predetermined luminance value, if, it is determined that above-mentioned image exists light source, performs step S206, if not, it is determined that image is absent from light source, perform step S207.
In the present embodiment, if there is light source in above-mentioned image, then the brightness value of the pixel of light source is higher, and the brightness between the object in the region within the scope of predefined size exists larger difference around this light source and light source, now can identify in image whether there is light source according to the brightness value of pixel.Such as, terminal can obtain brightness value and exceed the pixel of predetermined luminance value, determine other pixels in the presumptive area including this pixel, namely other pixels around this pixel are determined, whether detect the brightness value of this pixel difference with the brightness value of other pixels more than preset difference value, if the difference that terminal detects the brightness value of this pixel and the brightness value of other all pixels is all higher than preset difference value, it is determined that this pixel is all or part of of light source;If terminal detects that the brightness value of this pixel difference with the brightness value of other any pixel points is less than preset difference value, it is determined that this pixel is not light source.Wherein the size of presumptive area and preset difference value can be configured according to the demand of user and revise.
Step S206, it is determined that there is light source in above-mentioned image, and obtain light source position in the picture.
Concrete, the step obtaining light source position in the picture in the present embodiment can specifically include: in acquisition image, brightness value is more than the pixel position of predetermined luminance value.
Step S207, it is determined that be absent from light source in image, preserves present image.
Such as, obtain the brightness value of pixel in above-mentioned image, if this brightness value is less than predetermined luminance value, it is determined that image is absent from light source, image is not carried out starlight process, it is possible to being undertaken taking pictures by the operation triggering camera applications of user preserves the photo currently taken pictures corresponding to picture.
Step S208, carries out starlight process according to above-mentioned light source position in the picture to light source.
Concrete, the step that light source carries out starlight process according to above-mentioned light source position in the picture can specifically include: more than the pixel position of predetermined luminance value, the light source in image is carried out starlight process according to brightness value in image, starlight processes and is the radiance making the light source radiation in image go out specific wire harness, has reached pearlescent imaging effect.
Before the light source in image is carried out starlight process by terminal, can also first determine starlight type to display after light source is processed, such as 2 lines, 4 lines, 6 lines etc., this starlight type can be terminal acquiescence or random type, can also be the type that pre-sets of user, it is also possible to be the starlight type that goes out according to the form fit of light source of terminal.
From the foregoing, it will be observed that the embodiment of the present invention adopts obtains the image that object to be captured is corresponding, it may be judged whether use starlight filter, if so, then continue to judge whether image exists light source, if, then image is carried out starlight process, so that starlight effect occurs in light source when showing image;The embodiment of the present invention is by increasing virtual starlight filter in the terminal, intelligent terminal in prior art can be solved and cannot shoot the technical problem of the photo of starlight effect, increase New function for camera, also can improve shooting efficiency further relative to the tedious steps changing camera lens in kind;On the other hand, the image processing method that the embodiment of the present invention provides also has that cost is low, implement the advantages such as simple.
Embodiment three,
In order to implement the scheme of above-described embodiment one and two better, a kind of image processing apparatus that the embodiment of the present invention provides, as shown in Figure 3, this image processing apparatus can apply in terminal unit, this image processing apparatus includes: image collection module 301, judge module 302 and processing module 303, as follows:
This image collection module 301, for obtaining pending image;
Concrete, above-mentioned image can be after terminal starts photographic head, got and be shown in the picture of the preview area of terminal at current time by photographic head by image collection module 301, such as after user opens a terminal shoot function, it is image preview area in the region of shooting interface display preview image;Optionally, this pending image can also is that the image obtained by other approach, is such as downloaded by network or the picture etc. of other user terminals transmission.
Such as, user applies smart mobile phone when somewhere landscape is shot, and first smart mobile phone receives the order opening " camera " application program;Then smart mobile phone automatically opens up this " camera " application program;Then smart mobile phone forms an image preview area on screen, and calls photographic head and treat reference object and shoot, so that image collection module 301 obtains the preview image of this object to be captured.
This judge module 302, is used for judging whether there is light source in image;
Concrete, in the embodiment of the present invention, this judge module 302 judges that the step that whether there is light source in image can specifically include: obtain the brightness value of pixel in above-mentioned image, it is judged that module 302 judges whether there is light source in above-mentioned image according to the brightness value of this pixel.
This processing module 303, for when judge module is judged as YES, carrying out starlight process to image, so that starlight effect occurs in light source when showing image;
Preferably, in the present embodiment after image collection module 301 gets the image that object to be captured is corresponding, the second judge module can also be included, for judging whether user selects to use starlight filter, if it is determined that use starlight filter to shoot, then continue to be judged whether above-mentioned image exists light source by judge module 302.
Wherein, above-mentioned second judge module judges whether user uses starlight filter can have multiple method, such as, detect whether to receive the use instruction of starlight filter, if detecting the use instruction receiving above-mentioned starlight filter, then determine that use starlight filter shoots, wherein, the instruction that uses of starlight filter can be that the starlight filter operation that uses that user triggers in the camera applications opened generates, use camera applications to carry out in the process taken pictures user, will choose whether as required to use starlight filter.
As from the foregoing, the embodiment of the present invention adopts image collection module 301 to obtain the image that object to be captured is corresponding, judge module 302 judge whether there is light source in image, if, then by processing module 303, image is carried out starlight process, so that starlight effect occurs in light source when showing image;The embodiment of the present invention is by increasing virtual starlight filter in the terminal, the photo of starlight effect can be shot when without increasing camera lens in kind, for the New function that camera increases, before shooting, camera lens in kind is changed relative to of the prior art, the step of the present embodiment is less, implement convenient, can improve shooting efficiency and Consumer's Experience further.
Preferably, in the middle of the embodiment of the present invention, this image processing apparatus will be described further, as shown in Figure 4, wherein, it is judged that module 302 can specifically include: luminance acquisition submodule 3021 and judge submodule 3022;
This luminance acquisition submodule 3021, for obtaining the brightness value of pixel in image;
In embodiments of the present invention, need first to be obtained the brightness value of pixel in image by luminance acquisition submodule 3021, then judge whether image exists light source according to the brightness value of pixel, such as, terminal unit can pass through the light sensor etc. being arranged on above screen back tabula rasa, carry out the present intensity value of each pixel on real-time measuring terminals device screen, in concrete practical application, on above-mentioned measuring terminals device screen, the light sensor of the present intensity value of each pixel can be arranged on the top of terminal screen, other certain correct positions that can accurately measure relevant parameter can also be arranged on, at this, the position of light sensor is not done any concrete restriction.
This judgement submodule 3022, judges whether there is light source in image for the brightness value according to pixel;
Concrete, this judgement submodule 3022, specifically for judging that whether the brightness value of pixel is more than predetermined luminance value, if, it is determined that image exists light source.
Preferably, above-mentioned processing module 303 can specifically include: determines submodule 3031 and processes submodule 3032;
This determines submodule 3031, for determining light source position in the picture;
This process submodule 3032, for carrying out starlight process according to above-mentioned position to light source;
Wherein, above-mentioned determine submodule 3031, more than the pixel position of predetermined luminance value, determine light source position in above-mentioned image according to above-mentioned pixel position specifically for obtaining brightness value in image.
Concrete, processing the step that light source carries out starlight process according to above-mentioned light source position in the picture by submodule 3032 can specifically include: more than the pixel position of predetermined luminance value, the light source in image is carried out starlight process according to brightness value in image.
Optionally, before the light source in image is carried out starlight process by terminal, can also first determine starlight type to display after light source is processed, such as 2 lines, 4 lines, 6 lines etc., this starlight type can be terminal acquiescence or random type, can also be the type that pre-sets of user, it is also possible to be the starlight type that goes out according to the form fit of light source of terminal.
As from the foregoing, the embodiment of the present invention adopts image collection module 301 to obtain the image that object to be captured is corresponding, the brightness value of pixel in image is obtained by luminance acquisition submodule 3021, judge that submodule 3022 judges whether there is light source in image according to the brightness value of above-mentioned pixel, if, determine that submodule 3031 determines light source position in the picture, and according to this position, the light source in image is carried out starlight process by processing submodule 3032, so that starlight effect occurs in light source when showing image;The embodiment of the present invention is by increasing virtual starlight filter in the terminal, the shooting of intelligent terminal in prior art can be solved and cannot use the technical problem of starlight effect, for the New function that camera increases, shooting efficiency also can be improved further relative to changing camera lens in kind;On the other hand, the image processing method that the embodiment of the present invention provides also has that cost is low, implement the advantages such as simple.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out combination in any, realizes as same or several entities, and being embodied as of above modules referring to embodiment of the method above, can not repeat them here.
It should be noted that, one of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by the hardware that program carrys out instruction relevant and completes, this program can be stored in computer-readable recording medium, as being stored in the memorizer of terminal, and performed by least one processor in this terminal, the flow process of the embodiment such as information issuing method can be included in the process of implementation.Wherein, storage medium may include that read only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc..
A kind of image processing method and the device that above the embodiment of the present invention are provided are described in detail, its each functional module can be integrated in one and process in chip, can also be that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated module both can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes.Principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. an image processing method, it is characterised in that comprise the following steps:
Obtain pending image;
Judge whether described image exists light source;
If so, then described image is carried out starlight process, so that starlight effect occurs in described light source when showing described image.
2. image processing method as claimed in claim 1, it is characterised in that the described step judging whether to there is light source in described image specifically includes:
Obtain the brightness value of pixel in described image;
Brightness value according to described pixel judges whether to exist in described image described light source.
3. image processing method as claimed in claim 2, it is characterised in that the described brightness value according to described pixel judges that the step that whether there is described light source in described image specifically includes:
Judge that whether the brightness value of described pixel is more than predetermined luminance value;
If, it is determined that described image exists described light source.
4. image processing method as claimed in claim 3, it is characterised in that the described step that described image carries out starlight process specifically includes:
Determine described light source position in described image;
According to described position, described light source is carried out starlight process.
5. image processing method as claimed in claim 4, it is characterised in that the described step determining described light source position in described image specifically includes:
Obtain in described image brightness value more than the pixel position of described predetermined luminance value;
Described light source position in described image is determined according to described pixel position.
6. an image processing apparatus, it is characterised in that including: image collection module, judge module and processing module;
Described image collection module, for obtaining pending image;
Described judge module, is used for judging whether there is light source in described image;
Described processing module, for when described judge module is judged as YES, carrying out starlight process to described image, so that starlight effect occurs in described light source when showing described image.
7. image processing apparatus as claimed in claim 6, it is characterised in that described judge module specifically includes: luminance acquisition submodule and judge submodule;
Described luminance acquisition submodule, for obtaining the brightness value of pixel in described image;
Described judgement submodule, judges whether to exist in described image described light source for the brightness value according to described pixel.
8. image processing apparatus as claimed in claim 7, it is characterised in that
Described judgement submodule, specifically for judging that whether the brightness value of described pixel is more than predetermined luminance value, if, it is determined that described image exists described light source.
9. image processing apparatus as claimed in claim 8, it is characterised in that described processing module specifically includes: determine submodule and process submodule;
Described determine submodule, for determining described light source position in described image;
Described process submodule, for carrying out starlight process according to described position to described light source.
10. image processing apparatus as claimed in claim 9, it is characterised in that
Described determine submodule, specifically for obtaining in described image brightness value more than the pixel position of described predetermined luminance value;
Described light source position in described image is determined according to described pixel position.
CN201610131582.6A 2016-03-08 2016-03-08 Image processing method and image processing device Pending CN105791689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610131582.6A CN105791689A (en) 2016-03-08 2016-03-08 Image processing method and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610131582.6A CN105791689A (en) 2016-03-08 2016-03-08 Image processing method and image processing device

Publications (1)

Publication Number Publication Date
CN105791689A true CN105791689A (en) 2016-07-20

Family

ID=56387234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610131582.6A Pending CN105791689A (en) 2016-03-08 2016-03-08 Image processing method and image processing device

Country Status (1)

Country Link
CN (1) CN105791689A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133909A (en) * 2017-03-30 2017-09-05 北京奇艺世纪科技有限公司 A kind of method and device of tinter restructuring
CN107517347A (en) * 2017-08-10 2017-12-26 维沃移动通信有限公司 A kind of asterism image pickup method and mobile terminal
CN113489901A (en) * 2021-06-30 2021-10-08 维沃移动通信(杭州)有限公司 Shooting method and device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420532A (en) * 2007-10-25 2009-04-29 华晶科技股份有限公司 Method for simulating asterism special effect of light source and electronic device applying the method
CN201774595U (en) * 2010-09-03 2011-03-23 天津三星光电子有限公司 Card digital camera with various filter functions
JP2012165078A (en) * 2011-02-03 2012-08-30 Olympus Imaging Corp Imaging apparatus and imaging program
CN104184943A (en) * 2014-07-29 2014-12-03 小米科技有限责任公司 Image shooting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420532A (en) * 2007-10-25 2009-04-29 华晶科技股份有限公司 Method for simulating asterism special effect of light source and electronic device applying the method
CN201774595U (en) * 2010-09-03 2011-03-23 天津三星光电子有限公司 Card digital camera with various filter functions
JP2012165078A (en) * 2011-02-03 2012-08-30 Olympus Imaging Corp Imaging apparatus and imaging program
CN104184943A (en) * 2014-07-29 2014-12-03 小米科技有限责任公司 Image shooting method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133909A (en) * 2017-03-30 2017-09-05 北京奇艺世纪科技有限公司 A kind of method and device of tinter restructuring
CN107133909B (en) * 2017-03-30 2020-09-25 北京奇艺世纪科技有限公司 Method and device for recombining shaders
CN107517347A (en) * 2017-08-10 2017-12-26 维沃移动通信有限公司 A kind of asterism image pickup method and mobile terminal
CN107517347B (en) * 2017-08-10 2019-05-17 维沃移动通信有限公司 A kind of asterism image pickup method and mobile terminal
CN113489901A (en) * 2021-06-30 2021-10-08 维沃移动通信(杭州)有限公司 Shooting method and device thereof
CN113489901B (en) * 2021-06-30 2023-04-28 维沃移动通信(杭州)有限公司 Shooting method and device thereof

Similar Documents

Publication Publication Date Title
KR102598109B1 (en) Electronic device and method for providing notification relative to image displayed via display and image stored in memory based on image analysis
JP7059284B2 (en) Camera assembly and mobile electronics
US9451173B2 (en) Electronic device and control method of the same
CN106464801B (en) System and method for determining image resolution ratio
WO2017016030A1 (en) Image processing method and terminal
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
JP7023965B2 (en) Camera assembly and mobile electronics
CN105049726A (en) Mobile terminal shooting method and mobile terminal
CN105979125A (en) Photographing method and system based on screen light supplement
KR20110053348A (en) System and method to generate depth data using edge detection
CN104349033A (en) Self-timer light supplement method, self-timer light supplement device and electronic equipment
WO2022160895A1 (en) Image processing method, image processing apparatus, electronic system and readable storage medium
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107945158A (en) A kind of dirty method and device of detector lens
CN108881730A (en) Image interfusion method, device, electronic equipment and computer readable storage medium
CN106210532A (en) One is taken pictures processing method and terminal unit
US20150237248A1 (en) Image processing method and image processing device
CN104580892A (en) Method for terminal to take images
CN112017137A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
US20170126966A1 (en) Photography method using gaze detection
CN105791689A (en) Image processing method and image processing device
CN110868533B (en) HDR mode determination method, device, storage medium and terminal
CN111970437A (en) Text shooting method, wearable device and storage medium
CN105554366A (en) Multimedia photographing processing method and device and intelligent terminal
CN103179349A (en) Automatic photographing method and device

Legal Events

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

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication