CN105227838A - A kind of image processing method and mobile terminal - Google Patents

A kind of image processing method and mobile terminal Download PDF

Info

Publication number
CN105227838A
CN105227838A CN201510634256.2A CN201510634256A CN105227838A CN 105227838 A CN105227838 A CN 105227838A CN 201510634256 A CN201510634256 A CN 201510634256A CN 105227838 A CN105227838 A CN 105227838A
Authority
CN
China
Prior art keywords
photograph subject
mobile terminal
viewing area
taking pictures
distance
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.)
Granted
Application number
CN201510634256.2A
Other languages
Chinese (zh)
Other versions
CN105227838B (en
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 CN201510634256.2A priority Critical patent/CN105227838B/en
Publication of CN105227838A publication Critical patent/CN105227838A/en
Application granted granted Critical
Publication of CN105227838B publication Critical patent/CN105227838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

Embodiments provide a kind of image processing method and mobile terminal, described method comprises: the focus operation detecting the preview interface input of taking pictures for mobile terminal, and determine focusing that described focus operation is corresponding from; The first distance of each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise is obtained by range sensor; Determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range; Fuzzy processing is carried out to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.Can accurately determine the photograph subject needing Fuzzy Processing by the embodiment of the present invention, thus give prominence to main body of taking pictures exactly.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to technical field of image processing, be specifically related to a kind of image processing method and mobile terminal.
Background technology
At present, most of mobile terminal (such as smart mobile phone, panel computer etc.) all has camera function, the camera of these mobile terminals is limited to the relation of volume, its physics focal length is generally immutable, thus is difficult to the virtualization picture (i.e. little depth of field picture) taking outstanding take pictures main body and blurred background.Prior art is generally carry out post-processed by software, to obtain virtualization picture, but can there is the defect that virtualization effect is unnatural, virtualization region is not accurate enough, be difficult to reach gratifying virtualization effect.
Summary of the invention
Embodiments provide a kind of image processing method and mobile terminal, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
Embodiment of the present invention first aspect provides a kind of image processing method, comprising:
Detect the focus operation of the preview interface input of taking pictures for mobile terminal, and determine focusing that described focus operation is corresponding from;
The first distance of each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise is obtained by range sensor;
Determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range;
Fuzzy processing is carried out to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
Optionally, described the first distance being obtained each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise by range sensor, being comprised:
Described preview interface of taking pictures is divided into M viewing area;
The N number of range sensor on described mobile terminal is utilized to obtain the first distance of each photograph subject that the camera of described mobile terminal and a described M viewing area comprise;
Wherein, described M and described N is the integer being more than or equal to 1.
Optionally, described determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range, comprising:
For the photograph subject that each viewing area in a described M viewing area comprises, calculate described first distance and described focusing from difference, and judge whether described difference is within the scope of predeterminable range;
If so, then difference described in a described M viewing area is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject.
Optionally, described Fuzzy processing is carried out to other photograph subject in each photograph subject described except described target photograph subject, comprising:
Determine that described target photograph subject is in described target viewing area of taking pictures in preview interface, carries out Fuzzy processing to the pixel that other viewing area in described preview interface of taking pictures except described target viewing area comprises by Gaussian Blur algorithm.
Optionally, described focusing is from being the photo-sensitive cell of described camera and the distance of focal plane.
Embodiment of the present invention second aspect provides a kind of mobile terminal, comprising:
Detection module, for detecting the focus operation of the preview interface input of taking pictures for mobile terminal;
Determination module, for determine focusing that described focus operation is corresponding from;
Acquisition module, the first distance of each photograph subject that camera and described preview interface of taking pictures for being obtained described mobile terminal by range sensor are comprised;
Described determination module, also for determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range;
Processing module, for carrying out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
Optionally, described acquisition module comprises:
Division unit, for being divided into M viewing area by described preview interface of taking pictures;
Acquiring unit, for the first distance utilizing the N number of range sensor on described mobile terminal to obtain each photograph subject that the camera of described mobile terminal and a described M viewing area comprise;
Wherein, described M and described N is the integer being more than or equal to 1.
Optionally, described determination module comprises:
Computing unit, for the photograph subject comprised for each viewing area in a described M viewing area, calculate described first distance and described focusing from difference;
Judging unit, for judging whether described difference is within the scope of predeterminable range;
Determining unit, for when described judging unit judges that described difference is within the scope of described predeterminable range, is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject by difference described in a described M viewing area.
Optionally, described processing module to the concrete mode that other photograph subject in each photograph subject described except described target photograph subject carries out Fuzzy processing is:
Determine that described target photograph subject is in described target viewing area of taking pictures in preview interface, carries out Fuzzy processing to the pixel that other viewing area in described preview interface of taking pictures except described target viewing area comprises by Gaussian Blur algorithm.
Optionally, described focusing is from being the photo-sensitive cell of described camera and the distance of focal plane.
By the present embodiment can determine mobile terminal take pictures preview interface input focusing corresponding to focus operation from, first distance of each photograph subject comprised by range sensor acquisition camera and this preview interface of taking pictures, and determine this first distance and this focusing in this each photograph subject from the target photograph subject of difference within the scope of predeterminable range, and then Fuzzy processing is carried out to other photograph subject in this each photograph subject except this target photograph subject, and generate picture of taking pictures, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of a kind of image processing method that the embodiment of the present invention provides;
Fig. 2 is the second embodiment schematic flow sheet of a kind of image processing method that the embodiment of the present invention provides;
Fig. 3 is the first example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 4 is the second example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the 3rd example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Mobile terminal described in the embodiment of the present invention can be such as mobile phone, computer, panel computer, personal digital assistant's (English: PersonalDigitalAssistant, abbreviation: PDA), mobile internet device (English: MobileInternetDevice, MID) and wearable device etc. abbreviation:.
Referring to Fig. 1, is the first embodiment schematic flow sheet of a kind of image processing method that the embodiment of the present invention provides.Image processing method described in the present embodiment, comprises the following steps:
S101, mobile terminal detect the focus operation for preview interface input of taking pictures, and determine focusing that described focus operation is corresponding from.
Wherein, mobile terminal can be provided with the application software being specifically designed to and controlling camera, as camera applications, mobile terminal can control camera according to the operation of user by camera applications and perform various action, comprise enable/close camera, control camera to take pictures, record a video, and the zoom, focusing etc. when taking pictures.Mobile terminal is started after camera by camera applications according to the operation of user, and can to take pictures preview interface by real-time exhibition in the display interface of camera applications, the picture captured in real time by camera shows user by the display interface of camera applications.
Wherein, cross camera focus and the plane parallel with the camera lens of camera is focal plane, when utilizing camera to take pictures, the scenery imaging being in focal plane position is the most clear, the photo-sensitive cell of camera and the distance of focal plane be focusing from.
It should be noted that, because the recognition capability of human eye is limited, the scenery imaging before and after focal plane within the scope of certain distance still can be thought the most clearly.
In specific implementation, when user uses the camera of mobile terminal to take pictures to the picture that multiple photograph subject (such as human body, sky, trees) forms, focus operation can be realized by click, touch etc. in preview interface of taking pictures, in the position of this preview interface of taking pictures, mobile terminal can determine that user wants certain photograph subject highlighted according to focus operation, such as, focus operation is carried out to the position at human body place in this preview interface of taking pictures, then now human body is in the position of focal plane, and human body imaging is the most clear.
Further, mobile terminal can determine distance between the focal plane of this focus operation and the photo-sensitive cell of camera according to this focus operation in the positional information of this preview interface of taking pictures, namely focusing from.
S102, described mobile terminal obtain the first distance of each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise by range sensor.
In specific implementation, multiple range sensor is provided with around the camera of mobile terminal, each range sensor can be specified to be responsible for measuring the distance of the photograph subject that zones of different comprises in this camera and this preview interface of taking pictures separately, and then to obtain the first distance between each photograph subject that this camera and this preview interface of taking pictures comprise.
Wherein, this Distance-sensing implement body can be infrared distance sensor or ultrasonic distance sensor.
S103, described mobile terminal determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range.
Concrete, distance between each photograph subject that this camera and this preview interface of taking pictures in first distance comprise by mobile terminal one by one with this focusing from carrying out mathematic interpolation, and difference photograph subject of (close together of photograph subject and focal plane) within the scope of predeterminable range can be defined as target photograph subject, namely user wants the photograph subject highlighting (or clear display).
In the execution mode that some are feasible, whether this each photograph subject of Distance Judgment that mobile terminal also can be taken pictures between each photograph subject that preview interface comprises according to this camera and this is in the field depth that this focus operation is corresponding, thus the photograph subject be in field depth is defined as target photograph subject, namely user wants the photograph subject highlighting (or clear display).
Wherein, the depth of field refers to that the human eye extended out before and after focus in imaging thinks area of space scope clearly.
S104, described mobile terminal carry out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generate picture of taking pictures.
In specific implementation, after mobile terminal determines the target photograph subject needing to highlight, Fuzzy processing can be carried out to other photograph subject, to obtain the outstanding effect more significantly picture of this target photograph subject, and then according to the photographing operation of user (such as press button of taking pictures, length presses preview interface of taking pictures, acoustic control inputs photographing instruction etc.), the picture after the display effect process of this other photograph subject can be exported to user as picture of taking pictures.
By the present embodiment can determine mobile terminal take pictures preview interface input focusing corresponding to focus operation from, first distance of each photograph subject comprised by range sensor acquisition camera and this preview interface of taking pictures, and determine this first distance and this focusing in this each photograph subject from the target photograph subject of difference within the scope of predeterminable range, and then Fuzzy processing is carried out to other photograph subject in this each photograph subject except this target photograph subject, and generate picture of taking pictures, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
Referring to Fig. 2, is the second embodiment schematic flow sheet of a kind of image processing method that the embodiment of the present invention provides.Image processing method described in the present embodiment, comprises the following steps:
S201, mobile terminal detect the focus operation for preview interface input of taking pictures, and determine focusing that described focus operation is corresponding from.
Wherein, cross camera focus and the plane parallel with the camera lens of camera is focal plane, when utilizing camera to take pictures, the scenery imaging being in focal plane position is the most clear, the photo-sensitive cell of camera and the distance of focal plane be focusing from.
It should be noted that, because the recognition capability of human eye is limited, the scenery imaging before and after focal plane within the scope of certain distance still can be thought the most clearly.
In specific implementation, when user uses the camera of mobile terminal to take pictures to the picture that multiple photograph subject (such as human body, sky, trees) forms, focus operation can be realized by click, touch etc. in preview interface of taking pictures, in the position of this preview interface of taking pictures, mobile terminal can determine that user wants certain photograph subject highlighted according to focus operation, such as, focus operation is carried out to the position at human body place in this preview interface of taking pictures, then now human body is in the position of focal plane, and human body imaging is the most clear.
Further, mobile terminal can determine distance between the focal plane of this focus operation and the photo-sensitive cell of camera according to this focus operation in the positional information of this preview interface of taking pictures, namely focusing from.
Described preview interface of taking pictures is divided into M viewing area by S202, described mobile terminal.
S203, described mobile terminal utilize N number of range sensor to obtain the first distance of each photograph subject that the camera of described mobile terminal and a described M viewing area comprise.
Wherein, M, N are the integer being more than or equal to 1.
Concrete, preview interface of taking pictures can be divided into M viewing area by mobile terminal, the first distance utilizing N number of range sensor to measure respectively between display object that this camera and this M viewing area comprise, such as, the display object utilizing a range sensor to measure one or more viewing area to comprise, or the display object utilizing multiple range sensor to measure same viewing area to comprise.
Wherein, the shape of this viewing area is specifically as follows circle or polygon, and the embodiment of the present invention does not limit.
The photograph subject that S204, described mobile terminal comprise for each viewing area in a described M viewing area, calculate described first distance and described focusing from difference, and judge whether described difference is within the scope of predeterminable range, if so, then perform step S205.
Difference described in a described M viewing area is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject by S205, described mobile terminal.
Concrete, distance between each photograph subject that this camera and this M viewing area in first distance comprise by mobile terminal one by one with this focusing from carrying out mathematic interpolation, and difference photograph subject of (close together of photograph subject and focal plane) within the scope of predeterminable range can be defined as target photograph subject, namely user wants the photograph subject highlighting (or clear display).
It should be noted that, this target photograph subject specifically can comprise multiple photograph subject, such as, user A uses camera to user B, user C, when the picture of sky and trees composition is taken pictures, user B and user C separately stands side by side, and when user C is equal or close to the distance of camera to distance and the user B of camera, if user A is at the viewing area input focus operation that in preview interface, user B is corresponding of taking pictures, then mobile terminal can determine that user B and user C is target photograph subject, namely user A wants the photograph subject highlighting (or clear display).
In the execution mode that some are feasible, whether this each photograph subject of Distance Judgment that mobile terminal also can be taken pictures between each photograph subject that preview interface comprises according to this camera and this is in the field depth that this focus operation is corresponding, thus the photograph subject be in field depth is defined as target photograph subject, namely user wants the photograph subject highlighting (or clear display).
Wherein, the depth of field refers to that the human eye extended out before and after focus in imaging thinks area of space scope clearly.
S206, described mobile terminal carry out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generate picture of taking pictures.
In specific implementation, first mobile terminal determines the target viewing area that target photograph subject is taken pictures in preview interface at this, and then by Gaussian Blur algorithm, Fuzzy processing is carried out to the pixel that other viewing area in this preview interface of taking pictures except this target viewing area comprises, and the picture after the display effect process of this other viewing area is exported to user as picture of taking pictures.
By the present embodiment can determine mobile terminal take pictures preview interface input focusing corresponding to focus operation from, preview interface of this being taken pictures is divided into M viewing area, and then utilizes N number of range sensor to obtain the first distance of each photograph subject that the camera of this mobile terminal and this M viewing area comprise, for the photograph subject that each viewing area in this M viewing area comprises, calculate this first distance and this focusing from difference, and judge whether this difference is within the scope of predeterminable range, if, then this difference in this M viewing area is in the photograph subject that the viewing area within the scope of this predeterminable range comprises and is defined as target photograph subject, and then Fuzzy processing is carried out to other photograph subject in this each photograph subject except this target photograph subject, and generate picture of taking pictures, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
Referring to Fig. 3, is the first example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides.Mobile terminal described in the present embodiment, comprising: detection module 301, determination module 302, acquisition module 303 and processing module 304, wherein:
Detection module 301, for detecting the focus operation of the preview interface input of taking pictures for mobile terminal.
Wherein, mobile terminal can be provided with the application software being specifically designed to and controlling camera, as camera applications, mobile terminal can control camera according to the operation of user by camera applications and perform various action, comprise enable/close camera, control camera to take pictures, record a video, and the zoom, focusing etc. when taking pictures.Mobile terminal is started after camera by camera applications according to the operation of user, and can to take pictures preview interface by real-time exhibition in the display interface of camera applications, the picture captured in real time by camera shows user by the display interface of camera applications.
Wherein, cross camera focus and the plane parallel with the camera lens of camera is focal plane, when utilizing camera to take pictures, the scenery imaging being in focal plane position is the most clear, the photo-sensitive cell of camera and the distance of focal plane be focusing from.
It should be noted that, because the recognition capability of human eye is limited, the scenery imaging before and after focal plane within the scope of certain distance still can be thought the most clearly.
Determination module 302, for determine focusing that described focus operation is corresponding from.
In specific implementation, when user uses the camera of mobile terminal to take pictures to the picture that multiple photograph subject (such as human body, sky, trees) forms, focus operation can be realized by click, touch etc. in preview interface of taking pictures, in the position of this preview interface of taking pictures, determination module 302 can determine that user wants certain photograph subject highlighted according to focus operation, such as, focus operation is carried out to the position at human body place in this preview interface of taking pictures, then now human body is in the position of focal plane, and human body imaging is the most clear.
Further, this focus operation that determination module 302 can detect according to detection module 301 determines the distance between the focal plane of this focus operation and the photo-sensitive cell of camera in the positional information of this preview interface of taking pictures, namely focusing from.
Acquisition module 303, the first distance of each photograph subject that camera and described preview interface of taking pictures for being obtained described mobile terminal by range sensor are comprised.
In specific implementation, multiple range sensor is provided with around the camera of mobile terminal, each range sensor can be specified to be responsible for measuring the distance of the photograph subject that zones of different comprises in this camera and this preview interface of taking pictures separately, and then acquisition module 303 obtain the first distance between each photograph subject that this camera and this preview interface of taking pictures comprise.
Wherein, this Distance-sensing implement body can be infrared distance sensor or ultrasonic distance sensor.
Described determination module 302, also for determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range.
Concrete, distance between each photograph subject that this camera and this preview interface of taking pictures in first distance comprise by determination module 302 one by one with this focusing from carrying out mathematic interpolation, and difference photograph subject of (close together of photograph subject and focal plane) within the scope of predeterminable range can be defined as target photograph subject, namely user wants the photograph subject highlighting (or clear display).
In the execution mode that some are feasible, whether this each photograph subject of Distance Judgment that determination module 302 also can be taken pictures between each photograph subject that preview interface comprises according to this camera and this is in the field depth that this focus operation is corresponding, thus the photograph subject be in field depth is defined as target photograph subject by determination module 302, namely user wants the photograph subject highlighting (or clear display).
Wherein, the depth of field refers to that the human eye extended out before and after focus in imaging thinks area of space scope clearly.
Processing module 304, for carrying out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
In specific implementation, after determination module 302 determines the target photograph subject needing to highlight, processing module 304 can carry out Fuzzy processing to other photograph subject, to obtain the outstanding effect more significantly picture of this target photograph subject, and then the picture after the display effect process of this other photograph subject according to the photographing operation of user (such as press button of taking pictures, length presses preview interface of taking pictures, acoustic control inputs photographing instruction etc.), can be exported to user as picture of taking pictures by processing module 304.
By the present embodiment can determine mobile terminal take pictures preview interface input focusing corresponding to focus operation from, first distance of each photograph subject comprised by range sensor acquisition camera and this preview interface of taking pictures, and determine this first distance and this focusing in this each photograph subject from the target photograph subject of difference within the scope of predeterminable range, and then Fuzzy processing is carried out to other photograph subject in this each photograph subject except this target photograph subject, and generate picture of taking pictures, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
Referring to Fig. 4, is the second example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides.Mobile terminal described in the present embodiment, comprising: detection module 401, determination module 402, acquisition module 403 and processing module 404, wherein:
Detection module 401, for detecting the focus operation of the preview interface input of taking pictures for mobile terminal.
Determination module 402, for determine focusing that described focus operation is corresponding from.
Wherein, cross camera focus and the plane parallel with the camera lens of camera is focal plane, when utilizing camera to take pictures, the scenery imaging being in focal plane position is the most clear, the photo-sensitive cell of camera and the distance of focal plane be focusing from.
It should be noted that, because the recognition capability of human eye is limited, the scenery imaging before and after focal plane within the scope of certain distance still can be thought the most clearly.
In specific implementation, when user uses the camera of mobile terminal to take pictures to the picture that multiple photograph subject (such as human body, sky, trees) forms, focus operation can be realized by click, touch etc. in preview interface of taking pictures, in the position of this preview interface of taking pictures, determination module 402 can determine that user wants certain photograph subject highlighted according to focus operation, such as, focus operation is carried out to the position at human body place in this preview interface of taking pictures, then now human body is in the position of focal plane, and human body imaging is the most clear.
Further, this focus operation that determination module 402 can detect according to detection module 401 determines the distance between the focal plane of this focus operation and the photo-sensitive cell of camera in the positional information of this preview interface of taking pictures, namely focusing from.
Acquisition module 403, the first distance of each photograph subject that camera and described preview interface of taking pictures for being obtained described mobile terminal by range sensor are comprised.
Acquisition module 403 specifically comprises division unit 4030 and acquiring unit 4031, wherein:
Division unit 4030, for being divided into M viewing area by described preview interface of taking pictures.
Acquiring unit 4031, for the first distance utilizing the N number of range sensor on described mobile terminal to obtain each photograph subject that the camera of described mobile terminal and a described M viewing area comprise.
Wherein, M, N are the integer being more than or equal to 1.
Concrete, preview interface of taking pictures can be divided into M viewing area by division unit 4030, the first distance that acquiring unit 4031 utilizes N number of range sensor to measure respectively between display object that this camera and this M viewing area comprise, such as, the display object that acquiring unit 4031 utilizes a range sensor to measure one or more viewing area to comprise, or the display object that acquiring unit 4031 utilizes multiple range sensor to measure same viewing area to comprise.
Wherein, the shape of this viewing area is specifically as follows circle or polygon, and the embodiment of the present invention does not limit.
Described determination module 402, also for determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range.
Described determination module 402 specifically comprises computing unit 4020, judging unit 4021 and determining unit 4022, wherein:
Computing unit 4020, for the photograph subject comprised for each viewing area in a described M viewing area, calculate described first distance and described focusing from difference.
Judging unit 4021, for judging whether described difference is within the scope of predeterminable range.
Determining unit 4022, for when described judging unit judges that described difference is within the scope of described predeterminable range, difference described in a described M viewing area is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject.
Concrete, distance between each photograph subject that this camera and this M viewing area in first distance comprise by computing unit 4020 one by one with this focusing from carrying out mathematic interpolation, and difference photograph subject determining unit 4022 of (close together of photograph subject and focal plane) within the scope of predeterminable range can be defined as target photograph subject, namely user wants the photograph subject highlighting (or clear display).
It should be noted that, this target photograph subject specifically can comprise multiple photograph subject, such as, user A uses camera to user B, user C, when the picture of sky and trees composition is taken pictures, user B and user C separately stands side by side, and when user C is equal or close to the distance of camera to distance and the user B of camera, if user A is at the viewing area input focus operation that in preview interface, user B is corresponding of taking pictures, then mobile terminal can determine that user B and user C is target photograph subject, namely user A wants the photograph subject highlighting (or clear display).
In the execution mode that some are feasible, whether this each photograph subject of Distance Judgment that determination module 402 also can be taken pictures between each photograph subject that preview interface comprises according to this camera and this is in the field depth that this focus operation is corresponding, thus the photograph subject be in field depth is defined as target photograph subject by determination module 402, namely user wants the photograph subject highlighting (or clear display).
Wherein, the depth of field refers to that the human eye extended out before and after focus in imaging thinks area of space scope clearly.
Processing module 404, for carrying out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
In specific implementation, first processing module 404 determines the target viewing area that target photograph subject is taken pictures in preview interface at this, and then by Gaussian Blur algorithm, Fuzzy processing is carried out to the pixel that other viewing area in this preview interface of taking pictures except this target viewing area comprises, and the picture after the display effect process of this other viewing area is exported to user as picture of taking pictures.
By the present embodiment can determine mobile terminal take pictures preview interface input focusing corresponding to focus operation from, preview interface of this being taken pictures is divided into M viewing area, and then utilizes N number of range sensor to obtain the first distance of each photograph subject that the camera of this mobile terminal and this M viewing area comprise, for the photograph subject that each viewing area in this M viewing area comprises, calculate this first distance and this focusing from difference, and judge whether this difference is within the scope of predeterminable range, if, then this difference in this M viewing area is in the photograph subject that the viewing area within the scope of this predeterminable range comprises and is defined as target photograph subject, and then Fuzzy processing is carried out to other photograph subject in this each photograph subject except this target photograph subject, and generate picture of taking pictures, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
Referring to Fig. 5, is the 3rd example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides.Mobile terminal described in the present embodiment, comprising: at least one input equipment 501; At least one output equipment 502; At least one processor 503, such as CPU; With memory 504, above-mentioned input equipment 501, output equipment 502, processor 503 are connected by bus 505 with memory 504.
Wherein, above-mentioned input equipment 501 specifically can be the touch-screen of mobile terminal, for detecting the touch operation of user's input.
Above-mentioned output equipment 502 specifically can be the display screen of mobile terminal, for showing the data messages such as picture of taking pictures.
Above-mentioned memory 504 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as magnetic disc store.Above-mentioned memory 504 is for storing batch processing code, and above-mentioned input equipment 501, output equipment 502 and processor 503, for calling the program code stored in memory 504, perform and operate as follows:
Above-mentioned input equipment 501, for detecting the focus operation of the preview interface input of taking pictures for mobile terminal.
Above-mentioned processor 503, for determine focusing that described focus operation is corresponding from, and obtained the first distance of each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise by range sensor.
Above-mentioned processor 503, also for determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range.
Above-mentioned processor 503, also for carrying out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
Above-mentioned output equipment 502, for picture of taking pictures described in exporting.
In the execution mode that some are feasible, above-mentioned processor 503 obtains the first distance of each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise concrete mode by range sensor is:
Described preview interface of taking pictures is divided into M viewing area;
The N number of range sensor on described mobile terminal is utilized to obtain the first distance of each photograph subject that the camera of described mobile terminal and a described M viewing area comprise;
Wherein, described M and described N is the integer being more than or equal to 1.
In the execution mode that some are feasible, above-mentioned processor 503 determine the first distance described in each photograph subject described and described focusing from the concrete mode of the target photograph subject of difference within the scope of predeterminable range be:
For the photograph subject that each viewing area in a described M viewing area comprises, calculate described first distance and described focusing from difference, and judge whether described difference is within the scope of predeterminable range;
If so, then difference described in a described M viewing area is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject.
In the execution mode that some are feasible, above-mentioned processor 503 to the concrete mode that other photograph subject in each photograph subject described except described target photograph subject carries out Fuzzy processing is:
Determine that described target photograph subject is in described target viewing area of taking pictures in preview interface, carries out Fuzzy processing to the pixel that other viewing area in described preview interface of taking pictures except described target viewing area comprises by Gaussian Blur algorithm.
In the execution mode that some are feasible, described focusing is from being the photo-sensitive cell of described camera and the distance of focal plane.
In specific implementation, input equipment 501 described in the embodiment of the present invention, output equipment 502 and processor 503 can perform the first embodiment of a kind of image processing method that the embodiment of the present invention provides and the implementation described in the second embodiment, also can perform the implementation of the first embodiment of a kind of mobile terminal that the embodiment of the present invention provides and the mobile terminal described in the second embodiment, not repeat them here.
By the present embodiment can determine mobile terminal take pictures preview interface input focusing corresponding to focus operation from, first distance of each photograph subject comprised by range sensor acquisition camera and this preview interface of taking pictures, and determine this first distance and this focusing in this each photograph subject from the target photograph subject of difference within the scope of predeterminable range, and then Fuzzy processing is carried out to other photograph subject in this each photograph subject except this target photograph subject, and generate picture of taking pictures, can accurately determine the photograph subject needing Fuzzy Processing, thus give prominence to main body of taking pictures exactly.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
A kind of image processing method provided the embodiment of the present invention above and mobile terminal are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. an image processing method, is characterized in that, comprising:
Detect the focus operation of the preview interface input of taking pictures for mobile terminal, and determine focusing that described focus operation is corresponding from;
The first distance of each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise is obtained by range sensor;
Determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range;
Fuzzy processing is carried out to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
2. method according to claim 1, is characterized in that, described the first distance being obtained each photograph subject that the camera of described mobile terminal and described preview interface of taking pictures comprise by range sensor, being comprised:
Described preview interface of taking pictures is divided into M viewing area;
The N number of range sensor on described mobile terminal is utilized to obtain the first distance of each photograph subject that the camera of described mobile terminal and a described M viewing area comprise;
Wherein, described M and described N is the integer being more than or equal to 1.
3. method according to claim 2, is characterized in that, described determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range, comprising:
For the photograph subject that each viewing area in a described M viewing area comprises, calculate described first distance and described focusing from difference, and judge whether described difference is within the scope of predeterminable range;
If so, then difference described in a described M viewing area is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject.
4. the method according to any one of claims 1 to 3, is characterized in that, describedly carries out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, comprising:
Determine that described target photograph subject is in described target viewing area of taking pictures in preview interface, carries out Fuzzy processing to the pixel that other viewing area in described preview interface of taking pictures except described target viewing area comprises by Gaussian Blur algorithm.
5. method according to claim 1, is characterized in that,
Described focusing is from being the photo-sensitive cell of described camera and the distance of focal plane.
6. a mobile terminal, is characterized in that, comprising:
Detection module, for detecting the focus operation of the preview interface input of taking pictures for mobile terminal;
Determination module, for determine focusing that described focus operation is corresponding from;
Acquisition module, the first distance of each photograph subject that camera and described preview interface of taking pictures for being obtained described mobile terminal by range sensor are comprised;
Described determination module, also for determine the first distance described in each photograph subject described and described focusing from the target photograph subject of difference within the scope of predeterminable range;
Processing module, for carrying out Fuzzy processing to other photograph subject in each photograph subject described except described target photograph subject, and generates picture of taking pictures.
7. mobile terminal according to claim 6, is characterized in that, described acquisition module comprises:
Division unit, for being divided into M viewing area by described preview interface of taking pictures;
Acquiring unit, for the first distance utilizing the N number of range sensor on described mobile terminal to obtain each photograph subject that the camera of described mobile terminal and a described M viewing area comprise;
Wherein, described M and described N is the integer being more than or equal to 1.
8. mobile terminal according to claim 7, is characterized in that, described determination module comprises:
Computing unit, for the photograph subject comprised for each viewing area in a described M viewing area, calculate described first distance and described focusing from difference;
Judging unit, for judging whether described difference is within the scope of predeterminable range;
Determining unit, for when described judging unit judges that described difference is within the scope of described predeterminable range, is in the photograph subject that the viewing area within the scope of described predeterminable range comprises and is defined as target photograph subject by difference described in a described M viewing area.
9. the mobile terminal according to any one of claim 6 ~ 8, is characterized in that, described processing module to the concrete mode that other photograph subject in each photograph subject described except described target photograph subject carries out Fuzzy processing is:
Determine that described target photograph subject is in described target viewing area of taking pictures in preview interface, carries out Fuzzy processing to the pixel that other viewing area in described preview interface of taking pictures except described target viewing area comprises by Gaussian Blur algorithm.
10. mobile terminal according to claim 6, is characterized in that,
Described focusing is from being the photo-sensitive cell of described camera and the distance of focal plane.
CN201510634256.2A 2015-09-28 2015-09-28 A kind of image processing method and mobile terminal Active CN105227838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510634256.2A CN105227838B (en) 2015-09-28 2015-09-28 A kind of image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510634256.2A CN105227838B (en) 2015-09-28 2015-09-28 A kind of image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105227838A true CN105227838A (en) 2016-01-06
CN105227838B CN105227838B (en) 2018-07-06

Family

ID=54996489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510634256.2A Active CN105227838B (en) 2015-09-28 2015-09-28 A kind of image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105227838B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898145A (en) * 2016-05-03 2016-08-24 深圳市金立通信设备有限公司 Photographing method and terminal
CN105933589A (en) * 2016-06-28 2016-09-07 广东欧珀移动通信有限公司 Image processing method and terminal
CN106101542A (en) * 2016-06-28 2016-11-09 广东欧珀移动通信有限公司 A kind of image processing method and terminal
CN106454123A (en) * 2016-11-25 2017-02-22 滁州昭阳电信通讯设备科技有限公司 Shooting focusing method and mobile terminal
CN106791375A (en) * 2016-11-29 2017-05-31 维沃移动通信有限公司 One kind shoots focusing method and mobile terminal
CN107277378A (en) * 2017-08-04 2017-10-20 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107592466A (en) * 2017-10-13 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107920211A (en) * 2017-12-28 2018-04-17 深圳市金立通信设备有限公司 A kind of photographic method, terminal and computer-readable recording medium
CN108055458A (en) * 2017-12-18 2018-05-18 信利光电股份有限公司 A kind of focus method for tracing, device, equipment and computer readable storage medium
CN108749246A (en) * 2018-04-18 2018-11-06 南通达成包装制品有限公司 The single watt of machine with temp monitoring function
CN110058483A (en) * 2018-01-18 2019-07-26 深圳光峰科技股份有限公司 Autofocus system, projection device, Atomatic focusing method and storage medium
CN111464734A (en) * 2019-01-18 2020-07-28 北京小米移动软件有限公司 Method and device for processing image data
CN112889265A (en) * 2018-11-02 2021-06-01 Oppo广东移动通信有限公司 Depth image processing method, depth image processing device and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764925A (en) * 2008-12-25 2010-06-30 华晶科技股份有限公司 Simulation method for shallow field depth of digital image
CN102801908A (en) * 2011-05-23 2012-11-28 联咏科技股份有限公司 Shallow depth-of-field simulation method and digital camera
US20130071042A1 (en) * 2011-09-15 2013-03-21 Sony Corporation Image processor, image processing method, and computer readable medium
CN103905725A (en) * 2012-12-27 2014-07-02 佳能株式会社 Image processing apparatus and image processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764925A (en) * 2008-12-25 2010-06-30 华晶科技股份有限公司 Simulation method for shallow field depth of digital image
CN102801908A (en) * 2011-05-23 2012-11-28 联咏科技股份有限公司 Shallow depth-of-field simulation method and digital camera
US20130071042A1 (en) * 2011-09-15 2013-03-21 Sony Corporation Image processor, image processing method, and computer readable medium
CN103905725A (en) * 2012-12-27 2014-07-02 佳能株式会社 Image processing apparatus and image processing method

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898145A (en) * 2016-05-03 2016-08-24 深圳市金立通信设备有限公司 Photographing method and terminal
CN105933589A (en) * 2016-06-28 2016-09-07 广东欧珀移动通信有限公司 Image processing method and terminal
CN106101542A (en) * 2016-06-28 2016-11-09 广东欧珀移动通信有限公司 A kind of image processing method and terminal
CN105933589B (en) * 2016-06-28 2019-05-28 Oppo广东移动通信有限公司 A kind of image processing method and terminal
CN106101542B (en) * 2016-06-28 2019-05-10 Oppo广东移动通信有限公司 A kind of image processing method and terminal
CN106454123B (en) * 2016-11-25 2019-02-22 盐城丝凯文化传播有限公司 A kind of method and mobile terminal of focusing of taking pictures
CN106454123A (en) * 2016-11-25 2017-02-22 滁州昭阳电信通讯设备科技有限公司 Shooting focusing method and mobile terminal
CN106791375A (en) * 2016-11-29 2017-05-31 维沃移动通信有限公司 One kind shoots focusing method and mobile terminal
CN106791375B (en) * 2016-11-29 2019-10-15 维沃移动通信有限公司 A kind of shooting focusing method and mobile terminal
CN107277378A (en) * 2017-08-04 2017-10-20 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107592466A (en) * 2017-10-13 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108055458A (en) * 2017-12-18 2018-05-18 信利光电股份有限公司 A kind of focus method for tracing, device, equipment and computer readable storage medium
CN107920211A (en) * 2017-12-28 2018-04-17 深圳市金立通信设备有限公司 A kind of photographic method, terminal and computer-readable recording medium
CN110058483A (en) * 2018-01-18 2019-07-26 深圳光峰科技股份有限公司 Autofocus system, projection device, Atomatic focusing method and storage medium
CN110058483B (en) * 2018-01-18 2022-06-10 深圳光峰科技股份有限公司 Automatic focusing system, projection equipment, automatic focusing method and storage medium
CN108749246A (en) * 2018-04-18 2018-11-06 南通达成包装制品有限公司 The single watt of machine with temp monitoring function
CN112889265A (en) * 2018-11-02 2021-06-01 Oppo广东移动通信有限公司 Depth image processing method, depth image processing device and electronic device
CN112889265B (en) * 2018-11-02 2022-12-09 Oppo广东移动通信有限公司 Depth image processing method, depth image processing device and electronic device
US11562496B2 (en) 2018-11-02 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Depth image processing method, depth image processing apparatus and electronic device
CN111464734A (en) * 2019-01-18 2020-07-28 北京小米移动软件有限公司 Method and device for processing image data
CN111464734B (en) * 2019-01-18 2021-09-21 北京小米移动软件有限公司 Method and device for processing image data

Also Published As

Publication number Publication date
CN105227838B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN105227838A (en) A kind of image processing method and mobile terminal
US10915998B2 (en) Image processing method and device
RU2612892C2 (en) Method and device of auto focus
EP3480784B1 (en) Image processing method, and device
CN105933589A (en) Image processing method and terminal
KR20210028218A (en) Image processing methods and devices, electronic devices and storage media
CN110766706A (en) Image fusion method and device, terminal equipment and storage medium
TW201215124A (en) Imaging apparatus, image processing method, and recording medium for recording program thereon
CN110677621B (en) Camera calling method and device, storage medium and electronic equipment
CN105578023A (en) Image quick photographing method and device
JP2013061850A (en) Image processing apparatus and image processing method for noise reduction
CN106331497A (en) Image processing method and terminal
US20230237683A1 (en) Model generation method and apparatus based on multi-view panoramic image
CN114390201A (en) Focusing method and device thereof
CN111654637B (en) Focusing method, focusing device and terminal equipment
CN110717452A (en) Image recognition method, device, terminal and computer readable storage medium
US20130342718A1 (en) Devices and methods involving enhanced resolution image capture
CN104917963A (en) Image processing method and terminal
KR20130103217A (en) Apparatus for providing blurred image and method for providing blurred image
CN107105158B (en) Photographing method and mobile terminal
CN114255177B (en) Exposure control method, device, equipment and storage medium in imaging
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN115278084A (en) Image processing method, image processing device, electronic equipment and storage medium
CN106101542B (en) A kind of image processing method and terminal
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.