[go: up one dir, main page]

TW201510930A - Method for generating dynamic image and electronic device - Google Patents

Method for generating dynamic image and electronic device Download PDF

Info

Publication number
TW201510930A
TW201510930A TW102133043A TW102133043A TW201510930A TW 201510930 A TW201510930 A TW 201510930A TW 102133043 A TW102133043 A TW 102133043A TW 102133043 A TW102133043 A TW 102133043A TW 201510930 A TW201510930 A TW 201510930A
Authority
TW
Taiwan
Prior art keywords
image
target
dynamic image
effect
processor
Prior art date
Application number
TW102133043A
Other languages
Chinese (zh)
Inventor
Han-Yu Dai
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 TW102133043A priority Critical patent/TW201510930A/en
Publication of TW201510930A publication Critical patent/TW201510930A/en

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

A method for generating a dynamic image and an electronic device using the same are provided. The method includes: selecting a target region on an original image according to a first operation, and obtaining at least one target image within the target region; determining at least one special effect acting on the target image, and obtaining a plurality of continuous images according to the special effect acting on the target image; generating the dynamic image based on the continuous images.

Description

動態圖像生成方法與電子裝置 Dynamic image generation method and electronic device

本發明是有關於一種影像處理技術,且特別是有關於一種動態圖像生成方法與電子裝置。 The present invention relates to an image processing technology, and in particular to a dynamic image generating method and an electronic device.

一般來說,動態圖像比原始圖像更加的生動,並且可以呈現出類似於影片的動畫效果。舉例來說,對於同一個物體,靜態圖片中的物體是靜止不動的,而動態圖片中的物體則可以是正在執行連續的動作,例如,執行旋轉或從一個位置至另一個位置等等。 In general, moving images are more vivid than the original image and can be rendered like a movie. For example, for the same object, the objects in the static picture are stationary, while the objects in the dynamic picture can be performing continuous actions, such as performing rotation or moving from one location to another.

雖然目前市面上有許多用來製作動態圖片的應用程式,但是這些應用程式普遍需要使用者執行繁瑣的操作步驟或設定。此外,這些應用程式普遍需要使用者自行上傳多張圖片,然後才能將這些圖片合成為一個動態圖片。然而,上述方式不夠直覺,且由於現代人對於智慧型手機等電子裝置的操作習慣改變,如何以更為直覺的方式來製作動態圖片,以提供較佳的使用者經驗, 實為本領域的技術人員所致力研究的課題之一。 Although there are many applications on the market for making dynamic images, these applications generally require users to perform cumbersome steps or settings. In addition, these applications generally require users to upload multiple images themselves before they can be combined into one dynamic image. However, the above method is not intuitive enough, and because modern people change the operating habits of electronic devices such as smart phones, how to make dynamic pictures in a more intuitive way to provide better user experience, It is one of the topics studied by technicians in the field.

有鑑於此,本發明提供一種動態圖像生成方法與電子裝置,可讓使用者直覺地在圖像上加入特效,並且據以產生相對應的動態圖像。 In view of this, the present invention provides a dynamic image generating method and an electronic device, which allow a user to intuitively add special effects to an image, and accordingly generate a corresponding dynamic image.

本發明提供一種動態圖像生成方法,此方法包括:根據第一操作在原始圖像上選擇至少一目標區域,並獲得所述目標區域內的至少一目標圖像;根據第二操作決定作用於所述目標圖像的至少一特殊效果,並根據作用於所述目標圖像的所述特殊效果獲得多個連續圖像;基於所述連續圖像生成動態圖像。 The present invention provides a dynamic image generating method, the method comprising: selecting at least one target area on an original image according to a first operation, and obtaining at least one target image in the target area; At least one special effect of the target image, and obtaining a plurality of consecutive images according to the special effect acting on the target image; generating a dynamic image based on the continuous image.

從另一角度來看,本發明另提供一種電子裝置,此電子裝置包括螢幕與處理器。螢幕用以顯示原始圖像。處理器耦接螢幕,用以根據第一操作在原始圖像上選擇至少一目標區域,並獲得所述目標區域內的至少一目標圖像。其中處理器更用以根據第二操作決定作用於所述目標圖像的至少一特殊效果,並根據作用於所述目標圖像的所述特殊效果獲得多個連續圖像。其中處理器更用以基於所述連續圖像生成動態圖像。 Viewed from another aspect, the present invention further provides an electronic device including a screen and a processor. The screen is used to display the original image. The processor is coupled to the screen for selecting at least one target area on the original image according to the first operation, and obtaining at least one target image in the target area. The processor is further configured to determine at least one special effect acting on the target image according to the second operation, and obtain a plurality of consecutive images according to the special effect acting on the target image. The processor is further configured to generate a dynamic image based on the continuous image.

基於上述,本發明提供一種動態圖像生成方法與電子裝置,可讓使用者在圖像上利用圈選等操作來選取欲加入特殊效果的目標圖像,並產生帶有此特殊效果的多個連續圖像,然後根據這些連續圖像產生動態圖像。藉此,使用者可以直覺地在原始圖 像上加入特效,並且由電子裝置自動地產生相對應的動態圖像,有效改善使用者經驗。 Based on the above, the present invention provides a dynamic image generating method and an electronic device, which allow a user to select a target image to be added with a special effect by using a circle or the like on an image, and generate a plurality of images with the special effect. Continuous images are then generated based on these successive images. Thereby, the user can intuitively view the original image. The effect is added to the image, and the corresponding dynamic image is automatically generated by the electronic device, thereby effectively improving the user experience.

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

10‧‧‧電子裝置 10‧‧‧Electronic devices

11‧‧‧螢幕 11‧‧‧ screen

12‧‧‧輸入裝置 12‧‧‧ Input device

13‧‧‧處理器 13‧‧‧ Processor

302、304、306‧‧‧輸入軌跡 302, 304, 306‧‧‧ input trajectory

31‧‧‧原始圖像 31‧‧‧ Original image

312、314、316、512、514‧‧‧目標圖像 312, 314, 316, 512, 514‧ ‧ target image

402、404、406‧‧‧位置 402, 404, 406‧‧‧ position

41、42、43、51、52、53‧‧‧連續圖像 41, 42, 43, 51, 52, 53‧‧‧ consecutive images

S202、S204、S206‧‧‧本發明之一實施例中動態圖像生成方法各步驟 S202, S204, S206‧‧‧ steps of the dynamic image generating method in one embodiment of the present invention

圖1為根據本發明之一實施例所繪示的電子裝置的示意圖。 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the invention.

圖2為根據本發明之一實施例所繪示的動態圖像生成方法之流程圖。 2 is a flow chart of a dynamic image generating method according to an embodiment of the invention.

圖3為根據本發明之一實施例所繪示的選擇目標區域的示意圖。 FIG. 3 is a schematic diagram of selecting a target area according to an embodiment of the invention.

圖4為根據本發明之一實施例所繪示的移動效果的示意圖。 FIG. 4 is a schematic diagram of a moving effect according to an embodiment of the invention.

圖5為根據本發明之一實施例所繪示的縮放效果的示意圖。 FIG. 5 is a schematic diagram of a zooming effect according to an embodiment of the invention.

圖1為根據本發明之一實施例所繪示的電子裝置的示意圖。請參照圖1,電子裝置10可以是智慧型手機(smart phone)、個人數位助理(Personal Digital Assistant,PDA)、平板電腦(Tablet PC)、筆記型電腦(notebook)、桌上型電腦或智慧電視(smart TV)等各種具有運算與顯示功能的電子裝置,且不限於此。在本實施例中,電子裝置10包括螢幕11、輸入裝置12及處理器13。 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the invention. Referring to FIG. 1 , the electronic device 10 can be a smart phone, a personal digital assistant (PDA), a tablet PC, a notebook, a desktop computer, or a smart TV. Various electronic devices having arithmetic and display functions, such as (smart TV), are not limited thereto. In the embodiment, the electronic device 10 includes a screen 11, an input device 12, and a processor 13.

螢幕11例如是各式具有顯示功能的顯示器(display)。輸入裝置12例如是滑鼠、鍵盤、遙控器或觸控板(touch pad)等各種供使用者輸入操作指令的輸入裝置。此外,在一實施例中,螢幕11與輸入裝置12也可以結合為觸控螢幕。例如,此觸控螢幕可以是電阻式(resistive)觸控螢幕、電容式(capacitive)觸控螢幕、光學式(optical)觸控螢幕、聲波式(acoustic wave)觸控螢幕或電磁式(electromagnetic)觸控螢幕等,而可用以偵測一輸入工具(例如,使用者的手指或觸控筆等)。藉此,使用者可以透過此輸入工具來靠近或觸碰此觸控螢幕,以透過顯示於此觸控螢幕上的使用者操作介面來下達對電子裝置10的操作指令。 The screen 11 is, for example, various displays having a display function. The input device 12 is, for example, an input device for a user to input an operation command, such as a mouse, a keyboard, a remote controller, or a touch pad. In addition, in an embodiment, the screen 11 and the input device 12 can also be combined into a touch screen. For example, the touch screen can be a resistive touch screen, a capacitive touch screen, an optical touch screen, an acoustic wave touch screen or an electromagnetic type. A touch screen or the like can be used to detect an input tool (for example, a user's finger or a stylus, etc.). Thereby, the user can use the input tool to approach or touch the touch screen to issue an operation command to the electronic device 10 through the user operation interface displayed on the touch screen.

處理器13可以是微處理器(micro-processor)、嵌入式控制器(embedded controller)或中央處理器(central processing unit,CPU)等,且不限於此。此外,電子裝置10還可以包括儲存模組(例如,記憶體或硬碟等)、電源模組(例如,電池)與音訊輸出模組(例如,揚聲器)等等,在此不一一贅述。 The processor 13 may be a micro-processor, an embedded controller, or a central processing unit (CPU), etc., and is not limited thereto. In addition, the electronic device 10 may further include a storage module (eg, a memory or a hard disk, etc.), a power module (eg, a battery), and an audio output module (eg, a speaker), etc., which are not described herein.

圖2為根據本發明之一實施例所繪示的動態圖像生成方法之流程圖。以下將以圖2搭配圖1來對本發明實施例的動態圖像生成方法以及電子裝置10作詳細說明,並且以觸控螢幕作為螢幕11與輸入裝置12的範例。請參照圖2,在步驟S202中,處理器13根據一操作(以下統稱為第一操作)在一原始圖像上選擇一個或多個區域(以下統稱為目標區域)。在本實施例中,原始圖像例如是靜態(static)圖像。 2 is a flow chart of a dynamic image generating method according to an embodiment of the invention. The dynamic image generating method and the electronic device 10 of the embodiment of the present invention will be described in detail below with reference to FIG. 2, and the touch screen is used as an example of the screen 11 and the input device 12. Referring to FIG. 2, in step S202, the processor 13 selects one or more regions (hereinafter collectively referred to as target regions) on an original image in accordance with an operation (hereinafter collectively referred to as a first operation). In the present embodiment, the original image is, for example, a static image.

舉例來說,此觸控螢幕可以顯示此靜態圖片,並且使用者可以透過一輸入工具(例如,手指或觸控筆等)在此觸控螢幕上執行點擊(click)、滑動(slide)或拖曳(drag)等第一操作。然後,處理器13可以獲得此第一操作對應在此原始圖像上的一個或多個輸入軌跡,也就是此點擊、滑動或拖曳等第一操作的輸入軌跡。在本實施例中,此輸入軌跡例如是輸入工具完全接觸到此觸控螢幕時由處理器13獲得。或者,在一實施例中,當輸入工具靠近此觸控螢幕至一預設距離(例如,0.5至1公分)內,處理器13就可以獲得第一操作的輸入軌跡,而輸入工具不需要觸碰到此觸控螢幕。 For example, the touch screen can display the still picture, and the user can perform a click, slide or drag on the touch screen through an input tool (for example, a finger or a stylus pen, etc.). (drag) and other first operations. Then, the processor 13 can obtain one or more input trajectories corresponding to the first operation on the original image, that is, the input trajectory of the first operation such as clicking, sliding or dragging. In the present embodiment, the input track is obtained by the processor 13 when the input tool is completely in contact with the touch screen, for example. Alternatively, in an embodiment, when the input tool is close to the touch screen to a predetermined distance (for example, 0.5 to 1 cm), the processor 13 can obtain the input trajectory of the first operation, and the input tool does not need to touch. I touched this touch screen.

然後,處理器13可以根據此一個或多個輸入軌跡在原始圖像上形成的一個或多個封閉區域,而獲得此一個或多個目標區域。例如,當處理器13偵測到一個輸入軌跡,且此輸入軌跡可在原始圖像上形成一個封閉區域或者幾乎封閉的區域時,處理器13可將此封閉區域或者幾乎封閉的區域作為目標區域。在獲得目標區域之後,處理器13可以獲得此一個或多個目標區域內的一個或多個圖像(以下統稱為目標圖像)。 The processor 13 may then obtain the one or more target regions based on one or more enclosed regions formed on the original image by the one or more input trajectories. For example, when the processor 13 detects an input track and the input track can form a closed area or an almost closed area on the original image, the processor 13 can use the closed area or the almost closed area as the target area. . After obtaining the target area, the processor 13 may obtain one or more images (hereinafter collectively referred to as target images) within the one or more target areas.

舉例來說,圖3為根據本發明之一實施例所繪示的選擇目標區域的示意圖。請參照圖3,當使用者利用輸入工具在觸控螢幕上圈選原始圖像31中的多個目標區域時,處理器13可以獲得相對應的輸入軌跡302、輸入軌跡304及輸入軌跡306,並且根據輸入軌跡302、輸入軌跡304及輸入軌跡306各別形成的封閉區域中獲得目標圖像312(即,星星)、目標圖像314(即,車輛的左前輪) 及目標圖像316(即,車輛的左後輪)。 For example, FIG. 3 is a schematic diagram of selecting a target area according to an embodiment of the invention. Referring to FIG. 3, when the user uses the input tool to circle a plurality of target areas in the original image 31 on the touch screen, the processor 13 can obtain a corresponding input track 302, an input track 304, and an input track 306. And obtaining a target image 312 (ie, a star) and a target image 314 (ie, a left front wheel of the vehicle) in a closed region formed by the input trajectory 302, the input trajectory 304, and the input trajectory 306, respectively. And the target image 316 (ie, the left rear wheel of the vehicle).

在一實施例中,處理器13除了可以直接將目標區域內的所有圖像作為目標圖像之外,還可以透過邊緣過濾(edge filtering)等影像分析技術來更進一步的將涵蓋於目標區域內但不屬於目標圖像的邊緣圖像過濾掉。以圖3的輸入軌跡304及輸入軌跡306為例,假設使用者想要將原始圖像31中車輛的左前輪與左後輪作為目標圖像,但是使用者只概略地在車輛的左前輪與左後輪周圍進行圈選。此時,由於輸入軌跡304及輸入軌跡306不僅包含了車輛的左前輪與左後輪,還包含了車輛的左前輪與左後輪周圍的邊緣圖像,因此,處理器13可以以車輛的左前輪與左後輪為基準,過濾掉輸入軌跡304及輸入軌跡306內的邊緣圖像,而精確地將原始圖像中車輛的左前輪與左後輪作為目標圖像。 In an embodiment, the processor 13 can directly cover all the images in the target area as the target image, and can further cover the target area through image analysis techniques such as edge filtering. Edge images that are not part of the target image are filtered out. Taking the input trajectory 304 and the input trajectory 306 of FIG. 3 as an example, it is assumed that the user wants to use the left front wheel and the left rear wheel of the original image 31 as the target image, but the user is only roughly on the left front wheel of the vehicle. Circle around the left rear wheel. At this time, since the input trajectory 304 and the input trajectory 306 include not only the left front wheel and the left rear wheel of the vehicle, but also the edge images around the left front wheel and the left rear wheel of the vehicle, the processor 13 can be the left of the vehicle. The front wheel and the left rear wheel are referenced, and the edge images in the input track 304 and the input track 306 are filtered out, and the left front wheel and the left rear wheel of the vehicle in the original image are accurately used as the target image.

在獲得目標圖像之後,在步驟S204中,處理器13可以根據另一操作(以下統稱為第二操作)決定作用於所獲得的目標圖像的一個或多個特殊效果,並根據作用於所述目標圖像的所述特殊效果獲得多個連續圖像。在本實施例中,所述的特殊效果包括移動效果、旋轉效果、縮放效果及顏色改變效果的至少其中之一或其組合。舉例來說,移動效果例如是讓目標圖像延著一特定軌跡移動,旋轉效果例如是讓目標圖像進行順時針旋轉或者逆時針旋轉,縮放效果例如是讓目標圖像進行逐步放大或逐步縮小,並且顏色改變效果則例如是讓目標圖像的顏色及/或亮度進行改變等等,且本發明不限於此。也就是說,在所產生的多個連續圖像中, 每一個連續圖像都會帶有作用於目標圖像的所述特殊效果。 After obtaining the target image, in step S204, the processor 13 may determine one or more special effects acting on the obtained target image according to another operation (hereinafter collectively referred to as the second operation), and according to the action The special effect of the target image obtains a plurality of consecutive images. In this embodiment, the special effect includes at least one of a moving effect, a rotating effect, a zooming effect, and a color changing effect, or a combination thereof. For example, the moving effect is, for example, moving the target image along a specific trajectory, for example, rotating the target image clockwise or counterclockwise, for example, the target image is gradually enlarged or stepped down. And the color changing effect is, for example, a change in the color and/or brightness of the target image, and the like, and the present invention is not limited thereto. That is, in the multiple successive images produced, Each successive image carries the special effect that acts on the target image.

在本實施例中,處理器13可以在觸控螢幕上顯示一特殊效果選單,讓使用者進行選擇所欲使用的特殊效果,並且在確定欲使用的特殊效果之後,使用者可以接續選擇此特殊效果所作用的目標圖像。或者,使用者也可以先選擇目標圖像,再接續從特殊效果選單中選擇想要加在此目標圖像上的特殊效果,本發明不對其限制。 In this embodiment, the processor 13 can display a special effect menu on the touch screen, allowing the user to select a special effect to be used, and after determining the special effect to be used, the user can select the special one. The target image to which the effect works. Alternatively, the user may select the target image first, and then select a special effect to be added to the target image from the special effect menu, which is not limited by the present invention.

此外,在一實施例中,處理器13也可以預先將不同的操作手勢對應至不同的特殊效果。舉例來說,當處理器13偵測到作用於目標圖像314(即,車輛的左前輪)與目標圖像316(即,車輛的左後輪)的順時針旋轉手勢或逆時針旋轉手勢時,處理器13可以將旋轉效果(例如,順時針旋轉或逆時針旋轉)加入至目標圖像314與目標圖像316上,並且據以產生帶有此旋轉效果的多個連續圖像。當這些連續圖像連續或依序播放時,即可以呈現出車輛的左前輪與左後輪順時針旋轉或逆時針旋轉的動態效果。此外,移動效果、縮放效果及顏色改變效果也可以對應至不同的手勢,在此不一一贅述。 Moreover, in an embodiment, the processor 13 may also prioritize different operational gestures to different special effects. For example, when the processor 13 detects a clockwise rotation gesture or a counterclockwise rotation gesture acting on the target image 314 (ie, the left front wheel of the vehicle) and the target image 316 (ie, the left rear wheel of the vehicle) The processor 13 may add a rotation effect (eg, clockwise rotation or counterclockwise rotation) to the target image 314 and the target image 316, and accordingly generate a plurality of consecutive images with this rotation effect. When these successive images are played continuously or sequentially, the dynamic effect of clockwise rotation or counterclockwise rotation of the left front wheel and the left rear wheel of the vehicle can be presented. In addition, the moving effect, the zooming effect, and the color changing effect can also correspond to different gestures, which will not be repeated here.

舉例來說,圖4為根據本發明之一實施例所繪示的移動效果的示意圖。請參照圖4,當使用者透過輸入工具在觸控螢幕上執行第二操作,以在目標圖像312(即,星星)上加入移動效果時,處理器13可以根據第二操作決定作用於目標圖像312的特殊效果為移動效果,並且據以產生連續圖像41~43。 For example, FIG. 4 is a schematic diagram of a moving effect according to an embodiment of the invention. Referring to FIG. 4, when the user performs a second operation on the touch screen through the input tool to add a moving effect on the target image 312 (ie, the star), the processor 13 may determine the action on the target according to the second operation. The special effect of the image 312 is a moving effect, and a continuous image 41-43 is generated accordingly.

在連續圖像41中,假設目標圖像312是出現在位置402處。在連續圖像42中,目標圖像312則是從先前的位置402改變為出現在位置404處。在連續圖像43中,目標圖像312則進一步從先前的位置404改變為出現在位置406處。藉此,當連續圖像41~43被連續或依序播放時,則可呈現出星星從位置402移動至位置406的動態效果。然而,對於使用者來說,使用者例如僅需要在執行第二操作時,將目標圖像312由位置402拖曳至位置406即可,或者設定目標圖像312的起始位置為位置402以及終點位置為位置406即可,大幅簡化以往製作動態圖像所需的繁雜手續。 In the continuous image 41, it is assumed that the target image 312 is present at the position 402. In the continuous image 42, the target image 312 is changed from the previous position 402 to appear at the position 404. In the continuous image 43, the target image 312 is further changed from the previous position 404 to appear at the position 406. Thereby, when the continuous images 41 to 43 are continuously or sequentially played, the dynamic effect of the stars moving from the position 402 to the position 406 can be presented. However, for the user, for example, the user only needs to drag the target image 312 from the position 402 to the position 406 when performing the second operation, or set the starting position of the target image 312 to the position 402 and the end point. The position is position 406, which greatly simplifies the complicated procedures required for the production of moving images.

又例如,圖5為根據本發明之一實施例所繪示的縮放效果的示意圖。請參照圖5,當使用者透過輸入工具在觸控螢幕上執行第二操作,以在目標圖像312(即,星星)上加入縮放效果時,處理器13可以根據第二操作決定作用於目標圖像312的特殊效果為縮放效果,並且據以產生連續圖像51~53。 For another example, FIG. 5 is a schematic diagram of a zooming effect according to an embodiment of the invention. Referring to FIG. 5, when the user performs a second operation on the touch screen through the input tool to add a zoom effect on the target image 312 (ie, the star), the processor 13 may determine the action on the target according to the second operation. The special effect of the image 312 is a scaling effect, and accordingly a continuous image 51-53 is produced.

在連續圖像51中,假設目標圖像312具有一第一尺寸(即,原始尺寸)。在連續圖像52中,目標圖像512具有大於第一尺寸的一第二尺寸。在連續圖像53中,目標圖像514則具有大於第二尺寸的第三尺寸。藉此,當連續圖像51~53被連續或依序播放時,則可呈現出星星從第一尺寸被放大至第三尺寸的動態效果。類似地,對於使用者來說,使用者例如僅需要在執行第二操作時,透過一放大手勢來將目標圖像312由第一尺寸放大至第三尺寸即可,或者設定目標圖像312的放大倍率等等,而同樣可有 效簡化以往製作動態圖像所需的繁雜手續。 In the continuous image 51, it is assumed that the target image 312 has a first size (i.e., original size). In the continuous image 52, the target image 512 has a second size that is greater than the first size. In the continuous image 53, the target image 514 has a third size that is larger than the second size. Thereby, when the continuous images 51 to 53 are continuously or sequentially played, a dynamic effect in which the stars are enlarged from the first size to the third size can be exhibited. Similarly, for the user, for example, the user only needs to enlarge the target image 312 from the first size to the third size through a zoom-in gesture when performing the second operation, or set the target image 312. Magnification, etc., but also It simplifies the complicated procedures required to create dynamic images in the past.

然後,於步驟S206中,處理器13可以基於所述連續圖像而生成動態圖像,例如將多個連續圖像合成為一個動態圖像。此外,使用者也可以根據需求自行定義輸出的動態圖像之格式。在本實施例中,此動態圖像的格式包括影像互換格式(Graphics Interchange Format,GIF)與行動式網路圖形(Portable Network Graphics,PNG)等,且不限於此。 Then, in step S206, the processor 13 may generate a dynamic image based on the continuous image, for example, synthesize a plurality of consecutive images into one dynamic image. In addition, the user can also customize the format of the output dynamic image according to the needs. In this embodiment, the format of the dynamic image includes a Graphics Interchange Format (GIF) and a Portable Network Graphics (PNG), and is not limited thereto.

在本實施例中,在獲得多個連續圖像之後,處理器13還可以在觸控螢幕上依序顯示這些連續圖像,以預覽即將獲得的動態圖像。然後,當使用者透過輸入工具執行一確認操作,例如在觸控螢幕上點擊一確認按鈕時,處理器13可以接收此確認操作,並且根據此確認操作而基於這些連續圖像來生成動態圖像。反之,在預覽即將獲得的動態圖像之後,若使用者發現與預料中的動態圖像不同或者未達到預期的效果,則使用者可以透過輸入工具執行一繼續編輯操作,例如在觸控螢幕上點擊一繼續編輯按鈕,而使處理器13重複執行上述步驟S202及步驟S204。 In this embodiment, after obtaining a plurality of consecutive images, the processor 13 may also sequentially display the consecutive images on the touch screen to preview the dynamic image to be obtained. Then, when the user performs a confirmation operation through the input tool, for example, clicking a confirmation button on the touch screen, the processor 13 can receive the confirmation operation, and generate a dynamic image based on the continuous images according to the confirmation operation. . On the other hand, after previewing the moving image to be obtained, if the user finds that the dynamic image is different from the expected or does not achieve the desired effect, the user can perform a continuous editing operation through the input tool, for example, on the touch screen. Clicking the Continue Edit button causes the processor 13 to repeatedly perform the above steps S202 and S204.

此外,在一實施例中,在生成動態圖像之後,若使用者仍希望在此動態圖像上加入其餘的特殊效果,則可繼續將此動態圖像作為步驟S202中的原始圖像,並由處理器13重複執行步驟S202至步驟S206而產生另一動態圖像。或者,在一實施例中,所述原始圖像也可以一開始就是已經帶有特殊效果的動態圖像,本發明不對其限制。 In addition, in an embodiment, after the dynamic image is generated, if the user still wants to add the remaining special effects to the dynamic image, the dynamic image may continue to be the original image in step S202, and Step S202 to step S206 are repeatedly executed by the processor 13 to generate another moving image. Alternatively, in an embodiment, the original image may also be a dynamic image that has a special effect at first, and the invention is not limited thereto.

值得一提的是,雖然上述實施例是以包含螢幕11與輸入裝置12的處控螢幕作為範例,但是本領域的通常知識者應當知道本發明同樣適用於螢幕11與輸入裝置12分別實施的電子裝置。此外,上述方法步驟可以是分別以不同的軟體或韌體模組來實施。例如,在本實施例中,此些軟體或韌體模組可以是儲存在電子裝置10的記憶體或硬碟,並且可被載入至處理器13以執行上述方法步驟。此外,在一實施例中,上述方法步驟也可以是分別由不同的硬體電路負責執行,本發明不對其限制。 It is worth mentioning that although the above embodiment is exemplified by a control screen including the screen 11 and the input device 12, those of ordinary skill in the art will appreciate that the present invention is equally applicable to the electronic implementation of the screen 11 and the input device 12, respectively. Device. In addition, the above method steps may be implemented by different software or firmware modules, respectively. For example, in the present embodiment, the software or firmware modules may be stored in the memory or hard disk of the electronic device 10, and may be loaded into the processor 13 to perform the above method steps. In addition, in an embodiment, the foregoing method steps may also be performed by different hardware circuits, and the invention is not limited thereto.

綜上所述,本發明實施例中的動態圖像生成方法與電子裝置,可讓使用者在靜態/動態圖像上利用圈選等操作來選取欲加入特殊效果的目標圖像以及特殊效果的種類,從而產生帶有此特殊效果的多個連續圖像,並且根據這些連續圖像產生動態圖像。藉此,當使用者在靜態/動態圖像上加入所喜愛的特效之後,電子裝置可以自動地產生相對應的動態圖像,簡化以往製作動態圖像所需的繁瑣手續,有效改善使用者經驗。 In summary, the dynamic image generating method and the electronic device in the embodiment of the present invention allow a user to select a target image to be added to a special effect and a special effect by using a circle selection operation on a static/moving image. Kind, thereby producing a plurality of consecutive images with this special effect, and generating a dynamic image based on these continuous images. Therefore, after the user adds the favorite effect to the static/moving image, the electronic device can automatically generate a corresponding dynamic image, simplifying the cumbersome procedures required for the previous production of the dynamic image, and effectively improving the user experience. .

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 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‧‧‧動態圖像生成方法各步驟 S202, S204, S206‧‧‧ Dynamic image generation method steps

Claims (10)

一種動態圖像生成方法,包括:根據一第一操作在一原始圖像上選擇至少一目標區域,並獲得該至少一目標區域內的至少一目標圖像;根據一第二操作決定作用於該至少一目標圖像的至少一特殊效果,並根據作用於該至少一目標圖像的該至少一特殊效果獲得多個連續圖像;以及基於該些連續圖像生成一動態圖像。 A dynamic image generating method includes: selecting at least one target area on an original image according to a first operation, and obtaining at least one target image in the at least one target area; determining to act on the second operation according to a second operation At least one special effect of the at least one target image, and obtaining a plurality of consecutive images according to the at least one special effect acting on the at least one target image; and generating a dynamic image based on the consecutive images. 如申請專利範圍第1項所述的動態圖像生成方法,其中該動態圖像之檔案格式包括一影像互換格式(Graphics Interchange Format,GIF)。 The dynamic image generating method according to claim 1, wherein the file format of the moving image comprises a Graphics Interchange Format (GIF). 如申請專利範圍第1項所述的動態圖像生成方法,其中根據該第一操作在該原始圖像上選擇該至少一目標區域的步驟包括:獲得該第一操作對應在該原始圖像上的至少一輸入軌跡;以及根據該至少一輸入軌跡在該原始圖像上形成的至少一封閉區域獲得該至少一目標區域。 The dynamic image generating method of claim 1, wherein the selecting the at least one target area on the original image according to the first operation comprises: obtaining the first operation corresponding to the original image And at least one input track; and obtaining the at least one target area according to the at least one closed area formed on the original image according to the at least one input track. 如申請專利範圍第1項所述的動態圖像生成方法,其中該至少一特殊效果包括一移動效果、一旋轉效果、一縮放效果及一顏色改變效果的至少其中之一或其組合。 The dynamic image generating method of claim 1, wherein the at least one special effect comprises at least one of a moving effect, a rotating effect, a zooming effect, and a color changing effect, or a combination thereof. 如申請專利範圍第1項所述的動態圖像生成方法,其中基 於該些連續圖像而生成該動態圖像的步驟更包括:在一螢幕上依序顯示該些連續圖像,以預覽該動態圖像;以及接收一確認操作,並且根據該確認操作而基於該些連續圖像生成該動態圖像。 The method for generating a moving image according to claim 1, wherein the base The step of generating the dynamic image for the consecutive images further includes: sequentially displaying the consecutive images on a screen to preview the dynamic image; and receiving a confirmation operation, and based on the confirming operation The continuous images generate the dynamic image. 一種電子裝置,包括:一螢幕,用以顯示一原始圖像與一動態圖像;一處理器,耦接該螢幕,用以根據一第一操作在該原始圖像上選擇至少一目標區域,並獲得該至少一目標區域內的至少一目標圖像,其中該處理器更用以根據一第二操作決定作用於該至少一目標圖像的至少一特殊效果,並根據作用於該至少一目標圖像的該至少一特殊效果獲得多個連續圖像,其中該處理器更用以基於該些連續圖像生成該動態圖像。 An electronic device includes: a screen for displaying an original image and a dynamic image; a processor coupled to the screen for selecting at least one target area on the original image according to a first operation, Obtaining at least one target image in the at least one target area, wherein the processor is further configured to determine at least one special effect acting on the at least one target image according to a second operation, and according to the at least one target The at least one special effect of the image obtains a plurality of consecutive images, wherein the processor is further configured to generate the dynamic image based on the consecutive images. 如申請專利範圍第6項所述的電子裝置,其中該動態圖像之檔案格式包括一影像互換格式。 The electronic device of claim 6, wherein the dynamic image file format comprises an image interchange format. 如申請專利範圍第6項所述的電子裝置,其中該處理器更用以獲得該第一操作對應在該原始圖像上的至少一輸入軌跡,並且根據該至少一輸入軌跡在該原始圖像上形成的至少一封閉區域獲得該至少一目標區域。 The electronic device of claim 6, wherein the processor is further configured to obtain at least one input trajectory corresponding to the first image on the original image, and the original image is based on the at least one input trajectory The at least one enclosed area formed on the upper surface obtains the at least one target area. 如申請專利範圍第6項所述的電子裝置,其中該至少一特殊效果包括一移動效果、一旋轉效果、一縮放效果及一顏色改變 效果的至少其中之一或其組合。 The electronic device of claim 6, wherein the at least one special effect comprises a moving effect, a rotating effect, a zooming effect, and a color change. At least one of the effects or a combination thereof. 如申請專利範圍第6項所述的電子裝置,其中該處理器更用以在該螢幕上依序顯示該些連續圖像,以預覽該動態圖像,其中該處理器更用以接收一確認操作,並且根據該確認操作而基於該些連續圖像生成該動態圖像。 The electronic device of claim 6, wherein the processor is further configured to sequentially display the consecutive images on the screen to preview the dynamic image, wherein the processor is further configured to receive a confirmation. Operating, and generating the dynamic image based on the consecutive images according to the confirming operation.
TW102133043A 2013-09-12 2013-09-12 Method for generating dynamic image and electronic device TW201510930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102133043A TW201510930A (en) 2013-09-12 2013-09-12 Method for generating dynamic image and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102133043A TW201510930A (en) 2013-09-12 2013-09-12 Method for generating dynamic image and electronic device

Publications (1)

Publication Number Publication Date
TW201510930A true TW201510930A (en) 2015-03-16

Family

ID=53186777

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102133043A TW201510930A (en) 2013-09-12 2013-09-12 Method for generating dynamic image and electronic device

Country Status (1)

Country Link
TW (1) TW201510930A (en)

Similar Documents

Publication Publication Date Title
US12149831B2 (en) Digital viewfinder user interface for multiple cameras
US11783117B2 (en) Device, method, and graphical user interface for sharing a content object in a document
US20230254573A1 (en) User interface for camera effects
US10915225B2 (en) User terminal apparatus and method of controlling the same
US8860730B2 (en) Information processing apparatus, animation method, and program
US9933935B2 (en) Device, method, and graphical user interface for editing videos
CN110096206B (en) Device, method, and graphical user interface for adjusting the appearance of a control
CN105164714B (en) User terminal device and control method thereof
US20230168805A1 (en) Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device
CN103729157B (en) Multi-display equipment and its control method
TWI441051B (en) Electronic device and information display method thereof
CN104903830B (en) Display apparatus and control method thereof
EP3021204B1 (en) Information processing device, information processing method, and computer program
US9910584B2 (en) Method for manipulating folders and apparatus thereof
EP3021203A1 (en) Information processing device, information processing method, and computer program
CN107479818B (en) Information interaction method and mobile terminal
TW201408063A (en) Electronic device and image zooming method thereof
CN110377220A (en) A kind of instruction response method, device, storage medium and electronic equipment
CN103888503A (en) Electronic device and instant sharing method
CN104081333A (en) Remote display area including input lenses each depicting a region of a graphical user interface
TW201510930A (en) Method for generating dynamic image and electronic device
CN120112880A (en) A display device and a three-dimensional menu display method
CN115904147A (en) Production method, device and electronic equipment
WO2015062493A1 (en) Mobile terminal and screen splitting method thereof