1. Field of the Invention
The present general inventive concept relates to an image forming apparatus and a method of copying a two-sided card thereof, and, more particularly, to an image forming apparatus and a method of copying two-sided cards such as bank cards, ID cards, business cards, courtesy cards and so on, with automatic alignment, rotation and layout of card images on a piece of paper.
2. Description of the Related Art
Conventional image forming apparatuses such as an MFP apparatus has been demonstrating the “ID copy” function. In this function, a user selects an “ID copy” mode, places one side of a card on a scanner glass which corresponds to an upper half of a piece of A4 paper, and presses a copy button. The image of the one side of the card is scanned and stored in an MFP memory. Next, the user places the other side of the card on the scanner glass, and presses the copy button again. The other side of the card is scanned as well. Next, the page is rendered from the two images of the card. Finally, the page is printed.
U.S. Publication No. 2006/0268361 by Marc Krolczyk (Xerox) describes a user interface of a system for copying a two-sided identification document and a corresponding method.
Japan patent application 2009/100102 by Ocada Mamoru describes an image forming apparatus which operates in the same method as the existing “ID copy” function in general. As additional improvements, several types of methods for aligning card side images on one page were proposed.
However, the existing “ID copy” function in an MFP has several drawbacks. First, images of card sides are copied without any deskewing and orientation. Thus, a result of a copy may be significantly skewed, which would make the copy look careless. Moreover, a user may accidently place card sides in opposite orientations (rotated by 180 degrees) or one side in landscape and the other side in portrait orientation (rotated by 90 or 270 degrees).
Existing copying devices allow only one layout: a first card side copied on an upper half of a page with portrait orientation and a second card side copied on a lower half of the page. Accordingly, it is not possible to copy a card of which the size is bigger than a half of the page with portrait orientation using the “ID copy” function. Duplex copying is not possible either using the “ID copy”.
Besides, a user may forget to place a front or back side of a card on the scanner and press the copy button. That is because there are no alerts for blank page copying.
Often only a part of the scanner glass corresponding to an upper half of a piece of A4 page is used for scanning in the “ID copy” mode. In this case, when a user places a card in the center of the scanner glass and copies the card, a clipped or deteriorated image of the card may be printed. Nevertheless, there are no alerts for such a user error either.
Furthermore, the “ID copy” function is not connected with such useful functions as “scan-to-FTP” and “scan-to-email”. Accordingly, it is not possible to store both sides of a card to a file without additional processing by means of software on a PC.
The aforementioned existing ID copy function is illustrated in
The present general inventive concept provides an image forming apparatus to adjust a layout of a two-sided card and to copy the two-sided card, and a method thereof.
Additional features and utilities of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present general inventive concept.
Exemplary embodiments of the present general inventive concept can provide a method of copying a two-sided card, the method including adjusting a layout for copying a two-sided card, scanning a front side of the two-sided card, deskewing the front side of the two-sided card scanned, detecting a direction of the front side of the two-sided card scanned; scanning a back side of the two-sided card, deskewing the back side of the two-sided card scanned, detecting a direction of the back side of the two-sided card scanned; building at least one page from the front and back side images of the two-sided card according to the adjusted layout, and outputting the at least one page or storing the at least one page to a file.
Herein, the adjusting a layout for copying a two-side card selects any one of the following layout versions: copying both sides of the card on a page with portrait orientation such that each side locates in a center of an upper portion and lower portion of the page; copying both sides of the card on a page with portrait orientation such that each side locates in an upper portion of the page, one under the other; copying both sides of the card on a page with portrait orientation such that each side locates in a center of the page, one next to the other; copying both sides of the card on a page with portrait orientation such that each side locates in an upper portion of the page, one next to the other; copying both sides of the card on a page with landscape orientation such that each side locates in a center of a left and right portion of the page; copying both sides of the card on a page with landscape orientation such that each side locates in a center of the page; one under the other; copying both sides of the card on a page with landscape orientation such that each side locates in a left portion of the page, one under the other; copying both sides of the card on a page with landscape orientation such that each side locates in a left portion of the page, one next to the other; copying both sides of the card on a page with portrait orientation such that each side locates in a center of the page, one overlapping with the other; copying both sides of the card on a page with portrait orientation such that each side locates in a center of an upper portion of the page, one overlapping with the other; copying both sides of the card on a page with landscape orientation such that each side locates in a center of the page, one overlapping with the other; and copying both sides of the card on a page with landscape orientation such that each side locates in a left portion of the page, one overlapping with the other.
The deskewing the front and back images of the two-sided card can include calculating coordinates of a bounding box of the scanned image, detecting a skew-angle of the scanned image, and if an absolute value of the skew-angle is 0.5° or more, rotating the scanned image by a minus skew-angle.
Exemplary embodiments of the present general inventive concept may also provide an image forming apparatus to copy a two-sided card, the image forming apparatus including a user interface unit to adjust a layout for copying both sides of a two-sided card, an image reading unit to read the both sides of the two-sided card and generates scanned images, a controlling unit to generate image data where the scanned images are laid out on at least one page according to the adjusted layout, and an output unit to output the image data generated by the controlling unit.
The controlling unit may deskew the scanned image, and detect an orientation of the scanned image.
The image forming apparatus may further include a storage unit to store the page built by the controlling unit.
Herein, the layout may be at least one of copying both sides of a two-sided card on a page with portrait orientation, copying both sides of a two-sided card on a page with landscape orientation, and duplex copying.
The controlling unit can calculate coordinates of a bounding box of the scanned image, detect a skew-angle of the scanned image, and when an absolute value of the detected skew-angle is 0.5° or more, can deskew the scanned image by rotating the scanned image by a minus skew-angle.
Exemplary embodiments of the present general inventive concept may also provide a method of copying a two-sided card, the method including adjusting a layout for copying both sides of a two-sided card, reading the both sides of the two-sided card to form scanned images, generating image data where the scanned images of the both sides of the two-sided card are laid out onto at least one page according to the adjusted layout, and outputting the generated page.
The method may include deskewing the scanned image, and detecting an orientation of the scanned image.
The method may also include storing the generated page.
The layout may be at least one of copying both sides of the card on a page with portrait orientation, copying both sides of the card on a page with landscape orientation, and duplex copying.
The deskewing may include calculating coordinates of a bounding box of the scanned image, detecting a skew-angle of the scanned image, and when an absolute value of the detected skew-angle is 0.5° or more, rotating the scanned images by a minus skew-angle.
According to exemplary embodiments of the present general inventive concept, the images may be deskewed and may be implemented in various forms including duplex copying. Both sides of the two-sided card may be stored to a file, and a blank page may be detected and clipping of an image may be detected during scanning. The exemplary embodiments of the present general inventive concept disclosed herein can reduce memory usage and computational complexity.
Exemplary embodiments of the present general inventive concept also provide a method of copying a two-sided card with an image forming apparatus having a scanner, the method including receiving a selection of a layout for copying both sides of the two-sided card with an input unit, scanning both sides of the two-sided card with the scanner to form images of the both sides of the two-sided card, and generating an output image to be output by the image forming apparatus by combining the formed images of the two-sided card according to the received selection of the layout.
The method may also include deskewing the scanned images of the both sides of the two-sided card with a processor of the image forming apparatus before the generating the output image.
The deskewing the scanned images in the method may include calculating coordinates of a bounding box of the scanned images, detecting a skew-angle of the scanned images, and when an absolute value of the detected skew-angle is 0.5° or more, deskewing the scanned images by rotating them by a minus skew-angle.
Exemplary embodiments of the present general inventive concept also provide an image forming apparatus to copy a two-sided card, the image forming apparatus including an input unit to receive a selection of a layout to copy both sides of the two-sided card, a scanner to scan both sides of the two-sided card to form images of the both sides of the two-sided card, and a processor to generate an output image to be output by the image forming apparatus by combining the scanned images of the two-sided card according to the received selection of the layout.
The processor of the image forming apparatus can deskew the scanned images.
The processor of the mage forming apparatus can calculate coordinates of a bounding box of the scanned images, detect a skew-angle of the scanned images, and when an absolute value of the detected skew-angle is 0.5° or more, the processor can deskew the scanned images by rotating them by a minus skew-angle.
These and/or other features and utilities of the present general inventive concept will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
Reference will now be made in detail to the embodiments of the present general inventive concept, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present general inventive concept by referring to the figures.
That is,
According to
Layout versions, such as those illustrated in
Referring again to
The scanning operation 305, deskewing operation 306, and direction detecting operation 307 can be performed on a back side of the two-sided card as well. Operations 305, 306, and 307 may be similar to and or the same as operations 302, 303, and 304, respectively, but they are performed on the back side of the two-sided card, rather than the front side of the two-sided card.
One or more pages from both side images (e.g., the scanned front side image and the back side image) can be formed by duplex copying at operation 308. Scanned images can be rotated according to an adjusted layout (e.g., where the layout may be adjusted according to the selected adjusted layout at operation 301) and detected orientation. That is, the adjusted layout may include the placement of the front side and back side images on a page relative to one another, the orientation of the page (e.g., portrait or landscape orientation), and/or any other suitable layout selections to carry out the exemplary embodiments of the present general inventive concept.
One or more pages can be output (e.g., output to printer 503 illustrated in
The image forming system 500 illustrated in
The Central Processing Unit (CPU) 501 can control a scanner 502, a printer 503, a user interface 504, RAM (random access memory) 505, ROM (read only memory) 506, HDD (hard disk drive) 507, and data bus 508 of the image forming system 500. The CPU 501 can be a processor, a filed programmable gate array, a programmable logic device, an application specific integrated circuit, a controller, and/or any other suitable device to carry out the exemplary embodiments of the present general inventive concept. Both sides of a card can be scanned by a scanner 502. Generated image pages that may be formed from the scanner 502 can be output to a duplex printer 503 to be printed. Printer 503 may be a laser printer, an inkjet printer, a thermal printer, and/or any other suitable printer to carry out the exemplary embodiments of the present general inventive concept. A user interface module 54 can receive input to adjust a layout. The user interface module 54 may be a touch-screen display, or may include a display on a display device, where a keyboard, keypad, and/or input device may receive input of an adjustment selection to adjust a layout.
The scanned images and rendered pages can be stored in the RAM 505 of the image forming system 500. The CPU 501 may form one or more pages by executing program codes stored in the ROM 506 and/or HDD 507, but can also deskew and detect directions of card images.
The hard disk drive (HDD) 507 can store the one or more rendered to at least one file. In exemplary embodiments of the present general inventive concept, the HDD 507 can be a hard disk drive, a solid state drive, or any other suitable non-volatile memory. The image forming system can include the data bus 508 to transmit data between the modules of the system (e.g., between the scanner 502, the printer 503, the user interface 504, the RAM (random access memory) 505, the ROM (read only memory) 506, the HDD (hard disk drive) 507, and the CPU 501).
The method illustrated in
At operation 701, projections on horizontal and vertical axes can be determined (e.g., by CPU 501 illustrated in
where BW is a binary image (i.e., a thresholding result); r and c are coordinates of image pixels, where r is the row index and c is the column index; R, G, B are color channels of the image; Ph is a projection of the binary image BW on a horizontal axis; Nr is the number of rows in an image; Nc is the number of columns in an image; Pv is a projection of the binary image BW on a vertical axis; Nr is a number of rows in the image; Nc is a number of columns; and T is a predetermined threshold.
The projections can be filtered by a minimal (erosion) filter with structure element (aperture and/or filter mask) [1 1 1 1 1] at operation 702. Alternatively, the structure element (aperture and/or filter mask) may be 1 1 1 1 or 1 1 1 1 1. For example, the projections may be filtered as follows, where Phf is a filtered projection of the binary image on the horizontal axis, and Pvf is a filtered projection of the binary image on the vertical axis:
Phf(c)=min(Ph(c−2),Ph(c−1),Ph(c),Ph(c+1),Ph(c+2)),
Pvf(r)=min(Pv(r−2),Pv(r−1),Pv(r−1),Pv(r),Pv(r+1),Pv(r+2))
At operation 703, bounding box coordinates rmin, rmax and cmin, cmax as leftmost and rightmost positions where a magnitude of filtered projection can be greater than the predetermined threshold for vertical and horizontal projections. The bounding box (i.e., bounding rectangle) coordinates cmin and rmax may be coordinates of the left-top corner of the bounding box, and cmax and rmax may be the coordinates of the right-bottom corner of the bounding box. The coordinates of the bounding box rmin, rmax and cmin, cmax may be computed, calculated, and/or determined as extreme left and extreme right positions, in which the value of the filtered projection can be more than (i.e., greater than) a predetermined threshold for projections on the vertical and horizontal axes accordingly. The bounding box coordinates rmin, rmax and cmin, cmax can be correspondingly calculated (e.g., by CPU 501 illustrated in
Operation 704 can determine whether or not there is a blank page. When rmin>rmax or cmin>cmax, a blank page can be detected and an alert for a user can be generated at operation 705.
To decrease memory usage, a part of the scanner glass (e.g., a platen of scanner 502 illustrated in
The exemplary embodiments of the present general inventive concept can be applied to a plurality of types of card images and can provide increased accuracy in estimating skew-angles. At operation 801, a bounding box can be extended. According to exemplary embodiments of the present general inventive concept, the extended bounding box may be determined as follows:
dc=(cmax−cmin)/4,dr=(rmax−rmin)/4,
ce
min=max(1,cmin−dc),cemax=min(Nc,cmax+dc),
re
min=max(1,rmin−dr),remax=min(Nr,rmax+dr).
where r and c are coordinates of image pixels, dc is an average change from a maximum value to a minimum value of the coordinate c, dr is an average change from a maximum value to a minimum value of the coordinate r, Nc is the number of columns in the image, the bounding box coordinates cmin and rmin may be coordinates of the left-top corner of the bounding box, cmax and rmax may be the coordinates of the right-bottom corner of the bounding box, cemin and remin are coordinates of a left-top corner of an expanded bounding box (i.e., bounding rectangle), cemax and remax are coordinates of a right-bottom corner of the expanded bounding box, and Nr is the number of rows in an image. Operation 801 can determine the presence of an image of a card side (e.g., an entire image of a card side) inside a bounding box. At operation 802, for each column, a distance from a top and bottom to a nearest foreground pixel of the extended bounding box can be calculated, and the distances can be stored to distance arrays as follows, where Dt and Db are arrays of distances from the top and bottom of the bounding box corresponding up to the nearest pixel of binary image inside of an extended bounding box (i.e., extended bounding rectangle), and c is a column index and r is a row index:
where cε[cemin, cemax]. That is, cemin is the left-top corner column coordinate (i.e., column coordinate c of an image pixel) of the expanded bounding box, cemax is the right bottom corner column coordinate (i.e., column coordinate c of an image pixel) of the expanded bounding box, where cemin and cemax represent the linear span of the column coordinate c (i.e., cε[cemin, cemax]).
As discussed below, the determined distance arrays can be filtered by a minimal filter. At operation 803, the distance arrays can be filtered with structure element (aperture and/or filter mask) [1 1 1 1 1] by a minimal (erosion) filter. Alternatively, the structure element (aperture and/or filter mask) may be 1 1 1 1 1. The filtration of the distance arrays may be determined as follows, where Dtf and Btf are filtered arrays of distances from the top and bottom of the bounding box correspondingly up to the nearest pixel of the binary image inside the extended bounding box:
Dtf(c)=min(Dt(c−4), . . . ,Dt(c), . . . ,Dt(c+4))
Dbf(c)=min(Db(c−4), . . . ,Db(c), . . . ,Db(c+4))
At operation 804, derivatives of the distance arrays can be calculated formulas as follows:
dDtf(c)=Dtf(c+4)−Dtf(c−4)
dDbf(c)=Dbf(c+4)−Dbf(c−4)
At operation 805, the distances ranges on the distance arrays can be selected as follows:
where {st1} and {sb1} are coordinates of a beginning of the straight ranges on the distance arrays from the top and bottom of the bounding box correspondingly, {st1} and {sb2} are coordinates of an ending of the straight ranges on the distance arrays from the top and bottom of bounding box correspondingly, and Nt and Nb are numbers of the straight ranges on the distance arrays from the top and bottom of bounding box correspondingly (e.g., Nt and Nb are numbers of such sites for arrays of distances from the top and bottom of the bounding box).
At operation 806, angles of one or more straight ranges can be calculated as follows:
where {dx} is an array of adjacent cathetus, {dy} is an array of opposite cathetus, and {α} is an array of angles.
At operation 807, skew-angles from the array of angles can be estimated, where skew-angle φ is a weighted average of angles which differ from φ on variance δ less than 1 according to the following iterative method. An initial estimation of weighted average of angles φ and variance δ can be determined as follows:
Herein, if δ>25, positive and negative angles can be estimated, which may be about 45 and −45 degrees, where by is a function to indicate a predetermined large positive angle, bn is a function to indicate a large negative angle, qap is a number (i.e., plurality) of predetermined large positive angles, qan is a number (i.e., plurality) of big negative angles, sap is a sum of predetermined large positive angles; qan is the sum of the predetermined large negative angles, and san is the sum of the predetermined large negative angles, as follows:
If qap>0 and qan>0, δ=0, then δ=0, and if sap>san, then φ=sap/qap, or else φ=sap/qan.
In the iterative method as described in part above, iterations can be continued while variance δ>1. If (α(n)<φ−δ) or (α(n)<φ+δ), then α(n) and dx(n) can be excluded from one or more arrays, and estimation of weighted average of angles φ and variance δ can be determined as follows:
Image rotation is a well-known procedure. Generally, for a rotation about angle φ, the following transformation matrix can be used:
However, when performing image rotation using the transformation matrix, an additional memory buffer to store at least a part of the rotated image may be used (e.g., the image forming apparatus 100 of
One or more interpolation algorithms can be applied during rotation. For example, applying a bilinear interpolation may provide increased image quality and processing speed.
In detecting an orientation of a card, directions of ciphers (Arabic digits) can be detected. Identification (ID) cards, credit cards, and/or business cards can typically have one or more ciphers. Although digits ‘6’, ‘9’ and ‘8’ can be examples of rotation invariant ciphers for a 180 degrees rotation (i.e., ‘6’ and ‘9’ may be indistinguishable from one another when rotated 180 degrees, and ‘8’ may appear the same when it is rotated), ciphers such as ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘7’ can be used to detect an orientation. That is, an orientation of ciphers such as ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘7’ have a common usage orientation (e.g., where the usage orientation of these ciphers may be preset), any other orientation of these ciphers that is different from the common usage orientation may be used to detect a degree of rotation or skew from the common usage orientation). Typical problems in ciphers detection can include, for example: cards having a complex color background (e.g., multi-colored background, or a background which obscures the identification of a cipher); ciphers that may have an arbitrary color, where the cypher can be dark on a light background or the cipher can be light on a dark background; or typefaces for different ciphers on the same card can differ. For digits segmentation on a complex background (e.g., a background having a plurality of colors), labeling of connected edge regions can be used, where edge pixels can be labeled for dark ciphers on a light background and edge pixels can be labeled for light ciphers on a dark background. In exemplary embodiments of the present general inventive concept, a decision tree with a generalization can categorize and/or recognize digits, characters, and/or ciphers, so as to recognize a plurality of typefaces.
The exemplary method illustrated in
That is, an image brightness channel (that may be calculated as described below) of a scanned image of a front side of a card and/or a back side of a card can be filtered using a predetermined filter level (e.g., the pixels and/or values in the image brightness channel that are above a predetermined level pass through the filter, and those that are equal to or less than the predetermined level are retained by the filter). The values and/or pixels of the image brightness channel may be convolved with the exemplary matrix kernel above, or with any other suitable kernel to carry out the exemplary embodiments of the present general inventive concept.
A brightness channel can be calculated as (R(r,c)+G(r,c)+B(r,c))/3, where R is a red channel, G is a green channel, and B is a blue channel, and r and c are coordinates of the image pixel.
At operation 902, connected regions (e.g., regions of pixels that are adjacent to one another in an image) can be labeled for pixels of a filtered image which are greater than predetermined threshold T1, where the pixels can correspond to inner edges of dark symbols on a light background. At operation 903, connected regions can be labeled for pixels of a filtered image which are less than predetermined threshold −T1, where the pixels correspond to inner edges of light symbols on a dark background. For each connected region from both labeled images, at least one bounding box is calculated, and regions with appropriate and/or predetermined bounding box size can be selected at operation 904. For example, supposing F is a binary image of a connected region, Mr×Mc is a size of the image F, where Mr is the number of rows (i.e., height) and Mc is the number of columns (i.e., width), and r and c are coordinate values of pixels in an image. In exemplary embodiments of the present general inventive concept, a 300 dpi scanning resolution criteria for selection of appropriate regions is as follows: Mr>=14 and Mc>=14 and Mr<=70 and Mc<=70 and (Mr/Mc>1.2 or Mc/Mr>1.2).
For each connected region, recognition of at least ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘7’ ciphers for four exemplary orientations 0°, 90°, 180°, and 270° of the region and calculation of the number of recognized regions for each orientation can be determined at operation 905. At operation 906, a card image orientation Ω according to the numbers of recognized regions for each orientation can be determined as follows:
where N1(i), N2(i), N3(i), N4(i), N5(i) and N7(i) are numbers of recognized regions as ciphers ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘7’ accordingly for orientation i. N1(i) and N7(i) can be summed with an exemplary attenuation coefficient of 0.5 because probability of false positive error can be greater for ‘1’ and ‘7’ in comparison with other digits. Detection of a plurality of digits can indicate orientation with increased probability because the sum of recognized regions for each digit can be multiplied according to the quantity of recognized ciphers.
To minimize memory usage and to provide a time-effective implementation, a two-pass labeling scheme may be used according to exemplary embodiments of the present general inventive concept, where a first pass can include calculating a bounding box of connected regions for dark and light symbols separately, and a second pass can label regions according to a size of a bounding box and can label recognized ciphers for the regions one by one (e.g., each recognized cipher of a region can be labeled).
In exemplary embodiments of the present general inventive concept, to recognize a ‘1’ cipher, the following features can be calculated:
Using the above calculations, if the following inequalities (i.e., rule) are determined to be true, connected region F corresponds to the cipher ‘1’: f11>=2 and f11<=3.5 and f12>=0.7 and f13=0 and f14=0 and f15>=4.
In exemplary embodiments of the present general inventive concept, to recognize a ‘2’ cipher, the following features can be calculated:
Using the calculations above, if the following inequalities are determined to be true, connected region F corresponds to the cipher ‘2’: f21>=1.1 and f21<=2.2 and f22>=0.65 and f23=0 and f24=0 and f25>0.65 and f26>0.55 and f27=0.
In exemplary embodiments of the present general inventive concept, to recognize a ‘3’ cipher, the following features are calculated:
Using the above calculations, if the following inequalities are determined to be true, connected region F corresponds to the cipher ‘3’: f31>1 and f31<2 and f32>=0.6 and f33>=0.7 and f34>0.65 and f35>=0.5 and f36>0 and f36<0.5 and f37>0.2 and f37<0.65 and f38<=1 and f39<0.35 and f310<=1 and f311<0.35 and f312<0.35 and f313>0.3 and f314>0.35 and f315>0.
In exemplary embodiments of the present general inventive concept, to recognize a ‘4’ cipher, the following features are calculated:
Using the above calculations, if the following inequalities are determined to be true, connected region F corresponds to the cipher ‘4’: f41>=1 and f41<=2.5 and f42=0 and f43=0 and f44>0.65 and f45>=0.8 and f47>0.2 and f47<0.6 and f48<=0.2.
In exemplary embodiments of the present general inventive concept, to recognize a ‘5’ cipher, the following features are calculated:
Using the above calculations, the following inequalities are true, connected region F corresponds to ‘5’: f51>=1.2 and f51<=2.1 and f52>0.7 and f53>=0.6 and f54>=0.5 and f55>0.3 and f56<0.7 and f57=0.
In exemplary embodiments of the present general inventive concept, to recognize a ‘7’ cipher, the following features are calculated:
Using the calculations above, if the following inequalities are true, connected region F corresponds to ‘7’: f71>=1 and f71<=2.2 and f72>=0.65 and f73<=0.4 and f74>=0.3 and f75<=0.4 and f76>0.
As illustrated in
The image forming apparatus 100 may be connected to an external device (e.g., a host device, a computer, a server, a storage device, etc.), and can output document data. The image forming apparatus 100 may have at least two functions of a printer, scanner, copier, and facsimile.
The user interface unit 110 can include a plurality of function keys with which a user may set or select one or more functions that the image forming apparatus 100 supports, and can display and/or indicate information that the image forming apparatus 100 provides. That is, the user interface unit 110 can receive selections, and may display information related to the available and/or selected functions. The user interface unit 110 may be a device which has both the input and output functions such as a touch pad, or may be a device where a mouse (or any other suitable device to receive input, such as a keyboard and/or keypad) and monitor are combined. The user may select one or more selectable options displayed in a user interface window provided through the user interface unit 110, to select a layout for copying a two-sided card. More specifically, the user interface unit 110 may provide at least one layout of copying both sides on a page with a portrait orientation, copying both sides on a page with a landscape orientation, and duplex copying.
The image reading unit 120 can read a front and back side of a two-sided card using an image sensor. More specifically, the image reading unit 120 may be a scanning unit to perform a scanning operation.
The scanning unit (i.e., the image reading unit 120) can perform a scanning operation according to a control signal and/or command from a controlling unit 130 which will be explained below. The scanning unit (i.e., the image reading unit 120) includes an image sensor unit (not illustrated), a motor unit (not illustrated), a location sensor unit (not illustrated), and a scan controlling unit (not illustrated).
The image sensor unit (not illustrated) can include a CIS sensor (not illustrated) to sense an image and obtains at least one RGB pixel value corresponding to the image. The image sensor unit can transmit a sensed RGB pixel value which will be explained below to the scan controlling unit (not illustrated).
The motor unit (not illustrated) can convey a page in a scan proceeding direction so as to sense the RG pixel value corresponding to the image in a line unit.
The location sensing unit (not illustrated) can detect a location of a page input to the image forming apparatus 100, and can transmit it to the scan controlling unit (not illustrated). The scan controlling unit (not illustrated) can control the image sensing unit (not illustrated), the motor unit (not illustrated), and the location sensing unit (not illustrated) so as to perform a scan operation according to a scan command received from the controlling unit 130 which will be described below. That is, the scan controlling unit (not illustrated) may combine the RGB pixel value sensed through the image sensing unit (not illustrated), such that the image data which corresponds to the image of the two-sided card can be generated.
The controlling unit 130 can control operations of each configurative element of the image forming apparatus 100 according to each prestored program. That is, the controlling unit 130 can control the operation of the user interface unit 110, the image reading unit 120, the output unit 140, the communication interface unit 150, and the storage unit 160. The controlling unit 130 can be central processing unit, a field programmable gate array, a programmable logic unit, a processor, an application specific integrated circuit, and/or any other suitable device to carry out the exemplary embodiments of the present general inventive concept as disclosed herein.
The controlling unit 130 can generate image data where a scanned image (e.g., an image scanned by the image reading unit 120) is laid out on at least one page according to a layout adjusted through the user interface unit 110.
The controlling unit 130 may deskew the scanned image, and detect and/or determine a direction of the scanned image.
More specifically, the controlling unit 130 may calculate coordinates of a bounding box of the scanned image, detect a skew-angle of the scanned image, and if an absolute value of the detected skew angle is 0.5° or more, may deskew the scanned image by a minus skew angle.
The output unit 140 outputs a page built (e.g., generated) by the controlling unit 130.
More specifically, the output unit 140 can print the data scanned at the image reading unit 120 according to the control by the controlling unit 130 and outputs it. For example, when the image forming apparatus 100 includes a laser printing unit, an OPC (organic photoconductor, not illustrated) surface can be electrically charged by an electrifying unit (not illustrated), and a latent image can be formed on the electrified region by an LSU (laser scanning unit—not illustrated). Herein, if a development is achieved by a developing unit (not illustrated), a toner is attached to the latent image, and thus is transferred to a page by a transfer unit (not illustrated). The transfer toner is settled on the page by a settling unit (not illustrated). However, this is only an exemplary embodiment, and it is obvious to those skilled in the art that the image forming apparatus can be applied to an inkjet output unit as well.
The communication interface unit 150 can be connected to a terminal device (not illustrated) such as a PC (personal computer), a server, a storage device, a laptop PC, a PDA, and a digital camera. More specifically, the communication unit 150 can connect to the image forming apparatus 100 to an external device. In exemplary embodiments of the present general inventive concept, the communication unit 150 can be connected to a terminal device through a Local Area Network (LAN), the Internet, and/or through a Universal Serial Bus (USB) port. The communication interface unit 150 may receive input of a printing job through the terminal device (not illustrated), and may also receive a printing operation of a corresponding printing job.
The storage unit 160 can store image data of at least one page generated by the controlling unit 130 and/or that is scanned by the image reading unit 120.
The storage unit 160 may temporarily store the print job received from the communication interface unit 150.
Herein, the storage unit 160 may be a storage medium that is, for example, a USB memory, a hard disk drive, a solid state drive, a removable disk, a storage medium connected to a host, or a web server communicatively coupled to the image forming apparatus 100 via a network.
As illustrated in
At operation 1120, the both sides of the two-sided card can be read to form scanned images of the both sides.
The image data where the images scanned at operation 1120 according to the layout adjusted at step 1110 can be generated on at least one page.
The page generated at operation 1130 can be output at operation 1140.
The image scanned at operation 1120 may be deskewed. In exemplary embodiments of the present general inventive concept, a direction of the deskewed scanned image may be detected (e.g., by the controlling unit 130 illustrated in
The deskewing may include calculating coordinates of a bounding box of the scanned image, detecting a skew-angle of the scanned image, and when an absolute value of the detected skew-angle is 0.5° or more, rotating the scanned image by a minus skew-angle.
As aforementioned, since the exemplary embodiments of the present general inventive concept include deskewing the front and back side images of the two-sided card, detecting the direction of the front and back side images of the two-sided card, laying out both sides of the two-sided card on a page according to an adjusted layout including duplex copying, and storing at least one page where both sides of the two-sided card are rendered to a file. Thus, it is possible to copy the two-sided card using one or more of a plurality of methods. As explanation of a method of copying a two-sided card would overlap with the description of
The deskewing method of the exemplary embodiments of the present general inventive concept can detect a blank page and detect an image clipping during scanning. An orientation detection method according to exemplary embodiments of the present is based on a recognition of ciphers (e.g., Arabic digits) using a decision tree. This decision tree has an increased capacity of generalization so as to increase the recognition and orientation of ciphers.
The method according to the exemplary embodiments of the present general inventive concept may be performed by firmware of an image forming apparatus, a color MFP (multi-function peripheral), and/or a digital copier. The exemplary embodiments of the present general inventive concept can also be used in scanning software that is executed by the image forming apparatus and/or by a computer or other device coupled to the image forming apparatus.
Although several embodiments of the present general inventive concept have been illustrated and described, it will be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the general inventive concept, the scope of which is defined in the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2009146134 | Dec 2009 | RU | national |
10-2010-0042434 | May 2010 | KR | national |
This is a continuation application of U.S. application Ser. No. 12/966,231, filed Dec. 13, 2013, which claims priority under 35 U.S.C. §119(a) from Korean Patent Application No. 2010-0042434, filed on May 6, 2010 in the Korean Intellectual Property Office and Russia Patent Application No. 2009146134, filed on Dec. 14, 2009 in the Russia Intellectual Property Office, the contents of which are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 12966231 | Dec 2010 | US |
Child | 13942958 | US |