經濟部中央標準局員工消費合作社印製 A7 293895 B7 五、發明説明(/ .) · 本發明之說明 本案之發明技蓊是一個「配接器」【adaptor】,其俗用於連接數 位列印裝置以及掃描裝置,使得整體功能得以擁有影印裝置之功 能者。 本發明技藝之背景説明 如圖一所示,由於辦公室自動化的風行,無論是在辦公室或是家 裡,同時擁有掃描裝置、以及列印裝置已經是很普通的事情了。 前述之掃描裝置係指:文件閲謓裝置、影像讀取裝置、影像輸入 裝置、或是類似功能之産品者。然而,數位式影印裝置是一個價 位高又佔空間的裝置,如果要單獨購買一台使用,就必須考慮到 設備成本的投資、空間的佔用、以及能源的消耗等問題。利用本 案之發明技藝,可以連接前述之掃描裝置、以及列印裝置,而達 成數位式影印裝置之功能,這樣就不必單镯購買一台專用的數位 式影印裝置了。如此不但可以減少設備的數量,而且也可以降低 購買預算、維修預算、使用空間、以及能源之耗用等。 一個數位式影印裝置,其實就是結合一個掃描裝置、一個列印裝 置、以及一個影像處理裝置的機器。如圔二所示,一個數位式影 印裝置包含了一個掃描單元101、一個条統控制單元102、一個影 像處理單元103、一個列印單元104、以及一個操作面板105°通常 ,掃描單元101偽使用一個「電荷絹合裝置j【Charge Coupled Device, CCD】、「影像感測器」【Image Sensor】、或是「接觸式 影像感測器」【Contact Image Sensor, CIS】*用以掃描文件的影像 。掃描動作偽採用窄小區間之逐步掃描方式進行,取得「像素」 【pixel】,然後,産生類比之影像信號。此些類比之影像信號再 被量化以産生數位信號,在影像處理單元103以不同的影像處理方 式處理之後,將數位信號傳送至列印裝置104之中,得以列印輸出 而再生文件之影像。通常,設置有一個操作面板可以讓使用 者選擇不同的影像處理方式、以及選擇需要的影印之份數。 比起傳統的中階以及低階影印裝置而言,數位式影印裝置的優點 就是影像可以被加工處理而且列印輸出的品質優良,缺點則是體 積龐大、以及價格昂貴。 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) page 2 •(請先閎讀背面之注意事項再填寫本頁) 訂 95 293895 H3 對於已經擁有掃描裝置、以及列印裝置的辦公室設備以及個人設 備的使用者而言,基於成本、空間、以及設備數量的考慮,再購 買一台數位式影印裝置顯然是多餘的。因為數位式影印裝置,實 際上,就是由掃描裝置、列印裝置、再加上一個影像處理裝置所 構成的。因此,已經擁有掃描裝置、列印裝置的使用者,只要再 外加一個本案之發明技藝,也就是具有影像處理裝置之功能的配 接器,就可以不必單獨購買一台數位式影印裝置,而就擁有一台 與數位式影印裝置完全相同之功能的産品。 傳統上,列印裝置乃是直接與個人電腦連線使用,資料經過界面 驅動器,例如·「標準列印界面」【Centronics Interface】將資料 自個人電腦傳送至列印裝置中使用。由於影像處理的資料量大、 以及傳輸速率的影響,使得列印速度緩慢,辜負了列印裝置固有 的高速列印功能。除非具有一個特別的影像處理裝置、或是一個 即時影像處理条統的配合*才有可能完全配合發揮列印裝置固有 的高速度、高品質的列印功能。 依據傳統的「二位元階段處理」【binarized gradation processing】技 術,可以將影像加以「精緻」【dither】處理。這是將取得之類比 影像信號直接與一個類比信號相比較,事先設定一個類比信號的 「界限閥數值」【threshold value】作為「精緻」處理之參考標準 而處理之。當然,也可以先將類比信號數位化,然後再設定一個 數位信號的「界限閥數值」作為「精緻」處理之參考標準而處理 之。因此*由於「精緻」處理係以「界限閥數值」作為影像處理 的分界參考,或是所諝的影像之二維讀取,所以在分界處的解析 度會較差。以致於文字邊緣影像會産生鋸齒狀的現象且具有所諝 的Moire圖案。 經濟部中央標準局員工福利委負會印製 本發明技藝的摘要說明 本案發明技藝的第一個目的:是要結合掃描裝置、以及列印裝置 而整體産生數位影印裝置的功能; 本案發明技藝的第二個目的:是可以使得設備數量降低,進而節 約設備之購置成本、維護成本、空間需求之節省、以及能源耗用 之節省。 本案發明技藝的第三個目的:是可以達成文件資料之高品質再生 f 本紙張尺度適用中國國家標準(CNS ) A4規格() H3 經濟部中央標準局員工福利委員會印製 本案發明技藝的第四個目的:是可以配合>!1印裝置之高速度,而 快速複製文件資料。 這些目的皆可以經由本案之發明技藝所提出之配接器,連接一個 掃描裝置、以及一個列印裝置而達成。本案之發明技藝之配接器 ,具有一個掃描界面-其係與掃描裝置相連接,也有一個列印界 面-其係與一個列印裝置相連接。本案之發明技藝之配接器有一 個控制器,用以控制掃描裝置掃描獲得之多階影像資料的輸入、 處理、以及輸出影像資料到列印裝置之功能。也具有同步處理輸 入的影像資料以及輸出的影像資料的能力,以便降低所需儲存記 憶體的記憶容量。一個時序産生器,用以控制輸入之影像信號的 傳輸速率,以便配合輸出之影像信號的傳輸速率的同步作業。也 具備有一個操作控制面板,提供輸入用的鍵盤、一個指示器用以 提供-操作的指示或是訊息的顯示、影印功能選擇、模式選擇、 影印之「密度」【density】選擇......等功能。 「錯誤擴散方法」【error diffusion method】則是使用於改進「精 織方法」【dither method】所産生的缺點;影像修正、邊緣增強 、以及「決策方法」【decision making method】...等》都被使用 以提高影像列印輸出之品質。 本案之發明技藝之配接器,也可以提供一個功能,就是將影像資 料傳送到個人電腦之中,作為預凳、進一步處理、以及處理後.. .等之影像之顯示用。 圖式的簡單説明 圖一傳統的辦公室設備包含掃瞄裝置以及列印裝置。 圖二 傳統數位式影印裝置結構方塊圖。 圖三 本發明技藝的基本設計,以一個配接器連接掃瞄裝置以 及列印裝置,整體裝置得以形成一個數位影印裝置之功能。 圖四A藉著外部的一個切換開關之控制,可以調整資料於掃描 裝置、配接器、以及電腦之間的流通路徑。 圖四B 係將切換開關、掃描裝置、以及配接器三者整合成為一 個裝置。 圖五 將圖四之切換開關之設計,内建於配接器中。 圖六 本發明之配接器設計方塊圖。 本紙張尺度適用中國國家標準(CNS ) A4規格(21(β^餅公% ) 293895 圖七 影像處理裝置之結構。 · 圖八 偵測邊緣是否存在的3*3視窗結構。 圖九 錯誤擴散方法。 圖十 資料於掃描裝置、配接器、以及電腦之間的流通路徑。 圖十一狀態機器的方塊圖。 圖十二自動背景偵測流程圖。A7 293895 B7 printed by the Staff Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 5. Description of the invention (/.) · Description of the invention The invention in this case is an "adaptor", which is commonly used to connect digital printing The device and the scanning device enable the overall function to have the function of a photocopying device. Description of the background of the art of the present invention As shown in FIG. 1, due to the popularity of office automation, whether it is in an office or a home, it is already common to have both a scanning device and a printing device. The aforementioned scanning device refers to: a document reading device, an image reading device, an image input device, or a product with a similar function. However, the digital photocopying device is a high-priced and space-consuming device. If you want to purchase a single device for use, you must consider the equipment cost investment, space occupation, and energy consumption. Using the inventive technique of this case, the aforementioned scanning device and printing device can be connected to achieve the function of a digital photocopying device, so that there is no need to purchase a dedicated digital photocopying device for a single bracelet. This can not only reduce the number of equipment, but also reduce the purchase budget, maintenance budget, use space, and energy consumption. A digital photocopying device is actually a machine that combines a scanning device, a printing device, and an image processing device. As shown in Fig. 2, a digital photocopying device includes a scanning unit 101, a stripe control unit 102, an image processing unit 103, a printing unit 104, and an operation panel 105. Normally, the scanning unit 101 is pseudo-used A "Charge Coupled Device j [Charge Coupled Device, CCD]," Image Sensor "[Image Sensor], or" Contact Image Sensor "[Contact Image Sensor, CIS] * used to scan the image of the document . The scanning operation is pseudo-step by step-by-step scanning between narrow cells, obtaining "pixels" [pixel], and then generating analog video signals. These analog video signals are then quantized to generate digital signals. After the image processing unit 103 processes them in different image processing methods, the digital signals are sent to the printing device 104 to print out and reproduce the image of the document. Generally, an operation panel is provided to allow users to choose different image processing methods and select the number of copies required. Compared with traditional mid-level and low-level photocopying devices, the advantages of digital photocopying devices are that the images can be processed and the quality of the printed output is excellent, but the disadvantages are that they are bulky and expensive. This paper scale is applicable to the Chinese National Standard (CNS) A4 specification (210X297mm) page 2 • (Please read the precautions on the back before filling in this page) Order 95 293895 H3 For offices that already have scanning devices and printing devices For users of equipment and personal equipment, based on the consideration of cost, space, and number of equipment, it is obviously superfluous to purchase another digital photocopying device. Because the digital photocopying device is actually composed of a scanning device, a printing device, and an image processing device. Therefore, users who already have a scanning device and a printing device, as long as they add an inventive technique of this case, that is, an adapter with the function of an image processing device, there is no need to separately purchase a digital photocopying device. It has a product with the same function as the digital photocopying device. Traditionally, the printing device is directly connected to the personal computer, and the data passes through the interface driver, such as "Centronics Interface" [Centronics Interface] to transfer the data from the personal computer to the printing device for use. Due to the large amount of image processing data and the influence of the transmission rate, the printing speed is slow, which disappoints the inherent high-speed printing function of the printing device. Unless there is a special image processing device, or a real-time image processing system, it is possible to fully cooperate with the high-speed, high-quality printing function inherent in the printing device. According to the traditional "binarized gradation processing" technology, the image can be "dither" processed. This is to compare the obtained analog video signal with an analog signal directly, and set the threshold value of an analog signal in advance as the reference standard for "exquisite" processing. Of course, it is also possible to digitize the analog signal first, and then set a "limit threshold value" of the digital signal as a reference standard for "delicate" processing. Therefore, since the "exquisite" processing uses the "threshold valve value" as the boundary reference for image processing or the two-dimensional reading of the image, the resolution at the boundary will be poor. As a result, the edge image of the text will have a jagged phenomenon and have the Moire pattern. The Employee Welfare Committee of the Central Bureau of Standards of the Ministry of Economic Affairs will print a summary of the invention's technology to illustrate the first purpose of the invention's technology: it is to combine the scanning device and the printing device to produce the function of a digital photocopying device; The second purpose is to reduce the number of equipment, thereby saving equipment purchase costs, maintenance costs, space requirements, and energy consumption. The third purpose of the invention technique in this case is to achieve high-quality recycling of document data. This paper standard is applicable to the Chinese National Standard (CNS) A4 specification () H3. The fourth is the fourth invention technique printed by the Employee Welfare Committee of the Central Standards Bureau of the Ministry of Economy. Aim: It can cooperate with the high speed of &1; 1 printing device and quickly copy the document data. These objects can all be achieved by connecting a scanning device and a printing device through the adapter proposed by the invention of the present invention. The adaptor of the invention of this case has a scanning interface-which is connected to the scanning device, and a printing interface-which is connected to a printing device. The adapter of the invention of this case has a controller for controlling the input, processing, and output of the multi-level image data scanned by the scanning device to the printing device. It also has the ability to simultaneously process the input image data and output image data in order to reduce the memory capacity of the required storage memory. A timing generator is used to control the transmission rate of the input image signal to synchronize the transmission rate of the output image signal. There is also an operation control panel, a keyboard for input, an indicator for providing-operation indication or information display, copy function selection, mode selection, copy "density" selection ... .And other functions. "Error diffusion method" is used to improve the shortcomings of "dither method"; image correction, edge enhancement, and "decision making method" ... etc. " Both are used to improve the quality of image printouts. The adaptor of the inventive technique in this case can also provide a function of transferring image data to a personal computer for pre-stool, further processing, and after processing ... display of images. Brief description of the drawings Figure 1 Traditional office equipment includes a scanning device and a printing device. Figure 2 Block diagram of the structure of a traditional digital photocopying device. Figure 3 The basic design of the technique of the present invention, a scanner is used to connect the scanning device and the printing device, and the overall device can form the function of a digital photocopying device. Figure 4A can control the flow path of data between the scanning device, adapter, and computer through the control of an external switch. Figure 4B integrates the switch, scanning device, and adapter into one device. Figure 5 The design of the switch in Figure 4 is built into the adapter. Figure 6 is a block diagram of the adapter design of the present invention. This paper scale is applicable to the Chinese National Standard (CNS) A4 specification (21 (β ^ 饼 公 %) 293895 Figure 7. Structure of the image processing device. · Figure 8. 3 * 3 window structure for detecting the presence of edges. Figure 9. Error diffusion method Figure 10. The flow path of data between the scanning device, the adapter, and the computer. Figure 11. Block diagram of the state machine. Figure 12. Flow chart of automatic background detection.
圖十三A影印裝置方塊圖,其中的列印裝置係可以「平行障」【 pcuailel port】或是「影像界面J【video interface】連接於圖四B 的配接器。 圖十三B影印裝置方塊圖,其中的列印裝置俗以平行埠連接於圖 四B的切換開關、也同時將列印裝置之影像界面連接於配接器中 本發明之較佳實施例 如圖三所示,本發明得以結合掃瞄裝置以及列印裝置,而整體産 生數位式影印裝置之功能。整個糸統包含:一個數位影印裝置配 接器301、一個掃瞄裝置302、以及一個列印裝置303 °文件經由彩 色或是黑白掃瞄裝置加以掃瞄,産生多階數位影像信號,這些多 階數位影像信號,再藉由一個控制裝置或是「特殊應用積體電路 」【Application Specific Integrated Circuit, ASIC】的處理’依據數位 式影印裝置之命令指示,産生灰階影像資訊。 經濟部中央標準局員工福利委員會印裂 在掃瞄界面305之後,信號被傳送至配接器301中,此刻,配接器 301依據使用者自操作面板30#;?選擇輸入的資料包含-處理模式 的選擇、影印份數的選擇,並結合掃瞄裝置302^輸出影像資訊 ,在影像處理裝置中進行處理,然後,經由影像列印界面306,傳 送至列印裝置303中,列印裝置303將接收到的影像信號加以調變 成為雷射光束,然後列印再生前述之影像。 圖四A顯示本案之發明技蓊的另外一個實施例,使用者可以利用 切換開關307控制資料流通於掃描裝置302、配接器301、以及電腦 308之間的路徑。一個連接器307被用於連接電腦308、掃瞄裝置302 、以及配接器301。當使用者欲使用掃瞄之功能時,可以將連接器 307與掃瞄裝置302、以及電腦308相連接。當使用者要進行影印時 ,可以利用連接器307將掃瞄裝置302連接至配接器301中,同時, 切斷電腦308與掃瞄裝置302、配接器301之間的連接通路。掃瞄裝 本紙張尺度適用中國國家標準(CNS ) A4規格() H3_ - 一 置302與電腦308之間的連接、配接器301與掃瞄裝置3〇C間的連接 、配接器301與電腦308之間的連接,可以依據使用者的決定,藉 · 著交握界面305,309,以及310的切換選擇而改變。【就好像一台列 印裝置可以同時服務於多台電腦所需之列印需求一般,這些多台 電腦可以藉著切換裝置而分別使用前述之列印裝置】。前述路徑 之切換,也可以藉由電腦308的偵測界面310,302,309的「致能信號 」【enablesignals】而自動切換於掃瞄裝置302、電腦308、與配接 器301之間的連接通路,並且是採用先到先處理的先後順序進行 〇圖四B顯示一個方塊圖,其中的掃描裝置302、切換開關307、 以及配接器301係整合成為一個單元之設計。 圖五是本案之發明技藝的另外一個應用,功能如圖四A所示一樣 ,唯將圖四A中的連接器307内建在配接器301之中。雖然本案之 發明技藝的應用如圖三、圖四、以及圖五所示,有些微不同,然 而,其基本的原理以及功能則是完全相同的。 在所有的實施例中,配接器301皆是將掃瞄裝置掃瞄輸入的資訊加 以數位化,然後,依據操作面板所輸入的訊號處理前述的輸入的 影像信號。配接器中有一個控制器,依據操作面板所輸入的資訊 ,執行掃瞄裝置302的命令/狀態之溝通、影像處理、以及列印控 制。影像處理裝置則是為了處理那些高層次的複雜影像而使用的 ,列印界面單元則與列印輸出設備的週邊設備相連接,這些列印 輸出設備傜指-雷射列印裝置、或是類似之列印裝置。有一個操 作面板是與控制器相連接的,用以提供不同的資訊輸入、訊息的 顯示、以及操作的指示...等功能。 今將配接器的詳細操作,說明如下: 經濟部中央樣準局員工福利委員會印製 圖六顯示配接器的結構方塊圖601,界面單元602依據交握命令以 及狀態,接收外部掃瞄裝置所掃瞄獲得的資訊。影像處理裝置603 對於所掃瞄獲得的資訊,依據操作面板011所選擇之模式加以處理 之。影像儲存裝置605儲存處理前以及處理後的影像資訊,緩衝裝 置6〇6係用以將處理後等待輸出的資訊加以儲存緩衝、以及同步化 控制傳送資料到列印界面6〇7中。列印界面6〇7像透過一個影像界 面與一個列印裝置相連接,並且依據交握命令與狀態、同步信號 -如頁碼同步信號以及行碼同步信號,與影像資料相配合,然後 列印輸出。一個操作面板包含有:顯示器614,用以顯示「放大/ 本紙張尺度適用中國國家標準(cns )八4規格(2iopagp>j|) H3 縮小比率」以及列印頁數的設定,顯示二極體613吊以顯示操作模 式以及列印狀態...等。鍵盤612用以輸入操作模式、放大/縮小 比率、頁數設定...等。一個中央處理單元604構成一個控制中心 ,由此,掃瞄界面602可以與掃瞄裝置交握溝通;列印界面607可 以與外界的列印裝置交握溝通;操作面板611用以顯示狀態。影像 處理裝置603控制掃瞄、處理、以及列印的同步化以及操作。 在掃瞄裝置中,文件的原稿是被放置在一面玻璃平板之上,藉著 曝光燈源、透鏡、以及一個影像感測器-例如:「電荷耦合裝置 」【Charge Coupling Device, CCD】之使用*讀取彳了影像。控制器接 收數位影印裝置配接器送來的命令,經由掃瞄界面以及控制狀態 之反映,控制著不同類別的影像資訊的謓取。掃瞄界面可以是一 個「小型電腦糸統界面」【Small Computer System Interface, SCSI】 、或是平行界面...等。掃瞄裝置在主要掃瞄方向的解析度是:例 如300「點/时」【Dots Per Inch, DPI】,在次要掃瞄方向的可變解 析度可以是:例如75-600「線/吋」【Lines Per Inch, LH】其偽依 據數位影印裝置配接器所判斷之資訊而決定之。 如圖四A所示,在切換開關單元307中,一個切換機構可以經由手 動控制,藉箸掃瞄界面,選擇掃瞄裝置302、數位影印裝置配接器 301、或是個人電腦308之間的連接;或是,經由個人電腦30繼出 來的「致能信號」【enablesignal】,自動選擇掃瞄裝置302、數位 影印裝置配接器301、或是個人電腦308之間的連接;並且是採用 先到先處理的先後順序進行。 經濟部中央標準局員工福利委員會印製 在列印裝置303中,列印電路以及機構的設計,是能夠將列印裝置 303以及配接器301之間的資料傳輸同步化。配接器301經由列印界 面306 ,傳送命令資料到列印裝置303中,列印裝置303對於前述之 狀態資料作出對映之反映動作。影像相關資料經由列印界面306 傳送至列印裝置303 ,列印裝置303將收到的資料調變成為雷射光 束,然後列印再生文件的影像。列印裝置303的解析度可以是 300300 DPI、或是600*600 DPI、或是更高,端視影印裝置的整體条 統之需要而設計調整之。 參見圖六,數位影印裝置配接器601係由下述元件所構成的:掃瞄 界面602、影像處理單元603、列印界面607、中央處理單元604、操 本紙張尺度適用中國國家標隼(CNS ) A4規格() H3 經濟部中央棣準局員工福利委員會印製 作面板611、使用者界面610、程式儲存記體609、,中央處理單元 用之運作記憶體608、影像記憶體605、以及影像緩衝裝置606。 掃瞄界面602偽提供掃瞄單元命令以及狀態、交握接收來自於掃描 裝置的多階影像信號、傳送處理後的資訊到電腦。數位影印裝置 配接器601傳送一個命令或是影印裝置資訊到外部的掃瞄裝置之中 ,外部的掃瞄裝置進行交握溝通而對於狀態作出對映的動作。命 令以及狀態組合的設計,是要配合外部掃瞄裝置、掃瞄區域、掃 瞄解析度、以及掃瞄速度的需要而定,這些因素也都被外部的掃 瞄裝置之控制單元所加以控制,它是依據數位影印裝置配接器601 所發出的命令行事的。所包含的中央處理單元604,藉著掃瞄界面 602 ,得以溝通並且接收來自於外部掃瞄裝置的影像信號。接收到 的影像信號又被傳送至影像處理裝置603中,依據操作面板61#万 發出的資訊,進行不同的影像處理。處理後的影像資訊,藉著列 印界面607,再被傳送至影像緩衝裝置606,提供整頁資料的緩衝 、或是與外部的列印裝置同步化。外部掃瞄裝置、影像處理單元 603、以及外部列印裝置等的整個条統的控制以及同步化,都是藉 著中央處理單元604之控制而完成的。控制程式參數以及資料表都 儲存在程式儲存器EPROM或是mask ROM 609中,操作面板611包含 有不同的輸入鍵612,可以選擇與影印裝置溝通,提供使用者選擇 需要的模式,顯示器614以及指示器613用以顯示數位影印裝置的 操作狀態、以及操作程序等的操作狀況。顯示器614具有七個顯示 區段,它可以是液晶顯示器或是類似功能的裝置。它可以藉著數 字鍵612的輸入,顯示數字資料、或是顯示列印再生所實際完成的 數量資料等。LEDi旨示器613指示出操作者對於模式、以及列印再 生文件的密度選擇,或是指示影印裝置的狀況。儲存在影像緩衝 器606中的處理後影像,藉著外部的界面,利用掃描界面602或是 列印界面607,可以被傳送至電腦中。 參見圖七,這是影像處理裝置701的典型結構,這對映於圖六之中 的方塊603。用以處理自外部掃瞄裝置輸入的多階影像信號,也處 理那些「處理過的影像資料」,以輸送到外部的列印裝置中。如 圔七所示,放大/縮小單元702,在中央處理單元的控制之下,得 以放大/縮小影像的大小,以便將文件原稿調整其整體的影像之 大小,而可以完整記錄在紙張的記錄區域中。經過放大/縮小單 元702處理過的影像資料,藉著記億體控制以及界面單元7106勺控 本紙張尺度適用中國國家標準(CNS ) A4規格() H3 制,被儲存在儲存記憶體裝置之中。儲存的資料可以被取出以便 進行更進一步的處理。 參考圖七,一個背景偵測以及密度控制單元703 ,係作為自動偵測 文件背景之密度之用,以提供一個「背景界線閥」【background threshold】,作為影像處理參考用。為了達到動態的背景偵測, 依據本案之發明技藝,是提供一個「數位尖峰暫停霣路」【-digital peak hold circuit】,以「數位尖峰暫停界線閥」為分界線》 用以計算增減數。當輸入之影像信號大於「數位尖峰暫停界線閥 」時,計數增加;當輸入之影像信號小於「數位尖峰暫停界線閥 」時,計數減少。「數位尖峰暫停界線閥」可以是一個由操作面 板加以選擇的「固定的背景界線閥」、或是經由「數位尖峰暫停 電路」自動産生的「動態背景界線閥」。最後的「背景界線閥」 像依據密度控制水準之選擇、以及尖峰界線閥值之選擇加以決定 的0 參見圖七’一個影像修正單元705,係用以調整掃暇輸入的Gamma 曲線,使得列印輸出的Gamma曲線改善*以便獲得高品質的列印 輸出之再生效果。影像修正曲線,可以藉著操作面板所輸入的資 訊加以修正。 經濟部中央標準局員工福利委員會印裝 參見圖七,一個邊緣偵測單元704,傜提供3*3的視窗型態偵測影 像邊緣的存在與否。一個「邊緣偵測界線閥」可以藉箸操作面板 所輸入資訊加以設定,用以決定是否存在有3巧的視窗型態所定 義涵蓋的「邊緣」。如果偵測到邊緣的存在,就會産生一個邊緣 信號*邊緣信號被傳送至「二位元輸出決策單兀」【binary output decision making unit】,作為影像之進一步處理之用。這種分離的 程序下面會詳細說明。參見圖八,3*3的視窗型態是由處理中的像 素P21作為中心主體,然後,相鄰的八個像素P10,P11,P12, P20,P22, P30,P31,P32,圍繞在像素P21的周圍。中心像素的灰度與週邊像素任 何一個的灰度的絶對的差別,大於邊緣界線閥時,就表示有邊緣 存在於中心像素以及週邊像素之間。 參見圖七,位址産生器單元709、以及記億控制與界面單元710, 提供了與外部記憶體的溝通管道;位址産生器單元709,用以産生 影像修正位址、3*3的視窗位址、中央處理單元位址、以及錯誤 擴散位址。這些位址係「多重發訊j【multiplexing】的,以便在 本紙張尺度適用中國國家標準(CNS M4規格(210胃家公法> 經濟部中央標準局員工福利委員會印装 293895 H3 - 一個特定的記億體層面,提供一個明確^位址。影像處理器處理 不同的程序,同時,會在不同的記億體層面中的特定記億位址, 取出或是儲存特定的資料。 參見圖七,一個錯誤擴散單元706,提供「半色調影像處理」【 halftone image processing】功能。錯誤擴散方法的優點是解析度可 以維持良好的狀況,而不會有雜散紋路的産生。缺點則是白色背 景會被蛇狀雜訊所干擾,且列印出來的影像太暗而致無法區別細 微的影像資訊;而且列印出來的文字稍具有粗糙的邊緣。為了改 善前述缺點,「二位元輸出決策單元」707被引用了,如此,可 以消除背景的蛇狀雜訊,也可以增強文字的邊緣。至於太暗的列 印品質,則藉著影像修正曲線加以修正改善之。一個錯誤擴散方 法如圖九所示,錯誤資料的計算,傜將原來的影像信號A[i,j]減去 影像資料B[i,j];影像資料B[i,j]係經由二位元輸出決策單元707ΰυ以 計算得到的;其偽將錯誤資料,分別乘以一個下述因子7八6,3/16, 5Λ6,1/16於週邊像素Pa,Pb,Pc,Pd而獲得的。 參見圖七,不同的參數組合可以産生不同的列印效果。這些參數 包含:背景以及密度控制單元703、以及邊緣偵測/增強單元704、 以及影像修正單元705。 參見圖七,一個緩衝界面單元708 ,提供轉換串聯資料成為平行資 料之功能,並且將資料儲存在外部緩衝裝置之中,此一外部緩衝 裝置可以是一個SRAM, DRAM, FIFO,或是類似功能的記億裝置。 參見圖七,一個中央處理單元CPU與輸出/輸入界面單元711,提 供中央處理單元界面、以及輸出/輸入暫存器界面。 參見圖七,一個時序與控制産生器單元Π2,提供時脈、並且控制 時序的産生。基本時脈偽自外部的水晶、時鐘、或是相同功能之 裝置輸入的。時序與控制産生器單元712不僅提供時脈以及時序給 内部控制單元使用,同時,也輸出時脈供糸統的時鐘使用。 參考圖十,切換開關304控制資料流通於配接器301、掃瞄器302、 以及電腦308之間的路徑。配接器301、掃瞄器302、以及電腦300 間的連接,是由配接器301、以及電腦308的「致能信號」所加以 決定的。參考表一以及圖十一,連接闊像的決定是由配接器301中 本紙張尺度適用中國國家標準(CNS〉A4規格() H3 的狀態機器控制器依據現在狀態機器碼加決定的。例如:當狀 態機器碼是(010)時,輸入影印装置狀態執行影印功能;(001)是掃 瞄裝置功能;(100)是接收處理後影像資料功能;(000)是待機狀態 。如果致能信號同時來自於電腦以及配接器時,在切換開關内的 狀態機器控制器會執行較高的優先狀態,然後回復到待機狀態, 再執行次優先狀態。優先順序已經事先加以設定為依序由高至低 為-影印裝置、掃瞄裝置、以及接收處理後的影像資料。影印裝 置具有最高優先權,接收處理後的影像資料則具有最低優先權。 參見圖十二,自動背景偵測像由動態追蹤所輸入的多階影像資料 的尖峰值作為某些區域的背景。這個尖峰值就是所謂的「背景閥 值」,它被傳送到決策單元之中作進一步決定,用以除去文件的 背景以便在背景中的資料可以被讀取出來。 另外一個實施例,如圖十三A所示,藉著列印平行埠之路徑,列 印裝置可以直接接收切換開關送來的資料。如圖十三B所示,同 時藉著影像界面以及列印平行埠之路徑,列印裝置也可以直接接 收切換開關送來的資料。影像界面以及列印平行埠之路徑可以被 切換開關307或是配接器301以不同的組合選擇而配對蓮作,關於 切換界面309 312,以及配接器界面306的可能之組合列示如下: (I) 當列印裝置是雷射引擎時,如圖十三A所示,也就是不具有列 印裝置控制器於其内部的列印裝置時: 306:列印裝置影像界面 309:掃瞄裝置界面或是列印裝置平行界面 經濟部中央標準局員工福利委員會印製 (II) 當列印裝置是雷射列印裝置時,如圖十三A以及圖十三B所示 ,也就是具有列印裝置控制器於其内部的列印裝置時:Fig. 13A is a block diagram of a photocopying device, in which the printing device can be connected to the adapter of Fig. 4B by "parallel barrier" [pcuailel port] or "video interface J". Fig. 13B photocopying device Block diagram, in which the printing device is usually connected to the switch of FIG. 4B with a parallel port, and the image interface of the printing device is also connected to the adapter. The preferred embodiment of the present invention is shown in FIG. 3. It can combine the scanning device and printing device to produce the function of digital photocopying device as a whole. The whole system includes: a digital photocopying device adapter 301, a scanning device 302, and a printing device 303 Or a black and white scanning device to scan to generate multi-level digital image signals. These multi-level digital image signals are then processed by a control device or "Application Specific Integrated Circuit (ASIC)" According to the command instructions of the digital photocopying device, gray-scale image information is generated. The Employee Welfare Committee of the Central Bureau of Standards of the Ministry of Economic Affairs printed on the scanning interface 305, and the signal was sent to the adapter 301. At this moment, the adapter 301 is based on the user's operation panel 30 #; The selection of the mode and the number of photocopies are combined with the output of the scanning device 302 ^ to output image information, which is processed in the image processing device, and then sent to the printing device 303 via the image printing interface 306, and the printing device 303 The received image signal is modulated into a laser beam, and then the aforementioned image is printed and reproduced. FIG. 4A shows another embodiment of the inventive technique in this case. The user can use the switch 307 to control the flow of data between the scanning device 302, the adapter 301, and the computer 308. A connector 307 is used to connect the computer 308, the scanning device 302, and the adapter 301. When the user wants to use the scanning function, the connector 307 can be connected to the scanning device 302 and the computer 308. When the user wants to make a photocopy, the connector 307 can be used to connect the scanning device 302 to the adapter 301, and at the same time, cut off the connection path between the computer 308 and the scanning device 302 and the adapter 301. The paper size of the scanner is applicable to the Chinese National Standard (CNS) A4 specification () H3_-the connection between the one set 302 and the computer 308, the connection between the adapter 301 and the scanning device 3OC, the adapter 301 and The connection between the computers 308 can be changed according to the user's decision by the switching options of the handshaking interfaces 305, 309, and 310. [It is as if one printing device can serve the printing needs of multiple computers at the same time. These multiple computers can use the aforementioned printing devices separately by switching devices]. The aforementioned path switching can also be automatically switched between the scanning device 302, the computer 308, and the adapter 301 by the "enablesignals" of the detection interfaces 310, 302, and 309 of the computer 308. The order of processing is first-come-first-served. FIG. 4B shows a block diagram in which the scanning device 302, the switch 307, and the adapter 301 are integrated into a unit design. FIG. 5 is another application of the inventive technique of this case. The function is as shown in FIG. 4A, but the connector 307 in FIG. 4A is built in the adapter 301. Although the application of the inventive technique in this case is shown in Figures 3, 4, and 5, it is slightly different. However, the basic principles and functions are exactly the same. In all the embodiments, the adapter 301 digitizes the scanning input information of the scanning device, and then processes the aforementioned input image signal according to the signal input from the operation panel. There is a controller in the adapter, which executes the command / status communication, image processing, and printing control of the scanning device 302 according to the information input from the operation panel. The image processing device is used for processing high-level complex images, and the printing interface unit is connected to the peripheral devices of the printing output device. These printing output devices are referred to as laser printing devices, or the like. Printing device. An operation panel is connected to the controller to provide different information input, message display, and operation instructions ... etc. The detailed operation of the adapter will be described as follows: Printed by the Employee Welfare Committee of the Central Bureau of Standards of the Ministry of Economy Information scanned. The image processing device 603 processes the scanned information according to the mode selected by the operation panel 011. The image storage device 605 stores pre-processed and post-processed image information. The buffer device 006 is used to store and buffer the information waiting to be output after processing, and to synchronize the control transmission data to the print interface 607. The printing interface 607 image is connected to a printing device through an image interface, and according to the handshake command and status, synchronization signals-such as page number synchronization signal and line code synchronization signal, cooperate with the image data and then print out . An operation panel includes: display 614, used to display "Enlarge / This paper standard is applicable to Chinese National Standard (cns) 84 specifications (2iopagp > j |) H3 reduction ratio" and the number of printed pages, display diode 613 to display the operation mode and printing status ... etc. The keyboard 612 is used to input operation modes, enlargement / reduction ratios, page number settings, etc. A central processing unit 604 constitutes a control center, whereby the scanning interface 602 can communicate with the scanning device; the printing interface 607 can communicate with the external printing device; the operation panel 611 is used to display the status. The image processing device 603 controls the synchronization and operation of scanning, processing, and printing. In the scanning device, the original document is placed on a glass plate, through the exposure light source, lens, and an image sensor-for example: "Charge Coupling Device" [Charge Coupling Device, CCD] * Read the image. The controller receives the commands sent by the adapter of the digital photocopying device, and controls the capture of different types of image information through the scanning interface and the reflection of the control status. The scanning interface can be a "Small Computer System Interface" (Small Computer System Interface, SCSI), or a parallel interface ... etc. The resolution of the scanning device in the main scanning direction is: for example 300 "dots / hour" [Dots Per Inch, DPI], and the variable resolution in the secondary scanning direction can be: for example 75-600 "lines / inch" "Lines Per Inch, LH" is based on the information judged by the adapter of the digital photocopying device. As shown in FIG. 4A, in the switching switch unit 307, a switching mechanism can be manually controlled to select between the scanning device 302, the digital photocopying device adapter 301, or the personal computer 308 through the scan interface Connection; or, the "enablesignal" followed by the personal computer 30 automatically selects the connection between the scanning device 302, the digital photocopying device adapter 301, or the personal computer 308; The order of processing is first. Printed by the Employee Welfare Committee of the Central Standards Bureau of the Ministry of Economic Affairs. In the printing device 303, the design of the printing circuit and the organization is to synchronize the data transmission between the printing device 303 and the adapter 301. The adapter 301 transmits the command data to the printing device 303 via the printing interface 306, and the printing device 303 performs the mapping reaction of the aforementioned status data. The image-related data is transmitted to the printing device 303 via the printing interface 306, and the printing device 303 modulates the received data into a laser beam, and then prints the image of the reproduced document. The resolution of the printing device 303 may be 300, 300 DPI, or 600 * 600 DPI, or higher, depending on the overall requirements of the photocopying device and the design and adjustment. Referring to FIG. 6, the digital photocopying device adapter 601 is composed of the following components: the scanning interface 602, the image processing unit 603, the printing interface 607, the central processing unit 604, and the operating paper scale applicable to the Chinese national standard falcon ( CNS) A4 specification () H3 Printed panel 611, user interface 610, program storage memory 609, working memory 608, image memory 605, and image for the Central Welfare Bureau Employee Welfare Committee of the Ministry of Economic Affairs Buffer device 606. The scanning interface 602 provides pseudo scanning unit commands and status, handshake to receive multi-level image signals from the scanning device, and transmits processed information to the computer. The digital photocopying device Adapter 601 sends a command or photocopying device information to an external scanning device. The external scanning device communicates with each other and makes a mapping action to the state. The design of the command and status combination is determined by the needs of the external scanning device, scanning area, scanning resolution, and scanning speed. These factors are also controlled by the control unit of the external scanning device. It is based on the command line issued by the digital photocopying device adapter 601. The included central processing unit 604, through the scanning interface 602, can communicate and receive image signals from external scanning devices. The received image signal is sent to the image processing device 603 again, and performs different image processing according to the information sent by the operation panel 61 #. The processed image information is sent to the image buffer device 606 through the printing interface 607 to provide buffering of the entire page of data, or to be synchronized with an external printing device. The overall control and synchronization of the external scanning device, the image processing unit 603, and the external printing device, etc., are all accomplished by the control of the central processing unit 604. Control program parameters and data tables are stored in the program memory EPROM or mask ROM 609, the operation panel 611 contains different input keys 612, can choose to communicate with the photocopying device, provide the user to select the required mode, display 614 and instructions The device 613 is used to display the operating status of the digital photocopying device, the operating status of the operating program, and the like. The display 614 has seven display sections, which may be liquid crystal displays or similar-function devices. It can display the digital data through the input of the numeric key 612, or display the quantity data actually completed by the printing reproduction, etc. The LEDi indicator 613 indicates the operator's choice of the mode and density of the printed reproduction document, or indicates the status of the photocopying apparatus. The processed image stored in the image buffer 606 can be transferred to the computer through the external interface, using the scanning interface 602 or the printing interface 607. Referring to FIG. 7, this is a typical structure of the image processing device 701, which is reflected in the block 603 in FIG. It is used to process the multi-level image signal input from the external scanning device, and also process those "processed image data" for transmission to the external printing device. As shown in 圔 七, the enlargement / reduction unit 702, under the control of the central processing unit, can enlarge / reduce the size of the image so that the original document can be adjusted to the size of the entire image, and can be completely recorded in the recording area of the paper in. The image data processed by the enlargement / reduction unit 702 is controlled by the billion-body control and the interface unit 7106. The paper size is applicable to the Chinese National Standard (CNS) A4 specification () H3 system and is stored in the storage memory device . The stored data can be retrieved for further processing. Referring to Figure 7, a background detection and density control unit 703 is used to automatically detect the density of the document background to provide a "background threshold" [background threshold] for image processing reference. In order to achieve dynamic background detection, according to the inventive technique of this case, a "digital peak hold circuit" [-digital peak hold circuit] is used, and the "digital peak hold boundary valve" is used as the dividing line "to calculate the increase and decrease. . When the input image signal is greater than "Digital Peak Pause Boundary Valve", the count increases; when the input image signal is less than "Digital Spire Pause Boundary Valve", the count decreases. The "Digital Peak Pause Boundary Valve" can be a "fixed background boundary valve" selected by the operation panel, or a "Dynamic Background Boundary Valve" automatically generated by the "Digital Peak Pause Circuit". The final "Background Boundary Valve" is determined by the selection of the density control level and the selection of the peak boundary threshold. See Figure 7 '. An image correction unit 705 is used to adjust the Gamma curve of the scan input to make printing. The output gamma curve is improved * in order to obtain the reproduction effect of high-quality printed output. The image correction curve can be corrected by the information entered on the operation panel. Printed by the Employee Welfare Committee of the Central Bureau of Standards of the Ministry of Economic Affairs. See Figure 7. An edge detection unit 704 provides a 3 * 3 window type to detect the presence or absence of image edges. An "edge detection boundary valve" can be set by using the information entered on the control panel to determine whether there is an "edge" defined by the 3Q window type. If the presence of an edge is detected, an edge signal will be generated * The edge signal is sent to the "binary output decision making unit" for further processing of the image. This separation procedure will be described in detail below. Referring to Fig. 8, the 3 * 3 window type is composed of the pixel P21 being processed as the central body, and then, the adjacent eight pixels P10, P11, P12, P20, P22, P30, P31, P32, surround the pixel P21. Around. The absolute difference between the gray level of the center pixel and the gray level of any of the surrounding pixels is greater than the edge boundary valve, which means that there is an edge between the center pixel and the surrounding pixels. Referring to FIG. 7, the address generator unit 709 and the billion control and interface unit 710 provide a communication channel with external memory; the address generator unit 709 is used to generate an image correction address and a 3 * 3 window Address, central processing unit address, and error diffusion address. These addresses are "multiplexing" [multiplexing], in order to apply the Chinese national standard (CNS M4 specification (210 stomach family law)> Staff Welfare Committee of the Central Bureau of Standards of the Ministry of Economic Affairs printed 293895 H3-a specific At the memory level, a clear ^ address is provided. The image processor processes different programs, and at the same time, it retrieves or stores specific data at specific memory addresses in different memory levels. See Figure 7. An error diffusion unit 706 provides the "halftone image processing" function. The advantage of the error diffusion method is that the resolution can be maintained in good condition without stray lines. The disadvantage is that the white background will Disturbed by the serpentine noise, and the printed image is too dark to distinguish the subtle image information; and the printed text has a slightly rough edge. In order to improve the aforementioned shortcomings, "two-bit output decision unit" 707 has been cited, so that it can eliminate the snake-like noise in the background and also enhance the edges of the text. As for the prints that are too dark , It is corrected and improved by the image correction curve. An error diffusion method is shown in Figure 9, the calculation of erroneous data, Yu subtracts the original image signal A [i, j] from the image data B [i, j]; The image data B [i, j] is calculated by the two-bit output decision unit 707ΰυ; it pseudo-multiplies the erroneous data by a factor of 7/8 6,3 / 16, 5Λ6,1 / 16 around Pixels Pa, Pb, Pc, Pd. See Figure 7. Different parameter combinations can produce different printing effects. These parameters include: background and density control unit 703, and edge detection / enhancement unit 704, and image Correction unit 705. Referring to Figure 7, a buffer interface unit 708 provides the function of converting serial data into parallel data, and stores the data in an external buffer device, which can be an SRAM, DRAM, FIFO, or It is a billion-counting device with a similar function. Refer to Figure 7, a central processing unit CPU and an output / input interface unit 711 to provide a central processing unit interface and an output / input scratchpad interface. See Figure 7, a sequence And control generator unit Π2 to provide clock and control timing generation. The basic clock is pseudo input from external crystal, clock, or devices with the same function. Timing and control generator unit 712 not only provides clock and timing It is used by the internal control unit, and at the same time, it also outputs the clock for the clock of the system. Referring to Figure 10, the switch 304 controls the flow of data through the adapter 301, scanner 302, and computer 308. The connection between the scanner 301, the scanner 302, and the computer 300 is determined by the "enable signal" of the adapter 301 and the computer 308. Referring to Table 1 and Figure 11, the decision to connect the wide image is determined by the state machine controller of the Chinese standard (CNS> A4 specification) H3 in the paper size of the adapter 301 according to the current state machine code. For example : When the state machine code is (010), enter the state of the photocopying device to execute the photocopying function; (001) is the function of the scanning device; (100) is the function of receiving the processed image data; (000) is the standby state. If the signal is enabled At the same time from the computer and the adapter, the state machine controller in the switch will perform a higher priority state, then return to the standby state, and then execute the second priority state. The priority order has been set in advance from high Lowest is-photocopying device, scanning device, and receiving processed image data. The photocopying device has the highest priority, and the received processed image data has the lowest priority. See Figure 12 for automatic background detection Track the peak value of the input multi-level image data as the background of some areas. This peak value is called the "background threshold", which is It is sent to the decision unit for further decision to remove the background of the document so that the data in the background can be read out. Another embodiment, as shown in FIG. 13A, by printing the path of the parallel port, The printing device can directly receive the data sent by the switch. As shown in Figure 13B, at the same time, through the image interface and the path of the printing parallel port, the printing device can also directly receive the data sent by the switch. And the path for printing the parallel port can be selected in different combinations by the switch 307 or the adapter 301 to match the lotus. The possible combinations of the switch interface 309 312 and the adapter interface 306 are listed as follows: (I ) When the printing device is a laser engine, as shown in Figure 13A, that is, without a printing device controller inside the printing device: 306: printing device image interface 309: scanning device interface Or printing device parallel interface Printed by the Employee Welfare Committee of the Central Standards Bureau of the Ministry of Economic Affairs (II) When the printing device is a laser printing device, as shown in Figures 13A and 13B, it has printing When the device controller prints the device inside:
A. 圖十三A 306:列印裝置影像界面 309:掃瞄裝置界面或是列印裝置平行界面 B. 圖十三A ‘ 306:列印裝置平行界面 309:掃瞄裝置界面或是列印裝置平行界面 本紙張尺度適用中國國家標準(cns ) A4说格(〉 H3 // r C. 圖十三B * 312:列印裝置平行界面 306:列印裝置影像界面 309:掃瞄裝置界面或是列印裝置平行界面 D. 圖十三B 312:列印裝置平行界面 306:列印裝置平行界面 309:掃瞄裝置界面或是列印裝置平行界面 請注意在範例(II)中,A,B,C,D的路徑組合已經包含了範例⑴中的 路徑組合。 一出裝雒 與輸印、 器印影本 接列及成 配像以資 之影、投 藝的題備 技質問設 明品的高 發高度了。 之、速決題 案度It解問 本速的也的 著高置,耗 藉到裝時消 以達印同源 可夠影,能 置能統題及 裝而傳問以 衡,了的、 掃接決差用 個連解較佔 一相僅質間 ,置不品空 之裝統印、 言印糸影本 而列本的成 總個。置修 本發明的另外一個特擻,是藉著列印界面607,傳送處理後影像 資訊到電腦中,這個待徵,解決了電腦終端機影像輸出的較差品 質、較慢速度的問題。 例之圍請 舉等範申 是均利為 僅以專而 例是請神 施凡申精 實,r之 佳此之明 較於述發 ,圍下本 惟範以離 ,利是脱 例權或不 施之、均 實藝者, 佳技藝者 較明技施 之發明實 明本發而 發制#圍 本限施範 了於實利。 示用以權圍 掲非加之範 述並段蓋利 描;手涵權 述明藝所之 前說技J人 經濟部中央標隼局員工福利委員會印裝 -----page-· 12 - 本紙張尺度適用中國國瘃標準(CNS ) A4规格(ηδχ?97公釐〉A. Figure 13A 306: Printing device image interface 309: Scanning device interface or printing device parallel interface B. Figure 13 A '306: Printing device parallel interface 309: Scanning device interface or printing Device parallel interface This paper standard is applicable to the Chinese national standard (cns) A4 grid (> H3 // r C. Figure 13B * 312: Print device parallel interface 306: Print device image interface 309: Scanning device interface or It is the parallel interface D of the printing device. Figure 13B 312: Parallel interface of the printing device 306: Parallel interface of the printing device 309: Scanning device interface or parallel interface of the printing device Please note that in Example (II), A, The path combinations of B, C, and D already include the path combination in example ⑴. A set of questions and technical questions about the installation of arsenal and input printing, the printing of photocopies, and the matching of images, investment, and art The speed of the problem is high. No. It solves the problem quickly. The speed of the problem is also high. It takes time to install to eliminate the printing of the same source. It can be used to solve the problem and balance the problem. , Now, the sweeping decision will use a continuous solution to occupy one phase and only the interstitial space. The original is the total number. Another feature of repairing the present invention is to send the processed image information to the computer through the printing interface 607. This pending request solves the poor quality of the image output of the computer terminal. The problem of slower speed. For example, please enumerate that Fan Shen is just for the sake of being specific, and that she should ask God Shi Fanshen to be lean. The better of r is better than the description. If the benefits are off-limits or not applied, all of them are real artists, and those with good skills are better than the inventions of the smart ones. Describing and synchronizing paragraphs; hand-holding right to state that the art institute previously stated that it was printed by the Employee Welfare Committee of the Central Standard Falcon Bureau of the Ministry of Economics ----- page- · 12-This paper scale applies the Chinese National Standards (CNS ) A4 specification (ηδχ? 97mm>