# US 7,486,422 B2 · Method and apparatus for automatic film recognition

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 7,486,422 B2
- Document ID: US7486422B2
- Status: Granted
- Kind: B2
- Application number: 10/935,529
- Filed: 2004-09-07
- Published: 2005-03-24
- Granted: 2009-02-03
- Earliest claimed: 2003-09-09
- Assignees: Qisda Corporation
- Inventors: Xian-Qiang Guo
- Web page: https://patentgrep.com/patent/US7486422B2

## CPC

- H04N 1/00816: {Determining the reading area, e.g. eliminating reading of margins}
- G03B 27/53: Automatic registration or positioning of originals with respect to each other or the photosensitive layer
- G03D 15/046: {Automatic cutting}
- G06T 7/90: Determination of colour characteristics
- G06V 10/56: relating to colour
- H04N 1/00795: {Reading arrangements (details of scanning heads H04N1/024; scanning arrangements therefor H04N1/04)}
- G06T 2207/10008: from scanner, fax or copier
- H04N 2201/0408: Scanning film strips or rolls
- H04N 2201/0416: Performing a pre-scan
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G03B: APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR (optical parts of such apparatus G02B; photosensitive materials or processes for photographic purposes G03C; apparatus for processing exposed photographic materials G03D)
- G03D: APPARATUS FOR PROCESSING EXPOSED PHOTOGRAPHIC MATERIALS (apparatus specially adapted for photomechanical production of textured or patterned surfaces G03F); ACCESSORIES THEREFOR (photosensitive materials or processes for photographic purposes G03C; electrographic, electrophotographic, or magnetographic methods or apparatus G03G)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods and systems for recognizing a film in a scanner are provided. First, the film is previewed by the scanner to obtain an original preview image. The original preview image comprises a film image corresponding to the film. The original preview image also comprises pixels and each pixel has a first hue value, a second hue value, and a third hue value. The pixels with luminance in a predetermined range are then selected from the original preview image to acquire a second preview image. Next, the second preview image is framed according to the first hue values of the pixels to obtain an image frame. Finally, the image frame is sectioned to recognize the film image.

## Claims

### Claim 1

An automatic film recognition method for recognizing a film in a scanner, comprising the steps of:
(a) previewing the film using the scanner to obtain an original preview image comprising a film image corresponding to the film, wherein the original preview image comprises pixels and each pixel has a first hue value, a second hue value, and a third hue value;
(b) selecting the pixels with luminance in a predetermined range from the original preview image to acquire a second preview image;
(c) framing the second preview image according to the first hue values of the pixels to obtain an image frame; and
(d) sectioning the image frame to recognize the film image.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein the step (b) further comprises the steps of:
(b1) designating the number of pixels as a pixel aggregate number;
(b2) calculating a first hue value minimum and a first hue value maximum according to the pixel aggregate number and the first hue values of the pixels;
(b3) reading the first hue values of the pixels; and
(b4) producing a first mapping table according to the read first hue values of the pixels to acquire the second preview image.

### Claim 3 (depends on 2)

The method as claimed in claim 2, wherein the step (b1) further selects the pixels with first hue values within a range, wherein the range is determined according to a transparent character of the film.

### Claim 4 (depends on 2)

The method as claimed in claim 2, wherein the step (b2) further comprises the steps of:
(b21) composing a statistical chart based on the first hue values of the pixels;
(b22) designating a noise proportion; and
(b23) accumulating the first hue values of the pixels according to the statistical chart and the noise proportion to acquire the first hue value minimum and the first hue value maximum.

### Claim 5 (depends on 2)

The method as claimed in claim 2, wherein the step (b4) further comprises the steps of:
(b41) recording the first hue values to corresponding positions of the pixels in the first mapping table if the first hue values are within the first hue value minimum and the first hue value maximum;
(b42) recording zeros to corresponding positions of the pixels in the first mapping table if the first hue values are less than the first hue value minimum or larger than the first hue value maximum; and
(b43) displaying the film image according to the first mapping table to acquire the second preview image, wherein the positions of recorded zeros are displayed in black.

### Claim 6 (depends on 5)

The method as claimed in claim 5, wherein the step (b41) further records the first, the second, and the third hue values to corresponding pixel positions in a second mapping table if the read first hue values are within the first hue value minimum and the first hue value maximum, and the step (b42) further records zeros to corresponding pixel positions in the second mapping table as the first, the second, and the third hue values of the pixels if the first hue values are less than the first hue value minimum or larger than the first hue value maximum.

### Claim 7 (depends on 6)

The method as claimed in claim 6, wherein the second mapping table is stored in a two-dimensional storage space.

### Claim 8 (depends on 6)

The method as claimed in claim 6, wherein the first hue values of the pixels are red hue values.

### Claim 9 (depends on 2)

The method as claimed in claim 2, wherein the first mapping table is stored in a two-dimensional storage space.

### Claim 10 (depends on 1)

The method as claimed in claim 1, wherein the step (c) further comprises the steps of:
(c1) comparing each pixel with surrounding pixels according to the first, the second, and the third hue values;
(c2) marking each pixel according to the comparison; and
(c3) searching the second preview image according to the marks to obtain the image frame.

### Claim 11 (depends on 10)

The method as claimed in claim 10, wherein the search in step (c3) is a Breadth-First Search.

### Claim 12 (depends on 1)

The method as claimed in claim 1, wherein when the film is a negative film, the image frame obtained in step (c) is sized with an image width W and an image length L and comprises a film frame and a saw-toothed frame, wherein the film frame comprises a first negative film image, a second negative film image, and an interval, wherein the step (d) further comprises the steps of:
(d11) calculating a standard width W1 and a standard length H1 of each negative film image, and calculating an interval width S of the interval according to the film size and a preview resolution of the scanner, wherein W1<H1;
(d12) determining a placement direction of each negative film image in the image frame according to the image width W and the image length L;
(d13) determining an area comprising the film frame according to the placement direction, the standard width W1, and the first hue values of the pixels in the image frame; and
(d14) recognizing the first and the second negative film images in the film frame according to the standard width W1, the standard length H1, the interval width S, and the first hue values of the pixels of the film frame.

### Claim 13 (depends on 12)

The method as claimed in claim 12, wherein the step (d14) further deletes an area of the film frame with an average first hue value out of a predetermined range.

### Claim 14 (depends on 12)

The method as claimed in claim 12, wherein if the placement direction is widthways, the step (d13) further composes a template conforming to the standard width W1 and the image Length L and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine the area comprising the film frame.

### Claim 15 (depends on 12)

The method as claimed in claim 12, wherein the step (d14) further comprises the steps of:
(d141) when L<=((H1+S)+2×S), the film frame comprising a first negative film image, composing a template conforming to the standard width W1 and the standard length H1 and moving the template in the film frame until the sum of the first hue values of the pixels reaches a maximum to determine the first negative file image; and
(d142) when L>((H1+S)+2×S), the film frame comprising the first film image, the second negative film image, and the interval, composing a template conforming to the standard width W1 and the interval width S and moving the template in the film frame until the sum of the first hue values of the pixels reaches a minimum to determine the first negative film image and the second negative film image.

### Claim 16 (depends on 1)

The method as claimed in claim 1, when the film is a positive film, the image frame obtained in step (c) is sized with a frame width W and a frame length H, and comprises a positive film image and a space around the image, wherein the step (d) further comprises the steps of:
(d21) calculating a standard width W2 and a standard length H2 of the positive film image according to the film size and a preview resolution of the scanner, wherein W2<H2;
(d22) determining a placement direction of the positive film image in the image frame according to the frame width W, the frame length H, the standard width W2, the standard length H2, and the first hue values of the pixels; and
(d23) recognizing the positive film image in the film frame according to the placement direction, the standard width W2, and the first hue values of the pixels in the image frame.

### Claim 17 (depends on 16)

The method as claimed in claim 16, wherein the step (d23) further deletes an area of the film frame with an average first hue value of the pixels out of a predetermined range.

### Claim 18 (depends on 16)

The method as claimed in claim 16, wherein the step (d22) further comprises the steps of:
(d221) composing a template conforming to the standard width W2 and the frame length H and moving the template in the image frame until the sum of the first hue values of the pixels reaches a maximum;
(d222) accumulating the first hue values of the pixels in the image frame as a first sum value;
(d223) composing a template conforming to the standard width W2 and the frame width W and moving the template in the image frame until the sum of the first hue values of the pixels reaches a maximum;
(d224) accumulating the first hue values of the pixels in the image frame as a second sum value; and
(d225) determining the placement direction, as lengthwise if the first sum value is larger than the second sum value, if not, widthways.

### Claim 19 (depends on 18)

The method as claimed in claim 18, if the placement direction is lengthwise, the step (d23) further composes a template conforming to the standard width W2 and the frame length H and moves the template in the image frame in the widthways direction until the sum of the first hue values of the pixels reaches a maximum to determine a left margin and a right margin for recognizing the positive film image.

### Claim 20 (depends on 19)

The method as claimed in claim 19, if the placement direction is lengthwise, the step (d23) further composes a template conforming to the standard width W2 and the standard length H2 and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine a top margin and a bottom margin for recognizing the positive film image.

### Claim 21 (depends on 18)

The method as claimed in claim 18, if the placement direction is widthways, the step (d23) further composes a template conforming to the standard width W2 and the frame width W and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine a top margin and a bottom margin for recognizing the positive film image.

### Claim 22 (depends on 21)

The method as claimed in claim 21, if the placement direction is widthways, the step (d23) further composes a template conforming to the standard width W2 and the standard length H2 and moves the template in the image frame in the widthways direction until the sum of the first hue values of the pixels reaches a maximum to determine a left margin and a right margin for recognizing the positive film image.

### Claim 23

A machine-readable storage medium for storing, a computer program providing an automatic film recognition method for recognizing a film in a scanner, the method comprising the steps of:
(a) previewing the film using the scanner to obtain an original preview image comprising a film image corresponding to the film, wherein the original preview image comprises a plurality of pixels and each pixel has a first hue value, a second hue value, and a third hue value;
(b) selecting the pixels with luminance in a predetermined range from the original preview image to acquire a second preview image;
(c) framing the second preview image according to the first hue values of the pixels to obtain an image frame; and
(d) sectioning the image frame to recognize the film image.

### Claim 24 (depends on 23)

The machine-readable storage medium as claimed in claim 23, wherein the step (b) further comprises the step of:
(b1) designating the number of the pixels as a pixel aggregate number;
(b2) calculating a first hue value minimum and a first hue value maximum according to the pixel aggregate number and the first hue values of the pixels;
(b3) reading the first hue values of the pixels individually; and
(b4) producing a first mapping table according to the read first hue values of the pixels to acquire the second preview image.

### Claim 25 (depends on 24)

The machine-readable storage medium as claimed in claim 24, wherein the step (b1) further selects the pixels with first hue values within a range, wherein the range is determined according to a transparent character of the film.

### Claim 26 (depends on 24)

The machine-readable storage medium as claimed in claim 24, wherein the step (b2) further comprises the steps of:
(b21) composing a statistical chart based on the first hue values of the pixels;
(b22) designating a noise proportion; and
(b23) accumulating the first hue values of the pixels according to the statistical chart and the noise proportion to acquire the first hue value minimum and the first hue value maximum.

### Claim 27 (depends on 24)

The machine-readable storage medium as claimed in claim 24, wherein the step (b4) further comprises the steps of:
(b41) recording the first hue values to corresponding positions of the pixels in the first mapping table if the first hue values are within the first hue value minimum and the first hue value maximum;
(b42) recording zeros to corresponding positions of the pixels in the first mapping table if the first hue values are less than the first hue value minimum or larger than the first hue value maximum; and
(b43) displaying the film image according to the first mapping table to acquire the second preview image, wherein the positions recorded zeros are displayed in black.

### Claim 28 (depends on 27)

The machine-readable storage medium as claimed in claim 27, wherein the step (b41) further records the first, the second, and the third hue values to corresponding positions of the pixels in a second mapping table if the read first hue values are within the first hue value minimum and the first hue value maximum, and the step (b42) further records zeros to corresponding positions of the pixels in the second mapping table as the first, the second, and the third hue values of the pixels if the first hue values are less than the first hue value minimum or larger than the first hue value maximum.

### Claim 29 (depends on 28)

The machine-readable storage medium as claimed in claim 28, wherein the second mapping table is stored in a two-dimensional storage space.

### Claim 30 (depends on 28)

The machine-readable storage medium as claimed in claim 28, wherein the first hue values of the pixels are red hue values.

### Claim 31 (depends on 24)

The machine-readable storage medium as claimed in claim 24, wherein the first mapping table is stored in a two-dimensional storage space.

### Claim 32 (depends on 23)

The machine-readable storage medium as claimed in claim 23, wherein the step (c) further comprises:
(c1) comparing each pixel with surrounding pixels according to the first, the second, and the third hue values;
(c2) marking each pixel according the comparison; and
(c3) searching the second preview image according to the marks to obtain the image frame.

### Claim 33 (depends on 32)

The machine-readable storage medium as claimed in claim 32, wherein the search in step (c3) is a Breadth-First Search.

### Claim 34 (depends on 23)

The machine-readable storage medium as claimed in claim 23, when the film is a negative film, the image frame obtained in step (c) is sized with an image width W and an image length L and comprises a film frame and a saw-toothed frame, wherein the film frame comprises a first negative film image, a second negative film image, and an interval, wherein the step (d) further comprises the steps of:
(d11) calculating a standard width W1 and a standard length H1 of each negative film image, and calculating an interval width S of the interval according to the film size and a preview resolution of the scanner, wherein W1<H1;
(d12) determining a placement direction of each negative film image in the image frame according to the image width W and the image length L;
(d13) determining an area comprising the film frame according to the placement direction, the standard width W1, and the first hue values of the pixels in the image frame; and
(d14) recognizing the first and the second negative film images in the film frame according to the standard width W1, the standard length H1, the interval width S, and the first hue values of the pixels of the film frame.

### Claim 35 (depends on 34)

The machine-readable storage medium as claimed in claim 34, wherein the step (d14) further deletes an area of the film frame with an average first hue value of the pixels out of a predetermined range.

### Claim 36 (depends on 34)

The machine-readable storage medium as claimed in claim 34, wherein if the placement direction is widthways, the step (d13) further composes a template conforming to the standard width W1 and the image Length L and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine the area comprising the film frame.

### Claim 37 (depends on 34)

The machine-readable storage medium as claimed in claim 34, wherein the step (d14) further comprises the steps of:
(d141) when L<=((H1+S)+2×S), the film frame comprising a first negative film image, composing a template conforming to the standard width W1 and the standard length H1 and moving the template in the film frame until the sum of the first hue values of the pixels reaches a maximum to determine the first negative file image; and
(d142) when L>((H1+S)+2×S), the film frame comprising the first film image, the second negative film image, and the interval, composing a template conforming to the standard width W1 and the interval width S and moving the template in the film frame until the sum of the first hue values of the pixels reaches a minimum to determine the first negative film image and the second negative film image.

### Claim 38 (depends on 23)

The machine-readable storage medium as claimed in claim 23, when the film is a positive film, the image frame obtained in step (c) is sized with a frame width W and a frame length H, and comprises a positive film image and a space area, wherein the step (d) further comprises the steps of:
(d21) calculating a standard width W2 and a standard length H2 of the positive film image according to the film size and a preview resolution of the scanner, wherein W2<H2;
(d22) determining a placement direction of the positive film image in the image frame according to the frame width W, the frame length H, the standard width W2, the standard length H2, and the first hue values of the pixels; and
(d23) recognizing the positive film image in the film frame according to the placement direction, the standard width W2, and the first hue values of the pixels in the image frame.

### Claim 39 (depends on 38)

The machine-readable storage medium as claimed in claim 38, wherein in the step (d23) further deletes an area of the film frame with an average first hue value of the pixels out of a predetermined range.

### Claim 40 (depends on 38)

The machine-readable storage medium as claimed in claim 38, wherein the step (d22) further comprises the steps of:
(d221) composing a template conforming to the standard width W2 and the frame length H and moving the template in the image frame until the sum of the first hue values of the pixels reaches a maximum;
(d222) accumulating the first hue values of the pixels in the image frame as a first sum value;
(d223) composing a template conforming to the standard width W2 and the frame width W and moving the template in the image frame until the sum of the first hue values of the pixels reaches a maximum;
(d224) accumulating the first hue values of the pixels in the image frame as a second sum value; and
(d225) determining the placement direction as lengthwise if the first sum value is larger than the second sum value, if not, widthways.

### Claim 41 (depends on 40)

The machine-readable storage medium as claimed in claim 40, wherein if the placement direction is lengthwise, the step (d23) further composes a template conforming to the standard width W2 and the frame length H and moves the template in the image frame in the widthways direction until the sum of the first hue values of the pixels reaches a maximum to determine a left margin and a right margin for identifying the positive film image.

### Claim 42 (depends on 41)

The machine-readable storage medium as claimed in claim 41, wherein if the placement direction is lengthwise, the step (d23) further composes a template conforming to the standard width W2 and the standard length H2 and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine a top margin and a bottom margin for identifying the positive film image.

### Claim 43 (depends on 40)

The machine-readable storage medium as claimed in claim 40, wherein if the placement direction is widthways, the step (d23) further composes a template conforming to the standard width W2 and the frame width W and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine a top margin and a bottom margin for identifying the positive film image.

### Claim 44 (depends on 43)

The machine-readable storage medium as claimed in claim 43, wherein if the placement direction is widthways, the step (d23) further composes a template conforming to the standard width W2 and the standard length H2 and moves the template in the image frame in the widthways direction until the sum of the first hue values of the pixels reaches a maximum to determine a left margin and a right margin for identifying the positive film image.

### Claim 45

An automatic film recognition apparatus for recognizing a film in a scanner, comprising:
an image previewing module, previewing the film using the scanner to obtain an original preview image comprising a film image corresponding to the film, wherein the original preview image comprises a plurality of pixels and each pixel has a first hue value, a second hue value, and a third hue value;
an image processing module, coupled to the image preview module, selecting the pixels with luminance in a predetermined range from the original preview image to acquire a second preview image;
an image framing module, coupled to the image processing module, framing the second preview image according to the first hue values of the pixels to obtain an image frame; and
a film recognition module, coupled to the image framing module, sectioning the image frame to recognize the film image.

### Claim 46 (depends on 45)

The apparatus as claimed in claim 45, wherein image processing module further comprises:
a first image processing module, designating the number of the pixels as a pixel aggregate number;
a second image processing module, coupled to the first image processing module, calculating a first hue value minimum and a first hue value maximum according to the pixel aggregate number and the first hue values of the pixels;
a third image processing module, coupled to the second image processing module, reading the first hue values of the pixels individually; and
a fourth image processing module, coupled to the third image processing module, producing a first mapping table according to the read first hue values of the pixels to acquire the second preview image.

### Claim 47 (depends on 46)

The apparatus as claimed in claim 46, wherein the first image processing module further selects the pixels with first hue values within a range, wherein the range is determined according to a transparent character of the film.

### Claim 48 (depends on 46)

The apparatus as claimed in claim 46, wherein the second image processing module further composes a statistical chart based on the first hue values of the pixels, designates a noise proportion, and accumulates the first hue values of the pixels according to the statistical chart and the noise proportion to acquire the first hue value minimum and the first hue value maximum.

### Claim 49 (depends on 46)

The apparatus as claimed in claim 46, wherein the fourth image processing module acquires the second image preview by executing the steps of:
(a) recording the first hue values to corresponding positions of the pixels in the first mapping table if the first hue values are within the first hue value minimum and the first hue value maximum;
(b) recording zeros to corresponding positions of the pixels in the first mapping table if the first hue values are less than the first hue value minimum or larger than the first hue value maximum; and
(c) displaying the film image according to the first mapping table to acquire the second preview image, wherein the positions recorded zeros are displayed in black.

### Claim 50 (depends on 49)

The apparatus as claimed in claim 49, wherein the fourth image processing module further records the first, the second, and the third hue values to corresponding positions of the pixels in a second mapping table if the read first hue values are within the first hue value minimum and the first hue value maximum, and the fourth image processing module further records zeros to corresponding positions of the pixels in the second mapping table as the first, the second, and the third hue values of the pixels if the first hue values are less than the first hue value minimum or larger than the first hue value maximum.

### Claim 51 (depends on 50)

The apparatus as claimed in claim 50, wherein the second mapping table is stored in a two-dimensional storage space.

### Claim 52 (depends on 50)

The apparatus as claimed in claim 50, wherein the first hue values of the pixels are red hue values.

### Claim 53 (depends on 46)

The apparatus as claimed in claim 46, wherein the first mapping table is stored in a two-dimensional storage space.

### Claim 54 (depends on 45)

The apparatus as claimed in claim 45, wherein the image framing module further comprises:
a first image framing module, comparing each pixel with surrounding pixels according to the first, the second, and the third hue values;
a second image framing module, coupled to the first image framing module, marking each pixel according the comparison; and
a third image framing module, coupled to the second image framing module, searching the second preview image according to the marks to obtain the image frame.

### Claim 55 (depends on 54)

The apparatus as claimed in claim 54, wherein the search performed by the third image framing module is a Breadth-First Search.

### Claim 56 (depends on 45)

The apparatus as claimed in claim 45, when the film is a negative film, the image frame obtained by the image processing module is sized with an image width W and an image length L and comprises a film frame and a saw-toothed frame, wherein the film frame comprises a first negative film image, a second negative film image, and an interval, wherein the film recognition module further comprises:
a first negative film recognition module, calculating a standard width W1 and a standard length H1 of each negative film image, and calculating an interval width S of the interval according to the film size and a preview resolution of the scanner, wherein W1<H1;
a second negative film recognition module, coupled to the first negative film recognition module, determining a placement direction of each negative film image in the image frame according to the image width W and the image length L;
a third negative film recognition module, coupled to the second negative film recognition module, determining an area comprising the film frame according to the placement direction, the standard width W1, and the first hue values of the pixels in the image frame; and
a fourth negative film recognition module, coupled to the third negative film recognition module, recognizing the first and the second negative film images in the film frame according to the standard width W1, the standard length H1, the interval width S, and the first hue values of the pixels of the film frame.

### Claim 57 (depends on 56)

The apparatus as claimed in claim 56, wherein the fourth negative film recognition module further deletes an area of the film frame with an average first hue value out of a predetermined range.

### Claim 58 (depends on 56)

The apparatus as claimed in claim 56, wherein if the placement direction is widthways, the third negative film recognition module further composes a template conforming to the standard width W1 and the image Length L and moves the template in the lengthwise direction in the image frame until the sum of the first hue values of the pixels reaches a maximum to determine the area of the film frame.

### Claim 59 (depends on 56)

The apparatus as claimed in claim 56, wherein the fourth negative film recognition module recognizes the first and the second negative film images by executing the steps of:
(a) when L<=((H1+S)+2×S), the film frame comprising a first negative film image, composing a template conforming to the standard width W1 and the standard length H1 and moving the template in the film frame until the sum of the first hue values of the pixels reaches a maximum to determine the first negative file image; and
(b) when L>((H1+S)+2×S), the film frame comprising the first film image, the second negative film image, and the interval, composing a template conforming to the standard width W1 and the interval width S and moving the template in the film frame until the sum of the first hue values of the pixels reaches a minimum to determine the first negative film image and the second negative film image.

### Claim 60 (depends on 45)

The apparatus as claimed in claim 45, when the film is a positive film, the image frame obtained by the image framing module is sized with a frame width W and a frame length H, and comprises a positive film image and a space area, wherein the film recognition module further comprises:
a first positive film recognition module, calculating a standard width W2 and a standard length H2 of the positive film image according to the film size and a preview resolution of the scanner, wherein W2<H2;
a second positive film recognition module, coupled to the first positive film recognition module, determining a placement direction of the positive film image in the image frame according to the frame width W, the frame length H, the standard width W2, the standard length H2, and the first hue values of the pixels; and
a third positive film recognition module, coupled to the second positive film recognition module, recognizing the positive film image in the film frame according to the placement direction, the standard width W2, and the first hue values of the pixels in the image frame.

### Claim 61 (depends on 60)

The apparatus as claimed in claim 60, wherein the third positive film recognition module further deletes an area of the film frame with average first hue value out of a predetermined range.

### Claim 62 (depends on 60)

The apparatus as claimed in claim 60, wherein the second positive film recognition module determines the placement direction by executing the steps of:
(a) composing a template conforming to the standard width W2 and the frame length H and moving the template in the image frame until the sum of the first hue values of the pixels reaches a maximum;
(b) accumulating the first hue values of the pixels in the image frame as a first sum value;
(c) composing a template conforming to the standard width W2 and the frame width W and moving the template in the image frame until the sum of the first hue values of the pixels reaches a maximum;
(d) accumulating the first hue values of the pixels in the image frame as a second sum value; and
(e) determining the placement direction as lengthwise if the first sum value is larger than the second sum value, if not, widthways.

### Claim 63 (depends on 62)

The apparatus as claimed in claim 62, if the placement direction is lengthwise, the third positive film recognition module composes a template conforming to the standard width W2 and the frame length H and moves the template in the image frame in the widthways direction until the sum of the first hue values of the pixels reaches a maximum to determine a left margin and a right margin for identifying the positive film image.

### Claim 64 (depends on 63)

The apparatus as claimed in claim 63, if the placement direction is lengthwise, the third positive film recognition module further composes a template conforming to the standard width W2 and the standard length H2 and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine a top margin and a bottom margin for identifying the positive film image.

### Claim 65 (depends on 62)

The apparatus as claimed in claim 62, if the placement direction is widthways, the third positive film recognition module further composes a template conforming to the standard width W2 and the frame width W and moves the template in the image frame in the lengthwise direction until the sum of the first hue values of the pixels reaches a maximum to determine a top margin and a bottom margin for identifying the positive film image.

### Claim 66 (depends on 65)

The apparatus as claimed in claim 65, if the placement direction is widthways, the third positive film recognition module further composes a template sized with the standard width W2 and the standard length H2 and moves the template in the image frame in the widthways direction until the sum of the first hue values of the pixels reaches a maximum to determine a left margin and a right margin for identifying the positive film image.
