1292133 12512twfl.doc/006 96-2-14 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種利用電子裝置製作音樂之方法, 且特別是有關於一種將所擷取到之動態影像於分析比對 後,再將比對結果製作成單一音符或是樂曲之方法。 【先前技術】 由於行動電話(Mobile Phone)、掌上型電腦(Pocket PC)、個人化數位助理(PDA)或可攜帶式電腦(Portable PC) 等等,可運用在無線通訊、網際網路之領域中,因此帶給 人們在生活上的便利性以及效率更高之行動通訊處理,也 成爲時下最受歡迎的高科技電子產品。 以行動電話之通訊功能而言,傳統以通話品質爲訴求 之行動業者,已重新定位行動電話的功用。尤其是第二代 行動通訊系統或第三代行動通訊系統漸漸成熟之際,具有 多功能之行動電話所能提供之服務不再僅僅是通訊而已, 而是多元的無線通訊服務,例如可下載手機鈴聲、圖形以 及歌曲之功能,或是上傳或下載行動寫真之圖片,以及大 容量的相簿、影音管理工具等功能。這些附加的功能,加 上裝設在行動電話上之小型數位相機,例如光感測元件 (photo/image sensor)、鏡頭(lens)等影像擷取元件,已成爲 擷取影像之重要來源,也是未來新一代行動電話不可或缺 之工具之一^ 【發明內容】 本發明的目的就是在提供一種利用影像資料製作音樂 之方法’其係將擷取到之動態影像或靜態影像進行分析比 1292133 12512twfl.doc/006 96-2-14 對,再根據比對後之結果決定一音符訊號,最後則利用聲 音產生模組與播放裝置播放此音符訊號,使得使用者在擷 取影像時能有更多的樂趣。 本發明的目的再一目的是提供一種利用影像資料製作 音樂之方法,其係將擷取到之動態影像或靜態影像進行分 析比對,再根據比對後之結果決定一音符訊號,而在收集 到多數個音符訊號時,即利用音樂編輯模組將這些音符訊 號編輯成樂曲,再利用聲音產生模組與播放裝置播放此樂 曲,增加了使用者在使用電子裝置時的娛樂性。 本發明提出一種利用影像資料製作音樂之方法,其首 先係利用影像擷取裝置取得一動態影像(步驟一),其次 對所得到之動態影像進行分析,而在分析後將可獲得一影 像參數(步驟二)。接著,以得到之影像參數與資料庫中 多數個內建標準値作比對,根據比對結果,將可獲得至少 一音符訊號(步驟三)。最後,輸出此音符訊號(步驟四)。 依照本發明的較佳實施例所述,上述之分析動態影像 並獲得影像參數之步驟中係包括在得到動態影像後,擷取 部分之動態影像,以獲得多數個靜態影像。接著,由任一 這些靜態影像資料中取得影像參數。其中,例如是對靜態 影像資料作平均運算,此平均運算係爲計算任一這些靜態 影像之平均圖素質或任一這些靜態影像之平均亮度。 依照本發明的較佳實施例所述,上述之輸出音符訊號 可以用擴音裝置播放此音符訊號,或是更可在收集到多個 音符訊號後(將這些音符訊號儲存於記憶體內),利用音 樂編輯模組將這些音符訊號編輯成樂曲,然後再以擴音裝 1292133 12512twfl .doc/006 96-2-14 置播放此樂曲。 本發明提出另一種利用影像資料製作音樂之方法,其 首先係利用影像擷取裝置擷取一靜態影像(步驟一)。其 次’對此靜態影像進行分析,而在分析後將可獲得多數個 影像參數(步驟二)。接著,取這些影像參數的其中之一 與資料庫中之多數個內建標準値進行比對,然後,根據比 對結果,將可獲得至少一音符訊號。最後,則輸出所得到 之音符訊號。 依照本發明的較佳實施例所述,上述之分析靜態影像 並獲得這些影像參數之步驟包括分析此靜態影像之單一行 與單一列其中之一的圖素質或是單一行與單一列其中之一 的亮度。 本發明因採用將影像轉換音樂的方法,因此可將擷取 到之動態影像分割爲多個靜態影像,再利用任一靜態影像 之圖素質或是亮度與資料庫中之標準値進行比對,以將動 態影像資料轉換成爲聲音資料,而增加使用者的娛樂性。 爲讓本發明之上述和其他目的、特徵和優點能更明顯 易懂,下文特舉一較佳實施例,並配合所附圖式,作詳細 說明如下。 【實施方式】 請參照第1圖,其繪示依照本發明一較佳實施例的一 種利用影像資料製作音樂之方法的步驟流程圖。此方法之 步驟流程係爲首先利用影像擷取裝置取得一動態影像 (sl02)。其中,如熟悉此技藝者可輕易知曉,影像擷取 裝置可以是行動電話(Mobile Phone)、掌上型電腦(Pocket 1292133 12512twfl .doc/006 96-2-14 PC)、個人化數位助理(PDA)、可攜帶式電腦(Portable PC)、 數位相機、數位攝影機或是電腦使用之網路攝影機(Web camera)等等,但均不以此爲限。 其次,對所擷取到之動態影像進行分析,而在經過分 析後將得到一影像參數(sl20)。其中,分析之動作爲根 據此動態影像得到多個靜態影像(sl〇4),然後再由任一 這些靜態影像中取得影像參數(sl〇6)。由動態影像得到 多個靜態影像之步驟,如熟悉此技藝者可知,可以是將動 態影像以時間點之不同切分爲多數個靜態影像。而取得影 像參數之步驟,如熟悉此技藝者可知,可以是對任一這些 靜態影像作平均運算,例如是計算任一這些靜態影像之平 均圖素質或平均亮度,但均不以此爲限。 接著,將得到之影像參數與資料庫中多數個內建標準 値作比對,且根據此比對結果,可得到至少一音符訊號 (sl08)或是一節奏訊號,其中此音符訊號可爲一樂器所 發出之一音符訊號或是由多種樂器所合成發出之一音符訊 號且節奏訊號可爲一敲擊物件所發出之聲音,諸如鼓聲。 在比對結果中,音符訊號也可與節奏於同一時間點發出。 如熟悉此技藝者可輕易知曉,上述所使用之資料庫可以是 音樂資料庫,但不以此爲限。而內建標準値可以例如是內 建於上述之影像擷取裝置內,或是也可根據影像擷取裝置 之使用者的個人喜好來設定此內建標準値。 在本實施例中,當影像參數與內建標準値進行比對 時’可以例如是當影像參數落在任兩相鄰之內建標準値 時,才決定此音符訊號,但不以此爲限。 1292133 96-2-14 12512twfl.doc/006 最後’輸出此音符訊號,且可以例如是先用聲音產生 模組將此苜符訊號轉換成聲音,再由擴音裝置將聲音播放 出來播放(sll〇)。 在本實施例中,獲得音符訊號之步驟sl〇2至步驟sl08 在執行多數次之後,將可得到多數個音符訊號。因此,可 將這些音符訊號儲存於記憶體內(S112),如熟悉此技藝 者可輕易知曉’記憶體可以是配置於影像擷取裝置內,但 不以此爲限。接著’再利用音樂編輯模組將這些音符訊號 編輯成樂曲(S114)。最後,則例如是先用聲音產生模組 將此樂曲轉換成聲音,再由擴音裝置將聲音播放出來播放 (sll6)。 接著請參照第2圖,其繪示依照本發明另一較佳實施 例的一種利用影像資料製作音樂之方法的步驟流程圖。在 本實施例中,此方法之步驟流程爲首先利用影像擷取裝置 擷取一靜態影像(s202)。 其次,對此靜態影像進行分析,而在分析後將可獲得 多數個影像參數(s204)。其中,如熟悉此技藝者可知, 可以是分析靜態影像之單一行或單一列的圖素質或是分析 單一行或單一列的売度後,得到這些影像參數。 在本實施例中,在獲得這些影像參數後,即選取這些 影像參數的其中之一與資料庫中之多數個內建標準値進行 比對(s206)。接著,即可根據比對結果獲得至少一音符 訊號(s208 )或是一節奏訊號,其中此音符訊號可爲一樂 器所發出之一音符訊號或是由多種樂器所合成發出之一音 符訊號且節奏訊號可爲一敲擊物件所發出之聲音,諸如鼓 1292133 12512twfl.doc/006 96-2-14 聲。在比對結果中,音符訊號也可與節奏於同一時間點發 出。當影像參數與內建標準値進行比對時,可以例如是當 影像參數落在任兩相鄰之內建標準値時,才決定此音符訊 號,但不以此爲限。 最後,輸出此音符訊號,且可以例如是先用聲音產生 模組將此音符訊號轉換成聲音,再由擴音裝置將聲音播放 出來播放(s210 )。 在本實施例中,利用影像資料製作音樂之方法在執行 步驟s202至步驟s208多數次後,將可得到多數個音符訊 號。因此,可將這些音符訊號儲存於記憶體內(s212), 再利用音樂編輯模組將這些音符訊號編輯成樂曲(S214)。 最後,則例如是先用聲音產生模組將此樂曲轉換成聲音, 再由擴音裝置將聲音播放出來播放(s216)。 綜上所述,本發明可將擷取到之動態影像分割爲多個 靜態影像,再利用任一靜態影像之圖素質或是亮度與資料 庫進行比對,以將動態影像資料轉換成爲聲音資料,而增 加使用者的娛樂性。 雖然本發明已以較佳實施例揭露如上’然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍內,當可作些許之更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者爲準。 【圖式簡單說明】 第1圖是繪示依照本發明一較佳實施例的一種利用影 像資料製作音樂之方法的步驟流程圖。 第2圖是繪示依照本發明另一較佳實施例的一種利用 1292133 12512twfl.doc/006 96-2-14 影像資料製作音樂之方法的步驟流程圖。 【圖式標示說明】 sl02 :擷取一動態影像 sl04 :根據動態影像獲得多數個靜態影像 sl06:由任一這些靜態影像資料中取得影像參數 sl08 :以此影像參數與多數個內建標準値進行比對, 並獲得一音符訊號 sllO :播放音符訊號 sll2 :儲存音符訊號 sll4 :將音符訊號編輯成一樂曲 sll6 :播放此樂曲 sl20 :分析此動態影像,並獲得影像參數 s202 :擷取一靜態影像 s204 :分析靜態影像,並獲得多數個影像參數 s206 :以任一個影像參數與多數個內建標準値作比對 S208 :根據此比對結果,獲得音符訊號 s210 :播放音符訊號 s212 :儲存音符訊號 S214 :將音符訊號編輯成一樂曲 s216 :播放此樂曲1292133 12512twfl.doc/006 96-2-14 IX. Description of the invention: [Technical field of the invention] The present invention relates to a method for making music using an electronic device, and in particular to a dynamic After the image is compared and analyzed, the comparison result is made into a single note or a piece of music. [Prior Art] Mobile phones, Pocket PCs, Personalized Digital Assistants (PDAs) or Portable PCs can be used in the field of wireless communication and Internet. In this way, it brings people's convenience in life and more efficient mobile communication processing, and it has become the most popular high-tech electronic products. In terms of the communication function of mobile phones, the traditional mobile operators who have demanded the quality of calls have repositioned the functions of mobile phones. Especially when the second-generation mobile communication system or the third-generation mobile communication system is gradually maturing, the service provided by the multi-functional mobile phone is no longer just communication, but a multi-dimensional wireless communication service, such as a downloadable mobile phone. The function of ringtones, graphics, and songs, or uploading or downloading images of action photos, as well as large-capacity photo albums, audio-visual management tools, and more. These additional functions, coupled with small digital cameras mounted on mobile phones, such as photo/image sensors, lens and other image capture components, have become an important source of image capture. One of the indispensable tools for the new generation of mobile phones in the future ^ [Summary] The object of the present invention is to provide a method for making music using image data, which is to analyze the motion image or still image captured by the system 1292133 12512 twfl .doc/006 96-2-14 Yes, then determine a note signal based on the result of the comparison, and finally use the sound generation module and the playback device to play the note signal, so that the user can have more when capturing the image. fun of. Another object of the present invention is to provide a method for making music by using image data, which compares the captured moving image or still image, and then determines a note signal according to the result of the comparison, and collects When a plurality of note signals are used, the music editing module is used to edit the note signals into music pieces, and then the sound generating module and the playing device play the music piece, thereby increasing the entertainment of the user when using the electronic device. The invention provides a method for making music by using image data, which firstly obtains a motion image by using an image capturing device (step 1), and then analyzes the obtained motion image, and an image parameter is obtained after analysis ( Step two). Then, the obtained image parameters are compared with a plurality of built-in standards in the database, and at least one note signal is obtained according to the comparison result (step 3). Finally, the note signal is output (step 4). According to a preferred embodiment of the present invention, the step of analyzing the motion image and obtaining the image parameter includes: after obtaining the motion image, capturing a part of the motion image to obtain a plurality of static images. Next, image parameters are obtained from any of these still image data. For example, the averaging operation is performed on the static image data, and the averaging operation is to calculate the average picture quality of any of the still images or the average brightness of any of the still images. According to a preferred embodiment of the present invention, the output note signal can be played by the sound amplification device, or after the plurality of note signals are collected (the note signals are stored in the memory), The music editing module edits these note signals into a piece of music, and then plays the piece in 11-2133 12512twfl .doc/006 96-2-14. Another method for making music using image data is proposed by the present invention. First, a still image is captured by the image capturing device (step 1). The second is to analyze this static image, and after analysis, many image parameters will be obtained (step 2). Then, one of the image parameters is compared with a plurality of built-in standards in the database, and then at least one note signal is obtained according to the comparison result. Finally, the resulting note signal is output. According to a preferred embodiment of the present invention, the step of analyzing the static image and obtaining the image parameters includes analyzing the image quality of one of the single row and the single column of the still image or one of a single row and a single column. Brightness. The invention adopts a method for converting images into music, so that the captured moving image can be divided into a plurality of still images, and then the image quality or brightness of any static image is compared with the standard 値 in the database. To convert the dynamic image data into sound data, and to increase the user's entertainment. The above and other objects, features, and advantages of the present invention will become more apparent from the understanding of the appended claims. Embodiments Please refer to FIG. 1 , which is a flow chart showing the steps of a method for making music using image data according to a preferred embodiment of the present invention. The step flow of the method is to first obtain a motion picture by using the image capturing device (s102). Among them, as can be easily known to those skilled in the art, the image capturing device can be a mobile phone (Mobile Phone), a palmtop computer (Pocket 1292133 12512twfl.doc/006 96-2-14 PC), and a personalized digital assistant (PDA). , Portable PC, digital camera, digital camera or computer camera (Web camera), etc., but not limited to this. Secondly, the captured dynamic image is analyzed, and after analysis, an image parameter (sl20) is obtained. The action of the analysis is to obtain a plurality of still images (sl〇4) according to the motion image, and then obtain image parameters (sl〇6) from any of the still images. The step of obtaining a plurality of still images from a moving image, as known to those skilled in the art, may be to divide the dynamic image into a plurality of still images at different points in time. The steps of obtaining the image parameters, as known to those skilled in the art, may be an averaging operation on any of these still images, for example, calculating the average image quality or average brightness of any of the still images, but not limited thereto. Then, the obtained image parameters are compared with a plurality of built-in standards in the database, and according to the comparison result, at least one note signal (sl08) or a rhythm signal can be obtained, wherein the note signal can be one One of the musical notes emitted by the instrument or a combination of a plurality of instruments emits a note signal and the rhythm signal can be a sound from a knocking object, such as a drum sound. In the comparison result, the note signal can also be sent at the same time point as the rhythm. As will be readily appreciated by those skilled in the art, the database used above may be a music library, but is not limited thereto. The built-in standard can be, for example, built into the image capture device described above, or can be set based on the personal preferences of the user of the image capture device. In this embodiment, when the image parameter is compared with the built-in standard ’, the note signal can be determined, for example, when the image parameter falls within any two adjacent standards, but is not limited thereto. 1292133 96-2-14 12512twfl.doc/006 Finally, 'output this note signal, and for example, first use the sound generation module to convert the note signal into sound, and then the sound is played back by the sound amplification device (sll〇 ). In this embodiment, after the steps s1〇2 to s108 of obtaining the note signal are performed for a plurality of times, a plurality of note signals are available. Therefore, the note signals can be stored in the memory (S112). As can be easily understood by those skilled in the art, the memory can be disposed in the image capturing device, but not limited thereto. Then, the music editing module is used to edit the note signals into music pieces (S114). Finally, for example, the sound generation module is first converted into a sound, and then the sound is played back by the sound amplifying device (sll6). Next, please refer to FIG. 2, which is a flow chart showing the steps of a method for making music using image data according to another preferred embodiment of the present invention. In this embodiment, the step of the method is to first capture a still image by using the image capturing device (s202). Second, the static image is analyzed, and after analysis, a plurality of image parameters are obtained (s204). As can be seen by those skilled in the art, these image parameters can be obtained by analyzing the picture quality of a single line or a single column of a still image or analyzing the intensity of a single line or a single column. In this embodiment, after obtaining the image parameters, one of the image parameters is selected and compared with a plurality of built-in standards in the database (s206). Then, at least one note signal (s208) or a rhythm signal can be obtained according to the comparison result, wherein the note signal can be a note signal sent by an instrument or a note signal and a rhythm synthesized by a plurality of instruments. The signal can be a sound from a knocking object, such as a drum 1292133 12512twfl.doc/006 96-2-14 sound. In the comparison result, the note signal can also be sent at the same time point as the rhythm. When the image parameters are compared with the built-in standard ,, the note signal can be determined, for example, when the image parameter falls within any two adjacent standards, but is not limited thereto. Finally, the note signal is output, and for example, the note generating signal can be converted into a sound by the sound generating module, and then the sound is played back by the sound amplifying device (s210). In the present embodiment, the method of making music using the image data will obtain a plurality of note signals after performing the steps s202 to s208 a plurality of times. Therefore, the note signals can be stored in the memory (s212), and the note signals are edited into music pieces by the music editing module (S214). Finally, for example, the music is first converted into a sound by a sound generating module, and then the sound is played back by the sound amplifying device (s216). In summary, the present invention can divide the captured dynamic image into a plurality of still images, and then compare the image quality or brightness of any static image with the database to convert the dynamic image data into sound data. And increase the entertainment of the user. Although the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flow chart showing the steps of a method for making music using image data in accordance with a preferred embodiment of the present invention. FIG. 2 is a flow chart showing the steps of a method for making music using 1292133 12512 twfl.doc/006 96-2-14 image data according to another preferred embodiment of the present invention. [Graphic indication] sl02: Capture a dynamic image sl04: Obtain a plurality of still images sl06 according to the motion image: Obtain image parameters sl08 from any of these still image data: use this image parameter with most built-in standards Align, and obtain a note signal sllO: play note signal sll2: store note signal sll4: edit note signal into a song sll6: play the song sl20: analyze the motion picture, and obtain image parameter s202: capture a still image s204 : analyzing the static image and obtaining a plurality of image parameters s206: comparing any image parameter with a plurality of built-in standards S208: according to the comparison result, obtaining the note signal s210: playing the note signal s212: storing the note signal S214 : Edit the note signal into a song s216: play this song