CN109495681A - The method and apparatus for obtaining image - Google Patents
The method and apparatus for obtaining image Download PDFInfo
- Publication number
- CN109495681A CN109495681A CN201710817963.4A CN201710817963A CN109495681A CN 109495681 A CN109495681 A CN 109495681A CN 201710817963 A CN201710817963 A CN 201710817963A CN 109495681 A CN109495681 A CN 109495681A
- Authority
- CN
- China
- Prior art keywords
- zoom
- area
- image
- target area
- scaling
- 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/67—Focus control based on electronic image sensor signals
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides a kind of method and apparatus for obtaining image, which comprises (a) determines target area in the preview area of image to be captured;(b) the scaling multiple of the target area according to the current ratio-dependent of the area of the target area and the area of the preview area;(c) zoom is carried out according to the scaling multiple, the target area is zoomed in and out according to the scaling multiple;(d) after completing the zoom, image method and equipment are obtained.The method and apparatus of the acquisition image of embodiment according to the present invention, zoom can be carried out automatically according to the ratio of the area of the area and preview area of target area, can be obtained after zoom by the image of scaling for shooting more beautiful photo or for remote barcode scanning.
Description
Technical field
The present invention relates to the technical fields of image procossing.More particularly, it is related to a kind of method and apparatus for obtaining image.
Background technique
The development of electronic technology at present, in people's lives, mobile terminal plays an increasingly important role.Example
Such as, due to the development of the photography technology of mobile terminal, mobile terminal has gradually met the camera shooting of people and demand of taking pictures, and
And due to the convenience of mobile terminal, mobile terminal, which has become, important in people's daily life takes pictures and images tool.However,
When being taken pictures by the camera of mobile terminal, if necessary to the size of the object in the image of adjustment shooting, Zhi Nengtong
It crosses and moves mobile terminal at a distance from the object being taken or user carries out zoom manually, that is to say, that user is needed to adjust
Multiple is scaled, therefore, the operation of the zoom mode of existing mobile terminal is not easy.
Summary of the invention
The purpose of the present invention is to provide a kind of methods and apparatus for obtaining image, to solve the change of existing mobile terminal
The not easy problem of the operation of burnt mode.
An aspect of of the present present invention provides a kind of method for obtaining image, which comprises (a) is pre- image to be captured
It lookes at and determines target area in region;(b) according to the current ratio of the area of the area of the target area and the preview area
Determine the scaling multiple of the target area;(c) zoom is carried out according to the scaling multiple, by the target area according to institute
Scaling multiple is stated to zoom in and out;(d) after completing the zoom, image is obtained.
Optionally, step (b) includes: the current ratio according to the area of the area and preview area of the target area
Example and scheduled target proportion determine the scaling multiple of the target area, wherein in step (c), by the target area
After domain is zoomed in and out according to the progress scaling multiple, the ratio of the area of the area of the target area and the preview area
It will become the scheduled target proportion from current ratio.
Optionally, step (c) includes: to carry out optical zoom and/or digital zoom according to the scaling multiple.
Optionally, step (c) includes: and incites somebody to action when the scaling multiple is less than the maximum zoom multiple of the optical zoom
The scaling multiple scales multiple as optical zoom, carries out optical zoom according to optical zoom scaling multiple;When described
When scaling maximum zoom multiple of the multiple greater than the optical zoom, using the maximum zoom multiple as optical zoom scaling times
The difference of the scaling multiple and optical zoom scaling multiple is scaled multiple as digital zoom, become according to the optics by number
Coke scaling multiple carries out optical zoom, and carries out digital zoom according to digital zoom scaling multiple.
Optionally, step (c) further include: after carrying out zoom, when the pixel distortion of the image to be captured in preview area,
Reduce the scaling multiple, zoom is carried out again according to the scaling multiple after reduction so that image to be captured in preview area
Pixel is no longer distorted.
Optionally, before step (d) further include: control camera focuses to the target area.
Optionally, the image that further comprising the steps of: will acquire saves as photo.
Optionally, step (a) includes: to receive user's slidably inputing in the preview area of image to be captured, according to institute
The track that slidably inputs is stated to determine target area.
Optionally, the track is a part of the boundary line of the target area, wherein is slidably inputed according to described
Track is including: the track that slidably inputs according to the step of determining target area come the boundary of target area described in completion
Line.
Optionally, according to the track slidably inputed come target area described in completion boundary line the step of include: pair
The track slidably inputed carries out mirror image processing and obtains mirror image track, and the mirror image track and the track are attached to come
Boundary line described in completion.
Optionally, step (a) includes: that the region in the scan box in the preview area of image to be captured is determined as target
Region, wherein the method also includes steps: from the image obtained in the step (d) target area identification two dimensional code or
Bar code.
Another aspect of the present invention provides a kind of equipment for obtaining image, comprising: target area determination unit, to be captured
Target area is determined in the preview area of image;Scale multiple determination unit, according to the area of the target area with it is described pre-
Look at region area current ratio-dependent described in target area scaling multiple;Zoom unit, according to the scaling multiple into
Row zoom zooms in and out the target area according to the scaling multiple;Image acquisition unit completes institute in zoom unit
After stating zoom, image is obtained.
Optionally, scaling multiple determination unit is according to the area of the target area and working as the area of the preview area
Preceding ratio and scheduled target proportion determine the scaling multiple of the target area, wherein zoom unit is by the target area
After domain is zoomed in and out according to the progress scaling multiple, the ratio of the area of the area of the target area and the preview area
It will become the scheduled target proportion from current ratio.
Optionally, zoom unit carries out optical zoom and/or digital zoom according to the scaling multiple.
Optionally, zoom unit, will be described when the scaling multiple is less than the maximum zoom multiple of the optical zoom
Multiple is scaled as optical zoom and scales multiple, carries out optical zoom according to optical zoom scaling multiple;When the scaling
When multiple is greater than the maximum zoom multiple of the optical zoom, multiple is scaled using the maximum zoom multiple as optical zoom,
The difference of the scaling multiple and optical zoom scaling multiple is scaled into multiple as digital zoom, is contracted according to the optical zoom
It puts multiple and carries out optical zoom, and carry out digital zoom according to digital zoom scaling multiple.
Optionally, after carrying out zoom, when the pixel distortion of the image to be captured in preview area, zoom unit reduces institute
State scaling multiple, zoom is carried out again according to the scaling multiple after reduction so that the pixel of the image to be captured in preview area not
It is distorted again.
Optionally, further includes: focusing unit controls camera to the mesh before image acquisition unit obtains image
It focuses in mark region.
Optionally, further includes: photographing unit, the image that will acquire save as photo.
Optionally, target area determination unit receives user's slidably inputing in the preview area of image to be captured, root
Target area is determined according to the track slidably inputed.
Optionally, the track is a part of the boundary line of the target area, wherein target area determination unit root
Come the boundary line of target area described in completion according to the track slidably inputed.
Optionally, target area determination unit carries out mirror image processing to the track slidably inputed and obtains mirror image track,
The mirror image track and the track are attached and come boundary line described in completion.
Optionally, the region in the scan box in the preview area of image to be captured is determined as by target area determination unit
Target area, wherein the equipment further include: scanning element is known from the target area in the image that image acquisition unit obtains
Other two dimensional code or bar code.
Another aspect of the present invention provides a kind of computer readable storage medium, which has
Processor is made to execute the program instruction of the method as described above for obtaining image when being executed by a processor.
Another aspect of the present invention provides a kind of computing device, which includes: processor;Memory, for depositing
Storage, which is worked as, is executed by processor the program instruction so that processor executes the method as described above for obtaining image.
The method and apparatus of the acquisition image of embodiment according to the present invention, can area according to target area and preview region
The ratio of the area in domain carries out zoom automatically, can be obtained after zoom by the image of scaling for shooting more beautiful photograph
Piece is used for remote barcode scanning.
Part in following description is illustrated into the other aspect and/or advantage of the present invention, some is by retouching
Stating will be apparent, or can learn by implementation of the invention.
Detailed description of the invention
By the detailed description carried out below in conjunction with the accompanying drawings, above and other objects of the present invention, features and advantages will
It becomes more fully apparent, in which:
Fig. 1 is the flow chart for showing the method for acquisition image of embodiment according to the present invention;
Fig. 2 and Fig. 3 is to show the example that target area is determined according to the input of user;
Fig. 4 and Fig. 5 is the example for showing the method shooting photo of the acquisition image of embodiment according to the present invention;
Fig. 6 is the example for showing the interface for taking pictures of embodiment according to the present invention;
Fig. 7 is the block diagram for showing the equipment of acquisition image of embodiment according to the present invention.
Specific embodiment
Detailed description of the present invention embodiment with reference to the accompanying drawings.
Fig. 1 is the flow chart for showing the method for acquisition image of embodiment according to the present invention.Implementation according to the present invention
The method of the acquisition image of example can be applied to the various electronic equipments with camera, for example, mobile communication terminal, personal meter
Calculation machine, tablet computer, game machine, digital multimedia player etc..
In step S10, target area is determined in the preview area of image to be captured.
Here, the target area or preparatory setting can be specified to determine target area by user.
As an example, the input of user is received during taking pictures, according to the input of user come in image to be captured
Target area is determined in preview area.
Particularly, the target area can be determined according to the various user's inputs that can be used for selection region.
For example, the control that can be provided in the preview area of image to be captured for selecting the target area is (such as square
Frame).In the case where the control is box, dragging and scaling of the user to the box can receive, by dragging and/or scaling
The region in box afterwards is determined as target area.
For another example, it can receive user slidably inputing in the preview area of image to be captured, slidably inputed according to described
Track determines target area.When the track slidably inputed is an enclosed curve, the region that track is surrounded is true
It is set to target area.When the track is non-enclosed curve, the track is a part of the boundary line of target area,
In step slo, according to the track slidably inputed come the boundary line of target area described in completion.
It particularly, can be according to the various methods for completion boundary line come the boundary line of target area described in completion.Example
Such as, mirror image processing can be carried out to the track that slidably inputs and obtain mirror image track, by the mirror image track and the track into
Row connection comes boundary line described in completion.It here, can be to the horizontal mirror image processing of track carry out slidably inputed and/or vertical mirror
As processing.
Optionally, behind boundary line described in completion, the boundary line can be shown, the boundary line is to facilitate user to determine
The no region for having enclosed user and it is expected encirclement.The case where region surrounded is not surrounded by the boundary line all it is expected in user
Under, it can be all described come the region for making user it is expected to surround to the dragging of the boundary line and zoom operations by receiving user
Boundary line surrounds, and the region that the boundary line after dragged and scaling surrounds is determined as target area.
Fig. 2 and Fig. 3 is to show the example that target area is determined according to the input of user.If user's expectation target region is wrapped
The image for including entire people or object can refer to the example in Fig. 2 and come selected target region, if user's expectation target region includes people
Or the parts of images of object, it can refer to the example in Fig. 3 and come selected target region.
As shown in Fig. 2, slidably inputing of having input in the preview area of image to be captured of user, has obtained track 201,
By obtaining mirror image track 202 later to the 201 horizontal mirror image processing of carry out of track, by the mirror image track 202 and the track
201 are attached the boundary line 203 for coming target area described in completion.
As shown in figure 3, slidably inputing of having input in the preview area of image to be captured of user, has obtained track 301,
By obtaining mirror image track 302 later to the 301 horizontal mirror image processing of carry out of track, by the mirror image track 302 and the track
301 are attached the boundary line 303 for coming target area described in completion.
As an example, during scanning, in the case where showing scan box in the preview area of image to be captured,
Region in scan box can be determined as target area.In the case where not showing scan box, during can be used above-mentioned take pictures
The method of target area is determined to determine target area.
In step S20, according to the current ratio-dependent institute of the area of the target area and the area of the preview area
State the scaling multiple of target area.
Here, the scaling multiple of the target area can be determined according to the current ratio and scheduled rule.Example
Such as, the scaling multiple of the target area is determined according to the current ratio and scheduled target proportion.The scheduled mesh
Mark ratio can be and the current corresponding target proportion of ratio or a unified target proportion, that is to say, that right
In different current ratios, the scheduled target proportion can be identical, can not also be identical.The scaling multiple is equal to described
The quotient of target proportion and the current ratio, thus after the target area is zoomed in and out according to the progress scaling multiple,
The ratio of the area of the area of the target area and the preview area will be become the scheduled target ratio from current ratio
Example.
In step S30, zoom is carried out according to the scaling multiple, by the target area according to the scaling multiple into
Row scaling.Here, optical zoom and/or digital zoom can be carried out according to the scaling multiple.
Particularly, in the case where electronic equipment only supports digital zoom, digital change is carried out according to the scaling multiple
It is burnt.In the case where electronic equipment only supports optical zoom, optical zoom is carried out according to the scaling multiple.In electronic equipment branch
In the case where holding optical zoom and digital zoom, determine whether the scaling multiple is less than the maximum zoom multiple of optical zoom;
When the scaling multiple is less than the maximum zoom multiple of the optical zoom, scaled the scaling multiple as optical zoom
Multiple carries out optical zoom according to optical zoom scaling multiple;When the scaling multiple is greater than the optical zoom most
When big scaling multiple, multiple is scaled using the maximum zoom multiple as optical zoom, by the scaling multiple and optical zoom
The difference for scaling multiple scales multiple as digital zoom, carries out optical zoom according to optical zoom scaling multiple, and
Digital zoom is carried out according to digital zoom scaling multiple.
Preferably, after carrying out zoom, when determining whether the pixel of the image to be captured in preview area is distorted.Work as preview
When the pixel distortion of the image to be captured in region, reduce above-mentioned scaling multiple, according to the scaling multiple after reduction again into
Row zoom is so that the pixel of the image to be captured in preview area is no longer distorted.
Preferably, after carrying out zoom, also controllable camera focuses to the target area.In this way, can make
Image in target area is more clear.
In step S40, after completing the zoom, image is obtained.Here, after zoom, the image of acquisition is original graph
As image after being zoomed in and out according to above-mentioned scaling multiple.
After an image is acquired, the image that can be will acquire saves as photo and is taken pictures with realizing.Here, in the photo of shooting
Image is the image after original image is zoomed in and out according to above-mentioned scaling multiple, and therefore, the effect of photo is more aesthetically pleasing.
Alternatively, after an image is acquired, the target area identification two dimensional code or bar code from the image of acquisition are to realize
Scanning.Here, the image of acquisition is image after original image is zoomed in and out according to above-mentioned scaling multiple, it can be achieved that long distance
From barcode scanning.
Fig. 4 and Fig. 5 is the example for showing the method shooting photo of the acquisition image of embodiment according to the present invention.
As shown in the 4a in Fig. 4, after user has input in the preview area of image to be captured and slidably inputs, obtain
Track 401 determines that target area is the region for including single personage in figure according to the track 401, according to the face of target area
The scaling multiple of target area described in the long-pending current ratio-dependent with the area of preview area, has finally obtained such as the 4b in Fig. 4
Shown photo, it can be seen that it is exaggerated on the basis of the personage of personage in fig.4 in Fig. 4 b, it is more aesthetically pleasing.
As shown in the 5a in Fig. 5, after user has input in the preview area of image to be captured and slidably inputs, obtain
Track 501 determines that target area is the region for including multiple personages in figure according to the track 501, according to the face of target area
The scaling multiple of target area described in the long-pending current ratio-dependent with the area of preview area, has finally obtained such as the 5b in Fig. 5
Shown photo, it can be seen that it is exaggerated on the basis of the personage of personage in fig 5 a in Fig. 5 b, it is more aesthetically pleasing.
In addition, user's selection obtains image still by this hair according to the existing method (hereinafter referred to as normal mode) for convenience
Method (hereinafter referred to as intelligent mode) in bright obtains image, can obtain image interface (such as interface for taking pictures or
Interface for scanning) in control for selecting normal mode or intelligent mode is provided.Preferably, normal mode can be arranged
For default mode, the control for opening intelligent mode is provided in the interface for obtaining image, is receiving user to the control
Operation after, intelligent mode will be opened, that is to say, that obtain image according to the method in the present invention.Fig. 6 is shown according to this
The example at the interface for taking pictures of the embodiment of invention.As shown in fig. 6, showing unlatching intelligence in the interface for taking pictures
The control 601 of mode, user can be by carrying out reservation operation (such as click or long-pressing) Lai Kaiqi intelligent mode to control 601.
Fig. 7 is the block diagram for showing the equipment of acquisition image of embodiment according to the present invention.Embodiment according to the present invention
The equipment of acquisition image can be applied to the various electronic equipments with camera, for example, mobile communication terminal, individual calculus
Machine, tablet computer, game machine, digital multimedia player etc..Reference Fig. 7, the acquisition image of embodiment according to the present invention
Equipment includes target area determination unit 10, scaling multiple determination unit 20, zoom unit 30 and acquiring unit 40.
Target area determination unit 10 determines target area in the preview area of image to be captured.
Here, the target area or preparatory setting can be specified to determine target area by user.
As an example, the input of user is received during taking pictures, according to the input of user come in image to be captured
Target area is determined in preview area.
Particularly, the target area can be determined according to the various user's inputs that can be used for selection region.
For example, the control that can be provided in the preview area of image to be captured for selecting the target area is (such as square
Frame).In the case where the control is box, dragging and scaling of the user to the box can receive, by dragging and/or scaling
The region in box afterwards is determined as target area.
For another example, it can receive user slidably inputing in the preview area of image to be captured, slidably inputed according to described
Track determines target area.When the track slidably inputed is an enclosed curve, the region that track is surrounded is true
It is set to target area.When the track is non-enclosed curve, the track is a part of the boundary line of target area,
Target area determination unit 10 is according to the track slidably inputed come the boundary line of target area described in completion.
It particularly, can be according to the various methods for completion boundary line come the boundary line of target area described in completion.Example
Such as, mirror image processing can be carried out to the track that slidably inputs and obtain mirror image track, by the mirror image track and the track into
Row connection comes boundary line described in completion.It here, can be to the horizontal mirror image processing of track carry out slidably inputed and/or vertical mirror
As processing.
Optionally, behind boundary line described in completion, the boundary line can be shown, the boundary line is to facilitate user to determine
The no region for having enclosed user and it is expected encirclement.The case where region surrounded is not surrounded by the boundary line all it is expected in user
Under, it can be all described come the region for making user it is expected to surround to the dragging of the boundary line and zoom operations by receiving user
Boundary line surrounds, and the region that the boundary line after dragged and scaling surrounds is determined as target area.
As an example, during scanning, in the case where showing scan box in the preview area of image to be captured,
Region in scan box can be determined as target area.In the case where not showing scan box, during can be used above-mentioned take pictures
The method of target area is determined to determine target area.
Multiple determination unit 20 is scaled according to the current ratio of the area of the target area and the area of the preview area
Example determines the scaling multiple of the target area.
Here, the scaling multiple of the target area can be determined according to the current ratio and scheduled rule.Example
Such as, the scaling multiple of the target area is determined according to the current ratio and scheduled target proportion.The scheduled mesh
Mark ratio can be and the current corresponding target proportion of ratio or a unified target proportion, that is to say, that right
In different current ratios, the scheduled target proportion can be identical, can not also be identical.The scaling multiple is equal to described
The quotient of target proportion and the current ratio, thus after the target area is zoomed in and out according to the progress scaling multiple,
The ratio of the area of the area of the target area and the preview area will be become the scheduled target ratio from current ratio
Example.
Zoom unit 30 according to the scaling multiple carry out zoom, by the target area according to the scaling multiple into
Row scaling.Here, optical zoom and/or digital zoom can be carried out according to the scaling multiple.
Particularly, in the case where electronic equipment only supports digital zoom, digital change is carried out according to the scaling multiple
It is burnt.In the case where electronic equipment only supports optical zoom, optical zoom is carried out according to the scaling multiple.In electronic equipment branch
In the case where holding optical zoom and digital zoom, determine whether the scaling multiple is less than the maximum zoom multiple of optical zoom;
When the scaling multiple is less than the maximum zoom multiple of the optical zoom, scaled the scaling multiple as optical zoom
Multiple carries out optical zoom according to optical zoom scaling multiple;When the scaling multiple is greater than the optical zoom most
When big scaling multiple, multiple is scaled using the maximum zoom multiple as optical zoom, by the scaling multiple and optical zoom
The difference for scaling multiple scales multiple as digital zoom, carries out optical zoom according to optical zoom scaling multiple, and
Digital zoom is carried out according to digital zoom scaling multiple.
Preferably, after carrying out zoom, when determining whether the pixel of the image to be captured in preview area is distorted.Work as preview
When the pixel distortion of the image to be captured in region, reduce above-mentioned scaling multiple, according to the scaling multiple after reduction again into
Row zoom is so that the pixel of the image to be captured in preview area is no longer distorted.
Preferably, the equipment of the acquisition image of embodiment according to the present invention may also include focusing unit (not shown).?
After zoom unit 30 carries out zoom, the also controllable camera of focusing unit focuses to the target area.In this way, can make
Image in target area is more clear.
After zoom unit 30 completes the zoom, image acquisition unit 40 obtains image.Here, it after zoom, obtains
Image be image after original image is zoomed in and out according to above-mentioned scaling multiple.
The equipment of the acquisition image of embodiment according to the present invention may also include photographing unit (not shown) and/scanning element
(not shown).
After an image is acquired, the image that photographing unit can will acquire saves as photo and is taken pictures with realizing.Here, shooting
Image in photo is the image after original image is zoomed in and out according to above-mentioned scaling multiple, and therefore, the effect of photo is more
For beauty.
Alternatively, after an image is acquired, target area identification two dimensional code or item of the scanning element from the image of acquisition
Code is to realize scanning.Here, the image of acquisition is the image after original image is zoomed in and out according to above-mentioned scaling multiple, can
Realize remote barcode scanning.
In addition, user selects normal mode to obtain image to obtain image or intelligent mode for convenience, according to
The equipment of the acquisition image of the embodiment of invention may also include mode selecting unit (not shown).Mode selecting unit is obtaining
It takes in the interface (such as the interface for taking pictures or interface for scanning) of image and provides for selecting normal mode or intelligence
The control of mode.Preferably, default mode can be set by normal mode, provided in the interface for obtaining image for opening intelligence
The control of energy mode will open intelligent mode, that is to say, that according in the present invention after receiving user to the operation of the control
Method obtain image.
The method and apparatus of the acquisition image of embodiment according to the present invention, can area according to target area and preview region
The ratio of the area in domain carries out zoom automatically, can be obtained after zoom by the image of scaling for shooting more beautiful photograph
Piece is used for remote barcode scanning.
Embodiment according to the present invention also provides a kind of computer readable storage medium.The computer readable storage medium is deposited
Contain the program instruction for making processor execute the method as described above for obtaining image when being executed by a processor.The computer
Readable medium recording program performing is the arbitrary data storage device that can store the data read by computer system.Computer-readable record is situated between
The example of matter includes: read-only memory, random access memory, CD-ROM, tape, floppy disk, optical data storage devices and load
Wave (is such as transmitted through wired or wireless transmission path by the data of internet).Computer readable recording medium also can be distributed in
The computer system for connecting network, so that computer-readable code stores and executes in a distributed manner.In addition, completing function of the invention
Can program, code and code segment can easily by the ordinary programmers in field related to the present invention within the scope of the present invention
It explains.
Embodiment according to the present invention also provides a kind of computing device.The computing device includes processor and memory.It deposits
Reservoir is for storing program instruction.Described program instruction is executed by processor so that processor executes acquisition image as described above
Method program instruction.
In addition, embodiment according to the present invention acquisition image equipment in each program module can completely by hardware Lai
It realizes, such as field programmable gate array or specific integrated circuit;It can also be realized by mode that hardware and software combines;
It can also be realized completely by computer program with software mode.
Although being particularly shown and describing the present invention, those skilled in the art referring to its exemplary embodiment
It should be understood that in the case where not departing from the spirit and scope of the present invention defined by claim form can be carried out to it
With the various changes in details.
Claims (10)
1. a kind of method for obtaining image characterized by comprising
(a) target area is determined in the preview area of image to be captured;
(b) according to the current ratio-dependent of the area of the target area and the area of preview area target area
Scale multiple;
(c) zoom is carried out according to the scaling multiple, the target area is zoomed in and out according to the scaling multiple;
(d) after completing the zoom, image is obtained.
2. the method according to claim 1, wherein step (b) include: according to the area of the target area with
The current ratio and scheduled target proportion of the area of the preview area determine the scaling multiple of the target area,
In, in step (c), after the target area is zoomed in and out according to the progress scaling multiple, the face of the target area
The long-pending ratio with the area of the preview area will be become the scheduled target proportion from current ratio.
3. the method according to claim 1, wherein step (c) includes: to carry out optics according to the scaling multiple
Zoom and/or digital zoom.
4. according to the method described in claim 3, it is characterized in that, step (c) includes: when the scaling multiple is less than the light
When learning the maximum zoom multiple of zoom, multiple is scaled using the scaling multiple as optical zoom, is contracted according to the optical zoom
It puts multiple and carries out optical zoom;When the scaling multiple is greater than the maximum zoom multiple of the optical zoom, by the maximum
Multiple is scaled as optical zoom and scales multiple, the difference of the scaling multiple and optical zoom scaling multiple is become as number
Coke scaling multiple carries out optical zoom according to optical zoom scaling multiple, and scales multiple according to the digital zoom
Carry out digital zoom.
5. the method according to claim 1, wherein step (c) further include: after carrying out zoom, preview area
In image to be captured pixel distortion when, reduce the scaling multiple, zoom carried out according to the scaling multiple after reduction again
So that the pixel of the image to be captured in preview area is no longer distorted.
6. the method according to claim 1, wherein before step (d) further include: control camera is to described
It focuses target area.
7. the method according to claim 1, wherein further comprising the steps of: the image that will acquire saves as photo.
8. the method according to the description of claim 7 is characterized in that step (a) includes: to receive user in the pre- of image to be captured
It lookes at slidably inputing in region, target area is determined according to the track slidably inputed.
9. a kind of equipment for obtaining image characterized by comprising
Target area determination unit determines target area in the preview area of image to be captured;
Multiple determination unit is scaled, according to the current ratio-dependent of the area of the target area and the area of the preview area
The scaling multiple of the target area;
Zoom unit carries out zoom according to the scaling multiple, the target area is contracted according to the scaling multiple
It puts;
Image acquisition unit obtains image after zoom unit completes the zoom.
10. a kind of computing device, comprising:
Processor;
Memory is executed by processor for storing to work as so that processor executes as claimed in any of claims 1 to 8 in one of claims
Obtain the program instruction of the method for image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710817963.4A CN109495681A (en) | 2017-09-12 | 2017-09-12 | The method and apparatus for obtaining image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710817963.4A CN109495681A (en) | 2017-09-12 | 2017-09-12 | The method and apparatus for obtaining image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109495681A true CN109495681A (en) | 2019-03-19 |
Family
ID=65688838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710817963.4A Withdrawn CN109495681A (en) | 2017-09-12 | 2017-09-12 | The method and apparatus for obtaining image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495681A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505400A (en) * | 2019-08-16 | 2019-11-26 | 维沃移动通信有限公司 | A kind of preview image display adjusting method and terminal |
CN111447359A (en) * | 2020-03-19 | 2020-07-24 | 展讯通信(上海)有限公司 | Digital zoom method, system, electronic device, medium, and digital imaging device |
CN112601028A (en) * | 2021-03-02 | 2021-04-02 | 浙江华创视讯科技有限公司 | Image pickup control method and device, computer equipment and storage medium |
CN113709368A (en) * | 2021-08-26 | 2021-11-26 | 维沃移动通信有限公司 | Image display method, device and equipment |
CN114666490A (en) * | 2020-12-23 | 2022-06-24 | 北京小米移动软件有限公司 | Focusing method and device, electronic equipment and storage medium |
WO2022161250A1 (en) * | 2021-01-28 | 2022-08-04 | 浙江华创视讯科技有限公司 | Photographing control method and apparatus, computer device and storage medium |
WO2022161240A1 (en) * | 2021-01-27 | 2022-08-04 | 维沃移动通信有限公司 | Photographing method and apparatus, electronic device, and medium |
CN116301459A (en) * | 2023-02-27 | 2023-06-23 | 荣耀终端有限公司 | Code scanning method and related device |
CN117082344A (en) * | 2023-08-11 | 2023-11-17 | 蚂蚁区块链科技(上海)有限公司 | Image shooting method and device |
CN117082344B (en) * | 2023-08-11 | 2024-07-26 | 蚂蚁区块链科技(上海)有限公司 | Image shooting method and device |
-
2017
- 2017-09-12 CN CN201710817963.4A patent/CN109495681A/en not_active Withdrawn
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505400A (en) * | 2019-08-16 | 2019-11-26 | 维沃移动通信有限公司 | A kind of preview image display adjusting method and terminal |
CN111447359A (en) * | 2020-03-19 | 2020-07-24 | 展讯通信(上海)有限公司 | Digital zoom method, system, electronic device, medium, and digital imaging device |
CN111447359B (en) * | 2020-03-19 | 2021-07-02 | 展讯通信(上海)有限公司 | Digital zoom method, system, electronic device, medium, and digital imaging device |
CN114666490B (en) * | 2020-12-23 | 2024-02-09 | 北京小米移动软件有限公司 | Focusing method, focusing device, electronic equipment and storage medium |
CN114666490A (en) * | 2020-12-23 | 2022-06-24 | 北京小米移动软件有限公司 | Focusing method and device, electronic equipment and storage medium |
WO2022161240A1 (en) * | 2021-01-27 | 2022-08-04 | 维沃移动通信有限公司 | Photographing method and apparatus, electronic device, and medium |
WO2022161250A1 (en) * | 2021-01-28 | 2022-08-04 | 浙江华创视讯科技有限公司 | Photographing control method and apparatus, computer device and storage medium |
CN112601028B (en) * | 2021-03-02 | 2021-05-04 | 浙江华创视讯科技有限公司 | Image pickup control method and device, computer equipment and storage medium |
CN112601028A (en) * | 2021-03-02 | 2021-04-02 | 浙江华创视讯科技有限公司 | Image pickup control method and device, computer equipment and storage medium |
CN113709368A (en) * | 2021-08-26 | 2021-11-26 | 维沃移动通信有限公司 | Image display method, device and equipment |
CN116301459A (en) * | 2023-02-27 | 2023-06-23 | 荣耀终端有限公司 | Code scanning method and related device |
CN116301459B (en) * | 2023-02-27 | 2023-10-20 | 荣耀终端有限公司 | Code scanning method and related device |
CN117082344A (en) * | 2023-08-11 | 2023-11-17 | 蚂蚁区块链科技(上海)有限公司 | Image shooting method and device |
CN117082344B (en) * | 2023-08-11 | 2024-07-26 | 蚂蚁区块链科技(上海)有限公司 | Image shooting method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109495681A (en) | The method and apparatus for obtaining image | |
US20140092272A1 (en) | Apparatus and method for capturing multi-focus image using continuous auto focus | |
CN101601279B (en) | Imaging device, imaging method, and program | |
CN101557468B (en) | Image processing apparatus, and image processing method | |
US9013592B2 (en) | Method, apparatus, and computer program product for presenting burst images | |
KR100890949B1 (en) | Electronic device and method in an electronic device for processing image data | |
CN108712609A (en) | Focusing process method, apparatus, equipment and storage medium | |
CN106134178A (en) | Image processing apparatus, camera head, image processing method and image processing program | |
CN107852464B (en) | Method, apparatus, computer system, and storage medium for capturing image frames | |
CN110456967A (en) | Information processing method, information processing equipment and program | |
CN105578061A (en) | Anti-shaking method and device for photographing, and mobile terminal | |
CN102789124A (en) | Digital photographing apparatus and method of controlling the same to increase continuous shooting speed for capturing panoramic photographs | |
CN102158648B (en) | Image capturing device and image processing method | |
CN111107265B (en) | Image processing method and device, computer readable medium and electronic equipment | |
CN106416218B (en) | Image processing apparatus, photographic device, image processing method and storage medium | |
CN108900764A (en) | Image pickup method and electronic device and filming control method and server | |
CN102685374A (en) | Electronic equipment | |
CN102595038A (en) | Digital photographing apparatus and control method thereof | |
CN112087579B (en) | Video shooting method and device and electronic equipment | |
CN113012082A (en) | Image display method, apparatus, device and medium | |
CN102611835A (en) | Digital photographing apparatus and control method thereof | |
JP2019110430A (en) | Control apparatus, imaging apparatus, control method, and program | |
CN113989387A (en) | Camera shooting parameter adjusting method and device and electronic equipment | |
JP2005354166A (en) | Image processing apparatus, image processing system, image processing method, and storage medium | |
US20210133937A1 (en) | Method and system for creating, storing, sharing, and displaying multiple perspectives of an image |
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: 20190319 |
|
WW01 | Invention patent application withdrawn after publication |