S93110 A7 B7 經濟部中央橾準局員工消費合作社印製 五、 發明説明( 3 ) 本 發 明 係 有 關 一 種 影 像 尺 寸 校 正 技 術 i 尤 指 一 種 無 須 利 用 原 稿 t 利 用 印 表 機 列 印 出 預 設 大 小 的 矩 形 再 掃 描 進 入 電 腦 進 行 誤 差 分 析 之 Jrrr 纖 原 稿 影 像 尺 寸 校 正 方 法 與 裝 置 0 百 -W- 刖 市 面 上 的 影 像 掃 描 m 及 印 表 機 » 由 於 元 件 及 組 裝 上 的 差 異 » 造 成 每 一 部 Uti m 器 都 産 生 不 同 的 尺 寸 誤 差 值 参 因 此 1 經 過 掃 描 再 列 印 出 的 影 像 » 與 原 稿 都 有 些 微 的 差 異 〇 而 一 般 使 用 者 若 要 得 到 與 原 稿 大 小 一 致 的 掃 描 影 像 9 都 必 須 先 將 原 稿 掃 描 進 入 電 腦 9 再 列 印 出 初 稿 9 然 後 利 用 工 具 尺 去 測 量 原 與 初 稿 間 的 誤 差 值 » 再 将 誤 差 值 輸 入 電 腦 做 校 正 補 償 工 作 f 然 後 再 列 印 出 兀 稿 〇 然 這 種 習 用 的 影 像 誤 差 校 正 方 式 1 有 下 列 幾 個 缺 點 : (- -) 每 - 張 影 像 都 要 做 一 校 正 動 作 〇 (二) 必 須 準 備 一 工 具 尺 » 並 須 做 兩 次 列 印 動 作 0 (三) 必 須 利 用 人 工 測 量 9 容 易 有 人 為 誤 差 〇 本 發 明 人 有 鑑 於 此 乃 研 究 設 計 出 本 發 明 之 無 原 稿 影 像 尺 寸 校 正 方 法 與 裝 置 〇 本 發 明 為 無 須 利 用 原 稿 9 經 由 軟 體 處 理 以 印 表 機 列 印 出 預 設 大 小 的 矩 形 » 再 將 印 出 資 料 掃 描 進 Λ 電 腦 中 f 透 過 影 像 分 析 計 算 取 得 影 像 矩 形 的 大 小 及 位 置 9 再 和 預 設 值 相 bb 較 » 便 可 得 到 經 掃 描 列 印 的 结 果 與 原 列 印 稿 影 像 間 的 尺 寸 誤 差 值 〇 利 用 本 發 明 之 方 法 » 其 實 施 簡 ΟΕ» 早 方 便 > 譬 如 * 操 作 一 次 完 成 且 不 須 使 用 任 何 工 具 尺 » 不 會 有 人 為 誤 差 9 對 不 同 的 輸 出 入 設 備 只 要 做 一 次 校 正 > 便 可 將 其 尺 寸 誤 差 值 存 入 電 腦 内 f 如 此 以 後 再 處 理 掃 描 影 像 的 列印 時 » 便 可 依 據 該 尺 寸 誤 差 值 做 白 動 校 正 0 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) 3 83. 3.10,000 _i〇 B7 經濟部中央標準局員工消費合作社印製 五、 發明説明 (4 ) 1 本 發 明 之 - 巨 的 為 提 供 一 種 實 施 簡 130 早 方 便 i 操 作 只 須 1 Ί 作 一 次 列 印 動 作 1 完 全 由 電 腦 行 影 像 誤 差 校 正 之 無 原 稿 影 1 1 像 尺 寸 校 正 方 法 與 裝 置 * 請 ! 先 1 本 發 明 之 另 一 的 為 提 供 一 種 不 須 利 用 任 何 工 具 尺 » 閲 1 背 1 不 有 人 為 誤 差 之 fnr m 原 稿 影 像 尺 寸 校 正 方 法 與 裝 置 ! 面 之 1 注 1 本 發 明 之 又 一 的 為 提 供 一 種 對 於 不 同 的 輸 出 入 設 備 意 事 1 項 I - 只 要 做 一 次 校 正 * 便 可 將 其 尺 寸 誤 差 值 存 入 電 腦 内 > 以 再 I 後 即 依 據 該 尺 寸 誤 差 值 做 白 動 校 正 之 無 原 稿 影 像 尺 寸 校 正 寫 本 頁 1 方 法 與 裝 置 〇 S_✓ 1 I 本 發 明 之 無 原 稿 影 像 尺 寸 校 正 方 法 > 包 括 步 驟 1 1 (a)設定矩形初始值; 1 1 訂 (b)列印矩形於紙張的最左上角處; 1 (C )將印出矩形之紙張放置於掃描機左上方; 1 1 (d)進行影像掃描; 1 1 (e)計算矩形之位置及長寛; 1 線 1 I (f)求出印表機之留白邊緣及影像尺寸之誤差率; (g)儲存該數值以資校正或調整之用。 1 1 I 本 '發 明 之 無 原 稿 影 像 尺 寸 校 正 裝 置 » 包 括 : 1 1 第 一 輸 出 機 構 參 用 來 將 執 行 機 構 内 設 定 的 矩 形 列 印 出 1 1 來 1 1 輸 入 機 構 > 用 來 將 該 第 一 輸 出 機 構 列 印 有 矩 形 之 紙 掃 1 I 描 謓 入 成 影 像 數 位 資 料 以 供 執 行 機 構 計 算 處 理 1 1 I 執 行 機 構 9 用 來 執 行 列 印 掃 描 及 計 算 影 像 數 位 資 料 1 1 I 的 大 小 及 位 置 1 1 本紙張尺度逋用中國國家標準(CNS ) A4规格(210X297公釐) 83.3.10,000 物!10 A7 B7 經濟部中央標準局員工消費合作社印製 五、 發明説明(5 ) 1 I 第 二 輸 出 機 構 9 用 來 顯 示 該 執 行 機 構 執 行 列 印 、 掃 描 • I 及 計 算 處 理 之 訊 息 0 1 1 1 於 后 附 圖 中 t 第 1 圖 為 本 發 明 賁 施 例 裝 置 之 架 構 示 -ηΛη. f—V 1 I 請 I 先 1 _ 9 閲 1 第 2 圖 為 本 發 明 實 施 方 法 之 運 作 流 程 圖 < 背 面 1 I 之 1 第 协為 本 發 明 % 統 利 用 影 像 尋 框 技 術 f 找 出 矩 形 圖 注 意 事 1 1 形 的 大 小 及 位 置 之 演 算 法 流 程 圖 0 項 再 1 一 填 1 本 發 明 之 實 施 例 I 請 先 參 考 第 1 圖 之 裝 置 架 構 示 意 圖 寫 本 威 頁 1 和 第 2 圖 之 實 施方法運 作 流 程 圖 > 第 1 圖 中 1 為 電 腦 > 2 1 為 印 表 機 9 3 為 印 出 之 紙 張 » 4 為 影 像 掃 描 機 » · 5 為 顯 示 1 1 幕 0 本 發 明 之 實 施 方 法 步 taw 掷 如 第 2 圖 中 所 示 > 首 先 於 步 驟 1 1 S 1 S 在 電 腦 1 中 設 定 要 列 印 之 矩 形 的 初 始 值 9 接 著 於 步 驟 訂 | S2 9 令 印 表 機 2 將 矩 形 列 印 於 紙 張 之 左 上 角 位 置 » 此 時 於 1 I 步 頭ί S3, 在 顯 示 幕 5 上 出 現 訊 息 盒 請 使 用 者 準 備 將 印 1 1 I 出 之 紙 張 放 置 於 影 像 掃 描 機 4 的 左 上 角 » 並 等 待 列 印 之 結 1 I 果 於 步 驟 S4 判 斷 列 印 是 否 兀 成 ? 若 列 印 失 敗 則 至 步 驟 線 1 S5 離開条統, 檢査錯誤原因, 準備重新列印; 若列印完 1 1 成 > 則 1* 至 步 驟 S6 9 使 用 者 將 該 列 印 tir* 兀 成 之 紙 張 3 放 置 於 影 1 I 像 掃 描 機 4 的 左 上 方 位 置 此 時於步驟S7結 束 訊 息 盒 之 訊 1 | 息 顯 示 而 至 步 驟 S8 t 影 像 掃 描 機 4 進 行 對 該 印 出 紙 張 3 1 1 之 影 像 掃 描 接 著 於 步 驟 S9 » 電 腦 1 計 算 掃 描 所 得 之 矩 形 1 1 的 位 置 和 長 寬 » 於 步 驟 S 1 0 , 電腦1 求ί 印表機2 之留白 1 1 邊 緣 及 影 像 尺 寸 的 誤 差 率 » 最 後 » 於 步驟S11 , 將該於步 1 | 驟 S 1 0所求得之數值加以儲存, 以為爾後掃描影像E •P 1 ϋ之 1 1 本紙張尺度適用中國國家標準(CNS > A4規格(210X297公釐) 83. 3.10,000 經濟部中央標準扃貝工消費合作社印装 A7 __B7五、發明説明(6 ) 校正或調整之用。 本發明之無原稿影像尺寸校正方法與裝置,於上述步 驟S9電腦1計算掃描所得之矩形的位置和長寬之条統尋框 技術其演算法如下: 糸統内部設定: 設定矩形長:Η 1 設定矩形寛:W 1 FindBlackBlock() (請先聞讀背面之注意事項再填寫本頁) •裝. int X, Y; Χ=Υ=0; while(IstfhitelineO) Υ++; Υ2=Υ; while(IsWhiteBitO) X++; X2=X; rseek X to the end of line; while (IsWhiteBitO) X—5 seek Y to bottom of paper5 vhile(IsWhitelineO) Υ~β» H2=Y-Y2; W2=X-X2; //X: the scan bits, Y:the scanline //seek the scan line and bit to top-left //skip the white lines, to find top margin //get the top margins of printed rectangle, Y2 //to find left margin //get the left margins of printed rectangle, X2 //seek the point to end of bottom line //to fine right margin, X=right margin //seek the line to bottom //to find bottom margin, Y=bott〇B //calculate the image height //calculate the image width 訂 本紙張尺度適用中固B家標準(CNS > M规格(210 X 297公釐) 6 83. 3.10,000 ^3li〇 B7 經濟部中央標準局員工消費合作社印製 五、 發明説明( 7 ) 1 求 出 的 矩 形 位 置 及 大小 : 1 1 求 出 矩 形 長 = H2 1 1 求 出 矩 形 寬 W2 ^^ 請 1 I 先 求 出 列 印 矩 形 留白 左 邊緣 = X2 閲 讀 1 背 1 求 出 列 印 矩 形 留白 上 邊緣 = Y2 南 之 1 注 1 因 此 可 以 計 算 出 其 尺寸 誤 差率以及印表機留白邊緣: 意 1 1 一 掃 描 列 印 縱 向 尺寸 誤 差率 = (H2 - Η 1 )/ H1 # it I 掃 描 列 印 橫 向 尺寸 誤 差率 = (W2 - W1 )/W1 寫 本 頁 Λ 1 求 出 列 印 矩 形 留白 左 邊緣 = X2 1 I 求 出 列 印 矩 形 留白 上 邊緣 = Y2 1 I 而 此 % 統 尋 框 技術 演 算法之流程圖如第3 圖所示, 第 1 1 訂 3 圖 中 步 驟 S2 1為設定初始值;於步驟S 2 2 t 判 斷 是 不 找 到 1 1 了 第 一 條 黑 線 ? 若 沒有 找 到則至步驟S 2 3 繼 纊 往 下 找 » 若 1 1 找 到 了 第 一 條 黑 線 則至 步 驟 S24 , 取得 四 邊 形 之 上 方 位 置; 1 1 然 後 至 步 驟 S 2 5判斷是否找到了該 第一 條 黑 線 的 最 左 邊 第 | - 線 一 個 黑 點 ? 若 没 有 找到 則 至步驟S26繼 續 往 右 找 $ 找 到 1 I 了 該 第 一 値 黑 點 則 至步 驟 S27 ,取 得四 邊 形 左 方 位 置 » 然 1 1 1 後 至 步_ ΒΛ m S28, 將指標移到該第一 條黑 線 所 在 畫 面 的 最 右 1 1 方 位 置 至 ρ 驟 S 2 9 ,判斷是否找 到了 該 第 一 條 黑 線 的 最 1 右 邊 第 一 個 黑 點 ? 若没 有 找到則至步驟S 3 0繼 缠 往 左 找 • 1 1 若 找 到 了 該 最 右 邊 第一 個 黑點則至步,驟S3 1 取 得 四 邊 形 1 I 之 右 方 位 置 9 然 後 至步 驟 S32 ,將 指標 移 到 畫 面 之 最 下 方 1 I 位 置 至 步 驟 S33 , 判斷是否找到 了由 下 方 往 上 找 之 第 一 1 1 I 條 黑 線 ? 若 沒 有 找 到則 至 步驟S34繼續 往 上 找 » 若 找 到 了 1 1 本紙張尺度適用中國國家標準(CNS ) A4规格(210X297公釐) Ί 83. 3.10,000 A7 B7 五、發明説明(Q ) 〇 則至步驟S 3 5取得四邊形之下方位置;如此於步驟S 3 6計算 實尺正描 違情。 其具校掃 不點圍 ,工次理 。在觀範 置何一處正解和之 裝任做再校瞭神明 和用要後動應精發 法使只以自理義.本 方須備此做但廣於 正不設如值,之屬 校 ,入 ,差明定應 寸作出内誤說界皆 尺動輸腦寸以所 , 像印的電尺加内飾 影列同入該例圍修 稿次不存據施範或 。原一對值依實利式 寬無作 ,差可藉專形 和之須差 誤便已請更 長明 只誤寸 ,明申變 的發 ,為尺時 發附的 形本便人其印本所種 邊用方有將列然明·各 四利單會可的雖發 , 此 簡 不便像 本下 出 施 ,,影 背況 ί . ( ----------装------1Τ------^ (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS ) Α4规格(210X297公釐) 8 83.3.10,000S93110 A7 B7 Printed by the Employee Consumer Cooperative of the Central Department of Economics of the Ministry of Economic Affairs 5. Description of the invention (3) The present invention relates to an image size correction technique i, in particular a type of rectangle that does not require the use of originals t prints a preset size using a printer Re-scanning into the computer for error analysis of Jrrr fiber original image size correction method and device 0 百 -W- Image scanning m and printer on the market »Due to differences in components and assembly» Every Uti m device is Different size error values are generated. Therefore, the image after scanning and printing »There is a slight difference from the original. And the average user must scan the original into the computer if he wants to get a scanned image 9 of the same size as the original. Then print out the first draft 9 and then use the tool ruler to measure the error between the original and the first draft »Then enter the error into the computer for calibration Compensation work f and then print out the manuscript. However, this conventional image error correction method 1 has the following disadvantages: (--) Each-image must be corrected. (2) A tool ruler must be prepared »Two printing actions are required. 0 (3) Manual measurement must be used. 9 It is easy for human error. The inventor has studied and designed the method and device for image size correction without manuscript of the present invention. The present invention is not necessary to use. The original 9 is processed by the software and printed by the printer to print a rectangle of the preset size »Then the printed data is scanned into the computer f The size and position of the image rectangle are obtained by image analysis calculation 9 and compared with the default value bb» You can get the dimensional error value between the scanned and printed results and the original print image. Using the method of the invention »Its implementation is simple ΟΕ» early Convenient > For example, * The operation is completed at one time without using any tool ruler »No human error 9 Just make one correction for different input / output devices > You can save the size error value in the computer f so you can deal with it later When printing the scanned image »White motion correction can be done according to the size error value 0 The paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm) 3 83. 3.10,000 _i〇B7 Central Bureau of Standards, Ministry of Economic Affairs Printed by Employee Consumer Cooperative V. Description of the invention (4) 1 of the present invention-the giant is to provide a simple implementation of 130 early and easy operation i only need 1 Ί to perform a printing action 1 completely corrected by computer image error correction 1 1 Image size correction method and device * Please! First 1 The other of the present invention is to provide a tool ruler without using any tools »读 1 背 1 Fnr m manuscript image size correction method and device without human error! Face 1 Note 1 Another aspect of the present invention is to provide an idea for different input and output devices 1 Item I-only need to do one correction * The size error value is stored in the computer > After I, I will perform white motion correction based on the size error value for the unmanufactured image size correction. Write this page 1 Method and device 〇S_✓ 1 I The invention does not have the original image size correction method > including steps 1 1 (a) set the initial value of the rectangle; 1 1 order (b) print the rectangle at the upper left corner of the paper; 1 (C) place the printed paper on the upper left of the scanner; 1 1 (d) Perform image scanning; 1 1 (e) Calculate the position and length of the rectangle; 1 line 1 I (f) Find the blank margin and image of the printer Dimension error rate; (g) Store the value for correction or adjustment. 1 1 I The original image size correction device of the present invention »includes: 1 1 The first output mechanism is used to print out the rectangle set in the actuator 1 1 to 1 1 input mechanism > The output mechanism prints a rectangular paper scan 1 I scans the digital data into the image for the calculation process of the actuator 1 1 I The execution mechanism 9 is used to perform the printing scan and calculate the digital image data 1 1 I size and position 1 1 This paper uses the Chinese National Standard (CNS) A4 specification (210X297mm) 83.3.10,000! 10 A7 B7 Printed by the Employee Consumer Cooperative of the Central Bureau of Standards of the Ministry of Economy V. Description of the invention (5) 1 I The second output mechanism 9 is used to display the messages of printing, scanning, I and calculation processing performed by the executing agency 0 1 1 1 in In the following drawings, t 1st figure is a schematic diagram of the device of the embodiment of the present invention-ηΛη. F-V 1 I please I first 1 _ 9 read 1 2nd figure is the operation flow chart of the implementation method of the present invention < back 1 I's 1st association is% of the present invention. It uses image framing technology f to find rectangles. Attention 1 1 Flow chart of algorithm of size and position of shape 1 Item 1 and fill 1 1 Example of the present invention I Please refer first The schematic diagram of the device architecture in Figure 1 gt; In the first picture, 1 is a computer > 2 1 is a printer 9 3 is a printed paper »4 is an image scanner» · 5 is a display 1 1 screen 0 The method of the present invention is implemented as step 2 As shown in the figure> First, in step 1 1 S 1 S, set the initial value of the rectangle to be printed 9 in the computer 1 and then in step | S2 9 order the printer 2 to print the rectangle at the upper left corner of the paper »At this time at 1 I step S3, a message box appears on the display screen 5 Please ask the user to place the paper printed on 1 1 I in the upper left corner of the image scanner 4» and wait for the result of printing 1 I In step S4, determine whether the printing is unsuccessful? If the printing fails, go to step line 1 S5 to leave the system, check the cause of the error, and prepare to reprint; if the printing is completed 1 1 >> 1 * to step S6 9 Use The paper 3 of the printed tir * is placed in the upper left position of the scanner 1 I image scanner at this time Step S7 ends the message in the message box 1 | message display and proceeds to step S8 t The image scanner 4 scans the image of the printed paper 3 1 1 and then in step S9 »Computer 1 calculates the position and length of the scanned rectangle 1 1 Width »In step S 10, the computer 1 finds the margin of the printer 2 1 1 The margin and image size error rate» Last »In step S11, the value obtained in step 1 | step S 1 0 Store it for later scanning image E • P 1 ϋ 1 1 This paper scale is applicable to Chinese national standard (CNS & A4 specifications (210X297 mm) 83. 3.10,000 Central Standard of the Ministry of Economic Affairs Printed by the Beigong Consumer Cooperatives A7 __B7 V. Description of invention (6) The purpose of correction or adjustment. In the method and device for correcting the image size of a non-manuscript image of the present invention, in step S9, the computer 1 calculates the position and length and width of the scanned rectangular frame-finding technology. The algorithm is as follows: Internal settings of the system: Set the rectangular length: Η 1 Set the rectangle: W 1 FindBlackBlock () (please read the precautions on the back before filling in this page) • Install. Int X, Y; Χ = Υ = 0; while (IstfhitelineO) Υ ++; Υ2 = Υ; while (IsWhiteBitO) X ++; X2 = X; rseek X to the end of line; while (IsWhiteBitO) X—5 seek Y to bottom of paper5 vhile (IsWhitelineO) Υ ~ β »H2 = Y-Y2; W2 = X-X2; // X: the scan bits, Y: the scanline // seek the scan line and bit to top-left // skip the white lines, to find top margin // get the top margins of printed rectangle, Y2 // to find left margin // get the left margins of printed rectangle, X2 // seek the point to end of bottom line // to fine right margin, X = right margin // seek the line to bottom // to find bottom margin, Y = bott〇B // calculate the image height // calculate the image width The size of the bound paper is applicable to China Solid B Home Standard (CNS > M Specification (210 X 297 mm) 6 83. 3.10,000 ^ 3li〇B7 Printed by the Employee Consumer Cooperative of the Central Standards Bureau of the Ministry of Economy V. Description of the invention (7) 1 Find the location and size of the rectangle : 1 1 Find the rectangle length = H2 1 1 Find the rectangle width W2 ^^ Please 1 I First find the left margin of the printing rectangle blank = X2 Read 1 Back 1 Find the upper margin of the printing rectangle blank = Y2 South 1 Note 1 Therefore, the size error rate and blank margin of the printer can be calculated: Italian 1 1 One-scan printing vertical size error rate = (H2-Η 1) / H1 # it I Scanning printing horizontal size error rate = (W2-W1) / W1 write this page Λ 1 Find the left margin of the printing rectangle blank = X2 1 I Find the upper margin of the printing rectangle = Y2 1 I and this% flow chart of the algorithm of the unified search frame technology As the third As shown in the figure, step 1 2 in step 3 in step 2 of Figure 1 is to set the initial value; in step S 2 2 t it is determined that 1 1 has not found the first black line? If it is not found, proceed to step S 2 3 Look down »If 1 1 finds the first black line then go to step S24 to get the upper position of the quadrilateral; 1 1 then go to step S 2 5 to determine whether the first left line of the first black line is found |-line one Black dot? If you do n’t find it, go to step S26 and continue looking to the right. Find 1 I. If you find the first black dot, go to step S27, get the position of the left side of the quadrilateral »Then 1 1 1 and go to step _ ΛΛ m S28, set the indicator Move to the rightmost 1 1 position of the screen where the first black line is located to ρ step S 2 9 to determine whether the first black dot on the rightmost side of the first black line is found? If not found, go to step S 3 0 Continue to look to the left • 1 1 If the first black dot on the far right is found, go to step S3 1 Get the quadrilateral 1 I Position 9 on the right and then go to step S32, move the pointer to the bottom of the screen 1 I position to step S33, determine whether the first 1 1 I black line looking from the bottom up is found? If not found, go to step S34 Continue to look up »If you find 1 1 paper size applicable to the Chinese National Standard (CNS) A4 specifications (210X297 mm) Ί 83. 3.10,000 A7 B7 V. Description of invention (Q) 〇 Then go to step S 3 5 The position below the quadrilateral; in this way, calculating the real ruler in step S 36 is in violation. Its tools can't be cleaned, and the work order is managed. In the place where you can see what is the right solution and reconciliation, you should re-read the gods and use the post-action method, and you should use the method of self-care. You must prepare for this, but the school is wider than the right, and it is not valued. Introduce the difference, make sure that the internal errors are made, and the circles are all at the expense of the brain. The electric ruler of the photoprint and the shadow of the interior are also included in this case. The original pair of values is wide and non-productive according to the actual profit type. The difference can be borrowed from the special form and the required difference. It will be longer and only the wrong position. The application is clearly changed. The form is attached to the ruler when it is printed. The side user has the fact that it will be listed clearly, and each of the four benefits will be issued, but this is not convenient for me. --1Τ ------ ^ (Please read the precautions on the back before filling out this page) The paper standard printed by the Employee Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs is applicable to the Chinese National Standard (CNS) Α4 specification (210X297 mm) 8 83.3.10,000