JPH1013593A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH1013593A
JPH1013593A JP8166132A JP16613296A JPH1013593A JP H1013593 A JPH1013593 A JP H1013593A JP 8166132 A JP8166132 A JP 8166132A JP 16613296 A JP16613296 A JP 16613296A JP H1013593 A JPH1013593 A JP H1013593A
Authority
JP
Japan
Prior art keywords
image
page
error
image data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8166132A
Other languages
Japanese (ja)
Inventor
Junichi Matsunoshita
純一 松野下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP8166132A priority Critical patent/JPH1013593A/en
Publication of JPH1013593A publication Critical patent/JPH1013593A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

PROBLEM TO BE SOLVED: To continue copy operation by an electronic sort function even when a read error takes place at image output and image data are lost. SOLUTION: An image input device inputting image data consisting of a plurality of pages, an image processing unit storing received image data and an impge output device reading the stored image data and providing the output of the image based on the image data. Then a system control section 208 detects whether or not a read error takes place in the case of reading image data from a hard disk 206 and recognizes a page on which the read error takes place when the read error is detected and gives the instruction of reinput of the image data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数の原稿を画像
入力装置から読み込んで、圧縮処理してから一旦記憶し
ておき、この後、指定された順に指定回数だけ読み出し
て、伸長処理してから画像出力装置に出力するという電
子ソート機能を有する複写機に用いて好適な画像処理装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of reading a plurality of originals from an image input device, compressing the originals, temporarily storing the originals, reading the originals a specified number of times in a specified order, and expanding the originals. The present invention relates to an image processing apparatus suitable for use in a copying machine having an electronic sorting function of outputting an image to an image output apparatus.

【0002】[0002]

【従来の技術】従来より、ディジタル複写機等の画像処
理装置の一機能として、電子ソート機能がある。この電
子ソート機能とは、複数の原稿を画像入力装置により読
み込んで画像記憶装置に一旦記憶した後、指定された順
に指定回数だけ読み出して画像出力装置から出力する機
能である。このような電子ソート機能を有する画像処理
装置においては、通常、容量の限られた画像記憶装置に
多くの画像データを記憶させるために、入力された画像
データを圧縮する処理が行なわれる。また、記憶装置と
しては、記憶容量あたりの単価が低いハードディスクが
用いられるが、一般に、ハードディスクへのデータ転送
速度は、画像入出力装置のデータ転送速度よりも低い。
このため、ハードディスクへの書込あるいはハードディ
スクからの読出に要する転送時間を一定時間内に抑える
ためにも圧縮処理を行なう必要がある。
2. Description of the Related Art Conventionally, there is an electronic sort function as one function of an image processing apparatus such as a digital copying machine. The electronic sorting function is a function of reading a plurality of originals by an image input device, temporarily storing the originals in an image storage device, reading out the specified number of times in a specified order, and outputting the readout from the image output device. In an image processing apparatus having such an electronic sorting function, a process of compressing input image data is usually performed in order to store a large amount of image data in an image storage device having a limited capacity. As the storage device, a hard disk having a low unit price per storage capacity is used. Generally, the data transfer speed to the hard disk is lower than the data transfer speed of the image input / output device.
For this reason, it is necessary to perform compression processing in order to suppress the transfer time required for writing to the hard disk or reading from the hard disk within a certain time.

【0003】画像圧縮処理のアルゴリズムとしては、ど
のような画像が入力されても圧縮率が高く、かつ、画質
劣化の小さいものが要求される。このような要求を満た
す圧縮アルゴリズムには、直交変換と可変長符号化とを
組み合せたJPEG方式がある。なお、JPEG方式を
含め、一般に可変長圧縮方式は、入力される画像データ
の特性により発生する符号量が異なる。
[0003] As an algorithm of the image compression processing, an algorithm which has a high compression ratio and a small image quality deterioration is required regardless of the input image. As a compression algorithm that satisfies such a demand, there is a JPEG method that combines orthogonal transform and variable-length coding. In general, in the variable length compression method including the JPEG method, a generated code amount differs depending on characteristics of input image data.

【0004】一方、ディジタル複写機等では、入力時に
おいては1ページ分の画像読み込みを、また、出力時に
おいては1ページ分の画像の出力を、それぞれ一定のピ
ッチ(時間間隔)で行なう必要がある。このため、各ペ
ージの符号量は、ハードディスクにとって1ピッチの期
間に転送可能なデータ量以下に制御しなけらばならな
い。そのために、1ページの発生符号量が、1ピッチの
期間内にハードディスクに転送可能な容量よりも大きく
なった場合、さらに圧縮率が上がるように圧縮条件を変
更して、同一画像を再度読み込むようにしている。これ
により、どのような画像でも所定の符号量以下に制御さ
れ、画像出力時には、画像出力装置と同期し、かつ、連
続して画像の出力ができるようになっている。
On the other hand, in a digital copying machine or the like, it is necessary to read an image of one page at the time of input and output an image of one page at the time of output at a constant pitch (time interval). is there. For this reason, the code amount of each page must be controlled to be equal to or less than the data amount that can be transferred to the hard disk in one pitch period. For this reason, when the amount of generated codes for one page becomes larger than the capacity that can be transferred to the hard disk within the period of one pitch, the compression condition is changed so that the compression ratio is further increased, and the same image is read again. I have to. As a result, any image is controlled to a predetermined code amount or less, and at the time of image output, the image can be output continuously in synchronization with the image output device.

【0005】ところで、記憶装置として用いられるハー
ドディスクは、図9に示すように、シリンダ、トラッ
ク、セクタといった記憶領域に大別される。セクタはハ
ードディスクの記憶領域の最小単位であり、通常、51
2バイトの記憶容量を有する。ここで各セクタには、論
理的には1次元で表されるアドレスが、シリンダ(ディ
スク)の外周から内周に向かって連続して付与されてい
る。また、特定のアドレスのセクタにアクセスする過程
は、第1に、回転しているハードディスクに対し、ヘッ
ドをそのセクタが属するトラックに移動させ(シー
ク)、第2に、そのセクタがヘッドの位置まで回転して
くるまで待ってからそのセクタを識別して(セクタID
の識別)、第3に、データの読込あるいは書込を行なう
こととなっている。
A hard disk used as a storage device is roughly divided into storage areas such as cylinders, tracks, and sectors, as shown in FIG. A sector is the smallest unit of the storage area of a hard disk, and is usually 51
It has a storage capacity of 2 bytes. Here, addresses that are logically represented in one dimension are continuously assigned to each sector from the outer circumference to the inner circumference of the cylinder (disk). The process of accessing a sector at a specific address includes, first, moving the head to a track to which the sector belongs (seek) with respect to the rotating hard disk, and secondly, moving the sector to the position of the head. Wait for rotation and identify the sector (Sector ID
Third, data is read or written.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、ハード
ディスクは可動部分が多く、記憶装置としては、比較的
エラーが発生しやすい。この種のエラーとしては、ヘッ
ドを目的のトラックにシークさせることに失敗した場合
に発生するシークエラーや、目的のセクタを識別するた
めに設けられたセクタIDの読み出しに失敗した場合に
発生するセクタIDリードエラー、目的のセクタに書き
込まれたデータを読み出すのに失敗した場合に発生する
データリードエラーなどがある。このようなエラーが発
生すると、ハードディスクは何度かリトライを行ない、
エラー状態から復帰しようとする。リトライによってエ
ラー状態から復帰できる場合もあるが、リトライを繰り
返し行なってもエラー状態から復帰できない場合もある
(以後、そのようなエラーを回復不可能なエラーと呼
ぶ)。回復不可能なエラーが発生した場合は、そのセク
タの替わりとして所定の領域に設けられた予備のセクタ
(代替セクタ)が割り当てられる。
However, a hard disk has many movable parts, and an error is relatively likely to occur as a storage device. Such errors include a seek error that occurs when the head fails to seek to the target track, and a sector that occurs when the read of the sector ID provided to identify the target sector fails. There are an ID read error and a data read error that occurs when reading data written in a target sector fails. When such an error occurs, the hard disk will retry several times,
Attempts to recover from an error condition. In some cases, it is possible to recover from the error state by retrying, but in some cases, it is not possible to recover from the error state even after repeated retries (hereinafter, such an error is referred to as an unrecoverable error). When an unrecoverable error occurs, a spare sector (alternate sector) provided in a predetermined area is assigned instead of the sector.

【0007】ディジタル複写機において、ハードディス
クに記憶された画像データを画像出力装置に出力中、す
なわち、ハードディスクから画像データを読み出す際に
回復不可能なエラーが発生した場合、その画像データは
読み出せなくなるため、画像データが失われることにな
る。画像データが失われると、以後そのページの画像を
正常に出力することができなくなるので、コピー動作を
中止するしかない、という問題があった。
In a digital copying machine, if image data stored in a hard disk is being output to an image output device, that is, if an unrecoverable error occurs when reading image data from the hard disk, the image data cannot be read. Therefore, image data will be lost. If the image data is lost, the image of the page cannot be output normally thereafter, so that there is a problem that the copying operation has to be stopped.

【0008】本発明は、このような事情に鑑みてなされ
たものであり、その目的とするところは、画像出力時
に、ハードディスクに回復不可能なエラーが発生し、画
像データが失われても、コピー動作を継続することが可
能な画像処理装置を提供することにある。
The present invention has been made in view of such circumstances, and a purpose of the present invention is to provide an image processing method that can be used even when an irrecoverable error occurs on a hard disk at the time of image output and image data is lost. An object of the present invention is to provide an image processing apparatus capable of continuing a copy operation.

【0009】[0009]

【課題を解決するための手段】上述した問題を解決する
ため、本発明にあっては、複数ページからなる画像デー
タを入力する入力手段と、前記入力手段によって入力さ
れた画像データを記憶する記憶手段と、前記記憶手段に
記憶された画像データを読み出して、当該画像データに
基づいて画像を出力する出力手段と、前記記憶手段から
画像データを読み出した際に、読出エラーが発生したか
否かを検知するエラー検知手段と、読出エラーが検知さ
れた場合に、読出エラーが発生したページを認識するペ
ージ認識手段と、前記読出エラーが検知された場合に、
画像データを再入力するように指示する指示手段とを具
備することを特徴としている。
According to the present invention, there is provided an input unit for inputting image data composed of a plurality of pages, and a storage for storing the image data input by the input unit. Means for reading image data stored in the storage means and outputting an image based on the image data; and determining whether a read error has occurred when reading the image data from the storage means. Error detecting means for detecting a read error, a page recognizing means for recognizing a page in which a read error has occurred when a read error has been detected, and when the read error has been detected,
Instruction means for instructing re-input of image data.

【0010】(作用)本発明によれば、記憶手段から画
像データを読み出している際に、読出エラーが発生した
場合、その読出エラーが発生したページが認識される一
方、画像データを再入力するような指示がなされる。再
入力されれば、すべてのページが記憶されることとなる
ので、画像の出力動作を継続することができる。この場
合において、再入力の指示は、第1に、エラーが発生し
たページのみを再入力するように指示することと、第2
に、すべてのページを再入力するように指示することと
がが考えられる。前者については、エラーが発生したペ
ージのみを入力すれば足りるので、画像の出力動作に要
する時間を短縮することができる一方、後者について
は、操作者がエラーの発生したページに対応する画像を
探す手間を省くことができる。また、エラーが発生した
ならば、そのページに対してはエラーが発生した旨を出
力した後に、再入力を指示することも考えられる。これ
によれば、エラーの発生していないページについての出
力は、とりあえず得ることができ、また、エラーの発生
したページが出力のどこにあるのかが判り、さらに、エ
ラーが発生した旨の出力と正常な出力との差し替えも容
易である。
(Operation) According to the present invention, when a read error occurs during reading image data from the storage means, the page on which the read error occurred is recognized, and the image data is re-input. Such instructions are given. If re-input, all pages are stored, so that the image output operation can be continued. In this case, the re-input instruction firstly includes an instruction to re-input only the page where the error has occurred, and a second instruction.
May be instructed to re-enter all pages. In the former case, it is sufficient to input only the page where the error has occurred, so that the time required for the image output operation can be reduced. On the other hand, in the latter case, the operator searches for the image corresponding to the page in which the error has occurred. You can save time and effort. Further, when an error occurs, it is conceivable to instruct the page to re-enter after outputting an error message to the page. According to this, it is possible to obtain the output of the page in which no error has occurred for the time being, and to know where the page in which the error has occurred is located in the output. It is easy to replace the output with another one.

【0011】[0011]

【発明の実施の形態】以下、本発明による実施形態につ
いて図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】(第1実施形態)はじめに、本発明による
第1の実施形態について説明する。図1は、本発明の画
像処理装置が適用されるディジタル複写機の構成を示す
図である。図1において、1は画像入力装置、2は画像
処理装置、3は画像出力装置である。画像入力装置1
は、CCDセンサ102や、自動原稿送り装置103を
有し、これにより、複数ページの原稿が1ページずつ一
定ピッチで連続して読み取られて、その際の画像データ
が画像処理装置2に出力される。また、画像入力装置1
には、各種の処理モードを選択するためのスイッチや、
メッセージを表示する表示ユニットなどからなる操作パ
ネル104が設けられる。101は画像入力制御部であ
り、画像処理装置2から出力される画像入力制御信号に
より、画像入力装置1全体の制御を行なっている。
(First Embodiment) First, a first embodiment according to the present invention will be described. FIG. 1 is a diagram showing a configuration of a digital copying machine to which the image processing apparatus of the present invention is applied. In FIG. 1, 1 is an image input device, 2 is an image processing device, and 3 is an image output device. Image input device 1
Has a CCD sensor 102 and an automatic document feeder 103, whereby a plurality of pages of a document are continuously read one by one at a constant pitch, and the image data at that time is output to the image processing device 2. You. Also, the image input device 1
Includes switches for selecting various processing modes,
An operation panel 104 including a display unit for displaying a message is provided. Reference numeral 101 denotes an image input control unit which controls the entire image input device 1 based on an image input control signal output from the image processing device 2.

【0013】画像入力装置2は、画像入力装置1から供
給された画像データを、必要な画像処理を施した後に、
一旦記憶する一方、すべてのページの画像入力が終了し
て、それらすべての画像データを記憶すると、記憶した
画像データを、一定ピッチで、指定された順番で、指定
された回数だけ読み出し伸長して画像出力装置3に出力
する。
The image input device 2 performs necessary image processing on the image data supplied from the image input device 1,
Once the image data has been stored and all the image data has been input and all the image data has been stored, the stored image data is read out and decompressed at a fixed pitch in a specified order and a specified number of times. Output to the image output device 3.

【0014】画像出力装置3は、一般的な、画像出力制
御部301や、ROS(Raster Output Scanner)30
2、コピートレイ303などを有する。画像処理装置2
から供給された画像データに基づいて、ROS302の
レーザーダイオードが駆動され、これにより感光ドラム
DRに潜像が形成され、これが用紙に転写され、定着さ
れた後、コピートレイ303に排出される。画像出力制
御部301は、画像処理装置2から出力される画像出力
制御信号により、画像出力装置3全体の制御を行なう。
画像出力装置3は、一定ピッチで連続して画像出力(プ
リント)が可能である。
The image output device 3 includes a general image output control unit 301 and a ROS (Raster Output Scanner) 30.
2. It has a copy tray 303 and the like. Image processing device 2
The laser diode of the ROS 302 is driven based on the image data supplied from the printer, thereby forming a latent image on the photosensitive drum DR, which is transferred to a sheet, fixed, and then discharged to the copy tray 303. The image output control unit 301 controls the entire image output device 3 based on an image output control signal output from the image processing device 2.
The image output device 3 is capable of continuously outputting (printing) images at a constant pitch.

【0015】図2は、第1実施形態にかかる画像処理装
置2の構成を示すブロック図である。この図において、
201は前段画像処理部であり、画像入力装置からの画
像データに対し、MTF補正等の画像処理を施して、画
像圧縮伸長部203に出力する。一方、202は後段画
像処理部であり、画像圧縮伸長部203により伸長され
た画像データに対し、フィルタ処理等の画像処理を施し
て、画像出力装置3に出力する。画像圧縮伸長部203
は、画像データを例えばJPEG方式で圧縮する一方、
圧縮済みのコードデータを同じ方式で伸長するものであ
る。
FIG. 2 is a block diagram showing a configuration of the image processing apparatus 2 according to the first embodiment. In this figure,
Reference numeral 201 denotes a pre-stage image processing unit which performs image processing such as MTF correction on image data from an image input device and outputs the processed image data to an image compression / decompression unit 203. On the other hand, reference numeral 202 denotes a post-stage image processing unit which performs image processing such as filtering on the image data expanded by the image compression / expansion unit 203 and outputs the image data to the image output device 3. Image compression / decompression unit 203
Compresses image data using, for example, the JPEG method.
The compressed code data is expanded by the same method.

【0016】204はコードバッファであり、圧縮時に
は画像圧縮伸長部203からのコードデータを入力して
バッファリングする一方、伸長時には画像圧縮伸長部2
03にコードデータを出力する際にバッファリングする
ものである。205はディスク制御部であり、206は
ハードディスクである。ディスク制御部205は、コー
ドバッファ204とハードディスク206との間のデー
タ転送を制御し、ハードディスク206は、論理アドレ
ス空間を256セクタ単位に分割して管理して、複数ペ
ージ分のコードデータを格納する。ここで、分割された
256セクタの集まりをブロックと呼ぶ。なお、ハード
ディスク206は、1ブロック分のデータの書込あるい
は読出を行なうと、その書込あるいは読出にエラーが発
生したか否か、さらにエラー発生した場合には、そのエ
ラーの種類を示すステータス情報を返す。一方、207
は符号量検出部であり、画像圧縮伸長部203が1ペー
ジ分の画像データを圧縮した際に、そのコードデータの
符号量をカウントし、それが所定値よりも大きい場合、
割込信号IR1によりその旨をシステム制御部208に
通知する。システム制御部208は、画像処理装置2を
含むディジタル複写機全体を制御するものであり、CP
Uおよびその周辺回路からなっている。
Reference numeral 204 denotes a code buffer which inputs and buffers the code data from the image compression / expansion unit 203 during compression, while the image compression / expansion unit 2 during expansion.
The buffering is performed when the code data is output to the code 03. 205 is a disk control unit, and 206 is a hard disk. The disk control unit 205 controls the data transfer between the code buffer 204 and the hard disk 206. The hard disk 206 manages the logical address space by dividing it into 256 sector units, and stores code data for a plurality of pages. . Here, a group of the divided 256 sectors is called a block. When writing or reading data for one block, the hard disk 206 determines whether or not an error has occurred in the writing or reading, and if an error has occurred, status information indicating the type of the error. return it. On the other hand, 207
Is a code amount detection unit. When the image compression / decompression unit 203 compresses image data for one page, the code amount of the code data is counted. If the code amount is larger than a predetermined value,
This is notified to the system control unit 208 by the interrupt signal IR1. The system control unit 208 controls the entire digital copying machine including the image processing apparatus 2,
U and its peripheral circuits.

【0017】ここで、システム制御部の内部構成を図3
に示す。この図に示すように、CPU501は、シリア
ル通信制御回路502を介して、画像入力制御部10
1、画像出力制御部301および操作パネル104とそ
れぞれシリアル通信を行なう一方、パラレル通信制御回
路503を介して、前段画像処理部201、後段画像処
理部202、画像圧縮伸長部203、ディスク制御部2
05および符号量検出部207とそれぞれパラレル通信
を行なう。タイマTは、10msごとに割込信号IR2
を発生し、CPU501に供給する。
FIG. 3 shows the internal configuration of the system control unit.
Shown in As shown in the figure, the CPU 501 controls the image input control unit 10 via the serial communication control circuit 502.
1. While performing serial communication with the image output control unit 301 and the operation panel 104, respectively, the first-stage image processing unit 201, the second-stage image processing unit 202, the image compression / decompression unit 203, and the disk control unit 2 via the parallel communication control circuit 503.
05 and the code amount detection unit 207, respectively. Timer T outputs interrupt signal IR2 every 10 ms.
Is generated and supplied to the CPU 501.

【0018】ROM504は、CPU501において用
いられる基本プログラム等を記憶する。また、RAM5
05は、CPU501が処理をする際の情報を一時的に
記憶するため、その記憶領域に各種領域が割り当てられ
る。具体的には、図4(b)に示すように、RAM50
5にはページ情報テーブル、エラー情報テーブル、およ
びワーク領域が割り当てられる。このうち、ページ情報
テーブルには、ハードディスク206に格納された各ペ
ージの画像データに関する情報が格納され、より詳細に
は、同図(c)に示すように、画像データを圧縮する際
の圧縮パラメータ、画像データの画像サイズ、ディスク
上の格納位置を示すための先頭ブロックアドレス、およ
び圧縮後におけるコードデータの符号量が、それぞれ各
ページ毎に格納される。なお、本実施形態にあっては、
0〜99ページの最大100ページ分のページ情報が格
納可能となっている。
The ROM 504 stores basic programs and the like used in the CPU 501. RAM5
In the area 05, various areas are allocated to the storage area for temporarily storing information when the CPU 501 performs processing. Specifically, as shown in FIG.
5 is assigned a page information table, an error information table, and a work area. Among them, the page information table stores information on image data of each page stored on the hard disk 206. More specifically, as shown in FIG. , The image size of the image data, the head block address for indicating the storage position on the disk, and the code amount of the code data after compression are stored for each page. In the present embodiment,
Page information of a maximum of 100 pages from 0 to 99 pages can be stored.

【0019】また、エラー情報テーブルには、同図
(a)に示すように、ハードディスク206のエラー発
生回数が各ブロック毎に格納される。なお、本実施形態
にあっては、同一ブロックでのエラー発生回数が10回
以上となると、エラー発生回数として例えば「−1」が
書き込まれ、当該ブロックを使用禁止ブロックとして、
以後使用しないように設定される。例えば、図5に示す
ような例では、ブロック#3で2回のエラーが発生して
おり、ブロック#4は使用禁止ブロックとなっている。
この場合、ブロック#4は、ハードディスク205の論
理アドレス1024〜1279に対応しているので、こ
の論理アドレスの範囲にはコードデータが書き込まれな
いこととなる。
As shown in FIG. 1A, the error information table stores the number of times an error has occurred in the hard disk 206 for each block. In the present embodiment, when the number of times of error occurrence in the same block becomes 10 or more, for example, “−1” is written as the number of times of error occurrence, and the block is set as a use prohibition block.
It is set not to be used thereafter. For example, in the example shown in FIG. 5, two errors have occurred in block # 3, and block # 4 is a use-prohibited block.
In this case, since block # 4 corresponds to the logical addresses 1024 to 1279 of the hard disk 205, no code data is written in the range of the logical addresses.

【0020】CPU501は、ページ情報テーブル、エ
ラー情報テーブルを参照することによって、ハードディ
スク206へのデータ転送を制御することができ、ま
た、ハードディスク206に格納された画像データを任
意のページ順に任意の回数だけ読み出すことの制御が可
能になる。
The CPU 501 can control the data transfer to the hard disk 206 by referring to the page information table and the error information table. Only reading can be controlled.

【0021】次に、本実施形態にかかる画像処理装置の
基本的な動作について説明する。まず、画像入力時の動
作について説明する。画像入力装置1から原稿が1ペー
ジずつ一定ピッチで読み取られて、その画像データに
は、前段画像処理部201によって必要な画像処理が施
される。この後、画像データに対し画像圧縮伸長部20
3によって圧縮処理が行なわれる。圧縮されたコードデ
ータは、コードバッファ204に格納(バッファリン
グ)される一方、その符号量が符号量検出部207によ
ってカウントされる。符号量検出部207は発生符号量
と予め設定されている目標符号量とを比較して、発生符
号量が目標符号量よりも大きくなったら、システム制御
部208に対して割込信号IR1を発生し、その旨を通
知する。この場合にシステム制御部208は、コードバ
ッファ204に対しては、コードデータのバッファリン
グを停止させるとともに、その書込アドレスを当該ペー
ジの先頭に戻すように制御し、画像入力装置1に対して
は、現在読み込み中の画像と同一の画像を次のピッチで
も再度読み込み(以下リスキャンと呼ぶ)を行なうよう
に要求するとともに、現在の圧縮処理を継続させるよう
に制御する。これは、そのページの発生符号量を測定し
て、目標符号量との誤差から、発生符号量が目標符号量
以下となる圧縮パラメータの値を計算し、再設定するた
めである。
Next, the basic operation of the image processing apparatus according to this embodiment will be described. First, the operation at the time of image input will be described. A document is read from the image input device 1 at a constant pitch one page at a time, and the image data thereof is subjected to necessary image processing by a pre-stage image processing unit 201. Thereafter, the image compression / decompression unit 20
3 performs compression processing. The compressed code data is stored (buffered) in the code buffer 204, and the code amount is counted by the code amount detection unit 207. The code amount detection unit 207 compares the generated code amount with a preset target code amount, and generates an interrupt signal IR1 to the system control unit 208 when the generated code amount becomes larger than the target code amount. And notify that effect. In this case, the system control unit 208 stops the buffering of the code data in the code buffer 204 and controls the write address to return to the top of the page. Requests that the same image as the image currently being read in be read again at the next pitch (hereinafter referred to as rescanning), and controls to continue the current compression processing. This is because the generated code amount of the page is measured, and a compression parameter value at which the generated code amount is equal to or smaller than the target code amount is calculated from the error with the target code amount and reset.

【0022】次のピッチでは、前回と同じページにかか
る画像データが入力されることになるが、圧縮パラメー
タは圧縮率が前回よりも向上するように設定されている
ので、発生符号量は目標符号量以下となって、正常終了
となる。このように、CPU501は、1ページの圧縮
処理が終了した時点において、符号量の超過による割り
込みが発生していなければ、圧縮処理が正常終了したと
判断して、コードバッファ204にバッファリングされ
たコードデータをハードディスク206に転送させるよ
うに制御する。
At the next pitch, image data for the same page as the previous page is input. However, since the compression parameter is set so that the compression ratio is improved from the previous page, the generated code amount is set to the target code amount. When it becomes less than the amount, the process ends normally. As described above, if an interrupt due to an excess of the code amount has not occurred at the time when the compression processing of one page is completed, the CPU 501 determines that the compression processing has been completed normally and is buffered in the code buffer 204. Control is performed to transfer the code data to the hard disk 206.

【0023】次に、本実施形態におけるデータ転送につ
いて説明する。本実施形態において、ハードディスク2
06へのデータ転送は、ブロック単位で実行される。シ
ステム制御部208は、まず、符号量検出部207によ
り検出した当該ページの符号量から、その符号量に対応
するブロック数を計算し、1ブロック分のデータ転送を
計算したブロック数の回数だけ繰り返す。この際、CP
U501は、当該ページの圧縮パラメータや、画像サイ
ズ、先頭ブロックアドレス、および符号量をRAM50
5に割り当てられたページ情報テーブルにおいて、該当
するページにセットする。
Next, data transfer in this embodiment will be described. In the present embodiment, the hard disk 2
Data transfer to 06 is performed in block units. The system control unit 208 first calculates the number of blocks corresponding to the code amount from the code amount of the page detected by the code amount detection unit 207, and repeats data transfer for one block by the number of calculated blocks. . At this time, CP
U501 stores the compression parameters of the page, the image size, the first block address, and the code amount in the RAM 50.
In the page information table assigned to No. 5, the corresponding page is set.

【0024】ここで、1ブロック分の転送については、
システム制御部208(CPU501)が、エラー情報
テーブルを参照し、ハードディスク206における転送
先(書込先)ブロックのエラー発生回数を調べる。この
際、当該ブロックのエラー発生回数として「−1」が書
き込まれているのであれば、当該ブロックは使用禁止ブ
ロックであると判断し、当該ブロックの次のブロックに
対して転送(書込)を行なう。一方、システム制御部2
08は、ハードディスク206における転送先ブロック
のエラー発生回数を調べ、当該ブロックのエラー発生回
数として「0」以上の値が書き込まれているのであれ
ば、当該ブロックに対しデータの転送を行なう。これに
より、使用禁止のブロックを避けてデータの書き込みを
行なうので、効率の良いデータ転送が可能となる。
Here, for one block transfer,
The system control unit 208 (CPU 501) refers to the error information table and checks the number of errors occurring in the transfer destination (write destination) block on the hard disk 206. At this time, if “−1” is written as the number of error occurrences of the block, the block is determined to be a use-prohibited block, and transfer (writing) is performed to the block next to the block. Do. On the other hand, the system control unit 2
In step 08, the number of errors in the transfer destination block in the hard disk 206 is checked, and if a value equal to or greater than "0" is written as the number of errors in the block, data is transferred to the block. As a result, data is written while avoiding use-prohibited blocks, so that efficient data transfer becomes possible.

【0025】また、ハードディスクへのデータ転送と平
行して、次のページの画像データが画像入力装置1から
読み込まれ、画像圧縮伸長部203によって圧縮処理さ
れる。このような処理を、読み込むべきすべてのページ
に対して繰り返し実行される。この結果、すべての画像
がハードディスク205に格納されることとなる。
In parallel with the data transfer to the hard disk, the image data of the next page is read from the image input device 1 and compressed by the image compression / decompression unit 203. Such processing is repeatedly executed for all pages to be read. As a result, all the images are stored on the hard disk 205.

【0026】次に画像出力時の動作について説明する。
なお、システム制御部208は、そのRAM505で管
理しているページ情報テーブルおよびエラー情報テーブ
ルを参照して、データ転送を任意のページ順で行なうこ
とが可能である。まず、システム制御部208は、最初
のピッチにおいて、ディスク制御部205に対して1ペ
ージ目に対応するコードデータをハードディスク206
からコードバッファ204に転送するように制御する。
これにより、当該コードデータは、ハードディスク20
6から読み出されて、コードバッファ204に一旦記憶
される。
Next, the operation at the time of image output will be described.
The system control unit 208 can perform data transfer in an arbitrary page order with reference to the page information table and the error information table managed by the RAM 505. First, the system control unit 208 sends the code data corresponding to the first page to the disk control unit 205 at the first pitch.
To the code buffer 204.
Thereby, the code data is stored in the hard disk 20.
6 and temporarily stored in the code buffer 204.

【0027】そして、システム制御部208は、次のピ
ッチからは、コードデータをハードディスク206から
コードバッファ204に転送するとともに、その前のピ
ッチにおいてコードバッファ204に格納されたコード
データを画像圧縮伸長部203に供給・伸長し、後段画
像処理部202を介して画像出力装置3に出力するよう
に、各部を制御する。この際、システム制御部208
は、コードバッファ204に1ブロック分の空き領域が
あれば、1ブロック分のデータをハードディスク206
から読み込んでコードバッファ204の当該ブロックに
転送する。
Then, from the next pitch, the system control unit 208 transfers the code data from the hard disk 206 to the code buffer 204 and, at the previous pitch, transfers the code data stored in the code buffer 204 to the image compression / decompression unit. Each component is controlled so as to be supplied and decompressed to 203 and output to the image output device 3 via the subsequent-stage image processing unit 202. At this time, the system control unit 208
Means that if there is one block of free space in the code buffer 204, one block of data is
And transfers it to the corresponding block of the code buffer 204.

【0028】ここで、各ページのコードデータは、すで
に画像入力の段階で、1ピッチの期間にハードディスク
206に転送可能なデータ量に圧縮され、かつ、エラー
が発生しやすいセクタおよび代替セクタを避けてハード
ディスク206に格納されているため、効率良くデータ
転送が行なわれる。これにより、コードバッファ204
においてアンダーフローが発生することなく、画像の伸
長・出力を連続して行なうことができる。このような画
像出力の動作を、指定ページ順に指定回数だけ繰り返し
て実行することにより、電子ソート機能が実現される。
Here, the code data of each page has already been compressed to the amount of data that can be transferred to the hard disk 206 in one pitch period at the time of image input, and the error-prone sectors and alternative sectors are avoided. Since the data is stored in the hard disk 206, data transfer is performed efficiently. Thereby, the code buffer 204
, The image can be expanded and output continuously without causing underflow. Such an image output operation is repeatedly performed a specified number of times in the specified page order, thereby realizing an electronic sorting function.

【0029】次に、1ブロック分のコードデータをデー
タ転送する動作について図6および図7のフローチャー
トを参照して説明する。本実施形態にかかる画像処理装
置において、ハードディスク206にデータ転送する際
には、エラーが発生しているか否かを判別するため、必
ずデータ転送時間の計測が行なわれ、その計測結果によ
ってエラー情報テーブルの更新が行なわれる。なお、デ
ータ転送時間の計測はデータ書き込み時および読み出し
時の双方で行なわれる。
Next, the operation of transferring one block of code data will be described with reference to the flowcharts of FIGS. In the image processing apparatus according to the present embodiment, when data is transferred to the hard disk 206, the data transfer time is always measured to determine whether an error has occurred, and the error information table is determined based on the measurement result. Is updated. The measurement of the data transfer time is performed both at the time of writing data and at the time of reading data.

【0030】はじめに、ハードディスク206への書込
動作について説明する。まず、1ブロック分のデータ書
込が開始されると、システム制御部208のCPU50
1は、図6に示すステップSa1において、データ転送
時間を計測するべく、タイマTからの割込を許可する。
次に、ステップSa2においてCPU501は、ディス
ク制御部205に対しこれから書き込みを行なうデータ
量(セクタ数)と書込開始アドレスとコマンドとを設定
し、データ転送を開始させるように制御する。これによ
り、ディスク制御部205は、ハードディスク206の
インターフェイス仕様に基づいてデータ転送を実際に行
なう。
First, the writing operation to the hard disk 206 will be described. First, when data writing for one block is started, the CPU 50 of the system control unit 208 starts.
In step Sa1 shown in FIG. 6, 1 permits the interruption from the timer T in order to measure the data transfer time.
Next, in step Sa2, the CPU 501 sets the data amount (the number of sectors) to be written, the write start address, and the command to the disk control unit 205, and controls to start the data transfer. Thereby, the disk control unit 205 actually performs data transfer based on the interface specification of the hard disk 206.

【0031】ディスク制御部205によって、コードバ
ッファ204とハードディスク206との間でデータ転
送が行なわれている間、CPU501は、タイマTから
入力される割込信号IR2をカウントすることで、デー
タ転送時間の計測を行なう。データ転送が終了すると、
ディスク制御部205から割込信号がシステム制御部2
08に入力される。かかる割込信号が入力されると、シ
ステム制御部208のCPU501は、ステップSa3
においてタイマの割り込みを禁止し、ステップSa4に
おいてハードディスク206からのステータス情報を読
み込む。
While data is being transferred between the code buffer 204 and the hard disk 206 by the disk control unit 205, the CPU 501 counts the interrupt signal IR2 input from the timer T to determine the data transfer time. Is measured. When the data transfer ends,
An interrupt signal is sent from the disk control unit 205 to the system control unit 2
08 is input. When such an interrupt signal is input, the CPU 501 of the system control unit 208 proceeds to step Sa3.
In step Sa4, the status information from the hard disk 206 is read.

【0032】次に、CPU501は、ステップSa5に
おいてステータス情報を判別して、それが正常終了であ
った場合、処理手順をステップSa6に進める一方、正
常終了でない場合には、ステップSa7において、それ
が回復可能なエラーであったか否かを判定する。回復可
能なエラーであれば、CPU501は、ステップSa8
において、エラー情報テーブルのうち、当該ブロックに
対応するエラー発生回数を「1」だけインクリメントさ
せる。
Next, the CPU 501 determines the status information in step Sa5. If the status information is normally terminated, the CPU 501 advances the processing procedure to step Sa6. It is determined whether or not the error is recoverable. If it is a recoverable error, the CPU 501 proceeds to step Sa8.
In the error information table, the number of times of error occurrence corresponding to the block in the error information table is incremented by “1”.

【0033】次のステップSa6においてCPU501
は、計測した転送時間が予め設定された上限値未満であ
るか否かを判定する。ここで、転送時間の判定は、次の
ように行なわれる。すなわち、CPU501は、第1
に、タイマTの割込信号IR2をカウントし、第2に、
そのカウント数からデータ転送に要した時間を算出し、
第3に、算出したデータ転送時間と転送時間の上限値と
を比較する。なお、転送時間の上限値は、使用するハー
ドディスクの仕様(回転数、リトライ回数)を考慮して
予め設定されるものである。例えば、使用するハードデ
ィスクの回転数が5400rpm、リトライ回数が16
回であるとすると、16回転分の時間180msが転送
時間の上限値として設定される。
In the next step Sa6, the CPU 501
Determines whether the measured transfer time is less than a preset upper limit value. Here, the determination of the transfer time is performed as follows. That is, the CPU 501 sets the first
The timer T counts an interrupt signal IR2.
Calculate the time required for data transfer from the count number,
Third, the calculated data transfer time is compared with the upper limit of the transfer time. Note that the upper limit of the transfer time is set in advance in consideration of the specifications (the number of rotations and the number of retries) of the hard disk to be used. For example, the rotation speed of the hard disk to be used is 5400 rpm, and the number of retries is 16
Assuming that the number of times is 16 times, a time of 180 ms corresponding to 16 rotations is set as the upper limit of the transfer time.

【0034】さて、CPU501は、ステップSa6の
判別結果が「No」である場合に、その転送を行なった
複数のセクタのうち、いずれかのセクタでシークエラー
や、セクタIDリードエラーなどのエラーが発生したた
めにリトライ動作が行なわれた、あるいは、代替セクタ
へのアクセスのためにオーバーヘッドが発生した、と判
断する。このため、CPU501は、ステップSa9に
おいて、エラー情報テーブルのうち、そのブロックに対
応するエラー発生回数を「1」だけインクリメントさせ
る。そして、CPU501は、ステップSa9の処理を
終了した場合、あるいはステップSa6の判別結果が
「Yes」である場合、現時点にかかる1ブロック分の
書込動作を終了し、次の1ブロック分があれば、引き続
きコードデータの転送を継続する。
When the result of the determination in step Sa6 is "No", the CPU 501 determines that an error such as a seek error or a sector ID read error has occurred in any of the plurality of transferred sectors. It is determined that the retry operation has been performed due to the occurrence, or that overhead has occurred due to access to the substitute sector. Therefore, in step Sa9, the CPU 501 increments the number of error occurrences corresponding to the block in the error information table by “1”. Then, when the processing of step Sa9 is completed or the determination result of step Sa6 is “Yes”, the CPU 501 ends the writing operation for one block at the present time, and when there is the next one block, , And the transfer of the code data is continued.

【0035】一方、CPU501は、ステップSa7に
おいて、エラーが回復不可能なものであると判断した場
合、手順をステップSa10に移行し、その転送を行な
ったセクタのうち、データが書き込めないセクタが存在
したと判断して、エラー情報テーブルのうち、そのブロ
ックに対応するエラー発生回数を「−1」に書き換えて
以後使用禁止とし、次回からはそのブロックに対して書
き込みを不可能と設定する。この後、CPU501は、
ステップSa11において、次のブロックに再度書き込
みを行なうため、手順を再びステップSa1に戻す。
On the other hand, if the CPU 501 determines in step Sa7 that the error is irrecoverable, it shifts the procedure to step Sa10, and among the sectors that have been transferred, there are sectors to which data cannot be written. When it is determined that the error has occurred, the number of times of error occurrence corresponding to the block in the error information table is rewritten to "-1" to prohibit use thereafter, and set that writing to the block is impossible from the next time. After that, the CPU 501
In step Sa11, the procedure returns to step Sa1 again in order to rewrite the next block.

【0036】以上は、ハードディスク206への書込動
作についての説明であるが、1ブロック分のデータ読出
動作も、図7に示すように、ほぼ同様である。ただ、エ
ラーが回復不可能なものであった場合に、そのブロック
を以後使用禁止とした後の動作が若干異なる。すなわ
ち、データの喪失により、そのページの画像が出力不能
となるため、CPU501は、ステップSb11におい
て、複写動作を停止するように、画像出力装置3に指令
して、後述するリカバリー処理を行なう。この後、手順
が戻ることなく当該1ブロックの転送動作(読込動作)
は終了する。
The above is a description of the write operation to the hard disk 206, but the data read operation for one block is almost the same as shown in FIG. However, when the error is unrecoverable, the operation after the block is prohibited from being used is slightly different. That is, since the image of the page cannot be output due to the data loss, the CPU 501 instructs the image output device 3 to stop the copying operation in step Sb11, and performs a recovery process described later. Thereafter, the transfer operation (read operation) of the one block is performed without returning the procedure.
Ends.

【0037】次に、エラー情報テーブル(図4(a)参
照)に関する処理について説明する。かかる処理は、電
子ソート機能の終了後に実行される。まず、エラー情報
テーブルの情報の更新が行なわれる。この際、システム
制御部208(CPU501)は、RAM505からエ
ラー情報テーブルの情報を読み出し、エラー発生回数が
「10」以上であるブロックを検索する。このようなブ
ロックについてCPU501は、そのブロックになんら
かの欠陥があり、転送速度の低下につながると判断し
て、エラー発生回数を「−1」に書き換え、以後使用禁
止とする。
Next, the processing related to the error information table (see FIG. 4A) will be described. This processing is executed after the completion of the electronic sorting function. First, the information in the error information table is updated. At this time, the system control unit 208 (CPU 501) reads the information of the error information table from the RAM 505, and searches for a block in which the number of times of error occurrence is “10” or more. For such a block, the CPU 501 determines that the block has some defect and leads to a decrease in the transfer speed, rewrites the number of occurrences of the error to “−1”, and prohibits use thereafter.

【0038】次に、CPU501は、エラー情報テーブ
ルを参照し、使用可能なブロック数をカウントする。こ
の際、CPU501は、使用可能なブロック数から、現
時点においてハードディスク206に蓄積可能な画像枚
数(ページ数)を算出して、この画像枚数が所定値より
も小さければ、現在使用中のハードディスクの記憶容量
が十分ではないと判断し、ハードディスクの交換が必要
であることを示すメッセージを操作パネル104に表示
させる。次に、CPU501は、エラー情報テーブルの
内容を読み出して、ハードディスク206に予め設けら
れたエラー情報テーブル格納領域に記憶する。これは、
複写機の電源投入時に、ハードディスク206のエラー
情報テーブル格納領域からエラー情報テーブルの内容を
読み出してRAM505にセットするためである。な
お、ハードディスク206におけるエラー情報テーブル
の内容の読出あるいは書込には、高速な転送速度が要求
されないので、エラー情報テーブル格納領域はディスク
の最内周に設けられる。
Next, the CPU 501 counts the number of usable blocks by referring to the error information table. At this time, the CPU 501 calculates the number of images (number of pages) that can be stored in the hard disk 206 at the present time from the number of available blocks, and if the number of images is smaller than a predetermined value, the storage of the currently used hard disk is stored. It is determined that the capacity is not sufficient, and a message indicating that the hard disk needs to be replaced is displayed on the operation panel 104. Next, the CPU 501 reads out the contents of the error information table and stores it in an error information table storage area provided in the hard disk 206 in advance. this is,
This is because the contents of the error information table are read from the error information table storage area of the hard disk 206 and set in the RAM 505 when the power of the copying machine is turned on. Note that reading or writing the contents of the error information table on the hard disk 206 does not require a high transfer rate, so the error information table storage area is provided at the innermost circumference of the disk.

【0039】次に、リカバリー処理について説明する。
かかるリカバリー処理は、画像出力処理の途中で回復不
可能なリードエラーが発生し、画像データが失われた場
合に実行される(ステップSb11参照)。システム制
御部208(CPU501)は、ハードディスク206
からデータを読み出す際、必ずステータス情報をチェッ
クする(ステップSb11)。CPU501は、ステー
タス情報によりエラーが回復不可能なものを示す場合、
ハードディスク206からのデータ転送処理をその時点
で中止し、現時点においてハードディスク206から画
像データを読み出しているページ番号を、すなわち回復
不可能なエラーが発生して画像データの一部が失われた
ページ番号を、RAM505のワーク領域に格納する。
Next, the recovery process will be described.
Such recovery processing is executed when an irrecoverable read error occurs during image output processing and image data is lost (see step Sb11). The system control unit 208 (CPU 501)
When the data is read from, the status information is always checked (step Sb11). If the status information indicates that the error cannot be recovered,
The data transfer process from the hard disk 206 is stopped at that time, and the page number at which the image data is currently read from the hard disk 206, that is, the page number at which a part of the image data is lost due to the occurrence of an unrecoverable error Is stored in the work area of the RAM 505.

【0040】この時点において、画像圧縮伸長部203
が伸長処理および画像出力を行なっているため、コード
バッファ204には、画像出力が行なわれているページ
を含め、最低1ページ以上のコードデータがバッファリ
ングされている。CPU501は、コードバッファ20
4に対し、正常に転送されたページのコードデータの出
力を継続させる。そして、正常に転送されたページのコ
ードデータがすべて画像出力装置3に出力されると、C
PU501は、画像出力制御部301に対し画像出力処
理を終了させる。画像出力処理終了後、CPU501
は、操作パネル104に対し、回復不可能なエラーが発
生したページ番号とともに、そのページの原稿を再入力
するようなメッセージを表示させて、操作者に通知す
る。
At this point, the image compression / decompression unit 203
Performs the decompression process and image output, the code buffer 204 stores at least one page of code data including the page on which the image is output. The CPU 501 controls the code buffer 20
4, the output of the code data of the page transferred normally is continued. When all the code data of the normally transferred page is output to the image output device 3, C
The PU 501 causes the image output control unit 301 to end the image output processing. After the image output processing is completed, the CPU 501
Displays, on the operation panel 104, a message for re-inputting the original of the page together with the page number where the unrecoverable error has occurred, and notifies the operator.

【0041】エラーが発生したページの原稿の画像が、
操作者自身によって、画像入力装置1に再入力される
と、前述した画像入力動作が行なわれ、再入力されたペ
ージの画像がハードディスク206に記憶される。ま
た、再入力されたページに対応するページ情報テーブル
も更新される。ここで、再入力されたページの画像が格
納される場所は、ハードディスク206にすでに記憶さ
れている最終ページの後ろの位置になる。例えば、合計
10ページの画像の電子ソート機能によるコピーを実行
中に4ページ目の画像データが失われたとすると、再入
力された4ページ目の画像データが格納される論理アド
レスは、10ページ目の画像データの最終ブロックの直
後のブロックからということになる。再入力によって画
像データの格納されると、CPU501は、電子ソート
機能によるコピー動作を再開させる。
The image of the document on the page where the error has occurred is
When the operator inputs the image again into the image input device 1, the image input operation described above is performed, and the image of the reinput page is stored in the hard disk 206. Further, the page information table corresponding to the re-input page is also updated. Here, the place where the image of the re-input page is stored is a position after the last page already stored in the hard disk 206. For example, if the image data of the fourth page is lost while the image of the total of 10 pages is being copied by the electronic sort function, the logical address where the re-input fourth page image data is stored is the 10th page. From the block immediately after the last block of the image data. When the image data is stored by the re-input, the CPU 501 restarts the copy operation by the electronic sort function.

【0042】このような実施形態にかかる画像処理装置
においては、画像出力時に、ハードディスク206に回
復不可能なエラーが発生して画像データが失われても、
リカバリー処理によって、電子ソート機能のコピー動作
を継続することができる。
In the image processing apparatus according to such an embodiment, even if an irrecoverable error occurs in the hard disk 206 at the time of image output and image data is lost,
By the recovery process, the copy operation of the electronic sort function can be continued.

【0043】(第2実施形態)次に、本発明による第2
の実施形態について説明する。第1実施形態にかかる画
像処理装置との相違点は、画像出力中においてハードデ
ィスク206に回復不可能のエラーが発生した場合のリ
カバリー処理だけであり、構成はまったく同じであるの
で、かかるリカバリー処理について説明することとす
る。端的には、第1の実施形態では、回復不可能なエラ
ーが発生した場合に、コピー動作を一時中断し、回復不
可能なエラーが発生したページ番号を操作パネル104
に表示して、その後、エラーが発生したページの画像の
みを再入力した後にコピー動作を再開するように制御す
るが、この第2実施形態では、コピーを行なうすべての
原稿の画像を画像入力装置1から入力し、その中から回
復不可能なエラーが発生したページの画像のみをハード
ディスク206に記憶するように制御して、再入力に際
しての操作者の負担を軽くすることを企図するものであ
る。
(Second Embodiment) Next, a second embodiment according to the present invention will be described.
An embodiment will be described. The only difference from the image processing apparatus according to the first embodiment is the recovery processing when an unrecoverable error occurs in the hard disk 206 during image output. The configuration is exactly the same. It will be explained. Briefly, in the first embodiment, when an unrecoverable error occurs, the copy operation is temporarily suspended, and the page number on which the unrecoverable error has occurred is displayed on the operation panel 104.
Is displayed, and then control is performed so that the copy operation is restarted after re-inputting only the image of the page where the error has occurred. In the second embodiment, the image of all the originals to be copied is input to the image input device. This is intended to reduce the burden on the operator at the time of re-input by controlling so that only the image of the page in which an unrecoverable error has occurred is stored in the hard disk 206. .

【0044】第2実施形態にかかるシステム制御部20
8(CPU501)は、ハードディスク206からコー
ドデータを読み出す際に、ステータス情報を必ずチェッ
クする。CPU501は、ステータス情報が回復不可能
なエラーを示すものであった場合に、その時点において
ハードディスク206からのデータ転送処理を中止し、
その時点でハードディスクから画像データを読み出して
いるページ番号を、すなわち回復不可能なエラーが発生
して画像データの一部が失われたページ番号を、RAM
505のワーク領域に格納する。
The system control unit 20 according to the second embodiment
8 (CPU 501) always checks the status information when reading the code data from the hard disk 206. If the status information indicates an unrecoverable error, the CPU 501 stops the data transfer process from the hard disk 206 at that time,
The page number at which the image data is being read from the hard disk at that time, that is, the page number at which a part of the image data is lost due to an unrecoverable error, is stored in RAM.
505 is stored in the work area.

【0045】この時点で、画像圧縮伸長部203が伸長
処理および画像出力を行なっているため、コードバッフ
ァ204には、画像出力が行なわれているページを含
め、最低1ページ以上のコードデータがバッファリング
されている。CPU501は、コードバッファ204に
対し、正常に転送されたページのコードデータの出力を
継続させる。そして、正常に転送されたページのコード
データがすべて画像出力装置3に出力されると、CPU
501は、画像出力制御部301に対し画像出力処理を
終了させる。画像出力処理終了後、CPU501は、操
作パネル104に回復不可能なエラーが発生したので、
すべての原稿を再入力するようメッセージを表示させ
て、操作者に通知する。
At this point, since the image compression / decompression unit 203 has performed the decompression processing and the image output, the code buffer 204 stores at least one page of code data including the page on which the image is being output. Is ringing. The CPU 501 causes the code buffer 204 to continue outputting the code data of the normally transferred page. When all the code data of the normally transferred page is output to the image output device 3, the CPU
501 causes the image output control unit 301 to end the image output processing. After the image output process is completed, the CPU 501 determines that an unrecoverable error has occurred on the operation panel 104.
A message is displayed to re-enter all originals, and the operator is notified.

【0046】CPU501は、RAM505のワーク領
域から、回復不可能なエラーが発生したページ番号を読
み出す一方、操作者自身によってすべてのページの原稿
の画像が入力が再度行なわれても、そのページ番号にか
かるページの原稿が入力されるまでは、画像圧縮伸張部
203およびディスク制御部205を動作させない。回
復不可能なエラーが発生したページ番号にかかるページ
の原稿が入力されると、CPU501は、画像圧縮伸張
部203およびディスク制御部205を動作させる。こ
れにより、以前エラーが発生したページの画像データが
圧縮されて、ハードディスク206に記憶される。同時
に、そのページに対応するページ情報テーブルのデータ
も更新される。なお、再入力されたページにかかるコー
ドデータが格納される領域は、すでに記憶されている最
終ページの後ろのブロックからとなる。そして、再入力
によって画像データの格納が終了した後、CPU501
は、電子ソート機能によるコピー動作を再開させる。
While reading the page number where an unrecoverable error has occurred from the work area of the RAM 505, the CPU 501 keeps the page number even if the original image of all pages is again input by the operator himself. The image compression / decompression unit 203 and the disk control unit 205 are not operated until a document of such a page is input. When a document of a page corresponding to the page number where an unrecoverable error has occurred is input, the CPU 501 operates the image compression / decompression unit 203 and the disk control unit 205. As a result, the image data of the page where the error has occurred previously is compressed and stored in the hard disk 206. At the same time, the data of the page information table corresponding to the page is also updated. The area where the code data relating to the re-input page is stored is from the block after the last page already stored. After the storage of the image data is completed by the re-input, the CPU 501
Restarts the copy operation by the electronic sort function.

【0047】このような第2実施形態にかかる画像処理
装置によれば、リカバリー処理によって、電子ソート機
能のコピー動作を継続することができるとともに、操作
者にとっては、すべてのページの原稿を入力すれば足り
るので、複数ページの原稿のなかからエラーの発生した
ページを探す手間がかからないという利点もある。
According to the image processing apparatus according to the second embodiment, the copy operation of the electronic sort function can be continued by the recovery process, and the operator can input the originals of all pages. Since it is sufficient, there is also an advantage that it is not necessary to search for the page in which the error has occurred from the document of plural pages.

【0048】(第3実施形態)次に、本発明による第3
の実施形態について説明する。第1および第2実施形態
にかかる画像処理装置との相違点は、画像出力中におい
てハードディスク206に回復不可能のエラーが発生し
た場合のリカバリー処理だけであり、構成はまったく同
じであるので、リカバリー処理について説明することと
する。端的には、第1および第2実施形態においては、
回復不可能なエラーが発生した場合に、コピー動作を一
時中断し、原稿を再入力した後、コピー動作を再開する
ように制御するが、本実施形態では、回復不可能なエラ
ーが発生したページの画像データの替わりに、予め用意
しておいたエラーメッセージ画像を出力することでコピ
ー動作を継続させる。このため、本実施形態におけるハ
ードディスク206の特定の領域には、図8に示すよう
なエラーメッセージ画像のデータが予め記憶されてい
る。なお、エラーメッセージ画像は、リカバリー処理や
ヘッドのシークによってハードディスク206からのデ
ータ転送が一時的に停止したとしても問題ないように、
高圧縮率(すなわち小符号量)で圧縮された状態で記憶
されている。
(Third Embodiment) Next, a third embodiment according to the present invention will be described.
An embodiment will be described. The only difference from the image processing apparatuses according to the first and second embodiments is the recovery processing when an unrecoverable error occurs in the hard disk 206 during image output. The configuration is exactly the same. The processing will be described. Briefly, in the first and second embodiments,
When an irrecoverable error occurs, the copying operation is temporarily suspended, and control is performed so that the copying operation is restarted after re-inputting the original. However, in the present embodiment, the page where the irrecoverable error occurs is controlled. The copy operation is continued by outputting an error message image prepared in advance instead of the image data. For this reason, in a specific area of the hard disk 206 in the present embodiment, data of an error message image as shown in FIG. 8 is stored in advance. The error message image is used so that even if the data transfer from the hard disk 206 is temporarily stopped due to the recovery process or the seek of the head, there is no problem.
It is stored in a state of being compressed at a high compression rate (that is, a small code amount).

【0049】第3実施形態にかかる制御部208(CP
U501)は、ハードディスク206からコードデータ
を読み出す際に、ステータス情報を必ずチェックする。
CPU501は、ステータス情報が回復不可能なエラー
を示すものであった場合に、その時点においてハードデ
ィスク206からのデータ転送処理を中止し、その時点
でハードディスクから画像データを読み出しているペー
ジ番号を、すなわち回復不可能なエラーが発生して画像
データの一部が失われたページ番号を、RAM505の
ワーク領域に格納する。その後、CPU501は、ペー
ジ情報テーブルを、回復不可能なエラーが発生したペー
ジに対応する内容がエラーメッセージ画像の内容となる
ように書き換える。これによって回復不可能なエラーが
発生したページの替わりに、図8に示すエラーメッセー
ジ画像が出力されることになり、画像出力処理が継続さ
れる。画像出力処理終了したら、CPU501は、操作
パネル104に対し、回復不可能なエラーが発生したペ
ージ番号とともに、エラーが発生したページの原稿のみ
再度コピーを取り直し、出力されたエラーメッセージ画
像と差し替えを行なうよう指示するメッセージを表示さ
せる。
The control unit 208 (CP) according to the third embodiment
U501) always checks the status information when reading the code data from the hard disk 206.
If the status information indicates an unrecoverable error, the CPU 501 stops the data transfer process from the hard disk 206 at that time, and determines the page number at which image data is read from the hard disk at that time, that is, The page number where an unrecoverable error has occurred and part of the image data has been lost is stored in the work area of the RAM 505. Thereafter, the CPU 501 rewrites the page information table so that the content corresponding to the page where the unrecoverable error has occurred becomes the content of the error message image. As a result, the error message image shown in FIG. 8 is output instead of the page where the unrecoverable error has occurred, and the image output process is continued. When the image output processing is completed, the CPU 501 copies again the document of the page where the error occurred and the page where the error occurred, and replaces it with the output error message image on the operation panel 104. Display a message instructing you to

【0050】このような第3実施形態にかかる画像処理
装置によれば、リカバリー処理によって、電子ソート機
能のコピー動作を継続することができるとともに、操作
者にとっては、とりあえず、正常に読み取られたページ
の分のコピーが得られるという利点もある。
According to the image processing apparatus according to the third embodiment, the copy operation of the electronic sort function can be continued by the recovery processing, and the page that has been normally read for the operator can be used. There is also an advantage that a copy of the size can be obtained.

【0051】なお、この第3実施形態では、エラーメッ
セージ画像が出力された用紙は、他の正常に出力された
用紙と同じサイズであって、同じ向きに出力されるもの
であるが、操作者による差し替え作業が容易になるよう
に、画像出力装置3内部で用紙の向き90度を変えて排
出させるように制御したり、サイズの大きな用紙に出力
させるように制御したり、あるいはカラーで出力するよ
うに制御しても良い。すなわち、エラーメッセージ画像
が出力される用紙を、正常にコピーされた他の用紙と比
べて目立つように排出されるように構成するのが望まし
い。
In the third embodiment, the sheet on which the error message image is output has the same size and the same orientation as other normally output sheets. In order to facilitate the replacement work, the image output device 3 controls the paper to be ejected by changing the orientation of the paper by 90 degrees, the paper to be output on a large paper, or the color output. Control may be performed as follows. That is, it is desirable that the sheet on which the error message image is output is ejected so as to be more conspicuous than other sheets that have been normally copied.

【0052】[0052]

【発明の効果】以上説明したように本発明によれば、画
像出力時に、ハードディスクに回復不可能なエラーが発
生して画像データが失われても、コピー動作を継続する
ことが可能となる。
As described above, according to the present invention, it is possible to continue the copying operation even if an irrecoverable error occurs in the hard disk and image data is lost during image output.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の実施形態にかかる画像処理装置が適
用されるディジタル複写機の構成を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating a configuration of a digital copying machine to which an image processing apparatus according to an embodiment of the present invention is applied.

【図2】 本発明の実施形態にかかる画像処理装置の構
成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.

【図3】 同画像処理装置におけるシステム制御部の構
成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a system control unit in the image processing apparatus.

【図4】 (a)はシステム制御部内部のRAMにおけ
るエラー情報テーブルを示す図であり、(b)はシステ
ム制御部内部におけるRAMのメモリマップを示す図で
あり、(c)はシステム制御部内部のRAMにおけるペ
ージ情報テーブルを示す図である。
4A is a diagram showing an error information table in a RAM inside the system control unit, FIG. 4B is a diagram showing a memory map of the RAM inside the system control unit, and FIG. FIG. 3 is a diagram showing a page information table in an internal RAM.

【図5】 エラー情報テーブルの一例を示す図である。FIG. 5 is a diagram illustrating an example of an error information table.

【図6】 同画像処理装置において、1ブロック分のコ
ードデータの書込動作を示すフローチャートである。
FIG. 6 is a flowchart illustrating an operation of writing one block of code data in the image processing apparatus.

【図7】 同画像処理装置において、1ブロック分のコ
ードデータの読出書込動作を示すフローチャートであ
る。
FIG. 7 is a flowchart showing an operation of reading and writing one block of code data in the image processing apparatus.

【図8】 エラーメッセージ画像の一例を示す図であ
る。
FIG. 8 is a diagram illustrating an example of an error message image.

【図9】 (a)および(b)は、ハードディスクの構
成を示す概念図である。
FIGS. 9A and 9B are conceptual diagrams showing a configuration of a hard disk.

【符号の説明】[Explanation of symbols]

1……画像入力装置(入力手段)、2……画像処理装
置、3……画像出力装置(出力手段)、104……操作
パネル(指示手段)、206……ハードディスク(記憶
手段)、208……システム制御部(エラー検出手段、
ページ認識手段)
DESCRIPTION OF SYMBOLS 1 ... Image input apparatus (input means), 2 ... Image processing apparatus, 3 ... Image output apparatus (output means), 104 ... Operation panel (instruction means), 206 ... Hard disk (storage means), 208 ... … System control unit (error detection means,
Page recognition means)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数ページからなる画像データを入力す
る入力手段と、 前記入力手段によって入力された画像データを記憶する
記憶手段と、 前記記憶手段に記憶された画像データを読み出して、当
該画像データに基づいて画像を出力する出力手段と、 前記記憶手段から画像データを読み出した際に、読出エ
ラーが発生したか否かを検知するエラー検知手段と、 読出エラーが検知された場合に、当該読出エラーが発生
したページを認識するページ認識手段と、 前記読出エラーが検知された場合に、画像データを再入
力するように指示する指示手段とを具備することを特徴
とする画像処理装置。
An input unit configured to input image data including a plurality of pages; a storage unit configured to store the image data input by the input unit; and reading out the image data stored in the storage unit. Output means for outputting an image based on the image data; error detection means for detecting whether or not a read error has occurred when reading the image data from the storage means; and reading when the read error has been detected. An image processing apparatus comprising: a page recognition unit that recognizes a page in which an error has occurred; and an instruction unit that instructs re-input of image data when the reading error is detected.
【請求項2】 前記読出エラーが検知された場合、前記
指示手段は、前記ページ認識手段により認識されたペー
ジを再入力するように指示することを特徴とする請求項
1記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein when the reading error is detected, the instruction unit instructs to re-input a page recognized by the page recognition unit.
【請求項3】 前記記憶手段は、再入力された前記複数
ページの画像データのうち、前記ページ認識手段で認識
されたページを選択して再記憶することを特徴とする請
求項1記載の画像処理装置。
3. The image according to claim 1, wherein the storage unit selects and re-stores the page recognized by the page recognition unit from the re-input image data of the plurality of pages. Processing equipment.
【請求項4】 前記読出エラーが検知された場合、前記
ページ認識手段により認識されたページにエラーが発生
した旨を報知する報知手段をさらに備えることを特徴と
する請求項1記載の画像処理装置。
4. The image processing apparatus according to claim 1, further comprising a notifying unit for notifying that an error has occurred in the page recognized by the page recognizing unit when the reading error is detected. .
【請求項5】 前記報知手段は、前記ページ認識手段に
よって認識されたページに対応させ、エラー識別用の用
紙を出力することにより、エラーが発生した旨を報知す
ることを特徴とする請求項4記載の画像処理装置。
5. The apparatus according to claim 4, wherein the notifying unit notifies the occurrence of the error by outputting an error identification sheet in correspondence with the page recognized by the page recognizing unit. The image processing apparatus according to any one of the preceding claims.
JP8166132A 1996-06-26 1996-06-26 Image processing unit Pending JPH1013593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8166132A JPH1013593A (en) 1996-06-26 1996-06-26 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8166132A JPH1013593A (en) 1996-06-26 1996-06-26 Image processing unit

Publications (1)

Publication Number Publication Date
JPH1013593A true JPH1013593A (en) 1998-01-16

Family

ID=15825635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8166132A Pending JPH1013593A (en) 1996-06-26 1996-06-26 Image processing unit

Country Status (1)

Country Link
JP (1) JPH1013593A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190379794A1 (en) * 2018-06-07 2019-12-12 Canon Kabushiki Kaisha Image forming apparatus, control method for the image forming apparatus, and storage medium
US10949145B2 (en) 2018-06-11 2021-03-16 Canon Kabushiki Kaisha Image formation apparatus having reading error and regenerating image data, control method of image formation apparatus, and storage medium
US11137951B2 (en) 2018-06-07 2021-10-05 Canon Kabushiki Kaisha Image forming apparatus, control method of image forming apparatus, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190379794A1 (en) * 2018-06-07 2019-12-12 Canon Kabushiki Kaisha Image forming apparatus, control method for the image forming apparatus, and storage medium
US10855863B2 (en) 2018-06-07 2020-12-01 Canon Kabushiki Kaisha Image forming apparatus to obtain image data from storage
US11137951B2 (en) 2018-06-07 2021-10-05 Canon Kabushiki Kaisha Image forming apparatus, control method of image forming apparatus, and program
US10949145B2 (en) 2018-06-11 2021-03-16 Canon Kabushiki Kaisha Image formation apparatus having reading error and regenerating image data, control method of image formation apparatus, and storage medium

Similar Documents

Publication Publication Date Title
JP3265697B2 (en) Image processing device
EP0510897B1 (en) Image processing method and apparatus
US5835691A (en) Image processing apparatus with detection of an overflow and underflow in a code buffer
JPH1013593A (en) Image processing unit
US5877864A (en) Image forming apparatus which determines if memory will overflow before reading an image to store in the memory
JP4099725B2 (en) Image forming apparatus
JP3376878B2 (en) Digital copier
US20040049608A1 (en) Apparatus and method for forming image
JP2003018376A (en) Image forming device
JPH10208031A (en) Image processor
JP3377136B2 (en) Image processing device
JP3480184B2 (en) Image processing device
JP2802106B2 (en) Output control device
JPH1065891A (en) Picture processor
JPH09219782A (en) Printing data generating device
JPH11313182A (en) Image forming device
JP3606014B2 (en) Image processing device
JPH0955835A (en) Image processor
JPH10187377A (en) Output device
JP3391226B2 (en) Image processing apparatus and control method thereof
JP2002027209A (en) Memory controller and controlling method thereof
JPH06292024A (en) Image forming system device
JPS63262712A (en) Information processor
JPH09238238A (en) Image forming device
JPH1065894A (en) Facsimile equipment