CN108737712A - A kind of photographic method and device - Google Patents
A kind of photographic method and device Download PDFInfo
- Publication number
- CN108737712A CN108737712A CN201710270996.1A CN201710270996A CN108737712A CN 108737712 A CN108737712 A CN 108737712A CN 201710270996 A CN201710270996 A CN 201710270996A CN 108737712 A CN108737712 A CN 108737712A
- Authority
- CN
- China
- Prior art keywords
- image
- focusing
- area
- preview window
- scene
- 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.)
- Withdrawn
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/62—Control of parameters via user interfaces
-
- 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)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
A kind of photographic method of present invention offer and camera arrangement.The photographic method includes:Whether the current scene of taking pictures of identification is document scene;When it is document scene to identify current scene of taking pictures, shoot respectively focusing area be in the preview window central area an at least image and focusing area be in described the preview window fringe region an at least image;Be according to the obtained focusing area of shooting the central area of described the preview window an at least image and focusing area be in described the preview window fringe region an at least image, synthesis target image.Through the invention, solve the problems, such as that shooting at close range document causes document edges more unsharp.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of photographic method and device.
Background technology
In order to meet the needs of user's close shot shooting, many capture apparatus (for example, mobile terminal camera, camera etc.) are adopted
Enhance background blurring effect with large aperture so as to improve light-inletting quantity.But aperture is bigger, the depth of field accordingly will be smaller.
When shooting document, since shooting distance is closer so that the depth of field is more shallow.Further, since inevitable inclination and document side
The gap of edge and centre distance camera distance, can make document edge and center not in same field depth, be easy to cause bat
The document edges taken the photograph are not clear enough.
In the related art, lead to the more unsharp problem of document edges for due to shooting at close range document, at present
Not yet propose effective solution scheme.
Invention content
The embodiment of the present invention is designed to provide a kind of photographic method and device, and solving shooting at close range document causes
The more unsharp problem of document edges.
In order to achieve the above object, the embodiment of the present invention provides a kind of photographic method, and this method includes:
Whether the current scene of taking pictures of identification is document scene;
When it is document scene to identify current scene of taking pictures, the center that focusing area is in the preview window is shot respectively
An at least image and focusing area in domain are in an at least image for the fringe region of described the preview window;
The focusing area obtained according to shooting is at least an image and the focusing of the central area of described the preview window
Region is in an at least image for the fringe region of described the preview window, synthesizes target image.
The embodiment of the present invention also provides a kind of camera arrangement, which includes:
Whether identification module, scene of currently taking pictures for identification are document scene;
Taking module, for when it is document scene to identify current scene of taking pictures, shooting focusing area respectively and being in pre-
Look at window central area an at least image and focusing area be at least one of fringe region of described the preview window
Image;
Synthesis module, the focusing area for being obtained according to shooting are at least the one of the central area of described the preview window
Image and focusing area be in an at least image for the fringe region of described the preview window, synthesis target image.
The embodiment of the present invention also provides a kind of computer storage media, and computer is stored in the computer storage media
Executable one or more programs, one or more of programs make the computer execute such as when being executed by the computer
A kind of photographic method of above-mentioned offer.
A technical solution in above-mentioned technical proposal has the following advantages that or advantageous effect:
Whether the embodiment of the present invention is document scene by identifying scene of currently taking pictures;Identifying that current scene of taking pictures is
When document scene, at least an image and the focusing area that shoot the central area that focusing area is in the preview window respectively are in
An at least image for the fringe region of described the preview window;The focusing area obtained according to shooting is in described the preview window
At least image and focusing area of central area are in an at least image for the fringe region of described the preview window, synthesis
Target image.The embodiment of the present invention can during taking pictures automatic identification document scene, and identify for document scene when
The image that acquisition focusing area is in the preview window different zones improves the clear of captured image to synthesize target image
Degree, solves the problems, such as in the related technology since shooting at close range document causes document edges more unsharp.
Description of the drawings
Fig. 1 is the flow chart for the photographic method that first embodiment of the invention provides;
Fig. 2 is the flow chart for the photographic method that second embodiment of the invention provides;
Fig. 3 is the histogram of captured image under document scene;
Fig. 4 is the schematic diagram for the central area that focusing area is in the preview window;
Fig. 5 is the schematic diagram for the fringe region that focusing area is in the preview window;
Fig. 6 is the schematic diagram of camera arrangement provided in an embodiment of the present invention.
Specific implementation mode
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
As shown in Figure 1, first embodiment of the invention provides a kind of photographic method, it is applied to photographing device, including following step
Suddenly:
Step S101, whether the current scene of taking pictures of identification is document scene.
In this embodiment, automatic identification scene of currently taking pictures whether can be document when photographing device enters and takes pictures preview
Scene, wherein document scene is the application scenarios of document shooting, and document includes text, picture etc..
It should be noted that in the present embodiment, photographing device can be mobile terminal, camera etc..Wherein, above-mentioned movement
Terminal can be any mobile terminal for having image collecting device, such as:Mobile phone, tablet computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
Step S102, when it is document scene to identify current scene of taking pictures, focusing area is shot respectively and is in preview window
At least image and focusing area of the central area of mouth are in an at least image for the fringe region of described the preview window.
In the present embodiment, if identifying that current scene of taking pictures is document scene, focusing area is acquired respectively and is in
The image of the preview window different location, for example, shooting focusing area is in image and the focusing area of the central area of the preview window
Domain is in the image of the fringe region (for example, the preview window lower edges region and left and right edges region) of the preview window.Specifically
Ground can acquire one or multiple images in each focusing position.
Step S103, the focusing area obtained according to shooting is at least one figure of the central area of described the preview window
Picture and focusing area are in an at least image for the fringe region of described the preview window, synthesize target image.
In the present embodiment, the image that the central area of the preview window is shot, center are in for focusing area
The clarity in region is higher, is in the image that the fringe region of the preview window is shot for focusing area, edge it is clear
Clear degree is higher.Therefore, by synthesizing central area, more clearly more clearly image obtains target for image and fringe region
Image can improve the clarity of captured obtained target image.
Whether the embodiment of the present invention is document scene by identifying scene of currently taking pictures;Identifying that current scene of taking pictures is
When document scene, at least an image and the focusing area that shoot the central area that focusing area is in the preview window respectively are in
An at least image for the fringe region of described the preview window;The focusing area obtained according to shooting is in described the preview window
At least image and focusing area of central area are in an at least image for the fringe region of described the preview window, synthesis
Target image.The embodiment of the present invention can during taking pictures automatic identification document scene, and identify for document scene when
The image that acquisition focusing area is in the preview window different zones improves the clear of captured image to synthesize target image
Degree, solves the problems, such as in the related technology since shooting at close range document causes document edges more unsharp.
As shown in Fig. 2, second embodiment of the invention provides a kind of photographic method, it is applied to photographing device, this method includes
Following steps:
Step S201, whether the current scene of taking pictures of identification is document scene.
In the present embodiment, some existing realization methods may be used in document scene identification, for example, by training in advance
Support vector machine classifier be identified.
Alternatively it is also possible to which histogram identification is used whether currently to take pictures scene for document scene, this method includes as follows
Step:
Step a obtains the histogram of present preview image.
Specifically, when capture apparatus enters image preview, the histogram of present preview image is obtained.
Step b, judges whether the histogram of the preview image meets preset condition.
For shooting the image of document structure tree, histogram distribution meets specific rule, specifically, the brightness of its pixel
It is worth most of integrated distribution within a certain range, for example, [128,192], as shown in Figure 3.It therefore, can be by counting current pre-
The brightness value of image look at is distributed in whether the accounting of the pixel of a certain range come the scene that judges currently to take pictures is document scene,
In, the endpoint value of specific range can be configured according to actual conditions.
In the present embodiment, if the histogram of the preview image meets preset condition, step c is executed;If described
The histogram of preview image is unsatisfactory for preset condition, executes step d.
Step c identifies that current scene of taking pictures is document scene.
Step d identifies that current scene of taking pictures is not document scene.
Whether it is document scene by the current scene of taking pictures of image histogram identification, algorithm is simple, and recognition speed is very fast.
In the present embodiment, if identifying that current scene of taking pictures is document scene, following steps S202 and step are executed
S203 executes the general flow of taking pictures of existing photographing device, example if identifying that current scene of taking pictures is not document scene
Such as, fast one image of direct shooting behind the door is pressed in user.
Step S202, whether complete to judge the central area to defocused first focusing in presetting focal range,
First focusing is to central area focusing, wherein when judging first focusing in default focal range,
Shooting focusing area is in an at least image for the central area of described the preview window.
In the present embodiment, by judging whether focusing is in default focal range to characterize whether current shooting belongs to
Close shot is shot or microshot.Specifically, when judging that the first focusing is in default focal range, namely belong to close shot bat
It takes the photograph or when microshot, shooting focusing area is in an at least image for the central area of described the preview window.Judging
When first focusing is not in default focal range, then the general flow of taking pictures of existing photographing device is executed.
Step S203, whether complete to judge the fringe region to defocused second focusing in presetting focal range,
Second focusing is to fringe region focusing, wherein when judging second focusing in default focal range,
Shooting focusing area is in an at least image for the fringe region of described the preview window.
With above-mentioned steps S202, the present embodiment is when judging that the second focusing is in default focal range, namely belongs to close
When scape shooting or microshot, shooting focusing area is in an at least image for the fringe region of the preview window.Judging
When second focusing is not in default focal range, then the general flow of taking pictures of existing photographing device is executed.Specifically, the present embodiment
The image that focusing area is in the preview window difference fringe region can be acquired respectively, for example, acquisition focusing area is in respectively
The upper edge region of the preview window and the image of lower edge margin.
Specifically, when the image of the shooting focusing area fringe region that is in the preview window, the size of focusing area can be with
It is identical with the focusing area size when image for the central area that shooting focusing area is in the preview window, for example, being disposed as
The 1/8*1/8 of screen long side, as shown in Figure 4 and Figure 5;The central area of the preview window can also be in shooting focusing area
Focusing area when image is of different sizes.
It should be noted that the present embodiment to the execution of above-mentioned steps S202 and step S203 sequence without limiting, i.e.,
Step S202 can be first carried out and execute step S203 again, can also be to first carry out step S203 to execute step S202 again.In addition, can
Selection of land can also be when judging that the first focusing is not in default focal range, after no longer executing when first carrying out step S202
Continuous step, or when first carrying out step S203, when judging that the first focusing is not in default focal range, after no longer executing
Continuous step.
Optionally, whether focusing is judged in default focal range, including:
Judge whether focal distance is less than first threshold, wherein when judging that the focal distance is less than first threshold,
Then determine the focusing in default focal range;Or
Judge whether the encoded radio of focusing motor is more than second threshold, wherein in the coding for judging the focusing motor
When value is more than second threshold, it is determined that the focusing is in default focal range.
The encoded radio of above-mentioned focusing motor refers to the coding for the current value for writing the focusing motor in focusing motor register
Value, wherein the electric current of focusing motor is different, drives the displacement distance of the camera lens of photographing device different.Above-mentioned first threshold and
Second threshold can be configured according to actual conditions, for example, it is 25cm that first threshold, which can be arranged, second threshold can be arranged
For the half of the encoded radio maximum value of focusing motor.
Step S204, the focusing area obtained according to shooting is at least one figure of the central area of described the preview window
Picture and focusing area are in an at least image for the fringe region of described the preview window, synthesize target image.
This implementation is in multiple synthesis target image images of the preview window different zones according to the focusing area of acquisition, tool
The composition algorithm of body does not limit.
Optionally, the focusing area obtained according to shooting is in an at least image for the central area of described the preview window
It is in an at least image for the fringe region of described the preview window with focusing area, synthesizes target image, can also include:It is right
The focusing area that shooting obtains is in an at least image for the central area of described the preview window and focusing area is in described
An at least image for the fringe region of the preview window carries out image registration;Super-resolution reconstruction is carried out to multiple images after registration
It builds, synthesizes target image.
Image registration algorithm based on half-tone information may be used, based on transform domain in image registration algorithm in the present embodiment
The image registration algorithm etc. of image registration algorithm or feature based, this implementation does not limit this.
Super-resolution rebuilding refers to being produced using multiple low quality, low-resolution image (or motion sequence) in the present embodiment
Raw single width high quality, high-definition picture.Specifically, the aliasing method for reconstructing that disappears, non-homogeneous sky may be used in super-resolution rebuilding
Between sample interpolation, iterative backprojection method, projections onto convex sets, optimal and adaptive filter method, certainty method for reconstructing etc., this
Embodiment does not limit this.
The present embodiment by during taking pictures automatic identification scene of currently taking pictures whether be document scene, and identifying
It is current to take pictures when being document scene, further judge it is current whether be that close shot is taken pictures or microspur is taken pictures, and be currently judging
When close shot is taken pictures or microspur is taken pictures, focusing area is shot respectively and is in at least image of central area of the preview window and right
Burnt region is in an at least image for the fringe region of the preview window and synthesizes target image, improves the clear of captured image
Clear degree solves the problems, such as in the related technology since shooting at close range document causes document edges more unsharp.
As shown in figure 3, third embodiment of the invention provides a kind of photographic method, it is applied to photographing device, this method includes
Following steps:
Step S301 uses the prior art when image preview, obtains the histogram of present preview image.
For shooting the image of document structure tree, histogram distribution meets specific rule, specifically, the brightness of its pixel
It is worth most of integrated distribution within a certain range, for example, [128,192], as shown in Figure 3.
If identifying that current scene of taking pictures is document scene according to current histogram, step S302 is executed.
Step S302 shoots a photo with center-spot, and judges whether focusing is in microspur end.
In the present embodiment, center-spot namely focusing area are in central area, as shown in figure 4, microspur end is the same as above-mentioned pre-
If focal range, currently take pictures in close shot shooting or microshot for characterizing, for example, when focal distance is less than 25cm,
Or the encoded radio of focusing motor is more than the half of maximum encoded radio, then judges that focusing is in microspur end, and execute step S303;
If focusing is not at microspur end, the general flow of taking pictures of existing photographing device is executed.For center-spot shooting image,
The central area of the image is in best focusing area, and clarity is higher.
Step S303 is moved to focusing area the fringe region of the preview window long side.
Focusing area size can be identical with touch-control focusing area, such as the 1/8*1/8 of screen long side.Sentence after the completion of focusing
It is disconnected, if focusing is in microspur end, then an at least photo is shot, and execute step S304;If focusing is not at microspur
End, then exit.
It, should for the image of edge focusing (namely focusing area is in the preview window fringe region, as shown in Figure 5) shooting
The fringe region of image is in best focusing area, and clarity is very high.
Step S304 is moved to focusing area the fringe region of the preview window other side, judges after the completion of focusing current
Whether focusing is in microspur end, if focusing is still within microspur end, then shoots an at least image;If not in microspur
End, then do not shoot image, and execute step S305.
Step S305 carries out image registration at least two images that above-mentioned shooting obtains.
Above-mentioned at least two images include at least the obtained image and an at least edge pair of at least one center-spot
The image that coke obtains.
Step S306 does super-resolution rebuilding to the image after at least two above registrations, synthesizes an apparent image.
The present embodiment identifies whether current scene of taking pictures is file photographing by obtaining the histogram of present preview image
Scene, and when it is document scene to identify current scene of taking pictures, at least an image and the edge of center-spot are acquired respectively
An at least image for focusing simultaneously synthesizes a relatively sharp image, to realize large aperture photographing device shooting document more
Add clearly effect.
As shown in fig. 6, the embodiment of the present invention provides a kind of camera arrangement, which includes:
Whether identification module 61, scene of currently taking pictures for identification are document scene.
Taking module 62, for when it is document scene to identify current scene of taking pictures, shooting focusing area respectively and being in
At least image and focusing area of the central area of the preview window are at least the one of the fringe region of described the preview window
Open image.
Synthesis module 63, the focusing area for being obtained according to shooting are in the central area of described the preview window at least
One image and focusing area are in an at least image for the fringe region of described the preview window, synthesize target image.
The embodiment of the present invention identifies whether current scene of taking pictures is document scene by identification module 61;Taking module 62 exists
When identifying that current scene of taking pictures is document scene, focusing area is in the central area of the preview window at least one is shot respectively
Image and focusing area are in an at least image for the fringe region of described the preview window;Synthesis module 63 is according to shooting
The focusing area arrived is in an at least image for the central area of described the preview window and focusing area is in the preview window
An at least image for the fringe region of mouth synthesizes target image.By automatic identification document scene during taking pictures, and
Identify for document scene when acquisition focusing area be in the preview window different zones image to synthesize target image, improve
The clarity of captured image solves in the related technology since shooting at close range document causes document edges more unsharp
Problem.
Optionally, the taking module includes:
First judgment module, for completing to judge the central area to defocused first focusing whether in presetting
Focal range, first focusing is to central area focusing, wherein is judging first focusing in default coke
When away from range, shooting focusing area is in an at least image for the central area of described the preview window;
Second judgment module, for completing to judge the fringe region to defocused second focusing whether in presetting
Focal range, second focusing is to fringe region focusing, wherein is judging second focusing in default coke
When away from range, shooting focusing area is in an at least image for the fringe region of described the preview window.
Optionally, judgment module includes:
First judging unit, for judging whether focal distance is less than first threshold, wherein judging the focusing
When from less than first threshold, it is determined that the focusing is in default focal range;Or
Second judgment unit, for judging whether the encoded radio of focusing motor is more than second threshold, wherein judging
When stating the encoded radio of focusing motor more than second threshold, it is determined that the focusing is in default focal range.
Optionally, the synthesis module includes:
Image registration module, the focusing area for being obtained to shooting are in the central area of described the preview window at least
At least image that one image and focusing area are in the fringe region of described the preview window carries out image registration;
Super-resolution rebuilding module synthesizes target image for carrying out super-resolution rebuilding to multiple images after registration.
Optionally, the identification module includes:
Acquiring unit, the histogram for obtaining present preview image;
Third judging unit, for judging whether the histogram of the preview image meets preset condition;
Recognition unit, for when the histogram of the preview image meets preset condition, identifying current scene of taking pictures
It is document scene, when the histogram of the preview image is unsatisfactory for preset condition, identifies that current scene of taking pictures is not document
Scene.
It should be noted that above-mentioned camera arrangement can be appointed in embodiment of the method in the embodiment of the present invention in the present embodiment
The user terminal for embodiment of anticipating, the arbitrary embodiment of user terminal can be by embodiment of the method in the embodiment of the present invention
Above-mentioned camera arrangement in the present embodiment is realized, and reaches identical advantageous effect, and details are not described herein again.
It can be with one of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is
It is completed by the relevant hardware of program instruction, the program can be stored in a computer-readable medium, the program
When being executed, include the following steps:
Whether the current scene of taking pictures of identification is document scene;When it is document scene to identify current scene of taking pictures, respectively
Shooting focusing area is in an at least image for the central area of the preview window and focusing area is in described the preview window
An at least image for fringe region;The focusing area obtained according to shooting is in the central area of described the preview window at least
One image and focusing area are in an at least image for the fringe region of described the preview window, synthesize target image.
Optionally, when it is document scene to identify current scene of taking pictures, focusing area is shot respectively and is in the preview
At least image and focusing area of the central area of window are at least one figure of the fringe region of described the preview window
Picture, including:Whether complete to judge the central area to defocused first focusing in presetting focal range, described first
Focusing is to central area focusing, wherein when judging first focusing in default focal range, shooting is focused
Region is in an at least image for the central area of described the preview window;It completes to the fringe region to defocused, judgement
Whether the second focusing is in default focal range, and second focusing is to focus to the fringe region, wherein judging
When stating the second focusing in default focal range, shooting focusing area is at least one of the fringe region of described the preview window
Image.
Optionally, whether focusing is judged in default focal range, including:Judge whether focal distance is less than the first threshold
Value, wherein when judging that the focal distance is less than first threshold, it is determined that the focusing is in default focal range;Or
Judge whether the encoded radio of focusing motor is more than second threshold, wherein be more than the in the encoded radio for judging the focusing motor
When two threshold values, it is determined that the focusing is in default focal range.
Optionally, the focusing area obtained according to shooting is in an at least image for the central area of described the preview window
It is in an at least image for the fringe region of described the preview window with focusing area, synthesizes target image, including:To shooting
The focusing area arrived is in an at least image for the central area of described the preview window and focusing area is in the preview window
An at least image for the fringe region of mouth carries out image registration;Super-resolution rebuilding is carried out to multiple images after registration, is closed
At target image.
Optionally, whether the current scene of taking pictures of identification is that document scene includes:Obtain the histogram of present preview image;Sentence
Whether the histogram of the disconnected preview image meets preset condition;When the histogram of the preview image meets preset condition,
Identify that current scene of taking pictures is document scene;When the histogram of the preview image is unsatisfactory for preset condition, identifies and work as
Before scene of taking pictures be not document scene.
The storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory
(Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of photographic method, which is characterized in that including:
Whether the current scene of taking pictures of identification is document scene;
When it is document scene to identify current scene of taking pictures, shooting focusing area is in the central area of the preview window respectively
An at least image and focusing area are in an at least image for the fringe region of described the preview window;
The focusing area obtained according to shooting is at least an image and the focusing area of the central area of described the preview window
An at least image for fringe region in described the preview window synthesizes target image.
2. according to the method described in claim 1, it is characterized in that, when it is document scene to identify current scene of taking pictures, divide
Not Pai She focusing area be in described the preview window central area an at least image and focusing area be in the preview
An at least image for the fringe region of window, including:
Complete to judge the central area to defocused whether the first focusing focuses in default focal range, described first
To focus to the central area, wherein when judging first focusing in default focal range, shoot focusing area
An at least image in the central area of described the preview window;
Complete to judge the fringe region to defocused whether the second focusing focuses in default focal range, described second
To focus to the fringe region, wherein when judging second focusing in default focal range, shoot focusing area
An at least image for fringe region in described the preview window.
3. according to the method described in claim 2, it is characterized in that, whether judge focusing in default focal range, including:
Judge whether focal distance is less than first threshold, wherein when judging that the focal distance is less than first threshold, then really
The fixed focusing is in default focal range;Or
Judge whether the encoded radio of focusing motor is more than second threshold, wherein judging that the encoded radio of the focusing motor is big
When second threshold, it is determined that the focusing is in default focal range.
4. according to the method described in claim 1, it is characterized in that, being in the preview window according to the focusing area that shooting obtains
At least image and focusing area of the central area of mouth are in an at least image for the fringe region of described the preview window,
Target image is synthesized, including:
At an at least image and focusing area to shooting the central area that obtained focusing area is in described the preview window
Image registration is carried out in an at least image for the fringe region of described the preview window;
Super-resolution rebuilding is carried out to multiple images after registration, synthesizes target image.
5. according to the method described in claim 1, whether scene is that document scene includes it is characterized in that, identification is currently taken pictures:
Obtain the histogram of present preview image;
Judge whether the histogram of the preview image meets preset condition;
When the histogram of the preview image meets preset condition, identify that current scene of taking pictures is document scene;
When the histogram of the preview image is unsatisfactory for preset condition, identify that current scene of taking pictures is not document scene.
6. a kind of camera arrangement, which is characterized in that including:
Whether identification module, scene of currently taking pictures for identification are document scene;
Taking module, for when it is document scene to identify current scene of taking pictures, shooting focusing area respectively and being in preview window
At least image and focusing area of the central area of mouth are in an at least image for the fringe region of described the preview window;
Synthesis module, the focusing area for being obtained according to shooting are at least one figure of the central area of described the preview window
Picture and focusing area are in an at least image for the fringe region of described the preview window, synthesize target image.
7. device according to claim 6, which is characterized in that the taking module includes:
First judgment module, for completing to judge the central area to defocused first focusing whether in presetting focal length
Range, first focusing is to central area focusing, wherein is judging first focusing in default focal length model
When enclosing, shooting focusing area is in an at least image for the central area of described the preview window;
Second judgment module, for completing to judge the fringe region to defocused second focusing whether in presetting focal length
Range, second focusing is to fringe region focusing, wherein is judging second focusing in default focal length model
When enclosing, shooting focusing area is in an at least image for the fringe region of described the preview window.
8. device according to claim 7, which is characterized in that judgment module includes:
First judging unit, for judging whether focal distance is less than first threshold, wherein judging that the focal distance is small
When first threshold, it is determined that the focusing is in default focal range;Or
Second judgment unit, for judge focusing motor encoded radio whether be more than second threshold, wherein judge it is described right
When the encoded radio of burnt motor is more than second threshold, it is determined that the focusing is in default focal range.
9. device according to claim 6, which is characterized in that the synthesis module includes:
Image registration module, the focusing area for being obtained to shooting are at least one of the central area of described the preview window
At least image that image and focusing area are in the fringe region of described the preview window carries out image registration;
Super-resolution rebuilding module synthesizes target image for carrying out super-resolution rebuilding to multiple images after registration.
10. device according to claim 6, which is characterized in that the identification module includes:
Acquiring unit, the histogram for obtaining present preview image;
Third judging unit, for judging whether the histogram of the preview image meets preset condition;
Recognition unit, for when the histogram of the preview image meets preset condition, identifying that current scene of taking pictures is text
Shunting yard scape identifies that current scene of taking pictures is not document scene when the histogram of the preview image is unsatisfactory for preset condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710270996.1A CN108737712A (en) | 2017-04-24 | 2017-04-24 | A kind of photographic method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710270996.1A CN108737712A (en) | 2017-04-24 | 2017-04-24 | A kind of photographic method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108737712A true CN108737712A (en) | 2018-11-02 |
Family
ID=63933928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710270996.1A Withdrawn CN108737712A (en) | 2017-04-24 | 2017-04-24 | A kind of photographic method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737712A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113810604A (en) * | 2021-08-12 | 2021-12-17 | 荣耀终端有限公司 | Document shooting method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1469187A (en) * | 2002-07-15 | 2004-01-21 | 英保达股份有限公司 | Image synthesis and synthesizer for digital camera |
US20120274738A1 (en) * | 2010-06-07 | 2012-11-01 | Zte Corporation | Method and apparatus for shooting panorama |
CN103810471A (en) * | 2012-11-13 | 2014-05-21 | 三星电子株式会社 | Method and device for recognizing document image, and photographing method using the same |
CN104735350A (en) * | 2015-03-02 | 2015-06-24 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105100578A (en) * | 2014-05-05 | 2015-11-25 | 南昌欧菲光电技术有限公司 | Image processing system and image processing method thereof |
-
2017
- 2017-04-24 CN CN201710270996.1A patent/CN108737712A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1469187A (en) * | 2002-07-15 | 2004-01-21 | 英保达股份有限公司 | Image synthesis and synthesizer for digital camera |
US20120274738A1 (en) * | 2010-06-07 | 2012-11-01 | Zte Corporation | Method and apparatus for shooting panorama |
CN103810471A (en) * | 2012-11-13 | 2014-05-21 | 三星电子株式会社 | Method and device for recognizing document image, and photographing method using the same |
CN105100578A (en) * | 2014-05-05 | 2015-11-25 | 南昌欧菲光电技术有限公司 | Image processing system and image processing method thereof |
CN104735350A (en) * | 2015-03-02 | 2015-06-24 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113810604A (en) * | 2021-08-12 | 2021-12-17 | 荣耀终端有限公司 | Document shooting method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10733472B2 (en) | Image capture device with contemporaneous image correction mechanism | |
KR101662846B1 (en) | Apparatus and method for generating bokeh in out-of-focus shooting | |
CN108322646B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
JP4898761B2 (en) | Apparatus and method for correcting image blur of digital image using object tracking | |
US8860816B2 (en) | Scene enhancements in off-center peripheral regions for nonlinear lens geometries | |
CN106899781B (en) | Image processing method and electronic equipment | |
US9338349B2 (en) | Generation of ghost-free high dynamic range images | |
TWI602152B (en) | Image capturing device nd image processing method thereof | |
WO2021057652A1 (en) | Focusing method and apparatus, electronic device, and computer readable storage medium | |
EP3793188A1 (en) | Image processing method, electronic device, and computer readable storage medium | |
CN107948500A (en) | Image processing method and device | |
US20100245610A1 (en) | Method and apparatus for processing digital image | |
JP2005229198A (en) | Image processing apparatus and method, and program | |
JP5664626B2 (en) | Image processing apparatus, image processing method, and program | |
US9100569B2 (en) | Method for adaptive focusing | |
CN103797791B (en) | For showing electronic installation and the method for content | |
CN107105172B (en) | Focusing method and device | |
CN112261292B (en) | Image acquisition method, terminal, chip and storage medium | |
JP2017102642A (en) | Image processor, image processing method and program | |
JP5843599B2 (en) | Image processing apparatus, imaging apparatus, and method thereof | |
CN103973962B (en) | Image processing method and image collecting device | |
CN108737712A (en) | A kind of photographic method and device | |
JP2009118434A (en) | Blurring correction device and imaging apparatus | |
CN109118427B (en) | Image light effect processing method and device, electronic equipment and storage medium | |
JP5282533B2 (en) | Image processing apparatus, imaging apparatus, and program |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181102 |
|
WW01 | Invention patent application withdrawn after publication |