201215087 、發明說明: 【發明所屬之技術領域】 本發明涉及一種即時影像傳輸與預覽系統,尤其涉及一種 即時接收與預覽影像的方法。 【先前技術】 請參閱第一圖,係一種現有的影像傳輸與預覽系統7〇〇 ’ 包括掃描器701、電腦設備702與記憶卡703,掃描器701具 有一記憶卡存取裝置7010,電腦設備702包括電腦主機7020 與顯示器7〇21,電腦主機7〇2〇設有一記憶卡存取裝置7022。 當影像傳輸與預覽系統700運作時,使用者必須預先將記 ,卡703^1入掃描器701的記憶卡存取裝置7〇1〇中當掃描 益701 #描完畢之後,掃描的影像經由記憶卡存取裝置 記錄在記憶卡703内,之後,使用者必須將記憶卡7〇3由掃描 器7〇丨的記憶卡存取裝置7010內扑α * t 衣l U内拔出來,再將記憶卡703插 入電胳I主機7020的記情卡在取验里 締存轉置7G22内,電腦主機7020 ,生由圮憶卡存取裝置7〇22讀 將播H後舶, 買取°己隐卡7〇3内的掃描影像’並 將知描tW象顯不在顯示器7〇2丨上。 此影像傳輸與預覽系統7〇〇必 後,再經由記憶卡7(n姐六提办肩專掃描器701完成掃瞄 7020讀取記憶;7〇 : >田影像,最後,經由電腦主機 示器7021上I此# I描影像,以將掃描影像顯示在顯 上此種方法不僅步驟複 在掃描影像的同時做即時預覽 〜費時費卫,而且無法 後才能知道影像是否正確。' J掃描器701完成掃瞄之 明參閱第二圖,係另-種現有 800’包括掃描器801、電腦嗖備8〇 、影像傳輸與預覽系統 電腦設備802包括電腦主機短距離傳輸賴803 ’ 線欖803 it接掃描器8〇1與電腦主施不益讀,短距離傳輸 戎8020。一般而言,短距 201215087 離傳輸線纜803可為USB線或RS-232線等。 當影像傳輸與預覽系統800運作時,在掃描器801完成掃 描之後,掃描的影像會經由短距離傳輸線纜8〇3傳送至電腦主 機8020,電腦主機8〇2〇讀取掃描影像,並將影像顯示在顯示 器8021上。 ' 此影像傳輸與預覽系統800雖然省去插拔記憶卡的步 驟,但是仍須等到掃描器8〇1完成掃瞄後,再將掃描影像經由 短距離傳輸線纜803傳送至電腦主機8〇2〇,最後經由電腦主 機8020讀取掃描影像以顯示在顯示器8〇21上。此種方法不僅 ® 必須將掃描器801與電腦設備802設置於短距離傳輸線纜8〇3 可連線的範圍内,而且無法在掃描影像的同時做即時預覽,須 等到掃描器801完成掃瞄後之後才能知道影像是否正確。 i 清參閱第三圖,係另一種現有的影像傳輸與預覽系統 1 900,包括掃描器90卜電腦設備902與有線網路設備903,電 腦设備902包括電腦主機9〇2〇與顯示器9〇21,有線網路設備 903連接掃描器901與電腦主機9〇2〇。一般而言,有線網路設 備903可為區域網路或網際網路等。 參 當影像傳輸與預覽系統_運作時,在掃描器901掃描完 畢之後,掃描的影像會經由有線網路設備903傳送至電腦主機 9020 ’電腦主機902〇讀取掃描影像,並將影像顯示在顯 9021 上。 此如像傳輸與預覽系統9〇〇雖然改善了掃描器9〇1與電腦 。又備902叹置位置的限制,但是仍須等到掃描器完成掃晦 後’再將掃描影像傳送至電腦主機_,最後經由電腦主機 9020讀取掃描影像以在顯示器9〇21上顯示影像。此種方法無 法在掃描影像的同時做即時預覽,須等到掃描器8〇1完成掃瞄 後之後才能知道影像是否正確。 201215087 【發明内容】 本發明之主要目的係針對上述習知技術存在之缺陷提供 一種即時影像傳輸與預覽系統,可在掃描影像的同時即時預覽 影像。 為達成上述目的,本發明所提供即時影像傳輸與預覽系統 包括一掃描器與一電子設備,該電子設備設有一顯示模組。該 掃描器用以沿一方向以複數次線狀掃描方式掃描文件並將文 件掃描成一預設格式之影像。掃描器用以發送該預設格式,之 後,當掃描器完成特定次數的線狀掃描後,會發送一相應的掃 描影像。 該電子設備用以接收該預設格式,之後,當電子設備接收 該掃描影像後,電子設備會修改該掃描影像,以使該掃描影像 符合預設格式。顯示模組以該預設格式顯示該掃描影像。 本發明之另一目的係提供一種配合上述即時影像傳輸與 預覽系統的方法。 為達成上述目的,本發明所提供即時影像傳輸與預覽方法 包括以下步驟: 首先,掃描器發送預設格式給電子設備; 接著,電子設備接收預設格式; 之後,當掃描器完成特定次數的線狀掃描後,發送相應的 掃描影像給電子設備; 再來,電子設備接收並修改掃描影像,以使掃描影像符合 預設格式;及 最後,顯示模組以預設格式顯示掃描影像。 藉此,本發明即時影像傳輸與預覽系統及其方法可在預設 掃描影像格式的情況下,在掃描器每執行完特定次數的線狀掃 201215087 描之後即可發送掃描影像給電子設備,而電子設備可即時接收 該掃描影像並依照該預設掃描影像格式即時顯示該掃描影 像,以達成即時掃描即時預覽的功能。 【實施方式】 為詳細說明本發明之技術内容、構造特徵、所達成目的及 功效,以下茲舉例並配合圖式詳予說明。 請參閱第四圖與第五圖,本發明即時影像傳輸與預覽系統 100運用在無線網路中,例如WiFi網路。本發明即時影像傳 輸與預覽系統100包括掃描器與無線設備,無線設備包括桌上 ® 型電腦2、行動電話3、筆記型電腦4與電子書5等。為使本 發明所屬技術領域者能夠更加瞭解本發明,在本發明實施例 中,掃描器可為一掌上型掃描器1,無線設備可為電子書5, i 掌上型掃描器1與電子書5可經由WiFi網路互相連接。在具 ' 體實施時,可以用任一具有無線功能的電子設備取代電子書5。 1 掌上型掃描器1具有掃描模組10、第一處理器11與第一 記憶體12,掌上型掃描器1可連接一無線轉接器13,以藉由 無線訊號收發資料,電子書5具有顯示模組50、第二處理器 • 51、第二記憶體52與無線模組53。掃描模組10可沿一方向 以複數次線狀掃描方式掃描文件,第一處理器11用以控制掌 上型掃描器1的運作,第一記憶體12用以儲存掌上型掃描器 1的運作資料與掃描的影像資料。 無線模組53用以接收影像資料,第二記憶體52用以儲存 接收的影像資料,第二處理器51用以控制電子書5的運作, 顯示模組50用以顯示接收的影像。在具體實施時,無線轉接 器13可為一 USB無線轉接器,用以將USB訊號轉成WiFi訊 號,電子書5的無線模組53可為一 WiFi模組。 201215087 當即時影像傳輸與預覽系統100運作時,掌上型掃描器1 的第一處理器11控制掃描模組10沿一方向以複數次線狀掃描 方式掃描文件。例如,掃描模組10以線狀掃描方式從文件的 上方到下方逐漸掃描文件,掃描模組10 —次可掃描文件的一 部分,掃描模組10在經過複數次掃描後即可掃描完整個文件。 當掃描模組10執行完一次線狀掃描之後,第一處理器11 將掃描到的部分影像儲存至第一記憶體12,並經由無線轉接 器13將該部分影像傳送至電子書5的無線模組53。 第二處理器51偵測到無線模組53接收到該部分影像之 後,將該部分影像儲存至第二記憶體52,之後,第二處理器 51讀取並修改該部分影像,以使該部分影像符合影像顯示格 式,最後,顯示模組50顯示該修改過後且符合影像顯示格式 的部分影像。藉此,本發明即時影像傳輸與預覽系統1可達成 即時掃描與即時預覽的功能,另外,當上述作業重複執行時, 在掌上型掃描器1的掃描模組逐漸完成掃描時,電子書5的顯 示模組50也隨之逐漸顯示完整的影像。 請參閱第六圖到第九圖與下表一,第六圖係本發明即時影 像傳輸與預覽方法6的流程圖。本發明即時影像傳輸與預覽方 法6可以軟體方式燒錄在第一記憶體12與第二記憶體52内, 該第一處理器11與第二處理器51可分別讀取第一記憶體12 與第二記憶體52並執行該軟體以達成即時影像傳輸與預覽方 法6。 本發明即時影像傳輸與預覽方法6包括運用於掌上型掃 瞄器1的即時影像傳輸方法60以及運用於電子書5的即時影 像預覽方法65。請參閱第八圖,即時影像傳輸方法60包括以 下步驟: 步驟600 :當掌上型掃描器1開機後,第一處理器11讀 201215087 取第-記憶體12内的資料以控制掌上型掃描器】 動即時影像傳輸功能’當掌上型掃描器 產生-待機訊息封包。如第七圖與表-所示,該待以: 具有二個襴位,分別為代碼攔位、長度攔位與資料攔位 機訊息封包的代碼欄位被寫入0X00,長度攔位被寫入〇了資 料欄位不被寫入任何資料,此待機訊息封包指示掌上型掃描器 1處於待機狀態。 * 〇 步驟601 :第一處理器11將該待機訊息封包傳送至無線 轉接器13,並藉由無線轉接器13以WiFi訊號發送該待機訊 息封包。 步驟602:第一處理器11判斷掃描模組1〇是否開始掃描。 如果掃描模組1 〇尚未開始掃描,則重複執行步驟600。 步驟603 :如果掃描模組10開始掃描,第一處理器u產 生一格式訊息封包。格式訊息封包的代碼攔位被寫入〇Χ01, 長度欄位被寫入1,資料欄位可依照掃描格式被寫入相應的數 值。本實施例中,掃描格式可分為彩色高解析掃描、彩色低解 析掃描、灰階高解析抑相與灰階低解析掃描等四種,且影像壓 縮格式可選擇JPEG壓縮技術’影像大小可選擇為長度1〇英 吋、寬度5英吋,依照上述四種掃描格式,資料攔位可被寫入 〇、1、2或3等四種數值。此格式封包指出影像將被掃描成何 種格式。在具體實施時’影像壓縮格式與影像大小可以為其他 廣泛使用之格式。 步驟604 :第/處理器11將該格式訊息封包傳送至無線 轉接器13,並藉由無線轉接器13發送該格式訊息封包。 步驟005 :第一處理器11判斷掃描程序是否中斷。在具 體實施時,使用者町以藉由按壓掌上型掃描器1機殼上的按鈕 14以中斷掃描,或者,當第一處理器11偵測到掌上型掃描器 201215087 1發生異常時亦可中斷掃描。 步驟606 :如果掃描中斷,第一處理器11產生一中斷訊 息封包,該中斷訊息封包的代碼欄位被寫入0X40,長度欄位 被寫入0,資料欄位不被寫入任何資料,此中斷訊息封包指出 掌上型掃描器1處於中斷掃描狀態。 步驟607 :第一處理器11將該中斷訊息封包傳送至無線 轉接器13,並藉由無線轉接器13發送該中斷訊息封包。之後, 重複執行步驟600。 步驟608 :如果掃描繼續,掃描模組10以線狀方式逐次 掃描部分A彳。 ® 步驟609:第一處理器11計算掃描的影像位元數並產生 一影像封包,該影像封包的代碼欄位被寫入0X02。長度欄位 被寫入掃描影像的位元數,例如,掃描影像的位元為256位元 丨 組時,長度欄位被寫入256。資料攔位被寫入掃描取得的部分 ^ 影像。 步驟610:第一處理器11將該影像封包傳送至無線轉接 器13,並藉由無線轉接器13發送該影像封包。 步驟611 :第一處理器11判斷掃描是否完成。如果尚未 赠| 完成掃描,則重複執行步驟605。 步驟612 :如果完成掃描,第一處理器11產生一完成訊 息封包。該完成訊息封包的代碼搁位被寫入0XFF。長度爛位 被寫入該掃描格式的檔頭位元數,例如,掃描格式的檔頭位元 為5位元組時,長度欄位被寫入5。資料欄位被寫入該掃描格 式的檔頭資料。 在具體實施時,完成步驟612之後可重複執行步驟600以 連續執行即時影像傳輸功能。 10 201215087 表一 代碼 長度 資料 說明 0X00 0 無 待機訊息封包 0X01 1 0 第一種影像格式訊息封包 0X01 1 1 第二種影像格式式訊息封 包 0X01 1 2 第三種影像格式式訊息封 包 0X01 1 3 第四種影像格式式訊息封 包 0X02 影像長度 部分影像資料 第一種影像格式式訊息封 包 0X40 0 無 中斷訊息封包 OXFF 檔頭長度 檔頭資料 完成訊息封包 請參閱第九圖,即時影像預覽方法65包括以下步驟: 步驟650 :當電子書5開機後,第二處理器51讀取第二 記憶體52内的資料以控制電子書5的運作並啟動即時影像預 覽功能,第二處理器51控制無線模組53以接收掌上型掃描器 1發出的封包。 步驟651 :第二處理器51讀取封包内的代碼欄位。 步驟652 :第二處理器51判斷該代碼欄位。如果該代碼 欄位為0X00,代表掌上型掃描器1處於待機狀態。此時重複 執行步驟650。 步驟653 :如果該代碼欄位為0X01,代表掌上型掃描器1 已經開始掃描程序。此時第二處理器51讀取封包内的資料欄 201215087 步驟654 .第二處理器5i判斷資料欄位内的數值。第二 處理器51可經由判斷資料攔位内的數值以得知掃描影像的格 式’並且記錄該影像格式。 步驟655 :第二處理器51根據該資料攔位内的數值建立 ^記憶體空間。意即,該第二處理器51根據該影像格式建立 符合該影像格式位元數的記憶體空間。 步驟656:第二處理器51控制無線模組53以接收掌上型 掃描器1發出的封包。 步驟657 :第二處理器51讀取封包内的代碼欄位。 步驟658 :第二處理器51判斷該代碼欄位。 φ 爛位為咖,代表掌上型掃描器丨處於中斷掃描狀 重複執行步驟650。 步驟659:如果該代碼攔位為〇χ〇2,代表此封包為影像 丨 封包。第二處理器51讀取封包内的長度欄位與資料攔位,並 將影像資料儲存在記憶體空間, / 步驟660:第二處理器51讀取記憶體空間内存的影像資 料。在具體實施時’如果該第二處理器51未根據該影像的格 式建立符合該影像格式位元數的記憶體空間,而是利用一固定 谷量的s己憶體空間來儲存影像資料時,第二處理器51可以根 據影像格式的位元數去讀取固定影像空間内符合該位元數的 最新影像資料。例如,固定容量的記憶體空間可存儲長度 英吋、寬度8.5英吋的影像,而掃描影像的影像格式為長度⑺ 英寸寬度8.5 十’則第二處理$ 51會讀取最晚被寫入的 長度10英4、寬度8.5英忖的影像,並在影像内加上結束崎 以使影像能被顯示。在具體實施時,掃描影像的影像格式可為 JPEG格式,當第二處理器51讀取最晚被寫入的長度1〇英呀''、 寬度8·5英吋的影像後,會在影像中加入FFD9的結束碼以使 12 201215087 影像符合JPEG格式。 步驟661 :第二處理器51驅動顯示模組50以顯示最新的 影像。 步驟662 :第二處理器51控制無線模組5以接收掌上型 掃描器1發出的封包。 步驟663 :第二處理器51讀取封包内的代碼欄位。 步驟664 :第二處理器51判斷該代碼欄位是否為0XFF。 如果該代碼欄不是0XFF,則重複執行步驟658。 步驟665 :如果該代碼欄位為0XFF代表掌上型掃描器1 # 已經完成掃描,意即,影像傳輸已經完成。此時第二處理器 51讀取長度攔位與資料攔位。 步驟666 :第二處理器51將資料欄位内的檔頭資料加入 ·. 影像中以形成一符合格式的完整影像,之後,第二處理器51 ' 將該影像儲存為單一影像檔案,例如一 JPEG檔案。之後,即 又 時影像預覽即可完成。 在具體實施時,在完成步驟666之後可重複執行步驟650 以連續執行即時影像預覽功能。 φ 綜上所述,本發明即時影像傳輸與預覽系統及其方法1可 用運用於無線網路中,在預先設定掃描影像格式的情況下,在 掌上型掃描器1每執行完一次現狀掃描之後即可發送部分影 像給電子書5,而電子書5可即時接收該部分影像並依照該預 先設定掃描影像格式即時顯不該部分影像’以達成即時掃描即 時預覽的功能。 【圖式簡單說明】 第一圖係一種現有的影像傳輸與預覽系統之示意圖。 第二圖係另一種現有的影像傳輸與預覽系統之示意圖。 13 201215087 =三圖係另-種現有的影像傳輸與預覽系統之示音圖 第四圖係本發明即時影像傳輸與預覽系統之示音圖。 圖 =五圖係本發明㈣影像傳輸與預㈣統能 第六圖係本發明即時影像傳輸與預覽方法之流程圖龙 =七圖係本發明即時影像傳輪與預覽方法之封包示意圖 第八圖係本發明即時影像傳輸方法之流程圖。 第九圖係本發明即時影像 【主要元件符號說明】 覽方去之流程圖。 1 掃描模組 10 11 第一記憶體 12 13 按紐 14 2 行動電話 3 4 電子書 5 50 第二處理器 51 52 無線模組 53 掌上型掃描器 第一處理器 無線轉接器 桌上型電腦 筆記型電腦 顯示模組 第二記憶體201215087, invention: [Technical Field] The present invention relates to an instant image transmission and preview system, and more particularly to a method for instantly receiving and previewing images. [Prior Art] Referring to the first figure, an existing image transmission and preview system 7' includes a scanner 701, a computer device 702 and a memory card 703. The scanner 701 has a memory card access device 7010, and a computer device. The 702 includes a computer host 7020 and a display 7〇21, and the computer host 7〇2〇 is provided with a memory card access device 7022. When the image transmission and preview system 700 is operated, the user must pre-record the card 703^1 into the memory card access device 7〇1 of the scanner 701. After the scanning is completed, the scanned image is read through the memory. The card access device is recorded in the memory card 703. After that, the user must pull the memory card 7〇3 from the memory card access device 7010 of the scanner 7 to the inside of the memory card access device 7010, and then The memory card 703 is inserted into the card of the host computer 7020. In the test, the card is transferred to the 7G22. The computer host 7020 is read by the memory card access device 7〇22 and will be broadcasted by H. The scanned image 'in the card 7〇3' and the known tW image is not displayed on the display 7〇2丨. After the image transmission and preview system 7 is necessary, the memory 70 is read by the memory card 7 (n sister six-hand shoulder scanner 701 completes the scan 7020 to read the memory; 7〇: > field image, finally, via the computer host On the device 7021, I can display the scanned image to display the scanned image. This method not only steps to scan the image while performing instant preview, but also takes time and effort, and can not know whether the image is correct or not. 701 complete scanning scans refer to the second picture, another type of existing 800' including scanner 801, computer equipment 8 〇, image transmission and preview system computer equipment 802 including computer host short-distance transmission Lai 803 'Line 803 it The scanner 8〇1 and the computer are not suitable for reading, and the short-distance transmission is 戎8020. Generally speaking, the short-distance 201215087 can be a USB cable or an RS-232 cable from the transmission cable 803. When the image transmission and preview system 800 operates When the scanner 801 completes the scan, the scanned image is transmitted to the host computer 8020 via the short-distance transmission cable 8〇3, and the computer host 8〇2〇 reads the scanned image and displays the image on the display 8021. Shadow Although the transmission and preview system 800 eliminates the step of inserting and removing the memory card, it is still necessary to wait until the scanner 8〇1 completes the scanning, and then transmits the scanned image to the host computer 8〇2〇 via the short-distance transmission cable 803, and finally The host computer 8020 reads the scanned image for display on the display 8〇21. This method not only requires the scanner 801 and the computer device 802 to be disposed within the range of the short-distance transmission cable 8〇3, and cannot be scanned. Simultaneously previewing the image at the same time, you must wait until the scanner 801 completes the scan before you know the image is correct. i See the third figure, another existing image transmission and preview system 1 900, including the scanner 90 computer equipment 902 and a wired network device 903, the computer device 902 includes a computer host 9 〇 2 〇 and a display 9 〇 21, and the wired network device 903 is connected to the scanner 901 and the computer host 9 〇 2 〇. In general, a wired network device 903 can be a local area network or the Internet, etc. In the image transmission and preview system _ operation, after the scanner 901 scans, the scanned image will be set via the wired network. 903 is transferred to the computer host 9020 'Computer host 902〇 reads the scanned image and displays the image on the display 9021. This image transmission and preview system 9〇〇 improved the scanner 9〇1 and the computer. Set the position limit, but still wait until the scanner completes the broom and then transfer the scanned image to the host computer_, and finally read the scanned image via the computer host 9020 to display the image on the display 9〇21. This method cannot be To do an instant preview while scanning the image, you must wait until the scanner 8〇1 completes the scan before you know if the image is correct. 201215087 SUMMARY OF THE INVENTION The main object of the present invention is to provide an instant image transmission and preview system for the defects of the above-mentioned prior art, which can instantly preview an image while scanning an image. To achieve the above object, the instant image transmission and preview system provided by the present invention comprises a scanner and an electronic device, and the electronic device is provided with a display module. The scanner is used to scan a file in a plurality of linear scans in one direction and scan the file into a preset format image. The scanner transmits the preset format, and after the scanner completes a certain number of linear scans, a corresponding scan image is sent. The electronic device is configured to receive the preset format. After the electronic device receives the scanned image, the electronic device modifies the scanned image to conform the scanned image to a preset format. The display module displays the scanned image in the preset format. Another object of the present invention is to provide a method of cooperating with the above described instant video transmission and preview system. To achieve the above object, the instant image transmission and preview method provided by the present invention comprises the following steps: First, the scanner sends a preset format to the electronic device; then, the electronic device receives the preset format; and then, when the scanner completes the specific number of lines After the scan, the corresponding scanned image is sent to the electronic device; then, the electronic device receives and modifies the scanned image so that the scanned image conforms to the preset format; and finally, the display module displays the scanned image in a preset format. Therefore, the instant image transmission and preview system and the method thereof can send the scanned image to the electronic device after the scanner performs a specific number of linear scans 201215087 in the preset scan image format, and The electronic device can immediately receive the scanned image and display the scanned image in real time according to the preset scanned image format, so as to realize the function of instant scanning and instant preview. [Embodiment] The details of the technical contents, structural features, objects and effects of the present invention will be described in detail below with reference to the drawings. Referring to the fourth and fifth figures, the instant image transmission and preview system 100 of the present invention is used in a wireless network, such as a WiFi network. The instant image transmission and preview system 100 of the present invention includes a scanner and a wireless device, and the wireless device includes a desktop® type computer 2, a mobile phone 3, a notebook computer 4, and an e-book 5. In an embodiment of the present invention, the scanner may be a handheld scanner 1, and the wireless device may be an e-book 5, an i-port scanner 1 and an e-book 5, in the embodiment of the present invention. They can be connected to each other via a WiFi network. In the case of a physical implementation, the electronic book 5 can be replaced by any wireless device having a wireless function. 1 The handheld scanner 1 has a scanning module 10, a first processor 11 and a first memory 12, and the handheld scanner 1 can be connected to a wireless adapter 13 for transmitting and receiving data by wireless signals, and the electronic book 5 has The display module 50, the second processor 51, the second memory 52 and the wireless module 53 are provided. The scanning module 10 can scan the file in a plurality of linear scanning manners in one direction, the first processor 11 is used to control the operation of the handheld scanner 1, and the first memory 12 is used to store the operating data of the handheld scanner 1. And scanned image data. The wireless module 53 is configured to receive image data, the second memory 52 is used to store the received image data, the second processor 51 is used to control the operation of the electronic book 5, and the display module 50 is configured to display the received image. In a specific implementation, the wireless adapter 13 can be a USB wireless adapter for converting the USB signal into a WiFi signal, and the wireless module 53 of the electronic book 5 can be a WiFi module. 201215087 When the instant image transmission and preview system 100 operates, the first processor 11 of the handheld scanner 1 controls the scanning module 10 to scan the document in a plurality of linear scans in one direction. For example, the scanning module 10 gradually scans the file from the top to the bottom of the file in a line scan manner, and the scanning module 10 scans a portion of the file one by one, and the scanning module 10 can scan the entire file after multiple scans. After the scanning module 10 performs a linear scan, the first processor 11 stores the scanned partial image to the first memory 12, and transmits the partial image to the wireless of the electronic book 5 via the wireless adapter 13. Module 53. After detecting the partial image, the second processor 51 stores the partial image to the second memory 52, and then the second processor 51 reads and modifies the partial image to make the portion The image conforms to the image display format. Finally, the display module 50 displays the modified image that conforms to the image display format. Thereby, the instant image transmission and preview system 1 of the present invention can achieve the functions of instant scanning and instant preview. In addition, when the above-mentioned job is repeatedly executed, when the scanning module of the handheld scanner 1 gradually completes scanning, the electronic book 5 The display module 50 also gradually displays the complete image. Referring to Figures 6 through 9 and Table 1 below, the sixth figure is a flow chart of the instant image transmission and preview method 6 of the present invention. The instant image transmission and preview method 6 of the present invention can be programmed in the first memory 12 and the second memory 52 in a software manner, and the first processor 11 and the second processor 51 can respectively read the first memory 12 and The second memory 52 executes the software to achieve an instant image transmission and preview method 6. The instant image transmission and preview method 6 of the present invention includes an instant image transmission method 60 for the palm scanner 1 and an instant image preview method 65 for the e-book 5. Referring to the eighth figure, the instant image transmission method 60 includes the following steps: Step 600: After the palmtop scanner 1 is powered on, the first processor 11 reads 201215087 to take the data in the first memory 12 to control the handheld scanner. Instant image transfer function 'When the handheld scanner generates a standby message packet. As shown in the seventh figure and the table, the waiting area has two positions, the code field of the code block, the length block and the data interceptor message packet are written to 0X00, and the length block is written. The data field is not written to any data, and the standby message packet indicates that the handheld scanner 1 is in the standby state. * Step 601: The first processor 11 transmits the standby message packet to the wireless adapter 13, and transmits the standby message packet by the wireless adapter 13 by using the WiFi signal. Step 602: The first processor 11 determines whether the scanning module 1〇 starts scanning. If the scanning module 1 has not started scanning, step 600 is repeated. Step 603: If the scanning module 10 starts scanning, the first processor u generates a format message packet. The code block of the format message packet is written to 〇Χ01, the length field is written to 1, and the data field can be written to the corresponding value according to the scan format. In this embodiment, the scanning format can be divided into four types: color high-resolution scanning, color low-resolution scanning, gray-scale high-resolution suppression, and gray-scale low-resolution scanning, and the image compression format can be selected as JPEG compression technology. The length is 1 inch and the width is 5 inches. According to the above four scanning formats, the data block can be written into four values: 〇, 1, 2 or 3. This format packet indicates which format the image will be scanned into. In the specific implementation, the image compression format and image size may be other widely used formats. Step 604: The processor/processor 11 transmits the format message packet to the wireless adapter 13 and transmits the format message packet by the wireless adapter 13. Step 005: The first processor 11 determines whether the scanning program is interrupted. In a specific implementation, the user may interrupt the scanning by pressing the button 14 on the casing of the handheld scanner 1, or may interrupt when the first processor 11 detects that the handheld scanner 201215087 1 is abnormal. scanning. Step 606: If the scan is interrupted, the first processor 11 generates an interrupt message packet, the code field of the interrupt message packet is written to 0X40, the length field is written to 0, and the data field is not written to any data. The interrupt message packet indicates that Pocket Scanner 1 is in an interrupted scan state. Step 607: The first processor 11 transmits the interrupt message packet to the wireless adapter 13 and sends the interrupt message packet by the wireless adapter 13. After that, step 600 is repeated. Step 608: If the scanning continues, the scanning module 10 scans the portion A in a line-like manner. ® Step 609: The first processor 11 calculates the number of scanned image bits and generates an image packet, and the code field of the image packet is written to 0X02. The length field is the number of bits written to the scanned image. For example, when the bit of the scanned image is 256 bits 丨, the length field is written to 256. The data block is written to the portion of the image obtained by the scan. Step 610: The first processor 11 transmits the image packet to the wireless adapter 13 and transmits the image packet by using the wireless adapter 13. Step 611: The first processor 11 determines whether the scan is completed. If the scan has not been completed, the step 605 is repeated. Step 612: If the scanning is completed, the first processor 11 generates a completion message packet. The code pad for the completion message packet is written to 0XFF. The length rotten bit is written to the header number of the scan format. For example, when the scan header bit is 5 bytes, the length field is written to 5. The data field is written to the header data of the scan format. In a specific implementation, after step 612 is completed, step 600 may be repeatedly performed to continuously perform the instant image transmission function. 10 201215087 Table 1 Code length data description 0X00 0 No standby message packet 0X01 1 0 The first image format message packet 0X01 1 1 The second image format message packet 0X01 1 2 The third image format message packet 0X01 1 3 Four image format message packets 0X02 Image length part Image data The first image format message packet 0X40 0 Non-interruption message packet OXFF Head length file header completion message packet Please refer to the ninth figure, the instant image preview method 65 includes the following Steps: Step 650: After the e-book 5 is powered on, the second processor 51 reads the data in the second memory 52 to control the operation of the e-book 5 and activates the instant image preview function, and the second processor 51 controls the wireless module. 53 to receive the packet sent by the handheld scanner 1. Step 651: The second processor 51 reads the code field in the packet. Step 652: The second processor 51 determines the code field. If the code field is 0X00, it means that the handheld scanner 1 is in standby. At this point, step 650 is repeated. Step 653: If the code field is 0X01, it means that the handheld scanner 1 has started scanning the program. At this time, the second processor 51 reads the data field in the packet 201215087. Step 654. The second processor 5i determines the value in the data field. The second processor 51 can determine the format of the scanned image by judging the value in the data block and recording the image format. Step 655: The second processor 51 creates a memory space according to the value in the data block. That is, the second processor 51 creates a memory space that matches the number of bits of the image format according to the image format. Step 656: The second processor 51 controls the wireless module 53 to receive the packet sent by the palmtop scanner 1. Step 657: The second processor 51 reads the code field in the packet. Step 658: The second processor 51 determines the code field. The φ rotten position is coffee, which means that the palm scanner is in an interrupted scan. Repeat step 650. Step 659: If the code is blocked to 〇χ〇2, the packet is an image 丨 packet. The second processor 51 reads the length field and the data block in the packet and stores the image data in the memory space. / Step 660: The second processor 51 reads the image data in the memory space. In a specific implementation, if the second processor 51 does not create a memory space that matches the number of bits of the image format according to the format of the image, but uses a fixed amount of suffix space to store image data, The second processor 51 can read the latest image data in the fixed image space that matches the number of bits according to the number of bits of the image format. For example, a fixed-capacity memory space can store an image of 8.5 inches in length and a scanned image with a length of (7) inches and a width of 8.5 ten's. The second processing $51 will read the latest written. An image with a length of 10 inches and a width of 8.5 inches is added to the image to allow the image to be displayed. In a specific implementation, the image format of the scanned image may be a JPEG format, and when the second processor 51 reads the image of the length of the last written length of 1 inch and the width of 8 · 5 inches, the image is displayed in the image. The end code of FFD9 is added to make the 12 201215087 image conform to the JPEG format. Step 661: The second processor 51 drives the display module 50 to display the latest image. Step 662: The second processor 51 controls the wireless module 5 to receive the packet sent by the palm scanner 1. Step 663: The second processor 51 reads the code field in the packet. Step 664: The second processor 51 determines whether the code field is 0XFF. If the code bar is not 0XFF, then step 658 is repeated. Step 665: If the code field is 0XFF, it means that the handheld scanner 1 # has finished scanning, that is, the image transmission has been completed. At this time, the second processor 51 reads the length block and the data block. Step 666: The second processor 51 adds the header data in the data field to the image to form a complete image conforming to the format, and then the second processor 51' stores the image as a single image file, for example, JPEG file. After that, the image preview can be completed. In a specific implementation, after step 666 is completed, step 650 may be repeatedly performed to continuously perform the live image preview function. φ In summary, the instant image transmission and preview system and method 1 of the present invention can be applied to a wireless network, and in the case of pre-setting a scanned image format, after each execution of the current scanning by the handheld scanner 1 A part of the image can be sent to the e-book 5, and the e-book 5 can receive the part of the image immediately and display the part of the image in real time according to the preset scan image format to achieve the function of instant scanning and instant preview. [Simple description of the diagram] The first diagram is a schematic diagram of an existing image transmission and preview system. The second figure is a schematic diagram of another existing image transmission and preview system. 13 201215087=Three-picture system Another type of existing image transmission and preview system sound map The fourth figure is a sound map of the instant image transmission and preview system of the present invention. Figure 5: The present invention (4) Image transmission and pre-(four) system energy sixth diagram is a flow chart of the instant image transmission and preview method of the present invention Long = seven pictures is the package diagram of the instant image transmission wheel and preview method of the present invention It is a flowchart of the instant image transmission method of the present invention. The ninth picture shows the instant image of the present invention. [Description of main component symbols] 1 Scanning module 10 11 First memory 12 13 Button 14 2 Mobile phone 3 4 E-book 5 50 Second processor 51 52 Wireless module 53 Handheld scanner First processor Wireless adapter Desktop computer Notebook computer display module second memory