CN105959548A - Camera focusing method for acquiring high quality document images and device - Google Patents
Camera focusing method for acquiring high quality document images and device Download PDFInfo
- Publication number
- CN105959548A CN105959548A CN201610362850.5A CN201610362850A CN105959548A CN 105959548 A CN105959548 A CN 105959548A CN 201610362850 A CN201610362850 A CN 201610362850A CN 105959548 A CN105959548 A CN 105959548A
- Authority
- CN
- China
- Prior art keywords
- image block
- image
- confidence
- block
- focusing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The invention discloses a camera focusing method for acquiring high quality document images and a device and can realize accurate focusing of a focusing lens. The method comprises steps that S1, during automatic camera focusing, multiple preview low resolution images are acquired through changing front and back positions of the focusing lens of a lens group; S2, an image of the multiple preview low resolution images having the largest confidence is selected and is taken as an optimal image, and the position of the focusing lens corresponding to the optimal image is taken as an optimal focusing position of the focusing lens; and S3, the position of the focusing lens is adjusted to be the optimal focusing position, and thereby the camera can be used for shooting intelligible high quality images.
Description
Technical field
The present invention relates to camera focusing technical field, be specifically related to a kind of for camera acquisition height
The focusing method of quality file and picture and device.
Background technology
Existing camera focus process is as follows:
(1) camera is when shooting image, when camera shutter button is pressed to the first stroke, and phase
Position before and after focusing lens in machine driving change lens group, it is thus achieved that multiframe preview image.
(2) camera drives and selects optimized image, and is defined as the position obtaining optimized image
The best focus position of focusing lens, if traditional system of selection is by calculating edge in image
The information such as gradient, phase place determines the position of focusing lens.
(3) camera drives the position adjustment of focusing lens is best focus position, afterwards,
It is obtained with high-quality file and picture.
But when camera is used for obtaining file and picture, owing to, in file and picture, existing a lot
Special symbol, break, the artificial disturbance such as folding, utilize traditional method to be difficult to determine focus lamp
The accurate focal position of sheet, thus be difficult to obtain high-quality file and picture.
Summary of the invention
In view of this, the embodiment of the present invention provides one to obtain high-quality document map for camera
The focusing method of picture and device, it is possible to realize the accurate focusing of focusing lens.
On the one hand, the embodiment of the present invention proposes one for camera acquisition high-quality file and picture
Focusing method, including:
S1, when camera focuses on automatically, by changing in lens group position before and after focusing lens,
Obtain multiframe preview low-resolution image;
S2, the image conduct that selection confidence level is maximum from described multiframe preview low-resolution image
Optimized image, and the position of the focusing lens corresponding to described optimized image is defined as focus lamp
The best focus position of sheet;
S3, it is described best focus position by the position adjustment of focusing lens, thus is used for clapping
Take the photograph high quality graphic clearly.
On the other hand, the embodiment of the present invention proposes one for camera acquisition high-quality document map
The focusing mechanism of picture, including:
Acquiring unit, for when camera focuses on automatically, by changing focusing lens in lens group
Before and after position, it is thus achieved that multiframe preview low-resolution image;
Determine unit, for selecting confidence level maximum from described multiframe preview low-resolution image
Image as optimized image, and by true for the position of the focusing lens corresponding to described optimized image
It is set to the best focus position of focusing lens;
Adjustment unit, being used for the position adjustment of focusing lens is described best focus position,
Thus for the high quality graphic of shooting clear.
The focusing method obtaining high-quality file and picture for camera that the embodiment of the present invention provides
And device, the quality of focusing is weighed with recognition confidence, when camera focuses on automatically, logical
Cross the position that position is the focusing lens obtaining the maximum image of confidence level adjusting focusing lens
Put, and the calculating of confidence level will not by special symbol, break, the artificial disturbance such as folding,
It is thus possible to realize the accurate focusing of focusing lens.
Accompanying drawing explanation
Fig. 1 is a kind of focusing method one obtaining high-quality file and picture for camera of the present invention
The schematic flow sheet of embodiment;
Fig. 2 is that a two field picture is divided into the schematic diagram of multiple image block by the present invention;
Fig. 3 is showing of the image block that in the image block shown in Fig. 2, average recognition confidence is maximum
It is intended to;
Fig. 4 is a kind of focusing mechanism one obtaining high-quality file and picture for camera of the present invention
The structural representation of embodiment.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu ground describe, it is clear that described embodiment be a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having
Have and make the every other embodiment obtained under creative work premise, broadly fall into the present invention
The scope of protection.
Referring to Fig. 1, the present embodiment disclose a kind of for camera obtain high-quality file and picture right
Burnt method, including:
S1, when camera focuses on automatically, by changing in lens group position before and after focusing lens,
Obtain multiframe preview low-resolution image;
S2, the image conduct that selection confidence level is maximum from described multiframe preview low-resolution image
Optimized image, and the position of the focusing lens corresponding to described optimized image is defined as focus lamp
The best focus position of sheet;
S3, it is described best focus position by the position adjustment of focusing lens, thus is used for clapping
Take the photograph high quality graphic clearly.
The focusing method obtaining high-quality file and picture for camera that the present embodiment provides, with
Recognition confidence weighs the quality of focusing, when camera focuses on automatically, is focused on by adjustment
The position of eyeglass is the position of the focusing lens obtaining the maximum image of confidence level, and confidence level
Calculating will not by special symbol, break, the artificial disturbance such as folding such that it is able to realize
The accurate focusing of focusing lens.
Alternatively, obtain the focusing method of high-quality file and picture for camera in the present invention
In another embodiment, described from described multiframe preview low-resolution image, select confidence level
Big image as optimized image, including:
From described multiframe preview low-resolution image, select a two field picture, this two field picture is divided
Becoming multiple image block, wherein, the size of the plurality of image block is identical;
For each image block, calculating the average confidence C of this image block, computing formula isWherein, ciFor the confidence level of i-th character in this image block, n is this figure
As the quantity of character in block;
By the size of the relatively average confidence of the plurality of image block, determine described many
The image block that in individual image block, average confidence is maximum, and by described average confidence maximum
Image block is as intermediate image block;
Calculate the average confidence in the region of corresponding described intermediate image block in other two field picture;
Select from described multiple image a two field picture as optimized image, wherein, described
The average confidence in the region of the corresponding described intermediate image block of good image is in described multiple image
The maximum of the average confidence in the region of corresponding described intermediate image block.
Alternatively, obtain the focusing method of high-quality file and picture for camera in the present invention
In another embodiment, the average confidence of described this image block of calculating, including:
By positioning the text message in this image block, and use OCR to identify, obtain each
The recognition result of individual character and the confidence level of correspondence, according to the confidence of character in this image block
Degree calculates the average confidence of this image block.
Alternatively, obtain the focusing method of high-quality file and picture for camera in the present invention
In another embodiment, described this two field picture is divided into multiple image block, including:
This two field picture is divided into 3*3 image block.
In the embodiment of the present invention, 3*3 image block can be divided the image into, it is also possible to be divided into it
The image block of its quantity, this is not construed as limiting by the present invention.
With a specific embodiment, the focus method of the present invention is described in detail below.
Drive to change in lens group at camera and obtain multiframe during position before and after focusing lens
Image, therefrom selects a two field picture to calculate confidence level.The computational methods of confidence level are as follows:
As in figure 2 it is shown, image uniform to be divided into 3*3 image block, position in each image block
Text message, and call OCR and identify (a kind of software for discerning characters), obtain each
The recognition result of character and the confidence level of correspondence, calculate image block confidence level with this, public
Formula is as follows:
Wherein ciRepresenting the confidence level of i-th character, n represents the number of this image block character.
Try to achieve the image block that in 9 image blocks, average confidence is maximum and (be illustrated in figure 3 flat
The image block that all confidence level is maximum), in this, as the reference position of remaining several two field picture, calculate
The average confidence of corresponding position image block in remaining several two field picture, and by described corresponding positions
Put average confidence in the image block that in place's image block and 9 image blocks, average confidence is maximum
The image corresponding to image block of degree maximum is as optimized image, and obtains this optimized image
Focal position is the best focus position of camera.
Referring to Fig. 4, the present embodiment disclose a kind of for camera obtain high-quality file and picture right
Coke installation, including:
Acquiring unit 1, for when camera focuses on automatically, by changing focus lamp in lens group
Position before and after sheet, it is thus achieved that multiframe preview low-resolution image;
Determine unit 2, for selecting confidence level from described multiframe preview low-resolution image
Big image is as optimized image, and by the position of the focusing lens corresponding to described optimized image
It is defined as the best focus position of focusing lens;
Adjustment unit 3, being used for the position adjustment of focusing lens is described best focus position,
Thus for the high quality graphic of shooting clear.
The focusing mechanism obtaining high-quality file and picture for camera that the present embodiment provides, with
Recognition confidence weighs the quality of focusing, when camera focuses on automatically, is focused on by adjustment
The position of eyeglass is the position of the focusing lens obtaining the maximum image of confidence level, and confidence level
Calculating will not by special symbol, break, the artificial disturbance such as folding such that it is able to realize
The accurate focusing of focusing lens.
Alternatively, obtain the focusing mechanism of high-quality file and picture for camera in the present invention
In another embodiment, described determine unit, including:
Divide subelement, for selecting a frame figure from described multiframe preview low-resolution image
Picture, is divided into multiple image block, wherein, the size phase of the plurality of image block by this two field picture
With;
First computation subunit, for for each image block, calculates the average of this image block
Confidence level C, computing formula isWherein, ciFor i-th word in this image block
The confidence level of symbol, n is the quantity of character in this image block;
Relatively subelement, big for the average confidence by relatively the plurality of image block
Little, determine the image block that in the plurality of image block, average confidence is maximum, and by described
The image block of average confidence maximum is as intermediate image block;
Second computation subunit, is used for calculating corresponding described intermediate image block in other two field picture
The average confidence in region;
Select subelement, for selecting a two field picture as optimal figure from described multiple image
Picture, wherein, the average confidence in the region of the corresponding described intermediate image block of described optimized image
The maximum of average confidence for the region of described intermediate image block corresponding in described multiple image
Value.
Alternatively, obtain the focusing mechanism of high-quality file and picture for camera in the present invention
In another embodiment, described first computation subunit, specifically for by positioning this image block
In text message, and use OCR to identify, obtain each character recognition result and
Corresponding confidence level, according to this image block of confidence calculations of character average in this image block
Confidence level.
Alternatively, obtain the focusing mechanism of high-quality file and picture for camera in the present invention
In another embodiment, described division subelement, specifically for being divided into 3*3 figure by this two field picture
As block.
Although be described in conjunction with the accompanying embodiments of the present invention, but those skilled in the art
Various modifications and variations can be made without departing from the spirit and scope of the present invention,
Within the scope of such amendment and modification each fall within and are defined by the appended claims.
Claims (8)
1. the focusing method obtaining high-quality file and picture for camera, it is characterised in that
Including:
S1, when camera focuses on automatically, by changing in lens group position before and after focusing lens,
Obtain multiframe preview low-resolution image;
S2, the image conduct that selection confidence level is maximum from described multiframe preview low-resolution image
Optimized image, and the position of the focusing lens corresponding to described optimized image is defined as focus lamp
The best focus position of sheet;
S3, it is described best focus position by the position adjustment of focusing lens, thus is used for shooting
High quality graphic clearly.
Method the most according to claim 1, it is characterised in that described from described multiframe
Preview low-resolution image selects the maximum image of confidence level as optimized image, including:
From described multiframe preview low-resolution image, select a two field picture, this two field picture is divided
Becoming multiple image block, wherein, the size of the plurality of image block is identical;
For each image block, calculating the average confidence C of this image block, computing formula isWherein, ciFor the confidence level of i-th character in this image block, n is this figure
As the quantity of character in block;
By the size of the relatively average confidence of the plurality of image block, determine described many
The image block that in individual image block, average confidence is maximum, and by described average confidence maximum
Image block is as intermediate image block;
Calculate the average confidence in the region of corresponding described intermediate image block in other two field picture;
Select from described multiple image a two field picture as optimized image, wherein, described
The average confidence in the region of the corresponding described intermediate image block of good image is in described multiple image
The maximum of the average confidence in the region of corresponding described intermediate image block.
Method the most according to claim 2, it is characterised in that this image of described calculating
The average confidence of block, including:
By positioning the text message in this image block, and use OCR to identify, obtain each
The recognition result of individual character and the confidence level of correspondence, according to the confidence of character in this image block
Degree calculates the average confidence of this image block.
Method the most according to claim 2, it is characterised in that described by this two field picture
It is divided into multiple image block, including:
This two field picture is divided into 3*3 image block.
5. the focusing mechanism obtaining high-quality file and picture for camera, it is characterised in that
Including:
Acquiring unit, for when camera focuses on automatically, by changing focusing lens in lens group
Before and after position, it is thus achieved that multiframe preview low-resolution image;
Determine unit, for selecting confidence level maximum from described multiframe preview low-resolution image
Image as optimized image, and by true for the position of the focusing lens corresponding to described optimized image
It is set to the best focus position of focusing lens;
Adjustment unit, being used for the position adjustment of focusing lens is described best focus position,
Thus for the high quality graphic of shooting clear.
Device the most according to claim 5, it is characterised in that described determine unit,
Including:
Divide subelement, for selecting a frame figure from described multiframe preview low-resolution image
Picture, is divided into multiple image block, wherein, the size phase of the plurality of image block by this two field picture
With;
First computation subunit, for for each image block, calculates the average of this image block
Confidence level C, computing formula isWherein, ciFor i-th word in this image block
The confidence level of symbol, n is the quantity of character in this image block;
Relatively subelement, big for the average confidence by relatively the plurality of image block
Little, determine the image block that in the plurality of image block, average confidence is maximum, and by described
The image block of average confidence maximum is as intermediate image block;
Second computation subunit, is used for calculating corresponding described intermediate image block in other two field picture
The average confidence in region;
Select subelement, for selecting a two field picture as optimal figure from described multiple image
Picture, wherein, the average confidence in the region of the corresponding described intermediate image block of described optimized image
The maximum of average confidence for the region of described intermediate image block corresponding in described multiple image
Value.
Device the most according to claim 6, it is characterised in that described first calculates son
Unit, specifically for by positioning the text message in this image block, and uses OCR to identify,
Obtain the recognition result of each character and the confidence level of correspondence, according to word in this image block
The average confidence of this image block of confidence calculations of symbol.
Device the most according to claim 6, it is characterised in that described division subelement,
Specifically for this two field picture is divided into 3*3 image block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362850.5A CN105959548A (en) | 2016-05-26 | 2016-05-26 | Camera focusing method for acquiring high quality document images and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362850.5A CN105959548A (en) | 2016-05-26 | 2016-05-26 | Camera focusing method for acquiring high quality document images and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105959548A true CN105959548A (en) | 2016-09-21 |
Family
ID=56910790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610362850.5A Pending CN105959548A (en) | 2016-05-26 | 2016-05-26 | Camera focusing method for acquiring high quality document images and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105959548A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110460771A (en) * | 2019-07-25 | 2019-11-15 | 南京诺源医疗器械有限公司 | Focusing method, device and focus apparatus |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005070300A (en) * | 2003-08-22 | 2005-03-17 | Minolta Co Ltd | Photographing system |
CN102375316A (en) * | 2010-08-27 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Projector and automatic focusing method thereof |
US20130051610A1 (en) * | 2008-01-18 | 2013-02-28 | Mitek Systems | Systems and methods for obtaining financial offers using mobile image capture |
CN103455809A (en) * | 2013-08-29 | 2013-12-18 | 方正国际软件有限公司 | Method and system for shooting document image automatically |
CN103491308A (en) * | 2013-10-10 | 2014-01-01 | 珠海市魅族科技有限公司 | Method and terminal for acquiring image data |
CN103676069A (en) * | 2012-09-20 | 2014-03-26 | 华晶科技股份有限公司 | Lens actuating device and lens actuating method thereof |
CN104219488A (en) * | 2013-05-31 | 2014-12-17 | 索尼公司 | Method and device of generating target image as well as video monitoring system |
CN104978578A (en) * | 2015-04-21 | 2015-10-14 | 深圳市前海点通数据有限公司 | Mobile phone photo taking text image quality evaluation method |
CN105049728A (en) * | 2015-08-17 | 2015-11-11 | 广东欧珀移动通信有限公司 | Method and device for acquiring shot image |
CN105120153A (en) * | 2015-08-20 | 2015-12-02 | 广东欧珀移动通信有限公司 | Image photographing method and device |
-
2016
- 2016-05-26 CN CN201610362850.5A patent/CN105959548A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005070300A (en) * | 2003-08-22 | 2005-03-17 | Minolta Co Ltd | Photographing system |
US20130051610A1 (en) * | 2008-01-18 | 2013-02-28 | Mitek Systems | Systems and methods for obtaining financial offers using mobile image capture |
CN102375316A (en) * | 2010-08-27 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Projector and automatic focusing method thereof |
CN103676069A (en) * | 2012-09-20 | 2014-03-26 | 华晶科技股份有限公司 | Lens actuating device and lens actuating method thereof |
CN104219488A (en) * | 2013-05-31 | 2014-12-17 | 索尼公司 | Method and device of generating target image as well as video monitoring system |
CN103455809A (en) * | 2013-08-29 | 2013-12-18 | 方正国际软件有限公司 | Method and system for shooting document image automatically |
CN103491308A (en) * | 2013-10-10 | 2014-01-01 | 珠海市魅族科技有限公司 | Method and terminal for acquiring image data |
CN104978578A (en) * | 2015-04-21 | 2015-10-14 | 深圳市前海点通数据有限公司 | Mobile phone photo taking text image quality evaluation method |
CN105049728A (en) * | 2015-08-17 | 2015-11-11 | 广东欧珀移动通信有限公司 | Method and device for acquiring shot image |
CN105120153A (en) * | 2015-08-20 | 2015-12-02 | 广东欧珀移动通信有限公司 | Image photographing method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110460771A (en) * | 2019-07-25 | 2019-11-15 | 南京诺源医疗器械有限公司 | Focusing method, device and focus apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE102012215429B4 (en) | Image processing system and automatic focusing method | |
US8106999B2 (en) | Focus adjustment apparatus, method, and program | |
CN105376474B (en) | Image collecting device and its Atomatic focusing method | |
FI117265B (en) | An electronic device and a method for processing image data in an electronic device | |
RU2016112557A (en) | Method and device for displaying images | |
EP3525447B1 (en) | Photographing method for terminal, and terminal | |
CN103795934A (en) | Image processing method and electronic device | |
CN102542545A (en) | Multi-focal length photo fusion method and system and photographing device | |
CN107395993A (en) | Full-automatic focusing method and system | |
CN103491299A (en) | Photographic processing method and device | |
CN107105157A (en) | The multiple images captured from handheld device carry out portrait images synthesis | |
US20090059030A1 (en) | Image Processing Apparatus, Image Processing Method, and Image Processing System | |
CN103217854B (en) | Camera system and Atomatic focusing method | |
CN105701809B (en) | A kind of method for correcting flat field based on line-scan digital camera scanning | |
CN104867125B (en) | Obtain the method and device of image | |
CN104660909A (en) | Image acquisition method, image acquisition device and terminal | |
CN105430268A (en) | Automatic focusing processing method and device | |
CN107610182A (en) | A kind of scaling method at light-field camera microlens array center | |
US20170150043A1 (en) | Camera Auto-Focusing Optimization Method and Camera | |
CN107390356A (en) | The method focused on automatically based on representation of laser facula | |
CN102801894B (en) | Flattening method of deformed page | |
CN106651959A (en) | Optical field camera micro-lens array geometric parameter calibration method | |
CN105635568A (en) | Image processing method in mobile terminal and mobile terminal | |
CN105959548A (en) | Camera focusing method for acquiring high quality document images and device | |
CN105259729A (en) | AF rapid focusing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100080 Beijing Haidian District Gaolizhang Road 18 Building 103-86 Applicant after: Beijing medical pat Intelligent Technology Co., Ltd. Address before: Room 3-7-839, Building No. 8, Pioneer Road, Haidian District, Beijing 100080 Applicant before: BEIJING HAOYUNDAO INFORMATION TECHNOLOGY CO., LTD. |
|
CB02 | Change of applicant information | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20190719 |
|
AD01 | Patent right deemed abandoned |