CN109639976A - Focus determines method and apparatus - Google Patents

Focus determines method and apparatus Download PDF

Info

Publication number
CN109639976A
CN109639976A CN201811582186.0A CN201811582186A CN109639976A CN 109639976 A CN109639976 A CN 109639976A CN 201811582186 A CN201811582186 A CN 201811582186A CN 109639976 A CN109639976 A CN 109639976A
Authority
CN
China
Prior art keywords
region
target image
various colors
color
focus
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
CN201811582186.0A
Other languages
Chinese (zh)
Other versions
CN109639976B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811582186.0A priority Critical patent/CN109639976B/en
Publication of CN109639976A publication Critical patent/CN109639976A/en
Application granted granted Critical
Publication of CN109639976B publication Critical patent/CN109639976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the present application discloses focus and determines method and apparatus.One specific embodiment of this method includes: acquisition target image, determines at least two regions in target image;Determine the various colors degree of each region, wherein various colors degree is determined based on the quantity of color included in region;Focus is determined from the highest region of various colors degree.The embodiment of the present application can provide a kind of adaptive focusing scheme, can capture automatically coloury region according to the colored feature of clapped object.Make coloury image-region clarity high after focusing, to obtain better image treatment effect.

Description

Focus determines method and apparatus
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field more particularly to focus are true Determine method and apparatus.
Background technique
As focus determines the development of technology, image is carried out repairing the processing such as figure or decoration more and more common.Existing Have in technology, various effects can be added to the face in image, so that the face in image is more lively.Face in the picture The effect of position in addition, presentation is often relatively simple.
Summary of the invention
The embodiment of the present application proposes focus and determines method and apparatus.
In a first aspect, the embodiment of the present application, which provides a kind of focus, determines method, comprising: obtain target image, determine mesh At least one region in logo image;Determine the various colors degree of each region, wherein various colors degree is based on being wrapped in region Quantity containing color determines;Focus is determined from the highest region of various colors degree.
In some embodiments, at least one region in target image is determined, comprising: in the target image, determine one A region;Other areas in target image are obtained to the mobile preset step-length of the frame in a region according to default moving direction Domain.
In some embodiments, at least one region in target image is determined, comprising: profile is carried out to target image and is mentioned It takes;Based on extracted profile, at least one region in target image is determined.
In some embodiments, the various colors degree of each region is determined, comprising: in each region, determine color most Number of colors in more regions;For each region, the variance of the area of each color in the region is determined, determining should Number of colors in region is color of object quantity;The quotient of inverse and color of object quantity and number of colors based on variance, Determine the various colors degree in the region.
In some embodiments, focus is determined from the highest region of various colors degree, comprising: most by various colors degree The geometric center in high region is set as focus.
Second aspect, the embodiment of the present application provide a kind of focus determining device, comprising: acquiring unit is configured to obtain Target image is taken, determines at least one region in target image;First determination unit is configured to determine the face of each region Color richness, wherein various colors degree is determined based on the quantity of color included in region;Second determination unit, is configured to Focus is determined from the highest region of various colors degree.
In some embodiments, acquiring unit is further configured to: in the target image, determining a region;According to Default moving direction obtains other regions in target image to the mobile preset step-length of the frame in a region.
In some embodiments, acquiring unit is further configured to: carrying out contours extract to target image;Based on institute The profile of extraction determines at least one region in target image.
In some embodiments, the first determination unit is further configured to: in each region, determining that color is most Region in number of colors;For each region, determines the variance of the area of each color in the region, determine the area Number of colors in domain is color of object quantity;The quotient of inverse and color of object quantity and number of colors based on variance, really The various colors degree in the fixed region.
In some embodiments, the second determination unit is further configured to: by the several of the highest region of various colors degree What center is set as focus.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more A processor realizes the method for determining any embodiment in method such as focus.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method for determining any embodiment in method such as focus when the program is executed by processor.
Focus provided by the embodiments of the present application determines scheme, firstly, obtaining target image, determines in target image at least One region.Later, the various colors degree of each region is determined, wherein various colors degree is based on color included in region Quantity determines.Then, focus is determined from the highest region of various colors degree.The embodiment of the present application can provide one kind certainly The focusing scheme of adaptation can capture automatically coloury region according to the colored feature of clapped object.Make after focusing Coloury image-region clarity is high, to obtain better image treatment effect.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart that one embodiment of method is determined according to the focus of the application;
Fig. 3 is the schematic diagram that an application scenarios of method are determined according to the focus of the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the focus determining device of the application;
Fig. 5 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system that the embodiment of method or focus determining device can be determined using the focus of the application System framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed on terminal device 101,102,103, for example, focus determine application, Video class application, live streaming application, instant messaging tools, mailbox client, social platform software etc..
Here terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102, 103 be hardware when, can be the various electronic equipments with display screen, including but not limited to smart phone, tablet computer, electronics Book reader, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101,102,103 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it The multiple softwares or software module of formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as provide support to terminal device 101,102,103 Background server.Background server can carry out the data such as the target image received the processing such as analyzing, and processing is tied Fruit (such as the focus determined) feeds back to terminal device.
It should be noted that focus provided by the embodiment of the present application determines that method can be by server 105 or terminal Equipment 101,102,103 executes, correspondingly, focus determining device can be set in server 105 or terminal device 101, 102, in 103.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process 200 that one embodiment of method is determined according to the focus of the application is shown.The coke Point determines method, comprising the following steps:
Step 201, target image is obtained, determines at least one region in target image.
In the present embodiment, focus determines that the executing subject (such as server shown in FIG. 1 or terminal device) of method can To obtain target image, and determine at least one region in target image.Here at least one region may include complete Whole target image can also be the part of target image.In practice, it can be determined in target image using various ways At least one region.For example, the side of target image includes broadside and flash, in available preset region Number carries out equal part to the flash of target image later, flash is divided into preset number.In this way, can be by flash A line of the side obtained after equal part as region, and using the width of target image as the width of the another a line in region, to obtain To identical multiple regions.
In some optional implementations of the present embodiment, at least one region in above-mentioned determining target image can To include:
In the target image, a region is determined;According to default moving direction, default step mobile to the frame in a region It is long, obtain other regions in target image.
In these optional implementations, above-mentioned executing subject can be in the target image, it is first determined the area Chu Yige Domain.In general, this region is rectangle.One of vertex in the region can be overlapped with one of vertex of target image. For example, the vertex in this region upper left corner is overlapped with the vertex in the target image upper left corner.Later, above-mentioned executing subject can be to pre- If moving direction, the frame in the region, other regions in available target image other than said one region are moved.Every time Mobile distance is preset step-length (stride), and every movement is primary, which can delimit the boundary in a region.Default movement Direction can be preset any direction.For example, default moving direction can be transverse shifting, such as from left end Start, to the right transverse shifting.It is also possible to according to diagonal line, to diagonal movement.It herein, can be between the adjacent area obtained There are overlapping, the ratio that lap accounts for each region of target image can be identical, and can preset.
These implementations can neatly determine the size in a region, and then determine multiple areas in the target image Domain.
In some optional implementations of the present embodiment, at least one region in above-mentioned determining target image can To include:
Contours extract is carried out to target image;Based on extracted profile, at least one area in target image is determined Domain.
In these optional implementations, the profile in target image can be extracted, each profile is surrounded The each region of region as target image.It in practice, can be only using closed profile area encompassed as target figure At least one region as in.In the target image, it is understood that there may be left white part other than at least one region.For example, being left white Part can be the sky presented in image.
These implementations can determine each region according to the pattern in target image, then in a region In, distribution of color can be more uniform.
Step 202, the various colors degree of each region is determined, wherein various colors degree is based on included color in region Quantity determine.
In the present embodiment, above-mentioned executing subject can determine the various colors degree of each region.Various colors degree refers to figure As the abundant degree of color interior or in some region of image.The numerical value of the various colors degree in region is bigger, then shows this Color in region is abundanter, namely including a variety of different colors.
In practice, above-mentioned executing subject can determine various colors degree using various ways.For example, can be directly by area Numerical value of the quantity for the color category for being included in domain as various colors degree.
In some optional implementations of the present embodiment, step 202 may include:
In each region, the number of colors in the most region of color is determined;For each region, the region is determined The variance of the area of interior each color determines that the number of colors in the region is color of object quantity;Inverse based on variance, And the quotient of color of object quantity and number of colors, determine the various colors degree in the region.
In these optional implementations, above-mentioned executing subject can determine the number of colors in each region, and really Make the number of colors in the most region of color.
Also, above-mentioned executing subject can determine the variance s of the area of each color in each region2, formula is as follows:
Wherein, n is the number in region, and x is color value, total equal to the area of color one of in the region and the region The ratio of area, M are color mean value, M=(x1+x2…+xn)/n。
Above-mentioned executing subject can determine the number of colors in the region, and determine that number of colors and color are most in the region The quotient of number of colors in more regions.Later, above-mentioned executing subject can use the quotient reciprocal and above-mentioned of variance, determine face Color richness.In practice, various colors degree can be determined using various ways.For example, can by variance inverse and The product that above-mentioned quotient is multiplied is as various colors degree.The sum that the inverse of variance can also be added with above-mentioned quotient is as various colors Degree, then various colors degree F can be indicated are as follows:
F=1/s2+ cn/max_cn,
Wherein, s2For above-mentioned variance, cn is the number of colors in the region, and max_cn is indicated in the most region of color Number of colors.
Herein, number of colors is bigger in the region and/or the region in distribution of color it is more uniform, then the face in the region Color richness is bigger.
These implementations can more accurately determine the various colors degree of each region, in order to more accurately determine Focus.
Step 203, focus is determined from the highest region of various colors degree.
In the present embodiment, above-mentioned executing subject can determine the highest region of various colors degree, and from wherein determining Focus.For example, above-mentioned executing subject can choose a point as focus out of this region at random.
In some optional implementations of the present embodiment, the geometric center in the highest region of various colors degree is arranged For focus.
In these optional implementations, above-mentioned executing subject can will be in the geometry in the highest region of various colors degree The heart can preferably see the most abundant region of entire color clearly as focus, such user, so as to avoid distance in the region There are color abundant but the poor problem of clarity in the farther away part of focus.
It is the schematic diagram that the application scenarios of method are determined according to the focus of the present embodiment with continued reference to Fig. 3, Fig. 3.? In the application scenarios of Fig. 3, the available target image 302 of executing subject 301 determines at least one area in target image 302 Domain 303;Determine the various colors degree 304 of each region, wherein quantity of the various colors degree based on color included in region is true It is fixed;Focus 305 is determined from the highest region of various colors degree.
Above-described embodiment of the application can provide a kind of adaptive focusing scheme, can be according to the coloured silk of clapped object The feature of color captures coloury region automatically.Make coloury image-region clarity high after focusing, to obtain Better image treatment effect.
It determines and fills this application provides a kind of focus as the realization to method shown in above-mentioned each figure with further reference to Fig. 4 The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to respectively In kind electronic equipment.
As shown in figure 4, the focus determining device 400 of the present embodiment includes: acquiring unit 401,402 and of the first determination unit Second determination unit 403.Wherein, acquiring unit 401 are configured to obtain target image, determine at least one in target image A region;First determination unit 402 is configured to determine the various colors degree of each region, wherein various colors degree is based on area The quantity of included color determines in domain;Second determination unit 403 is configured to determine from the highest region of various colors degree Focus out.
In some embodiments, the available target image of acquiring unit 401 of focus determining device 400, and determine mesh At least one region in logo image.Here at least one region may include complete target image, can also be The part of target image.In practice, at least one region in target image can be determined using various ways.
In some embodiments, the first determination unit 402 can determine the various colors degree of each region.Various colors degree Refer to the abundant degree of the color in image or in some region of image.The numerical value of the various colors degree in region is bigger, then table Color in the bright region is abundanter, namely including a variety of different colors.
In some embodiments, the second determination unit 403 can determine the highest region of various colors degree, and from wherein really Make focus.For example, above-mentioned executing subject can choose a point as focus out of this region at random.
In some optional implementations of the present embodiment, acquiring unit is further configured to: in target image In, determine a region;The mobile preset step-length of the frame in one region is obtained in target image according to default moving direction Other regions.
In some optional implementations of the present embodiment, acquiring unit is further configured to: to target image into Row contours extract;Based on extracted profile, at least one region in target image is determined.
In some optional implementations of the present embodiment, the first determination unit is further configured to: in each area In domain, the number of colors in the most region of color is determined;For each region, the face of each color in the region is determined Long-pending variance determines that the number of colors in the region is color of object quantity;Inverse and color of object quantity based on variance With the quotient of number of colors, the various colors degree in the region is determined.
In some optional implementations of the present embodiment, the second determination unit is further configured to: color is rich The geometric center in the highest region Fu Du is set as focus.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 5 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU and/or GPU) 501, it can be according to depositing Storage is loaded into random access storage device (RAM) 503 in the program in read-only memory (ROM) 502 or from storage section 508 Program and execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various journeys Sequence and data.Central processing unit 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) Interface 505 is also connected to bus 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 509, and/or from detachable media 511 are mounted.When the computer program is executed by central processing unit 501, limited in execution the present processes above-mentioned Function.It should be noted that the computer-readable medium of the application can be computer-readable signal media or computer can Read storage medium either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include acquiring unit, the first determination unit and the second determination unit.Wherein, the title of these units is not constituted under certain conditions Restriction to the unit itself, for example, acquiring unit is also described as " obtaining the unit of target image ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: target image is obtained, determines at least two regions in the target image;Determine the various colors degree of each region, Wherein, various colors degree is determined based on the quantity of color included in region;It is determined from the highest region of various colors degree Focus.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of focus determines method, comprising:
Target image is obtained, determines at least one region in the target image;
Determine the various colors degree of each region, wherein various colors degree is determined based on the quantity of color included in region;
Focus is determined from the highest region of various colors degree.
2. according to the method described in claim 1, wherein, at least one region in the determination target image, comprising:
In the target image, a region is determined;
Its in the target image is obtained to the mobile preset step-length of the frame in one region according to default moving direction His region.
3. according to the method described in claim 1, wherein, at least one region in the determination target image, comprising:
Contours extract is carried out to the target image;
Based on extracted profile, at least one region in the target image is determined.
4. according to the method described in claim 1, wherein, the various colors degree of described determining each region, comprising:
In each region, the number of colors in the most region of color is determined;
For each region, determines the variance of the area of each color in the region, determine the number of colors in the region For color of object quantity;The quotient of inverse and the color of object quantity and the number of colors based on the variance determines The various colors degree in the region.
5. described to determine focus from the highest region of various colors degree according to the method described in claim 1, wherein, packet It includes:
Focus is set by the geometric center in the highest region of various colors degree.
6. a kind of focus determining device, comprising:
Acquiring unit is configured to obtain target image, determines at least one region in the target image;
First determination unit is configured to determine the various colors degree of each region, wherein various colors degree is based on institute in region Quantity comprising color determines;
Second determination unit is configured to determine focus from the highest region of various colors degree.
7. device according to claim 6, wherein the acquiring unit is further configured to:
In the target image, a region is determined;
Its in the target image is obtained to the mobile preset step-length of the frame in one region according to default moving direction His region.
8. device according to claim 6, wherein the acquiring unit is further configured to:
Contours extract is carried out to the target image;
Based on extracted profile, at least one region in the target image is determined.
9. device according to claim 6, wherein first determination unit is further configured to:
In each region, the number of colors in the most region of color is determined;
For each region, determines the variance of the area of each color in the region, determine the number of colors in the region For color of object quantity;The quotient of inverse and the color of object quantity and the number of colors based on the variance determines The various colors degree in the region.
10. device according to claim 6, wherein second determination unit is further configured to:
Focus is set by the geometric center in the highest region of various colors degree.
11. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor Realize such as method as claimed in any one of claims 1 to 5.
CN201811582186.0A 2018-12-24 2018-12-24 Focus determination method and device Active CN109639976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811582186.0A CN109639976B (en) 2018-12-24 2018-12-24 Focus determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811582186.0A CN109639976B (en) 2018-12-24 2018-12-24 Focus determination method and device

Publications (2)

Publication Number Publication Date
CN109639976A true CN109639976A (en) 2019-04-16
CN109639976B CN109639976B (en) 2021-02-09

Family

ID=66076915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811582186.0A Active CN109639976B (en) 2018-12-24 2018-12-24 Focus determination method and device

Country Status (1)

Country Link
CN (1) CN109639976B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005055744A (en) * 2003-08-06 2005-03-03 Minolta Co Ltd Imaging apparatus and program
CN102611823A (en) * 2012-01-13 2012-07-25 百度在线网络技术(北京)有限公司 Method and equipment capable of selecting compression algorithm based on picture content
CN104205801A (en) * 2012-03-28 2014-12-10 高通股份有限公司 Method and apparatus for autofocusing an imaging device
CN104755980A (en) * 2012-10-26 2015-07-01 富士胶片株式会社 Imaging device and focus control method therefor
CN105184763A (en) * 2014-06-23 2015-12-23 索尼公司 Image processing method and device
CN106101540A (en) * 2016-06-28 2016-11-09 北京旷视科技有限公司 Focusing determines method and device
CN106101561A (en) * 2016-08-09 2016-11-09 青岛海信移动通信技术股份有限公司 Camera focusing detection method and device
US20170318196A1 (en) * 2016-05-02 2017-11-02 Fuji Xerox Co., Ltd. Change degree deriving device, change degree deriving system, and non-transitory computer readable medium
CN108234884A (en) * 2018-02-12 2018-06-29 西安电子科技大学 A kind of automatic focusing method of camera of view-based access control model conspicuousness

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005055744A (en) * 2003-08-06 2005-03-03 Minolta Co Ltd Imaging apparatus and program
CN102611823A (en) * 2012-01-13 2012-07-25 百度在线网络技术(北京)有限公司 Method and equipment capable of selecting compression algorithm based on picture content
CN104205801A (en) * 2012-03-28 2014-12-10 高通股份有限公司 Method and apparatus for autofocusing an imaging device
CN104755980A (en) * 2012-10-26 2015-07-01 富士胶片株式会社 Imaging device and focus control method therefor
CN105184763A (en) * 2014-06-23 2015-12-23 索尼公司 Image processing method and device
US20170318196A1 (en) * 2016-05-02 2017-11-02 Fuji Xerox Co., Ltd. Change degree deriving device, change degree deriving system, and non-transitory computer readable medium
CN106101540A (en) * 2016-06-28 2016-11-09 北京旷视科技有限公司 Focusing determines method and device
CN106101561A (en) * 2016-08-09 2016-11-09 青岛海信移动通信技术股份有限公司 Camera focusing detection method and device
CN108234884A (en) * 2018-02-12 2018-06-29 西安电子科技大学 A kind of automatic focusing method of camera of view-based access control model conspicuousness

Also Published As

Publication number Publication date
CN109639976B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN109308681A (en) Image processing method and device
CN108830235A (en) Method and apparatus for generating information
CN109087377B (en) Method and apparatus for handling image
CN109255767A (en) Image processing method and device
CN108898185A (en) Method and apparatus for generating image recognition model
CN108595628A (en) Method and apparatus for pushed information
CN109308469A (en) Method and apparatus for generating information
CN109255337A (en) Face critical point detection method and apparatus
CN109272050B (en) Image processing method and device
CN109389640A (en) Image processing method and device
CN109242801A (en) Image processing method and device
CN109118456A (en) Image processing method and device
CN108882025A (en) Video frame treating method and apparatus
CN107977946A (en) Method and apparatus for handling image
CN109063653A (en) Image processing method and device
CN109344762A (en) Image processing method and device
CN109711508A (en) Image processing method and device
CN109377508A (en) Image processing method and device
CN110516678A (en) Image processing method and device
CN108960110A (en) Method and apparatus for generating information
CN109345580A (en) Method and apparatus for handling image
CN107622504A (en) Method and apparatus for handling picture
CN109255814A (en) Method and apparatus for handling image
CN110516099A (en) Image processing method and device
CN109495767A (en) Method and apparatus for output information

Legal Events

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