WO2017113504A1 - Image displaying method and device - Google Patents

Image displaying method and device Download PDF

Info

Publication number
WO2017113504A1
WO2017113504A1 PCT/CN2016/074892 CN2016074892W WO2017113504A1 WO 2017113504 A1 WO2017113504 A1 WO 2017113504A1 CN 2016074892 W CN2016074892 W CN 2016074892W WO 2017113504 A1 WO2017113504 A1 WO 2017113504A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
camera
column
overlapping area
rotation angle
Prior art date
Application number
PCT/CN2016/074892
Other languages
French (fr)
Chinese (zh)
Inventor
刘军
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2017113504A1 publication Critical patent/WO2017113504A1/en

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Definitions

  • the present invention relates to the field of image display, and in particular to an image display method and apparatus.
  • the technical problem to be solved by the embodiments of the present invention is to provide an image display method and apparatus, and a dual camera that can be rotated is arranged on the mobile terminal, and the mobile terminal can be widely moved without rotating or rotating the mobile terminal when shooting a wide-angle photo.
  • Angle photo shooting avoids blurring of images caused by multiple non-simultaneously taken photo composite images.
  • the present invention provides an image display method for a terminal configured with a rotatable first camera and a rotatable second camera, the first camera and the second camera being located on the same side of the terminal and having the same focal length , the method includes:
  • the third image is displayed.
  • the acquired display content of the first image is adjacent or partially overlapped with the display content of the second image.
  • the synthesizing the first image and the second image into a third image is specifically:
  • the overlapping area in the first image is overlaid on the corresponding overlapping area in the second image, and the overlapping area in the second image is deleted to form the third image.
  • the first camera and the second camera rotate in a direction of a line connecting the optical center of the first camera and the second camera, and the first camera rotates in a first direction.
  • the second camera rotates in a second direction, the first direction being the same or opposite to the second direction.
  • comparing the pixel points of the first image with the pixel points of the second image is specifically: driving the second camera light along the first camera optical center in the first image
  • the last column of pixels arranged in the direction of the heart is a reference column, and the reference column is compared with each column of pixels in the second image that is arranged along the optical axis of the first camera toward the optical axis of the second camera.
  • the determining whether the first image and the second image have overlapping regions is specifically: when the pixel points of the second image have the same column pixel points as the reference column, Having an overlapping area of the first image and the second image;
  • the overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera An area composed of pixels, the overlapping area in the second image includes the same column pixel point in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting a region of the plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera, the overlapping region in the first image includes the reference column, in the first image The number of columns of the overlap region is equal to the number of columns of the overlap region in the second image.
  • the present invention also provides an image display device applied to a terminal configured with a rotatable first camera and a rotatable second camera, the first camera and the second camera being located at the same terminal
  • the device comprises:
  • An adjusting unit configured to adjust a rotation angle of the first camera and a rotation angle of the second camera
  • An acquiring unit configured to acquire a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
  • a synthesizing unit configured to synthesize the first image and the second image into a third image
  • a display unit for displaying the third image.
  • the acquired display content of the first image is adjacent to the display content of the second image or Partial overlap.
  • the synthesizing unit includes:
  • An aligning unit configured to compare a pixel point of the first image with a pixel point of the second image
  • a determining unit configured to determine whether the first image and the second image have overlapping regions
  • the first camera and the second camera rotate in a direction of a line connecting the optical center of the first camera and the second camera, and the first camera rotates in a first direction.
  • the second camera rotates in a second direction that is the same or opposite to the second direction.
  • the aligning unit is configured to use, as a reference column, a last column of pixels in the first image that are aligned along an optical center of the first camera toward an optical center of the second camera.
  • the reference column is compared with each of the columns of pixels in the second image that are arranged along the optical center of the first camera toward the optical axis of the second camera.
  • the determining unit is configured to: when the column of pixels in the second image has the same column pixel as the reference column, the first image and the second The image has overlapping areas;
  • the overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera
  • the overlapping area in the second image includes the same column pixel points in the second image as the reference column
  • the overlapping area in the first image is: in the reference column
  • the number of columns of the overlap region is equal to the number of columns of the overlap region in the second image.
  • the terminal is provided with a rotatable first camera and a rotatable second camera.
  • the first camera and the second camera are located on the same side of the terminal and have the same focal length, by adjusting the rotation angle of the first camera and the second camera.
  • the rotation angle of the first image acquired by the first camera and the second image captured by the second camera, and then the first image and the second image are combined into a third image, and the third image is displayed, and the method is widely used.
  • Angle-angle photos can be shot without the need to manually move or rotate the mobile terminal.
  • FIG. 1 is a flow chart of an embodiment of an image display method provided by the present invention.
  • FIG. 2 is a schematic structural diagram of an embodiment of a first camera and a second camera rotating manner according to the present invention
  • FIG. 3 is a schematic structural diagram of an embodiment of a method for comparing pixel points of a first image and pixel points of a second image provided by the present invention
  • FIG. 4 is a schematic structural diagram of another embodiment of a method for comparing pixel points of a first image and pixel points of a second image provided by the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a method for a user to drag a first image according to the present invention
  • FIG. 6 is a flow chart of another embodiment of an image display method provided by the present invention.
  • FIG. 7 is a schematic structural view of an embodiment of an image display device according to the present invention.
  • FIG. 1 is a flowchart of an embodiment of an image display method provided by the present invention.
  • An image display method of the present embodiment can be applied to a terminal configured with a rotatable first camera and a rotatable second camera.
  • the first camera and the second camera are located on the same side of the terminal, and the same focal length can be applied to
  • the terminal may be a smart phone, a tablet, etc., and the method includes:
  • Step S101 adjusting a rotation angle of the first camera and a rotation angle of the second camera.
  • the first camera and the second camera with the same focal length are disposed on the terminal, wherein the first camera and the second camera are located on the same side of the terminal, and both can be rotated by the motor.
  • the terminal is selected. Entering the wide-angle shooting mode, the terminal enables the first camera and the second camera to adjust the rotation angle of the first camera and the rotation angle of the second camera.
  • the specific adjustment manner may be that the terminal recognizes the target scene according to the content of the target scene.
  • the terminal receives the input rotation angle of the first camera and the rotation angle of the second camera, according to the input rotation of the first camera
  • the terminal may also be configured with Touch screen, specifically adjust the rotation angle of the first camera and the second camera
  • the manner of rotating the angle of the head may also be: acquiring a sliding track or a click position of the input of the user's finger on the touch screen, generating a first camera rotation angle or a rotation angle of the second camera according to the sliding track or the click position, and then controlling the camera motor. Adjust the angle of the first camera and the angle of the second camera.
  • first camera and the second camera are horizontally disposed, that is, the connection between the first camera optical center and the second camera optical center is in the horizontal direction
  • first camera and the second camera may be disposed along the horizontal direction. And rotating in a vertical direction, as shown in FIG. 2, FIG.
  • FIG. 2 is a schematic structural diagram of a first camera and a second camera rotating manner according to an embodiment of the present invention; and a direction in which the first camera and the second camera rotate in a vertical direction And the angle is the same, the direction and angle of the rotation in the horizontal direction are not limited; the first camera and the second camera can also be set to rotate only in the horizontal direction, wherein the first camera rotates in the first direction, and the second camera follows the In the two directions of rotation, the first direction and the second direction may be the same or opposite; the maximum rotation angle of the first camera and the maximum rotation angle of the second camera may be set according to the angles of view of the first camera and the second camera, or Setting the maximum angle of the first camera and the second camera, so that the rotation of the first camera is adjusted And a second rotation angle of the camera, the content display content and the second display image of the first image acquisition section adjacent or overlapping.
  • Step S102 Acquire a first image acquired by the first camera and a second image acquired by the second camera.
  • the terminal enables the first camera and the second camera, adjusts the rotation angle of the first camera and the rotation angle of the second camera, and then passes the first camera.
  • the first image is acquired, and the second image is acquired by the second camera at the same time. Since the shooting angles of the first camera and the second camera are different, the first image and the second image they acquire are different.
  • Step S103 synthesize the first image and the second image into a third image.
  • Pixel refers to the basic encoding of the basic primary pigment and its gray scale, and is the basic element of the digital image.
  • the pixel is obtained by discretizing the continuous space when the analog image is digitized.
  • Each pixel has integer row (high) and column (wide) position coordinates, while each pixel has an integer gray value or chrominance value.
  • the chrominance component of the pixel in a certain area of the second image is consistent or the overlap rate reaches a preset.
  • the area of the threshold is also an overlapping area.
  • the gray component of the pixel of the first image and the gray component of the pixel of the second image may be compared to determine whether the first image and the second image have overlapping regions.
  • FIG. 3 is a schematic structural diagram of an embodiment of a method for comparing a pixel point of a first image and a pixel point of a second image according to the present invention.
  • the first image may be stored in the first layer
  • the second image may be stored in the second image.
  • a layer respectively establishing a matrix for the first image and the second image, and selecting a reference column, wherein the reference column may be a last column of pixels in the first image along the optical center of the first camera toward the optical axis of the second camera, ie Taking the column of the rightmost column of the first image in FIG. 2 as a reference column, sequentially referencing the reference column in the first image to the optical axis of the second camera along the optical axis of the first camera along the first camera. It is aligned to the columns of pixels arrayed.
  • FIG. 4 is a pixel point and a second image of the first image provided by the present invention.
  • FIG. 4 is a pixel point and a second image of the first image provided by the present invention.
  • FIG. 4 is a pixel point and a second image of the first image provided by the present invention.
  • FIG. 4 is a pixel point and a second image of the first image provided by the present invention.
  • FIG. 4 is a pixel point and a second image of the first image provided by the present invention.
  • FIG. 5 is a pixel point and a second image of the first image provided by the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of the method for the user to drag the first image according to the present invention.
  • the first image is displayed on the touch display screen of the terminal.
  • the second image the user clicks the first image with a finger, and drags the first image, so that the overlapping area in the first image substantially covers the overlapping area in the second image, visible, and after dragging, the display content of the first image and the first image
  • the display contents of the two images are substantially connected, and the comparison area in the second image is a plurality of columns of pixels arranged in a symmetry axis with column pixels covered by the reference columns in the first image, the plurality of columns of pixels including symmetry
  • N may be an odd number such as 11, 21 or 35; in Figure 4, the position shown by the dashed box is the position after dragging the first image.
  • Position it may be a pixel of the first image as a reference the rightmost column, which is aligned with the second image area (hatched in FIG. 4 Comparing the columns of pixels in the area), finding the same column pixel points in the second image as the reference columns in the first image, compared with the embodiment described in FIG. 3, in this embodiment, the fuzzy positioning is first
  • the overlapping area of the image and the second image does not need to be sequentially compared with the column pixels of the second image, the comparison area is reduced, the comparison is faster, and the comparison process of the first image and the second image requires user participation. Increase the playability of the terminal and improve the user experience.
  • the area, the shaded area in Figure 3 is the overlap area.
  • the overlapping area in the second image is an area composed of columns of pixels in the second image that are aligned with the column of pixels of the second camera along the optical axis of the second camera toward the direction of the optical axis of the first camera, wherein The overlapping area in the two images includes the same column pixel points in the second image as the reference column; the overlapping area in the first image is: starting from the optical axis of the second camera along the optical axis of the second camera with the reference column
  • An area composed of a plurality of columns of pixels, the overlapping area in the first image includes a reference column, and the number of columns of the overlapping area in the first image is equal to the number of columns of the overlapping area in the second image.
  • the overlapping region in the first image may cover the corresponding overlapping region in the second image, and the overlapping region in the second image may be deleted.
  • step S101 is performed, and no limitation is made. If the terminal sets the maximum rotation angle of the first camera and the maximum rotation angle of the second camera according to the angle of view of the first camera and the second camera, or sets the maximum angle of the first camera and the second camera, so that the first camera is adjusted.
  • the displayed content of the acquired first image is adjacent or partially overlapped with the display content of the second image, and when the first image and the second image have no overlapping area, the first image is
  • the display content is adjacent to the display content of the second image, and may be first bordered by the first column of pixel points arranged along the optical axis of the first camera along the optical axis of the first camera in the reference column and the second image in the first image.
  • the image and the second image are stitched into a third image.
  • Step S104 Display the third image.
  • the synthesized third image is displayed by the display module provided on the terminal, and after the image is displayed, the input shooting instruction can also be accepted, and the currently displayed third image is saved.
  • the first camera and the rotatable second camera are arranged on the terminal, and the first camera and the second camera are located on the same side of the terminal, have the same focal length, and adjust the rotation angle of the first camera and the first
  • the rotation angle of the two cameras acquires the first image acquired by the first camera and the second image captured by the second camera, and then combines the first image and the second image into a third image, and displays the third image by using the method Wide angle photos can be taken without the need to manually move or rotate the mobile terminal.
  • Wide angle photos can be taken without the need to manually move or rotate the mobile terminal.
  • FIG. 6 is a flowchart of another embodiment of an image display method provided by the present invention.
  • An image display method of the present embodiment can be applied to a terminal configured with a rotatable first camera and a rotatable second camera.
  • the first camera and the second camera are located on the same side of the terminal, and the same focal length can be applied to
  • the terminal may be a smart phone, a tablet, etc., and the method includes:
  • Step S601 adjusting the rotation angle of the first camera and the rotation angle of the second camera.
  • the first camera and the second camera with the same focal length are disposed on the terminal, wherein the first camera and the second camera are located on the same side of the terminal, and both can be rotated by the motor.
  • the terminal is selected. Entering the wide-angle shooting mode, the terminal enables the first camera and the second camera to adjust the rotation angle of the first camera and the rotation angle of the second camera.
  • the specific adjustment manner may be that the terminal recognizes the target scene according to the content of the target scene.
  • the terminal receives the input rotation angle of the first camera and the rotation angle of the second camera, according to the input rotation of the first camera
  • the terminal may also be configured with Touch screen, specifically adjust the rotation angle of the first camera and the second camera
  • the manner of rotating the angle of the head may also be: acquiring a sliding track or a click position of the input of the user's finger on the touch screen, generating a first camera rotation angle or a rotation angle of the second camera according to the sliding track or the click position, and then controlling the camera motor. Adjust the angle of the first camera and the angle of the second camera.
  • first camera and the second camera are disposed in the horizontal direction, that is, the connection between the first camera optical center and the second camera optical center is in the horizontal direction
  • first camera and the second camera are only arranged in the horizontal direction.
  • Rotating, wherein the first camera rotates in the first direction, the second camera rotates in the second direction, the first direction and the second direction may be the same, or vice versa, and according to the angle of view of the first camera and the second camera a maximum rotation angle of a camera and a maximum rotation angle of the second camera, or setting a maximum angle of the first camera and the second camera, so that the first angle of the rotation of the first camera and the rotation angle of the second camera are adjusted
  • the display content of the image is adjacent or partially overlapped with the display content of the second image.
  • Step S602 Acquire a first image acquired by the first camera and a second image acquired by the second camera.
  • the terminal enables the first camera and the second camera, adjusts the rotation angle of the first camera and the rotation angle of the second camera, and then passes the first camera.
  • the first image is acquired, and the second image is acquired by the second camera at the same time. Since the shooting angles of the first camera and the second camera are different, the first image and the second image they acquire are different.
  • Step S603 Comparing the pixel points of the first image with the pixel points of the second image, and determining whether the first image and the second image have overlapping regions.
  • the method for performing the comparison between the pixel point of the first image and the pixel point of the second image may refer to the method described in FIG. 3 or FIG. 4 in the foregoing embodiment to determine whether the first image and the second image have overlapping regions.
  • the method refer to the method described in step S103 of the foregoing embodiment, and details are not described herein again.
  • the overlapping region in the first image may cover the corresponding overlapping region in the second image, and the overlap in the second image may be deleted.
  • a region, forming a third image; or forming, according to each pixel value of the overlapping region in the first image and each pixel value of the overlapping region in the second image, optimizing a pixel value of the overlapping region by a synthesis algorithm to form The third image is executed in step S606.
  • Step S605 splicing the first image and the second image into a third image.
  • the display content of the first image is The display content of the second image is adjacent to each other, and the first image and the first image may be bounded by the first column of pixels in the reference column and the second image in the second image along the optical axis of the first camera toward the second camera
  • the two images are stitched into a third image, and step S606 is performed.
  • Step S606 Displaying the third image.
  • the synthesized third image is displayed by the display module provided on the terminal, and after the image is displayed, the input shooting instruction can also be accepted, and the currently displayed third image is saved.
  • the first camera and the rotatable second camera are arranged on the terminal, and the first camera and the second camera are located on the same side of the terminal, have the same focal length, and can be in the first camera light center and the first camera
  • the connecting direction of the optical center of the two cameras is rotated, and the first image captured by the first camera and the second image captured by the second camera are obtained by adjusting the rotation angle of the first camera and the rotation angle of the second camera, wherein the first image
  • the display content is adjacent to or partially overlaps with the display content of the second image, and then the pixel of the first image is compared with the pixel of the second image to determine whether the first image and the second image have overlapping regions.
  • the limitation of the first camera rotation angle and the second camera rotation angle ensures that the display content of the first image and the display content of the second image have overlapping regions, thereby avoiding the third image synthesis failure.
  • FIG. 7 is a schematic structural diagram of an embodiment of an image display device according to the present invention.
  • An image display device of the present embodiment can be applied to a terminal configured with a rotatable first camera and a rotatable second camera.
  • the first camera and the second camera are located on the same side of the terminal, and the same focal length can be applied to
  • the terminal may be a smart phone, a tablet computer, or the like.
  • the image display device 70 includes: an adjustment unit 701, an acquisition unit 702, a synthesizing unit 703, and a display unit 704, where
  • the adjusting unit 701 is configured to adjust a rotation angle of the first camera and a rotation angle of the second camera;
  • the acquiring unit 702 is configured to acquire a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
  • a synthesizing unit 703 configured to synthesize the first image and the second image into a third image
  • the display unit 704 is configured to display the third image.
  • the acquired display content of the first image is adjacent to the display content of the second image. Or partially overlapping.
  • the synthesizing unit 703 includes:
  • the matching unit 7031 is configured to compare the pixel points of the first image with the pixel points of the second image;
  • the determining unit 7032 is configured to determine whether the first image and the second image have overlapping regions
  • the first camera and the second camera rotate in a direction of a line connecting the optical center of the first camera and the second camera, and the first camera rotates in a first direction.
  • the second camera rotates in a second direction that is the same or opposite to the second direction.
  • the comparison unit 7031 is configured to use, as a reference column, a last column of pixels in the first image that are aligned along an optical center of the first camera toward an optical center of the second camera.
  • the reference column is compared with each column of pixels in the second image that is arranged along the optical center of the first camera toward the optical axis of the second camera.
  • the determining unit 7032 is specifically configured to: when the column of the columns of the second image has the same column pixel as the reference column, the first image and the first The two images have overlapping regions;
  • the overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera
  • An area composed of pixels, the overlapping area in the second image includes the same column pixel point in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting an area composed of a plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera,
  • the overlapping area in the first image includes the reference column, and the number of columns of the overlapping area in the first image is equal to the number of columns of the overlapping area in the second image.
  • the present invention has a first camera and a second camera that are rotatable on the terminal, and the first camera and the second camera are located on the same side of the terminal, and have the same focal length, by adjusting the first camera.
  • the rotation angle and the rotation angle of the second camera acquire the first image acquired by the first camera and the second image captured by the second camera, and then combine the first image and the second image into a third image, and display the third image.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

Disclosed in the present invention are an image displaying method and device, being applied to a terminal configured with a rotatable first camera and a rotatable second camera. The first camera and the second camera are positioned on a same side of the terminal and have a same focal length, wherein the method comprises: adjusting rotation angles of the first camera and the second camera; acquiring a first image captured by the first camera and a second image captured by the second camera, the first image being different from the second image; combining the first image and the second image to form a third image; and displaying the third image. The method so disclosed enables the capturing of a wide-angle image, eliminating the need to manually move or rotatably move the terminal when taking a wide-angle photograph.

Description

一种图像显示方法以及装置Image display method and device
本申请要求于2015年12月31日提交中国专利局,申请号为201511030235.6、发明名称为“一种图像显示方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201511030235.6, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本发明涉及图像显示领域,特别涉及一种图像显示方法以及装置。The present invention relates to the field of image display, and in particular to an image display method and apparatus.
背景技术Background technique
许多智能设备,如智能手机都具有摄像功能,但是它们摄像头的拍摄视角有限,在拍照时不能实现广角度拍摄,获得全景图片。当用户需要拍摄广角度照片时,需要移动或旋转手机,进行多次拍照,再将拍摄的照片合成为广角度照片,然而手动移动或旋转手机,多次拍摄的照片不是同时拍摄的,当场景中有运动物体时,可能会导致拍摄的多个照片合成的广角度照片模糊,降低用户体验。Many smart devices, such as smart phones, have camera functions, but their cameras have limited shooting angles, and they can't achieve wide-angle shooting when taking photos, and get panoramic images. When the user needs to take a wide-angle photo, he needs to move or rotate the mobile phone, take multiple photos, and then combine the captured photos into a wide-angle photo. However, manually move or rotate the mobile phone, the photos taken multiple times are not taken at the same time. When there are moving objects in the middle, it may cause blurry wide-angle photos of multiple photos taken to reduce the user experience.
发明内容Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种图像显示方法以及装置,在移动终端上配置可以旋转的双摄像头,在拍摄广角度照片时不需要手动移动或旋转移动终端,就可以实现广角度照片的拍摄,避免多个非同时拍摄的照片合成图像时造成的图像模糊。The technical problem to be solved by the embodiments of the present invention is to provide an image display method and apparatus, and a dual camera that can be rotated is arranged on the mobile terminal, and the mobile terminal can be widely moved without rotating or rotating the mobile terminal when shooting a wide-angle photo. Angle photo shooting avoids blurring of images caused by multiple non-simultaneously taken photo composite images.
本发明提供了一种图像显示方法,应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,所述第一摄像头和所述第二摄像头位于终端同一侧面,具有相同的焦距,所述方法包括:The present invention provides an image display method for a terminal configured with a rotatable first camera and a rotatable second camera, the first camera and the second camera being located on the same side of the terminal and having the same focal length , the method includes:
调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度;Adjusting a rotation angle of the first camera and a rotation angle of the second camera;
获取所述第一摄像头采集的第一图像和所述第二摄像头采集的第二图像;所述第一图像不同于所述第二图像; Obtaining a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
将所述第一图像和所述第二图像合成第三图像;Combining the first image and the second image into a third image;
显示所述第三图像。The third image is displayed.
可选地,调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度后,获取的所述第一图像的显示内容与所述第二图像的显示内容相邻或部分重叠。Optionally, after adjusting the rotation angle of the first camera and the rotation angle of the second camera, the acquired display content of the first image is adjacent or partially overlapped with the display content of the second image.
可选地,其特征在于,所述将所述第一图像和所述第二图像合成第三图像具体为:Optionally, the synthesizing the first image and the second image into a third image is specifically:
将所述第一图像的像素点和所述第二图像的像素点进行比对,判断所述第一图像与所述第二图像是否有重叠区域;Comparing the pixel point of the first image with the pixel point of the second image, and determining whether the first image and the second image have overlapping regions;
当判断结果为是时,将所述第一图像中的重叠区域覆盖所述第二图像中对应的重叠区域,并删除所述第二图像中的重叠区域,形成所述第三图像。When the determination result is YES, the overlapping area in the first image is overlaid on the corresponding overlapping area in the second image, and the overlapping area in the second image is deleted to form the third image.
可选地,,所述第一摄像头和所述第二摄像头在所述第一摄像头的光心与所述第二摄像头光心的连线的方向旋转,所述第一摄像头沿第一方向旋转,所述第二摄像头沿第二方向旋转,所述第一方向与所述第二方向相同或相反。Optionally, the first camera and the second camera rotate in a direction of a line connecting the optical center of the first camera and the second camera, and the first camera rotates in a first direction. The second camera rotates in a second direction, the first direction being the same or opposite to the second direction.
可选地,将所述第一图像的像素点和所述第二图像的像素点进行比对具体为:以所述第一图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的最后一列像素点为参照列,将所述参照列与所述第二图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的各列像素点进行比对。Optionally, comparing the pixel points of the first image with the pixel points of the second image is specifically: driving the second camera light along the first camera optical center in the first image The last column of pixels arranged in the direction of the heart is a reference column, and the reference column is compared with each column of pixels in the second image that is arranged along the optical axis of the first camera toward the optical axis of the second camera. .
可选地,所述判断所述第一图像与所述第二图像是否有重叠区域具体为:当所述第二图像的像素点中具有与所述参照列相同的列像素点时,则所述第一图像与所述第二图像的具有重叠区域;Optionally, the determining whether the first image and the second image have overlapping regions is specifically: when the pixel points of the second image have the same column pixel points as the reference column, Having an overlapping area of the first image and the second image;
所述第二图像中的重叠区域为:以所述第二图像中与所述参照列相同的列像素点开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的各列像素点所组成的区域,所述第二图像中的重叠区域包括所述第二图像中与所述参照列相同的列像素点;所述第一图像中的重叠区域为:以所述参照列开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的多列像素点组成的区域,所述第一图像中的重叠区域包括所述参照列,所述第一图像中的重叠区域的列数等于所述第二图像中的重叠区域的列数。The overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera An area composed of pixels, the overlapping area in the second image includes the same column pixel point in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting a region of the plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera, the overlapping region in the first image includes the reference column, in the first image The number of columns of the overlap region is equal to the number of columns of the overlap region in the second image.
本发明还提供了一种图像显示装置,应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,所述第一摄像头和所述第二摄像头位于终端同一 侧面,具有相同的焦距,所述装置包括:The present invention also provides an image display device applied to a terminal configured with a rotatable first camera and a rotatable second camera, the first camera and the second camera being located at the same terminal The sides, having the same focal length, the device comprises:
调节单元,用于调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度;An adjusting unit, configured to adjust a rotation angle of the first camera and a rotation angle of the second camera;
获取单元,用于获取所述第一摄像头采集的第一图像和所述第二摄像头采集的第二图像;所述第一图像不同于所述第二图像;An acquiring unit, configured to acquire a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
合成单元,用于将所述第一图像和所述第二图像合成第三图像;a synthesizing unit, configured to synthesize the first image and the second image into a third image;
显示单元,用于显示所述第三图像。a display unit for displaying the third image.
可选地,所述调节单元调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度后,获取的所述第一图像的显示内容与所述第二图像的显示内容相邻或部分重叠。Optionally, after the adjusting unit adjusts a rotation angle of the first camera and a rotation angle of the second camera, the acquired display content of the first image is adjacent to the display content of the second image or Partial overlap.
可选地,所述合成单元包括:Optionally, the synthesizing unit includes:
比对单元,用于将所述第一图像的像素点和所述第二图像的像素点进行比对;An aligning unit, configured to compare a pixel point of the first image with a pixel point of the second image;
判断单元,用于判断所述第一图像与所述第二图像是否有重叠区域;a determining unit, configured to determine whether the first image and the second image have overlapping regions;
覆盖删除单元,当所述判断单元的判断结果为是时,将所述第一图像中的重叠区域覆盖所述第二图像中对应的重叠区域,并删除所述第二图像中的重叠区域,形成所述第三图像。Overwriting the deletion unit, when the determination result of the determination unit is YES, overlaying the overlapping area in the first image with the corresponding overlapping area in the second image, and deleting the overlapping area in the second image, The third image is formed.
可选地,所述第一摄像头和所述第二摄像头在所述第一摄像头的光心与所述第二摄像头光心的连线的方向旋转,所述第一摄像头沿第一方向旋转,所述第二摄像头沿第二方向旋转,所述第一方向与所述第二方向相同或相反。Optionally, the first camera and the second camera rotate in a direction of a line connecting the optical center of the first camera and the second camera, and the first camera rotates in a first direction. The second camera rotates in a second direction that is the same or opposite to the second direction.
可选地,所述比对单元具体用于,以所述第一图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的最后一列像素点为参照列,将所述参照列与所述第二图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的各列像素点进行比对。Optionally, the aligning unit is configured to use, as a reference column, a last column of pixels in the first image that are aligned along an optical center of the first camera toward an optical center of the second camera. The reference column is compared with each of the columns of pixels in the second image that are arranged along the optical center of the first camera toward the optical axis of the second camera.
可选地,所述判断单元具体用于,当所述第二图像的所述各列像素点中具有与所述参照列相同的列像素点时,则所述第一图像与所述第二图像的具有重叠区域;Optionally, the determining unit is configured to: when the column of pixels in the second image has the same column pixel as the reference column, the first image and the second The image has overlapping areas;
所述第二图像中的重叠区域为:以所述第二图像中与所述参照列相同的列像素点开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的各列像 素点所组成的区域,所述第二图像中的重叠区域包括所述第二图像中与所述参照列相同的列像素点;所述第一图像中的重叠区域为:以所述参照列开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的多列像素点组成的区域,所述第一图像中的重叠区域包括所述参照列,所述第一图像中的重叠区域的列数等于所述第二图像中的重叠区域的列数。The overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera Like An area composed of prime points, the overlapping area in the second image includes the same column pixel points in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting a region of the plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera, the overlapping region in the first image includes the reference column, in the first image The number of columns of the overlap region is equal to the number of columns of the overlap region in the second image.
上述发明,终端上配置有可旋转的第一摄像头和可旋转的第二摄像头,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距,通过调节第一摄像头的旋转角度和第二摄像头的旋转角度,获取第一摄像头采集的第一图像和第二摄像头采集的第二图像,再将第一图像和第二图像合成第三图像,并显示该第三图像,通过该方法在拍摄广角度照片时不需要手动移动或旋转移动终端,就可以实现广角度照片的拍摄。而且,使用两个摄像头同时拍摄,可以避免多个非同时拍摄的照片合成图像时造成的图像模糊。In the above invention, the terminal is provided with a rotatable first camera and a rotatable second camera. The first camera and the second camera are located on the same side of the terminal and have the same focal length, by adjusting the rotation angle of the first camera and the second camera. The rotation angle of the first image acquired by the first camera and the second image captured by the second camera, and then the first image and the second image are combined into a third image, and the third image is displayed, and the method is widely used. Angle-angle photos can be shot without the need to manually move or rotate the mobile terminal. Moreover, by using two cameras to shoot at the same time, it is possible to avoid image blur caused when a plurality of photographs that are not simultaneously photographed are combined.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明提供的一种图像显示方法一实施方式的流程图;1 is a flow chart of an embodiment of an image display method provided by the present invention;
图2为本发明提供的第一摄像头和第二摄像头旋转方式一实施方式的结构示意图;2 is a schematic structural diagram of an embodiment of a first camera and a second camera rotating manner according to the present invention;
图3是本发明提供的第一图像的像素点和第二图像的像素点进行比对的方法一实施方式结构示意图;3 is a schematic structural diagram of an embodiment of a method for comparing pixel points of a first image and pixel points of a second image provided by the present invention;
图4是本发明提供的第一图像的像素点和第二图像的像素点进行比对的方法另一实施方式结构示意图;4 is a schematic structural diagram of another embodiment of a method for comparing pixel points of a first image and pixel points of a second image provided by the present invention;
图5是本发明提供的用户拖动第一图像方式一实施方式的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of a method for a user to drag a first image according to the present invention; FIG.
图6是本发明提供的一种图像显示方法另一实施方式的流程图;6 is a flow chart of another embodiment of an image display method provided by the present invention;
图7是本发明提供的一种图像显示装置的一实施方式的结构示意图。 FIG. 7 is a schematic structural view of an embodiment of an image display device according to the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It is to be understood that the terminology used in the embodiments of the present invention is for the purpose of describing the particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
请参阅图1,图1是本发明提供的一种图像显示方法一实施方式的流程图。本实施方式的一种图像显示方法,可以应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距可以应用在终端上,该终端可以是智能手机、平板电脑等等,该方法包括:Please refer to FIG. 1. FIG. 1 is a flowchart of an embodiment of an image display method provided by the present invention. An image display method of the present embodiment can be applied to a terminal configured with a rotatable first camera and a rotatable second camera. The first camera and the second camera are located on the same side of the terminal, and the same focal length can be applied to On the terminal, the terminal may be a smart phone, a tablet, etc., and the method includes:
步骤S101:调节第一摄像头的旋转角度和第二摄像头的旋转角度。Step S101: adjusting a rotation angle of the first camera and a rotation angle of the second camera.
具体地,终端上配置有同焦距的第一摄像头和第二摄像头,其中第一摄像头和第二摄像头位于终端同一侧面,且都可以通过马达旋转,一般地,当终端的摄像功能打开后,选择进入广角度拍摄模式,此时终端启用第一摄像头和第二摄像头,调节第一摄像头的旋转角度和第二摄像头的旋转角度,具体调节的方式可以是,终端识别目标场景,根据目标场景的内容智能调节第一摄像头和/或第二摄像头的角度到最佳旋转角度;也可以是,终端接收输入的第一摄像头的旋转角度和第二摄像头的旋转角度,根据该输入的第一摄像头的旋转角度和第二摄像头的旋转角度,并根据该输入的第一摄像头的旋转角度和第二摄像头的旋转角度,控制摄像头的马达调节第一摄像头的角度和第二摄像头的角度;终端也可以配置有触摸屏,具体调节第一摄像头旋转角度和第二摄像头旋转角度的方式也可以是,获取用户手指在触摸屏上的输入的滑动轨迹或点击位置,根据滑动轨迹或点击位置生成第一摄像头旋转角度或第二摄像头的旋转角度,再控制摄像头的马达调节第一摄像头的角度和第二摄像头的角度。 Specifically, the first camera and the second camera with the same focal length are disposed on the terminal, wherein the first camera and the second camera are located on the same side of the terminal, and both can be rotated by the motor. Generally, when the camera function of the terminal is turned on, the terminal is selected. Entering the wide-angle shooting mode, the terminal enables the first camera and the second camera to adjust the rotation angle of the first camera and the rotation angle of the second camera. The specific adjustment manner may be that the terminal recognizes the target scene according to the content of the target scene. Intelligently adjusting the angle of the first camera and/or the second camera to an optimal rotation angle; or, the terminal receives the input rotation angle of the first camera and the rotation angle of the second camera, according to the input rotation of the first camera The angle and the rotation angle of the second camera, and according to the input rotation angle of the first camera and the rotation angle of the second camera, the motor of the camera is controlled to adjust the angle of the first camera and the angle of the second camera; the terminal may also be configured with Touch screen, specifically adjust the rotation angle of the first camera and the second camera The manner of rotating the angle of the head may also be: acquiring a sliding track or a click position of the input of the user's finger on the touch screen, generating a first camera rotation angle or a rotation angle of the second camera according to the sliding track or the click position, and then controlling the camera motor. Adjust the angle of the first camera and the angle of the second camera.
需要说明的是,假设第一摄像头和第二摄像头水平方向设置,即第一摄像头光心和第二摄像头光心的连线沿水平方向,可以设置第一摄像头和第二摄像头可以沿着水平方向和垂直方向转动,如图2所示,图2为本发明提供的第一摄像头和第二摄像头旋转方式一实施方式的结构示意图;还可以设置第一摄像头与第二摄像头在垂直方向转动的方向及角度相同,其在水平方向转动的方向及角度不作限制;也可以设置第一摄像头和第二摄像头仅可以沿水平方向左右转动,其中,第一摄像头沿第一方向旋转,第二摄像头沿第二方向旋转,第一方向与第二方向可以相同,也可以相反;还可以根据第一摄像头和第二摄像头的视角设定第一摄像头的最大旋转角度和第二摄像头的最大旋转角度,或者设定第一摄像头与第二摄像头的最大角度,使得调节第一摄像头的旋转角度和第二摄像头的旋转角度后,获取的第一图像的显示内容与第二图像的显示内容相邻或部分重叠。It should be noted that, assuming that the first camera and the second camera are horizontally disposed, that is, the connection between the first camera optical center and the second camera optical center is in the horizontal direction, the first camera and the second camera may be disposed along the horizontal direction. And rotating in a vertical direction, as shown in FIG. 2, FIG. 2 is a schematic structural diagram of a first camera and a second camera rotating manner according to an embodiment of the present invention; and a direction in which the first camera and the second camera rotate in a vertical direction And the angle is the same, the direction and angle of the rotation in the horizontal direction are not limited; the first camera and the second camera can also be set to rotate only in the horizontal direction, wherein the first camera rotates in the first direction, and the second camera follows the In the two directions of rotation, the first direction and the second direction may be the same or opposite; the maximum rotation angle of the first camera and the maximum rotation angle of the second camera may be set according to the angles of view of the first camera and the second camera, or Setting the maximum angle of the first camera and the second camera, so that the rotation of the first camera is adjusted And a second rotation angle of the camera, the content display content and the second display image of the first image acquisition section adjacent or overlapping.
步骤S102:获取第一摄像头采集的第一图像和第二摄像头采集的第二图像。Step S102: Acquire a first image acquired by the first camera and a second image acquired by the second camera.
具体地,当终端的摄像功能打开后,选择进入广角度拍摄模式,此时终端启用第一摄像头和第二摄像头,调节第一摄像头的旋转角度和第二摄像头的旋转角度后,通过第一摄像头采集第一图像,以及在同一时刻通过第二摄像头采集第二图像,由于第一摄像头和第二摄像头的拍摄角度不同,因而它们采集的第一图像和第二图像不相同。Specifically, when the camera function of the terminal is turned on, the user selects to enter the wide-angle shooting mode. At this time, the terminal enables the first camera and the second camera, adjusts the rotation angle of the first camera and the rotation angle of the second camera, and then passes the first camera. The first image is acquired, and the second image is acquired by the second camera at the same time. Since the shooting angles of the first camera and the second camera are different, the first image and the second image they acquire are different.
步骤S103:将第一图像和第二图像合成第三图像。Step S103: synthesize the first image and the second image into a third image.
像素是指基本原色素及其灰度的基本编码,是数字图像的基本元素,像素是在模拟图像数字化时对连续空间进行离散化得到的。每个像素具有整数行(高)和列(宽)位置坐标,同时每个像素都具有整数灰度值或色度值。Pixel refers to the basic encoding of the basic primary pigment and its gray scale, and is the basic element of the digital image. The pixel is obtained by discretizing the continuous space when the analog image is digitized. Each pixel has integer row (high) and column (wide) position coordinates, while each pixel has an integer gray value or chrominance value.
首先,可以通过将第一图像的像素点和第二图像的像素点进行比对,判断第一图像与第二图像是否有重叠区域,具体地,可以将第一图像的像素点的色度分量和第二图像的像素点的色度分量进行比对,判断第一图像与第二图像是否有重叠区域,当第一图像某一区域中的像素点的色度分量和第二图像某一区域中对应的像素点的色度分量一致时,或者重叠率达到预设阈值时,则判断第一图像与第二图像具有重叠区域,该重叠区域为第一图像中与第二图像某一区 域中对应的像素点的色度分量一致或者重叠率达到预设阈值的区域,同理,第二图像中与第一图像某一区域中的像素点的色度分量一致或者重叠率达到预设阈值的区域也为重叠区域。同理,也可以将第一图像的像素点的灰度分量和第二图像的像素点的灰度分量进行比对,以判断第一图像与第二图像是否有重叠区域。First, by comparing the pixel point of the first image with the pixel point of the second image, it is determined whether the first image and the second image have overlapping regions. Specifically, the chrominance component of the pixel of the first image may be Comparing with the chrominance components of the pixels of the second image, determining whether the first image and the second image have overlapping regions, when the chrominance component of the pixel in a certain region of the first image and a certain region of the second image When the chrominance components of the corresponding pixel points are consistent, or when the overlap ratio reaches a preset threshold, determining that the first image and the second image have overlapping regions, the overlapping region being a certain region in the first image and the second image The chrominance component of the corresponding pixel in the domain is consistent or the overlap rate reaches a preset threshold. Similarly, the chrominance component of the pixel in a certain area of the second image is consistent or the overlap rate reaches a preset. The area of the threshold is also an overlapping area. Similarly, the gray component of the pixel of the first image and the gray component of the pixel of the second image may be compared to determine whether the first image and the second image have overlapping regions.
假设第一摄像头和第二摄像头水平方向设置,即第一摄像头光心和第二摄像头光心的连线沿水平方向,当第一摄像头和第二摄像头可以沿着水平方向和垂直方向转动,且设置第一摄像头与第二摄像头在垂直方向转动的方向及角度相同时,第一图像的像素点的色度分量和第二图像的像素点的色度分量进行比对的方法可参照图3,图3是本发明提供的第一图像的像素点和第二图像的像素点进行比对的方法一实施方式结构示意图,可以将第一图像储存于第一图层,第二图像储存于第二图层,分别对第一图像和第二图像建立矩阵,选定参照列,该参照列可以是第一图像中沿第一摄像头光心向第二摄像头光心方向排列的最后一列像素点,即以图2中第一图像最右边的一列像素点为参照列,将第一图像中参照列依次与第二图像中沿第一摄像头光心向第二摄像头光心方向排列的各列像素点进行比对。第一图像的像素点的色度分量和第二图像的像素点的色度分量进行比对的方法也可以参照图4,图4是本发明提供的第一图像的像素点和第二图像的像素点进行比对的方法另一实施方式结构示意图。具体地,可以在显示单元显示第一图像和第二图像,用户可以观测出第一图像的显示内容和第二图像的显示内容上大致重叠的区域,此时终端接收输入的图像移动指令,根据该移动指令移动其指定的图像,具体的实施方式可以参见图5,图5是本发明提供的用户拖动第一图像方式一实施方式的结构示意图,终端的触控显示屏上显示第一图像和第二图像,用户用手指点击第一图像,并拖动第一图像,使得第一图像中重叠区域大致覆盖第二图像中重叠区域,可见,拖动后,第一图像的显示内容与第二图像的显示内容大致相连接,第二图像中的比对区域为以被第一图像中参照列覆盖的列像素点为对称轴连续排列的多列像素点,该多列像素点为包括对称轴在内的连续的N列像素点,N可以是11、21或35等奇数;在图4中,虚线框所示的位置,即为拖动第一图像后的位置,可以以第一图像最右边的一列像素点为参照列,将其与第二图像比对区域(图4阴影 区域)中的各列像素点进行比对,找到第二图像中与第一图像中参照列相同的列像素点,与图3所述的实施例相比,该实施例中,模糊定位第一图像和第二图像的重叠区域,不需要与第二图像的列像素点依次比对,缩小了比对区域,比对更加快捷,且第一图像与第二图像的比对过程需要用户参与,增加可终端的可玩性,提高用户体验。Assuming that the first camera and the second camera are arranged horizontally, that is, the connection between the first camera optical center and the second camera optical center is in the horizontal direction, when the first camera and the second camera are rotatable in the horizontal direction and the vertical direction, and When the direction and the angle of the first camera and the second camera rotating in the vertical direction are the same, the method of comparing the chrominance component of the pixel of the first image with the chrominance component of the pixel of the second image may be referred to FIG. 3 . 3 is a schematic structural diagram of an embodiment of a method for comparing a pixel point of a first image and a pixel point of a second image according to the present invention. The first image may be stored in the first layer, and the second image may be stored in the second image. a layer, respectively establishing a matrix for the first image and the second image, and selecting a reference column, wherein the reference column may be a last column of pixels in the first image along the optical center of the first camera toward the optical axis of the second camera, ie Taking the column of the rightmost column of the first image in FIG. 2 as a reference column, sequentially referencing the reference column in the first image to the optical axis of the second camera along the optical axis of the first camera along the first camera. It is aligned to the columns of pixels arrayed. For the method of comparing the chrominance component of the pixel of the first image with the chrominance component of the pixel of the second image, reference may also be made to FIG. 4 , which is a pixel point and a second image of the first image provided by the present invention. A schematic diagram of another embodiment of a method in which pixels are aligned. Specifically, the first image and the second image may be displayed on the display unit, and the user may observe an area in which the display content of the first image and the display content of the second image substantially overlap, and the terminal receives the input image movement instruction according to the The mobile command moves the specified image. For a specific implementation, refer to FIG. 5. FIG. 5 is a schematic structural diagram of an embodiment of the method for the user to drag the first image according to the present invention. The first image is displayed on the touch display screen of the terminal. And the second image, the user clicks the first image with a finger, and drags the first image, so that the overlapping area in the first image substantially covers the overlapping area in the second image, visible, and after dragging, the display content of the first image and the first image The display contents of the two images are substantially connected, and the comparison area in the second image is a plurality of columns of pixels arranged in a symmetry axis with column pixels covered by the reference columns in the first image, the plurality of columns of pixels including symmetry For consecutive N columns of pixels including the axis, N may be an odd number such as 11, 21 or 35; in Figure 4, the position shown by the dashed box is the position after dragging the first image. Position, it may be a pixel of the first image as a reference the rightmost column, which is aligned with the second image area (hatched in FIG. 4 Comparing the columns of pixels in the area), finding the same column pixel points in the second image as the reference columns in the first image, compared with the embodiment described in FIG. 3, in this embodiment, the fuzzy positioning is first The overlapping area of the image and the second image does not need to be sequentially compared with the column pixels of the second image, the comparison area is reduced, the comparison is faster, and the comparison process of the first image and the second image requires user participation. Increase the playability of the terminal and improve the user experience.
当第二图像中的各列像素点或第二图像比对区域中的各列像素点中具有与第一图像中参照列相一致的列像素点时,则第一图像和第二图像具有重叠区域,图3中的阴影区域即为重叠区域。第二图像中的重叠区域为:以第二图像中与参照列相同的列像素点开始沿第二摄像头光心向第一摄像头光心方向排列的各列像素点所组成的区域,其中,第二图像中的重叠区域包括所述第二图像中与参照列相同的列像素点;第一图像中的重叠区域为:以参照列开始沿第二摄像头光心向第一摄像头光心方向排列的多列像素点组成的区域,第一图像中的重叠区域包括参照列,第一图像中的重叠区域的列数等于第二图像中的重叠区域的列数。When the column of pixels in the second image or the columns of pixels in the second image comparison region have column pixels corresponding to the reference columns in the first image, the first image and the second image have overlap The area, the shaded area in Figure 3, is the overlap area. The overlapping area in the second image is an area composed of columns of pixels in the second image that are aligned with the column of pixels of the second camera along the optical axis of the second camera toward the direction of the optical axis of the first camera, wherein The overlapping area in the two images includes the same column pixel points in the second image as the reference column; the overlapping area in the first image is: starting from the optical axis of the second camera along the optical axis of the second camera with the reference column An area composed of a plurality of columns of pixels, the overlapping area in the first image includes a reference column, and the number of columns of the overlapping area in the first image is equal to the number of columns of the overlapping area in the second image.
其次,当第一图像和第二图像的显示内容具有相同的部分,即重叠区域,可以将第一图像中的重叠区域覆盖第二图像中对应的重叠区域,可以删除第二图像中的重叠区域,形成第三图像;也可以根据第一图像中的重叠区域的各个像素点值和第二图像中的重叠区域的各个像素点值,通过合成算法,优化重叠区域的各个像素点值,形成第三图像。Secondly, when the display content of the first image and the second image have the same portion, that is, the overlapping region, the overlapping region in the first image may cover the corresponding overlapping region in the second image, and the overlapping region in the second image may be deleted. Forming a third image; or, according to each pixel point value of the overlapping area in the first image and each pixel point value of the overlapping area in the second image, optimizing a pixel value of the overlapping area by using a synthesis algorithm to form a first Three images.
当第一图像与第二图像无重叠区域时,可以提示用户第一图像与第二图像不相连,或执行步骤S101,不发明不做限制。如果终端根据第一摄像头和第二摄像头的视角设定第一摄像头的最大旋转角度和第二摄像头的最大旋转角度,或者设定第一摄像头与第二摄像头的最大角度,使得调节第一摄像头的旋转角度和第二摄像头的旋转角度后,获取的第一图像的显示内容与第二图像的显示内容相邻或部分重叠,当第一图像与第二图像无重叠区域时,则第一图像的显示内容与第二图像的显示内容相邻,可以以第一图像中参照列和第二图像中沿第一摄像头光心向第二摄像头光心方向排列的首列像素点为边界,将第一图像和第二图像拼接成第三图像。When the first image and the second image have no overlapping area, the user may be prompted to disconnect the first image from the second image, or step S101 is performed, and no limitation is made. If the terminal sets the maximum rotation angle of the first camera and the maximum rotation angle of the second camera according to the angle of view of the first camera and the second camera, or sets the maximum angle of the first camera and the second camera, so that the first camera is adjusted. After the rotation angle and the rotation angle of the second camera, the displayed content of the acquired first image is adjacent or partially overlapped with the display content of the second image, and when the first image and the second image have no overlapping area, the first image is The display content is adjacent to the display content of the second image, and may be first bordered by the first column of pixel points arranged along the optical axis of the first camera along the optical axis of the first camera in the reference column and the second image in the first image. The image and the second image are stitched into a third image.
步骤S104:显示第三图像。 Step S104: Display the third image.
具体地,通过终端上设置的显示模块显示合成后的第三图像,显示图像之后,还可以接受输入的拍摄指令,保存当前显示的第三图像。Specifically, the synthesized third image is displayed by the display module provided on the terminal, and after the image is displayed, the input shooting instruction can also be accepted, and the currently displayed third image is saved.
在本实施例中,终端上配置可旋转的第一摄像头和可旋转的第二摄像头,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距,通过调节第一摄像头的旋转角度和第二摄像头的旋转角度,获取第一摄像头采集的第一图像和第二摄像头采集的第二图像,再将第一图像和第二图像合成第三图像,并显示该第三图像,通过该方法在拍摄广角度照片时不需要手动移动或旋转移动终端,就可以实现广角度照片的拍摄。而且,使用两个摄像头同时拍摄,可以避免多个非同时拍摄的照片合成图像时造成的图像模糊。In this embodiment, the first camera and the rotatable second camera are arranged on the terminal, and the first camera and the second camera are located on the same side of the terminal, have the same focal length, and adjust the rotation angle of the first camera and the first The rotation angle of the two cameras acquires the first image acquired by the first camera and the second image captured by the second camera, and then combines the first image and the second image into a third image, and displays the third image by using the method Wide angle photos can be taken without the need to manually move or rotate the mobile terminal. Moreover, by using two cameras to shoot at the same time, it is possible to avoid image blur caused when a plurality of photographs that are not simultaneously photographed are combined.
请参见图6,图6是本发明提供的一种图像显示方法另一实施方式的流程图。本实施方式的一种图像显示方法,可以应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距可以应用在终端上,该终端可以是智能手机、平板电脑等等,该方法包括:Please refer to FIG. 6. FIG. 6 is a flowchart of another embodiment of an image display method provided by the present invention. An image display method of the present embodiment can be applied to a terminal configured with a rotatable first camera and a rotatable second camera. The first camera and the second camera are located on the same side of the terminal, and the same focal length can be applied to On the terminal, the terminal may be a smart phone, a tablet, etc., and the method includes:
步骤S601:调节第一摄像头的旋转角度和第二摄像头的旋转角度。Step S601: adjusting the rotation angle of the first camera and the rotation angle of the second camera.
具体地,终端上配置有同焦距的第一摄像头和第二摄像头,其中第一摄像头和第二摄像头位于终端同一侧面,且都可以通过马达旋转,一般地,当终端的摄像功能打开后,选择进入广角度拍摄模式,此时终端启用第一摄像头和第二摄像头,调节第一摄像头的旋转角度和第二摄像头的旋转角度,具体调节的方式可以是,终端识别目标场景,根据目标场景的内容智能调节第一摄像头和/或第二摄像头的角度到最佳旋转角度;也可以是,终端接收输入的第一摄像头的旋转角度和第二摄像头的旋转角度,根据该输入的第一摄像头的旋转角度和第二摄像头的旋转角度,并根据该输入的第一摄像头的旋转角度和第二摄像头的旋转角度,控制摄像头的马达调节第一摄像头的角度和第二摄像头的角度;终端也可以配置有触摸屏,具体调节第一摄像头旋转角度和第二摄像头旋转角度的方式也可以是,获取用户手指在触摸屏上的输入的滑动轨迹或点击位置,根据滑动轨迹或点击位置生成第一摄像头旋转角度或第二摄像头的旋转角度,再控制摄像头的马达调节第一摄像头的角度和第二摄像头的角度。 Specifically, the first camera and the second camera with the same focal length are disposed on the terminal, wherein the first camera and the second camera are located on the same side of the terminal, and both can be rotated by the motor. Generally, when the camera function of the terminal is turned on, the terminal is selected. Entering the wide-angle shooting mode, the terminal enables the first camera and the second camera to adjust the rotation angle of the first camera and the rotation angle of the second camera. The specific adjustment manner may be that the terminal recognizes the target scene according to the content of the target scene. Intelligently adjusting the angle of the first camera and/or the second camera to an optimal rotation angle; or, the terminal receives the input rotation angle of the first camera and the rotation angle of the second camera, according to the input rotation of the first camera The angle and the rotation angle of the second camera, and according to the input rotation angle of the first camera and the rotation angle of the second camera, the motor of the camera is controlled to adjust the angle of the first camera and the angle of the second camera; the terminal may also be configured with Touch screen, specifically adjust the rotation angle of the first camera and the second camera The manner of rotating the angle of the head may also be: acquiring a sliding track or a click position of the input of the user's finger on the touch screen, generating a first camera rotation angle or a rotation angle of the second camera according to the sliding track or the click position, and then controlling the camera motor. Adjust the angle of the first camera and the angle of the second camera.
需要说明的是,假设第一摄像头和第二摄像头水平方向设置,即第一摄像头光心和第二摄像头光心的连线沿水平方向,设置第一摄像头和第二摄像头仅可以沿水平方向左右转动,其中,第一摄像头沿第一方向旋转,第二摄像头沿第二方向旋转,第一方向与第二方向可以相同,也可以相反,且根据第一摄像头和第二摄像头的视角设定第一摄像头的最大旋转角度和第二摄像头的最大旋转角度,或者设定第一摄像头与第二摄像头的最大角度,使得调节第一摄像头的旋转角度和第二摄像头的旋转角度后,获取的第一图像的显示内容与第二图像的显示内容相邻或部分重叠。It should be noted that, assuming that the first camera and the second camera are disposed in the horizontal direction, that is, the connection between the first camera optical center and the second camera optical center is in the horizontal direction, the first camera and the second camera are only arranged in the horizontal direction. Rotating, wherein the first camera rotates in the first direction, the second camera rotates in the second direction, the first direction and the second direction may be the same, or vice versa, and according to the angle of view of the first camera and the second camera a maximum rotation angle of a camera and a maximum rotation angle of the second camera, or setting a maximum angle of the first camera and the second camera, so that the first angle of the rotation of the first camera and the rotation angle of the second camera are adjusted The display content of the image is adjacent or partially overlapped with the display content of the second image.
步骤S602:获取第一摄像头采集的第一图像和第二摄像头采集的第二图像。Step S602: Acquire a first image acquired by the first camera and a second image acquired by the second camera.
具体地,当终端的摄像功能打开后,选择进入广角度拍摄模式,此时终端启用第一摄像头和第二摄像头,调节第一摄像头的旋转角度和第二摄像头的旋转角度后,通过第一摄像头采集第一图像,以及在同一时刻通过第二摄像头采集第二图像,由于第一摄像头和第二摄像头的拍摄角度不同,因而它们采集的第一图像和第二图像不相同。Specifically, when the camera function of the terminal is turned on, the user selects to enter the wide-angle shooting mode. At this time, the terminal enables the first camera and the second camera, adjusts the rotation angle of the first camera and the rotation angle of the second camera, and then passes the first camera. The first image is acquired, and the second image is acquired by the second camera at the same time. Since the shooting angles of the first camera and the second camera are different, the first image and the second image they acquire are different.
步骤S603:将第一图像的像素点和第二图像的像素点进行比对,判断第一图像与第二图像是否有重叠区域。Step S603: Comparing the pixel points of the first image with the pixel points of the second image, and determining whether the first image and the second image have overlapping regions.
具体地,第一图像的像素点和第二图像的像素点进行比对的方法可以参见上述实施例中图3或图4所描述的的方法,判断第一图像与第二图像是否有重叠区域的方法可参见上述实施例步骤S103中所描述的的方法,此处不再赘述。Specifically, the method for performing the comparison between the pixel point of the first image and the pixel point of the second image may refer to the method described in FIG. 3 or FIG. 4 in the foregoing embodiment to determine whether the first image and the second image have overlapping regions. For the method, refer to the method described in step S103 of the foregoing embodiment, and details are not described herein again.
步骤S604:将第一图像中的重叠区域覆盖第二图像中对应的重叠区域,并删除第二图像中的重叠区域,形成第三图像。Step S604: overlaying the overlapping area in the first image with the corresponding overlapping area in the second image, and deleting the overlapping area in the second image to form a third image.
具体地,当第一图像和第二图像的显示内容具有相同的部分,即重叠区域,可以将第一图像中的重叠区域覆盖第二图像中对应的重叠区域,可以删除第二图像中的重叠区域,形成第三图像;也可以根据第一图像中的重叠区域的各个像素点值和第二图像中的重叠区域的各个像素点值,通过合成算法,优化重叠区域的各个像素点值,形成第三图像,执行步骤S606。Specifically, when the display content of the first image and the second image have the same portion, that is, the overlapping region, the overlapping region in the first image may cover the corresponding overlapping region in the second image, and the overlap in the second image may be deleted. a region, forming a third image; or forming, according to each pixel value of the overlapping region in the first image and each pixel value of the overlapping region in the second image, optimizing a pixel value of the overlapping region by a synthesis algorithm to form The third image is executed in step S606.
步骤S605:将第一图像和第二图像拼接成第三图像。Step S605: splicing the first image and the second image into a third image.
具体地,当第一图像与第二图像无重叠区域时,则第一图像的显示内容与 第二图像的显示内容相邻,可以以第一图像中参照列和第二图像中沿第一摄像头光心向第二摄像头光心方向排列的首列像素点为边界,将第一图像和第二图像拼接成第三图像,执行步骤S606。Specifically, when the first image and the second image have no overlapping area, the display content of the first image is The display content of the second image is adjacent to each other, and the first image and the first image may be bounded by the first column of pixels in the reference column and the second image in the second image along the optical axis of the first camera toward the second camera The two images are stitched into a third image, and step S606 is performed.
步骤S606:显示第三图像。Step S606: Displaying the third image.
具体地,通过终端上设置的显示模块显示合成后的第三图像,显示图像之后,还可以接受输入的拍摄指令,保存当前显示的第三图像。Specifically, the synthesized third image is displayed by the display module provided on the terminal, and after the image is displayed, the input shooting instruction can also be accepted, and the currently displayed third image is saved.
在本实施例中,终端上配置可旋转的第一摄像头和可旋转的第二摄像头,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距,且可以在第一摄像头光心和第二摄像头光心的连线方向转动,通过调节第一摄像头的旋转角度和第二摄像头的旋转角度,获取第一摄像头采集的第一图像和第二摄像头采集的第二图像,其中,第一图像的显示内容与第二图像的显示内容相邻或部分重叠,再将第一图像的像素点和第二图像的像素点进行比对,判断第一图像与第二图像是否有重叠区域,如果是,则将第一图像中的重叠区域覆盖第二图像中对应的重叠区域,并删除第二图像中的重叠区域,形成第三图像,否则,将第一图像和第二图像拼接成第三图像,并显示该第三图像,通过该方法在拍摄广角度照片时不需要手动移动或旋转移动终端,就可以实现广角度照片的拍摄。In this embodiment, the first camera and the rotatable second camera are arranged on the terminal, and the first camera and the second camera are located on the same side of the terminal, have the same focal length, and can be in the first camera light center and the first camera The connecting direction of the optical center of the two cameras is rotated, and the first image captured by the first camera and the second image captured by the second camera are obtained by adjusting the rotation angle of the first camera and the rotation angle of the second camera, wherein the first image The display content is adjacent to or partially overlaps with the display content of the second image, and then the pixel of the first image is compared with the pixel of the second image to determine whether the first image and the second image have overlapping regions. And overlaying the overlapping area in the first image with the corresponding overlapping area in the second image, and deleting the overlapping area in the second image to form a third image; otherwise, stitching the first image and the second image into the third image And displaying the third image, by which the wide angle photo can be taken without manually moving or rotating the mobile terminal, thereby achieving a wide angle Film shooting.
而且,使用两个摄像头同时拍摄,可以避免多个非同时拍摄的照片合成图像时造成的图像模糊。第一摄像头旋转角度和第二摄像头旋转角度的限定,可保证第一图像的显示内容和第二图像的显示内容具有重叠区域,避免第三图像合成失败。Moreover, by using two cameras to shoot at the same time, it is possible to avoid image blur caused when a plurality of photographs that are not simultaneously photographed are combined. The limitation of the first camera rotation angle and the second camera rotation angle ensures that the display content of the first image and the display content of the second image have overlapping regions, thereby avoiding the third image synthesis failure.
请参照图7,图7是本发明提供的一种图像显示装置的一实施方式的结构示意图。本实施方式的一种图像显示装置,可以应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距可以应用在终端上,该终端可以是智能手机、平板电脑等等,该图像显示装置70包括:调节单元701、获取单元702、合成单元703以及显示单元704,其中,Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of an embodiment of an image display device according to the present invention. An image display device of the present embodiment can be applied to a terminal configured with a rotatable first camera and a rotatable second camera. The first camera and the second camera are located on the same side of the terminal, and the same focal length can be applied to On the terminal, the terminal may be a smart phone, a tablet computer, or the like. The image display device 70 includes: an adjustment unit 701, an acquisition unit 702, a synthesizing unit 703, and a display unit 704, where
调节单元701,用于调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度; The adjusting unit 701 is configured to adjust a rotation angle of the first camera and a rotation angle of the second camera;
获取单元702,用于获取所述第一摄像头采集的第一图像和所述第二摄像头采集的第二图像;所述第一图像不同于所述第二图像;The acquiring unit 702 is configured to acquire a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
合成单元703,用于将所述第一图像和所述第二图像合成第三图像;a synthesizing unit 703, configured to synthesize the first image and the second image into a third image;
显示单元704,用于显示所述第三图像。The display unit 704 is configured to display the third image.
可选地,所述调节单元701调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度后,获取的所述第一图像的显示内容与所述第二图像的显示内容相邻或部分重叠。Optionally, after the adjusting unit 701 adjusts a rotation angle of the first camera and a rotation angle of the second camera, the acquired display content of the first image is adjacent to the display content of the second image. Or partially overlapping.
可选地,所述合成单元703包括:Optionally, the synthesizing unit 703 includes:
比对单元7031,用于将所述第一图像的像素点和所述第二图像的像素点进行比对;The matching unit 7031 is configured to compare the pixel points of the first image with the pixel points of the second image;
判断单元7032,用于判断所述第一图像与所述第二图像是否有重叠区域;The determining unit 7032 is configured to determine whether the first image and the second image have overlapping regions;
覆盖删除单元7033,当所述判断单元的判断结果为是时,将所述第一图像中的重叠区域覆盖所述第二图像中对应的重叠区域,并删除所述第二图像中的重叠区域,形成所述第三图像。Overwriting the deleting unit 7033, when the determination result of the determining unit is YES, overlaying the overlapping area in the first image with the corresponding overlapping area in the second image, and deleting the overlapping area in the second image Forming the third image.
可选地,所述第一摄像头和所述第二摄像头在所述第一摄像头的光心与所述第二摄像头光心的连线的方向旋转,所述第一摄像头沿第一方向旋转,所述第二摄像头沿第二方向旋转,所述第一方向与所述第二方向相同或相反。Optionally, the first camera and the second camera rotate in a direction of a line connecting the optical center of the first camera and the second camera, and the first camera rotates in a first direction. The second camera rotates in a second direction that is the same or opposite to the second direction.
可选地,所述比对单元7031具体用于,以所述第一图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的最后一列像素点为参照列,将所述参照列与所述第二图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的各列像素点进行比对。Optionally, the comparison unit 7031 is configured to use, as a reference column, a last column of pixels in the first image that are aligned along an optical center of the first camera toward an optical center of the second camera. The reference column is compared with each column of pixels in the second image that is arranged along the optical center of the first camera toward the optical axis of the second camera.
可选地,所述判断单元7032具体用于,当所述第二图像的所述各列像素点中具有与所述参照列相同的列像素点时,则所述第一图像与所述第二图像的具有重叠区域;Optionally, the determining unit 7032 is specifically configured to: when the column of the columns of the second image has the same column pixel as the reference column, the first image and the first The two images have overlapping regions;
所述第二图像中的重叠区域为:以所述第二图像中与所述参照列相同的列像素点开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的各列像素点所组成的区域,所述第二图像中的重叠区域包括所述第二图像中与所述参照列相同的列像素点;所述第一图像中的重叠区域为:以所述参照列开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的多列像素点组成的区域, 所述第一图像中的重叠区域包括所述参照列,所述第一图像中的重叠区域的列数等于所述第二图像中的重叠区域的列数。The overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera An area composed of pixels, the overlapping area in the second image includes the same column pixel point in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting an area composed of a plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera, The overlapping area in the first image includes the reference column, and the number of columns of the overlapping area in the first image is equal to the number of columns of the overlapping area in the second image.
需要说明的是,本发明实施例中的图像显示装置70中各个单元的功能可根据上述图像显示方法实施例中的方法具体实现,其具体实现过程可以参照上述图像显示方法实施例的相关描述,此处不再赘述。It should be noted that the functions of the respective units in the image display device 70 in the embodiment of the present invention may be specifically implemented according to the method in the embodiment of the image display method, and the specific implementation process may refer to the related description of the image display method embodiment. I will not repeat them here.
综上所述,本发明通过在终端上配置有可旋转的第一摄像头和可旋转的第二摄像头,第一摄像头和第二摄像头位于终端同一侧面,具有相同的焦距,通过调节第一摄像头的旋转角度和第二摄像头的旋转角度,获取第一摄像头采集的第一图像和第二摄像头采集的第二图像,再将第一图像和第二图像合成第三图像,并显示该第三图像,通过该方法在拍摄广角度照片时不需要手动移动或旋转移动终端,就可以实现广角度照片的拍摄。In summary, the present invention has a first camera and a second camera that are rotatable on the terminal, and the first camera and the second camera are located on the same side of the terminal, and have the same focal length, by adjusting the first camera. The rotation angle and the rotation angle of the second camera acquire the first image acquired by the first camera and the second image captured by the second camera, and then combine the first image and the second image into a third image, and display the third image. By this method, it is possible to achieve wide-angle photographing without manually moving or rotating the mobile terminal when photographing a wide-angle photograph.
而且,使用两个摄像头同时拍摄,可以避免多个非同时拍摄的照片合成图像时造成的图像模糊。Moreover, by using two cameras to shoot at the same time, it is possible to avoid image blur caused when a plurality of photographs that are not simultaneously photographed are combined.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims (12)

  1. 一种图像显示方法,其特征在于,应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,所述第一摄像头和所述第二摄像头位于终端同一侧面,具有相同的焦距,所述方法包括:An image display method is applied to a terminal configured with a rotatable first camera and a rotatable second camera, wherein the first camera and the second camera are located on the same side of the terminal and have the same focal length , the method includes:
    调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度;Adjusting a rotation angle of the first camera and a rotation angle of the second camera;
    获取所述第一摄像头采集的第一图像和所述第二摄像头采集的第二图像;所述第一图像不同于所述第二图像;Obtaining a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
    将所述第一图像和所述第二图像合成第三图像;Combining the first image and the second image into a third image;
    显示所述第三图像。The third image is displayed.
  2. 根据权利要求1所述的方法,其特征在于,调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度后,获取的所述第一图像的显示内容与所述第二图像的显示内容相邻或部分重叠。The method according to claim 1, wherein after the rotation angle of the first camera and the rotation angle of the second camera are adjusted, the displayed content of the first image and the second image are obtained. The display content is adjacent or partially overlapping.
  3. 根据权利要求1所述的方法,其特征在于,所述将所述第一图像和所述第二图像合成第三图像具体为:The method according to claim 1, wherein the synthesizing the first image and the second image into a third image is specifically:
    将所述第一图像的像素点和所述第二图像的像素点进行比对,判断所述第一图像与所述第二图像是否有重叠区域;Comparing the pixel point of the first image with the pixel point of the second image, and determining whether the first image and the second image have overlapping regions;
    当判断结果为是时,将所述第一图像中的重叠区域覆盖所述第二图像中对应的重叠区域,并删除所述第二图像中的重叠区域,形成所述第三图像。When the determination result is YES, the overlapping area in the first image is overlaid on the corresponding overlapping area in the second image, and the overlapping area in the second image is deleted to form the third image.
  4. 根据权利要求3所述的方法,其特征在于,所述第一摄像头和所述第二摄像头在所述第一摄像头的光心与所述第二摄像头光心的连线的方向旋转,所述第一摄像头沿第一方向旋转,所述第二摄像头沿第二方向旋转,所述第一方向与所述第二方向相同或相反。The method according to claim 3, wherein said first camera and said second camera rotate in a direction of a line connecting said optical center of said first camera and said second camera head, said The first camera rotates in a first direction, the second camera rotates in a second direction, the first direction being the same or opposite to the second direction.
  5. 根据权利要求4所述的方法,其特征在于,将所述第一图像的像素点和所述第二图像的像素点进行比对具体为:The method according to claim 4, wherein comparing the pixel points of the first image with the pixel points of the second image is specifically:
    以所述第一图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的最后一列像素点为参照列,将所述参照列与所述第二图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的各列像素点进行比对。The last column of pixels arranged along the optical axis of the first camera along the optical axis of the first camera in the first image is referred to as a reference column, and the reference column and the second image are along the first A camera optical center is aligned with each column of pixels arranged in the direction of the optical center of the second camera.
  6. 根据权利要求5所述的方法,其特征在于,所述判断所述第一图像与 所述第二图像是否有重叠区域具体为:当所述第二图像的像素点中具有与所述参照列相同的列像素点时,则所述第一图像与所述第二图像的具有重叠区域;The method of claim 5 wherein said determining said first image is Whether the second image has an overlapping area is specifically: when the pixel points of the second image have the same column pixel point as the reference column, the first image and the second image have overlapping region;
    所述第二图像中的重叠区域为:以所述第二图像中与所述参照列相同的列像素点开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的各列像素点所组成的区域,所述第二图像中的重叠区域包括所述第二图像中与所述参照列相同的列像素点;所述第一图像中的重叠区域为:以所述参照列开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的多列像素点组成的区域,所述第一图像中的重叠区域包括所述参照列,所述第一图像中的重叠区域的列数等于所述第二图像中的重叠区域的列数。The overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera An area composed of pixels, the overlapping area in the second image includes the same column pixel point in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting a region of the plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera, the overlapping region in the first image includes the reference column, in the first image The number of columns of the overlap region is equal to the number of columns of the overlap region in the second image.
  7. 一种图像显示装置,其特征在于,应用于配置有可旋转的第一摄像头和可旋转的第二摄像头的终端,所述第一摄像头和所述第二摄像头位于终端同一侧面,具有相同的焦距,所述装置包括:An image display device is applied to a terminal configured with a rotatable first camera and a rotatable second camera, wherein the first camera and the second camera are located on the same side of the terminal and have the same focal length The device includes:
    调节单元,用于调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度;An adjusting unit, configured to adjust a rotation angle of the first camera and a rotation angle of the second camera;
    获取单元,用于获取所述第一摄像头采集的第一图像和所述第二摄像头采集的第二图像;所述第一图像不同于所述第二图像;An acquiring unit, configured to acquire a first image collected by the first camera and a second image collected by the second camera; the first image is different from the second image;
    合成单元,用于将所述第一图像和所述第二图像合成第三图像;a synthesizing unit, configured to synthesize the first image and the second image into a third image;
    显示单元,用于显示所述第三图像。a display unit for displaying the third image.
  8. 根据权利要求7所述的装置,其特征在于,所述调节单元调节所述第一摄像头的旋转角度和所述第二摄像头的旋转角度后,获取的所述第一图像的显示内容与所述第二图像的显示内容相邻或部分重叠。The apparatus according to claim 7, wherein the adjustment unit adjusts a rotation angle of the first camera and a rotation angle of the second camera, and the displayed content of the first image is obtained The display contents of the second image are adjacent or partially overlapped.
  9. 根据权利要求7所述的装置,其特征在于,所述合成单元包括:The apparatus according to claim 7, wherein said synthesizing unit comprises:
    比对单元,用于将所述第一图像的像素点和所述第二图像的像素点进行比对;An aligning unit, configured to compare a pixel point of the first image with a pixel point of the second image;
    判断单元,用于判断所述第一图像与所述第二图像是否有重叠区域;a determining unit, configured to determine whether the first image and the second image have overlapping regions;
    覆盖删除单元,当所述判断单元的判断结果为是时,将所述第一图像中的重叠区域覆盖所述第二图像中对应的重叠区域,并删除所述第二图像中的重叠区域,形成所述第三图像。Overwriting the deletion unit, when the determination result of the determination unit is YES, overlaying the overlapping area in the first image with the corresponding overlapping area in the second image, and deleting the overlapping area in the second image, The third image is formed.
  10. 根据权利要求9所述的装置,其特征在于,所述第一摄像头和所述第 二摄像头在所述第一摄像头的光心与所述第二摄像头光心的连线的方向旋转,所述第一摄像头沿第一方向旋转,所述第二摄像头沿第二方向旋转,所述第一方向与所述第二方向相同或相反。The apparatus according to claim 9, wherein said first camera and said first The two cameras rotate in a direction of a line connecting the optical center of the first camera and the second camera head, the first camera rotates in a first direction, and the second camera rotates in a second direction, The first direction is the same as or opposite to the second direction.
  11. 根据权利要求10所述的装置,其特征在于,所述比对单元具体用于,The apparatus according to claim 10, wherein said comparison unit is specifically configured to:
    以所述第一图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的最后一列像素点为参照列,将所述参照列与所述第二图像中沿所述第一摄像头光心向所述第二摄像头光心方向排列的各列像素点进行比对。The last column of pixels arranged along the optical axis of the first camera along the optical axis of the first camera in the first image is referred to as a reference column, and the reference column and the second image are along the first A camera optical center is aligned with each column of pixels arranged in the direction of the optical center of the second camera.
  12. 根据权利要求11所述的装置,其特征在于,所述判断单元具体用于,当所述第二图像的所述各列像素点中具有与所述参照列相同的列像素点时,则所述第一图像与所述第二图像的具有重叠区域;The device according to claim 11, wherein the determining unit is configured to: when the column of pixels of the second image has the same column pixel as the reference column, Having an overlapping area of the first image and the second image;
    所述第二图像中的重叠区域为:以所述第二图像中与所述参照列相同的列像素点开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的各列像素点所组成的区域,所述第二图像中的重叠区域包括所述第二图像中与所述参照列相同的列像素点;所述第一图像中的重叠区域为:以所述参照列开始沿所述第二摄像头光心向所述第一摄像头光心方向排列的多列像素点组成的区域,所述第一图像中的重叠区域包括所述参照列,所述第一图像中的重叠区域的列数等于所述第二图像中的重叠区域的列数。 The overlapping area in the second image is: starting with the column pixels of the second image that are the same as the reference column, and starting the column along the optical axis of the second camera toward the optical axis of the first camera An area composed of pixels, the overlapping area in the second image includes the same column pixel point in the second image as the reference column; the overlapping area in the first image is: in the reference column Starting a region of the plurality of columns of pixels arranged along the optical axis of the second camera toward the optical axis of the first camera, the overlapping region in the first image includes the reference column, in the first image The number of columns of the overlap region is equal to the number of columns of the overlap region in the second image.
PCT/CN2016/074892 2015-12-31 2016-02-29 Image displaying method and device WO2017113504A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511030235.6A CN105635579B (en) 2015-12-31 2015-12-31 A kind of method for displaying image and device
CN201511030235.6 2015-12-31

Publications (1)

Publication Number Publication Date
WO2017113504A1 true WO2017113504A1 (en) 2017-07-06

Family

ID=56050029

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074892 WO2017113504A1 (en) 2015-12-31 2016-02-29 Image displaying method and device

Country Status (2)

Country Link
CN (1) CN105635579B (en)
WO (1) WO2017113504A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405087A (en) * 2020-03-05 2020-07-10 维沃移动通信有限公司 Electronic product and camera shooting method thereof
EP3687142A1 (en) * 2019-01-28 2020-07-29 Beijing Xiaomi Mobile Software Co., Ltd. Camera module and terminal

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719239A (en) * 2016-01-21 2016-06-29 科盾科技股份有限公司 Image splicing method and image splicing device
CN107493422A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 A kind of fast acquiring method and device of big visual angle photo
CN106101505B (en) * 2016-07-29 2017-11-17 广东欧珀移动通信有限公司 Image pickup processing method, device and terminal device
CN107040719A (en) * 2017-03-21 2017-08-11 宇龙计算机通信科技(深圳)有限公司 Filming control method and imaging control device based on double screen terminal
CN107087096A (en) * 2017-06-30 2017-08-22 青岛海信移动通信技术股份有限公司 A kind of dual camera system, dual camera method of adjustment and terminal
CN107483804A (en) * 2017-09-30 2017-12-15 努比亚技术有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN109729337A (en) * 2018-11-15 2019-05-07 华南师范大学 A kind of vision synthesizer and its control method applied to dual camera
JP2020188349A (en) * 2019-05-14 2020-11-19 キヤノン株式会社 Imaging device, imaging method, computer program, and storage medium
CN110290300A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
CN110290322A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
CN110545368B (en) * 2019-07-22 2020-09-22 珠海格力电器股份有限公司 Self-photographing method and device and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100069844A (en) * 2008-12-17 2010-06-25 삼성전자주식회사 Mobile terminal and method for taking image
CN101951487A (en) * 2010-08-19 2011-01-19 深圳大学 Panoramic image fusion method, system and image processing equipment
CN202696756U (en) * 2012-06-20 2013-01-23 中兴通讯股份有限公司 Shooting device for mobile terminal and mobile terminal
US20130044240A1 (en) * 2011-08-17 2013-02-21 Nokia Corporation Apparatus and method for generating image data
CN104754228A (en) * 2015-03-27 2015-07-01 广东欧珀移动通信有限公司 Mobile terminal and method for taking photos by using cameras of mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6148118A (en) * 1995-07-05 2000-11-14 Minolta Co., Ltd. Image processing apparatus capable of reproducing large-sized document
CN101901481B (en) * 2010-08-11 2012-11-21 深圳市蓝韵实业有限公司 Image mosaic method
CN203406908U (en) * 2013-06-03 2014-01-22 王傲立 Rotating cameras for mobile phone
CN103679672B (en) * 2013-10-28 2017-01-11 华南理工大学广州学院 Panorama image splicing method based on edge vertical distance matching
CN104077764A (en) * 2014-07-11 2014-10-01 金陵科技学院 Panorama synthetic method based on image mosaic
CN204559665U (en) * 2015-05-08 2015-08-12 许昌学院 A kind of wide angle shot mobile phone camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100069844A (en) * 2008-12-17 2010-06-25 삼성전자주식회사 Mobile terminal and method for taking image
CN101951487A (en) * 2010-08-19 2011-01-19 深圳大学 Panoramic image fusion method, system and image processing equipment
US20130044240A1 (en) * 2011-08-17 2013-02-21 Nokia Corporation Apparatus and method for generating image data
CN202696756U (en) * 2012-06-20 2013-01-23 中兴通讯股份有限公司 Shooting device for mobile terminal and mobile terminal
CN104754228A (en) * 2015-03-27 2015-07-01 广东欧珀移动通信有限公司 Mobile terminal and method for taking photos by using cameras of mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3687142A1 (en) * 2019-01-28 2020-07-29 Beijing Xiaomi Mobile Software Co., Ltd. Camera module and terminal
CN111405087A (en) * 2020-03-05 2020-07-10 维沃移动通信有限公司 Electronic product and camera shooting method thereof
CN111405087B (en) * 2020-03-05 2022-12-09 维沃移动通信有限公司 Electronic product and camera shooting method thereof

Also Published As

Publication number Publication date
CN105635579A (en) 2016-06-01
CN105635579B (en) 2018-01-09

Similar Documents

Publication Publication Date Title
WO2017113504A1 (en) Image displaying method and device
JP5972969B2 (en) Position sensor assisted image registration for panoramic photography
KR102045957B1 (en) Method and apparatus for photographing of a portable terminal
JP5969992B2 (en) Stereoscopic (3D) panorama generation on portable devices
WO2021012856A1 (en) Method for photographing panoramic image
US9357117B2 (en) Photographing device for producing composite image and method using the same
AU2012256370B2 (en) Panorama processing
CN110456967B (en) Information processing method, information processing apparatus, and program
WO2017088678A1 (en) Long-exposure panoramic image shooting apparatus and method
WO2017000484A1 (en) Panoramic image generation method and apparatus for user terminal
JP5835384B2 (en) Information processing method, information processing apparatus, and program
WO2013155804A1 (en) Photograph shooting method and electronic device
WO2016119301A1 (en) Terminal, and image capturing method and device
WO2015161561A1 (en) Method and device for terminal to achieve image synthesis based on multiple cameras
US8509518B2 (en) Real-time image collage method and apparatus
WO2020037615A1 (en) Gimbal system and image processing method therefor, and unmanned aerial vehicle
WO2011153767A1 (en) Shooting method and apparatus for panorama photograph
US20120026283A1 (en) Method and apparatus for photographing a panoramic image
CN114125179B (en) Shooting method and device
CN106791390B (en) Wide-angle self-timer real-time preview method and user terminal
US20160292842A1 (en) Method and Apparatus for Enhanced Digital Imaging
CN108270959B (en) Panoramic imaging method, terminal equipment and panoramic imaging device
TWI696147B (en) Method and system for rendering a panoramic image
KR20120113854A (en) Mobile terminal capable of shooting and playing tridimensionally
JP6777208B2 (en) program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16880313

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16880313

Country of ref document: EP

Kind code of ref document: A1