TWI658435B - Picture sewing method and picture sewing system - Google Patents

Picture sewing method and picture sewing system Download PDF

Info

Publication number
TWI658435B
TWI658435B TW106145821A TW106145821A TWI658435B TW I658435 B TWI658435 B TW I658435B TW 106145821 A TW106145821 A TW 106145821A TW 106145821 A TW106145821 A TW 106145821A TW I658435 B TWI658435 B TW I658435B
Authority
TW
Taiwan
Prior art keywords
picture
pictures
attribute information
camera
different
Prior art date
Application number
TW106145821A
Other languages
Chinese (zh)
Other versions
TW201928873A (en
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 鴻海精密工業股份有限公司
Priority to TW106145821A priority Critical patent/TWI658435B/en
Application granted granted Critical
Publication of TWI658435B publication Critical patent/TWI658435B/en
Publication of TW201928873A publication Critical patent/TW201928873A/en

Links

Landscapes

  • Studio Devices (AREA)

Abstract

本發明涉及一種畫面縫合方法及系統。該方法包括步驟:獲取至少一攝像頭拍攝的多個畫面;獲取所述多個畫面中每一畫面的屬性資訊;從獲取的所述多個畫面中選擇一個畫面為第一畫面;根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近的畫面為第二畫面;及將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。本發明根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近的畫面為第二畫面,並將所述第一畫面與所述第二畫面進行縫合,從而提高了攝像頭拍的攝畫面的質感。 The invention relates to a picture stitching method and system. The method includes the steps of: acquiring multiple pictures taken by at least one camera; acquiring attribute information of each of the multiple pictures; selecting one of the multiple pictures as the first picture; Determining the attribute information of each picture from among the plurality of pictures acquired as a second picture that is the same as or similar to the attribute information of the first picture; and stitching the first picture and the second picture And generate a stitched picture. According to the present invention, a picture that is the same as or similar to the attribute information of the first picture is determined as the second picture from the obtained multiple pictures according to the obtained attribute information of each picture, and the first picture and the The second picture is stitched, thereby improving the texture of the picture taken by the camera.

Description

畫面縫合方法及系統 Picture stitching method and system

本發明涉及影像處理領域,尤其涉及一種畫面縫合方法及系統。 The present invention relates to the field of image processing, and in particular, to a picture stitching method and system.

現有的攝像裝置拍攝的多個畫面之間的亮度、焦距等存在差異,或畫面間的對比度較差,從而影響畫面的質感效果。 There are differences in brightness, focal length, etc. between multiple pictures taken by existing camera devices, or the contrast between pictures is poor, thereby affecting the texture effect of the pictures.

鑒於以上內容,有必要提供一種畫面縫合方法及系統以解決畫面之間因存在亮度、焦距等的差異或畫面間的對比度較差,從而影響畫面的質感的問題。 In view of the above, it is necessary to provide a picture stitching method and system to solve the problem of affecting the texture of the picture due to differences in brightness, focal length, etc. between the pictures or poor contrast between the pictures.

一種畫面縫合方法,該方法包括步驟:獲取至少一攝像頭拍攝的多個畫面;獲取所述多個畫面中每一畫面的屬性資訊;從獲取的所述多個畫面中選擇一個畫面為第一畫面;根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面;及將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。 A picture stitching method includes the steps of: obtaining multiple pictures taken by at least one camera; obtaining attribute information of each of the multiple pictures; selecting one of the obtained multiple pictures as a first picture ; Determining, from the plurality of acquired pictures, from among the plurality of acquired pictures, a picture that is the same as or similar to the attribute information of the first picture and different from the first picture is a second picture; and The first picture is stitched with the second picture to generate a stitched picture.

優選地,該方法在步驟“獲取至少一攝像頭拍攝的多個畫面”中包括:獲取第一攝像頭拍攝的畫面及獲取第二攝像頭拍攝的畫面,其中所述第一攝像頭拍攝的畫面的時間點與所述第二攝像頭拍攝的畫面的時間點不同。 Preferably, the method includes in the step "acquiring multiple pictures taken by at least one camera": obtaining a picture taken by the first camera and obtaining a picture taken by the second camera, wherein the time point of the picture taken by the first camera and The time points of the pictures captured by the second camera are different.

優選地,所述屬性資訊包括亮度,該方法在步驟“根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面”中包括:根據獲取的每個畫面的亮度從所述獲取的多個畫面中確定一與所述第一畫面的亮度資訊相同或相近且不同於所述第一畫面的畫面為第二畫面。 Preferably, the attribute information includes brightness, and the method determines, in step "according to the acquired attribute information of each picture, from among the plurality of acquired pictures that one is the same as or similar to the attribute information of the first picture and different from "The picture of the first picture is the second picture" includes: determining, according to the obtained brightness of each picture, from among the plurality of pictures obtained, a brightness information that is the same as or similar to the brightness information of the first picture and different from the brightness information of the first picture. The picture of the first picture is a second picture.

優選地,所述屬性資訊包括焦距,該方法在步驟“根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面”中包括:根據獲取的每個畫面的焦距從所述獲取的多個畫面中確定一與所述第一畫面的焦距相同或相近且不同於所述第一畫面的畫面為第二畫面。 Preferably, the attribute information includes a focal length, and in the method, in the step of "according to the acquired attribute information of each picture, it is determined from the acquired plurality of pictures that one same or similar to the attribute information of the first picture is different from The "picture of the first picture is the second picture" includes: determining, according to the obtained focal length of each picture, from among the plurality of obtained pictures, a focal length that is the same as or similar to that of the first picture and different from the focal length of the first picture. The picture of the first picture is the second picture.

一種畫面縫合方法,該方法包括步驟:獲取至少一攝像頭拍攝的多個畫面;獲取所述多個畫面中每一畫面的屬性資訊;從獲取的所述多個畫面中選擇一個畫面為第一畫面;根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性不同且不同於所述第一畫面的畫面為第二畫面;及將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。 A picture stitching method includes the steps of: obtaining multiple pictures taken by at least one camera; obtaining attribute information of each of the multiple pictures; selecting one of the obtained multiple pictures as a first picture Determining, according to the obtained attribute information of each picture, from among the plurality of pictures obtained, a picture different from the first picture and different from the first picture as the second picture; and A picture is stitched with the second picture and a stitched picture is generated.

優選地,所述屬性資訊包括對比度,該方法在步驟“根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一不同於所述第一畫面的屬性資訊的畫面為第二畫面”中包括: 根據獲取每個畫面的對比度從所述獲取的多個畫面中確定一與所述第一畫面的對比度不同且不同於所述第一畫面的畫面為第二畫面。 Preferably, the attribute information includes contrast, and the method determines, in step "according to the acquired attribute information of each picture, a picture different from the attribute information of the first picture from the plurality of pictures obtained as the second picture. Picture "includes: According to the obtained contrast of each picture, it is determined from the obtained plurality of pictures that a picture different from the first picture and different from the first picture is a second picture.

一種畫面縫合系統,該系統包括:獲取模組,用於獲取至少一攝像頭拍攝的多個畫面及獲取所述多個畫面中每一畫面的屬性資訊;第一畫面確定模組,用於從獲取的所述多個畫面中選擇一個畫面為第一畫面;第二畫面確定模組,用於根據獲取的每個畫面的屬性資訊從所述獲取模組獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面;及畫面縫合模組,用於將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。 A picture stitching system includes: an obtaining module for obtaining multiple pictures taken by at least one camera and obtaining attribute information of each of the multiple pictures; a first picture determining module for obtaining from One of the plurality of pictures is selected as the first picture; the second picture determining module is configured to determine one and the plurality of pictures from the plurality of pictures obtained by the obtaining module according to the acquired attribute information of each picture; The picture with the same or similar attribute information of the first picture and different from the first picture is the second picture; and a picture stitching module, configured to stitch the first picture and the second picture and generate a stitch Screen.

優選地,該獲取模組獲取第一攝像頭拍攝的畫面及獲取第二攝像頭拍攝的畫面,其中所述第一攝像頭拍攝的畫面的時間點與所述第二攝像頭拍攝的畫面的時間點不同。 Preferably, the obtaining module obtains a picture taken by the first camera and a picture taken by the second camera, wherein the time point of the picture taken by the first camera is different from the time point of the picture taken by the second camera.

優選地,所述屬性資訊包括亮度,該第二畫面確定模組根據獲取的每個畫面的亮度從所述多個畫面中確定一與所述第一畫面的亮度資訊相同或相近且不同於所述第一畫面的畫面為第二畫面。 Preferably, the attribute information includes brightness, and the second picture determination module determines, from the plurality of pictures according to the obtained brightness of each picture, that a brightness information that is the same as or similar to the brightness information of the first picture is different from that of the first picture. The picture of the first picture is a second picture.

優選地,所述屬性資訊包括焦距,該第二畫面確定模組根據獲取的每個畫面的焦距從所述多個畫面中確定一與所述第一畫面的焦距相同或相近且不同於所述第一畫面的畫面為第二畫面。 Preferably, the attribute information includes a focal length, and the second frame determining module determines, from the plurality of frames according to the obtained focal length of each frame, a focal length that is the same as or similar to the focal length of the first frame and different from the The picture of the first picture is the second picture.

本發明根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面或根據獲取每個畫面的對比度從所述獲取的多個畫面中確定一與所述第一畫面的對比度不同且不同於所述第一畫面的畫面為第二畫面,並將所述第 一畫面與所述第二畫面進行縫合並生成一縫畫面,從而解決了畫面之間因存在亮度、焦距等的差異或畫面間的對比度較差,從而影響畫面的質感的問題。 According to the present invention, according to the obtained attribute information of each picture, a picture that is the same as or similar to the attribute information of the first picture and different from the first picture is the second picture or according to the obtained multiple pictures. Acquiring the contrast of each picture, and determining, from the plurality of acquired pictures, a picture that is different from the first picture in contrast and different from the first picture is a second picture, and A picture is stitched with the second picture and a seam picture is generated, thereby solving the problem of affecting the texture of the picture due to differences in brightness, focal length, etc. between the pictures or poor contrast between the pictures.

1‧‧‧電子裝置 1‧‧‧ electronic device

11‧‧‧攝像單元 11‧‧‧ camera unit

12‧‧‧輸入單元 12‧‧‧ input unit

13‧‧‧顯示單元 13‧‧‧Display unit

14‧‧‧通訊單元 14‧‧‧Communication Unit

15‧‧‧存儲單元 15‧‧‧Storage unit

16‧‧‧處理單元 16‧‧‧Processing unit

100‧‧‧畫面縫合系統 100‧‧‧picture stitching system

101‧‧‧獲取模組 101‧‧‧Get Module

102‧‧‧第一畫面確定模組 102‧‧‧The first screen determination module

103‧‧‧第二畫面確定模組 103‧‧‧Second screen determination module

104‧‧‧畫面縫合模組 104‧‧‧Screen stitching module

105‧‧‧通訊模組 105‧‧‧Communication Module

106‧‧‧顯示模組 106‧‧‧Display Module

S301~S303‧‧‧步驟 S301 ~ S303‧‧‧step

S401~S404‧‧‧步驟 S401 ~ S404‧‧‧step

圖1為本發明一實施方式中電子裝置的結構示意圖。 FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

圖2為畫面縫合系統的功能模組圖。 FIG. 2 is a functional module diagram of the screen stitching system.

圖3為本發明一實施方式中畫面縫合方法的流程圖。 FIG. 3 is a flowchart of a picture stitching method according to an embodiment of the present invention.

圖4為本發明另一實施方式中畫面縫合方法的流程圖。 FIG. 4 is a flowchart of a picture stitching method according to another embodiment of the present invention.

現在將參考附圖描述實現本發明各個實施例的移動終端。在後續的描述中,使用用於表示元件的諸如“模組”、“部件”或“單元”的尾碼僅為了有利於本發明的說明,其本身並沒有特定的意義。因此,"模組"與"部件"可以混合地使用。 A mobile terminal implementing various embodiments of the present invention will now be described with reference to the drawings. In the following description, the use of suffixes such as “module”, “part”, or “unit” used to represent components is merely for the benefit of the description of the present invention, and it does not have a specific meaning in itself. Therefore, "modules" and "components" can be used in combination.

請參看圖1,所示為本發明一實施方式中電子裝置1的結構示意圖。所述電子裝置1用於獲取多個畫面並對獲取的畫面進行縫合處理。本實施方式中所述電子裝置1可以為智慧手機、平板電腦、360°攝像機及其他帶有攝像功能的裝置。 Please refer to FIG. 1, which is a schematic structural diagram of an electronic device 1 according to an embodiment of the present invention. The electronic device 1 is configured to acquire multiple pictures and perform stitching processing on the obtained pictures. The electronic device 1 in this embodiment may be a smart phone, a tablet computer, a 360 ° camera, and other devices with a camera function.

所述電子裝置1包括,但不限於攝像單元11、輸入單元12、顯示單元13、通訊單元14、存儲單元15及處理單元16。所述攝像單元11用於拍攝一目標物件的多個畫面。例如,所述攝像單元11對所述目標物件進行一次拍攝後生成多個畫面。所述多個畫面中每個畫面包括至少一幀數。所述每個畫面的屬性資訊包括亮度、焦距及對比度等資訊。本實施方式中,所述攝像單元11包括至少兩個攝像頭,每一攝像頭用於對目標物件進行拍攝而形成多個畫面。所述輸入單元12用於供使用者輸入控制操作。在本實施方式中,所述輸入單元12 為按鍵、觸控式螢幕或按鍵與觸控式螢幕的組合。所述顯示單元13用於顯示所述電子裝置1的資訊,例如顯示經所述電子裝置1縫合處理後的畫面。本實施方式中,所述顯示單元13為一顯示幕。所述電子裝置1藉由通訊單元14與一終端裝置(圖中未示)通訊連接,並將經縫合處理的畫面傳輸給所述終端裝置。所述終端裝置可以為伺服器、手機、平板電腦、筆記型電腦等裝置。本實施方式中,所述通訊單元14可以為無線通訊模組。例如所述通訊單元14可以為WiFi模組或藍牙模組。在其他實施方式中,所述通訊單元14為有線通訊模組。例如所述通訊單元14可以為電纜。 The electronic device 1 includes, but is not limited to, a camera unit 11, an input unit 12, a display unit 13, a communication unit 14, a storage unit 15, and a processing unit 16. The camera unit 11 is used for shooting multiple pictures of a target object. For example, the camera unit 11 generates a plurality of pictures after shooting the target object once. Each of the plurality of pictures includes at least one frame number. The attribute information of each picture includes information such as brightness, focal length, and contrast. In this embodiment, the camera unit 11 includes at least two cameras, and each camera is used for shooting a target object to form multiple pictures. The input unit 12 is used for a user to input a control operation. In this embodiment, the input unit 12 Is a button, touchscreen, or a combination of a button and a touchscreen. The display unit 13 is configured to display information of the electronic device 1, for example, a screen after the electronic device 1 is stitched. In this embodiment, the display unit 13 is a display screen. The electronic device 1 is communicatively connected to a terminal device (not shown) through the communication unit 14 and transmits the stitched picture to the terminal device. The terminal device may be a device such as a server, a mobile phone, a tablet computer, a notebook computer, and the like. In this embodiment, the communication unit 14 may be a wireless communication module. For example, the communication unit 14 may be a WiFi module or a Bluetooth module. In other embodiments, the communication unit 14 is a wired communication module. For example, the communication unit 14 may be a cable.

所述存儲單元15用於存儲所述電子裝置1的程式碼及資料資料。例如,所述存儲單元15存儲所述電子裝置1拍攝的畫面資料。本實施方式中,所述存儲單元15可以為所述電子裝置1的內部存儲單元。例如所述存儲單元15可以為電子裝置1的硬碟或記憶體。在另一實施方式中,所述存儲單元15也可以為電子裝置1的外部存放裝置。例如所述存儲單元15可以為所述電子裝置1上配備的插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)等。 The storage unit 15 is configured to store code and data of the electronic device 1. For example, the storage unit 15 stores screen data captured by the electronic device 1. In this embodiment, the storage unit 15 may be an internal storage unit of the electronic device 1. For example, the storage unit 15 may be a hard disk or a memory of the electronic device 1. In another embodiment, the storage unit 15 may also be an external storage device of the electronic device 1. For example, the storage unit 15 may be a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card (Flash Card) and so on.

本實施方式中,所述處理單元16可以為一中央處理器(Central Processing Unit,CPU),微處理器或其他資料處理晶片。所述處理單元16用於執行軟體程式碼或運算資料。 In this embodiment, the processing unit 16 may be a central processing unit (CPU), a microprocessor, or other data processing chip. The processing unit 16 is configured to execute software codes or operation data.

請參考圖2,所示為本發明一實施方式中畫面縫合系統100的功能模組圖。本實施方式中,該畫面縫合系統100包括一個或多個模組,所述一個或者多個模組被存儲於該存儲單元15中,並被該處理單元16所執行。在其他實施方式中,所述畫面縫合系統100為內嵌在該電子裝置1中的程式段或代碼。 Please refer to FIG. 2, which is a functional module diagram of the picture stitching system 100 according to an embodiment of the present invention. In this embodiment, the screen stitching system 100 includes one or more modules, which are stored in the storage unit 15 and executed by the processing unit 16. In other embodiments, the picture stitching system 100 is a program segment or code embedded in the electronic device 1.

本實施方式中,該畫面縫合系統100包括獲取模組101、第一畫面確定模組102、第二畫面確定模組103及畫面縫合模組104。本發明所稱的模組是指能夠完成特定功能的一系列電腦程式指令段,比程式更適合於描述軟體在該電子裝置1中的執行過程。 In this embodiment, the picture stitching system 100 includes an obtaining module 101, a first picture determining module 102, a second picture determining module 103, and a picture stitching module 104. The module referred to in the present invention refers to a series of computer program instruction segments capable of completing specific functions, and is more suitable for describing the execution process of software in the electronic device 1 than programs.

所述獲取模組101用於獲取所述攝像單元11拍攝的多個畫面。在一實施方式中,所述攝像單元11至少包括第一攝像頭及第二攝像頭。所述第一攝像頭對所述目標物件進行一次拍攝所生成的畫面組成第一畫面集,所述第二攝像頭對所述目標物件進行一次拍攝的畫面組成第二畫面集。所述第一攝像頭拍攝的第一畫面集中的畫面的時間點與所述第二攝像頭拍攝的第二畫面集中的畫面的時間點不同。在另一實施方式中,所述第一攝像頭拍攝的第一畫面集中的畫面的時間與所述第二攝像頭拍攝的畫面的時間點可以相同。 The obtaining module 101 is configured to obtain multiple pictures taken by the camera unit 11. In one embodiment, the camera unit 11 includes at least a first camera and a second camera. The pictures generated by the first camera taking one shot of the target object constitute a first picture set, and the pictures produced by the second camera taking one shot of the target object constitute a second picture set. The time point of the pictures in the first picture set taken by the first camera is different from the time point of the pictures in the second picture set taken by the second camera. In another embodiment, the time of the pictures in the first picture set captured by the first camera and the time of the pictures of the second camera may be the same.

所述獲取模組101進一步獲取所述多個畫面中每一畫面的屬性資訊。在一實施方式中,所述畫面的屬性資訊包括畫面的亮度、焦距及對比度中的一種或多種。例如,所述獲取模組101在獲取攝像單元11拍攝的多個畫面後獲取多個畫面中每一畫面的亮度資訊、焦距資訊或對比度資訊。 The obtaining module 101 further obtains attribute information of each of the plurality of pictures. In one embodiment, the attribute information of the picture includes one or more of brightness, focal length and contrast of the picture. For example, the acquisition module 101 acquires brightness information, focal length information, or contrast information of each of the multiple frames after acquiring multiple frames captured by the camera unit 11.

所述第一畫面確定模組102用於從獲取的所述多個畫面中選擇一個畫面為第一畫面。在一實施方式中,所述第一畫面確定模組102用於從獲取的所述多個畫面中選中一畫面為第一畫面。在另一實施方式中,所述第一畫面確定模組102接收使用者藉由所述輸入單元12輸入的選擇操作從獲取的所述多個畫面中選中一畫面為第一畫面。在其他實施方式中,所述第一畫面確定模組102將獲取的所述多個畫面中排在第一位的畫面確定為第一畫面。 The first picture determining module 102 is configured to select a picture from the obtained multiple pictures as the first picture. In an embodiment, the first picture determining module 102 is configured to select a picture from the obtained multiple pictures as the first picture. In another embodiment, the first picture determination module 102 receives a selection operation input by the user through the input unit 12 and selects a picture from the plurality of pictures obtained as the first picture. In other embodiments, the first picture determining module 102 determines a picture ranked first among the multiple pictures obtained as the first picture.

所述第二畫面確定模組103用於根據獲取的每個畫面的屬性資訊從所述獲取模組101獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面。 The second picture determining module 103 is configured to determine, based on the obtained attribute information of each picture, from among multiple pictures obtained by the obtaining module 101, that the same or similar property information of the first picture is different from that of the first picture. The picture of the first picture is a second picture.

所述畫面縫合模組104用於將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。 The picture stitching module 104 is configured to stitch the first picture and the second picture and generate a stitched picture.

在一實施方式中,所述畫面中的屬性資訊包括亮度。所述第二畫面確定模組103根據獲取的每個畫面的亮度從所述獲取的多個畫面中確定一與所述第一畫面的亮度相同且不同於所述第一畫面的畫面為第二畫面。所述畫面 縫合模組104將亮度相同的第一畫面與第二畫面進行縫合並生成對應的縫合畫面。 In one embodiment, the attribute information in the picture includes brightness. The second picture determining module 103 determines, from the obtained multiple pictures, that a picture having the same brightness as the first picture and different from the first picture is the second picture according to the obtained brightness of each picture. Screen. The picture The stitching module 104 stitches the first picture and the second picture with the same brightness and generates a corresponding stitched picture.

在另一實施方式中,所述畫面中的屬性資訊包括焦距。所述第二畫面確定模組103根據獲取的每個畫面的焦距從所述獲取的多個畫面中確定一與所述第一畫面的焦距相同且不同於所述第一畫面的畫面為第二畫面。所述畫面縫合模組104將焦距相同的第一畫面與第二畫面進行縫合並生成對應的縫合畫面。 In another embodiment, the attribute information in the picture includes a focal length. The second picture determining module 103 determines, according to the obtained focal length of each picture, from the obtained multiple pictures that a picture having the same focal length as the first picture and different from the first picture is the second picture. Screen. The picture stitching module 104 stitches the first picture and the second picture with the same focal length and generates a corresponding stitched picture.

在其他實施方式中,所述第二畫面確定模組103根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性不同且不同於所述第一畫面的畫面為第二畫面。例如,在一實施方式中,所述畫面的屬性資訊包括對比度,所述第二畫面確定模組103根據獲取的每個畫面的對比度從所述獲取的多個畫面中確定一與所述第一畫面的對比度不同且不同於所述第一畫面的畫面為第二畫面。所述畫面縫合模組104進一步將對比度不同的第一畫面及第二畫面進行縫合並生成對應的縫合畫面。 In other embodiments, the second picture determining module 103 determines, based on the obtained attribute information of each picture, from among the plurality of pictures obtained, a property different from the first picture and different from the first picture. The picture of one picture is the second picture. For example, in an embodiment, the attribute information of the picture includes contrast, and the second picture determination module 103 determines a first and the first picture from the obtained multiple pictures according to the obtained contrast of each picture. The picture with different contrast and different from the first picture is the second picture. The picture stitching module 104 further stitches the first picture and the second picture with different contrast and generates a corresponding stitched picture.

在一實施方式中,所述畫面縫合系統100還包括通訊模組105(參考圖2)。所述通訊模組105用於藉由通訊單元14將所述畫面縫合模組104生成的縫合畫面傳輸給所述終端裝置(圖中未示)。在一實施方式中,所述通訊單元14可以為無線通訊模組,例如所述通訊單元14可以為藍牙通訊模組、WiFi通訊模組、3G/4G通訊模組。所述通訊模組105藉由所述3G/4G通訊模組將所述畫面縫合模組104生成的縫合畫面傳輸給所述終端裝置。在另一實施方式中,所述通訊單元14可以為有線通訊模組,例如所述通訊單元14可以為電纜、光纜等。所述通訊模組105藉由所述電纜將所述畫面縫合模組104生成的縫合畫面傳輸給所述終端裝置。 In one embodiment, the picture stitching system 100 further includes a communication module 105 (refer to FIG. 2). The communication module 105 is configured to transmit the stitched picture generated by the picture stitching module 104 to the terminal device (not shown) through the communication unit 14. In one embodiment, the communication unit 14 may be a wireless communication module. For example, the communication unit 14 may be a Bluetooth communication module, a WiFi communication module, or a 3G / 4G communication module. The communication module 105 transmits the stitched picture generated by the picture stitching module 104 to the terminal device through the 3G / 4G communication module. In another embodiment, the communication unit 14 may be a wired communication module. For example, the communication unit 14 may be a cable, an optical cable, or the like. The communication module 105 transmits the stitched picture generated by the picture stitching module 104 to the terminal device through the cable.

在一實施方式中,所述畫面縫合系統100還包括一顯示模組106(參考圖2)。所述顯示模組106用於將所述畫面縫合模組104生成的縫合畫面顯示在所述顯示單元13上以供使用者查看。 In one embodiment, the picture stitching system 100 further includes a display module 106 (refer to FIG. 2). The display module 106 is configured to display a stitched picture generated by the picture stitching module 104 on the display unit 13 for a user to view.

請參考圖3,所示為本發明一實施方式中畫面縫合方法的流程圖。該方法應用在電子裝置1中。根據不同需求,該流程圖中步驟的順序可以改變,某些步驟可以省略或合併。該方法包括步驟: Please refer to FIG. 3, which is a flowchart of a method for stitching pictures in an embodiment of the present invention. This method is applied in the electronic device 1. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted or combined. The method includes steps:

S301:獲取攝像單元11拍攝的多個畫面。 S301: Acquire multiple pictures captured by the camera unit 11.

在一實施方式中,所述攝像單元11包括第一攝像頭及第二攝像頭。所述第一攝像頭對目標物件進行一次拍攝所生成的畫面組成第一畫面集,所述第二攝像頭對所述目標物件進行一次拍攝的畫面組成第二畫面集。所述第一攝像頭拍攝的第一畫面集中的畫面的時間點與所述第二攝像頭拍攝的第二畫面集中的畫面的時間點不同。在另一實施方式中,所述第一攝像頭拍攝的第一畫面集中的畫面的時間與所述第二攝像頭拍攝的畫面的時間點可以相同。 In one embodiment, the camera unit 11 includes a first camera and a second camera. The pictures generated by the first camera taking one shot of the target object constitute a first picture set, and the pictures produced by the second camera taking one shot of the target object constitute a second picture set. The time point of the pictures in the first picture set taken by the first camera is different from the time point of the pictures in the second picture set taken by the second camera. In another embodiment, the time of the pictures in the first picture set captured by the first camera and the time of the pictures of the second camera may be the same.

S302:獲取所述多個畫面中每一畫面的屬性資訊。 S302: Acquire attribute information of each of the multiple pictures.

在一實施方式中,所述畫面的屬性資訊包括畫面的亮度、焦距及對比度中的一種或多種。例如,所述電子裝置1在獲取攝像單元11拍攝的多個畫面後獲取多個畫面中每一畫面的亮度資訊、焦距資訊或對比度資訊。 In one embodiment, the attribute information of the picture includes one or more of brightness, focal length and contrast of the picture. For example, the electronic device 1 acquires brightness information, focal length information, or contrast information of each of the multiple frames after acquiring multiple frames captured by the imaging unit 11.

S303:根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面。 S303: According to the obtained attribute information of each picture, determine that a picture that is the same as or similar to the attribute information of the first picture and different from the first picture is the second picture from the obtained multiple pictures.

在一實施方式中,所述畫面中的屬性資訊包括亮度。所述電子裝置1根據獲取的每個畫面的亮度從所述獲取的多個畫面中確定一與所述第一畫面的亮度相同且不同於所述第一畫面的畫面為第二畫面。 In one embodiment, the attribute information in the picture includes brightness. The electronic device 1 determines, according to the obtained brightness of each picture, from the obtained multiple pictures that a picture having the same brightness as the first picture and different from the first picture is a second picture.

在一實施方式中,所述畫面中的屬性資訊包括焦距。所述電子裝置1根據獲取的每個畫面的焦距從所述獲取的多個畫面中確定一與所述第一畫面的焦距相同且不同於所述第一畫面的畫面為第二畫面。 In one embodiment, the attribute information in the picture includes a focal length. The electronic device 1 determines, according to the acquired focal length of each picture, from the acquired multiple pictures that a picture having the same focal length as the first picture and different from the first picture is a second picture.

S304:將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。例如,所述電子裝置1能夠將亮度相同的第一畫面與第二畫面進行縫合並 生成對應的縫合畫面或將焦距相同的第一畫面與第二畫面進行縫合並生成相應的縫合畫面。 S304: stitch the first picture and the second picture and generate a stitched picture. For example, the electronic device 1 can stitch a first picture and a second picture with the same brightness and Generate a corresponding stitched picture or stitch a first picture and a second picture with the same focal length and generate a corresponding stitched picture.

在本實施方式中,該方法還包括步驟:藉由通訊單元14將生成的所述縫合畫面傳輸給所述終端裝置(圖中未示)。 In this embodiment, the method further includes the step of transmitting the generated stitched picture to the terminal device (not shown) through the communication unit 14.

在一實施方式中,所述通訊單元14可以為無線通訊模組,例如所述通訊單元14可以為藍牙通訊模組、WiFi通訊模組、3G/4G通訊模組。所述電子裝置1藉由所述3G/4G通訊模組將生成的所述縫合畫面傳輸給所述終端裝置。 In one embodiment, the communication unit 14 may be a wireless communication module. For example, the communication unit 14 may be a Bluetooth communication module, a WiFi communication module, or a 3G / 4G communication module. The electronic device 1 transmits the generated stitched picture to the terminal device through the 3G / 4G communication module.

在另一實施方式中,所述通訊單元14可以為有線通訊模組,例如所述通訊單元14可以為電纜、光纜等。所述電子裝置1藉由所述電纜將生成的所述縫合畫面傳輸給所述終端裝置。 In another embodiment, the communication unit 14 may be a wired communication module. For example, the communication unit 14 may be a cable, an optical cable, or the like. The electronic device 1 transmits the generated stitched picture to the terminal device through the cable.

在本實施方式中,該方法還包括步驟:將生成的所述縫合畫面顯示在所述顯示單元13上以供使用者查看。 In this embodiment, the method further includes the step of displaying the generated stitching picture on the display unit 13 for viewing by a user.

請參考圖4,所示為本發明另一實施方式中畫面縫合方法的流程圖。該方法包括步驟: Please refer to FIG. 4, which is a flowchart of a picture stitching method according to another embodiment of the present invention. The method includes steps:

S401:獲取攝像單元11拍攝的多個畫面。 S401: Acquire multiple pictures captured by the camera unit 11.

S402:獲取所述多個畫面中每一畫面的屬性資訊。 S402: Acquire attribute information of each of the multiple pictures.

S403:根據獲取的每個畫面的屬性資訊從獲取的多個畫面中確定一與第一畫面的屬性資訊不同且不同於所述第一畫面的畫面為第二畫面。 S403: According to the obtained attribute information of each picture, determine that a picture different from the first picture and different from the first picture is the second picture from the obtained multiple pictures.

例如,在一實施方式中,所述畫面的屬性資訊包括對比度,所述電子裝置1根據獲取的每個畫面的對比度從所述獲取的多個畫面中確定一與所述第一畫面的對比度不同且不同於所述第一畫面的畫面為第二畫面。 For example, in an embodiment, the attribute information of the picture includes contrast, and the electronic device 1 determines that the contrast of the first picture is different from that of the first picture according to the obtained contrast of each picture. The picture different from the first picture is the second picture.

S404:將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。例如,所述電子裝置1能夠將對比度不同的第一畫面及第二畫面進行縫合並生成相應的縫合畫面。 S404: stitch the first picture and the second picture and generate a stitched picture. For example, the electronic device 1 can stitch the first picture and the second picture with different contrast and generate a corresponding stitched picture.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述僅為本發明之較佳實施方式,舉凡熟悉本案技藝之人士,在援依本案創作精神所作之等效修飾或變化,皆應包含於以下之申請專利範圍內。 In summary, the present invention complies with the elements of an invention patent, and a patent application is filed in accordance with the law. However, the above is only the preferred embodiment of the present invention. For those who are familiar with the skills of this case, equivalent modifications or changes made in accordance with the creative spirit of this case should be included in the scope of patent application below.

Claims (7)

一種畫面縫合方法,其改良在於,該方法包括步驟:獲取至少一攝像頭拍攝的多個畫面;獲取所述多個畫面中每一畫面的屬性資訊;從獲取的所述多個畫面中選擇一個畫面為第一畫面,其中,接收使用者藉由一輸入單元輸入的選擇操作從獲取的所述多個畫面中選中一畫面為第一畫面;根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面,其中,所述屬性資訊包括焦距,該方法在步驟“根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面”中包括:根據獲取的每個畫面的焦距從所述獲取的多個畫面中確定一與所述第一畫面的焦距相同或相近且不同於所述第一畫面的畫面為第二畫面;及將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。A picture stitching method is improved in that the method includes the steps of: obtaining multiple pictures taken by at least one camera; obtaining attribute information of each of the multiple pictures; and selecting one of the obtained multiple pictures Is a first picture, in which a user selects a picture from the plurality of pictures acquired as a first picture by a selection operation input by an input unit; and acquires from the obtained information according to the acquired attribute information of each picture. In a plurality of pictures, it is determined that a picture that is the same as or similar to the attribute information of the first picture and is different from the first picture is a second picture, wherein the attribute information includes a focal length. Determining the attribute information of each picture from the plurality of pictures obtained is a picture that is the same as or similar to the attribute information of the first picture and different from the first picture is the second picture: The focal length of each of the pictures is determined from the plurality of acquired pictures, a picture that is the same as or similar to the focal length of the first picture and different from the first picture is Two screen; and the first picture and the second picture and generating a stitched suture screen. 如申請專利範圍第1項所述的畫面縫合方法,其中,該方法在步驟“獲取至少一攝像頭拍攝的多個畫面”中包括:獲取第一攝像頭拍攝的畫面及獲取第二攝像頭拍攝的畫面,其中所述第一攝像頭拍攝的畫面的時間點與所述第二攝像頭拍攝的畫面的時間點不同。The picture stitching method according to item 1 of the scope of the patent application, wherein the method includes in the step "obtaining multiple pictures taken by at least one camera": obtaining pictures taken by the first camera and pictures obtained by the second camera, The time point of the picture taken by the first camera is different from the time point of the picture taken by the second camera. 如申請專利範圍第1項所述的畫面縫合方法,其中,所述屬性資訊包括亮度,該方法在步驟“根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面”中包括:根據獲取的每個畫面的亮度從所述獲取的多個畫面中確定一與所述第一畫面的亮度資訊相同或相近且不同於所述第一畫面的畫面為第二畫面。The picture stitching method according to item 1 of the scope of the patent application, wherein the attribute information includes brightness, and the method determines, in a step "from the acquired plurality of pictures, The attribute information of the first picture is the same or similar and the picture different from the first picture is the second picture. The method includes: determining one of the plurality of pictures from the plurality of pictures obtained according to the brightness of each picture obtained. The first picture has the same or similar brightness information and is different from the first picture is the second picture. 一種畫面縫合方法,其改良在於,該方法包括步驟:獲取至少一攝像頭拍攝的多個畫面;獲取所述多個畫面中每一畫面的屬性資訊;從獲取的所述多個畫面中選擇一個畫面為第一畫面,其中,接收使用者藉由一輸入單元輸入的選擇操作從獲取的所述多個畫面中選中一畫面為第一畫面;根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一與所述第一畫面的屬性不同且不同於所述第一畫面的畫面為第二畫面,其中,所述屬性資訊包括對比度,該方法在步驟“根據獲取的每個畫面的屬性資訊從所述獲取的多個畫面中確定一不同於所述第一畫面的屬性資訊的畫面為第二畫面”中包括:根據獲取每個畫面的對比度從所述獲取的多個畫面中確定一與所述第一畫面的對比度不同且不同於所述第一畫面的畫面為第二畫面;及將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。A picture stitching method is improved in that the method includes the steps of: obtaining multiple pictures taken by at least one camera; obtaining attribute information of each of the multiple pictures; and selecting one of the obtained multiple pictures Is a first picture, in which a user selects a picture from the plurality of pictures acquired as a first picture by a selection operation input by an input unit; and acquires from the obtained information according to the acquired attribute information of each picture. In a plurality of pictures, it is determined that a picture different from the first picture and different from the first picture is a second picture, wherein the attribute information includes contrast, and the method in step "according to each acquired The attribute information of the picture determines from the acquired pictures that a picture different from the attribute information of the first picture is the second picture. The method includes: acquiring the plurality of pictures from the acquired pictures according to the contrast of acquiring each picture. Determining that a picture having a contrast different from the first picture and different from the first picture is a second picture; and comparing the first picture with the second picture And generating a stitched suture screen. 一種畫面縫合系統,其改良在於,該系統包括:獲取模組,用於獲取至少一攝像頭拍攝的多個畫面及獲取所述多個畫面中每一畫面的屬性資訊;第一畫面確定模組,用於從獲取的所述多個畫面中選擇一個畫面為第一畫面,其中,接收使用者藉由一輸入單元輸入的選擇操作從獲取的所述多個畫面中選中一畫面為第一畫面;第二畫面確定模組,用於根據獲取的每個畫面的屬性資訊從所述獲取模組獲取的多個畫面中確定一與所述第一畫面的屬性資訊相同或相近且不同於所述第一畫面的畫面為第二畫面,其中,所述屬性資訊包括焦距,該第二畫面確定模組根據獲取的每個畫面的焦距從所述多個畫面中確定一與所述第一畫面的焦距相同或相近且不同於所述第一畫面的畫面為第二畫面;及畫面縫合模組,用於將所述第一畫面與所述第二畫面進行縫合並生成一縫合畫面。A picture stitching system is improved in that the system includes: an acquisition module for acquiring multiple pictures taken by at least one camera and acquiring attribute information of each of the multiple pictures; a first picture determining module, For selecting a picture from the plurality of pictures obtained as a first picture, wherein a selection operation input by a user through a input unit is selected by the user to select a picture from the plurality of pictures obtained as a first picture A second picture determining module, configured to determine, from the multiple pictures obtained by the obtaining module, based on the obtained property information of each picture, that one is the same as or similar to the property information of the first picture and different from the first picture; The picture of the first picture is a second picture, wherein the attribute information includes a focal length, and the second picture determination module determines a distance from the first picture from the plurality of pictures according to the obtained focal length of each picture. A picture with the same or similar focal length and different from the first picture is a second picture; and a picture stitching module is used to stitch the first picture and the second picture and generate a seam Screen. 如申請專利範圍第5項所述的畫面縫合系統,其中,該獲取模組獲取第一攝像頭拍攝的畫面及獲取第二攝像頭拍攝的畫面,其中所述第一攝像頭拍攝的畫面的時間點與所述第二攝像頭拍攝的畫面的時間點不同。The picture stitching system according to item 5 of the scope of patent application, wherein the acquisition module obtains a picture taken by the first camera and a picture taken by the second camera, wherein the time point of the picture taken by the first camera and the The time points of the pictures captured by the second camera are different. 如申請專利範圍第6項所述的畫面縫合系統,其中,所述屬性資訊包括亮度,該第二畫面確定模組根據獲取的每個畫面的亮度從所述多個畫面中確定一與所述第一畫面的亮度資訊相同或相近且不同於所述第一畫面的畫面為第二畫面。The picture stitching system according to item 6 of the scope of patent application, wherein the attribute information includes brightness, and the second picture determination module determines one of the plurality of pictures according to the obtained brightness of each picture. The first picture has the same or similar brightness information and is different from the first picture is the second picture.
TW106145821A 2017-12-26 2017-12-26 Picture sewing method and picture sewing system TWI658435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106145821A TWI658435B (en) 2017-12-26 2017-12-26 Picture sewing method and picture sewing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106145821A TWI658435B (en) 2017-12-26 2017-12-26 Picture sewing method and picture sewing system

Publications (2)

Publication Number Publication Date
TWI658435B true TWI658435B (en) 2019-05-01
TW201928873A TW201928873A (en) 2019-07-16

Family

ID=67347927

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106145821A TWI658435B (en) 2017-12-26 2017-12-26 Picture sewing method and picture sewing system

Country Status (1)

Country Link
TW (1) TWI658435B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589050A (en) * 2004-09-23 2005-03-02 美博通信设备(北京)有限公司 Method for shooting and browsing panoramic film using mobile terminal
US20100265313A1 (en) * 2009-04-17 2010-10-21 Sony Corporation In-camera generation of high quality composite panoramic images
CN103685945A (en) * 2013-11-28 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photography method and mobile terminal for implementing same
US20150138311A1 (en) * 2013-11-21 2015-05-21 Panavision International, L.P. 360-degree panoramic camera systems
CN106157241A (en) * 2015-04-22 2016-11-23 无锡天脉聚源传媒科技有限公司 A kind of method and device of Panorama Mosaic

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589050A (en) * 2004-09-23 2005-03-02 美博通信设备(北京)有限公司 Method for shooting and browsing panoramic film using mobile terminal
US20100265313A1 (en) * 2009-04-17 2010-10-21 Sony Corporation In-camera generation of high quality composite panoramic images
US20150138311A1 (en) * 2013-11-21 2015-05-21 Panavision International, L.P. 360-degree panoramic camera systems
CN103685945A (en) * 2013-11-28 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photography method and mobile terminal for implementing same
CN106157241A (en) * 2015-04-22 2016-11-23 无锡天脉聚源传媒科技有限公司 A kind of method and device of Panorama Mosaic

Also Published As

Publication number Publication date
TW201928873A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US10623661B2 (en) Image composition method with image sensors having different angles of view and electronic device for supporting the same
CN110036647B (en) Electronic device for managing thumbnails of three-dimensional content
CN107566693B (en) Electronic device and image capturing method thereof
US10868959B2 (en) Method for processing image and electronic device for supporting same
US20160180593A1 (en) Wearable device-based augmented reality method and system
US10257416B2 (en) Apparatus and method for setting camera
US9819870B2 (en) Photographing method and electronic device
EP3293962A1 (en) Electronic apparatus and controlling method thereof
KR102327779B1 (en) Method for processing image data and apparatus for the same
CN105282430B (en) Electronic device using composition information of photograph and photographing method using the same
CN107659769B (en) A kind of image pickup method, first terminal and second terminal
US10848669B2 (en) Electronic device and method for displaying 360-degree image in the electronic device
US10818057B2 (en) Spherical content editing method and electronic device supporting same
US20170142382A1 (en) Communication apparatus, method of controlling communication apparatus, non-transitory computer-readable storage medium
US10999501B2 (en) Electronic device and method for controlling display of panorama image
KR20160061133A (en) Method for dispalying image and electronic device thereof
TWI640197B (en) System and method for making picture
US20160286132A1 (en) Electronic device and method for photographing
WO2020042494A1 (en) Method for screenshot of vr scene, device and storage medium
KR20150027934A (en) Apparatas and method for generating a file of receiving a shoot image of multi angle in an electronic device
KR102501713B1 (en) Method for displaying an image and an electronic device thereof
CN107450996B (en) Information prompting method, mobile terminal and computer readable storage medium
US20200074217A1 (en) Techniques for providing user notice and selection of duplicate image pruning
KR102246645B1 (en) Apparatus and method for obtaining image
TWI658435B (en) Picture sewing method and picture sewing system