[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

TW201539371A - Method for selecting picture displaying template and electronic apparatus thereof - Google Patents

Method for selecting picture displaying template and electronic apparatus thereof Download PDF

Info

Publication number
TW201539371A
TW201539371A TW103112839A TW103112839A TW201539371A TW 201539371 A TW201539371 A TW 201539371A TW 103112839 A TW103112839 A TW 103112839A TW 103112839 A TW103112839 A TW 103112839A TW 201539371 A TW201539371 A TW 201539371A
Authority
TW
Taiwan
Prior art keywords
display
pictures
frames
sorted
picture
Prior art date
Application number
TW103112839A
Other languages
Chinese (zh)
Inventor
Chih-Jen Cheng
Sz-Chen Lin
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW103112839A priority Critical patent/TW201539371A/en
Publication of TW201539371A publication Critical patent/TW201539371A/en

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

A method for selecting a picture displaying template and an electronic apparatus thereof are provided. The method includes: obtaining a plurality of pictures; according to the number of the pictures, selecting at least one displaying template conforming to the number of the pictures, wherein the displaying templates includes a plurality of picture frames, and the number of the picture frames is equal to the number of the pictures; obtaining a plurality of sorted picture sizes of the pictures and a plurality of sorted frame sizes of the picture frames in the displaying templates; calculating a plurality of difference scores between the sorted picture sizes and the sorted frame sizes of the picture frames in the displaying templates; and selecting the displaying template with the lowest difference score, and displaying the pictures into the selected displaying template.

Description

圖片顯示版型的選擇方法與電子裝置 Picture display type selection method and electronic device

本發明是有關於一種圖片顯示技術,且特別是有關於一種顯示多張圖片時的圖片顯示版型的選擇方法與使用此方法的電子裝置。 The present invention relates to a picture display technology, and more particularly to a method for selecting a picture display layout when displaying a plurality of pictures and an electronic device using the same.

隨著科技產業日益發達,人人幾乎都可透過安裝有照相應用程式的智慧手機或其他電子裝置,隨手隨拍並累積多張照片檔案。在某些情況下,使用者會有分享單張含有多個照片的需求,其中這些照片通常包括風景、人物或食物等照片。因此,如何讓使用者選擇多張照片之後,可以自動地選擇適合所選照片之顯示版型,以透過顯示版型中的各圖框來顯示這些照片,成為提供良好使用者體驗的指標之一。較佳的顯示版型之選擇方式,可讓使用者一次就完成編輯然後馬上分享;而較呆板的顯示版型之選擇方式,則會讓使用者需要增加多個操作步驟才能達到目的。 With the development of the technology industry, almost everyone can take photos and accumulate multiple photo files through smart phones or other electronic devices with camera applications. In some cases, users will have the need to share a single photo with multiple photos, which typically include photos of landscapes, people, or food. Therefore, how to let the user select multiple photos can automatically select the display version suitable for the selected photos to display the photos through the frames in the display version, which becomes one of the indicators for providing a good user experience. . The preferred display type selection method allows the user to complete editing and share immediately; and the more rigid display mode selection method allows the user to add multiple operation steps to achieve the goal.

目前電子裝置中安裝的應用程式所提供的顯示版型之選 擇方式主要可分以下兩類。於第一類中,使用者需先選擇所要的顯示版型,其中顯示版型包括已設計的圖框排列方式。在使用者選擇多個照片後,應用程式再依照此選擇的順序,將照片塞入到顯示版型中對應的圖框內。然而,若使用者發現某些照片被放置的圖框的位置不合適,則使用者必須再手動拖拉調換照片被放置的位置。於第二類中,使用者需先選擇多張照片,接著,應用程式再自行套用第一個符合照片數目的顯示版型,但至於此版型內哪一張照片要放入哪一個圖框,則仍依照既定選擇照片的順序,依序將照片塞入到顯示版型中對應的圖框內。因此,若使用者發現某些照片被放置的圖框位置不合適,則仍需再手動拖拉調換照片被放置的位置。基此,無論透過上述任一種方式,使用者皆需要增加多個操作步驟或手動微調,才能將多個照片放到適當的顯示版型中之各圖框中,故對於使用者而言相當地不方便。 The display version of the application currently installed in the electronic device The selection method can be divided into the following two categories. In the first category, the user needs to select the desired display layout, and the display layout includes the designed layout of the frames. After the user selects multiple photos, the application then inserts the photos into the corresponding frames in the display layout in the order selected. However, if the user finds that the position of the frame in which some photos are placed is not appropriate, the user must manually drag and drop the position where the photo is placed. In the second category, the user has to select multiple photos first, and then the application applies the first display version that matches the number of photos, but which frame is placed in which frame. Then, in accordance with the order in which the photos are selected, the photos are sequentially inserted into the corresponding frames in the display layout. Therefore, if the user finds that the position of the frame where some photos are placed is not suitable, it is still necessary to manually drag and drop the position where the photo is placed. Therefore, whether by using any of the above methods, the user needs to add a plurality of operation steps or manual fine adjustment, so that a plurality of photos can be placed in each frame of the appropriate display layout, so that the user is quite inconvenient.

有鑑於此,本發明提供一種圖片顯示版型的選擇方法與其電子裝置,其可讓使用者在選擇圖片後,即可快速得到符合圖片數目以及以適當大小比例呈現各圖片的顯示版型。 In view of the above, the present invention provides a method for selecting a picture display type and an electronic device thereof, which can enable a user to quickly obtain a display version that matches the number of pictures and presents each picture in an appropriate size ratio after selecting a picture.

本發明提出一種圖片顯示版型的選擇方法,適用於電子裝置。此選擇方法包括:取得多個圖片;根據所述圖片的圖片數目,選取符合所述圖片數目的至少一顯示版型,其中所述顯示版型具有多個圖框,且所述圖框的圖框數目與所述圖片數目相同; 取得所述圖片排序後的多個圖片尺寸以及所述顯示版型的所述圖框排序後的多個圖框尺寸;計算排序後的所述圖片尺寸與排序後的所述顯示版型的所述圖框之間的多個差異值分數;以及選取所述差異值分數中最小者所對應的顯示版型,並將所述圖片套用至此顯示版型中而產生一個圖片組合。 The invention provides a method for selecting a picture display type, which is suitable for an electronic device. The selection method includes: obtaining a plurality of pictures; selecting at least one display layout that matches the number of the pictures according to the number of pictures of the picture, wherein the display layout has a plurality of frames, and the frame of the frame The number of frames is the same as the number of pictures; Obtaining a plurality of picture sizes after the picture is sorted and a plurality of frame sizes sorted by the frame of the display version; calculating the sorted picture size and the sorted display format a plurality of difference value scores between the frames; and selecting a display version corresponding to the smallest one of the difference value scores, and applying the picture to the display version to generate a picture combination.

本發明提出一種電子裝置,其包括螢幕、儲存單元以及處理單元。螢幕用以顯示圖片。儲存單元用以儲存多個模組。處理單元耦接螢幕以及儲存單元,存取並執行儲存單元所儲存的所述模組。所述模組包括圖片取得模組、版型選取模組、排序模組、計算模組以及組合模組。圖片取得模組用以取得多個圖片。版型選取模組則會根據所述圖片的圖片數目,選取符合所述圖片數目的至少一顯示版型,其中所述顯示版型具有多個圖框,且所述圖框的圖框數目與所述圖片數目相同。排序模組會取得所述圖片排序後的多個圖片尺寸以及所述顯示版型的所述圖框排序後的多個圖框尺寸。計算模組會計算排序後的所述圖片尺寸與排序後的所述顯示版型的所述圖框之間的多個差異值分數。組合模組會選取所述差異值分數中最小者所對應的顯示版型,並將所述圖片套用至此顯示版型中而產生一個圖片組合。 The invention provides an electronic device comprising a screen, a storage unit and a processing unit. The screen is used to display pictures. The storage unit is used to store a plurality of modules. The processing unit is coupled to the screen and the storage unit to access and execute the module stored by the storage unit. The module includes a picture acquisition module, a layout selection module, a sorting module, a computing module, and a combination module. The picture acquisition module is used to obtain multiple pictures. The version selection module selects at least one display version that matches the number of the pictures according to the number of pictures of the picture, wherein the display version has a plurality of frames, and the number of frames of the frame is The number of pictures is the same. The sorting module obtains a plurality of picture sizes after the picture is sorted and a plurality of frame sizes after the frame of the display version is sorted. The computing module calculates a plurality of difference value scores between the sorted picture size and the sorted frame of the display version. The combination module selects the display version corresponding to the smallest of the difference value scores, and applies the picture to the display version to generate a picture combination.

基於上述,在本實施例的圖片顯示版型的選擇方法以及使用此方法的電子裝置中,使用者選取圖片後,電子裝置會取得符合圖片數目的一個或多個顯示版型,並根據各顯示版型中已排序的圖框尺寸與已排序的圖片尺寸,來計算各顯示版型所對應的 圖框與圖片之間的差異值分數,藉以選取差異值分數最小者所對應的顯示版型,來將各圖片顯示於所選之顯示版型的各圖框中。藉此,使用者只需選取欲組合的圖片,則電子裝置會自動選擇適當的顯示版型,並適當地將各圖片顯示於此顯示版型的各圖框中,讓使用者可方便且快速的產生圖片組合。 Based on the above, in the method for selecting a picture display version of the embodiment and the electronic device using the method, after the user selects the picture, the electronic device obtains one or more display patterns conforming to the number of pictures, and according to each display The size of the sorted frame in the layout and the size of the sorted image to calculate the corresponding display type The difference value score between the frame and the picture is used to select the display version corresponding to the smallest difference value score to display each picture in each frame of the selected display version. Therefore, the user only needs to select the image to be combined, and the electronic device automatically selects an appropriate display layout, and displays each image appropriately in each frame of the display layout, so that the user can conveniently and quickly Generate a combination of images.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

100‧‧‧電子裝置 100‧‧‧Electronic devices

110‧‧‧螢幕 110‧‧‧ screen

120‧‧‧儲存單元 120‧‧‧ storage unit

121‧‧‧圖片取得模組 121‧‧‧Photo Acquisition Module

122‧‧‧版型選取模組 122‧‧‧ version selection module

123‧‧‧排序模組 123‧‧‧Sorting module

124‧‧‧計算模組 124‧‧‧Computation Module

125‧‧‧組合模組 125‧‧‧ combination module

130‧‧‧處理單元 130‧‧‧Processing unit

30‧‧‧圖片組合 30‧‧‧ Picture combination

300‧‧‧顯示版型資料庫 300‧‧‧Display version database

P1~P4‧‧‧圖片 P1~P4‧‧‧ Pictures

T2-1、T3-1、T3-2、T3-3、T3-4、T4-1、T4-2、T4-3、T4-4、T5-1、T5-2、T6-1‧‧‧顯示版型 T 2-1 , T 3-1 , T 3-2 , T 3-3 , T 3-4 , T 4-1 , T 4-2 , T 4-3 , T 4-4 , T 5-1 , T 5-2 , T 6-1 ‧‧‧ display version

r1~r4、R、R1-1~R1-4、R2-1~R2-4、R3-1~R3-4、R4-1~R4-4‧‧‧比值 r 1 ~r 4 , R, R 1-1 ~R 1-4, R 2-1 ~R 2-4, R 3-1 ~R 3-4 , R 4-1 ~R 4-4 ‧‧‧ ratio

S202、S204、S206、S208、S210‧‧‧圖片顯示版型的選擇方法各步驟 S202, S204, S206, S208, S210‧‧‧ Picture display version selection method steps

圖1是依照本發明一實施例所繪示的電子裝置的方塊圖。 FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention.

圖2是依據本發明之一實施例繪示的圖片顯示版型的選擇方法的流程圖。 2 is a flow chart of a method for selecting a picture display version according to an embodiment of the invention.

圖3A至圖3E是依據本發明之一實施例繪示的圖片顯示版型的選擇方法的示意圖。 3A-3E are schematic diagrams showing a method of selecting a picture display version according to an embodiment of the invention.

電子裝置所安裝的應用程式通常可提供數種顯示版型給使用者選擇,而各顯示版型所含有的圖框大小資訊,其實可用來和使用者所選的多張圖片進行比對,藉以選擇適當的顯示版型。例如,若所選取的多張圖片為2張橫向圖片以及2張直立圖片,則較適合的顯示版型應要含有2張橫向以及2張直立與所述圖片 比例相符的圖框。本發明便是基於上述觀點而提出的圖片顯示版型的選擇方法以及其電子裝置。為了使本發明之內容更為明瞭,以下特舉實施例做為本發明確實能夠據以實施的範例。 The application installed in the electronic device usually provides several display layouts for the user to select, and the frame size information contained in each display version can be used to compare with multiple images selected by the user. Choose the appropriate display layout. For example, if the selected multiple images are 2 horizontal images and 2 vertical images, the more suitable display layout should contain 2 horizontal and 2 vertical and the pictures. Proportional frame. The present invention is a method for selecting a picture display type and an electronic device thereof based on the above viewpoint. In order to make the content of the present invention clearer, the following specific embodiments are examples of the invention that can be implemented.

圖1是依照本發明一實施例所繪示的電子裝置的方塊圖。請參照圖1,電子裝置100包括螢幕110、儲存單元120,以及處理單元130。電子裝置100例如是手機、個人數位助理、智慧型手機、平板電腦、電子書,或遊戲機等,在此並不對電子裝置100的種類加以限制。 FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention. Referring to FIG. 1 , the electronic device 100 includes a screen 110 , a storage unit 120 , and a processing unit 130 . The electronic device 100 is, for example, a mobile phone, a personal digital assistant, a smart phone, a tablet computer, an e-book, or a game machine. The type of the electronic device 100 is not limited herein.

螢幕110用以顯示多個圖片。螢幕110可以是各種類型的觸控螢幕,例如電阻式(resistive)觸控螢幕、電容式(capacitive)觸控螢幕、光學式(optical)觸控螢幕、聲波式(acoustic wave)觸控螢幕、電磁式(electromagnetic)觸控螢幕等,但並不限制於此。具有觸控功能的螢幕110可做為電子裝置100的輸入/輸出介面。也就是說,螢幕110可以接收來自使用者的觸碰輸入(例如接收使用者選擇圖片的觸碰訊號),且可以顯示電子裝置100中的資訊(例如顯示圖片相簿以及所選擇的圖片)。在一實施例中,螢幕110也可以是單純僅具有顯示功能的液晶螢幕,使用者必須透過如滑鼠、鍵盤、手寫板等輸入介面來進行輸入。 The screen 110 is used to display a plurality of pictures. The screen 110 can be various types of touch screens, such as a resistive touch screen, a capacitive touch screen, an optical touch screen, an acoustic wave touch screen, and electromagnetic Electromagnetic touch screen, etc., but is not limited thereto. The touch screen 110 can be used as an input/output interface of the electronic device 100. That is, the screen 110 can receive a touch input from the user (eg, receive a touch signal of the user selecting a picture), and can display information in the electronic device 100 (eg, display a picture album and the selected picture). In one embodiment, the screen 110 may also be a liquid crystal screen having only a display function. The user must input through an input interface such as a mouse, a keyboard, or a tablet.

儲存單元120例如是記憶體、硬碟或是其他任何可用於儲存資料的元件,而可用以儲存多個模組。所述多個模組包括圖片取得模組121、版型選取模組122、排序模組123、計算模組124以及組合模組125,其可以程式碼的型式儲存於儲存單元120中。 The storage unit 120 is, for example, a memory, a hard disk, or any other component that can be used to store data, and can be used to store a plurality of modules. The plurality of modules include a picture acquisition module 121, a pattern selection module 122, a sorting module 123, a calculation module 124, and a combination module 125, which are stored in the storage unit 120 in a coded format.

處理單元130耦接螢幕110以及儲存單元120,其可為具有一或多個處理核心的中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置或這些裝置的組合,而可用以存取並執行儲存單元120中儲存的圖片取得模組121、版型選取模組122、排序模組123、計算模組124以及組合模組125。 The processing unit 130 is coupled to the screen 110 and the storage unit 120, which may be a central processing unit (CPU) having one or more processing cores, or other programmable general purpose or special purpose microprocessors. , Digital Signal Processor (DSP), programmable controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD) or other similar devices or The combination of these devices can be used to access and execute the image acquisition module 121, the template selection module 122, the sequencing module 123, the calculation module 124, and the combination module 125 stored in the storage unit 120.

在本實施例中,電子裝置100可在接收到使用者選取的多個圖片後,快速取得符合各圖片且以適當大小比例來呈現這些圖片的顯示版型,以將這些圖片逐一套入此顯示版型中對應的多個圖框中。具體細節如下。 In this embodiment, after receiving a plurality of pictures selected by the user, the electronic device 100 can quickly obtain a display version that conforms to each picture and present the pictures in an appropriate size ratio, so as to put the pictures into the display one by one. Multiple frames in the layout. The specific details are as follows.

圖2是依據本發明之一實施例繪示的圖片顯示版型的選擇方法的流程圖。本實施例提出的方法可由圖1中的電子裝置100執行,以下即搭配圖1的各個元件來說明本實施例各個步驟的細節。 2 is a flow chart of a method for selecting a picture display version according to an embodiment of the invention. The method proposed in this embodiment can be performed by the electronic device 100 in FIG. 1, and the details of the steps of the embodiment are described below in conjunction with the various elements of FIG. 1.

於步驟S202中,圖片取得模組121會取得多個圖片,其中這些圖片可儲存於儲存單元120中,或者是儲存於雲端伺服器中或其他儲存裝置(未繪示)中,不限於此。具體而言,使用者可在螢幕120上直接點選圖片,或者透過輸入介面(例如滑鼠、鍵盤、手寫板等工具)點選圖片,以自儲存單元120、雲端伺服器 或其他儲存裝置中選取需要進行組合的圖片,而圖片取得模組121便會根據使用者的選擇來取得使用者所選取的圖片。 In step S202, the image obtaining module 121 may obtain a plurality of pictures, wherein the pictures may be stored in the storage unit 120, or stored in a cloud server or other storage device (not shown), and are not limited thereto. Specifically, the user can directly select a picture on the screen 120, or click an image through an input interface (such as a mouse, a keyboard, a tablet, etc.) to select the self-storage unit 120 and the cloud server. Or the other storage device selects a picture to be combined, and the picture obtaining module 121 obtains the picture selected by the user according to the user's selection.

於步驟S204中,版型選取模組122會根據上述所選擇的圖片的圖片數目,來選取符合此圖片數目的至少一個顯示版型,其中這些顯示版型具有多個圖框,且這些圖框的圖框數目與所述圖片數目相同。也就是說,這些顯示版型可具有不同圖框數目以及不同的圖框排列樣式,而版型選取模組122在此會選擇圖框數目與圖片數目相同的一個或多個顯示版型。此外,所述顯示版型亦可儲存於儲存單元120、雲端伺服器或其他儲存裝置,不限於此。 In step S204, the stencil selection module 122 selects at least one display version that matches the number of the pictures according to the number of pictures of the selected picture, wherein the display patterns have multiple frames, and the frames are The number of frames is the same as the number of pictures. That is to say, these display layouts may have different number of frames and different frame arrangement patterns, and the layout selection module 122 will select one or more display layouts having the same number of frames as the number of pictures. In addition, the display layout may also be stored in the storage unit 120, the cloud server or other storage device, and is not limited thereto.

於步驟S206中,排序模組123會取得所述圖片排序後的多個圖片尺寸,以及取得所述至少一顯示版型的圖框排序後的多個圖框尺寸。此處的圖框尺寸及圖片尺寸,分別例如是圖框及圖片的長寬比值,或者是圖框及圖片的寬長比值。亦即,若圖框尺寸為圖框的長寬比值,則圖片尺寸為圖片的長寬比值。若圖框尺寸為圖框的寬長比值,則圖片尺寸為圖片的寬長比值。 In step S206, the sorting module 123 obtains a plurality of picture sizes after the picture is sorted, and obtains a plurality of frame sizes after the frame of the at least one display version is sorted. The frame size and image size here are, for example, the aspect ratio of the frame and the image, or the width to length ratio of the frame and the image. That is, if the frame size is the aspect ratio of the frame, the image size is the aspect ratio of the image. If the frame size is the width to length ratio of the frame, the image size is the aspect ratio of the image.

此外,由於各顯示版型的資訊中記錄了各圖框的長度及寬度,因此,排序模組123可根據圖框的長度及寬度來計算各圖框的長寬比值(或寬長比值),並依照圖框的長寬比值(或寬長比值)的大小進行排序,以取得各顯示版型中依照第一順序排序的圖框尺寸。當然,排序模組123可預先將顯示版型中的各圖框,依照圖框的長寬比值(或寬長比值)進行排序,據以建立顯示版型資料庫。藉此,對應於各種圖片數目,排序模組123可立即自 此顯示版型資料庫中,選取出符合圖片數目的各顯示版型,以及取得已排序的圖框尺寸。另一方面,由於圖片的資訊中也可記錄圖片的長度及寬度,因此,排序模組123也可根據各圖片的長度及寬度來計算圖片的長寬比值(或寬長比值),並依照圖片的長寬比值(或寬長比值)的大小進行排序,以取得依照第二順序排序的圖片尺寸。 In addition, since the length and width of each frame are recorded in the information of each display version, the sorting module 123 can calculate the aspect ratio (or the aspect ratio) of each frame according to the length and width of the frame. And sorting according to the aspect ratio (or width to length ratio) of the frame to obtain the frame size sorted according to the first order in each display version. Of course, the sorting module 123 can pre-order each frame in the display version according to the aspect ratio (or width to length ratio) of the frame, thereby establishing a display version database. Thereby, the sorting module 123 can immediately start from the number of various pictures. In the display layout database, select the display layouts that match the number of images, and obtain the sorted frame size. On the other hand, since the length and width of the picture can also be recorded in the information of the picture, the sorting module 123 can also calculate the aspect ratio (or aspect ratio) of the picture according to the length and width of each picture, and according to the picture. The aspect ratio (or width to length ratio) is sorted to obtain the size of the image sorted in the second order.

舉例來說,排序模組123可依照各顯示版型中圖框的長寬比值(或寬長比值),由小至大遞增排序各顯示版型中的圖框,以及依照圖片的長寬比值(或寬長比值),由小至大遞增排序圖片。當然,在其他實施例中,排序模組123亦可由大到小遞減排序所述圖框及圖片。此外,若各圖框之間的長寬比值(或寬長比值)相同,則排序模組123會對應依照各圖框的寬度(或長度)進行排序。相似地,若各圖片之間的長寬比值(或寬長比值)相同,則排序模組123會依照圖片的寬度(或長度)進行排序。 For example, the sorting module 123 can sort the frames in each display version from small to large according to the aspect ratio (or aspect ratio) of the frame in each display version, and according to the aspect ratio of the image. (or width to length ratio), sorting pictures from small to large increments. Of course, in other embodiments, the sorting module 123 can also sort the frames and pictures from large to small. In addition, if the aspect ratio (or the aspect ratio) between the frames is the same, the sorting module 123 sorts according to the width (or length) of each frame. Similarly, if the aspect ratios (or width to length ratio) between the images are the same, the sorting module 123 sorts according to the width (or length) of the image.

在步驟S208中,計算模組124會計算排序後的圖框尺寸以及圖片尺寸之間的多個差異值分數。舉例來說,假設排序模組123排序各顯示版型中的所述圖框後的長寬比值(或寬長比值)分別為R1~Rn,n為正整數,而排序模組123排序所述圖片後的長寬比值(或寬長比值)分別為r1~rn,則針對j個顯示版型而言,計算模組124所計算的差異值分數S(Tj)為,其中Tj表示第j個顯示版型。 In step S208, the calculation module 124 calculates a plurality of difference value scores between the sorted frame size and the picture size. For example, suppose the sorting module 123 sorts the aspect ratio values (or width-to-length ratio values) of the frames in each display version to R 1 ~R n , n is a positive integer, and the sorting module 123 sorts The aspect ratio (or the aspect ratio) after the picture is r 1 ~r n , respectively, and for the j display layouts, the difference value score S(T j ) calculated by the calculation module 124 is , where T j represents the jth display version.

最後,在步驟S210中,組合模組125會選取這些差異值 分數S(Tj)中最小者所對應的顯示版型,並將所述圖片套用至此顯示版型而產生一個圖片組合。也就是說,在所選取的顯示版型中,組合模組125會將依照所述第一順序排序的所述圖片,對應顯示於依照第二順序排序所對應的所述圖框中。 Finally, in step S210, the combination module 125 selects the display version corresponding to the smallest of the difference value scores S(T j ), and applies the picture to the display version to generate a picture combination. That is to say, in the selected display version, the combination module 125 displays the pictures sorted according to the first order correspondingly in the frame corresponding to the second order.

為了具體說明本實施例的圖片顯示版型的選擇方法,底下再舉一實施例來進行說明。 In order to specifically describe the selection method of the picture display version of the present embodiment, an embodiment will be described below.

圖3A至圖3E是依據本發明之一實施例繪示的圖片顯示版型的選擇方法的示意圖。請參照圖3A,本實施例的排序模組123會預先將各種顯示版型中各圖框依照圖框尺寸進行排序,據以建立顯示版型資料庫300,其中版型資料庫300中包括具有多種圖框數目的顯示版型T2-1、T3-1、T3-2、T3-3、T3-4、T4-1、T4-2、T4-3、T4-4、T5-1、T5-2及T6-1等,但本實施例並不限制顯示版型的數目。舉例來說,顯示版型T2-1表示具有2個圖框的顯示版型,T3-1表示具有3個圖框的第一種顯示版型,而T3-2表示具有3個圖框的第二種顯示版型,T3-3表示具有3個圖框的第三種顯示版型,其餘依此類推。如圖3B所示,排序模組123會排序各種顯示版型中圖框的圖框尺寸。在此,排序模組123是依照圖框的長寬比值,由小到大遞增排序。舉例來說,對於顯示版型T2-1而言,其2個圖框的長寬比值依序是R=1/2及R=2/2。對於顯示版型T3-1而言,其3個圖框的長寬比值依序是R=1/1及R=2/1及R=3/1,其餘依此類推。 3A-3E are schematic diagrams showing a method of selecting a picture display version according to an embodiment of the invention. Referring to FIG. 3A, the sorting module 123 of the present embodiment pre-arranges the frames in the various display layouts according to the frame size, thereby establishing a display layout database 300, wherein the layout database 300 includes Display layouts of various frame numbers T 2-1 , T 3-1 , T 3-2 , T 3-3 , T 3-4 , T 4-1 , T 4-2 , T 4-3 , T 4 -4 , T 5-1 , T 5-2 and T 6-1, etc., but the embodiment does not limit the number of display patterns. For example, the display layout T 2-1 represents a display layout with 2 frames, T 3-1 represents the first display layout with 3 frames, and T 3-2 represents 3 graphics. The second display version of the box, T 3-3 represents the third display version with 3 frames, and so on. As shown in FIG. 3B, the sorting module 123 sorts the frame sizes of the frames in the various display layouts. Here, the sorting module 123 is sorted from small to large in accordance with the aspect ratio value of the frame. For example, for the display version T 2-1 , the aspect ratio values of the two frames are R=1/2 and R=2/2. For the display version T 3-1 , the aspect ratio values of the three frames are R=1/1 and R=2/1 and R=3/1, and so on.

請參照圖3C與圖3D,假設使用者選取圖片數目為4個,其分別為圖片P1~P4,則圖片取得模組121會依據這個圖片數目, 在版型資料庫300中選擇符合4個圖片數目的顯示版型,也就是選擇具有4個圖框的顯示版型,例如顯示版型T4-1、T4-2、T4-3及T4-4,且排序模組123會分別取得顯示版型T4-1、T4-2、T4-3及T4-4由小到大遞增排序的圖框尺寸。舉例來說,對於顯示版型T4-1而言,其排序後的圖框尺寸依序為R1-1~R1-4。對顯示版型T4-2而言,其排序後的圖框尺寸依序為R2-1~R2-4,其餘依此類推。另一方面,排序模組123也會將圖片P1~P4的圖片尺寸進行排序,以取得圖片P1~P4由小到大遞增排序後的圖片尺寸r1~r4Please refer to FIG. 3C and FIG. 3D. It is assumed that the number of pictures selected by the user is four, which are respectively pictures P1 to P4, and the picture obtaining module 121 selects four pictures in the version database 300 according to the number of pictures. The number of display layouts, that is, the display layout with 4 frames, such as display patterns T 4-1 , T 4-2 , T 4-3 and T 4-4 , and the sorting module 123 will respectively The frame sizes of the display layouts T 4-1 , T 4-2 , T 4-3 , and T 4-4 are sorted from small to large increments. For example, for the display version T 4-1 , the sorted frame size is sequentially R 1-1 ~ R 1-4 . For the display version T 4-2 , the sorted frame size is sequentially R 2-1 ~ R 2-4 , and so on. On the other hand, the sorting module 123 also sorts the picture sizes of the pictures P1 to P4 to obtain the picture sizes r 1 to r 4 after the pictures P1 to P4 are sorted from small to large.

接著,計算模組124會計算排序後的圖框尺寸R1-1~R1-4、R2-1~R2-4、R3-1~R3-4及R4-1~R4-4分別與圖片尺寸r1~rn之間的差異值分數,藉以選擇差異值分數最小者所對應的顯示版型。如圖3E所示,假設顯示版型T4-2中圖框尺寸R2-1~R2-4與圖片尺寸r1~r4之間的差異值分數最小,則組合模組125便會選取此顯示版型T4-2來組合圖片P1~P4。也就是說,組合模組125會依照由小到大遞增的圖框尺寸以及圖片尺寸的排序順序,將圖片P1~P4對應顯示於對應位置上的圖框中,藉以將圖片P1~P4組合成一張新的圖片組合30,並透過螢幕110來顯示。如此一來,使用者只要選擇圖片P1~P4後,即可快速得到符合各圖片P1~P4且以適當大小比例呈現這些圖片P1~P4的顯示版型T4-2,以獲得新的單張圖片組合30。 Next, the calculation module 124 calculates the sorted frame sizes R 1-1 ~ R 1-4, R 2-1 ~ R 2-4, R 3-1 ~ R 3-4, and R 4-1 ~ R 4-4 respectively, the difference value score between the picture sizes r 1 and r n is used to select the display version corresponding to the smallest difference value score. As shown in FIG. 3E, assuming that the difference between the frame size R 2-1 ~ R 2-4 and the picture size r 1 ~ r 4 in the display version T 4-2 is the smallest, the combination module 125 will Select this display version T 4-2 to combine the pictures P1~P4. That is to say, the combination module 125 displays the pictures P1~P4 correspondingly in the frame of the corresponding position according to the frame size of the frame size and the size of the picture size increasing from small to large, so that the pictures P1~P4 are combined into one. The new picture combination 30 is displayed on the screen 110. In this way, the user can quickly obtain the display version T 4-2 corresponding to each picture P1~P4 and present the pictures P1~P4 in an appropriate size ratio by selecting the pictures P1~P4 to obtain a new leaflet. Picture combination 30.

綜上所述,在本實施例的圖片顯示版型的選擇方法以及電子裝置中,電子裝置提供了將多張圖片合成於單張多圖框的圖片版型之選擇機制。其中,使用者所選的圖片數目會決定可套用 的顯示版型需要具有多少圖框,而電子裝置會選擇符合圖片數目的顯示版型,且圖框數目與圖片數目相同。接著,電子裝置會取得依照比例大小排序的圖框尺寸,以及依照同樣比例大小排序的圖片尺寸,並計算符合的各顯示版型中圖框尺寸與圖片尺寸之間的差異值分數S(Tj):,其中Tj表示第j個顯示版型,Ri為第j個顯示版型中各圖框的圖框尺寸,而ri為各圖片的圖片尺寸。最後,電子裝置會挑選差異值分數最小的顯示版型來做為套用這些圖片的顯示版型,並且將圖片依照圖片尺寸排序的順序,逐一填入上述已排序的各圖框中,藉以將多張圖片組合成新的單張圖片。藉此,使用者只要在選擇圖片後,即可快速得到符合各圖片依適當大小比例呈現的顯示版型,而不需手動選擇顯示版型,亦不需手動調換擺放圖片的圖框或圖片的位置。如此一來,本實施例可提高使用者選擇圖片顯示版型的便利性。 In summary, in the method for selecting a picture display type and the electronic device of the embodiment, the electronic device provides a selection mechanism for combining a plurality of pictures into a picture layout of a single multi-frame. The number of pictures selected by the user determines how many frames the display version can be applied to, and the electronic device selects the display version that matches the number of pictures, and the number of frames is the same as the number of pictures. Then, the electronic device obtains the frame size sorted according to the proportional size, and the image size sorted according to the same scale, and calculates the difference value score S(Tj) between the frame size and the image size in each display version. : Where T j represents the jth display version, R i is the frame size of each frame in the jth display version, and r i is the picture size of each picture. Finally, the electronic device selects the display version with the smallest difference value score as the display version of the image, and fills the image into the above-mentioned sorted frames one by one according to the order of the image size, so as to be more The pictures are combined into a new single picture. In this way, the user can quickly obtain a display version that conforms to the appropriate size ratio of each picture after selecting the picture, without manually selecting the display version, and does not need to manually change the frame or picture of the placed picture. s position. In this way, the embodiment can improve the convenience of the user to select a picture display layout.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

S202、S204、S206、S208、S210‧‧‧圖片顯示版型的選擇方法各步驟 S202, S204, S206, S208, S210‧‧‧ Picture display version selection method steps

Claims (8)

一種圖片顯示版型的選擇方法,適用於一電子裝置,該選擇方法包括:取得多個圖片;根據該些圖片的圖片數目,選取符合該圖片數目的至少一顯示版型,其中該至少一顯示版型具有多個圖框,且該些圖框的圖框數目與該圖片數目相同;取得該些圖片排序後的多個圖片尺寸以及該至少一顯示版型的該些圖框排序後的多個圖框尺寸;計算排序後的該些圖片尺寸與排序後的該至少一顯示版型的該些圖框之間的多個差異值分數;以及選取該些差異值分數中最小者所對應的該顯示版型,並將該些圖片套用至該顯示版型中而產生一圖片組合。 A method for selecting a picture display type is applicable to an electronic device. The selection method includes: obtaining a plurality of pictures; and selecting, according to the number of pictures of the pictures, at least one display version that matches the number of the pictures, wherein the at least one display The layout has a plurality of frames, and the number of frames of the frames is the same as the number of the images; and the plurality of image sizes after the images are sorted and the frames of the at least one display version are sorted a frame size; calculating a plurality of difference value scores between the sorted image size and the sorted frames of the at least one display version; and selecting a minimum of the difference value scores The display version and the pictures are applied to the display version to produce a picture combination. 如申請專利範圍第1項所述的圖片顯示版型的選擇方法,其中該些圖片尺寸為該些圖片的長寬比值且該些圖框尺寸為該些圖框的長寬比值,或者,該些圖片尺寸為該些圖片的寬長比值且該些圖框尺寸為該些圖框的寬長比值。 The method for selecting a picture display version according to claim 1, wherein the picture size is an aspect ratio of the pictures and the frame size is an aspect ratio of the frames, or The picture sizes are the aspect ratios of the pictures and the frame sizes are the aspect ratios of the frames. 如申請專利範圍第1項所述的圖片顯示版型的選擇方法,其中取得該些圖片排序後的多個圖片尺寸以及該至少一顯示版型的該些圖框排序後的該些圖框尺寸的步驟包括:針對各該顯示版型,分別排序各該顯示版型中該些圖框的該些圖框尺寸,以取得各該顯示版型中依照一第一順序排序的該些 圖框的該些圖框尺寸;以及排序該些圖片的該些圖片尺寸,以取得依照一第二順序排序的該些圖片尺寸。 The method for selecting a picture display version according to claim 1, wherein the plurality of picture sizes after the pictures are sorted and the frame sizes after the frames of the at least one display version are sorted are obtained. The step of: sorting the frame sizes of the frames in each display layout for each of the display layouts to obtain the rankings in the first order according to each of the display layouts. The frame sizes of the frame; and the image sizes of the images are sorted to obtain the image sizes sorted according to a second order. 如申請專利範圍第3項所述的圖片顯示版型的選擇方法,其中選取該些差異值分數中最小者所對應的該顯示版型,並將該些圖片套用至該顯示版型而產生該圖片組合的步驟包括:在所選取的該顯示版型中,將依照該第二順序排序的該些圖片,對應顯示於依照該第一順序排序所對應的該些圖框中。 The method for selecting a picture display version according to claim 3, wherein the display version corresponding to the smallest of the difference value points is selected, and the pictures are applied to the display version to generate the The step of combining the pictures includes: displaying, in the selected display version, the pictures sorted according to the second order, correspondingly displayed in the frames corresponding to the first order. 一種電子裝置,包括:一螢幕,用以顯示多個圖片;一儲存單元,儲存多個模組;以及一處理單元,耦接該螢幕以及該儲存單元,存取並執行該儲存單元所儲存的該些模組,其中該些模組包括:一圖片取得模組,取得該些圖片;一版型選取模組,根據該些圖片的圖片數目,選取符合該圖片數目的至少一顯示版型,其中該至少一顯示版型具有多個圖框,且該些圖框的圖框數目與該圖片數目相同;一排序模組,取得該些圖片排序後的多個圖片尺寸以及該至少一顯示版型的該些圖框排序後的多個圖框尺寸;一計算模組,計算排序後的該些圖片尺寸與排序後的該至少一顯示版型的該些圖框之間的多個差異值分數;以及一組合模組,選取該些差異值分數中最小者所對應的該 顯示版型,並將該些圖片套用至該顯示版型中而產生一圖片組合。 An electronic device includes: a screen for displaying a plurality of pictures; a storage unit for storing a plurality of modules; and a processing unit coupled to the screen and the storage unit for accessing and executing the storage of the storage unit The modules, wherein the modules include: a picture acquisition module to obtain the pictures; and a version selection module, according to the number of pictures of the pictures, selecting at least one display version that matches the number of the pictures, The at least one display version has a plurality of frames, and the number of frames of the frames is the same as the number of the images; a sorting module obtains a plurality of image sizes sorted by the images and the at least one display version a plurality of frame sizes sorted by the plurality of frames; a computing module, calculating a plurality of difference values between the sorted image sizes and the sorted frames of the at least one display version a score; and a combination module, selecting the smallest one of the difference value scores Display the layout and apply the images to the display layout to produce a combination of images. 如申請專利範圍第5項所述的電子裝置,其中該些圖片尺寸為該些圖片的長寬比值且該些圖框尺寸為該些圖框的長寬比值,或者,該些圖片尺寸為該些圖片的寬長比值且該些圖框尺寸為該些圖框的寬長比值。 The electronic device of claim 5, wherein the image size is an aspect ratio of the images and the frame size is an aspect ratio of the frames, or the image size is The width to length ratio of the pictures and the frame sizes are the aspect ratios of the frames. 如申請專利範圍第5項所述的電子裝置,其中該排序模組針對各該顯示版型,分別排序各該顯示版型中該些圖框的該些圖框尺寸,以取得各該顯示版型中依照一第一順序排序的該些圖框的該些圖框尺寸,以及該排序模組排序該些圖片的該些圖片尺寸,以取得依照一第二順序排序的該些圖片尺寸。 The electronic device of claim 5, wherein the sorting module sorts the frame sizes of the frames in each display version for each display version to obtain each display version. The frame sizes of the frames sorted according to a first order, and the sorting modules sort the image sizes of the images to obtain the image sizes sorted according to a second order. 如申請專利範圍第7項所述的電子裝置,其中該組合模組在所選取的該顯示版型中,將依照該第二順序排序的該些圖片,對應顯示於依照該第一順序排序所對應的該些圖框中。 The electronic device of claim 7, wherein the combination module sorts the images sorted according to the second order in the selected display layout, and displays the corresponding images in the first order. Corresponding to these frames.
TW103112839A 2014-04-08 2014-04-08 Method for selecting picture displaying template and electronic apparatus thereof TW201539371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103112839A TW201539371A (en) 2014-04-08 2014-04-08 Method for selecting picture displaying template and electronic apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103112839A TW201539371A (en) 2014-04-08 2014-04-08 Method for selecting picture displaying template and electronic apparatus thereof

Publications (1)

Publication Number Publication Date
TW201539371A true TW201539371A (en) 2015-10-16

Family

ID=54851420

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103112839A TW201539371A (en) 2014-04-08 2014-04-08 Method for selecting picture displaying template and electronic apparatus thereof

Country Status (1)

Country Link
TW (1) TW201539371A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI564783B (en) * 2015-10-30 2017-01-01 顏駿聲 Automatic typesetting method for photobook, and computer program product and interface system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI564783B (en) * 2015-10-30 2017-01-01 顏駿聲 Automatic typesetting method for photobook, and computer program product and interface system thereof

Similar Documents

Publication Publication Date Title
US10037593B2 (en) Dynamic image presentation
US11538096B2 (en) Method, medium, and system for live preview via machine learning models
US11900675B2 (en) Dynamic image analysis and cropping
CN106997613B (en) 3D model generation from 2D images
US11475617B2 (en) Path-constrained drawing with visual properties based on drawing tool
US10373327B2 (en) Reassembling and repairing torn image pieces
US11270485B2 (en) Automatic positioning of textual content within digital images
KR20170030529A (en) Visualization suggestions
US20200167981A1 (en) Jointly Editing Related Objects in a Digital Image
US20220121705A1 (en) Multi-Resolution Color-Based Image Search
US8564620B2 (en) Method for automatically adjusting the rendered fidelity of elements of a composition
CN105021181B (en) A kind of drawing electronic map area determination method, device and navigation equipment
US20150149882A1 (en) Content adaptation based on selected reviewer comment
WO2019018062A1 (en) Organizing images automatically into image grid layout
JP2016095501A (en) Document layout for electronic display
TW201539371A (en) Method for selecting picture displaying template and electronic apparatus thereof
CN109543495A (en) A kind of face key point mask method, device, electronic equipment and storage medium
CN109214266A (en) Method, computer readable recording medium and system for image procossing
WO2012101700A1 (en) Ui (user interface) creation support device, ui creation support method, and program
CN114913277A (en) Method, device, equipment and medium for three-dimensional interactive display of object
CN109657201B (en) Typesetting display method and device for elements, electronic equipment and storage medium
CN108230112A (en) A kind of internet of things equipment accessory purchasing method, device and computer storage media
US10073819B2 (en) Media table for a digital document
CN115774510A (en) Resolution adaptation method, resolution adaptation device, computer equipment and storage medium
CN110633124A (en) Toolbar display method, apparatus, electronic device and storage medium