201021510 九、發明說明: 【發明所屬之技術領域】 本發明涉及一種分類裝置及方法,尤其涉及一種通訊 裝置及利用該通訊裝置進行相片分類的方法。 【先前技術】 今天的手機,除了用於通話外,其他的附加功能日漸 豐富,在手機開發商和服務商不遺餘力的挖掘下,手機的 娛樂價值日益凸現。201021510 IX. Description of the Invention: [Technical Field] The present invention relates to a classification device and method, and more particularly to a communication device and a method for performing photo classification using the communication device. [Prior Art] Today's mobile phones, in addition to being used for calls, are becoming more and more abundant. The mobile phone developers and service providers have spared no effort to tap the mobile entertainment value.
Ο 隨著人們生活的曰益豐富’單純通話功能的手機滿足 不了消費者多樣化、個性化的需求,娛樂功能的手機應運 而生。而娛樂型的手機對於如今日益眾多並且 力的年輕-族來說是非常具有吸引力的,比如利用3進 行拍攝相片。如今的大多數手機都具備一定的量, 且能夠進打拍攝相片的魏,可以滿足消費者的這種需求。 用戶=看目片太多’而這些柄片沒有進行分類, 用戶在查看相片時會不清楚相片拍攝的地點。 【發明内容】 鑒於以上内各,有必要提供一種通 訊裝置進^目片分_方法,可根制 _ 對在該區域内拍攝的相片進行自動分類。 種通訊裝1’與提供各基地自 所在區域地名的伺服器诵m π乂汉令签吧口 八魅連接,麟對獲取的相片進行 刀類’祕錢置包括相機模組及記憶體,w裝置包 括.識別碼獲取敝1於獲取觸述通崎置通訊連接 7 201021510 的基地台的識別碼;傳送模組,用於傳送獲取的識別碼至 所述的伺服器;地名獲取模組,用於從所述的伺服器獲取 .與該識別碼相應的基地台所在區域的地名;命名模組,用 於根據該獲取的地名建立檔案夾,設置相片的命名規則, 並根據該命名規則以及所獲取的地名對所述的相機模組所 拍攝的相片進行命名;及儲存模組,用於將命名後的相片 儲存於所建立的檔案夾中。 Ο —種利用該通訊裝置進行相片分類的方法,應用在通 訊裝置中’該通訊裝置與提供各基地台識別碼以及各基地 台所在區域地名的伺服器通訊連接,該方法包括如下步 驟:設置相片的命名規則;利用所述通訊裝置的相機模組 拍攝相片;獲取與所述通訊裝置通訊連接的基地台的識別 碼;傳送獲取的識別碼至所述的伺服器;從所述的伺服器 獲取與該識別碼相應的基地台所在區域的地名;根據該獲 取的地名建立擋案夾;根據該命名規則以及所獲取的地名 0 對所述的相機模組所拍攝的相片進行命名;及將命名後的 相片儲存於所建立的檔案夾中。 相較於習知技術,所述的通訊裝置及利用該通訊裝置 進行相片分類的方法,其可自動獲取用戶所在區域的地 名’並根據該地名對用戶利用該通訊裝置在該區域内拍攝 的相片進行自動分類。 【實施方式】 如圖1所示,是本發明通訊裝置的較佳實施方式的運用 環境圖。所述的通訊裝置1通過一個或者多個基地台2與一 8 201021510 個伺服器3相連接。所述的伺服器3可以是電腦主機,其包 括資料庫30與處理裝置32,其中,該資料庫30用於儲存基 -地台2的識別碼(ID,Identification)以及每個基地台2所 在區域的地名,該識別碼與地名相對應以便可根據識別碼 獲悉基地台2所在區域的地名。所述的資料庫3〇可建立在所 述的伺服器3的記憶體中,或者建立在外接於該飼服器3的 儲存裝置中。該處理裝置32可以是電腦的中央處理器 (CPU ’ Central Processing Unit),用於處理用戶通過所述 ❺ 的通訊裝置1發送的請求’並將處理結果返回至所述的通訊 裝置1。 所述的伺服器3還可提供多個用戶介面,用於連接各個 通訊裝置1,接收用戶請求、處理用戶請求、返回用戶請求 等。在本較佳實施方式中,所述飼服器3可由電信運營商、 政府部門、提供商業資訊服務的運營商、或者個人所建構 的網站伺服器(Web server )。 馨 所述的基地台2可以是無線網路基地台,也可以是移動 電話基地台。 所述的通訊裝置1用於獲取其所在區域的基地台2的識 別碼,發送該識別碼至所述的伺服器3以獲取該識別碼對應 的地名,並根據該地名命名所拍攝的相片。 如圖2所示,是本發明通訊裝置的較佳實施方式的功能 模組圖。所述的通訊裝置1主要包括:相機模組10、處理器 11、記憶體12、識別碼獲取模組13、傳送模組14、地名獲 取模組15、命名模組16以及儲存模組17。 201021510 所述的相機模組ίο通常包括圖像感測器、鏡頭及鏡 -座’也可包括其他元件或裝置。該圖像感測器可以是 . CCD(Charge Coupled Device,電荷藕合器件),或者是 CMOS(Complementary Metal-〇xide.SemiconductorΟ With the richness of people's lives, the mobile phone with simple call function can't satisfy the diversified and personalized needs of consumers, and the entertainment function mobile phone comes into being. And entertainment-type mobile phones are very attractive for today's increasingly young and powerful young people, such as using 3 to take photos. Most of today's mobile phones have a certain amount, and Wei, who can take photos, can meet the needs of consumers. The user = see too many pictures ‘and these shards are not classified, and the user may not know where the photo was taken when viewing the photo. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a communication device into a method, which can automatically categorize photos taken in the area. The communication device 1' is connected with the server that provides the names of the bases in the area from the location of the area 诵m π乂 令 签 吧 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , The device includes: an identification code acquisition 敝1 for obtaining an identification code of the base station that touches the Tasaki communication connection 7 201021510; a transmission module for transmitting the acquired identification code to the server; and a place name acquisition module, Obtaining, from the server, a place name of a region of the base station corresponding to the identification code; a naming module, configured to create a file folder according to the acquired place name, set a naming rule of the photo, and according to the naming rule and the The acquired place name names the photos taken by the camera module; and the storage module is used to store the named photos in the created folder. A method for categorizing photos by using the communication device, which is used in a communication device to communicate with a server that provides each base station identification code and a place name of each base station. The method includes the following steps: setting a photo a naming rule; taking a photo by using a camera module of the communication device; acquiring an identification code of a base station communicatively connected to the communication device; transmitting the acquired identification code to the server; obtaining from the server a place name of a region of the base station corresponding to the identification code; a folder is created according to the acquired place name; the photo taken by the camera module is named according to the naming rule and the acquired place name 0; and the name will be named The subsequent photos are stored in the created folder. Compared with the prior art, the communication device and the method for performing photo classification by using the communication device can automatically acquire the place name of the user's area and use the communication device to take photos in the area according to the place name. Perform automatic classification. [Embodiment] As shown in Fig. 1, it is an operational environment diagram of a preferred embodiment of the communication device of the present invention. The communication device 1 is connected to an 8 201021510 server 3 via one or more base stations 2. The server 3 may be a computer host, which includes a database 30 and a processing device 32, wherein the database 30 is used to store the identification code (ID) of the base station 2 and each base station 2 The place name of the area, the identification code corresponding to the place name so that the place name of the area where the base station 2 is located can be known according to the identification code. The database 3 can be built in the memory of the server 3 or in a storage device external to the feeder 3. The processing device 32 may be a central processing unit (CPU's Central Processing Unit) for processing a request transmitted by the user via the communication device 1' and returning the processing result to the communication device 1. The server 3 can also provide a plurality of user interfaces for connecting the respective communication devices 1, receiving user requests, processing user requests, returning user requests, and the like. In the preferred embodiment, the feeder 3 can be a web server constructed by a telecommunications carrier, a government department, an operator providing a commercial information service, or an individual. The base station 2 described by Xin may be a wireless network base station or a mobile phone base station. The communication device 1 is configured to acquire the identification code of the base station 2 in the area where it is located, send the identification code to the server 3 to obtain the place name corresponding to the identification code, and name the captured picture according to the place name. 2 is a functional block diagram of a preferred embodiment of the communication device of the present invention. The communication device 1 mainly includes a camera module 10, a processor 11, a memory 12, an identification code acquisition module 13, a transmission module 14, a place name acquisition module 15, a naming module 16, and a storage module 17. The camera module ίο described in 201021510 generally includes an image sensor, a lens and a mirror-seat' which may also include other components or devices. The image sensor can be a CCD (Charge Coupled Device) or a CMOS (Complementary Metal-〇xide.Semiconductor)
Transistor’互補型金屬氧化物半導體)。所述的相機模組1〇 用於拍攝相片或者短片。 所述的處理器11用於執行所述通訊裝置1内的應用程 式及作業系統等軟體。 ❹ 所述的記憶體12可以内置於所述通訊裝置i,也可以是 與所述通訊裝置1連接的外部儲存卡,如SM卡(Smart Media Card,智慧媒體卡)、SD卡(Secure Digital Card, 安全數位卡)等。所述的記憶體12用於儲存各類資料,包 括利用所述相機模組10拍攝的相片或者短片、利用所述的 通訊裝置1所設置或者獲取的相關資料。 所述的識別碼獲取模組13用於獲取與所述通訊裝置1 ❹ 連接的基地台2的識別碼。如圖4所示的基地台分佈示意圖 中’所述的通訊裝置1所在的區域是識別碼為2的基地台所 覆蓋的區域’因此’該識別碼獲取模組13可獲取識別碼2。 所述的傳送模組14用於通過所述的基地台2連接該通 訊裝置1與所述的伺服器3,傳送該基地台2的識別碼至所述 的伺服器3以檢索所述的伺服器3内的資料庫30,以便確認 該識別碼相對應的地名。 所述的地名獲取模組15用於從所述的伺服器3獲取與 該通訊裝置1所連接的基地台2的識別碼相應的地名,即該 201021510 通訊裝置1所在區域的地名。 所述的命名模組16用於設置相片的命名規則以對相機 模組10所拍攝的相片進行命名。在本較佳實施方式令,# 命名規則為地名加時間戳,例如:將一張相片命名為“深圳 -2008-10-22-0820”,表示在2008年10月22日上午8點2〇分於 深圳拍攝該相片,該時間戳可直接通過所述的相機模组1〇 獲取。該命名規則也可以是地名加序列號,例如,“深圳 -008”表示在深圳所拍攝的第8張相片。 所述的命名模組16還用於根據該獲取的地名建立標案 夾’並根據命名規則以及所獲取的地名對相機模組1〇所拍 攝的相片進行命名。所述的命名模組16在根據地名建立槽 案夾時,會先於所述的記憶體12中檢索是否已經存在該地 名的檔案夾,若已經存在,則無需再建立。 所述的儲存模組17用於將命名後的相片儲存於相應地 名的檔案夾中。 通過利用上述模組的功能,可實現對拍攝的相片根據 地名進行分類儲存。此外,利用上述模組,還可對通過所 述的相機模組10拍攝的短片以及所述通訊裝置工内的其他 檔案或者資料進行命名以實現對資料的分類。 如圖3所示,是本發明利用該通訊裝置進行相片分類的 方法的較佳實施方式的流程圖。首先,步驟S2,所述的命 名模組16設置相片的命名規則以對相機模组1〇所拍攝的相 片進行命名。 步驟S4,利用所述的相機模組10拍攝相片。 11 201021510 步驟S6,所述的識別碼獲取模組13獲取與所述通訊裝 置1連接的基地台2的識別碼。 • 步驟S8,所述的傳送模組14通過所述的基地台2連接 該通訊裝置1與所述的伺服器3,傳送該基地台2的識別碼至 所述的伺服器3以檢索所述的伺服器3内的資料庫3〇,從而 確認與該識別碼相對應的地名。 步驟sio,所述的地名獲取模組15從所述的伺服器3獲 取與該通訊裝置1所連接的基地台2的識別碼相應的地名, ❹ 即該通訊裝置1所在區域的地名。 步驟S12,所述的命名模組16根據該獲取的地名建立 檔案夾,並根據命名規則以及所獲取的地名對相機模組扣 所拍攝的相#進行命名。所㈣命名模在根據地名建 立檔案夾時,會先於所述的記顏12中檢索是否已經存 該地名的檔案夾,若已經存在,則無需再建立。 ❹ 步驟S14,所述的儲存模組1?將命名後的相片儲 相應地名的檔案夾中,並結束本流程。 、 通過利用上述模組的功能,可實現對拍攝的相 地名進行分_存。此外,利用上述模組,還可對= 述的相機模組_攝的短片以及所述通訊裝 檔案或者資料進行命名以實現對㈣的分類。、、 =上所述、’树_合發明專财件,㈣法提 1 -月。惟’以上所述者僅為本發明之較佳實施 發明之範圍並不以上述實施方式為限,舉凡㈣本 之人士援財剌讀神所作之等歸飾或㈣,皆^ 201021510 蓋於以下申請專利範圍内。 【圖式簡單說明】 圖1是本發明通訊裝置的較佳實施方式的運用環境圖。 圖2是本發明通訊裝置的較佳實施方式的功能模組圖。 圖3是本發明的相片分類方法的較佳實施方式的流程 圖。 圖4是本發明通訊裝置的較佳實施方式的基地台分佈 圖。 【主要元件符號說明】 通訊裝置 1 相機模組 10 處理器 11 記憶體 12 識別碼獲取模組 13 傳送模組 14 地名獲取模組 15 命名模組 16 儲存模組 17 基地台 2 伺服器 3 資料庫 30 處理裝置 32 13Transistor's complementary metal oxide semiconductor. The camera module 1 is used for taking photos or movies. The processor 11 is configured to execute software such as an application program and an operating system in the communication device 1. The memory 12 may be built in the communication device i, or may be an external storage card connected to the communication device 1, such as a SIM card (Smart Media Card) or an SD card (Secure Digital Card). , secure digital card) and so on. The memory 12 is used for storing various types of materials, including photos or short films taken by the camera module 10, and related materials set or acquired by the communication device 1. The identifier acquisition module 13 is configured to acquire an identification code of the base station 2 connected to the communication device 1 . The area in which the communication device 1 is located in the base station distribution diagram shown in Fig. 4 is the area covered by the base station having the identification code of 2, so the identification code acquisition module 13 can acquire the identification code 2. The transmission module 14 is configured to connect the communication device 1 and the server 3 through the base station 2, and transmit the identification code of the base station 2 to the server 3 to retrieve the servo. The database 30 in the device 3 is used to confirm the place name corresponding to the identification code. The place name acquisition module 15 is configured to acquire, from the server 3, a place name corresponding to the identification code of the base station 2 to which the communication device 1 is connected, that is, the place name of the area where the communication device 1 is located in 201021510. The naming module 16 is configured to set a naming rule for the photo to name the photo taken by the camera module 10. In the preferred embodiment, the # naming rule adds a time stamp to the place name, for example, a photo is named "Shenzhen-2008-10-22-0820", which means that at 8:00 am on October 22, 2008. The photo is taken in Shenzhen, and the time stamp can be directly obtained through the camera module 1〇. The naming rule can also be a place name plus a serial number. For example, "Shenzhen -008" indicates the 8th photo taken in Shenzhen. The naming module 16 is further configured to create a label folder according to the acquired place name and name the photo taken by the camera module 1 according to the naming rule and the obtained place name. When the naming module 16 creates a slot folder according to the place name, it searches for the file folder of the place name before the memory 12, and if it already exists, it does not need to be established. The storage module 17 is configured to store the named photos in a folder of the corresponding place name. By utilizing the functions of the above modules, it is possible to classify and store photographs taken according to place names. In addition, with the above module, the short film taken by the camera module 10 and other files or materials in the communication device can be named to realize the classification of the data. 3 is a flow chart of a preferred embodiment of the method for categorizing photos using the communication device of the present invention. First, in step S2, the naming module 16 sets a naming rule for the photo to name the picture taken by the camera module 1 。. In step S4, the camera module 10 is used to take a photo. 11 201021510 Step S6, the identification code acquisition module 13 acquires the identification code of the base station 2 connected to the communication device 1. In step S8, the transmission module 14 is connected to the communication device 1 and the server 3 through the base station 2, and transmits the identification code of the base station 2 to the server 3 to retrieve the The database 3 in the server 3 confirms the place name corresponding to the identification code. In step sio, the place name acquisition module 15 obtains, from the server 3, a place name corresponding to the identification code of the base station 2 to which the communication device 1 is connected, that is, the place name of the area in which the communication device 1 is located. In step S12, the naming module 16 creates a folder according to the acquired place name, and names the camera # captured according to the naming rule and the obtained place name. (4) When the naming module establishes a folder according to the place name, it first searches whether the folder of the place name has been saved in the note 12, and if it already exists, it does not need to be established. ❹ Step S14, the storage module 1 stores the named photo in the folder of the corresponding place name, and ends the process. By using the functions of the above modules, it is possible to divide and share the photographed relative names. In addition, by using the above module, the short film of the camera module and the communication file or data can be named to realize the classification of (4). ,, = above, 'tree_invented special wealth, (4) law 1 - month. However, the above description is only for the scope of the preferred embodiments of the present invention and is not limited to the above-described embodiments, and any person who has (4) the person assisting the money to read God's tribute or (4) is ^ 201021510 Within the scope of the patent application. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing the operational environment of a preferred embodiment of a communication device of the present invention. 2 is a functional block diagram of a preferred embodiment of the communication device of the present invention. Fig. 3 is a flow chart showing a preferred embodiment of the photo sorting method of the present invention. Figure 4 is a diagram showing the distribution of a base station of a preferred embodiment of the communication device of the present invention. [Main component symbol description] Communication device 1 Camera module 10 Processor 11 Memory 12 ID acquisition module 13 Transmission module 14 Place name acquisition module 15 Name module 16 Storage module 17 Base station 2 Server 3 Database 30 processing device 32 13