CN105812662A - Image obtaining method - Google Patents

Image obtaining method Download PDF

Info

Publication number
CN105812662A
CN105812662A CN201610157471.2A CN201610157471A CN105812662A CN 105812662 A CN105812662 A CN 105812662A CN 201610157471 A CN201610157471 A CN 201610157471A CN 105812662 A CN105812662 A CN 105812662A
Authority
CN
China
Prior art keywords
image
angle information
image acquiring
acquiring method
horizontal plane
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
Application number
CN201610157471.2A
Other languages
Chinese (zh)
Inventor
高彦彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201610157471.2A priority Critical patent/CN105812662A/en
Publication of CN105812662A publication Critical patent/CN105812662A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/3877Image rotation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an image obtaining method. The method comprises that an image obtaining device generates a first image, moreover, information of the angle formed by the image obtaining device and a horizontal plane is obtained; and S2, the first image is rotated, cropped and/or stored according to the angle information, thus forming a second image. Through adoption of the image obtaining method provided by the invention, no matter what the included angle between the obtained original image and the horizontal plane is, the included angle between the image finally displayed on a screen and the horizontal plane is 0 degree or 180 degrees.

Description

Image acquiring method
Technical field
The present invention relates to image processing field, and more particularly, to a kind of image processing method and device.
Background technology
At present, mobile phone has shoot function more, and consumer can use mobile phone to take pictures whenever and wherever possible, for instance the landscape of surrounding is taken pictures, very convenient.But when taking pictures, referring to the special-effect of shooting, otherwise the usual basic principle when shooting landscape and shining is to make horizon maintenance level, so that the photo shot is without tilt phenomenon.And most consumer be unaware of this principle, therefore often resulting in shooting photo out has tilt phenomenon, affects the visual effect of photo.
Summary of the invention
The invention provides a kind of image acquiring method, it is possible to from the angle of the acquired image of dynamic(al) correction.
The present invention provides a kind of image acquiring method, including:
S1, image acquiring device obtain described image acquiring device and horizontal plane angulation information while generating the first image;
S2, according to described angle information described first image rotates, cuts and/or stored operation to form the second image.
As preferably, after obtaining described angle information, it is judged that whether described angle information is 0 ° or 180 °, if it is, directly the first image is stored as the second image;If not, cut operation again after according to described angle information described first image carried out the reverse rotation operation of equal angular and form the second image.
As preferably, described in cut operation and include level and cut and vertically cut.
As preferably, described in cut operation and carry out according to the image scaled of described first image.
As preferably, after the first image is cut operation, export described first image and the second image to screen simultaneously.
As preferably, showing according to screen, described first image and/or the second image are preserved by response user's input.
As preferably, image acquiring device carries out viewing operation before generating the first image, from the angle information started between real-time image acquisition acquisition device and horizontal plane of finding a view, and preserve the angle information between described image acquiring device and horizontal plane while the first image generates.
As preferably, obtaining described angle information by gyroscope.
Having the beneficial effects that of the image acquiring method of the present invention, adopts the image that the method obtains all can be presented on screen with the angle between horizontal plane for the state of 0 ° or 180 °.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, the accompanying drawing used required in the embodiment of the present invention will be briefly described below.It should be evident that drawings described below is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the indicative flowchart of the image acquiring method according to the present invention.
Fig. 2 is the concrete steps flow chart of the image acquiring method according to the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiment.
Fig. 1 is the indicative flowchart of the image acquiring method according to the present invention.A kind of image acquiring method shown in Fig. 1, including:
S1, image acquiring device obtain image acquiring device and horizontal plane angulation information while generating the first image;
S2, according to angle information the first image rotates, cuts and/or stored operation to form the second image.Namely the first image is the original image being not handled by, and the second image is the image after the process that the first image is formed after a series of process.
Fig. 2 is the concrete steps flow chart of the image acquiring method according to the present invention.As in figure 2 it is shown, after acquisition angle information, it is judged that whether angle information is 0 ° or 180 °, namely judges whether image acquiring device flushes with horizontal plane when obtaining the first image, if it is, directly the first image is stored as the second image;If not, namely there is an angle between image acquiring device and horizontal plane, so then according to the angle information (i.e. the angle value of this angle) obtained, the first image is carried out the reverse rotation operation of equal angular, making the angle between the first image and horizontal plane is 0 ° or 180 °, then postrotational first image cuts operation again and then forms the second image.This cuts operation and includes level and cut and vertically cut.Preferably, in order to make the second image after cutting and the first image appearance similar, this cuts operation and can carry out according to the image scaled of the first image.
Continuing with Fig. 2, after the first image is cut operation, after namely the second image is formed, exporting the first image and the second image to screen simultaneously, show then according to screen, the first image and/or the second image are preserved by response user's input.After namely exporting the first image and the second image to screen at the same time, two images can optionally be preserved by user, if user selects to preserve image, image acquiring device is then given tacit consent to and preserved by two images simultaneously;If user selects to preserve image during difference, then image acquiring device then only preserves the second image, and abandons preserving the first image.
Further, image acquiring device carries out viewing operation before generating the first image, the angle information started between real-time image acquisition acquisition device and horizontal plane of certainly finding a view, and preserves the angle information between image acquiring device and horizontal plane while the first image generates.Image acquiring device in the present embodiment obtains angle information by gyroscope.
During concrete operations, for instance use mobile phone to obtain image (namely user uses mobile phone to carry out taking pictures to obtain image, and in this mobile phone, acquiescence is equiped with gyroscope) with user and illustrate for example:
A. mobile phone is first found a view, and the gyroscope in mobile phone obtains the angle information between mobile phone and horizontal plane simultaneously;
B. finding a view after successfully, user presses shutter and obtains the first image, and the gyroscope acquisition mobile phone of interior of mobile phone tilts the angle information of 10 ° clockwise this moment;
C. mobile phone first determines whether the angle information of acquisition, when learning angle value not 0 deg and 180 °, start to correct the first image, first the first image is rotated counterclockwise correction 10 °, then with the ratio of the first image, postrotational first image is carried out level and cut and vertically cut formation the second image;
D. export the first image and the second image to screen simultaneously;
E. the input of mobile phone relative users, or preserve the first image and the second image simultaneously, or only preserve the second image.
As can be seen here, no matter which kind of angle user adopts take pictures by mobile phone (or camera), as long as mobile phone (or camera) is the image that the method obtaining image by the application obtains, this image all can be made to be presented on screen for the state of 0 ° or 180 ° with the angle between horizontal plane, therefore make many users being ignorant of photographic knowledge can also take effect preferably image.
Those of ordinary skill in the art it can be appreciated that, the unit of each example described in conjunction with the embodiments described herein and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel specifically can should be used for using different methods to realize described function to each, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience of description and succinctly, and the specific works process of the system of foregoing description, device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.It addition, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is also possible to be electric, machinery or other form connect.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of embodiment of the present invention scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to be that two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, the part that prior art is contributed by technical scheme substantially in other words, or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
The above; it is only the specific embodiment of the present invention; but protection scope of the present invention is not limited thereto; any those familiar with the art is in the technical scope that the invention discloses; can readily occurring in amendment or the replacement of various equivalence, these amendments or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (8)

1. an image acquiring method, it is characterised in that including:
S1, image acquiring device obtain described image acquiring device and horizontal plane angulation information while generating the first image;
S2, according to described angle information described first image rotates, cuts and/or stored operation to form the second image.
2. image acquiring method according to claim 1, it is characterised in that after obtaining described angle information, it is judged that whether described angle information is 0 ° or 180 °, if it is, be directly stored as the second image by the first image;If not, cut operation again after according to described angle information described first image carried out the reverse rotation operation of equal angular and form the second image.
3. image acquiring method according to claim 2, it is characterised in that described in cut operation and include level and cut and vertically cut.
4. image acquiring method according to claim 2, it is characterised in that described in cut operation carry out according to the image scaled of described first image.
5. image acquiring method according to claim 4, it is characterised in that after the first image is cut operation, exports described first image and the second image simultaneously to screen.
6. image acquiring method according to claim 5, it is characterised in that show according to screen, described first image and/or the second image are preserved by response user's input.
7. image acquiring method according to claim 1, it is characterized in that, image acquiring device carries out viewing operation before generating the first image, from the angle information started between real-time image acquisition acquisition device and horizontal plane of finding a view, and preserve the angle information between described image acquiring device and horizontal plane while the first image generates.
8. image acquiring method according to claim 1, it is characterised in that obtain described angle information by gyroscope.
CN201610157471.2A 2016-03-17 2016-03-17 Image obtaining method Pending CN105812662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610157471.2A CN105812662A (en) 2016-03-17 2016-03-17 Image obtaining method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610157471.2A CN105812662A (en) 2016-03-17 2016-03-17 Image obtaining method

Publications (1)

Publication Number Publication Date
CN105812662A true CN105812662A (en) 2016-07-27

Family

ID=56453384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610157471.2A Pending CN105812662A (en) 2016-03-17 2016-03-17 Image obtaining method

Country Status (1)

Country Link
CN (1) CN105812662A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451216A (en) * 2018-11-16 2019-03-08 青岛真时科技有限公司 A kind of display processing method and device shooting photo
CN111787230A (en) * 2020-07-31 2020-10-16 维沃移动通信(杭州)有限公司 Image display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489155A (en) * 2013-09-18 2014-01-01 厦门美图网科技有限公司 Automatic horizontal correction photographing method based on sensor
CN103780747A (en) * 2012-10-23 2014-05-07 联想(北京)有限公司 Information processing method and electronic equipment
US8860818B1 (en) * 2013-07-31 2014-10-14 Apple Inc. Method for dynamically calibrating rotation offset in a camera system
US20150147003A1 (en) * 2013-11-27 2015-05-28 Microsoft Corporation Content-Aware Image Rotation
JP2015204595A (en) * 2014-04-16 2015-11-16 カシオ計算機株式会社 Imaging apparatus, camera, remote control apparatus, imaging method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780747A (en) * 2012-10-23 2014-05-07 联想(北京)有限公司 Information processing method and electronic equipment
US8860818B1 (en) * 2013-07-31 2014-10-14 Apple Inc. Method for dynamically calibrating rotation offset in a camera system
CN103489155A (en) * 2013-09-18 2014-01-01 厦门美图网科技有限公司 Automatic horizontal correction photographing method based on sensor
US20150147003A1 (en) * 2013-11-27 2015-05-28 Microsoft Corporation Content-Aware Image Rotation
JP2015204595A (en) * 2014-04-16 2015-11-16 カシオ計算機株式会社 Imaging apparatus, camera, remote control apparatus, imaging method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451216A (en) * 2018-11-16 2019-03-08 青岛真时科技有限公司 A kind of display processing method and device shooting photo
CN111787230A (en) * 2020-07-31 2020-10-16 维沃移动通信(杭州)有限公司 Image display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
EP2160714B1 (en) Augmenting images for panoramic display
US20190208119A1 (en) Image processing method and apparatus
US20190335155A1 (en) Image Processing Method and Apparatus
JP4918689B2 (en) Stereo image generation method and stereo image generation apparatus for generating a stereo image from a two-dimensional image using a mesh map
US20200296348A1 (en) Virtual Reality Parallax Correction
CN103945045A (en) Method and device for data processing
JP6563896B2 (en) Automatic adjustment of image direction
WO2017213923A1 (en) Multi-view scene segmentation and propagation
CN103414844A (en) Video dithering correction method and device
CN102609849A (en) Panoramic exhibiting system and panoramic exhibiting method of commodities
US10620807B2 (en) Association of objects in a three-dimensional model with time-related metadata
WO2020164044A1 (en) Free-viewpoint image synthesis method, device, and apparatus
CN104869298A (en) Data processing method and electronic device
CN104731855A (en) Method and device for displaying image resources of WeChat friend circle
CN105812662A (en) Image obtaining method
CN105554290A (en) Wallpaper sharing method and device
CN109144363B (en) Information processing method and electronic equipment
CN104902183B (en) Panorama photographic method and device
CN104243821A (en) Obtaining method and device of large-view-angle photo
WO2018152685A1 (en) Image processing in a vr system
KR102161437B1 (en) Apparatus for sharing contents using spatial map of augmented reality and method thereof
US20140003706A1 (en) Method and system for ensuring stereo alignment during pipeline processing
CN104580932A (en) Image information modification method and device
CN109300191A (en) AR model treatment method, apparatus, electronic equipment and readable storage medium storing program for executing
WO2021197272A1 (en) Video segmentation method and apparatus, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160727