Processing apparatus for mail with stamps5535127Abstract An automatic mail processing apparatus comprises a physical quantity detection section for detecting physical quantities of mail with a stamp, such as the weight and dimensions of the mail, a postage determining section for determining the valid postage for the mail with reference to a table in which valid charges are previously stored on the basis of the information items indicating physical quantities, and a stamp detection section for detecting the amount paid on the basis of the information on the stamp contained in the image of the mail, and a processing section for verifying the determined postage with the amount paid to detect a surplus or deficit of the amount paid, and to identify the kind of the mail, classify the mail, and compile statistics data on the mail. Claims What is claimed is: Description BACKGROUND OF THE INVENTION
______________________________________
Kind of postal indicia
INMEN.sub.-- KIND
______________________________________
Not postal indicia
0
Postage stamp 1
Postage meter impression
2
Separately paid impression
3
Postpaid impression
4
Collect impression
5
Other postal indicia
6
______________________________________
To detect the above postal indicia and compute the postage from a postage stamp or a meter impression, the processing procedures as shown in FIGS. 22 and 23 are stored in the program storage section 114. A postal indicia candidate area is detected from the mail image stored in the mail image memory 118 according to the processing procedures for detecting a plurality of postal indicia (S2101). This detection means is composed of the processing procedure as shown in FIG. 24. The CPU 113 reads out the number of pixels in the lateral direction of mail YUBIN.sub.-- W data stored in the two-byte area beginning with the start address in the mail image memory 118, and the number of pixels in the longitudinal direction of mail YUBIN.sub.-- H data stored in the next two-byte area and determines a postal indicia detecting area such as the shaded area in FIG. 26 which has W pixels in the lateral direction and H pixels in the longitudinal direction, beginning with the top left pixel, determined by the lateral and the longitudinal length, YUBIN.sub.-- W and YUBIN.sub.-- H, respectively (S2201). A method of computing the number of pixels in the lateral direction W and the number of pixels in the longitudinal direction H of the postal indicia detecting area is to determine the number of pixels in the lateral direction W and the number of pixels in the longitudinal direction H of the postal indicia detecting area so that W and H may have constant reduction rates of 1/Rw and 1/Rh with respect to the number of pixels in the lateral direction YUBIN.sub.-- W and the number of pixels in the longitudinal direction YUBIN.sub.-- H, respectively. W=YUBIN.sub.-- W/Rw, H=YUBIN.sub.-- H/Rh For example, if Rw=4, Rh=4, the postal indicia detecting area with the number of pixels in the lateral direction W and the number of pixels in the longitudinal direction H, beginning with the top left has an area of 1/16 the mail image area. Of the mail image stored starting at the fifth byte in the mail image memory 118, the image data in the postal indicia detecting area detected at step 2201 is binarized with, for example, a threshold value of 128 (THR), and the result is stored in the temporary memory section 115 (S2202). After the total number of postal indicia candidate areas RYOGAKU.sub.-- CNT is set to 0 (S2203), pixels related to the postal indicia image, for example, dark pixels, are totalized in the longitudinal direction with respect to the binarized image in the postal indicia area stored in the temporary memory section 115, and the peripheral distribution as shown in FIG. 27 is obtained (S2204). From the peripheral distribution, concatenating ranges where the totalized data is not 0 and whose length is a reference concatenating length Wstd or more (e.g., 10 pixels or more) are obtained in sequence. Those concatenating ranges are determined to be lateral postal indicia candidate ranges. The total number p of lateral postal indicia candidate ranges, and the start and the end position of each range xs(i), xe(i) [i=1, 2, . . . , p] are obtained (S2205). At this time, if no concatenating range where the accumulated data is not 0 is the reference concatenating length Wstd or more, the total number p of lateral postal indicia candidate ranges will be 0. Next, a check is made to see if the total number p of lateral postal indicia candidate ranges is 0 (S2206). If it is 0, the total number of postal indicia candidate areas RYOGAKU.sub.-- CNT (=0) is stored in the two-byte area beginning with the start address in the postal indicia image 119 (S2211). Then, the process at step S2101 in FIG. 22 is terminated. If the total number p of lateral postal indicia candidate ranges is not 0, a postal indicia candidate area is obtained from the first column candidate area determined by the lateral start position xs(1) and end position xe(1) and the longitudinal start and end positions of the postal indicia detecting range (S2208). This detection means is composed of, for example, the processing procedure as shown in FIG. 25. Pixels related to the postal indicia image, for example, dark pixels are accumulated in the lateral direction with respect to the binarized image in the first column candidate area, and the peripheral distribution as shown in FIG. 28 is obtained (S2301). From the peripheral distribution, data concatenating ranges where the accumulated data is not 0 and whose length is the reference concatenating length Hstd or more (e.g., 10 pixels or more) are obtained in sequence. The total number q of those concatenating ranges, and the start and the stop position of each range ys(j), ye(j) [j=1, 2, . . . , q] are determined (S2302). If the total number q of concatenating ranges is 0 ("Yes" at step 2303), the process at step S2208 will be terminated. If the total number q of concatenating ranges is not 0 ("NO" at step 2303), the program proceeds to step 2304 where a counter j is initialized. Next, the longitudinal start and end positions ys(i), ye(j) obtained at step S2302 and the lateral start and end positions xs(1), xe(1) of the first-column candidate area are stored in the temporary memory section 115 (step 2305), and the counter j is incremented (step 2306) and compared to the total q (step 2307). This process is repeated for all start and end positions (while "NO" is obtained at step 2307) until all positions are stored ("YES: is obtained at step 2307). Then, q is added to the total number of postal indicia candidate areas RYOGAKU.sub.-- CNT (S2308). The start and end positions of all postal indicia candidates in the candidate areas until the p-th column are obtained (step 2210) in a similar manner to the procedure for obtaining the start and end positions of the postal indicia candidate in the first-column candidate area, and the results have been stored in the temporary memory section 115 in sequence, by incrementing a counter i (step 2209) initialized in step 2207. Thereafter (when "YES" is obtained at step 2210), the total number of postal indicia candidate areas RYOGAKU.sub.-- CNT is stored at the start address of the postal indicia image 119 (S2211). Then, the process at step 2101 in FIG. 22 is terminated. After the postal indicia candidate area has been detected at step 2101, the program proceeds to step 2102 where the postal indicia image memory 119 is accessed to read the total number of postal indicia candidate areas RYOGAKU.sub.-- CNT. If RYOGAKU.sub.-- CNT is 0 ("Yes" at step 2102) it is judged that there is no postal indicia candidate area. Then, the program proceeds to step 2115 of FIG. 23 where the postage of the postal indicia RYOKIN.sub.-- TTL is set to -1, the postal indicia type information INMEN.sub.-- KIND is set to 0, and then the process is terminated. If RYOGAKU.sub.-- CNT is larger than 0 ("NO" at step 2102) that is, if a postal indicia candidate area is present, the program proceeds to step 2103 where the start and end position information items on as many postal indicia candidate ranges as RYOGAKU.sub.-- CNT stored in the temporary memory section 115 are read sequentially. The image data on the rectangular area of the mail image 118 determined by those two points is stored in the temporary memory section 115 in sequence. Each postal indicia candidate area is normalized to fit it into the M x N-pixel dictionary pattern. For example, to normalize an image f (x, y) in the postal indicia candidate area whose start and end positions are xss, xse, yss, and yse as shown in FIG. 29 to an M x N image g (x, y), the following conversion is effected: g(x,y)=f (int((x-xss)*M/(xse-xss+1)) int((y=yss)*N/(yse-yss+1))) where y=int (x) represents a function used to determine the maximum integer that does not exceed x. The normalized result is stored in the postal indicia image memory 119. At this time, for example, the image data in the postal indicia candidate area 1 is stored in the M.times.N-byte area, beginning with the third byte at the start address in the postal indicia image memory 119 as shown in FIG. 30. Similarly, the images in as many postal indicia areas as RYOGAKU.sub.-- CNT are stored in the postal indicia image memory 119. Next, at step 2104, postage RYOKIN.sub.-- TTL is initialized to 0. Then, j indicating the number of areas detected not to be postal indicia candidates as a result of collating with a dictionary pattern (explained below) concerning as many postal indicia candidate areas as RYOGKU.sub.-- CNT, is initialized to 0. Thereafter, the image data in the M.times.N postal indicia candidate area 1 stored beginning with the third byte at the start address in the postal indicia image memory 119 is verified with each dictionary image pattern in the postal indicia dictionary memory 120 (step 2105). The dictionary pattern in the postal indicia dictionary memory 120 is stored in the form of an address map as shown in FIG. 31. In the two-byte area at the start address in the postal indicia dictionary memory 120, the total number of dictionary patterns JISHO.sub.-- CNT is stored. From the third byte at the start address in the postal indicia dictionary memory 120, as many processing charges indicated by the individual dictionary patterns as JISHO.sub.-- CNT are stored in consecutive two-byte areas. From address 500 h, as many information items INMEN.sub.-- KIND representing the kinds of postal indicia indicated by each dictionary pattern as JISHO.sub.-- CNT are stored in consecutive two-byte areas. From address 1000 h in the postal indicia dictionary memory 120, as many individual dictionary patterns with a size of M.times.N as JISHO.sub.-- CNT are stored consecutively. In the case of postal indicia from which the processing charges cannot be known, such as separately paid impressions or postpaid impressions, 0 is stored as the charge. The procedure for performing the verification with respect to a dictionary pattern at step 2105 is as shown in FIG. 32, for example. First, the maximum value SimMax of similarity to be the first candidate is initialized to 0, and off indicating the start address in the charge storage area for the dictionary pattern with the maximum similarity is set to 2 h (step 3101). The similarity between the image data in the postal indicia candidate area 1 and the first dictionary pattern i (initialized in step 3102) stored beginning with address 1000 h in the postal indicia dictionary memory 120 is calculated (step 3103). If normalized two-dimensional image data g (x,y) with a size of M.times.N is expressed by a one-dimensional data string P(k) [k=1, 2, . . . , M.times.N], and similarly dictionary image data v(x,y) is expressed by a reference pattern D(k), an equation for determining the similarity is expressed as equation (1): ##EQU1## If the similarity with the dictionary pattern i thus calculated is greater than the maximum similarity SimMax, ("Yes" at step 3104) the maximum similarity SimMax is replaced with the dictionary pattern i and off indicating the start address in the charge storage area for the dictionary pattern with the maximum similarity is set at 2 (step 3105). Otherwise ("NO" at step 3104), the process proceeds to step S3106 where counter i is increment. Similarly, the similarity between the image data in the postal indicia candidate area 1 and the dictionary pattern i stored beginning with the (1000 h+M.times.N.times.i)-th byte at the start address in the postal indicia dictionary memory 120 is computed in sequence. If the similarity with the dictionary pattern i is greater than the maximum similarity SimMax, the maximum similarity SimMax is replaced with the similarity with the dictionary pattern i and OFF indicating the start address in the charge storage area for the dictionary pattern with the maximum similarity, is set to 2.times.i (step 3105). This process is repeated as many times as the total number of dictionary patterns JISHO.sub.-- CNT in the postal indicia dictionary memory 120, ("NO" at step 3107) and process returns to step 3103. Otherwise, the process terminates ("YES" at step 3107). After the verification with respect to the dictionary patterns has been completed at step 2105, the maximum similarity obtained at step 2105, or the first candidate similarity SimMax is compared with a similarity reference value Simstd (e.g., 0.9) (step 2106). If the first candidate similarity SimMax is lower than the similarity reference value Simstd, it is determined that the postal indicia candidate area does not contain a postal indicia, the number of unsuitable ranges j is increased by 1 (step 2113). Then, the operation proceeds to step 2110 of FIG. 23. While, if the first candidate similarity SimMax is the similarity reference value Simstd or more, the processing charge stored in the two-byte area beginning with off indicating the start address for the charge storage area for the dictionary pattern with the first candidate similarity SimMax is read out, and furthermore, postal indicia candidate information INMEN.sub.-- KIND stored in the two-byte area beginning with 500 h+(off-2 h) is read out (step 2107). Then, a check is made to see if INMEN.sub.-- KIND is larger than 2, that is, to see if the image in the postal indicia candidate area is a postal indicia from which the processing charge cannot be known, such as a separately paid impression or a postpaid impression (2108). If it is a postal indicia from which the rate cannot be known, the total rate RYOKIN.sub.-- TTL in the postal indicia is set to 0 (step 2114). Then, the process is terminated. If it is a postage stamp or a postage meter impression, the charge thereof is added to the accumulated total charge of postal indicia RYOKIN.sub.-- TTL (step 2109). Then, a similar process is performed repeatedly on the images in the remaining (RYOGAKU.sub.-- CNT-1) postal indicia candidate areas stored beginning with the (M.times.N+3)-th byte at the start address in the postal indicia image memory 119 (steps 2110, 2111). After the repeated process is completed, it is determined at step 2112 whether or not the unsuitable area j is equal to the number of postal indicia candidate areas RYOGAKU.sub.-- CNT. If it is not equal to the latter, the process is terminated. If it is equal to the latter, control goes to step 2115. The process of registering the image pattern of a new postal indicia into the postal indicia dictionary 120 will be described. The processing procedure is as shown in FIG. 34, for example. When the image of a piece of mail with a stamp not registered into the postal indicia dictionary 120 such as the postage stamp 3201 in FIG. 33 is stored in the mail image memory 118, for example, the postal indicia area is detected in a similar manner as step 2101 of FIG. 22 (step 3301). Then, the postal indicia area is normalized to a size of M.times.N in a similar manner as step 2103 (step 3302). By inputting a pattern registration instruction from the data input section 122 such as a keyboard, the value of JISHO.sub.-- CNT+1 is stored in the two-byte area beginning with the start address, with the memory arrangement as shown in FIG. 35, for example, in addition to as many already stored dictionaries as JISHO.sub.-- CNT, the postal indicia of the stamp is stored in the two byte area beginning with the (2.times.(JISHO.sub.-- CNT+1)+1)-th byte at the start address, "1" indicating a postage stamp is stored in postal indicia type information INMEN.sub.-- KIND stored in the two-byte area beginning with address 500 h+2.times.JISHO.sub.-- CNT, and a dictionary pattern is entered into the M.times.N byte area beginning with address 1000 h+M.times.N.times.JISHO.sub.-- CNT (step 3303). Similarly, such registration procedures hold true for image patterns other than postage stamps, such as postage meter impressions, separately paid impressions, postpaid impressions, or collect impressions. The process of detecting the class of mail from the physical information on mail will be described. A list of rates for first-class mail and second-class mail in Japan as of May 1993 is shown in FIG. 36. Mail is broadly divided into two types: standard-size mail and nonstandard-size mail. Furthermore, by weight, standard-size mail is subdivided into two divisions and nonstandard-size is subdivided into eight divisions. Standard-size mail is defined as mail with a length of 140 to 235 mm, a width of 90 to 120 mm, a thickness of less than 10 mm, and a weight of less than 50 g. Mail which does not meet these requirements is defined as nonstandard-size mail. It should be noted that mail with a length of less than 140 mm and a width of less than 90 mm, or mail one side of which is 600 mm or more or the total of three sides of which is 900 mm or more, or mail weighing 4 kg or more is not treated as ordinary mail. A mail type detecting process stored in the program storage section 114 will be described. On the basis of the information obtained at the physical quantity detection section, it is determined which of classes No. 0 to 10 in FIG. 36 the piece of mail detected falls under. FIG. 37 shows a processing flow, and FIG. 38 shows a postage look-up table (LUT) 121 prepared on the basis of the list of rates in FIG. 36. Before explanation of the flow, the contents of the LUT will be explained.
__________________________________________________________________________
Practical
value
__________________________________________________________________________
1) Numerical values concerning standard-size mail
TEIKEI.sub.-- K1; Standard-size mail's maximum thickness
10wdarw.
mm
TEIKEI.sub.-- K2; Standard-size mail's maximum width .fwdarw.
120
mm
TEIKEI.sub.-- K3; Standard-size mail's maximum length .fwdarw.
235
mm
TEIKEI.sub.-- J; Standard-size mail's maximum weight .fwdarw.
50 g
2) Numerical values concerning ranges treated as mail
GAI.sub.-- K1 ; Mail's minimum width .fwdarw.
90 mm
GAI.sub.-- K2 ; Mail's minimum length .fwdarw.
140
mm
GAI.sub.-- K3 ; Mail's maximum length .fwdarw.
600
mm
GAI.sub.-- K4 ; The maximum total length of three sides
900
mm
of a piece of mail .fwdarw.
GAI.sub.-- J ; Mail's maximum weight .fwdarw.
4000
g
3) Numerical values concerning weight
JURYO.sub.-- T1 ; Standard-size mail's threshold .fwdarw.
25 g
JURYO.sub.-- G1 ; Nonstandard-size mail's threshold 1 .fwdarw.
50 g
JURYO.sub.-- G2 ; Nonstandard-size mail's threshold 2 .fwdarw.
100
g
JURYO.sub. -- G3 ; Nonstandard-size mail's threshold 3 .fwdarw.
250
g
JURYO.sub.-- G4 ; Nonstandard-size mail's threshold 4 .fwdarw.
500
g
JURYO.sub.-- G5 ; Nonstandard-size mail's threshold 5 .fwdarw.
1000
g
JURYO.sub.-- G6 ; Nonstandard-size mail's threshold 6 .fwdarw.
2000
g
JURYO.sub.-- G7 ; Nonstandard-size mail's threshold 7 .fwdarw.
3000
g
4) Numerical values concerning postage
RYOKIN.sub.-- N1; Postage for standard-size mail (class No. 1)
62wdarw.
yen
RYOKIN.sub.-- N2; Postage for standard-size mail (class No. 2)
72wdarw.
yen
RYOKIN.sub.-- N3; Postage for nonstandard-size mail (class No. 3)
.fwdarw. 120
yen
RYOKIN.sub.-- N4; Postage for nonstandard-size mail (class No. 4)
.fwdarw. 175
yen
RYOKIN.sub.-- N5; Postage for nonstandard-size mail (class No. 5)
.fwdarw. 250
yen
RYOKIN.sub.-- N6; Postage for nonstandard-size mail (class No. 6)
.fwdarw. 360
yen
RYOKIN.sub.-- N7; Postage for nonstandard-size mail (class No. 7)
.fwdarw. 670
yen
RYOKIN.sub.-- N8; Postage for nonstandard-size mail (class No. 8)
.fwdarw. 930
yen
RYOKIN.sub.-- N9; Postage for nonstandard-size mail (class No. 9)
.fwdarw. 1130
yen
RYOKIN.sub.-- N10; Postage for nonstandard-size mail (class No. 10)
.fwdarw. 1340
yen
5) Numerical values for special delivery
RYOKIN.sub.-- R1; Special delivery rate for standard-size mail (class No.
1) .fwdarw. 272
yen
RYOKIN.sub.-- R2; Special delivery rate for standard-size mail (class No.
2) .fwdarw. 282
yen
RYOKIN.sub.-- R3; Special delivery rate for nonstandard-size mail (class
No. 3) .fwdarw. 330
yen
RYOKIN.sub.-- R4; Special delivery rate for nonstandard-size mail (class
No. 4) .fwdarw. 385
yen
RYOKIN.sub.-- R5; Special delivery rate for nonstandard-size mail (class
No. 5) .fwdarw. 460
yen
RYOKIN.sub.-- R6; Special delivery rate for nonstandard-size mail (class
No. 6) .fwdarw. 670
yen
RYOKIN.sub.-- R7; Special delivery rate for nonstandard-size mail (class
No. 7) .fwdarw. 980
yen
RYOKIN.sub.-- R8; Special delivery rate for nonstandard-size mail (class
No. 8) .fwdarw. 1500
yen
RYOKIN.sub.-- R9; Special delivery rate for nonstandard-size mail (class
No. 9) .fwdarw. 1700
yen
RYOKIN.sub.-- R10; Special delivery rate for nonstandard-size mail (class
No. 10) .fwdarw. 1910
yen
6) Numerical values for postcard
HAGAKI.sub.-- K1; Maximum width of postcard .fwdarw.
107
mm
HAGAKI.sub.-- K2; Maximum length of postcard .fwdarw.
150
mm
HAGAKI.sub.-- NO; Postage for postcard (class No. 0) .fwdarw.
41 yen
HAGAKI.sub.-- RO; Special delivery rate for postcard (class No. 0)
.fwdarw. 251
yen
__________________________________________________________________________
The processing flow of FIG. 37 will be described. From the size data and the thickness data obtained at the physical quantity detection section, the minimum, intermediate value, and maximum of three sides of a piece of mail, and the total length of the three sides are computed. The width, length, and thickness information items are stored as KEIJO.sub.-- W, KEIJO.sub.-- H, and KEIJO.sub.-- T in the temporary memory section 115, respectively. The minimum value obtained through calculation, the intermediate value, the maximum value, and the total of three sides are stored as KEIJO.sub.-- MIN, KEIJO.sub.-- MID, KEIJO.sub.-- MAX, and KEIJO.sub.-- TTL in the temporary memory section 115, respectively (S3601). The threshold data items in TEIKEI.sub.-- K1 to K4 in the postage LUT 121 are compared with the above values (S3602). If none of the values exceed the threshold values, it is determined whether or not the intermediate value and the maximum value of three sides are equal to or larger than the threshold values in GAI.sub.-- K1 and GAI.sub.-- K2 in LUT (S3603). If they are equal to or larger than the threshold values, it is determined that the piece of mail is standard-size mail. Then, the weight measurement JURYO stored in the temporary memory section 115 is compared with the standard-size mail weight threshold JURYO.sub.-- T1 to classify the piece of mail as one of the two subdivisions (S3604). If the weight is lower than the threshold value, the intermediate value and the maximum value of three sides are compared again with the maximum width HAGAKI.sub.-- K1 and the maximum length HAGAKI.sub.-- K2 of postcard (S3606). If both are lower than the threshold values, it is determined to be a postcard, and the postage for postcard RYOKIN.sub.-- NO is read and stored in RYOKIN.sub.-- LUT in the temporary memory section 115 (see FIG. 19). Similarly, the rate for special delivery postcard RYOKIN.sub.-- NO is read and stored in RYOKIN.sub.-- RPD in the temporary memory section 115. Then, after "0" indicating class No. 0 (see FIG. 36) is written in YUBIN.sub.-- KIND (S3607), the process is terminated. If it is determined to be class No. 1 by the comparison at step S3606, the following values are set at specific addresses in the temporary memory section 115 (S3608): RYOKIN.sub.-- LUT.rarw.RYOKIN.sub.-- N1 RYOKIN.sub.-- RPD.rarw.RYOKIN.sub.-- R1 YUBIN.sub.-- KIND.rarw."1" Similarly, if it is determined to be class No. 2 by the comparison at step 3604, the following values are set at specific addresses in the temporary memory section 115 (S3605): RYOKIN.sub.-- LUT.rarw.RYOKIN.sub.-- N2 RYOKIN.sub.-- RPD.rarw.RYOKIN.sub.-- R2 YUBIN.sub.-- KIND.rarw."2" Since the piece of mail judged to be nonstandard-size mail at step S3603 does not reach the size treated as mail, "11" indicating nonmail is written in YUBIN.sub.-- KIND (S3609). Then the process is terminated. If it is determined to be nonstandard-size mail at step S3602, the maximum size value KEIJO.sub.-- MAX is compared with the threshold value GAI.sub.-- K3 in the postage LUT 121, and the total of three sides KEIJO.sub.-- TTL is compared with the threshold GAI.sub.-- K4. If both are lower than the thresholds, they are determined to be nonstandard-size mail; otherwise, they are determined to be nonmail (S3610). In the case of nonmail, "11" is written in YUBIN.sub.-- KIND (S3611) as at step S3609. Then, the process is terminated. If they are detected to be nonstandard-size mail, JURYO indicating the weight of mail is compared with JURYO.sub.-- G1 to JURYO.sub.-- G7 in the postage LUT 121 to determine which of class No. 3 to No. 10 they fall under (S3612). As in standard-size mail, suitable data items are set by type in RYOKIN.sub.-- LUT, RYOKIN.sub.-- RPD, and YUBIN.sub.-- KIND (S3613) in the temporary memory section 115. The process of evaluating the validity of charges and obtaining mail division information from the type information items classified according to the size and weight of mail and the charge information obtained from the image information on the postal indicia will be described, referring to the flowchart of FIG. 39. The following processing programs are stored in the program storage section 114. The rate RYOKIN.sub.-- LUT determined from the physical quantities of mail, the charge RYOKIN.sub.-- RPD for special delivery, and the total charge RYOKIN.sub.-- TTL obtained from the image information on the postal indicia are read from the temporary memory section 115 (S3801). Next, kind information YUBIN.sub.-- KIND obtained from the physical quantities of mail is read from the temporary memory section 115 (S3802). When the value of YUBIN.sub.-- KIND is "11," since the object is determined to be nonmail, "5" indicating reject is set in KUBUN.sub.-- KIND in the temporary memory section 115 (S3803, S3804). If KUBUN.sub.-- KIND has a value other than "11," RYOKIN.sub.-- LUT is compared with RYOKIN.sub.-- TTL (S3805) to judge whether or not the charge on the postal indicia is valid. When the former is larger, it means that the charge is insufficient. In the above-mentioned process of discriminating postal indicia, because "0" is written in RYOKIN.sub.-- TTL for mail whose postage is unknown but not insufficient, such as separately paid mail or postpaid mail, RYOKIN TTL is checked (S3806). If "0" is written there, operation proceeds to step S3811. If "-1" is written there, it means that no postal indicia has been detected. Thus, it is determined that rate="0," valid charge RYOKIN.sub.-- LUT is set as postage due in SAGAKU in the temporary memory section 115 (S3814), and "3" meaning postage due is set in KUBUN.sub.-- KIND (S3808). Otherwise, it is judged that the postal indicia is present but the postage is insufficient. In this case, after the difference between the current postage and the valid postage RYOKIN.sub.-- LUT is calculated and stored in SAGAKU in the temporary memory section 115 (S3807), "3" is set in KUBUN.sub.-- KIND (S3808). If it is determined that the postage is equal to or greater than the standard charge at step S3805, then it is checked whether the postage is equal to or larger than the special delivery charge (S3809). If it is greater than the special delivery charge, "4" meaning special delivery is set in KUBUN.sub.-- KIND (S3810). In other cases, KUBUN.sub.-- KIND indicating the mail type is read (S3811) If the value is "0", "1" or "2," "1" meaning standard-size mail is set in KUBUN.sub.-- KIND; otherwise "2" meaning unknown-size mail is set there (S3812, S3813). FIG. 40 shows the relationship between the values of KUBUN.sub.-- KIND and types of mail classified. Explained next will be the process of giving a division instruction or a stamp instruction to the operation instructing section on the basis of mail division information. The following program is stored in the program storage section 114. FIG. 41 shows the processing flow. First, KUBUN.sub.-- KIND in the temporary memory section 115 is read (4001) and, on the basis of the value, the contents of the process are determined. The process will be explained by the kind of mail. (1) When KUBUN.sub.-- KIND="1" (standard-size mail) The positional information on the postal indicia obtained from the process of discriminating postal indicia and the total postage RYOKIN.sub.-- TTL are read (4002). If the postage is not "0," at step 4003 it is necessary to put a postmark. Thus, a stamp instruction is sent to the postmark stamping means 126 on the basis of the positional information on the postal indicia and the detection signal from the mail position detector 125 placed near the postmark stamping means 126 (4004). If the postage is "0" at step 4003, the process proceeds to step 4005. Then, a transport path switching instruction is sent to the mail distribution means 128a (see FIG. 2) (4005), and pieces of mail are collected in the mail stacker 129a (4006). Then, the process is terminated. (2) When KUBUN.sub.-- KIND="2" (nonstandard-size mail) Sending a postmark stamping instruction is effected in the same manner as in item (1) (standard-size mail), except that the object to which a transport path switching instruction is sent is changed to distributor 128b and that the mail stacker is changed to stacker 129b. (3) When KUBUN.sub.-- KIND="3" (postage due) The postal indicia portion is postmarked on the basis of the positional information on the postal indicia obtained from the process of discriminating postal indicia (4007), and a transport path switching instruction is sent to the mail distribution means 128c (4008). Then, a mark meaning postage due is stamped by the postage due mark stamping means 127 in a specific position of mail between the mail distribution means 128c and the stacker 129c (4009). This mark is stamped so that the operator of an automatic mail processor or the postman can recognize it with the naked eye even if a piece of mail with postage due piece of mail is mixed with other pieces of mail. The mark may always be the same. For example, postage due data SAGAKU stored in the temporary memory section 115 may be read to include the value in the mark. The piece of mail stamped with a postage due mark is collected in the stacker 129c (4010). (4) When KUBUN.sub.-- KIND="4" (special delivery) Sending a postmark stamping instruction is effected in the same manner as in item (3), except that the object to which a transport path switching instruction is sent is changed to 128d and that the mail stacker is changed to 129d. In the present system, a judgment of special delivery is made on the basis of postal rates only. To improve the detection accuracy, for example, a system may be considered which extracts the special delivery mark or characters on mail by means of character recognition such as an OCR or a pattern matching process described in the process of discriminating postal indicia in the present invention. (5) When KUBUN.sub.-- KIND="5" (reject) When it is determined to be nonmail, a transport path switching instruction is given to neither of the mail distribution means 128. Thus, the object goes straight on the transport path and is collected in the stacker 129e (4011). An example of the postmark stamping means 126 is shown in FIG. 49. A print hub 4801 on whose side a print pattern is drawn and a backup roller 4802 for pressing a piece of mail against the hub from the opposite direction are arranged. The piece of mail gets caught between transport belts (not shown) and is conveyed on a mail guide 4804. An ink roller 4803 is pressed against the print hub 4801, on the opposite side of the transport path, thereby always supplying ink to the print hub 4801 for stamping. A print shaft 4805 transmits the rotational movement of a driving source (not shown) to the print hub 4801. Hereinafter, the processing flow during stamping will be explained. At the moment when it is detected that the postal indicia portion of the piece of mail has reached between both rollers on the basis of the positional information on the postal indicia and the detection signal from the mail position detector 125 placed near the postmark stamping means 126, a driving source (not shown) starts by the instruction from the CPU 113, thereby rotating the print shaft 4805. In a stationary state, since the print hub 4801 faces the ink roller 4803, it is apart from the backup roller 4802. When rotated by the driving source, the printing surface of the print hub 4801 is pressed against the backup roller 4802 with the piece of mail caught between them. As a result, a postmark is put on the postal indicia. After the print shaft turns once, it stops by application of electromagnetic brake 4806 in the position where it was before the operation to prepare for the next stamping. The postage due mark stamping means 127 can be realized with the same construction as that of the post-mark stamping means 126. An example of the mail distribution means 128 is shown in FIG. 50. A piece of mail gets caught between a transport belts 4901a and 4901b and reaches a transport path switching section 4902. A sort-out plate 4903 swings through an angle almost equal to the angle between branch paths 4904a and 4904b to distribute pieces of mail to two paths. The sort-out plate 4903 is driven by, for example, a magnetic solenoid (not shown), and usually remains stationary in the position indicated by a solid line in FIG. 50. To cause the piece of mail to branch as a result of verifying the physical quantities with the postal rates, at the moment when it is determined that the piece of mail is approaching the vicinity of the transport path switching section 4902 on the basis of the detection signal from the mail position detector 125 (not shown) placed near the mail distribution means 126, current is allowed to flow through the electromagnetic solenoid by the instruction from the CPU 113, thereby causing the sort-out plate 4903 to swing to the position indicated by a broken line to allow the piece of mail to branch. After the mail position detector 125 (not shown) detects that the piece of mail has passed through the transport path switching section 4902 completely, the sort-out plate 4903 is returned to the solid-line position. Then, the process is terminated. Hereinafter, a statistical process on mail will be described. As an example of statistical data, it is possible to take at least one of the following: statistics on the number of pieces of mail and on the total postage processed by the present system, statistics on the number of pieces of mail and on the total postage by type as shown in FIG. 36, statistics on the number of pieces of mail and on the total postage by processing division as described above, statistics on the number of pieces of mail by physical quantity, statistics on the number of pieces of mail by postage, and statistics on the number of pieces of mail by kind of postal indicia. There are two statistical data managing methods: one is to change data on the relevant item among the statistical data values as described above each time each object is processed, and the other is to store the process result for each object and then calculate the individual statistical data values in unison. A case where statistical data is managed by the former method will be explained. To execute the process, the program storage section 114 stores, for example, the processing procedures as shown in FIG. 43. After the mail position detector 125 etc. have detected that the piece of mail has exited the thickness sensor 106 ("YES" obtained at step 4201), statistical data is gathered at step 4202, and it is determined whether a specific period of time (e.g., a specified date or one year) has elapsed, or whether the time required to process the pieces of mail in a lot has elapsed (step 4203). If it has not elapsed yet ("NO" at step 4203), process is returned to step 4201, and the processes are repeated until a piece of mail is detected. If it has elapsed, the process is terminated. The statistical data acquisition means at step 4202 not explained above differs according to what is used as statistical data. Hereinafter, a case where various statistics such as the following are acquired will be explained: the total number of pieces of mail and the total postage for each of class 0 to class 10 in YUBIN.sub.-- KIND indicating the type of mail as shown in FIG. 36, the total number of pieces of mail and the total postage for 4 and 3 in process division type KUBUN.sub.-- KIND indicating special delivery and postage due, the total number of pieces of mail for 5 in process division type KUBUN.sub.-- KIND indicating reject, and the total number of pieces of mail and the total postage except when process division type KUBUN.sub.-- KIND is 5. These individual statistics are stored in the data storage section 116, beginning with the start address as shown in FIG. 42. These statistics are all initialized to 0 when the system operates for the first time. After such a management process is completed or after those statistics are copied to another recording medium periodically, those statistics may be cleared to 0. To acquire statistical data, the program storage section 114 stores the processing procedures as shown in FIGS. 46 and 47, for example. First, the processing procedure in FIG. 46 will be explained. A check is made to see if the value of KUBUN.sub.-- KIND is equal to 5, or the piece of mail should be rejected (step 4501). If it should be rejected, the total number of rejects stored in the four-byte area starting at address 68h is increased by 1 (step 4508), and then the process is terminated. If it should not be rejected, a check is made to see if the value of KUBUN.sub.-- KIND is equal to 4, or the piece of mail is special delivery (step 4502). If it is special delivery, the total number of special delivery items stored in the four-byte area starting at address 58h is increased by 1 (step 4506), postage RYOKIN.sub.-- TTL is added to the total special delivery charges stored in the four-byte area starting at address 5Ch (step 4507), and then the process is terminated. If it is not special delivery, a check is made to see if the value of KUBUN.sub.-- KIND is equal to 3, or the piece of mail is postage due (step 4503). If it is postage due ("YES" in step 4503), the process advances and, the total number of postage-due pieces of mail stored in the four-byte area starting at address 60h is increased by 1 (step 4504), postage difference SAGAKU is added to the amount of postage due for the total of postage due pieces of mail stored in the four-byte area starting at address 64h (step 4505), and then the process is terminated. If no postage is due ("NO" in step 4503), the process terminates immediately. Hereinafter, the processing procedure of FIG. 47 will be described. The total number of pieces of mail in YUBIN.sub.-- KIND stored in the four-byte area starting at the (8.times.the value of YUBIN.sub.-- KIND+1)-th byte is increased by 1 (step 4601), and postage RYOKIN.sub.-- TTL is added to the total postage in YUBIN KIND stored the next 4-byte area (step 4602). At step 4603, the total number of pieces of mail stored in the four-byte area starting at address 6Ch is increased by 1, and postage RYOKIN.sub.-- TTL is added to the total postage stored in the four-byte area starting at address 70h (step 4604). Then, the process is terminated. Statistics other than those described above are also acquired in a similar manner. For example, to obtain the statistic by the type of postal indicia, INMEN.sub.-- KIND is used instead of YUBIN.sub.-- KIND at step 4601 to increase the number of pieces of mail for each value of INMEN.sub.-- KIND by 1. By suitably determining division ranges on the basis of the physical quantities including a piece of mail's width information KEIJO.sub.-- W, length information KEIJO.sub.-- H, thickness information KEIJO.sub.-- T, and weight measurement JURYO, statistics concerning physical quantities can be acquired in a similar manner. In addition, among the above-described statistics, statistics can be obtained similarly even in such a combination as allows at least one statistics to be obtained. Hereinafter, a case where statistical data is managed by the latter method will be explained. To execute this process, the program storage section 114 stores the processing procedure as shown in FIG. 45. The process of step 4401 repeats until a piece of mail passes out of sensor 106 (while "NO" is obtained at step 4401). When a piece of mail is detected in step 4401 the individual process results such as RYOKIN.sub.-- TTL stored in the temporary memory section 115 are stored together with mail identification information YUBIN.sub.-- ID as shown FIG. 44 in the data storage section 116 (step 4402). For example, the value of identification information YUBIN.sub.-- ID for the first processed piece of mail is "1", and similarly, the value of identification information YUBIN.sub.-- ID for the i-th processed piece of mail is "i." The individual process results are stored in the 22-byte area starting at address RESULT.sub.-- OFF+22.times.i, and the value of YUBIN.sub.-- ID is stored in RESULT.sub.-- CNT indicating the total number of processed pieces of mail in the four-byte area starting at address RESULT.sub.-- OFF. Next, after step 4403 similar to step 4203 of FIG. 43 has been executed, control proceeds to the next step 4404. At step 4404, on the basis of the process results for each piece of mail stored at step 4402, the relevant statistical data items in a statistical data storage area (similar to FIG. 42) beginning with the start address as shown in FIG. 44 are changed sequentially. This process is repeated as many times as the value of RESULT.sub.-- CNT (while "NO" is obtained in step 4405). Otherwise, if "YES" is obtained at step 4405, the process terminates. Hereinafter, the process of outputting to the data output section 123 the physical information on pieces of mail, including the size and weight, the image information, the type information, the division information, the postage information, and mail discriminating results such as the value of statistical data will be described with reference to FIG. 48. The following processing program is stored in the program storage section 114. After the data output section 123 has displayed specific character information items in specific positions on, for example, a CRT, the values of a piece of mail's width information KEIJO.sub.-- W, length information KEIJO.sub.-- H, thickness information KEIJO.sub.-- T, and weight measurement value JURYO stored in the temporary memory section 115 are displayed in the places indicated by reference numerals 4701 to 4704 in FIG. 48. When the value of YUBIN.sub.-- KIND indicating the type of mail stored in the temporary memory section 115 is "0," the object is a post card, so that location 4705 is given; when the value is "1" or "2," location 4706 indicating standard-size mail is given; when the value is any one of "3" to "10," location 4707 indicating nonstandard-size mail is given; furthermore, when the value is "11," location 4708 is given. Then, the characters displayed in the corresponding locations are made brighter or colored. When the value of KUBUN.sub.-- KIND indicating the mail processing division stored in the temporary memory section 115 is "4," the characters displayed in location 4710 indicating special delivery, otherwise in location 4709 are made brighter or colored. In FIG. 48, location 4707 and location 4709 are selected. Then, the value of total postage RYOKIN.sub.-- TTL obtained from the image information on the postal indicia stored in the temporary memory section 115 and that of valid postage RYOKIN.sub.-- LUT are displayed in location 4711 and location 4712. Furthermore, the value obtained by subtracting RYOKIN.sub.-- LUT from RYOKIN.sub.-- TTL is displayed in location 4713. In this way, the operator is informed of the results of detecting the object. Similarly, the mail image information stored in the mail image memory 118 and the statistical data items stored in the data storage section 116 can also be displayed. The data communication section 124 in the input/output section is an apparatus for linking with an external communication line such as a modem and transmitting data. Using the data communication section 124, the host computer can pump up statistical data items including the total number of processes per day and the amount of money processed. Furthermore, when a new postal indicia such as a commemorative stamp is issued, it is possible to update the dictionary in the postal indicia dictionary memory 120 using the communication line. While in the embodiment, the invention has been applied only to domestic first-class mail and second-class mail, it is not limited to these. For instance, the invention may be applied to third-class mail and fourth-class mail, and further to ordinary packages, bookrate packages, and home delivery service. Although in the embodiment, postage is determined only by physical information and special delivery information on the mail, the invention may be applied to a postage system where postage differs with the destination or the days required for delivery, such as a postage system applied to overseas mail, without departing from the scope of the invention. In addition to a method of weighing a load, the weight sensor 105 produces a similar result by a method of forcing the object to collide with a barrier provided in the transport path and measuring the impulse and the speed to determine the weight. The optical read sensor 103 may be a two-dimensional area sensor instead of a one-dimensional sensor. Furthermore, of the image information items obtained by the sensor 103, the values obtained by converting YUBIN.sub.-- W and YUBIN.sub.-- H indicating the outer appearance of a piece of mail into units of length may be determined to be KEIJO.sub.-- W and KEIJO.sub.-- H indicating mail's shape information. In this case, the size sensor 104 and the size detecting section 110 are not necessary. The sensor 103 may be a color read sensor. In this case, color information may be sensed as a physical quantity of an object, which enables the invention to be applied to a system where postage differs with the color of an object, for example. While in the embodiment, the transport path is achieved by a belt, the object does not necessarily move. For example, the invention may be applied to a measuring instrument which senses the weight and size of a piece of mail at a window in a post office and displays the postage. As described above in detail, with the present invention, by measuring the physical information on an object in connection with postage, such as the size, thickness, and weight, calculating the valid postage on the basis of a postage table for the physical quantities previously stored, and discriminating the postage on the postal indicia on the object through an image information process, it is determined whether or not the valid postage determined by the physical information has been paid. According to the result, the object can be classified. Statistical data on each type or on the postage for all objects or the number of pieces of mail can be measured. Furthermore, an indicator can be used to display the detected result. Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details, and representative devices shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
|
Same subclass Same class Consider this |
||||||||||
