TWI234997B - Method for using the image data to change the object and the type of the object - Google Patents

Method for using the image data to change the object and the type of the object Download PDF

Info

Publication number
TWI234997B
TWI234997B TW092134510A TW92134510A TWI234997B TW I234997 B TWI234997 B TW I234997B TW 092134510 A TW092134510 A TW 092134510A TW 92134510 A TW92134510 A TW 92134510A TW I234997 B TWI234997 B TW I234997B
Authority
TW
Taiwan
Prior art keywords
image data
parameter
changing
patent application
scope
Prior art date
Application number
TW092134510A
Other languages
Chinese (zh)
Other versions
TW200520537A (en
Inventor
Chia-Kai Chang
Original Assignee
Compal Electronics 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 Compal Electronics Inc filed Critical Compal Electronics Inc
Priority to TW092134510A priority Critical patent/TWI234997B/en
Priority to JP2004123237A priority patent/JP2005169062A/en
Publication of TW200520537A publication Critical patent/TW200520537A/en
Application granted granted Critical
Publication of TWI234997B publication Critical patent/TWI234997B/en

Links

Landscapes

  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

A method for using the image data to change the object and the type of the object. First, input an image, and analyze the image data to get the parameter of this image. Then, deciding the object and the type of the object by the parameter of the image. Finally, output the object and the type of the object. The present invention using the real image to change the object and the type of the object for the result which combine the real image and the virtual image.

Description

1234997 _案號 92134510_年月日__ 五、發明說明(1) 發明所屬之技術領域 本發明是有關於一種影像資料處理,且特別是有關於 一種利用影像資料改變物件與物件型態的方法。 先前技術 隨著科技的進步,各種影音設備的功能不但越來越強 大,而且體積越來越小,例如現今的行動電話已經不止是 單純地用來作為通訊聯絡的工具,同時也具備了其它多媒 體裝置的功能,例如具備了遊戲、拍攝照片、錄音以及錄 影..等等功能。 在習知技術中,譬如以具備照相功能的行動電話而 言,通常所拍攝下來的照片很少用來作更進一步的應用, 且行動電話中的遊戲通常是單一且獨立的。例如在行動電 話中進行電子雞飼養的遊戲,但通常在遊戲進行的過程 中,背景圖片與主角通常是固定而且不變的,並且不能利 用所拍攝的照片與遊戲作進一步的結合與互動。 發明内容 本發明的目的就是在提供一種利用影像資料改變物件 與物件型態之方法,利用所輸入實景影像資料,即時改變 物件及其物件型態,以達到實景影像與虛擬結合的效果。 本發明提出一種利用影像資料改變物件與物件型態之 方法,首先藉由各種影像裝置取得影像資料,然後輸入此 影像資料,並根據所輸入的影像資料進行平均顏色與平均 亮度等參數的分析,以取得此影像資料的相關參數,接著 並根據這些參數來決定改變物件以及其物件型態,最後將1234997 _Case No. 92134510_Year Month Date__ V. Description of the Invention (1) The technical field to which the invention belongs The invention relates to a method for processing image data, and more particularly to a method for changing objects and object types using image data . With the advancement of science and technology, the functions of various audio and video equipment are not only more powerful, but also smaller and smaller. For example, today's mobile phones are not only used as a communication tool, but also have other multimedia. The functions of the device, for example, have functions such as games, taking photos, recording and recording ... In the conventional technology, for example, a mobile phone with a camera function, the photographs usually taken are rarely used for further applications, and the games in the mobile phone are usually single and independent. For example, a game of electronic chicken breeding is carried out in a mobile phone, but usually during the game, the background picture and the protagonist are usually fixed and unchanged, and the photos taken and the game cannot be used to further combine and interact. SUMMARY OF THE INVENTION The object of the present invention is to provide a method for changing objects and object types by using image data, and using input real-world image data to change objects and their object types in real time, so as to achieve the effect of real-world images and virtual combination. The invention proposes a method for changing objects and object types by using image data. First, image data is obtained through various image devices, and then the image data is input, and parameters such as average color and average brightness are analyzed according to the input image data. In order to obtain the relevant parameters of this image data, then according to these parameters to decide to change the object and its object type, and finally

12226twfl.ptc 第6頁 1234997 _案號92134510_年月日__ 五、發明說明(2) 所決定的物件及其物件型態輸出並顯示於顯示裝置上。 在本發明的一個較佳實施例中,其中根據參數來決定 物件以及其物件型態,更包括以此參數來比對資料庫,以 取得與此參數所對應的物件及其物件型態。 本發明藉由分析影像資料,來取得此影像資料的參 數,並依據此參數以決定物件及其型態以進行改變,進而 達到虛擬與實景影像結合的效果。 為讓本發明之上述和其他目的、特徵和優點能更明顯 易懂,下文特舉一較佳實施例,並配合所附圖式,作詳細 說明如下。 實施方式 _第1圖繪示依照本發明一較佳實施例的一種利用影像 資料改變物件與物件型態之方法之流程圖。請參照第1 圖,首先藉由影像擷取裝置取得影像資料,並輸入此影像 資料(如步驟S 1 0 2 )。接著計算此影像資料的平均顏色以取 得參數(如步驟S 1 0 4 )。之後計算此影像資料的平均亮度來 取得參數(如步驟S 1 0 6 )。然後依據計算平均顏色所得到的 參數來決定物件(如步驟S 1 0 8 )。之後根據平均亮度所得到 的參數來決定物件的型態(如步驟S 1 1 0 )。最後將所決定的 物件及其物件型態顯示於顯示裝置上(如步驟S 1 1 2 )。 在上述實施例中,舉例來說,目前有些行動電話已經 具備有數位相機的功能,可以進行各種影像的攝影,也因 此可以隨時拍攝周遭的影像,並將此影像直接儲存至行動 電話中。例如使用者使用行動電話進行一項遊戲,在此遊12226twfl.ptc Page 6 1234997 _Case No. 92134510_Year Month Day__ V. Description of the invention (2) The determined object and its object type are output and displayed on the display device. In a preferred embodiment of the present invention, determining an object and its object type according to a parameter further includes comparing a database with this parameter to obtain the object and its object type corresponding to the parameter. The present invention obtains parameters of the image data by analyzing the image data, and determines objects and their types to be changed according to the parameters, thereby achieving the effect of combining virtual and real-world images. In order to make the above and other objects, features, and advantages of the present invention more comprehensible, a preferred embodiment is given below and described in detail with reference to the accompanying drawings. Embodiment _ Figure 1 shows a flowchart of a method for changing objects and object types using image data according to a preferred embodiment of the present invention. Please refer to FIG. 1, first obtain image data through an image capturing device, and input the image data (eg, step S 102). Then calculate the average color of the image data to obtain the parameters (eg, step S 104). Then calculate the average brightness of the image data to obtain the parameters (eg, step S 106). Then, the object is determined according to the parameter obtained by calculating the average color (such as step S 108). Then, the type of the object is determined according to the parameters obtained by the average brightness (such as step S 1 1 0). Finally, the determined object and its object type are displayed on the display device (eg, step S 1 1 2). In the above embodiments, for example, some mobile phones now have the function of a digital camera, which can take a variety of images. Therefore, it is possible to take surrounding images at any time and store the images directly to the mobile phone. For example, a user uses a mobile phone to play a game

12226twf1.ptc 第7頁 1234997 _案號 92134510_年月日___ 五、發明說明(3) 戲中,使用者首先操作具備照相功能的行動電話拍攝一張 樹林的圖片。接著,計算此圖片的平均顏色與平均亮度分 別得到不同的參數。然後,根據所得到的參數來決定物件 及其物件型態,例如計算這張圖片的平均顏色得到一結果 為綠色,接著選出與綠色有相關的物件,譬如鱷魚即為一 例,並根據圖片分析其平均亮度所得到參數來決定鱷魚的 型態。假使圖片是於夜晚中所拍攝的,則根據此圖片所計 算出的平均亮度自然偏低,因此遊戲中的鱷魚便可能呈現 如睡眠的型態;如果圖片是於白天所拍攝的,而根據此圖 片所計算出的平均亮度則自然偏高,而此遊戲中的鱷魚便 會改變其型態,呈現如覓食的型態。 在上述實施例中,更可以根據分析圖片所得到的參數 來比對資料庫所内建的資料,例如使用者臨時拍攝一張沙 漠的圖片以取代原本樹林的圖片,接著根據分析沙漠的平 均顏色以及平均亮度所得到的參數,來和資料庫中的物件 或資料進行比對,進而選出有關於沙漠的物件以及決定其 物件的型態,例如駱駝、老鷹與綠洲..等物件,並根據平 均亮度來決定物件的型態,例如以平均亮度的高低來決定 駱駝是否處於奔跑的狀態。而在此實施例中,圖片的變換 由樹林轉變成沙漠,此時原本的鱷魚也會轉變為駱駝與老 鷹..等其它物件。 本發明利用即時拍攝的實景影像來當作遊戲的背景影 像,並根據此背景影像計算其平均顏色及平均亮度來得到 參數,然後根據此參數來改變物件及其物件型態,讓物件12226twf1.ptc Page 7 1234997 _ Case No. 92134510_ Year Month ___ V. Description of the invention (3) In the play, the user first operates a mobile phone with a camera function to take a picture of the woods. Then, calculate the average color and average brightness of this picture to get different parameters. Then, determine the object and its object type according to the obtained parameters. For example, calculate the average color of this picture to get a result as green, and then select the object related to green, such as a crocodile as an example, and analyze it based on the picture. The parameters obtained from the average brightness determine the shape of the crocodile. If the picture was taken at night, the average brightness calculated from this picture is naturally low, so the crocodile in the game may show a sleep-like pattern; if the picture was taken during the day, according to this The average brightness calculated in the picture is naturally high, and the crocodile in this game will change its shape to appear like foraging. In the above embodiment, the data built in the database can be compared according to the parameters obtained by analyzing the pictures. For example, the user temporarily takes a picture of the desert to replace the picture of the original forest, and then analyzes the average color of the desert. The parameters obtained from the average brightness are compared with the objects or data in the database, and then objects related to the desert and the type of the objects are determined, such as camels, eagles, and oasis .. The brightness determines the type of the object, for example, the average brightness determines whether the camel is running. In this embodiment, the transformation of the picture is transformed from the woods to the desert, and the original crocodile will also be transformed into other objects such as camels and eagles. The invention uses the real-time shooting real-time image as the background image of the game, and calculates the average color and average brightness according to the background image to obtain the parameter, and then changes the object and its object type according to this parameter, so that the object

12226twf1.ptc 第8頁 1234997 _案號92134510_年月日__ 五、發明說明(4) · 及其物件型態能和背景產生關連,進而達到虛擬與實景影 像互動結合的效果。 如熟習此技藝者可知,可以不限定同時計算背景影像 的平均顏色以及平均亮度來改變物件及其物件型態,亦可 依照平均顏色與平均亮度的其中之一,分別只改變物件與 _ 物件型態,或同時改變物件與物件型態。例如只計算背景 . 影像的平均顏色,並利用此平均顏色所得到的參數只改變 物件,或是同時改變物件及其物件型態。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍内,當可作些許之更動與潤飾,因此本發明之保護 φ 範圍當視後附之申請專利範圍所界定者為準。12226twf1.ptc Page 8 1234997 _Case No. 92134510_Year Month and Day__ V. Description of the Invention (4) · The type energy and background of its objects are related, and the effect of interaction between virtual and real images is achieved. If you are familiar with this art, you can change the object and its object type without calculating the average color and average brightness of the background image at the same time. You can also change only the object and _ object type according to one of the average color and average brightness. State, or change both object and object type. For example, only the average color of the background. Image is calculated, and the parameters obtained by using this average color only change the object, or change the object and its type at the same time. Although the present invention has been disclosed in the preferred embodiment as above, it is not intended to limit the present invention. Any person skilled in the art can make some modifications and retouching without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection φ shall be determined by the scope of the attached patent application.

12226twf1.ptc 第9頁 1234997 _案號92134510_年月日_1Mz_ 圖式簡單說明 第1圖繪示依照本發明一較佳實施例的一種利用影像 資料改變物件與物件型態之方法之流程圖。 圖式標示說明: S1 02 輸 入 影 像 S1 04 計 算 影 像 資 料 的 平 均 顏 色 S1 06 計 算 影 像 資 料 的 平 均 亮 度 S1 08 根 據 平 均 顏 色 決 定 物 件 S1 10 根 據 平 均 亮 度 決 定 物 件 型 態 S1 12 顯 示 物 件 及 其 物 件 型 態 於 顯示裝置上12226twf1.ptc Page 9 1234997 _Case No. 92134510_Year Month and Day_1Mz_ Brief Description of the Drawings Figure 1 shows a flowchart of a method for changing objects and object types using image data according to a preferred embodiment of the present invention . Graphical description: S1 02 Input image S1 04 Calculate the average color of the image data S1 06 Calculate the average brightness of the image data S1 08 Determine the object based on the average color S1 10 Determine the object type based on the average brightness S1 12 Display object and its object type On the display

12226twf1.ptc 第10頁12226twf1.ptc Page 10

Claims (1)

1234997 _案號92134510_年月日__ 六、申請專利範圍 1 . 一種利用影像資料改變物件與物件型態之方法,該 方法包括下列步驟: 輸入一影像; 分析該影像以取得一參數; 根據該參數以改變一物件與一物件型態;以及 輸出該物件與該物件型態。 2 .如申請專利範圍第1項所述之利用影像資料改變物 件與物件型態之方法,其中該影像是由一影像擷取裝置所 擷取。 3 .如申請專利範圍第1項所述之利用影像資料改變物 件與物件型態之方法,其中該參數包括一平均顏色與一平 均亮度之任一者。 4.如申請專利範圍第3項所述之利用影像資料改變物 件與物件型態之方法,其中根據該參數以改變該物件與該 物件型態之步驟係包括根據該平均顏色與該平均亮度分別 選取該物件以及該物件型態。 5 .如申請專利範圍第1項所述之利用影像資料改變物 件與物件型態之方法,其中根據該參數以改變該物件與該 物件型態之步驟更包括比對一資料庫。 6 .如申請專利範圍第1項所述之利用影像資料改變物 件與物件型態之方法,其中輸出該物件與該物件型態係指 將該物件及該物件型態顯示於一顯示裝置上。 7 · —種利用影像資料改變物件與物件型態之方法,該 方法包括下列步驟:1234997 _Case No. 92134510_Year Month__ VI. Scope of Patent Application 1. A method for changing objects and object types using image data, the method includes the following steps: input an image; analyze the image to obtain a parameter; according to The parameter changes an object and an object type; and outputs the object and the object type. 2. The method for changing objects and object types using image data as described in item 1 of the scope of patent application, wherein the image is captured by an image capture device. 3. The method for changing objects and object types using image data as described in item 1 of the scope of patent application, wherein the parameter includes any one of an average color and an average brightness. 4. The method for changing an object and an object type using image data as described in item 3 of the scope of the patent application, wherein the step of changing the object and the object type according to the parameter includes separately according to the average color and the average brightness. Select the object and the object type. 5. The method for changing objects and object types using image data as described in item 1 of the scope of patent application, wherein the step of changing the object and the object type according to the parameter further includes comparing a database. 6. The method for changing objects and object types using image data as described in item 1 of the scope of patent application, wherein outputting the object and the object type means displaying the object and the object type on a display device. 7-A method for changing objects and object types using image data, the method includes the following steps: 12226twf1.ptc 第11頁 1234997 _案號92134510_年月日__ 六、申請專利範圍 輸入一影像; 分析該影像以取得一第一參數與一第二參數; 根據該第一參數以改變一物件並根據該第二參數以改 變一物件型態;以及 輸出該物件與該物件型態。 8 .如申請專利範圍第7項所述之利用影像資料改變物 件與物件型態之方法,其中該影像是由一影像擷取裝置所 擷取。 9 .如申請專利範圍第7項所述之利用影像資料改變物 件與物件型態之方法,其中該第一參數包括一平均顏色與 一平均亮度之任一者。 1 0 .如申請專利範圍第7項所述之利用影像資料改變物 件與物件型態之方法,其中該第二參數包括一平均顏色與 一平均亮度之任一者。 Π .如申請專利範圍第7項所述之利用影像資料改變物 件與物件型態之方法,其中根據該第一參數與該第二參數 以改變該物件與該物件型態之步驟更包括比對一資料庫。 1 2 ·如申請專利範圍第7項所述之利用影像資料改變物 件與物件型態之方法,其中輸出該物件與該物件型態係指 將該物件及該物件型態顯示於一顯示裝置上。12226twf1.ptc Page 11 1234997 _Case No. 92134510_Year Month Date__ VI. Input a scope of patent application; Analyze the image to obtain a first parameter and a second parameter; change an object according to the first parameter And changing an object type according to the second parameter; and outputting the object and the object type. 8. The method for changing objects and object types using image data as described in item 7 of the scope of patent application, wherein the image is captured by an image capture device. 9. The method for changing objects and object types using image data as described in item 7 of the scope of patent application, wherein the first parameter includes any one of an average color and an average brightness. 10. The method for changing an object and an object type using image data as described in item 7 of the scope of the patent application, wherein the second parameter includes any one of an average color and an average brightness. Π. The method for changing an object and an object type using image data as described in item 7 of the scope of the patent application, wherein the step of changing the object and the object type according to the first parameter and the second parameter further includes comparison A database. 1 2 · The method for changing objects and object types using image data as described in item 7 of the scope of patent application, wherein outputting the object and the object type means displaying the object and the object type on a display device . 12226twfl.pt c 第12頁12226twfl.pt c p. 12
TW092134510A 2003-12-08 2003-12-08 Method for using the image data to change the object and the type of the object TWI234997B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW092134510A TWI234997B (en) 2003-12-08 2003-12-08 Method for using the image data to change the object and the type of the object
JP2004123237A JP2005169062A (en) 2003-12-08 2004-04-19 Method for changing object and object type using image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW092134510A TWI234997B (en) 2003-12-08 2003-12-08 Method for using the image data to change the object and the type of the object

Publications (2)

Publication Number Publication Date
TW200520537A TW200520537A (en) 2005-06-16
TWI234997B true TWI234997B (en) 2005-06-21

Family

ID=34738141

Family Applications (1)

Application Number Title Priority Date Filing Date
TW092134510A TWI234997B (en) 2003-12-08 2003-12-08 Method for using the image data to change the object and the type of the object

Country Status (2)

Country Link
JP (1) JP2005169062A (en)
TW (1) TWI234997B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101072818B1 (en) 2009-03-16 2011-10-14 한국과학기술원 Manipulators with Distributed Actuation Mechanism
JP6553861B2 (en) * 2014-11-11 2019-07-31 株式会社コロプラ Game device, program and method
JP6231157B2 (en) 2016-05-12 2017-11-15 株式会社コーエーテクモゲームス Program, information processing apparatus, and control method
JP2018102901A (en) * 2016-12-27 2018-07-05 株式会社コーエーテクモゲームス Game processing program and information processing device
JP6557715B2 (en) * 2017-12-12 2019-08-07 株式会社カプコン Game program and game system

Also Published As

Publication number Publication date
TW200520537A (en) 2005-06-16
JP2005169062A (en) 2005-06-30

Similar Documents

Publication Publication Date Title
US9866748B2 (en) System and method for controlling a camera based on processing an image captured by other camera
JP6388673B2 (en) Mobile terminal and imaging method thereof
WO2019192351A1 (en) Short video capture method, device and electronic terminal
WO2022228412A1 (en) Photographing method, apparatus, and electronic device
JP2004343747A (en) Photographing method for mobile communication terminal with camera
WO2017092289A1 (en) Image processing method and device
WO2019237745A1 (en) Facial image processing method and apparatus, electronic device and computer readable storage medium
WO2016127671A1 (en) Image filter generating method and device
CN112565589A (en) Photographing preview method and device, storage medium and electronic equipment
WO2016011877A1 (en) Method for filming light painting video, mobile terminal, and storage medium
WO2019011091A1 (en) Photographing reminding method and device, terminal and computer storage medium
WO2018040510A1 (en) Image generation method, apparatus and terminal device
US9137461B2 (en) Real-time camera view through drawn region for image capture
WO2015180684A1 (en) Mobile terminal-based shooting simulation teaching method and system, and storage medium
TWI234997B (en) Method for using the image data to change the object and the type of the object
US20080170812A1 (en) Image composition processing method, computer system with image composition processing function
TW201717190A (en) Display adjustment method electronic device
CN108132935B (en) Image classification method and image display method
CN113012040B (en) Image processing method, image processing device, electronic equipment and storage medium
CN114785957A (en) Shooting method and device thereof
JP2018180125A (en) Image projection device, image projection method and image projection program
JP2017184021A (en) Content providing device and content providing program
JP2004088719A (en) Image capturing method and apparatus therefor
TWI475883B (en) Camera device and divided image pickup method thereof
TW201822147A (en) Image classifying method and image displaying method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees