CN106201238B - Show the method and device of focusing state - Google Patents

Show the method and device of focusing state Download PDF

Info

Publication number
CN106201238B
CN106201238B CN201510226260.5A CN201510226260A CN106201238B CN 106201238 B CN106201238 B CN 106201238B CN 201510226260 A CN201510226260 A CN 201510226260A CN 106201238 B CN106201238 B CN 106201238B
Authority
CN
China
Prior art keywords
color
preview image
coloured
target pixel
pixel location
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.)
Active
Application number
CN201510226260.5A
Other languages
Chinese (zh)
Other versions
CN106201238A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510226260.5A priority Critical patent/CN106201238B/en
Publication of CN106201238A publication Critical patent/CN106201238A/en
Application granted granted Critical
Publication of CN106201238B publication Critical patent/CN106201238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to a kind of method and devices for showing focusing state, belong to field of image processing.The described method includes: showing the preview image of object in shooting view-finder;The target pixel location that contrast is greater than preset threshold is obtained from preview image;The coloured highlight mark of Overlapping display above target pixel location, the coloured highlight mark are used to show the focusing state of preview image.The disclosure shows the focusing state of preview image using the coloured highlight mark;The relevant technologies are solved using analytical judgment when manual focus mode dependent on human eye to the focusing state of image, cause operating efficiency lower and the problem more demanding to user;So that the focusing state of image can be well understood in user according to coloured highlight mark when using manual focus mode, achievees the effect that improve operating efficiency and reduced the requirement to user.

Description

Show the method and device of focusing state
Technical field
This disclosure relates to field of image processing, in particular to a kind of method and device for showing focusing state.
Background technique
The electronic equipment of such as mobile phone, tablet computer and digital camera etc gradually in for people's lives must Estovers is the most common function of user using these electronic equipments shooting photo.
In order to enable the image of shooting is relatively sharp, need to focus in shooting process.Focusing mode includes automatic Focusing mode and manual focus mode.Compared to auto-focusing mode, the focusing precision of manual focus mode is higher, error rate compared with It is low.
However, manual focus mode is largely dependent upon analytical judgment of the human eye to the focusing state of image, therefore It is lower using operating efficiency when manual focus mode and more demanding to user.
Summary of the invention
The embodiment of the present disclosure provides a kind of method and device for showing focusing state.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method for showing focusing state is provided, this method comprises:
The preview image of object is shown in shooting view-finder;
The target pixel location that contrast is greater than preset threshold is obtained from preview image;
The coloured highlight mark of Overlapping display above target pixel location, the coloured highlight mark is for showing preview image Focusing state.
Optionally, the target pixel location that contrast is greater than preset threshold is obtained from preview image, comprising:
Calculate the contrast in preview image between every two adjacent pixel;
The each contrast being calculated is compared with preset threshold;
The target pixel location that contrast is greater than preset threshold is obtained from preview image according to comparison result.
Optionally, the target pixel location that contrast is greater than preset threshold is obtained from preview image according to comparison result, Include:
The target pixel location that contrast is greater than preset threshold is obtained directly from preview image according to comparison result;
Alternatively,
Other location of pixels that contrast is less than preset threshold are obtained from preview image according to comparison result;By preview graph Residual pixel position as in addition to other location of pixels is determined as target pixel location.
Optionally, the coloured highlight mark of Overlapping display above target pixel location, comprising:
Obtain the color of the pixel at target pixel location;
The color of coloured highlight mark is determined according to the color of the pixel at target pixel location, the coloured highlight mark Color is different from the color of the pixel at target pixel location;
According to the color of determining coloured highlight mark, the coloured highlight mark of Overlapping display above target pixel location.
Optionally, this method further include:
Show slidable adjustment control, the slidable adjustment control is for being adjusted the focusing area in preview image;
Receive the sliding touch signal for acting on slidable adjustment control;
Focal distance is adjusted according to sliding touch signal;
The focusing area in preview image is adjusted according to focal distance.
Optionally, this method further include:
Corresponding with current focal distance focal distance is obtained to classify, the focal distance be classified as microspur, standard and Any one in infinity;
Show focal distance classification.
According to the second aspect of an embodiment of the present disclosure, a kind of device for showing focusing state is provided, which includes:
Image display is configured as showing the preview image of object in shooting view-finder;
Position acquisition module is configured as obtaining the object pixel position that contrast is greater than preset threshold from preview image It sets;
Display module is marked, is configured as the coloured highlight mark of the Overlapping display above target pixel location, the coloured height The bright focusing state marked for showing preview image.
Optionally, position acquisition module, comprising:
Computational submodule is configured as calculating the contrast in preview image between every two adjacent pixel;
Submodule is compared, each contrast for being configured as to be calculated is compared with preset threshold;
Position acquisition submodule is configured as obtaining contrast from preview image according to comparison result greater than preset threshold Target pixel location.
Optionally, position acquisition submodule, comprising:
First position acquisition submodule, is configured as obtaining contrast directly from preview image according to comparison result and is greater than The target pixel location of preset threshold;
Alternatively,
Second position acquisition submodule is configured as obtaining contrast from preview image according to comparison result less than default Other location of pixels of threshold value, and the residual pixel position in preview image in addition to other location of pixels is determined as target picture Plain position.
Optionally, display module is marked, comprising:
Acquisition submodule is configured as obtaining the color of the pixel at target pixel location;
Determine submodule, the color for being configured as the pixel at according to target pixel location determines the face of coloured highlight mark Color, the color of the coloured highlight mark are different from the color of the pixel at target pixel location;
Display sub-module is configured as the color according to determining coloured highlight mark, folds above target pixel location Add the coloured highlight mark of display.
Optionally, the device further include:
Control display module, is configured as display slidable adjustment control, which is used for in preview image Focusing area be adjusted;
Signal receiving module is configured as receiving the sliding touch signal for acting on slidable adjustment control;
Apart from adjustment module, it is configured as adjusting focal distance according to sliding touch signal;
Region adjustment module is configured as adjusting the focusing area in preview image according to focal distance.
Optionally, the device further include:
Classification obtains module, is configured as obtaining focal distance classification corresponding with current focal distance, the focusing Distance classification is any one in microspur, standard and infinity;
Classification display module is configured as display focal distance classification.
According to the third aspect of an embodiment of the present disclosure, a kind of device for showing focusing state is provided, which includes:
Processor;
The memory of executable instruction for storage processor;
Wherein, processor is configured as:
The preview image of object is shown in shooting view-finder;
The target pixel location that contrast is greater than preset threshold is obtained from preview image;
The coloured highlight mark of Overlapping display above target pixel location, the coloured highlight mark is for showing preview image Focusing state.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
The object pixel position for being greater than preset threshold by obtaining contrast from the preview image shown in shooting view-finder It sets, and the coloured highlight mark of Overlapping display above the target pixel location, shows preview image using the coloured highlight mark Focusing state;The analysis of the focusing state of image is sentenced dependent on human eye when solving the relevant technologies using manual focus mode It is disconnected, cause operating efficiency lower and the problem more demanding to user;So that according to coloured when user uses manual focus mode The focusing state of image can be well understood in highlight mark, reached and improved operating efficiency and reduce the requirement to user Effect.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for showing focusing state shown according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of the method for the displaying focusing state shown according to another exemplary embodiment;
Fig. 2 B is the flow chart of step 202 involved in another exemplary embodiment;
Fig. 2 C and Fig. 2 D are interface schematic diagrams involved in another exemplary embodiment;
Fig. 3 is a kind of flow chart of the method for displaying focusing state shown according to another exemplary embodiment;
Fig. 4 is a kind of block diagram of device for showing focusing state shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the device of the displaying focusing state shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of method for showing focusing state shown according to an exemplary embodiment.This method can Applied in the electronic equipment with shooting function, which can be mobile phone, tablet computer, camera etc..This method can To comprise the following steps:
In a step 102, the preview image of object is shown in shooting view-finder.
At step 104, the target pixel location that contrast is greater than preset threshold is obtained from preview image.
In step 106, the coloured highlight mark of Overlapping display above target pixel location, the coloured highlight mark are used for Show the focusing state of preview image.
In conclusion method provided in this embodiment, passes through the acquisition pair from the preview image shown in shooting view-finder Target pixel location than degree greater than preset threshold, and the coloured highlight mark of Overlapping display above the target pixel location, benefit The focusing state of preview image is shown with the coloured highlight mark;It is depended on when solving the relevant technologies using manual focus mode Analytical judgment of the human eye to the focusing state of image causes operating efficiency lower and the problem more demanding to user;So that with The focusing state of image can be well understood in family according to coloured highlight mark when using manual focus mode, reached raising Operating efficiency and the effect for reducing the requirement to user.
Fig. 2A is a kind of flow chart of the method for the displaying focusing state shown according to another exemplary embodiment.This method It can be applied to have in the electronic equipment of shooting function, which can be mobile phone, tablet computer, camera etc..This method May include the following steps:
In step 201, the preview image of object is shown in shooting view-finder.
Electronic equipment has shooting function, when user shoots photo using the shooting function of electronic equipment, electronic equipment It can show that shooting view-finder, the shooting view-finder are shot content for preview in screen, electronic equipment is in the shooting view-finder The preview image of middle display object.
In step 202, the target pixel location that contrast is greater than preset threshold is obtained from preview image.
Electronic equipment obtains contrast greater than default according to the contrast between pixel each in preview image from preview image The target pixel location of threshold value.Contrast reflects the characteristics such as the clarity of image, details performance and gray-level performance.One As for, contrast is bigger, and the image the clear eye-catching, and the color also the distinct gorgeous;And contrast is small, then whole image can be allowed aobvious It obtains dusky.In the present embodiment, the target pixel location that contrast is greater than preset threshold is obtained from preview image, namely Choose that display is clear, details is clearly demarcated and painted position from preview image.
In a kind of possible embodiment, as shown in Figure 2 B, this step may include following several sub-steps:
In step 202a, the contrast in preview image between every two adjacent pixel is calculated.
Electronic equipment calculates the contrast in preview image between every two adjacent pixel.Wherein, contrast when institute is calculated Need to using parameter and calculating can be set according to actual needs by the way of contrast, and this partial content is this field The easy full of beard of technical staff and content, the present embodiment is not construed as limiting this.In a kind of possible embodiment, electronic equipment can The color difference in preview image between every two adjacent pixel is calculated, and the color difference is spent as a comparison.
In step 202b, each contrast being calculated is compared with preset threshold.
For any two adjacent pixel, electronic equipment after calculating the contrast between two adjacent pixels, Calculated contrast is compared with preset threshold, namely judges the size between calculated contrast and preset threshold Relationship.
In step 202c, the object pixel that contrast is greater than preset threshold is obtained from preview image according to comparison result Position.
In the first possible embodiment, electronic equipment obtains comparison according to comparison result directly from preview image Degree is greater than the target pixel location of preset threshold.Comparison for any two adjacent pixel, between two adjacent pixels When degree is greater than preset threshold, electronic equipment determines that two adjacent pixels position corresponding in preview image belongs to target picture Plain position.
It should be noted is that: it, can be with when obtaining target pixel location using this first possible embodiment Position where contrast to be greater than to two adjacent pixels of preset threshold is determined as target pixel location, can also will compare The position that degree is greater than in two adjacent pixels of preset threshold where the biggish pixel of calculating parameter is determined as target pixel location, Or the position that contrast is greater than in two adjacent pixels of preset threshold where the lesser pixel of calculating parameter is determined as mesh Mark location of pixels.Wherein, calculating parameter refers to the parameter used when calculating contrast, such as the color difference of the example above.
In second of possible embodiment, it is small that electronic equipment obtains contrast according to comparison result from preview image In other location of pixels of preset threshold, and the residual pixel position in preview image in addition to above-mentioned other location of pixels is true It is set to target pixel location.That is, electronic equipment obtains the target pixel location in preview image by the way of reversely choosing.
It similarly, can be small by contrast when obtaining other location of pixels using this second possible embodiment The position where two adjacent pixels in preset threshold is determined as other location of pixels, contrast can also be less than default Position in two adjacent pixels of threshold value where the biggish pixel of calculating parameter is determined as other location of pixels, or will comparison The position that degree is less than in two adjacent pixels of preset threshold where the lesser pixel of calculating parameter is determined as other location of pixels. Wherein, calculating parameter refers to the parameter used when calculating contrast, such as the color difference of the example above.
In step 203, the coloured highlight mark of Overlapping display above target pixel location, the coloured highlight mark are used for Show the focusing state of preview image.
Electronic equipment is after obtaining target pixel location in preview image, and Overlapping display has above target pixel location Color highlight mark.Wherein, coloured highlight mark is used to show the focusing state of preview image, the target picture at coloured highlight mark Plain position is to show that clear, details is clearly demarcated and painted position in preview image.In the present embodiment, by using coloured The highlight mark clearly position that will focus in preview image highlights, so that user is when using manual focus mode according to having The focusing state of preview image can be well understood in color highlight mark, improve operating efficiency when user's manual focus, And operation is more fool, the requirement to user is low, improves user experience.
In addition, the color of coloured highlight mark can be a kind of specific color.For example, the color of coloured highlight mark can It is such as red to be the preset a certain color of system;Alternatively, the color of coloured highlight mark is also possible to user in advance certainly Define a certain color of setting, such as yellow.
Alternatively, the color of coloured highlight mark is also possible to the one or more colors chosen in real time from multiple color. For example, the color of coloured highlight mark can be a kind of color chosen from the preset multiple color of system, such as from being The red chosen in preset red, yellow and white three kinds of colors of uniting.Wherein, selection mode can be is selected at random by electronic equipment It takes, is also possible to be chosen by user, or selectively selected by electronic equipment according to the actual content of preview image It takes.
Such as Fig. 2 C, it illustrates a kind of interface schematic diagrams involved in the present embodiment.The shooting view-finder 21 of electronic equipment In show the preview image 22 of object, electronic equipment is according to the contrast between pixel each in preview image 22, from preview graph After choosing target pixel location in picture 22, coloured 23 (such as Fig. 2 C of highlight mark of Overlapping display above the target pixel location Shown in middle black dot).
Optionally, method provided in this embodiment further includes the following steps:
In step 204, slidable adjustment control is shown.
Electronic equipment can also show slidable adjustment control in screen, which is used to carry out in user manual During focusing, the focusing area in preview image is adjusted.In conjunction with reference Fig. 2 C and Fig. 2 D, electronic equipment can clapped Take the photograph 21 top Overlapping display slidable adjustment control 24 of view-finder.
In step 205, the sliding touch signal for acting on slidable adjustment control is received.
User can control the control in the sliding touch signal of slidable adjustment control by trigger action, to realize Focusing area in preview image is adjusted.In conjunction with reference Fig. 2 C and Fig. 2 D, user can pass through the sliding tune that horizontally slips The operating point 25 in control 24 is saved, the focusing area in preview image 22 is adjusted.
In step 206, focal distance is adjusted according to sliding touch signal.
Electronic equipment is adjusted and controls to the size of focal distance according to sliding touch signal.Wherein, focal distance Refer to the distance between image, is distance and the sum of the distance of camera lens to photosensitive element of the camera lens to object.Electronic equipment is logical It overregulates focal distance and the focusing area in preview image is adjusted and is controlled.Focusing area refers to clear in preview image The region of display.In conjunction with reference Fig. 2 C and Fig. 2 D, slide point 25, triggering electronic equipment turn focal distance down to user to the left; Slide point 25, triggering electronic equipment tune up focal distance to user to the right.
In step 207, the focusing area in preview image is adjusted according to focal distance.
Electronic equipment adjusts the focusing area in preview image according to focal distance.In conjunction with reference Fig. 2 C and Fig. 2 D, when right When defocus distance is turned down, lower zone (as shown in Figure 2 C) of the focusing area in preview image 22, the image clearly in focusing area It has been shown that, coloured highlight mark are on the high side in focusing area;When focal distance tunes up, focusing area is in the top of preview image 22 Region (as shown in Figure 2 D), image clearly is shown in focusing area, and coloured highlight mark is on the high side in focusing area.
It should be noted is that: user adjust focusing area during, electronic equipment can at predetermined time intervals between A target pixel location, and the coloured highlight mark of Overlapping display above the target pixel location are calculated every (such as 0.05 second), To realize variation during user adjusts focusing area to the focusing state of the real-time Dynamic Display preview image of user.
Optionally, during user adjusts focusing area, electronic equipment can also be obtained and current focal distance phase Corresponding focal distance classification, and show that the focal distance is classified.Optionally, focal distance classification include but is not limited to be micro- Away from any one in, standard and infinity.Wherein, the corresponding relationship between focal distance classification and focal distance is to set in advance It sets, such as the corresponding focal distance of microspur is 0 to 40cm, the corresponding focal distance of standard is 41 to 80cm, infinity pair The focal distance answered is 80cm or more.As shown in Figure 2 C and 2 D shown in FIG., the current corresponding focal distance of focal distance in fig. 2 c It is classified as microspur, the corresponding focal distance of current focal distance is classified as standard in figure 2d.Certainly, enumerated focusing Corresponding relationship between distance classification and focal distance classification and focal distance is only exemplary and explanatory, this field skill The number amount and type that art personnel according to actual needs can classify to focal distance on the basis of content provided in this embodiment, with And the corresponding relationship between focal distance classification and focal distance is set, the present embodiment is not construed as limiting this.
Optionally, electronic equipment may also display the corresponding numerical value of current focal distance, enable a user to through this Numerical value is more expressly understood that current focal distance, and then carries out more accurate efficient adjusting.Such as Fig. 2 C and Fig. 2 D institute Show, the corresponding numerical value of current focal distance is 33 in fig. 2 c, and the corresponding numerical value of current focal distance is 50 in figure 2d.
Optionally, as shown in Figure 2 C and 2 D shown in FIG., electronic equipment can also show focal modes switching push button 26 in screen, right Burnt mode switch button 26 corresponds to two different focal modes, including manual focus mode and autofocus mode, user It can be switched between above two different focal modes by clicking the focal modes switching push button 26.In manual focus mould Under formula, the method that electronic equipment can provide through this embodiment shows focusing state to user.
In conclusion method provided in this embodiment, passes through the acquisition pair from the preview image shown in shooting view-finder Target pixel location than degree greater than preset threshold, and the coloured highlight mark of Overlapping display above the target pixel location, benefit The focusing state of preview image is shown with the coloured highlight mark;It is depended on when solving the relevant technologies using manual focus mode Analytical judgment of the human eye to the focusing state of image causes operating efficiency lower and the problem more demanding to user;So that with The focusing state of image can be well understood in family according to coloured highlight mark when using manual focus mode, reached raising Operating efficiency and the effect for reducing the requirement to user.
In addition, method provided in this embodiment, also by display slidable adjustment control, so that user passes through the slidable adjustment The focusing area in preview image is adjusted in control, to the real-time dynamic exhibition of user during user adjusts focusing area Show the variation of the focusing state of preview image.
Fig. 3 is a kind of flow chart of the method for displaying focusing state shown according to another exemplary embodiment.This method It can be applied to have in the electronic equipment of shooting function, which can be mobile phone, tablet computer, camera etc..This method May include the following steps:
In step 301, the preview image of object is shown in shooting view-finder.
Step 301 is identical as the step 201 in Fig. 2A illustrated embodiment, is directed to step in A illustrated embodiment referring to fig. 2 201 introduction and explanation, the present embodiment repeat no more this.
In step 302, the target pixel location that contrast is greater than preset threshold is obtained from preview image.
Step 302 is identical as the step 202 in Fig. 2A illustrated embodiment, is directed to step in A illustrated embodiment referring to fig. 2 202 introduction and explanation, the present embodiment repeat no more this.
In step 303, the color of the pixel at target pixel location is obtained.
Electronic equipment obtains the face of the pixel at target pixel location after obtaining target pixel location in preview image Color.In a kind of possible embodiment, for each pixel at target pixel location, electronic equipment obtains the pixel Then position coordinates search color value corresponding with the position coordinates from the image data of preview image.Wherein, preview image Image data include corresponding relationship between position coordinates and color value.
In step 304, the color of coloured highlight mark is determined according to the color of the pixel at target pixel location, this has The color of color highlight mark is different from the color of the pixel at target pixel location.
When the color of pixel at target pixel location is same color, electronic equipment selects another color conduct The color of coloured highlight mark, the another kind color are different from above-mentioned same color.For example, the picture at target pixel location When the color of element is red, electronic equipment selects color of the yellow as coloured highlight mark.
When the color of pixel at target pixel location is a variety of different colors, electronic equipment selects another color As the color of coloured highlight mark, which is different from any one color in above-mentioned a variety of different colors. For example, electronic equipment selects green as coloured when the color of the pixel at target pixel location is red, yellow and white The color of highlight mark.
It, can also be in addition, electronic equipment can choose the color of coloured highlight mark from the preset color libraries of system The color of coloured highlight mark is chosen from the user in advance color libraries of customized setting.Wherein, in color libraries comprising it is a variety of not Same color.
In the present embodiment, by carrying out coloured highlight mark with different colors from the pixel at target pixel location It distinctly displays, allows users to the focusing state for more recognizing to ocular and clear preview image, help to improve operation effect Rate and user experience.
In step 305, according to the color of determining coloured highlight mark, Overlapping display has above target pixel location Color highlight mark.
After electronic equipment determines the color of coloured highlight mark, the coloured height of Overlapping display above target pixel location Bright label.
In conclusion method provided in this embodiment, passes through the acquisition pair from the preview image shown in shooting view-finder Target pixel location than degree greater than preset threshold, and the coloured highlight mark of Overlapping display above the target pixel location, benefit The focusing state of preview image is shown with the coloured highlight mark;It is depended on when solving the relevant technologies using manual focus mode Analytical judgment of the human eye to the focusing state of image causes operating efficiency lower and the problem more demanding to user;So that with The focusing state of image can be well understood in family according to coloured highlight mark when using manual focus mode, reached raising Operating efficiency and the effect for reducing the requirement to user.
In addition, method provided in this embodiment, also by by the pixel at coloured highlight mark and target pixel location with Different colors are differently shown, and allow users to the focusing state for more recognizing to ocular and clear preview image, have Help improve operating efficiency and user experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of device for showing focusing state shown according to an exemplary embodiment.The device can answer For in the electronic equipment with shooting function, which to can be mobile phone, tablet computer, camera etc..The device can be with It include: image display 410, position acquisition module 420 and label display module 430.
Image display 410 is configured as showing the preview image of object in shooting view-finder.
Position acquisition module 420 is configured as obtaining the target that contrast is greater than preset threshold from the preview image Location of pixels.
Display module 430 is marked, the coloured highlight mark of Overlapping display above the target pixel location, institute are configured as Coloured highlight mark is stated for showing the focusing state of the preview image.
In conclusion device provided in this embodiment, passes through the acquisition pair from the preview image shown in shooting view-finder Target pixel location than degree greater than preset threshold, and the coloured highlight mark of Overlapping display above the target pixel location, benefit The focusing state of preview image is shown with the coloured highlight mark;It is depended on when solving the relevant technologies using manual focus mode Analytical judgment of the human eye to the focusing state of image causes operating efficiency lower and the problem more demanding to user;So that with The focusing state of image can be well understood in family according to coloured highlight mark when using manual focus mode, reached raising Operating efficiency and the effect for reducing the requirement to user.
Fig. 5 is a kind of block diagram of the device of the displaying focusing state shown according to another exemplary embodiment.The device can Applied in the electronic equipment with shooting function, which can be mobile phone, tablet computer, camera etc..The device can To include: image display 410, position acquisition module 420 and label display module 430.
Image display 410 is configured as showing the preview image of object in shooting view-finder.
Position acquisition module 420 is configured as obtaining the target that contrast is greater than preset threshold from the preview image Location of pixels.
Display module 430 is marked, the coloured highlight mark of Overlapping display above the target pixel location, institute are configured as Coloured highlight mark is stated for showing the focusing state of the preview image.
Optionally, the position acquisition module 420, comprising: computational submodule 420a, comparison submodule 420b and position are obtained Take submodule 420c.
Computational submodule 420a is configured as calculating the contrast in the preview image between every two adjacent pixel.
Submodule 420b is compared, each contrast for being configured as to be calculated is compared with the preset threshold.
Position acquisition submodule 420c, is configured as obtaining contrast from the preview image according to comparison result and is greater than The target pixel location of the preset threshold.
Optionally, the position acquisition submodule 420c, comprising:
First position acquisition submodule 420c1 is configured as according to the comparison result directly from the preview image Obtain the target pixel location that contrast is greater than the preset threshold;
Alternatively,
Second position acquisition submodule 420c2 is configured as being obtained from the preview image according to the comparison result Contrast be less than the preset threshold other location of pixels, and by the preview image in addition to other location of pixels Residual pixel position be determined as the target pixel location.
Optionally, the label display module 430, comprising: acquisition submodule 430a, determine submodule 430b and display Module 430c.
Acquisition submodule 430a is configured as obtaining the color of the pixel at the target pixel location.
It determines submodule 430b, is configured as being determined according to the color of the pixel at the target pixel location described coloured The color of highlight mark, the color of the coloured highlight mark are different from the color of the pixel at the target pixel location.
Display sub-module 430c is configured as the color according to the determining coloured highlight mark, in the target picture Coloured highlight mark described in Overlapping display above plain position.
Optionally, described device further include: control display module 440, signal receiving module 450, apart from adjustment module 460 With region adjustment module 470.
Control display module 440, is configured as display slidable adjustment control, and the slidable adjustment control is used for described pre- The focusing area look in image is adjusted.
Signal receiving module 450 is configured as receiving the sliding touch signal for acting on the slidable adjustment control.
Apart from adjustment module 460, it is configured as adjusting focal distance according to the sliding touch signal.
Region adjustment module 470 is configured as adjusting the focusing area in the preview image according to the focal distance.
Optionally, described device further include: classification obtains module 480 and classification display module 490.
Classification obtains module 480, is configured as obtaining focal distance classification corresponding with current focal distance, described Focal distance is classified as any one in microspur, standard and infinity;
Classification display module 490 is configured as showing the focal distance classification.
In conclusion device provided in this embodiment, passes through the acquisition pair from the preview image shown in shooting view-finder Target pixel location than degree greater than preset threshold, and the coloured highlight mark of Overlapping display above the target pixel location, benefit The focusing state of preview image is shown with the coloured highlight mark;It is depended on when solving the relevant technologies using manual focus mode Analytical judgment of the human eye to the focusing state of image causes operating efficiency lower and the problem more demanding to user;So that with The focusing state of image can be well understood in family according to coloured highlight mark when using manual focus mode, reached raising Operating efficiency and the effect for reducing the requirement to user.
In addition, device provided in this embodiment, also by display slidable adjustment control, so that user passes through the slidable adjustment The focusing area in preview image is adjusted in control, to the real-time dynamic exhibition of user during user adjusts focusing area Show the variation of the focusing state of preview image.
In addition, device provided in this embodiment, also by by the pixel at coloured highlight mark and target pixel location with Different colors are differently shown, and allow users to the focusing state for more recognizing to ocular and clear preview image, have Help improve operating efficiency and user experience.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of devices for showing focusing state, can be realized disclosure offer The method for showing focusing state, which includes: the memory of processor and the executable instruction for storage processor;
Wherein, processor is configured as:
The preview image of object is shown in shooting view-finder;
The target pixel location that contrast is greater than preset threshold is obtained from preview image;
The coloured highlight mark of Overlapping display above target pixel location, the coloured highlight mark is for showing preview image Focusing state.
Optionally, processor is configured as:
Calculate the contrast in preview image between every two adjacent pixel;
The each contrast being calculated is compared with preset threshold;
The target pixel location that contrast is greater than preset threshold is obtained from preview image according to comparison result.
Optionally, processor is configured as:
The target pixel location that contrast is greater than preset threshold is obtained directly from preview image according to comparison result;
Alternatively,
Other location of pixels that contrast is less than preset threshold are obtained from preview image according to comparison result, and by preview Residual pixel position in image in addition to other location of pixels is determined as target pixel location.
Optionally, processor is configured as:
Obtain the color of the pixel at target pixel location;
The color of coloured highlight mark is determined according to the color of the pixel at target pixel location, the coloured highlight mark Color is different from the color of the pixel at target pixel location;
According to the color of determining coloured highlight mark, the coloured highlight mark of Overlapping display above target pixel location.
Optionally, processor is also configured to
Show slidable adjustment control, the slidable adjustment control is for being adjusted the focusing area in preview image;
Receive the sliding touch signal for acting on slidable adjustment control;
Focal distance is adjusted according to sliding touch signal;
The focusing area in preview image is adjusted according to focal distance.
Optionally, processor is also configured to
Corresponding with current focal distance focal distance is obtained to classify, the focal distance be classified as microspur, standard and Any one in infinity;
Show focal distance classification.
Fig. 6 is a kind of block diagram of device 600 shown according to an exemplary embodiment.Device 600 has shooting ability, example Such as, device 600 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 600 may include following one or more components: processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and Communication component 616.
The integrated operation of the usual control device 600 of processing component 602, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 602 may include that one or more processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes the instruction of any application or method for operating on device 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When device 600 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detecte the state that opens/closes of device 600, and the relative positioning of component, for example, it is described Component is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600 Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 600 When device executes, so that the method that device 600 is able to carry out above-mentioned displaying focusing state.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of method for showing focusing state, which is characterized in that the described method includes:
The preview image of object is shown in shooting view-finder;
Calculate the contrast in the preview image between every two adjacent pixel;
The each contrast being calculated is compared with preset threshold;
The target pixel location that contrast is greater than the preset threshold is obtained from the preview image according to comparison result;
Obtain the color of the pixel at the target pixel location;
The color of coloured highlight mark, the coloured highlight mark are determined according to the color of the pixel at the target pixel location Color for label of the Overlapping display above the target pixel location, the coloured highlight mark is different from the target picture The color of pixel at plain position, wherein when the color of the pixel at the target pixel location includes a variety of different colours, Color of another color as the coloured highlight mark is selected, the another kind color is different from a variety of different colours In any one color;
According to the color of the determining coloured highlight mark, the coloured height described in Overlapping display above the target pixel location Bright label, the coloured highlight mark are used to show the focusing state of the preview image.
2. the method according to claim 1, wherein described obtain from the preview image according to comparison result Contrast is greater than the target pixel location of the preset threshold, comprising:
The target that contrast is greater than the preset threshold is obtained directly from the preview image according to the comparison result Location of pixels;
Alternatively,
Other location of pixels that contrast is less than the preset threshold are obtained from the preview image according to the comparison result; Residual pixel position in the preview image in addition to other location of pixels is determined as the target pixel location.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
Show slidable adjustment control, the slidable adjustment control is for being adjusted the focusing area in the preview image;
Receive the sliding touch signal for acting on the slidable adjustment control;
Focal distance is adjusted according to the sliding touch signal;
The focusing area in the preview image is adjusted according to the focal distance.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Focal distance classification corresponding with current focal distance is obtained, the focal distance is classified as microspur, standard and nothing Limit any one in remote;
Show the focal distance classification.
5. a kind of device for showing focusing state, which is characterized in that described device includes:
Image display is configured as showing the preview image of object in shooting view-finder;
Position acquisition module, comprising:
Computational submodule is configured as calculating the contrast in the preview image between every two adjacent pixel;
Submodule is compared, each contrast for being configured as to be calculated is compared with preset threshold;
Position acquisition submodule, be configured as being obtained from the preview image according to comparison result contrast be greater than it is described default The target pixel location of threshold value;
Mark display module, comprising:
Acquisition submodule is configured as obtaining the color of the pixel at the target pixel location;
It determines submodule, is configured as determining the face of coloured highlight mark according to the color of the pixel at the target pixel location Color, the coloured highlight mark are label of the Overlapping display above the target pixel location, the coloured highlight mark Color is different from the color of the pixel at the target pixel location, wherein the face of the pixel at the target pixel location When color includes a variety of different colours, color of another color as the coloured highlight mark, the another kind color are selected Different from any one color in a variety of different colours;
Display sub-module is configured as the color according to the determining coloured highlight mark, in the target pixel location Coloured highlight mark described in square Overlapping display, the coloured highlight mark are used to show the focusing state of the preview image.
6. device according to claim 5, which is characterized in that the position acquisition submodule, comprising:
First position acquisition submodule is configured as directly obtaining contrast from the preview image according to the comparison result Greater than the target pixel location of the preset threshold;
Alternatively,
Second position acquisition submodule, is configured as obtaining contrast from the preview image according to the comparison result and is less than Other location of pixels of the preset threshold, and by the residual pixel in the preview image in addition to other location of pixels Position is determined as the target pixel location.
7. device according to claim 5 or 6, which is characterized in that described device further include:
Control display module, is configured as display slidable adjustment control, and the slidable adjustment control is used for the preview image In focusing area be adjusted;
Signal receiving module is configured as receiving the sliding touch signal for acting on the slidable adjustment control;
Apart from adjustment module, it is configured as adjusting focal distance according to the sliding touch signal;
Region adjustment module is configured as adjusting the focusing area in the preview image according to the focal distance.
8. device according to claim 7, which is characterized in that described device further include:
Classification obtains module, is configured as obtaining focal distance classification corresponding with current focal distance, the focusing From any one being classified as in microspur, standard and infinity;
Classification display module is configured as showing the focal distance classification.
9. a kind of device for showing focusing state, which is characterized in that described device includes:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
The preview image of object is shown in shooting view-finder;
Calculate the contrast in the preview image between every two adjacent pixel;
The each contrast being calculated is compared with preset threshold;
The target pixel location that contrast is greater than the preset threshold is obtained from the preview image according to comparison result;
Obtain the color of the pixel at the target pixel location;
The color of coloured highlight mark, the coloured highlight mark are determined according to the color of the pixel at the target pixel location Color for label of the Overlapping display above the target pixel location, the coloured highlight mark is different from the target picture The color of pixel at plain position, wherein when the color of the pixel at the target pixel location includes a variety of different colours, Color of another color as the coloured highlight mark is selected, the another kind color is different from a variety of different colours In any one color;
According to the color of the determining coloured highlight mark, the coloured height described in Overlapping display above the target pixel location Bright label, the coloured highlight mark are used to show the focusing state of the preview image.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction The method that collection is loaded by processor and executed to realize the displaying focusing state as described in Claims 1-4 is any.
CN201510226260.5A 2015-05-06 2015-05-06 Show the method and device of focusing state Active CN106201238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510226260.5A CN106201238B (en) 2015-05-06 2015-05-06 Show the method and device of focusing state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510226260.5A CN106201238B (en) 2015-05-06 2015-05-06 Show the method and device of focusing state

Publications (2)

Publication Number Publication Date
CN106201238A CN106201238A (en) 2016-12-07
CN106201238B true CN106201238B (en) 2019-11-29

Family

ID=57459027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510226260.5A Active CN106201238B (en) 2015-05-06 2015-05-06 Show the method and device of focusing state

Country Status (1)

Country Link
CN (1) CN106201238B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584700B (en) * 2020-11-30 2024-04-05 京东方科技集团股份有限公司 Focusing marking method, marking device and electronic equipment
CN114189628A (en) * 2021-11-30 2022-03-15 歌尔光学科技有限公司 Control method and device of shooting function, AR device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281399A (en) * 2011-08-12 2011-12-14 广东步步高电子工业有限公司 Digital photographic equipment with touch screen and zooming method of digital photographic equipment
CN103763498A (en) * 2014-01-24 2014-04-30 深圳市影歌科技有限公司 HDMI signal processing system and method
CN103795916A (en) * 2012-10-26 2014-05-14 佳能株式会社 Imaging apparatus and focusing method for imaging apparatus
CN103988489A (en) * 2011-09-30 2014-08-13 富士胶片株式会社 Imaging device, imaging method, recording medium and program
CN104270562A (en) * 2014-08-15 2015-01-07 广东欧珀移动通信有限公司 Method and device for focusing when photographing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4325599B2 (en) * 2005-08-25 2009-09-02 ソニー株式会社 Imaging apparatus and display control method
US8421897B2 (en) * 2009-04-08 2013-04-16 Canon Kabushiki Kaisha Image capturing apparatus and control method therefor
CN101877137B (en) * 2009-04-30 2013-01-02 国际商业机器公司 Method for highlighting thematic element and system thereof
JP5744429B2 (en) * 2010-07-16 2015-07-08 キヤノン株式会社 Image processing apparatus, image processing method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281399A (en) * 2011-08-12 2011-12-14 广东步步高电子工业有限公司 Digital photographic equipment with touch screen and zooming method of digital photographic equipment
CN103988489A (en) * 2011-09-30 2014-08-13 富士胶片株式会社 Imaging device, imaging method, recording medium and program
CN103795916A (en) * 2012-10-26 2014-05-14 佳能株式会社 Imaging apparatus and focusing method for imaging apparatus
CN103763498A (en) * 2014-01-24 2014-04-30 深圳市影歌科技有限公司 HDMI signal processing system and method
CN104270562A (en) * 2014-08-15 2015-01-07 广东欧珀移动通信有限公司 Method and device for focusing when photographing

Also Published As

Publication number Publication date
CN106201238A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106572299B (en) Camera opening method and device
CN105631797B (en) Watermark adding method and device
US10534972B2 (en) Image processing method, device and medium
EP3249509A1 (en) Method and device for playing live videos
CN107426502B (en) Shooting method and device, electronic equipment and storage medium
CN105491284B (en) The display methods and device of preview image
RU2621285C2 (en) Method and device of slow motion
KR101793183B1 (en) Method, device, program and recording medium for setting shooting parameter
US20170163883A1 (en) Method and apparatus for preventing photograph from being shielded
CN105282441B (en) Photographing method and device
CN105744133B (en) Video light compensation method and device
CN106210550A (en) Mode regulating method and device
CN105512615B (en) Image processing method and device
JP5791448B2 (en) Camera device and portable terminal
CN105631804B (en) Image processing method and device
CN106303192B (en) Terminal control method and terminal
US10230891B2 (en) Method, device and medium of photography prompts
CN104216525B (en) Method and device for mode control of camera application
CN105931239B (en) The method and device of image procossing
EP3822742B1 (en) Method, apparatus and device for triggering shooting mode, and storage medium
CN107347136A (en) Photographic method, device and terminal device
CN107426489A (en) Processing method, device and terminal during shooting image
CN105959594A (en) Metering method and device for photographic equipment
CN113364965A (en) Shooting method and device based on multiple cameras and electronic equipment
CN105516588A (en) Photographic processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant