CN109872271A - A kind of image processing method, terminal and computer readable storage medium - Google Patents

A kind of image processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109872271A
CN109872271A CN201910082109.7A CN201910082109A CN109872271A CN 109872271 A CN109872271 A CN 109872271A CN 201910082109 A CN201910082109 A CN 201910082109A CN 109872271 A CN109872271 A CN 109872271A
Authority
CN
China
Prior art keywords
picture
region
light source
point light
processed
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
CN201910082109.7A
Other languages
Chinese (zh)
Inventor
刘磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910082109.7A priority Critical patent/CN109872271A/en
Publication of CN109872271A publication Critical patent/CN109872271A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention discloses a kind of image processing methods, terminal and computer readable storage medium, this method is by obtaining picture to be processed, determine the region in picture to be processed where point light source, then picture to be processed is carried out centered on point light source drawing burnt processing, existing intelligent terminal is solved when shooting point light source, pearlescent effect can not be shot, the picture quality of shooting is bad, so as to cause the low problem of satisfaction of users, the invention also discloses a kind of terminal and computer readable storage mediums, by implementing above scheme, so that drawing, burnt treated that picture can form radioactive ray of the rule centered on point light source, to reach pearlescent effect, promote the quality of picture, and without professional camera, more convenient user's operation, satisfaction that the user experience is improved.

Description

A kind of image processing method, terminal and computer readable storage medium
Technical field
The present invention relates to field of terminal technology, can more specifically to a kind of image processing method, terminal and computer Read storage medium.
Background technique
With the development of terminal technology, the intelligent terminals such as smart phone have become people's daily life must can not Few a part.User can usually shoot photo by the camera on intelligent terminal, and still, existing intelligent terminal is being shot When point light source (such as the sun, light etc.), it usually will appear a halation on picture, pearlescent effect can not be shot, If desired the photo with shining effect is shot, then it is generally necessary to the additional specific eyeglass of mm professional camera special and specific F-number, it is troublesome in poeration.
Summary of the invention
The technical problem to be solved in the present invention is that the picture of existing terminal shooting is bad, satisfaction of users is low to be asked Topic provides a kind of image processing method, terminal and computer readable storage medium for the technical problem.
In order to solve the above technical problems, the present invention provides a kind of image processing method, the image processing method includes:
Obtain picture to be processed;
Determine the region in the picture to be processed where point light source;
The picture to be processed is carried out drawing burnt processing centered on the point light source.
Optionally, the region in the determination picture to be processed where point light source includes:
The picture midpoint to be processed light is determined according to the brightness value and/or exposure value in each region in the picture to be processed Region where source.
Optionally, the brightness value and/or exposure value according to each region in the picture to be processed determines described wait locate Region in reason picture where point light source includes:
The region that brightness value in the picture to be processed is greater than default first luminance threshold is determined as where point light source Region;
And/or
The region that exposure value in the picture to be processed is greater than default first threshold exposure is determined as where point light source Region.
Optionally, the brightness value and/or exposure value according to each region in the picture to be processed determines described wait locate Region in reason picture where point light source includes:
Difference in the picture to be processed between brightness value and the brightness value of target area is greater than default second brightness As the region where point light source, the target area is in the picture to be processed except the area where point light source in the region of threshold value Overseas region;
And/or
Difference in the picture to be processed between exposure value and the exposure value of the target area is greater than default second The region of threshold exposure is as the region where point light source.
Optionally, the region in the determination picture to be processed where point light source includes:
Receive point light source setting instruction;
The region instructed where determining point light source is set according to the point light source.
Optionally, the acquisition picture to be processed includes:
Preview picture is acquired by camera;
Using the preview picture as picture to be processed.
Optionally, after the region in the determination picture to be processed where point light source, further includes:
Reduce the light exposure of the camera.
Optionally, described draw the burnt processing to include: in the picture to be processed centered on the point light source
It is determined according to the position of the point light source and draws burnt region;
It carries out drawing burnt processing in the burnt region of the drawing centered on the point light source.
Further, the present invention also provides a kind of terminal, the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize described in any of the above-described Image processing method the step of.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of image processing method described in any of the above embodiments.
Beneficial effect
The present invention provides a kind of image processing method, terminal and computer readable storage medium, for existing intelligence Terminal can not shoot pearlescent effect, the picture quality of shooting is bad, so as to cause user's body when shooting point light source The low problem of satisfaction is tested, by obtaining picture to be processed, the region in picture to be processed where point light source is determined, then with point Picture to be processed is carried out centered on light source to draw burnt processing, in this way, a rule radioactive ray can be formed, to reach shining Effect, promote the quality of picture, and without professional camera, more convenient user's operation, satisfaction that the user experience is improved.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the image processing method basic flow chart that first embodiment of the invention provides;
Fig. 4 is the image processing method basic flow chart that first embodiment of the invention provides;
Fig. 5 is the first schematic diagram of target area that first embodiment of the invention provides;
Fig. 6 is the second schematic diagram of target area that first embodiment of the invention provides;
Fig. 7-1 is the picture schematic diagram to be processed before the burnt processing of drawing that first embodiment of the invention passes through;
Fig. 7-2 is burnt treated the picture schematic diagram to be processed of the drawing that passes through of first embodiment of the invention;
Fig. 8 is the image processing method refined flow chart that third embodiment of the invention provides;
Fig. 9 is the image processing method refined flow chart that third embodiment of the invention provides;
Figure 10 is the structural schematic diagram for the terminal that fourth embodiment of the invention provides.
Specific 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.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, 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..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
In order to solve existing intelligent terminal when shooting point light source, pearlescent effect, the figure of shooting can not be shot Tablet quality is bad, and so as to cause the low problem of satisfaction of users, the present embodiment provides a kind of image processing methods, is applied to Terminal, it should be noted that terminal described in this embodiment can be terminal as shown in Figure 1, it is, of course, also possible to be other Terminal.Specifically, may refer to shown in Fig. 3, Fig. 3 is image processing method basic flow chart provided in this embodiment, the picture Processing method includes:
S301, picture to be processed is obtained.
In the present embodiment, picture to be processed can be the preview picture obtained by camera, that is to say, that in camera It opens, when acquiring preview picture by camera, using the preview picture of camera acquisition as picture to be processed.The present embodiment In, the picture that picture to be processed can also be shot with intelligent terminal camera, for example, shooting one by camera in intelligent terminal After picture, using the picture of shooting as picture to be processed.Certainly, picture to be processed can also be the picture downloaded from network. Picture to be processed can be specified by user, for example, can receive picture setting instruction to be processed, picture to be processed is arranged and is instructed The picture of instruction is as picture to be processed.
In the present embodiment, due to usually in night scene screening-mode there are point light source, preview is obtained by camera Whether picture before the preview picture for capturing camera is as picture to be processed, can also judge terminal currently in night scene Screening-mode, if so, using the preview picture of camera capture as picture to be processed.Alternatively, obtaining camera shooting Picture before the picture for shooting camera is as picture to be processed, judges whether terminal is currently in night scene screening-mode, if It is, then using the picture of camera shooting when being in night scene screening-mode as picture to be processed.
S302, region in picture to be processed where point light source is determined.
In the present embodiment, after obtaining picture to be processed, the region in picture to be processed where point light source is determined.Wherein, It is shown in Figure 4, determine that the region in picture to be processed where point light source may comprise steps of:
S401, point light source setting instruction is received.
S402, the region instructed where determining point light source is set according to point light source.
Wherein, point light source setting instruction can be what user issued, for example, user can be by clicking under picture to be processed Point light source setting instruction is sent out, then, according to the position that user clicks, determines the region where point light source.
In the present embodiment, can also according in the parameters such as brightness value, the exposure value in region each in picture to be processed at least A kind of region to determine in picture to be processed where point light source.In the brightness value according to region each in picture to be processed, exposure At least one of parameters such as value, can be according to picture to be processed come before determining the region in picture to be processed where point light source Corresponding parameter picture to be processed is divided at least two regions, the then area where determining point light source in each region Domain, for example, picture to be processed is divided at least two regions according to brightness value, then, according to brightness value from picture to be processed Region where middle determining point light source;Alternatively, picture to be processed is divided at least two regions, then, root according to exposure value According to region of the exposure value where determining point light source in picture to be processed.
In the present embodiment, it is bright that brightness value can be greater than default first according to the brightness value in region each in picture to be processed The region of degree threshold value is determined as the region where point light source, that is to say, that point light source is that brightness value is greater than default first luminance threshold The region of value.Wherein, the first luminance threshold can flexible setting according to actual needs.It, can also be according to wait locate in the present embodiment The region that exposure value is greater than default first threshold exposure is determined as the area where point light source by the exposure value for managing each region in picture Domain, that is to say, that the exposure value in the region where point light source is greater than default first threshold exposure.Wherein, the first threshold exposure can With flexible setting according to actual needs.Certainly, in the present embodiment, can also according to the first luminance threshold and the first threshold exposure come Determine the region where point light source.For example, can be by picture to be processed, brightness value is greater than default first luminance threshold, or, exposing Light value is greater than the region of default first threshold exposure as the region where point light source, as long as that is, the brightness value in the region is big Exposure value in default first luminance threshold or the region is greater than default first threshold exposure, can be by the regional determination Point light source, the i.e. region are the region where point light source., can also be by picture to be processed in the present embodiment, brightness value is greater than Default first luminance threshold, and, exposure value is greater than the region of default first threshold exposure as the region where point light source, That is, the region where point light source is that brightness value is greater than default first luminance threshold and exposure value is greater than default first threshold exposure Region.
It, can also be according to the brightness value in region each in picture to be processed, by brightness value and target area in the present embodiment Difference between brightness value is greater than the region of default second luminance threshold as the region where point light source, it should be appreciated that The brightness value in the region where point light source is higher than the brightness value of target area, that is to say, that in picture to be processed, point light source institute The brightness value in region subtract the resulting difference of brightness value of target area and be greater than default second luminance threshold, wherein default the Two luminance thresholds can flexible setting according to actual needs.It should be noted that target area is figure to be processed in the present embodiment Region in piece in addition to the region where point light source, wherein target area can be in picture to be processed, except where point light source All areas outside region, at this point, in picture to be processed, if some region of brightness value subtracts in picture to be processed except the region The resulting difference of the brightness value of outer any region is greater than default second luminance threshold, then using the region as the area where point light source Domain, for example, shown in Figure 5, it is assumed that in picture 50 to be processed, the brightness value of first area 501 is subtracted in second area 502 The resulting difference of the brightness value of any region is greater than default second brightness value, then by first area 501 as the area where point light source Domain, at this point, target area is second area 502.It should be understood that in a processing picture to be processed, it is understood that there may be one Point light source, it is of course also possible to there are two point light sources, three point light sources etc., in order to keep the point light source confirmed more accurate, mesh Mark region is also possible in picture to be processed, the region around the region where point light source in preset range, that is to say, that if to It handles in picture, it is bright that the difference that some region of brightness value subtracts the brightness value in the region in preset range around is greater than default second Threshold value is spent, then using the region as the region where point light source, wherein preset range can flexible setting according to actual needs. For example, with reference to shown in Fig. 6, it is assumed that in picture 60 to be processed, the region in the corresponding preset range in first area 601 is the first mesh Mark region 602;Region in the corresponding preset range of second area 603 is the second target area 604, and first area 601 The resulting difference of brightness value that brightness value subtracts first object region 602 is greater than default second luminance threshold, second area 603 it is bright The resulting difference of brightness value that angle value subtracts the second target area 604 is greater than default second luminance threshold, then by 601 He of first area Second area 602 is as the region where point light source.
It, can also be according to the exposure value in region each in picture to be processed, by exposure value and target area in the present embodiment Difference between exposure value is greater than the region of default second threshold exposure as the region where point light source, it should be appreciated that The exposure value in the region where point light source is higher than the exposure value in other regions, that is to say, that in picture to be processed, point light source institute The exposure value in region subtract the resulting difference of exposure value of target area and be greater than default second threshold exposure, wherein default the Two threshold exposures can flexible setting according to actual needs.In the present embodiment, it can also be exposed according to the second luminance threshold and second Photo threshold determines the region where point light source.For example, according to the brightness value and exposure value in region each in picture to be processed, it will be bright Difference between angle value and the brightness value of target area is greater than the region of default second luminance threshold, or, exposure value and target area Difference between the exposure value in domain is greater than the region of default second threshold exposure as the region where point light source, that is to say, that The difference that the brightness value in the region where point light source subtracts the brightness value of target area is greater than default second luminance threshold or point light source The resulting difference of exposure value that the exposure value in the region at place subtracts target area is greater than default second threshold exposure.The present embodiment In, the difference between brightness value and the brightness value of target area can also be greater than to the region of default second luminance threshold, and, it exposes Difference between light value and the exposure value of target area is greater than the region of default second threshold exposure as the area where point light source Domain, that is to say, that the resulting difference of brightness value that the brightness value in the region where point light source subtracts target area is greater than default second Luminance threshold, and the exposure value in the region where point light source subtracts the resulting difference of exposure value of target area greater than default second exposure Photo threshold.Wherein, for the determination of target area, foregoing description is referred to, details are not described herein again.
In the present embodiment, if obtain picture to be processed in S301, acquisition is the preview screen captured by camera, After the region in picture to be processed where point light source has been determined in S302, due in preview screen there are point light source, can To reduce the light exposure of camera, in this way, the preview screen overexposure that can prevent camera from capturing, is also possible to prevent the pre- of shooting Look at midpoint picture light source light source it is excessive, to promote shooting effect.
S303, picture to be processed is carried out centered on point light source to draw burnt processing.
In the present embodiment, after determining the region where point light source, centered on point light source, picture to be processed is carried out Burnt processing is drawn, in this way, the radiance of point light source can be stretched to the radioactive ray formed centered on point light source around, so that wait locate Reason picture can show pearlescent effect.In order to make picture to be processed while showing shining effect, no The presentation effect of the picture in picture to be processed on other regions is influenced, in the present embodiment, to be processed centered on point light source When picture carries out drawing burnt handle, it can be determined according to the position of point light source and draw burnt region, draw burnt region centered on point light source It inside carries out drawing burnt processing, radioactive ray can be formed in this way.It should be noted that draw burnt region be with the region around point light source, It can be the circular annular region using point light source as the center of circle, it is, of course, also possible to be the region of other shapes, specific shape, Size can flexible setting according to actual needs.For example, with reference to shown in Fig. 7-1, Fig. 7-1 is to be processed before carrying out that coke is drawn to handle Picture schematic diagram, in picture 70 to be processed, the first point light source 701 corresponding first draws burnt region 702, and the second point light source 703 is right The second drawing coke region 704 is answered then to refer to shown in Fig. 7-2, Fig. 7-2 draw for the picture to be processed as shown in Fig. 7-1 burnt Treated, and schematic diagram centered on each point light source, carries out each point light source to draw burnt processing each to be formed in the burnt region of each drawing The radioactive ray of point light source, so that the point light source of shooting processing shows pearlescent effect.It should be noted that Fig. 7-1 with And Fig. 7-2 is a kind of example for drawing burnt processing mode, it is specific to draw burnt processing mode that be adjusted flexibly according to actual needs.
In the present embodiment, picture to be processed is carried out after drawing burnt handle centered on point light source, saving drawing coke, treated Picture and will draw it is burnt treated that picture show on the display screen of terminal, so that user watches.In order to allow user to watch drawing Before coke processing and draw burnt treated picture, to be contrasted, in the present embodiment, will can draw simultaneously the picture before burnt processing and Draw it is burnt treated that picture is simultaneously displayed on display screen, with for comparison, wherein can will draw the picture before burnt processing and It draws burnt treated picture split screen display available on a display screen, can also will draw that burnt treated that picture suspends that burnt processing is being drawn in display On preceding picture, it is, of course, also possible to be other display modes.
Image processing method provided in this embodiment determines point light source in picture to be processed by obtaining picture to be processed Then the region at place carries out picture to be processed centered on point light source drawing burnt processing, in this way, rule radiation can be formed Line promotes the quality of picture to reach pearlescent effect, and without professional camera, more convenient user's operation is mentioned Satisfaction of users is risen.
Second embodiment
In order to better understand the present invention, the present embodiment combines more specifical example to be illustrated, shown in Figure 8, Fig. 8 is the image processing method refined flow chart that second embodiment of the invention provides, which includes:
S801, camera open command is received.
In the present embodiment, during terminal operating, camera open command is received, and open camera.
S802, preview picture is acquired by camera.
In the present embodiment, after camera unlatching, preview picture is acquired by camera.
S803, the region where determining point light source in preview picture.
In the present embodiment, using the preview picture of acquisition as picture to be processed, point light source place is determined from preview picture Region.In the present embodiment, according to region of the exposure value of picture to be processed where determining point light source in preview picture, if to It handles the difference of some region of exposure value and the exposure value of target area in picture and is greater than default second threshold exposure, then should Region is as the region where point light source, wherein target area is the region around the region in preset range, that is, with this Region is adjacent and region in the preset range.That is, the exposure value in the region where point light source subtracts point light source week The resulting difference of the exposure value in the region enclosed is greater than default second threshold exposure, wherein the second threshold exposure can be according to reality Need flexible setting.
It should be noted that be the region determined according to the exposure value in each region where point light source in the present embodiment, In other embodiments, the region where point light source can also be determined according to the brightness value in each region etc..
Region as where the point light source determined in preview picture then shows that there are points in the preview screen of acquisition Light source in the present embodiment, can reduce the light exposure of camera, can also be in this way, the preview picture overexposure of acquisition can be prevented In the preview picture for preventing acquisition, the halation of point light source is excessive.
S804, it is determined according to the position of point light source and draws burnt region.
In the present embodiment, circular ring shape area centered on point light source and adjacent with point light source is determined according to the position of point light source Domain is to draw burnt region, and the size of annulus can flexible setting according to actual needs.Certainly, in other embodiments, burnt region is drawn It can also be the region of other shapes.
S805, point light source is carried out in the burnt region of drawing centered on point light source to draw burnt processing to form radioactive ray.
In the present embodiment, point light source is carried out to draw burnt processing in the burnt region of drawing centered on point light source, in this way, can shape At a rule radioactive ray, so that preview picture shows pearlescent effect.
S806, photographing instruction is received.
In the present embodiment, photographing instruction can also be received.
S807, by the picture of shooting and draw to the picture of shooting that burnt treated that picture is simultaneously displayed on display screen On.
After receiving the photographing instruction, it saves the picture of original shooting and carrying out and draws burnt treated picture, and will shooting Picture and La Jiao treated picture split screen display available on a display screen, it is for reference.In the picture that will be shot and to shooting Picture draw it is burnt treated that picture is simultaneously displayed on before display screen, can also receive and check instruction, be looked into receiving After seeing instruction, just by the picture of shooting and La Jiao, treated that picture is simultaneously displayed on display screen.
Image processing method provided in this embodiment determines preview picture during camera acquires preview picture Then region where middle point light source carries out picture to be processed centered on point light source drawing burnt processing, in this way, can be formed with A rule radioactive ray centered on point light source promote the quality of picture, and without profession to reach pearlescent effect Camera can shoot the photo of shining effect, more convenient user's operation, satisfaction that the user experience is improved.
3rd embodiment
In order to better understand the present invention, the present embodiment combines more specifical example to be illustrated, shown in Figure 9, Fig. 9 is the image processing method refined flow chart that third embodiment of the invention provides, which includes:
S901, picture to be processed is obtained.
In the present embodiment, picture to be processed can be any image stored in terminal, for example, it may be terminal camera The picture of shooting is also possible to picture downloaded from network etc..
In the present embodiment, instruction is arranged according to picture to be processed and obtains picture to be processed, i.e., referred to picture to be processed setting Enable specified picture as picture to be processed.For example, user can set any one picture to picture to be processed, it is then right Point light source in the picture carries out drawing burnt processing.
S902, point light source setting instruction is received.
In the present embodiment, point light source setting instruction can receive.For example, user can be by clicking picture to be processed come under Send out point light source setting instruction.
S903, the region for instructing and determining in picture to be processed where point light source is set according to point light source.
In the present embodiment, after receiving point light source setting instruction, instruction is arranged according to point light source and determines picture to be processed Region where middle point light source.For example, accepting upper example, the position that user clicks is determined as to the region where point light source.
It should be noted that instruction is arranged according to point light source and determines in picture to be processed where point light source in the present embodiment Region can also be determined in other embodiments according to parameters such as brightness value, the exposure values in region each in picture to be processed Region where point light source.
S904, centered on point light source, point light source is carried out to draw burnt processing.
In the present embodiment, after the region where flirtatious light source has been determined, point light source is carried out to draw burnt processing, to be formed a little The radioactive ray of light source, in this way, picture to be processed can be made to show pearlescent effect.
S905, it saves and draws burnt treated picture.
Image processing method provided in this embodiment is arranged instruction according to point light source and determines after obtaining picture to be processed Then region in preview picture where point light source carries out picture to be processed centered on point light source drawing burnt processing, in this way, i.e. The rule radioactive ray centered on point light source can be formed, to reach pearlescent effect, promote the quality of picture, and Without professional camera, even if shooting has the picture of point light source to show pearlescent effect, more convenient user's operation is mentioned Satisfaction of users is risen.
Fourth embodiment
It is shown in Figure 10 the present embodiment provides a kind of terminal, terminal provided in this embodiment include processor 1001, Memory 1002 and communication bus 1003.
Wherein, the communication bus 1003 in the present embodiment is for realizing the connection between processor 1001 and memory 1002 Communication;
Processor 1001 is then for executing one or more program stored in memory 1002, to realize above-mentioned first Embodiment, second embodiment, in 3rd embodiment image processing method described at least one embodiment each step.
The present embodiment also provides a kind of computer readable storage medium, as floppy disk, CD, hard disk, flash memory, USB flash disk, CF card, SD card, mmc card etc. are stored with one or more program for realizing above-mentioned each step in the computer storage medium, this One or more program can be executed by one or more processor, to realize above-mentioned first embodiment, second embodiment, Each step of image processing method described at least one embodiment in three embodiments.
Terminal provided in this embodiment and computer readable storage medium are determined to be processed by obtaining picture to be processed Then region in picture where point light source carries out picture to be processed centered on point light source drawing burnt processing, in this way, can shape At a rule radioactive ray, to reach pearlescent effect, the quality of picture is promoted, and without professional camera, more just Just user's operation, satisfaction that the user experience is improved.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of image processing method, which is characterized in that the image processing method includes:
Obtain picture to be processed;
Determine the region in the picture to be processed where point light source;
The picture to be processed is carried out drawing burnt processing centered on the point light source.
2. image processing method as described in claim 1, which is characterized in that point light source in the determination picture to be processed The region at place includes:
Point light source institute in the picture to be processed is determined according to the brightness value and/or exposure value in each region in the picture to be processed Region.
3. image processing method as claimed in claim 2, which is characterized in that described according to each region in the picture to be processed Brightness value and/or exposure value determine that the region in the picture to be processed where point light source includes:
The region that brightness value in the picture to be processed is greater than default first luminance threshold is determined as to the region where point light source;
And/or
The region that exposure value in the picture to be processed is greater than default first threshold exposure is determined as to the region where point light source.
4. image processing method as claimed in claim 2, which is characterized in that described according to each region in the picture to be processed Brightness value and/or exposure value determine that the region in the picture to be processed where point light source includes:
Difference in the picture to be processed between brightness value and the brightness value of target area is greater than default second luminance threshold Region as the region where point light source, the target area be in the picture to be processed in addition to the region where point light source Region;
And/or
Difference in the picture to be processed between exposure value and the exposure value of the target area is greater than default second exposure The region of threshold value is as the region where point light source.
5. image processing method as described in claim 1, which is characterized in that point light source in the determination picture to be processed The region at place includes:
Receive point light source setting instruction;
The region instructed where determining point light source is set according to the point light source.
6. image processing method as described in claim 1, which is characterized in that described to obtain picture to be processed and include:
Preview picture is acquired by camera;
Using the preview picture as picture to be processed.
7. image processing method as claimed in claim 6, which is characterized in that point light source in the determination picture to be processed After the region at place, further includes:
Reduce the light exposure of the camera.
8. such as the described in any item image processing methods of claim 1-7, which is characterized in that described centered on the point light source Draw the burnt processing to include: in the picture to be processed
It is determined according to the position of the point light source and draws burnt region;
It carries out drawing burnt processing in the burnt region of the drawing centered on the point light source.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of image processing method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in image processing method the step of.
CN201910082109.7A 2019-01-28 2019-01-28 A kind of image processing method, terminal and computer readable storage medium Pending CN109872271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082109.7A CN109872271A (en) 2019-01-28 2019-01-28 A kind of image processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082109.7A CN109872271A (en) 2019-01-28 2019-01-28 A kind of image processing method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109872271A true CN109872271A (en) 2019-06-11

Family

ID=66918139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082109.7A Pending CN109872271A (en) 2019-01-28 2019-01-28 A kind of image processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109872271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338956A (en) * 2020-09-30 2022-04-12 北京小米移动软件有限公司 Image processing method, image processing apparatus, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092912B1 (en) * 2012-06-20 2015-07-28 Madefire, Inc. Apparatus and method for parallax, panorama and focus pull computer graphics
US20160050360A1 (en) * 2013-04-05 2016-02-18 Cinema Control Laboratories Inc. System and Method for Controlling an Equipment Related to Image Capture
CN106780408A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 Image processing method and device
CN107085841A (en) * 2017-02-28 2017-08-22 努比亚技术有限公司 A kind of picture draws burnt processing method and terminal
CN107517347A (en) * 2017-08-10 2017-12-26 维沃移动通信有限公司 A kind of asterism image pickup method and mobile terminal
CN108989685A (en) * 2018-08-31 2018-12-11 努比亚技术有限公司 A kind of burnt processing method of drawing, terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092912B1 (en) * 2012-06-20 2015-07-28 Madefire, Inc. Apparatus and method for parallax, panorama and focus pull computer graphics
US20160050360A1 (en) * 2013-04-05 2016-02-18 Cinema Control Laboratories Inc. System and Method for Controlling an Equipment Related to Image Capture
CN106780408A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 Image processing method and device
CN107085841A (en) * 2017-02-28 2017-08-22 努比亚技术有限公司 A kind of picture draws burnt processing method and terminal
CN107517347A (en) * 2017-08-10 2017-12-26 维沃移动通信有限公司 A kind of asterism image pickup method and mobile terminal
CN108989685A (en) * 2018-08-31 2018-12-11 努比亚技术有限公司 A kind of burnt processing method of drawing, terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338956A (en) * 2020-09-30 2022-04-12 北京小米移动软件有限公司 Image processing method, image processing apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN109729266A (en) A kind of image capturing method, terminal and computer readable storage medium
CN108495056A (en) Photographic method, mobile terminal and computer readable storage medium
CN109348123A (en) Photographic method, mobile terminal and computer readable storage medium
CN108900778A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN108600647A (en) Shooting preview method, mobile terminal and storage medium
CN109525782A (en) A kind of image pickup method, terminal and computer readable storage medium
CN108196750A (en) The method, apparatus and computer readable storage medium of screen interface sectional drawing
CN109361960A (en) Barrage display methods, device, mobile terminal and readable storage medium storing program for executing
CN109889695A (en) A kind of image-region determines method, terminal and computer readable storage medium
CN108184052A (en) A kind of method of video record, mobile terminal and computer readable storage medium
CN109639996A (en) High dynamic scene imaging method, mobile terminal and computer readable storage medium
CN108989873A (en) Barrage information display method, mobile terminal and computer readable storage medium
CN109525783A (en) A kind of exposure image pickup method, terminal and computer readable storage medium
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN108965710A (en) Method, photo taking, device and computer readable storage medium
CN109819163A (en) A kind of image processing control, terminal and computer readable storage medium
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN110032887A (en) A kind of picture method for secret protection, terminal and computer readable storage medium
CN108900779A (en) Initial automatic exposure convergence method, mobile terminal and computer readable storage medium
CN108650466A (en) The method and electronic equipment of photo tolerance are promoted when a kind of strong light or reversible-light shooting portrait
CN108241808A (en) identification code display control method, terminal and computer readable storage medium
CN110086993A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN110177207A (en) Image pickup method, mobile terminal and the computer readable storage medium of backlight image
CN109005354A (en) Image pickup method, mobile terminal and computer readable storage medium
CN108566456A (en) Image pickup method, mobile terminal and computer readable storage medium

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

Application publication date: 20190611

RJ01 Rejection of invention patent application after publication