CN104270562A - Method and device for focusing when photographing - Google Patents

Method and device for focusing when photographing Download PDF

Info

Publication number
CN104270562A
CN104270562A CN201410404947.9A CN201410404947A CN104270562A CN 104270562 A CN104270562 A CN 104270562A CN 201410404947 A CN201410404947 A CN 201410404947A CN 104270562 A CN104270562 A CN 104270562A
Authority
CN
China
Prior art keywords
area
focusing
focusing area
contrast
determined
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
CN201410404947.9A
Other languages
Chinese (zh)
Other versions
CN104270562B (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 CN201410404947.9A priority Critical patent/CN104270562B/en
Publication of CN104270562A publication Critical patent/CN104270562A/en
Application granted granted Critical
Publication of CN104270562B publication Critical patent/CN104270562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The invention is suitable for the field of mobile terminals and provides a method and a device for focusing when photographing. The method comprises the following steps of A1, obtaining a preview image in a preview area and determining a focusing area in the preview area; A2, determining a contrast ratio of the preview image in the focusing area; A3, judging whether the determined contrast ratio is smaller than a preset threshold; A4, if the determined contrast ratio is judged to be smaller than the preset threshold, enlarging the focusing area and executing the step A1; and A5, if the determined contrast ratio is judged to be greater than or equal to the preset threshold, differentiating and displaying the focusing area. According to the method and the device, when a photographing function of the mobile terminal is utilized to photograph, if focusing is failed in the focusing process, through enlarging the focusing area at one time or for many times until one focusing area is determined, the contrast ratio of the preview image in the focusing area is greater than or equal to the preset threshold, so that focusing is completed, and the focusing area is differentiated and displayed.

Description

One is taken pictures focusing method and to take pictures focusing mechanism
Technical field
The invention belongs to field of mobile terminals, particularly relate to one and to take pictures focusing method and to take pictures focusing mechanism.
Background technology
At present, mobile terminal, as portable communication device, has brought the facility of mobile communication; Simultaneously because having installed operating system at this mobile terminal, this mobile terminal can also provide take pictures, the function such as image procossing.
In the process using mobile terminal to take pictures, need focus for interested scenery; In focus process, when the contrast of the image only in focusing area meets or exceeds certain contrast, could focus successfully; Therefore when focusing unsuccessfully, need artificially by the camera of mobile terminal away from or near interested scenery, the contrast of the image made in focusing area just can be found to meet or exceed the state of certain contrast.But the mode of this artificial dollying head, can not be applicable to various environment (as there is barrier in environment) and cause focusing unsuccessfully.
Summary of the invention
The object of the present invention is to provide one to take pictures focusing method and to take pictures focusing mechanism, to solve the mode that artificial dollying head is focused, various environment can not be applicable to and cause failed problem of focusing.
First aspect, the invention provides one and to take pictures focusing method, described in focusing method of taking pictures comprise:
A1, obtains preview image in preview area, in described preview area, determine focusing area;
A2, determines the contrast of the preview image in described focusing area;
A3, judges whether the contrast determined is less than predetermined threshold value;
A4, if it is determined that be less than described predetermined threshold value for the described contrast determined, increases described focusing area, performs steps A 1;
A5, if it is determined that be more than or equal to described predetermined threshold value for the described contrast determined, difference display focusing area.
Second aspect, the invention provides one and to take pictures focusing mechanism, described in focusing mechanism of taking pictures comprise:
Focusing area unit, for obtaining preview image in preview area, determines focusing area in described preview area;
Contrast unit, for determining the contrast of the preview image in described focusing area;
Judging unit, for judging whether the contrast determined is less than predetermined threshold value;
Increasing unit, if it is determined that for being less than described predetermined threshold value for the described contrast determined, increasing described focusing area, perform focusing area unit;
Difference display unit, if it is determined that for being more than or equal to described predetermined threshold value for the described contrast determined, difference display focusing area.
Beneficial effect of the present invention: when using the camera function of mobile terminal to take pictures, if focus unsuccessfully in focus process, the mode of focusing area is increased by one or many, until determine a focusing area, the contrast of the preview image in this focusing area is more than or equal to described predetermined threshold value, complete focusing, this focusing area of difference display.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, 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 workflow diagram of the focusing method of taking pictures that the embodiment of the present invention provides;
Fig. 2 is the specific works flow process figure of step S2 in Fig. 1;
Fig. 3 is the specific works flow process figure of step S1 in Fig. 1;
Fig. 4 is the composition structure of the focusing mechanism of taking pictures that the embodiment of the present invention provides;
Fig. 5 is the one composition structure of contrast unit 62 in Fig. 4;
Fig. 6 is the one composition structure of focusing area unit 61 in Fig. 4.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.In order to technical solutions according to the invention are described, be described below by specific embodiment.
Fig. 1 shows the workflow of the focusing method of taking pictures that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
To take pictures described in the embodiment of the present invention provides focusing method, as shown in Figure 1, described in focusing method of taking pictures comprise steps A 1, steps A 2, steps A 3, steps A 4 and steps A 5.
Steps A 1, obtains preview image in preview area, in described preview area, determine focusing area.
In embodiments of the present invention, this mobile terminal starts after camera function, and camera function can provide a preview area, shows the image got by camera at this preview area, using at the image shown in preview area as preview image; And then perform when pressing shoot button (as tripper) and take pictures, the image taking shown by this preview area is photo.
Take pictures in process using the camera of mobile terminal, artificially can select the position of focusing area, so that select interested scenery by this selected focusing area frame, focus for interested scenery, guarantee to carry out clear taking pictures to interested scenery.Therefore, in the embodiment of the invention, described in described preview area, determine this step of focusing area before, described in focusing method of taking pictures also comprise:
Receiving area selection instruction, chooses the region that described regional choice instruction is specified from preview area, using the region of selection as described focusing area.
Particularly, user generates a regional choice instruction for interested scenery triggering mobile terminals, a region is selected by this regional choice instruction, interested scenery as described focusing area, can be selected by frame by this focusing area in this region of selecting by this embodiment then.Such as, user carries out the movement of " upper and lower, left or right " in preview area to this focusing area by button, carrys out frame and selects interested scenery, focus for this interested scenery by the mode of this focusing area mobile; Again such as, if this display screen is touch-screen, the preview area that this touch-screen can show in the process of taking pictures, user directly can click the some points in this preview area, then can determine focusing area centered by this point.
As one embodiment of the present invention, described focusing area is regular figure region or irregular figure region.
In the preferred embodiment, for the interested scenery of user, all irregular under normal circumstances, therefore, user can select irregular figure region as focusing area, select interested scenery in preview image to be had more frame pointedly by irregular focusing area, focus pointedly for this interested scenery.As an embodiment, for different interested scenery, it is (as irregular in hand drawn one that user can customize this irregular figure region, closed figure, the region that this figure occupies is this irregular figure region), using self-defined go out graphics field as focusing area, after selecting preview image by this focusing area frame, the preview image that this focusing area frame is chosen can comprise the scenery beyond less interested scenery, the mode in this self-defined irregular figure region, can more accurately focus targetedly to interested scenery, ensure in the photo photographed, in this photo, interested scenery is clearly.
This preferred embodiment additionally provides regular figure region, includes but not limited to square area, rectangular region, elliptical region, five-pointed star region, equilateral triangle region, regular pentagon region, regular hexagon region etc.
In like manner, can adjust the position in this regular figure region in preview area, select interested scenery by this regular figure regional frame, the scenery for frame choosing is focused.
Steps A 2, determines the contrast of the preview image in described focusing area.
In embodiments of the present invention, for the preview image chosen by focusing area frame, the preview image that this focusing area frame is chosen comprises interested scenery.For guaranteeing this interested scenery of clear shooting, need ensure that the contrast in this focusing area at least reaches predetermined threshold value, could the clear scenery photographed in this focusing area.
What deserves to be explained is, the focusing area that the embodiment of the present invention provides is selectable, as being chosen as a certain regular figure region, or is chosen to be a certain irregular figure region.Further, the focusing area that the embodiment of the present invention provides can zoom in or out, and as selected focusing area, geometric ratio can adjust the size of this focusing area, namely adjust the area that focusing area comprises.But no matter selected focusing area be irregular figure region or regular figure region, no matter the size of also focusing area, all contrast can be calculated to the preview image of described focusing area institute frame choosing when focusing; And then execution steps A 3 judges whether the contrast determined is less than predetermined threshold value.
As an embodiment of steps A 2, statistics is in the contrast of described preview image in described focusing area, using the contrast that the counts contrast as the preview image in described focusing area.
Wherein, a kind of execution mode that statistics is in the contrast of described preview image in described focusing area is all neighbor pixels comprised for the described preview image in described focusing area, determine the contrast of all neighbor pixels respectively, using the contrast of the contrast sum of all neighbor pixels as the preview image in described focusing area.
Wherein, another side's execution mode that statistics is in the contrast of described preview image in described focusing area is all neighbor pixels comprised for the described preview image in described focusing area, determines the contrast of all neighbor pixels respectively; From the contrast of all neighbor pixels, filter out the contrast being greater than contrast threshold value, using filter out contrast sum as the contrast of the preview image in described focusing area.
Fig. 2 shows the workflow optimized of step S2 in the focusing method of taking pictures that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In a preferred embodiment, as the optimal way of the contrast of the preview image calculated in described focusing area in focus process, as shown in Figure 2, described this step of contrast determining the preview image in described focusing area, specifically comprises steps A 21, steps A 22 and steps A 23.
Steps A 21, selects pixel with described focusing area from described preview image center.
In the preferred embodiment, to be adjusted determine focusing area (as focusing area is carried out amplification adjustment, as selected a certain regular figure region as focusing area, as selected a certain irregular figure region as focusing area) after, perform steps A 21 and select parts of images with described focusing area from described preview image center, extract all pixels that this parts of images comprises.
Steps A 22, the aberration of often pair of neighbor in the pixel of statistics frame choosing.
In the preferred embodiment, for often pair of neighbor that this parts of images selected by focusing area frame is comprised, the aberration of often pair of neighbor is calculated respectively.
Steps A 23, the aberration sum of counting statistics, using calculate and as described contrast.
In the preferred embodiment, for often pair of neighbor that this parts of images selected by focusing area frame is comprised, the aberration of often pair of neighbor is sued for peace, the contrast of this parts of images that obtain and for the choosing of this focusing area frame, the contrast of the preview image namely in described focusing area.
As the embodiment of the invention, for this parts of images that execution steps A 21 is selected by focusing area frame, be made up of a large amount of, adjacent successively pixel.For ensureing the definition of focusing area, part neighbor is needed to there is larger aberration, as interested scenery characteristic the pixel that comprises need have larger aberration, the pixel that the difference part of interested scenery and other scenery comprises has larger aberration; Further, for this parts of images selected by focusing area frame, its contrast (the aberration sum of the often pair of neighbor comprised) also must be more than or equal to predetermined threshold value, the definition of preview image in guarantee focusing area.And then in the image photographed after completing focusing, the image in this focusing area just can be shown clearly.
Steps A 3, judges whether the contrast determined is less than predetermined threshold value.
In embodiments of the present invention, described predetermined threshold value is: the threshold value that in user's comparison film, the minimum expectation of the contrast of interested scenery sets.
In steps A 3, the contrast of the preview image in described focusing area is judged, judge whether this contrast is less than this predetermined threshold value.If be less than this predetermined threshold value, perform steps A 4, if be more than or equal to this predetermined threshold value, perform steps A 5.
Steps A 4, if it is determined that be less than described predetermined threshold value for the described contrast determined, increases described focusing area, performs steps A 1.
In embodiments of the present invention, this focusing carried out for using focusing area, when judging that the described contrast determined is less than described predetermined threshold value, represent that the contrast of the preview image in focusing area is lower, at this moment to take pictures the photo obtained, clearly cannot distinguish the interested scenery that this focusing area comprises.
At this moment can increase the area that described focusing area has, to make the focusing area increased can comprise the pixel with larger aberration, distinguish the interested scenery in focusing area more.
As the present invention one preferred implementation, this step of the described focusing area of described increase, is specially: geometric ratio increases described focusing area.
In the preferred embodiment, when judging that in steps A 4 the described contrast determined is less than described predetermined threshold value, focusing area carried out geometric ratio amplification, namely do not change the shape of focusing area, and only the area of focusing area is carried out geometric ratio amplification.
It should be noted that, increase for geometric ratio the scaling up that described focusing area adopts, this preferred implementation does not limit, if expect to complete focusing as early as possible, can arrange more greatly by this scaling up, the very fast area increasing described focusing area; Certainly, also can this scaling up be arranged less, when judging that in steps A 4 the described contrast determined is less than described predetermined threshold value at every turn, progressively increase the area of described focusing area, reduce the introducing of the scenery except interested scenery as far as possible, repeat to perform steps A 1, steps A 2, steps A 3, steps A 4 successively, find the focusing area that can reach described predetermined threshold value (contrast) gradually; When finding this focusing area, use this focusing area to complete focusing, shooting can the photo of the interested scenery of clear resolution.
As the present invention one preferred implementation, this step of the described focusing area of described increase, is specially:
Amplification instruction is specified in receiving area, and the region of described Region specification amplification instruction being specified is done as focusing area, amplifies to this focusing area the multiple that described appointment amplification instruction specifies.
In the preferred embodiment, when judging that in steps A 4 the described contrast determined is less than described predetermined threshold value, user artificially can trigger a Region specification amplification instruction, a graphics field is reselected (as irregular figure region by this Region specification amplification instruction, or regular figure region) as focusing area, and while ensureing that this focusing area can improve the contrast of preview image in focusing area, the preview image of this focusing area institute frame choosing can also comprise interested scenery, the multiple that described appointment amplification instruction specifies is amplified to the focusing area reselected, re-execute steps A 1.
So in embodiments of the present invention, repeat to perform steps A 1, steps A 2, steps A 3, steps A 4 successively, until find a focusing area for the first time, the contrast of the preview image of this focusing area institute frame choosing is greater than predetermined threshold value, stop amplifying focusing area, perform steps A 5 by this focusing area difference display.
Steps A 5, if it is determined that be more than or equal to described predetermined threshold value for the described contrast determined, difference display focusing area.
In embodiments of the present invention, for the contrast of the preview image in described focusing area, if this contrast is more than or equal to described predetermined threshold value, difference display focusing area; The embodiment of the present invention does not limit the mode of difference display focusing area.
As a concrete mode of difference display focusing area, when judging that the described contrast determined is more than or equal to described predetermined threshold value, the boundary line of described focusing area is shown with the first distinct color.When judging that the described contrast determined is less than described predetermined threshold value, the boundary line of described focusing area is shown with the second distinct color.It should be noted that, described first distinct color and described second distinct color are different colors.
As a concrete mode of difference display focusing area, when judging that the described contrast determined is more than or equal to described predetermined threshold value, fill the first distinct color with default transparency (this default transparency is greater than 0, is less than 100%) and show in described focusing area.And when judging that the described contrast determined is less than described predetermined threshold value, in described focusing area, not filling any color, also transparency is not arranged to this cutting on the cross region.In this concrete mode preferably, when judging that the described contrast determined is less than described predetermined threshold value, the boundary line of described focusing area is shown with the second distinct color.
Fig. 3 shows the workflow optimized of step S1 in the focusing method of taking pictures that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In an embodiment of the present invention, as shown in Figure 3, describedly in described preview area, determine this step of focusing area, specifically comprise steps A 11, steps A 12 and steps A 13.
Steps A 11, judges whether the area of described focusing area is greater than area upper limit threshold;
Steps A 12, if it is determined that be more than or equal to described area upper limit threshold for the area of described focusing area, the area of described focusing area is reduced into acquiescence area, focusing area information and/or prompting focusing failure information are changed in prompting;
Steps A 13, if it is determined that be less than described area upper limit threshold for the area of described focusing area, determines described focusing area in described preview area.
In the present embodiment, the area due to preview area is limited, and then ad infinitum can not increase focusing area, and therefore present embodiments provide an area upper limit threshold, this area upper limit threshold is less than or equal to the area of preview area.Meanwhile, in order to ensure can to choose interested scenery by frame by this focusing area, the present embodiment has also preset acquiescence area, and this acquiescence area can be revised, and the mode of amendment does not limit at this, as artificial amendment, for another example by modification of program.
And then in steps A 11, first judge that whether this focusing area effective, namely judge whether the area of described focusing area is greater than area upper limit threshold; If the area of described focusing area is more than or equal to described area upper limit threshold, it is invalid for representing this focusing area, performs steps A 12; If it is determined that for the area of described focusing area is less than described area upper limit threshold, it is effective for representing this focusing area, perform steps A 13.
In steps A 12, if it is determined that for the area of described focusing area is more than or equal to described area upper limit threshold, it is invalid for representing this focusing area, this focusing area cannot be used to focus, the area of described focusing area is reduced, the area of described focusing area is reduced into acquiescence area.
Meanwhile, if the area of described focusing area is more than or equal to described area upper limit threshold, focusing area information and/or prompting focusing failure information are changed in prompting.
In the present embodiment, when judging that the area of described focusing area is more than or equal to described area upper limit threshold, to the prompting mode of this replacing focusing area information, do not limit at this.As an embodiment, described focusing area information is image and/or Word message.This step of focusing area information is changed in described prompting, is specially: show in preview area and change focusing area information.By this replacing focusing area information reminding user: reselect a regular figure region or irregular figure region as focusing area.As another embodiment, described focusing area information is audio-frequency information.This step of focusing area information is changed in described prompting, is specially: play and change focusing area information.Such as, " focus unsuccessfully, a regular figure region or irregular figure region please be reselect as focusing area " this replacing focusing area information is play.
In the present embodiment, when judging that the area of described focusing area is more than or equal to described area upper limit threshold, to the prompting mode of this focusing failure information, do not limit at this, such as: shown with the 3rd distinct color (as redness) boundary line of described focusing area, described 3rd distinct color, described first distinct color, described second distinct color are respectively different colours.As an embodiment, described focusing failure information is image and/or Word message.Described this step of prompting focusing failure information, is specially: in preview area, show this focusing failure information.As another embodiment, described focusing failure information is audio-frequency information.Described this step of prompting focusing failure information, is specially: play focusing failure information.Such as, " focusing unsuccessfully " this focusing failure information is play.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
It should be noted that, what the embodiment of the present invention provided take pictures focusing mechanism and the focusing method of taking pictures that the embodiment of the present invention provides are suitable for mutually.
Fig. 4 shows the composition structure of the focusing mechanism of taking pictures that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
What the present embodiment provided take pictures focusing mechanism, as shown in Figure 4, focusing mechanism of taking pictures, described in focusing mechanism of taking pictures comprise:
Focusing area unit 61, for obtaining preview image in preview area, determines focusing area in described preview area;
Contrast unit 62, for determining the contrast of the preview image in described focusing area;
Judging unit 63, for judging whether the contrast determined is less than predetermined threshold value;
Increasing unit 64, if it is determined that for being less than described predetermined threshold value for the described contrast determined, increasing described focusing area, perform focusing area unit;
Difference display unit 65, if it is determined that for being more than or equal to described predetermined threshold value for the described contrast determined, difference display focusing area.
In a preferred embodiment, described focusing area is regular figure region or irregular figure region.
In the preferred real execution mode of the present invention one, described increase unit 64 specifically for: geometric ratio increases described focusing area.
Fig. 5 shows the one optimization composition structure of contrast unit 62, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In an embodiment of the present invention, described contrast unit 62 comprises:
Frame-choosing unit 621, for selecting pixel with described focusing area from described preview image center;
Aberration unit 622, for add up frame choosing pixel in the aberration of often pair of neighbor;
Sum unit 623, for the aberration sum of counting statistics, using calculate and as described contrast.
Fig. 6 shows the one optimization composition structure of focusing area unit 61, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In an embodiment of the present invention, as shown in Figure 6, described focusing area unit 61 comprises:
Upper limit judging unit 611, for judging whether the area of described focusing area is greater than area upper limit threshold;
Tip element 612, if it is determined that be more than or equal to described area upper limit threshold for the area for described focusing area, is reduced into acquiescence area by the area of described focusing area, focusing area information and/or prompting focusing failure information are changed in prompting;
Determining unit 613, if it is determined that be less than described area upper limit threshold for the area for described focusing area, determines described focusing area in described preview area.
It will be appreciated by those skilled in the art that the unit of taking pictures included by focusing mechanism provided for the embodiment of the present invention is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make some equivalent alternative or obvious modification without departing from the inventive concept of the premise; and performance or purposes identical, all should be considered as belonging to the scope of patent protection that the present invention is determined by submitted to claims.

Claims (10)

1. to take pictures a focusing method, it is characterized in that, described in focusing method of taking pictures comprise:
A1, obtains preview image in preview area, in described preview area, determine focusing area;
A2, determines the contrast of the preview image in described focusing area;
A3, judges whether the contrast determined is less than predetermined threshold value;
A4, if it is determined that be less than described predetermined threshold value for the described contrast determined, increases described focusing area, performs steps A 1;
A5, if it is determined that be more than or equal to described predetermined threshold value for the described contrast determined, difference display focusing area.
2. take pictures as claimed in claim 1 focusing method, it is characterized in that, described focusing area is regular figure region or irregular figure region.
3. take pictures as claimed in claim 1 or 2 focusing method, it is characterized in that, this step of the described focusing area of described increase, is specially:
Geometric ratio increases described focusing area.
4. take pictures as claimed in claim 1 focusing method, it is characterized in that, described this step of contrast determining the preview image in described focusing area, specifically comprises:
Pixel is selected from described preview image center with described focusing area;
The aberration of often pair of neighbor in the pixel of statistics frame choosing;
The aberration sum of counting statistics, using calculate and as described contrast.
5. to take pictures as claimed in claim 1 focusing method, it is characterized in that, describedly in described preview area, determine this step of focusing area, specifically comprise:
Judge whether the area of described focusing area is greater than area upper limit threshold;
If it is determined that for the area of described focusing area is more than or equal to described area upper limit threshold, the area of described focusing area is reduced into acquiescence area, focusing area information and/or prompting focusing failure information are changed in prompting;
If it is determined that for the area of described focusing area is less than described area upper limit threshold, determine described focusing area in described preview area.
6. to take pictures a focusing mechanism, it is characterized in that, described in focusing mechanism of taking pictures comprise:
Focusing area unit, for obtaining preview image in preview area, determines focusing area in described preview area;
Contrast unit, for determining the contrast of the preview image in described focusing area;
Judging unit, for judging whether the contrast determined is less than predetermined threshold value;
Increasing unit, if it is determined that for being less than described predetermined threshold value for the described contrast determined, increasing described focusing area, perform focusing area unit;
Difference display unit, if it is determined that for being more than or equal to described predetermined threshold value for the described contrast determined, difference display focusing area.
7. take pictures as claimed in claim 6 focusing mechanism, it is characterized in that, described focusing area is regular figure region or irregular figure region.
8. focusing mechanism of taking pictures as claimed in claims 6 or 7, is characterized in that, described increase unit specifically for: geometric ratio increases described focusing area.
9. take pictures as claimed in claim 6 focusing mechanism, it is characterized in that, described contrast unit comprises:
Frame-choosing unit, for selecting pixel with described focusing area from described preview image center;
Aberration unit, for add up frame choosing pixel in the aberration of often pair of neighbor;
Sum unit, for the aberration sum of counting statistics, using calculate and as described contrast.
10. take pictures as claimed in claim 6 focusing mechanism, it is characterized in that, described focusing area unit comprises:
Upper limit judging unit, for judging whether the area of described focusing area is greater than area upper limit threshold;
Tip element, if it is determined that be more than or equal to described area upper limit threshold for the area for described focusing area, is reduced into acquiescence area by the area of described focusing area, focusing area information and/or prompting focusing failure information are changed in prompting;
Determining unit, if it is determined that be less than described area upper limit threshold for the area for described focusing area, determines described focusing area in described preview area.
CN201410404947.9A 2014-08-15 2014-08-15 One kind, which is taken pictures, focusing method and takes pictures focusing mechanism Active CN104270562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410404947.9A CN104270562B (en) 2014-08-15 2014-08-15 One kind, which is taken pictures, focusing method and takes pictures focusing mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410404947.9A CN104270562B (en) 2014-08-15 2014-08-15 One kind, which is taken pictures, focusing method and takes pictures focusing mechanism

Publications (2)

Publication Number Publication Date
CN104270562A true CN104270562A (en) 2015-01-07
CN104270562B CN104270562B (en) 2017-10-17

Family

ID=52162047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410404947.9A Active CN104270562B (en) 2014-08-15 2014-08-15 One kind, which is taken pictures, focusing method and takes pictures focusing mechanism

Country Status (1)

Country Link
CN (1) CN104270562B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357444A (en) * 2015-11-27 2016-02-24 努比亚技术有限公司 Focusing method and device
CN106060407A (en) * 2016-07-29 2016-10-26 努比亚技术有限公司 Focusing method and terminal
CN106131403A (en) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 Touch focusing method and device
CN106201238A (en) * 2015-05-06 2016-12-07 小米科技有限责任公司 Show the method and device of focusing state
CN106713759A (en) * 2016-12-31 2017-05-24 深圳天珑无线科技有限公司 Method and system of camera of capturing image intelligently
WO2017166076A1 (en) * 2016-03-29 2017-10-05 华为技术有限公司 Method, device and apparatus for determining focus window
CN107317964A (en) * 2017-06-27 2017-11-03 深圳市沃特沃德股份有限公司 Focusing process method and apparatus
CN108322652A (en) * 2015-06-16 2018-07-24 广东欧珀移动通信有限公司 A kind of focusing reminding method and terminal
CN108616693A (en) * 2018-05-22 2018-10-02 长沙全度影像科技有限公司 A kind of focusing method and focusing system for the bullet time
CN108702456A (en) * 2017-11-30 2018-10-23 深圳市大疆创新科技有限公司 A kind of focusing method, equipment and readable storage medium storing program for executing
CN108737736A (en) * 2018-08-27 2018-11-02 惠州Tcl移动通信有限公司 A kind of mobile terminal focal control method, mobile terminal and storage medium
CN108769538A (en) * 2018-08-16 2018-11-06 Oppo广东移动通信有限公司 Atomatic focusing method, device, storage medium and terminal
CN109510939A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 ROI method of adjustment, device and the storage medium of camera scaling focusing
WO2020034776A1 (en) * 2018-08-14 2020-02-20 Oppo广东移动通信有限公司 Image processing method and apparatus, terminal device, and computer readable storage medium
CN108668086B (en) * 2018-08-16 2021-05-04 Oppo广东移动通信有限公司 Automatic focusing method and device, storage medium and terminal
WO2021102961A1 (en) * 2019-11-29 2021-06-03 深圳市大疆创新科技有限公司 Focusing method for photographing apparatus, image processing device, and storage medium
WO2021179186A1 (en) * 2020-03-10 2021-09-16 华为技术有限公司 Focusing method and apparatus, and electronic device
CN113784045A (en) * 2021-08-31 2021-12-10 北京安博盛赢教育科技有限责任公司 Focusing interaction method, device, medium and electronic equipment
US11283987B2 (en) 2017-06-16 2022-03-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Focus region display method and apparatus, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893561A (en) * 2005-07-06 2007-01-10 索尼株式会社 Image pickup apparatus, control method, and program
CN101078852A (en) * 2006-05-26 2007-11-28 索尼株式会社 Image pickup apparatus and image pickup control method
KR20070117338A (en) * 2006-06-08 2007-12-12 엘지전자 주식회사 Mobile communication device having function for setting up focus area and method thereby
CN101387732A (en) * 2007-09-14 2009-03-18 索尼株式会社 Imaging apparatus, imaging apparatus control method, and computer program
CN101480040A (en) * 2006-07-07 2009-07-08 索尼爱立信移动通讯有限公司 Active autofocus window
US20110063494A1 (en) * 2009-09-16 2011-03-17 Altek Corporation Continuous focusing method for digital camera
CN101668119B (en) * 2008-09-05 2012-07-18 Lg电子株式会社 Mobile terminal with touch screen and method of capturing image using the same
CN102713714A (en) * 2010-01-22 2012-10-03 佳能株式会社 Automatic focusing apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893561A (en) * 2005-07-06 2007-01-10 索尼株式会社 Image pickup apparatus, control method, and program
CN101078852A (en) * 2006-05-26 2007-11-28 索尼株式会社 Image pickup apparatus and image pickup control method
KR20070117338A (en) * 2006-06-08 2007-12-12 엘지전자 주식회사 Mobile communication device having function for setting up focus area and method thereby
CN101480040A (en) * 2006-07-07 2009-07-08 索尼爱立信移动通讯有限公司 Active autofocus window
CN101387732A (en) * 2007-09-14 2009-03-18 索尼株式会社 Imaging apparatus, imaging apparatus control method, and computer program
CN101668119B (en) * 2008-09-05 2012-07-18 Lg电子株式会社 Mobile terminal with touch screen and method of capturing image using the same
US20110063494A1 (en) * 2009-09-16 2011-03-17 Altek Corporation Continuous focusing method for digital camera
CN102713714A (en) * 2010-01-22 2012-10-03 佳能株式会社 Automatic focusing apparatus

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201238A (en) * 2015-05-06 2016-12-07 小米科技有限责任公司 Show the method and device of focusing state
CN106201238B (en) * 2015-05-06 2019-11-29 小米科技有限责任公司 Show the method and device of focusing state
CN108322652A (en) * 2015-06-16 2018-07-24 广东欧珀移动通信有限公司 A kind of focusing reminding method and terminal
CN105357444B (en) * 2015-11-27 2018-11-02 努比亚技术有限公司 focusing method and device
CN105357444A (en) * 2015-11-27 2016-02-24 努比亚技术有限公司 Focusing method and device
WO2017088662A1 (en) * 2015-11-27 2017-06-01 努比亚技术有限公司 Focusing method and device
CN107439005B (en) * 2016-03-29 2020-04-21 华为技术有限公司 Method, device and equipment for determining focusing window
WO2017166076A1 (en) * 2016-03-29 2017-10-05 华为技术有限公司 Method, device and apparatus for determining focus window
US10491804B2 (en) 2016-03-29 2019-11-26 Huawei Technologies Co, Ltd. Focus window determining method, apparatus, and device
CN107439005A (en) * 2016-03-29 2017-12-05 华为技术有限公司 A kind of method, apparatus and equipment for determining focusing window
EP3429185A4 (en) * 2016-03-29 2019-06-19 Huawei Technologies Co., Ltd. Method, device and apparatus for determining focus window
CN106131403B (en) * 2016-06-30 2020-06-02 北京小米移动软件有限公司 Touch focusing method and device
CN106131403A (en) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 Touch focusing method and device
CN106060407A (en) * 2016-07-29 2016-10-26 努比亚技术有限公司 Focusing method and terminal
WO2018019122A1 (en) * 2016-07-29 2018-02-01 努比亚技术有限公司 Focusing method, terminal, and computer storage medium
CN106713759A (en) * 2016-12-31 2017-05-24 深圳天珑无线科技有限公司 Method and system of camera of capturing image intelligently
US11283987B2 (en) 2017-06-16 2022-03-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Focus region display method and apparatus, and storage medium
WO2019000618A1 (en) * 2017-06-27 2019-01-03 深圳市沃特沃德股份有限公司 Focusing processing method and apparatus, and mobile terminal
CN107317964A (en) * 2017-06-27 2017-11-03 深圳市沃特沃德股份有限公司 Focusing process method and apparatus
CN109510939A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 ROI method of adjustment, device and the storage medium of camera scaling focusing
CN108702456A (en) * 2017-11-30 2018-10-23 深圳市大疆创新科技有限公司 A kind of focusing method, equipment and readable storage medium storing program for executing
CN108616693A (en) * 2018-05-22 2018-10-02 长沙全度影像科技有限公司 A kind of focusing method and focusing system for the bullet time
CN110830709A (en) * 2018-08-14 2020-02-21 Oppo广东移动通信有限公司 Image processing method and device, terminal device and computer readable storage medium
WO2020034776A1 (en) * 2018-08-14 2020-02-20 Oppo广东移动通信有限公司 Image processing method and apparatus, terminal device, and computer readable storage medium
CN108769538A (en) * 2018-08-16 2018-11-06 Oppo广东移动通信有限公司 Atomatic focusing method, device, storage medium and terminal
CN108769538B (en) * 2018-08-16 2020-09-29 Oppo广东移动通信有限公司 Automatic focusing method and device, storage medium and terminal
CN108668086B (en) * 2018-08-16 2021-05-04 Oppo广东移动通信有限公司 Automatic focusing method and device, storage medium and terminal
CN108737736A (en) * 2018-08-27 2018-11-02 惠州Tcl移动通信有限公司 A kind of mobile terminal focal control method, mobile terminal and storage medium
WO2021102961A1 (en) * 2019-11-29 2021-06-03 深圳市大疆创新科技有限公司 Focusing method for photographing apparatus, image processing device, and storage medium
WO2021179186A1 (en) * 2020-03-10 2021-09-16 华为技术有限公司 Focusing method and apparatus, and electronic device
CN113711123A (en) * 2020-03-10 2021-11-26 华为技术有限公司 Focusing method and device and electronic equipment
CN113784045A (en) * 2021-08-31 2021-12-10 北京安博盛赢教育科技有限责任公司 Focusing interaction method, device, medium and electronic equipment
CN113784045B (en) * 2021-08-31 2023-08-22 北京安博盛赢教育科技有限责任公司 Focusing interaction method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN104270562B (en) 2017-10-17

Similar Documents

Publication Publication Date Title
CN104270562A (en) Method and device for focusing when photographing
CN111066315B (en) Apparatus, method and readable medium configured to process and display image data
JP6357589B2 (en) Image display method, apparatus, program, and recording medium
CN107797739B (en) Mobile terminal, display control method and device thereof, and computer-readable storage medium
EP3070589B1 (en) Method and device for resizing selected region of previewing interface
US20190208119A1 (en) Image processing method and apparatus
US8988529B2 (en) Target tracking apparatus, image tracking apparatus, methods of controlling operation of same, and digital camera
US11184542B2 (en) Photographing apparatus control method, photographing apparatus and storage medium
EP3672211A1 (en) Shooting interface display method, device and terminal
US9843731B2 (en) Imaging apparatus and method for capturing a group of images composed of a plurality of images and displaying them in review display form
EP2874386B1 (en) Method, apparatus and computer program product for capturing images
US9565333B2 (en) Apparatus and method for processing an image in device
US20130239050A1 (en) Display control device, display control method, and computer-readable recording medium
KR20210042952A (en) Image processing method and device, electronic device and storage medium
US9195880B1 (en) Interactive viewer for image stacks
CN108848367B (en) Image processing method and device and mobile terminal
US9854174B2 (en) Shot image processing method and apparatus
CN105049728A (en) Method and device for acquiring shot image
JP2008541509A (en) Method and apparatus for incorporating iris color in red-eye correction
CN104539843A (en) Terminal shooting method
CN113840076B (en) Shooting zooming method, electronic equipment and storage medium
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
CN107231524A (en) Image pickup method and device, computer installation and computer-readable recording medium
CN106815809B (en) Picture processing method and device
CN104967778A (en) Focusing reminding method and terminal

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
CP03 Change of name, title or address
CP03 Change of name, title or address

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 523841 usha Beach Road No. 18

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