CN107454314B - Image cutting method of single-lens 360-degree panoramic camera - Google Patents
Image cutting method of single-lens 360-degree panoramic camera Download PDFInfo
- Publication number
- CN107454314B CN107454314B CN201710539730.2A CN201710539730A CN107454314B CN 107454314 B CN107454314 B CN 107454314B CN 201710539730 A CN201710539730 A CN 201710539730A CN 107454314 B CN107454314 B CN 107454314B
- Authority
- CN
- China
- Prior art keywords
- image
- square
- lens
- width
- height
- 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.)
- Active
Links
Images
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/80—Camera processing pipelines; Components thereof
- H04N23/815—Camera processing pipelines; Components thereof for controlling the resolution by using a single image
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Stereoscopic And Panoramic Photography (AREA)
Abstract
The invention discloses an image cutting method of a single-lens 360-degree panoramic camera, which comprises the following steps of: the method comprises the following steps: firstly, acquiring the width and the height of an image output by a photoreceptor; step two: setting default width and height of reduced display of the picture through the acquired width and height of the image; step three: adjusting the size and position of the cutting frame through the picture button; step four: setting a shearing parameter according to the adjusted image; step five: cutting out an image; the invention can reduce the code stream of the image in the same ratio after the image pixel is reduced, and particularly for the panoramic equipment adopting wireless connection, the image fluency and real-time performance can be greatly improved after the code stream is greatly reduced, thereby improving the user experience.
Description
Technical Field
The invention relates to the technical field of cameras, in particular to an image cutting method of a single-lens 360-degree panoramic camera.
Background
The image of the single-lens 360-degree panoramic camera imaged on the SENSOR is an inscribed circle, and the currently mainly used SENSOR has two specifications, namely 16: 9 (length: width), and the other 4: 3 (length: width), the inscribed circle formed by the image on the SENSOR is an inscribed circle which takes the minimum side of a rectangle as the diameter of the circle and takes the center of the rectangle as the center of the circle, but the image imaged by the single-lens 360-degree panoramic camera has no rectangular SENSOR center position due to the factors of mechanical errors of the SENSOR patch position and the IR-CUT fixed position, tolerance of the lens and the IR-CUT, and the like, so that the imaged inscribed circle image has deviation on the SENSOR, and the deviation position is random, that is, the image can deviate from left, right, upper, lower, upper right, lower right, upper left, lower left, and the like, the panoramic image is extracted at the rear end, the inscribed circle is taken according to the image center position, and the extracted image has the problems of black edge or edge blurring and the like due to the deviation of the original image center position, so that the user experience is influenced.
Disclosure of Invention
The present invention is directed to provide an image cropping method for a single-lens 360-degree panoramic camera, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
an image cutting method of a single-lens 360-degree panoramic camera comprises the following steps:
the method comprises the following steps: firstly, acquiring the width and the height of an image output by a photoreceptor;
step two: setting default width and height of reduced display of the picture through the acquired width and height of the image;
step three: adjusting the size and position of the cutting frame through the picture button;
step four: setting a shearing parameter according to the adjusted image;
step five: and cutting out the image.
As a further scheme of the invention: the third step is that: the method for cutting the size and the position of the frame is as follows:
1) superposing a square frame on the image, wherein the square frame is provided with an inscribed circle;
2) and moving the center point of the square to enable all the images of the inscribed circle of the square to be effective images, wherein the center position of the image of the square is the center point of the cut image, and the side length of the square is the side length of the cut image.
As a still further scheme of the invention: the inscribed circle in 1) is an image which is actually needed to be used.
As a still further scheme of the invention: the square image size is cut down by one size based on the least side length.
As a still further scheme of the invention: and the central position is selected according to the direction of image deviation, and the central point of the square image is adjusted and cut.
Compared with the prior art, the invention has the beneficial effects that: the invention can reduce the code stream of the image in the same ratio after the image pixel is reduced, and particularly for the panoramic equipment adopting wireless connection, the image fluency and real-time performance can be greatly improved after the code stream is greatly reduced, thereby improving the user experience.
Drawings
Fig. 1 is a clipped effect diagram of an image clipping method of a single-lens 360-degree panoramic camera.
Fig. 2 is an effect diagram before clipping of an image clipping method of a single-lens 360-degree panoramic camera.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-2, in an embodiment of the present invention, an image cropping method for a single-lens 360-degree panoramic camera includes the following steps:
the method comprises the following steps: firstly, acquiring the width and the height of an image output by a photoreceptor;
step two: setting default width and height of reduced display of the picture through the acquired width and height of the image;
step three: adjusting the size and position of the cutting frame through the picture button;
step four: setting a shearing parameter according to the adjusted image;
step five: and cutting out the image.
The third step is that: the method for cutting the size and the position of the frame is as follows:
1) superposing a square frame on the image, wherein the square frame is provided with an inscribed circle;
2) and moving the center point of the square to enable all the images of the inscribed circle of the square to be effective images, wherein the center position of the image of the square is the center point of the cut image, and the side length of the square is the side length of the cut image.
The inscribed circle in 1) is an image which is actually needed to be used.
The square image size is cut down by one size based on the least side length.
And the central position is selected according to the direction of image deviation, and the central point of the square image is adjusted and cut.
The working principle of the invention is as follows: for the image characteristics of a single-lens 360-degree panoramic camera, we compare 16: 9 (length: width) and 4: the image of 3 (length: width) is cut into 9: 9 (length: width) and 3: 3 (length: width), the clipped image does not affect the panoramic imaged image, but can greatly reduce the image pixels, and the ratio of the image pixels is 16: 9 (length: width) image cut to 9: 9 (length: width) image, the image pixels are reduced by 43.75%, the ratio of 4: 3 (length: width) image cropping to 3: 3 (length: width) image, the image pixels are reduced by 25%. Example (c): 16: the original pixel of 9 is 400 ten thousand, and is cut into 9: after 9 images, the image pixels are 225 ten thousand, if 4: the original image of 3 is 500 ten thousand, and is cut into 3: after 3 images, the image pixels are 375 ten thousand; after the image pixels are reduced, the code stream of the image can be reduced in a same ratio, particularly for the panoramic equipment adopting wireless connection, after the code stream is greatly reduced, the image fluency and real-time performance can be greatly improved, and the user experience is improved.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.
Claims (3)
1. An image cutting method of a single-lens 360-degree panoramic camera is characterized by comprising the following steps:
the method comprises the following steps: firstly, acquiring the width and the height of an image output by a photoreceptor;
step two: setting default width and height of reduced display of the picture through the acquired width and height of the image;
step three: adjusting the size and position of the cutting frame through the picture button;
step four: setting a shearing parameter according to the adjusted image;
step five: cutting out an image;
the method for cutting the size and the position of the frame comprises the following steps:
1) superposing a square frame on the image, wherein the square frame is provided with an inscribed circle;
2) moving the center point of the square to enable all the images of the inscribed circle of the square to be effective images, wherein the center position of the image of the square is the center point of the cut image, and the side length of the square is the side length of the cut image;
and the central position is selected according to the direction of image deviation, and the central point of the square image is adjusted and cut.
2. The image cropping method of a single-lens 360-degree panoramic camera according to claim 1, wherein the inscribed circle in 1) is an image actually needed to be used.
3. The image cropping method of a single-lens 360-degree panoramic camera of claim 1, wherein the size of the cropped square image is selected to be reduced by one size on the basis of the least side length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710539730.2A CN107454314B (en) | 2017-07-05 | 2017-07-05 | Image cutting method of single-lens 360-degree panoramic camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710539730.2A CN107454314B (en) | 2017-07-05 | 2017-07-05 | Image cutting method of single-lens 360-degree panoramic camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107454314A CN107454314A (en) | 2017-12-08 |
CN107454314B true CN107454314B (en) | 2020-06-02 |
Family
ID=60488356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710539730.2A Active CN107454314B (en) | 2017-07-05 | 2017-07-05 | Image cutting method of single-lens 360-degree panoramic camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107454314B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102975082A (en) * | 2012-10-29 | 2013-03-20 | 上海工程技术大学 | Non-interference tool path detection method based on image information assisted multi-shaft processing |
CN104134186A (en) * | 2013-04-30 | 2014-11-05 | 索尼公司 | Image processing apparatus, image processing method, and program |
CN104613869A (en) * | 2015-01-28 | 2015-05-13 | 南京信息工程大学 | Method and system for detecting elliptical hole group based on maximum inscribed circle |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10170082B2 (en) * | 2010-10-04 | 2019-01-01 | Nec Corporation | Image display device and image display method |
JP6478900B2 (en) * | 2015-11-09 | 2019-03-06 | キヤノン株式会社 | Lens apparatus and imaging apparatus having the same |
CN105868476B (en) * | 2016-03-30 | 2018-10-30 | 西安电子科技大学 | A kind of optimal arc side of space regular polygon flat film structure determines method |
-
2017
- 2017-07-05 CN CN201710539730.2A patent/CN107454314B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102975082A (en) * | 2012-10-29 | 2013-03-20 | 上海工程技术大学 | Non-interference tool path detection method based on image information assisted multi-shaft processing |
CN104134186A (en) * | 2013-04-30 | 2014-11-05 | 索尼公司 | Image processing apparatus, image processing method, and program |
CN104613869A (en) * | 2015-01-28 | 2015-05-13 | 南京信息工程大学 | Method and system for detecting elliptical hole group based on maximum inscribed circle |
Also Published As
Publication number | Publication date |
---|---|
CN107454314A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10334153B2 (en) | Image preview method, apparatus and terminal | |
EP1987436B1 (en) | Image blurring | |
CN104361329B (en) | A kind of photo method of cutting out and system based on recognition of face | |
KR102229811B1 (en) | Filming method and terminal for terminal | |
EP2030433B1 (en) | Method and arrangement for processing records of imaging sensors, corresponding computer program, and corresponding computer-readable storage medium | |
US20150363952A1 (en) | Image Obtaining Method, Photographing Apparatus And Storage Medium | |
US10306210B2 (en) | Image processing apparatus and image capturing apparatus | |
CN109409147B (en) | Bar code recognition method and device | |
CN105407280B (en) | Panoramic image synthesis method and system | |
EP3005286B1 (en) | Image refocusing | |
CN105376473A (en) | Photographing method, device and equipment | |
US20120236168A1 (en) | Image processing device, image processing method, and program | |
DE102017118714A1 (en) | Multi-level camera carrier system for stereoscopic image acquisition | |
WO2019013217A1 (en) | Correction device, imaging device, control method for correction device, and control program | |
CN112954194B (en) | Image acquisition device adjusting method, system, terminal and medium | |
CN102905136B (en) | A kind of video coding-decoding method, system | |
KR101478980B1 (en) | System for multi channel display to use a fish-eye lens | |
US20220232173A1 (en) | Method and device of image processing, imaging system and storage medium | |
CN107424206B (en) | Interaction method for influencing shadow expression of virtual scene by using real environment | |
CN105654424B (en) | Adjustment ratio display methods, display system, display device and the terminal of image | |
US8223229B2 (en) | Lens shading correction for autofocus and zoom lenses | |
CN107454314B (en) | Image cutting method of single-lens 360-degree panoramic camera | |
CN112529778B (en) | Image stitching method and device of multi-camera equipment, storage medium and terminal | |
US11341611B2 (en) | Automatic generation of perceived real depth animation | |
CN106911886A (en) | For the self-shoot guidance method and device of terminal of autodyning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |