1253290 九、發明說明: 【發明所屬之技術領域】 本發明涉及-聽仙機資_存的㈣方法,尤指_健位相機 的儲存空間管理方法。 【先前技術】 與傳統相射同,數帅機是哺位資訊格式將照㈣存於儲存卡 力以保存’且為了 g卩省空間’通常照片資訊被儲存至數位儲存卡前都會 先被壓縮’如·存為通G、GIF等失真性壓縮格式之影像標。θ '、谓’ &齡魏軸機±的影像狀壓縮比率似可維持影像 於一定品質之上為設定目標,以供使用者將影像標轉印為一般實體相片 時’不至於出現格狀或模糊之情形,但由於目前的數位相機技術日新月 異,感光猶的製造技術亦大幅提昇,因此數百萬晝素以上的數位相機 已成為市場趨勢;在此種情形之 时 下,早一釤像檔案佔據儲存卡之容量亦 因晝素的提昇而相對提高,因此常發生拍攝之影像張數不多但記憶卡容 里不足嘯彡,錄崎目職_舰他較不重要 的影像檔案或更換記憶存儲卡以 、 解决之,但此種做法並不適合某些特定 狀況以及使用者的需求,如出外 卜舨龟部只帶一張記憶卡、拍攝之影像僅 作為網頁之使用等,且記憶卡 之偏格叩貝亦會造成消費者的負擔。 口此#里以數位相機拍攝之影像槽案實際上有轉印為一般實體相 置,供個者奴欲_巧 茶而在§己丨思卡容量即將耗盡時,能 動稭由k咼未保護影像檔案之 細比而重新壓縮之做法,既可保護必 1253290 要之影_不朗_比叫低影_,又可善_卡之空 間降低消費者金錢上之負擔,實為市場上所殷切企盼者 、皿於上述原因’本發明提出了 _種新的數位相機的儲存空間管理方 法。 【發明内容】 ▲本發明之目的在於提4 一種數位相機的儲存空間管理方法,該方法 此使相機實現大容量儲存,而且儲存操作簡便易行。 本么月之目的通過町技術方案實現、種數位相機的儲存空間管 理方法,其係包含以下步驟:自動檢測相機之儲存媒介中剩餘的儲存空 間大小疋否足以容納至少一新的照片;當前述儲存空間不足時,依據前 述剩餘的儲存峨小,對·存媒介中已壓縮職行解壓縮,·產生 一新_比,對前述解壓縮之照片進賴_並儲存至該健存媒介中; 重覆前述步驟,直職儲存媒介之剩餘儲存空敗以容納前述新的照片 為止,以及儲存此新照片至儲存媒介中。 與現有技術概’本發難在_空_實現大容存,且養 料由相機編動進行,無以工作業。這使得採用這種的儲存空間 官理方法的數位相機智慧化更高,操作更簡便。 【實施方式】 在-般的數位相機照片的齡管理中,麵為節省空間通常都合使 用1演算法標準將照片_訊進行1縮處理再加以齡。依據本發 明較佳實施例所提出之-數位相機的儲存空間管理方法即採用一種 1253290 壓縮標 (oint Photographic Experts Group,聯合圖片專家組) 準,該儲存法包括以下步驟: a)自動“測相機之儲存媒介中義的儲存空間大小並判斷是否 足以容納至少一新的照片; b)田刖述儲存空間不足時,依據前述_的儲存空間大小,對 該儲存媒介中已壓縮即進行解壓縮; C)產生一新壓縮比,對前述解壓縮之照片進行再壓縮並儲存至 該儲存媒介中; d) 重覆瞒步驟a)、b)及c),直到該儲存媒介之剩餘儲存空 間足以容納前述之新照片為止;以及 e) 儲存此新照片至儲存媒介中。 其中’上述之JPEG標準係-種國際通用之有損式壓縮演算法,能 高效能壓_像。在這種演算法巾,_資料會先被分赋塊,並對每 塊進行離散餘弦變換(Discrek Cosine Transform,DCT)、量化以及 作為可變長編碼的霍夫曼編碼(Huffmanc〇ding)處理。使用這種有損式 壓縮异法,壓縮後還原得到之圖像與原始圖像相比較,甚至可以作到在 壓縮比為25:1的情況下,非圖像專家難以找出其間之區別,因此jpEG 標準被廣泛用於需要大比例壓縮儲存的領域。 晴參照圖示’第一圖所示為依據本發明較佳實施例之一數位相機的 儲存空間管理方法之系統流程圖。首先,相機開機,系統初始化(步驟 sO。待初始化完成後,相機開始進行模式檢測(步驟S2),此時系統 !25329〇 綠示操作者設定/改變相機模式(步驟S21)。當模式設定完成後,相 機進入待機狀態’等待並判斷是否接收到操作者的操作指令(步驟幻) 、進入相機工作4 (見第二圖)。此時,操作者可通過相機之操作面 板對相機進行控制如拍攝、設”操作。待所有操作完成,操作者輸入 結束訊號(轉S4) ’系統檢_結束錢後關,域停止工作。1253290 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a method for managing a storage space of a camera, in particular, a storage space management method for a health camera. [Prior Art] As with traditional shooting, the number of handsome machines is the feeding information format. (4) Save the memory card to save 'and save space'. Usually the photo information will be compressed before being stored in the digital memory card. 'If you save the image mark of the distortion compression format such as G, GIF. The image compression ratio of θ ', ′′ ' & ageing Wei axis machine seems to maintain the image above a certain quality as the setting target, so that when the user transfers the image mark to a general physical photo, 'there is no lattice shape Or the situation of ambiguity, but due to the rapid changes in the current digital camera technology, the manufacturing technology of sensitization has also been greatly improved. Therefore, digital cameras with millions of veils or more have become market trends; in this case, as early as the file The capacity of the memory card is also relatively increased due to the increase in the quality of the element. Therefore, the number of images that are often taken is not much, but the memory card capacity is not too small, and the video file is not important, or the memory is replaced. The memory card is solved and solved, but this method is not suitable for certain specific situations and the needs of the user. For example, the turtle has only one memory card, the captured image is only used as a webpage, and the memory card is used. Deviated mussels also cause a burden on consumers. In this mouth, the video slot film shot by the digital camera actually has a transfer to the general entity, for the sake of the slaves, and when the capacity of the card is about to run out, the mobile can not be used. Protecting the image file's finer ratio and recompressing it, it can protect the must-have 1253290. The shadow of the film is not the same as the low-shadow _, but also good _ card space to reduce the burden on consumers, actually on the market I am eagerly looking forward to the above reasons. The present invention proposes a new storage space management method for digital cameras. SUMMARY OF THE INVENTION The object of the present invention is to provide a storage space management method for a digital camera, which enables the camera to realize large-capacity storage and is easy to store and operate. The purpose of this month is to implement a storage space management method for a digital camera through a town technology solution, which comprises the steps of: automatically detecting whether the remaining storage space in the storage medium of the camera is sufficient to accommodate at least one new photo; When the storage space is insufficient, according to the remaining remaining storage, the compressed job line in the storage medium is decompressed, and a new _ ratio is generated, and the decompressed photo is logged on and stored in the storage medium; Repeat the previous steps, the remaining storage of the direct storage medium is vain to accommodate the aforementioned new photo, and the new photo is stored in the storage medium. With the prior art, it is difficult to achieve a large capacity in the _ empty _, and the nutrients are edited by the camera, and there is no work. This makes the digital camera using this storage space method more intelligent and easier to operate. [Embodiment] In the age management of a general digital camera photograph, in order to save space, it is common to use the 1 algorithm standard to perform the processing of the photo_signal and then age. The storage space management method of the digital camera according to the preferred embodiment of the present invention adopts a 1253290 compression mark (oint Photographic Experts Group), and the storage method includes the following steps: a) automatic "camera" The size of the storage space in the storage medium is determined to be sufficient to accommodate at least one new photo; b) when the storage space is insufficient, the compressed storage medium is decompressed according to the storage space of the foregoing_C; Generating a new compression ratio, recompressing the previously decompressed photo and storing it in the storage medium; d) repeating steps a), b) and c) until the remaining storage space of the storage medium is sufficient to accommodate the foregoing Up to the new photo; and e) store the new photo in the storage medium. Among them, the above-mentioned JPEG standard is an internationally-acceptable lossy compression algorithm that can efficiently compress _images. In this algorithm towel, _ The data is first assigned to the block, and Discrek Cosine Transform (DCT), quantization, and Huffman coding as variable length coding are performed for each block ( Huffmanc〇ding). Using this lossy compression method, the image obtained by compression and comparison is compared with the original image, even if the compression ratio is 25:1, it is difficult for non-image experts. Finding the difference between them, so the jpEG standard is widely used in the field that requires large-scale compression storage. Clear reference diagram 'The first figure shows a system for storing space management method of a digital camera according to a preferred embodiment of the present invention. First, the camera is turned on, and the system is initialized (step s0. After the initialization is completed, the camera starts mode detection (step S2), at which time the system! 25329 〇 green indicates that the operator sets/changes the camera mode (step S21). After the mode setting is completed, the camera enters the standby state 'Wait and judge whether the operator's operation command is received (step magic), enter camera operation 4 (see the second figure). At this time, the operator can use the camera's operation panel to the camera. Control such as shooting, set "Operation. After all operations are completed, the operator enters the end signal (go to S4) 'System check _ End the money and close, the domain stops working.
睛進-步參照第二圖’該圖係揭示了數位相機在照相模式下之工力 =程。如圖示,當相機完成對焦後(步驟即,系統可允許操作相 —步進行參數設定(步驟2⑻,如調整細大小和曝光日销長短等, 當然,此動作亦可在初始設定相機模式時完成(步驟奶,見第一圖)。 在參數設定完成後,操作者可決定是否進行拍攝(步驟2〇3),如操作 者放棄拍攝,系統返_工作之初始狀態,待相機觸散。當操作者 執仃拍攝後,該相機系統自動檢測儲存如(步驟_)並由相機系統 進行空間大小調整設定。設定完錢,械通過液晶顯轉顯示—對話 麵以提報作者是否需要儲存片(轉205)及是轉該照片進 仃保護設定(步驟206)。待上述步驟完成,系統、结束拍攝工作。 系統在操作者按鍵拍攝後進入前述步驟2〇4,即系統自動檢測健存 空間並自動調整空間大小,以毅儲存要求,該步驟之具體卫作流街 第三圖之步_謂,其中如果發現齡卡可用儲存空間不足以儲 存至少-張新照片時,則系統進—麵縮原有照片,以釋放儲存空間, 直至該健存卡可用儲存空間充足爾統結束該_程式進人步驟二挪。 在該第三圖中’如步驟301所示,系統會判斷該儲存空間是否不 8 1253290 足;在步驟302中系統檢測各現存照片之狀態,包括檢測現存照片是否 已被壓縮。如果發現其中存在照片已被1縮,則該照片將進入步驟· 進行解_。反之’如果步義2巾_之檢_細示儲存卡内之照 片還未被_,則系統進入步驟3〇21至·。在此步驟3奶至舰2 中’系統逐-檢測未被壓縮照片之狀態,查看該照片是否受到保護。當 '、、、片句7C成解杨後’系統自動給照片設定—新的魏比例即K值(+ 驟304),並對該已驗縮照片按照以的比例進行_ (步驟卿 並再加以儲存’之後堡縮程式結束,系統返回至步驟3〇1。 其中’在前述解壓縮過程中(步驟3〇3),系統根據儲存卡之剩餘 工間大小決疋百次解壓縮之照片數量,待本次再壓縮完成後,系統再根 據儲存卡繼谷讀彳了下—次麵縮――碰縮。此步_環操作 至所有再壓縮完成。 本毛版佳κ關所揭不之數位相機的儲存空間管理方法,可 _儲存销散間,_聰鮮可大幅觀則的雛,自動對 已[縮之,日,、片解_並改以更高賴縮比例再壓縮,故能在 空間内實現大容量儲存,且上述空間分配操作均由相機系統自動進:存 慧化 無以工操作。這使得採輪的儲存_理方輸位相機智 更咼,操作更簡便。 =上所述,本發明確已符合翻專狀要件,纽法提 =士=以上所述者僅縣㈣之較佳實施方式,舉凡翻本 人士援依本發明之精神所作笨 專效心飾或變化,皆涵蓋於後附之申請 1253290 利範圍内。 【圖式簡单說明】 第一圖係依據本發明較佳實施例之一數位相機的系統流程圖。 第二圖係依據第一圖之數位相機系統流程圖中之一工作流程圖。 第三圖係依據本發明較佳實施例之數位相機的儲存空間管理方法 之流程圖。 【主要元件符號說明】 S1 S2 S21 S3 S4 201 202 203 204 205 206 301 302 3021 3022 303 304 305 以上符號均為步驟編號The eye advances - step by reference to the second figure' This figure reveals the work force of the digital camera in the camera mode = path. As shown in the figure, when the camera finishes focusing (the step is, the system can allow the operation phase to step through the parameter setting (step 2 (8), such as adjusting the size and length of the exposure daily pin, etc., of course, this action can also be in the initial setting of the camera mode. Complete (step milk, see the first picture). After the parameter setting is completed, the operator can decide whether to shoot (step 2〇3). If the operator gives up shooting, the system returns to the initial state of the work, and the camera is dissipated. After the operator performs the shooting, the camera system automatically detects the storage (step _) and the space size adjustment setting by the camera system. After setting the money, the device displays through the liquid crystal display - the dialogue surface to report whether the author needs to store the film (Turning 205) and transferring the photo input protection setting (step 206). After the above steps are completed, the system ends the shooting work. The system enters the aforementioned step 2〇4 after the operator presses the button, that is, the system automatically detects the storage space. And automatically adjust the size of the space, in order to save the storage requirements, the specific step of the step is the third step of the wei shui street _ said, if the age card available for storage space is insufficient When at least - a new photo is stored, the system retracts the original photo to release the storage space until the storage card is available with sufficient storage space to end the _ program into the second step. In the third figure As shown in step 301, the system determines whether the storage space is not 8 1253290; in step 302, the system detects the status of each existing photo, including detecting whether the existing photo has been compressed. If the photo is found to have been compressed, Then the photo will go to the step · to solve the solution _. Otherwise 'if the step 2 towel _ check _ show that the photo in the memory card has not been _, then the system proceeds to step 3 〇 21 to ·. In this step 3 milk to In the ship 2, the system checks the status of the uncompressed photos one by one, and checks whether the photo is protected. When the ', ,, and phrase 7C becomes the solution, the system automatically sets the photo—the new Wei ratio is the K value (+ Step 304), and the calibrated photo is taken according to the ratio _ (step and then stored), the squaring program ends, and the system returns to step 3 〇 1. where 'in the aforementioned decompression process (step 3 〇 3), the system is based on storage The remaining work size of the card is determined by the number of photos decompressed hundreds of times. After the recompression is completed, the system reads the next time according to the memory card and then shrinks. This step _ ring operation All the re-compression is completed. The storage space management method of the digital camera that can not be revealed by this version is better than _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The chip solution _ is changed to a higher compression ratio and recompressed, so that large-capacity storage can be realized in the space, and the above space allocation operation is automatically performed by the camera system: the saver is not working. This makes the storage of the wheel _ 方 输 输 相机 相机 相机 相机 相机 相机 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The person's stupid special effects or changes in accordance with the spirit of the present invention are covered by the appended application 1253290. BRIEF DESCRIPTION OF THE DRAWINGS The first drawing is a system flow diagram of a digital camera in accordance with a preferred embodiment of the present invention. The second diagram is a workflow diagram in accordance with the flow chart of the digital camera system of the first figure. The third figure is a flow chart of a storage space management method for a digital camera in accordance with a preferred embodiment of the present invention. [Description of main component symbols] S1 S2 S21 S3 S4 201 202 203 204 205 206 301 302 3021 3022 303 304 305 The above symbols are step numbers