[go: up one dir, main page]

CN111144336A - Automatic identification method for mobile phone number and invoice number of addressee facing to express bill - Google Patents

Automatic identification method for mobile phone number and invoice number of addressee facing to express bill Download PDF

Info

Publication number
CN111144336A
CN111144336A CN201911390819.2A CN201911390819A CN111144336A CN 111144336 A CN111144336 A CN 111144336A CN 201911390819 A CN201911390819 A CN 201911390819A CN 111144336 A CN111144336 A CN 111144336A
Authority
CN
China
Prior art keywords
image
mobile phone
phone number
express
waybill
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911390819.2A
Other languages
Chinese (zh)
Inventor
杨晓岚
王强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Jinlinbao Technology Co ltd
Original Assignee
Guizhou Jinlinbao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Jinlinbao Technology Co ltd filed Critical Guizhou Jinlinbao Technology Co ltd
Priority to CN201911390819.2A priority Critical patent/CN111144336A/en
Publication of CN111144336A publication Critical patent/CN111144336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/414Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/243Aligning, centring, orientation detection or correction of the image by compensating for image skew or non-uniform image deformations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/158Segmentation of character regions using character size, text spacings or pitch estimation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Geometry (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Computer Graphics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Character Input (AREA)

Abstract

The invention belongs to the technical field of express waybill identification, and particularly relates to an automatic identification method, system and device for a mobile phone number and a waybill number of a receiver facing an express waybill, aiming at solving the problem that the accuracy rate of identifying the mobile phone number and/or the waybill number of the receiver by using the existing identification method is low. The system method comprises the steps of obtaining an express bill image as a first image; carrying out gray level processing on the first image, and extracting each straight line in a foreground area of the image; acquiring an inclination angle of the first image and rotating to obtain a second image; acquiring character information in the second image, and extracting all mobile phone numbers; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result; and matching and correcting the preliminary screening result through the database, and outputting the phone number of the receiver. Or acquiring the waybill number in the second image by a one-dimensional code identification method. The method and the device improve the accuracy of identifying the mobile phone number and/or the invoice number of the addressee in the express bill.

Description

Automatic identification method for mobile phone number and invoice number of addressee facing to express bill
Technical Field
The invention belongs to the technical field of express waybill identification, and particularly relates to an automatic identification method, system and device for a mobile phone number and a waybill number of a receiver facing an express waybill.
Background
In recent years, with the development of the fields of e-commerce and logistics, the express delivery quantity is rapidly increased, and great challenges are brought to the express delivery and logistics industry. In the whole express delivery logistics industry, terminal distribution is always the link with the highest cost, the longest consumed time and the lowest efficiency. At the beginning, couriers and other express terminal workers face a large number of express delivery everyday, and the courier number and/or the recipient phone number of an express delivery bill need to be manually recorded, which is certainly an inefficient and heavy working mode. With the development of the technology, a handheld terminal (such as a code scanning gun) appears later, and the working efficiency of couriers and express delivery end workers is improved. However, the handheld terminal identifies the waybill number of the express waybill in a photoelectric mode, so that the cost is high; and the courier mostly adopts the mode of manual entry to type in the addressee's cell-phone number, and is inefficient, easily goes out the mistake.
Information such as one-dimensional codes for storing waybill numbers and recipient mobile phone numbers is stored on most express waybills, so that a data basis is provided for image recognition. Meanwhile, the express waybill picture is stored, and if any problem occurs in the future, a data basis is provided for tracing the problem. Some mobile terminal-based software recognizes the waybill number and/or the recipient mobile phone number by acquiring an express waybill image, can quickly acquire a recognition result, and greatly improves the efficiency of couriers and express terminal workers. However, the express bill contains more information and the extraction conditions are complex, so that the accuracy of the extracted data is low. Therefore, the invention provides an automatic identification method of the phone number and the invoice number of the addressee facing to the express bill.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, to solve the problem that the accuracy of identifying the mobile phone number of the recipient and/or the number of the invoice is low in the existing information identification method for the express bill, the first aspect of the present invention provides an automatic identification method for the mobile phone number of the recipient for the express bill, the method comprising:
s100, acquiring an express bill image to be identified as a first image;
step S200, carrying out gray level processing on the first image, and extracting each straight line in a foreground area of the first image;
step S300, selecting one of the straight lines as a straight line to be processed based on a preset condition, calculating the slope of the straight line to be processed, and acquiring the inclination angle of the first image based on the slope; rotating the first image according to the inclination angle, and taking the rotated image as a second image;
step S400, acquiring the text information in the second image, and extracting each mobile phone number in the text information; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result of the mobile phone number of the receiver;
and S500, matching and correcting the preliminary screening result through a pre-constructed mobile phone number database, and outputting the number of the receiver mobile phone.
In some preferred embodiments, in step S200, "extracting each line in the foreground region of the input image", the calculation method is: and performing edge detection on the input image after the gray processing, and extracting each straight line in a foreground region of the image through Hough transform after the detection is completed.
In some preferred embodiments, in step S300, "one of the straight lines is selected as the straight line to be processed based on the preset condition", the method includes: acquiring a rectangular contour line of a foreground area of the first image, taking the length of the rectangular contour line as a straight line to be processed or acquiring the length of each straight line and sequencing, and randomly selecting one straight line from the first N straight lines as the straight line to be processed or randomly selecting one straight line from each straight line as the straight line to be processed; and N is the number of straight lines with the length of each straight line being greater than a preset length threshold value.
In some preferred embodiments, in step S300, "obtaining the tilt angle of the input image based on the slope" includes:
θ=DEGREES(A)
A=a tan(S)
where θ is the tilt angle, A is the camber value, S is the slope, atan (. cndot.) is the arctangent function, and DEGRES (. cndot.) is the calculation function.
In some preferred embodiments, the method of "extracting each mobile phone number in the text message" in step S400 includes: and screening the characters of the set type in the text information through a preset first strategy, and extracting each mobile phone number in the text information through a regular expression after screening.
In some preferred embodiments, the method of "filtering the characters of the set type in the text message by a preset first policy" includes:
removing the spaces and punctuations in the character information to obtain preliminarily screened character information;
and removing the telephone numbers and the numbers of the non-mobile phone numbers in the preliminarily screened character information through a regular expression to obtain the finally screened character information.
The second aspect of the invention provides an automatic identification method of an invoice number facing an express waybill, which comprises the following steps:
step A100, acquiring a rotated express waybill image as a second image based on the methods from step S100 to step S300 in the express waybill-oriented recipient mobile phone number automatic identification method;
and A200, acquiring the waybill number in the second image by a one-dimensional code identification method.
In some preferred embodiments, step a200 further includes a matching correction step:
and C, matching and correcting the freight order number obtained in the step A200 with the unfinished order stored in the pre-constructed freight order number database, and outputting the freight order number.
In a third aspect of the present invention, an information identification method for an express waybill is provided, in which a recipient mobile phone number is obtained based on the automatic identification method for a recipient mobile phone number for an express waybill, an invoice number is obtained based on the automatic identification method for an invoice number for an express waybill, and the recipient mobile phone number and the invoice number are output as identification information.
The invention provides an automatic identification system of a recipient mobile phone number facing an express bill, which comprises an acquisition module, an extraction module, a rotation module, an identification module and a matching output module;
the acquisition module is configured to acquire an express waybill image to be identified as a first image;
the extraction module is configured to perform gray processing on the first image and extract each straight line in a foreground region of the first image;
the rotation module is configured to randomly select one of the straight lines as a straight line to be processed, calculate the slope of the straight line to be processed, and obtain the inclination angle of the first image based on the slope; rotating the first image according to the inclination angle, and taking the rotated image as a second image;
the identification module is configured to acquire text information in the second image and extract each mobile phone number in the text information; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result of the mobile phone number of the receiver;
and the matching output module is configured to match and correct the preliminary screening result through a pre-constructed mobile phone number database and output the mobile phone number of the receiver.
The fifth aspect of the invention provides an automatic identification system of an waybill number facing an express waybill, which comprises an acquisition module and an identification module;
the acquisition module is configured to be an acquisition module-a rotation module of the automatic identification system of the recipient mobile phone number facing the express waybill, and acquire a rotated express waybill image as a second image;
the identification module is configured to acquire the waybill number in the second image through a one-dimensional code identification method.
The sixth aspect of the invention provides an information identification system facing an express bill, which comprises an output module;
the output module is configured to acquire the phone number of the recipient based on the automatic identification system of the phone number of the recipient facing the express bill, acquire the invoice number based on the automatic identification system of the invoice number facing the express bill, and output the phone number of the recipient and the invoice number as identification information.
In a seventh aspect of the present invention, a storage device is provided, in which a plurality of programs are stored, and the programs are loaded by a processor and execute the above method for automatically identifying a mobile phone number of a recipient facing an express waybill and/or the above method for automatically identifying a waybill number facing an express waybill and/or the above method for identifying information facing an express waybill.
In an eighth aspect of the present invention, a processing apparatus is provided, which includes a processor, a storage device; a processor adapted to execute various programs; a storage device adapted to store a plurality of programs; the program is suitable for being loaded by a processor and executing the automatic identification method for the mobile phone number of the recipient facing the express bill and/or the automatic identification method for the invoice number facing the express bill and/or the information identification method facing the express bill.
The invention has the beneficial effects that:
the method and the device improve the accuracy of identifying the mobile phone number and/or the invoice number of the addressee in the express bill. According to the express waybill number one-dimensional code recognition method, gray level processing is carried out on the acquired express waybill image, all straight lines in the express waybill image are extracted through Hough transformation, one straight line is selected as a reference straight line based on a preset condition, the express waybill image to be recognized is subjected to rotation correction according to the slope of the straight line, the transverse direction or the longitudinal direction of the express waybill is determined, after multiple tests, the one-dimensional code recognition speed of the rotationally corrected waybill number is the highest, the accuracy is the highest, and the efficiency of an express terminal worker can be extremely high.
Meanwhile, full-text information contained in the express bill image after rotation correction is extracted, in order to ensure the accuracy of extracting the phone number of the receiver, characters which do not contain necessary information in the extracted full-text information are removed, and all the phone numbers in the express bill are extracted through a regular expression after the characters are removed. And screening the mobile phone numbers by combining the positions of the addressees in the extracted full-text information in the express bill to obtain a preliminary screening result of the mobile phone numbers of the addressees. And matching and correcting the preliminary screening result by using the pre-constructed mobile phone number database, and outputting the mobile phone number of the receiver, so that the accuracy of the identified mobile phone number of the receiver can be further ensured.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for automatically identifying a mobile phone number of a recipient facing an express bill according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an automatic waybill number identification method for an express waybill according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of an information identification method for an express waybill according to an embodiment of the present invention;
fig. 4 is a schematic frame diagram of an automatic identification system of a recipient mobile phone number for an express bill according to an embodiment of the present invention;
fig. 5 is a schematic frame diagram of an automatic waybill number identification system for an express waybill according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
A first embodiment of the present invention provides an automatic identification method for a recipient mobile phone number facing an express bill, as shown in fig. 1, including:
s100, acquiring an express bill image to be identified as a first image;
step S200, carrying out gray level processing on the first image, and extracting each straight line in a foreground area of the first image;
step S300, selecting one of the straight lines as a straight line to be processed based on a preset condition, calculating the slope of the straight line to be processed, and acquiring the inclination angle of the first image based on the slope; rotating the first image according to the inclination angle, and taking the rotated image as a second image;
step S400, acquiring the text information in the second image, and extracting each mobile phone number in the text information; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result of the mobile phone number of the receiver;
and S500, matching and correcting the preliminary screening result through a pre-constructed mobile phone number database, and outputting the number of the receiver mobile phone.
In order to more clearly explain the method for automatically identifying the mobile phone number of the recipient facing the express bill, the following will expand and detail the steps in an embodiment of the method in accordance with the present invention with reference to the accompanying drawings.
And S100, acquiring an express bill image to be identified as a first image.
In this embodiment, a WeChat applet or a self-developed mobile phone APP and the like are preferably used as an operation entry for automatic identification, a camera of the mobile terminal is called to photograph the express bill, and an image of the express bill is acquired. The express waybill image can also be obtained in other modes.
In the invention, the automatic identification of the mobile phone number of the receiver is realized in the form of mobile terminal-server-database. Therefore, the collected express waybill image is sent to the server to be automatically identified, the server side can carry out a series of processing and identification on the collected image, and finally the identified information is stored in the database.
Step S200, performing gray scale processing on the first image, and extracting each straight line in the foreground region of the first image.
In this embodiment, according to the obtained express delivery list image, a straight line of a foreground region part in the image is extracted first, and rotation correction is performed on the express delivery list image, so as to ensure the accuracy of identification. The specific treatment is as follows:
and carrying out gray level processing on the acquired express delivery surface single image, carrying out edge detection on the image after processing, and acquiring all straight lines in the image through acquisition and transformation according to a detection result.
Step S300, selecting one of the straight lines as a straight line to be processed based on a preset condition, calculating the slope of the straight line to be processed, and acquiring the inclination angle of the first image based on the slope; and rotating the first image according to the inclination angle, and taking the rotated image as a second image.
In this embodiment, one of the straight lines is selected as a reference according to the obtained straight lines, and the express waybill image is subjected to rotation correction.
Regarding the selection of the reference line, the invention provides three strategies: acquiring a rectangular contour line (namely the contour of the express bill) of a foreground area of the first image, taking the length of the rectangular contour line as a reference straight line (a straight line to be processed) or acquiring the lengths of all the straight lines, sequencing, and randomly selecting one straight line from the first N straight lines as the straight line to be processed or randomly selecting one straight line from all the straight lines as the straight line to be processed; and N is the number of straight lines with the length of each straight line being greater than a preset length threshold value.
According to the selected straight line to be processed, two points on the line are selected, and the coordinate is marked as (x)1,y1)、(x2,y2) The slope of the straight line is calculated according to the coordinates, which is denoted as S, and the calculation is shown as formula (1):
S=(y2-y1)/(x2-x1) (1)
calculating the camber value by the slope and recording as A, wherein the calculation process is shown as formula (2):
A=a tan(S) (2)
then converting the camber value into an inclination angle and recording the inclination angle as theta, wherein the calculation process is shown as a formula (3)
θ=DEGREES(A) (3)
This angle is the angle that the picture needs to be rotated. If θ is positive angle, 45 ° clockwise rotation, and if negative angle, 45 ° counterclockwise rotation. The processing procedure is to shoot the image in a front direction, if the shot express bill is shot in a reverse direction, a method of rotating according to inclination is the prior art, and a specific description is not given here.
Step S400, acquiring the text information in the second image, and extracting each mobile phone number in the text information; and taking the mobile phone number with the word spacing smaller than the set distance from the receiver information as a preliminary screening result of the mobile phone number of the receiver.
In this embodiment, according to the express delivery bill image after correcting the rotation, carry out the preliminary screening of addressee's cell-phone number, specific process is as follows:
and step S410, recognizing the text information in the express bill image, namely the full text information, by calling the existing third-party image-text recognition method. Removing special symbols such as spaces, dots, colons, plus signs and the like in the character information;
and step S420, eliminating the interference combination of the telephone number and the non-mobile phone number from the removed text information through a regular expression. Taking the excluded text information as finally screened text information;
step S430, extracting all mobile phone numbers in the express bill image through a regular expression based on the finally screened character information;
step S440, the order information usually contains characters such as 'receive' and 'send', and the phone number of the receiver can be preliminarily screened out according to the position relation between the characters and the phone number. Namely, the mobile phone number with the word spacing from the receiver information smaller than the set distance is used as the preliminary screening result of the mobile phone number of the receiver.
Because the existing image-text identification method extracts the characters according to lines during identification, the character space between the recipient information and the recipient mobile phone number distance cannot be too large. And taking the maximum word spacing of the receiver information and the receiver mobile phone number in practical application as a set distance.
If the number is less than the preset value, the acquired mobile phone number which is possibly the receiver is indicated. However, in order to ensure the accuracy, the invention needs to match the mobile phone numbers screened primarily again.
And S500, matching and correcting the preliminary screening result through a pre-constructed mobile phone number database, and outputting the number of the receiver mobile phone.
In this embodiment, the preliminarily screened recipient mobile phone numbers are re-matched by accumulating a large number of recipient mobile phone numbers in the database, and if not, the preliminarily screened recipient mobile phone numbers are corrected.
And if the mobile phone number database can not match the preliminarily screened mobile phone numbers, returning the preliminarily screened results to the operator, and checking and modifying the preliminarily screened results by the operator.
And finally, storing the identified mobile phone number of the receiver in a database, and performing the next operation according to actual needs, for example, the courier can give information to the receiver according to the obtained mobile phone number of the receiver so as to explain express transportation information.
A second embodiment of the present invention provides an automatic waybill number identification method for an express waybill, as shown in fig. 2, including:
step A100, acquiring a rotated express waybill image as a second image based on the methods from step S100 to step S300 in the express waybill-oriented recipient mobile phone number automatic identification method;
and A200, acquiring the waybill number in the second image by a one-dimensional code identification method.
In order to more clearly explain the automatic identification method of the waybill number oriented to the express waybill of the present invention, the following will expand and describe each step in an embodiment of the method of the present invention in detail with reference to the attached drawings.
Step A100, acquiring a rotated express waybill image as a second image based on the methods from step S100 to step S300 in the express waybill-oriented recipient mobile phone number automatic identification method.
The one-dimensional code region can be abstracted to a rectangular block region, so that the one-dimensional code has no positive and negative directions, and only has transverse, longitudinal or other oblique directions. The one-dimensional code recognition program is applied, and the horizontal or longitudinal direction of the single-face image can be determined through multiple tests, the one-dimensional code recognition speed is the fastest, and the accuracy is the highest, but the actually shot single-face image may be inclined, and at this time, the image needs to be rotated, and the image direction needs to be corrected, so that the recognition rate and the accuracy are improved.
In this embodiment, according to the method from step S100 to step S300 in the above express waybill-oriented recipient mobile phone number automatic identification method, a rotated express waybill image is obtained.
And A200, acquiring the waybill number in the second image by a one-dimensional code identification method.
In this embodiment, the waybill number of the express waybill is directly obtained by using a one-dimensional code recognition method.
Step a200 is followed by a matching correction step: and C, matching and correcting the freight order number obtained in the step A200 with the unfinished order stored in the pre-constructed freight order number database, and outputting the freight order number. The step is to improve the identification accuracy of the waybill number, and the selection can be carried out according to the actual situation in the actual application process. Meanwhile, manual checking and correction can also be carried out.
In an information identification method for an express waybill in a third embodiment of the present invention, as shown in fig. 3, a recipient mobile phone number is obtained based on the automatic identification method for a recipient mobile phone number for an express waybill, an invoice number is obtained based on the automatic identification method for an invoice number for an express waybill, and the recipient mobile phone number and the invoice number are output as identification information.
In this embodiment, in an actual express transportation process, both the recipient phone number and the waybill number of the express bill may be required. For example: when the courier sends the express signing information to the receiver.
As shown in fig. 4, the system for automatically identifying a recipient mobile phone number for an express bill in a fourth embodiment of the present invention includes an obtaining module 10, an extracting module 20, a rotating module 30, an identifying module 40, and a matching output module 50;
the obtaining module 10 is configured to obtain an express waybill image to be identified as a first image;
the extraction module 20 is configured to perform gray processing on the first image and extract each straight line in a foreground region of the first image;
the rotation module 30 is configured to randomly select one of the straight lines as a straight line to be processed, calculate a slope of the straight line to be processed, and obtain an inclination angle of the first image based on the slope; rotating the first image according to the inclination angle, and taking the rotated image as a second image;
the identification module 40 is configured to acquire text information in the second image and extract each mobile phone number in the text information; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result of the mobile phone number of the receiver;
the matching output module 50 is configured to match and correct the preliminary screening result through a pre-established mobile phone number database, and output a mobile phone number of a recipient.
An automatic identification system for an waybill number of an express waybill in a fifth embodiment of the present invention, as shown in fig. 5, includes an obtaining module 100 and an identifying module 200;
the obtaining module 100 is configured to obtain a rotated express waybill image as a second image based on the automatic identification system-obtaining module-rotating module for the recipient mobile phone number facing the express waybill;
the identification module 200 is configured to acquire the waybill number in the second image by a one-dimensional code identification method.
An information identification system for an express waybill according to a sixth embodiment of the present invention includes an output module 1000;
the output module 1000 is configured to acquire a recipient phone number based on the automatic identification system for a recipient phone number for an express waybill, acquire an invoice number based on the automatic identification system for an invoice number for an express waybill, and output the recipient phone number and the invoice number as identification information.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and related description of the system described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
It should be noted that, the system for automatically identifying a mobile phone number of a recipient facing an express waybill and/or the system for automatically identifying a waybill number facing an express waybill and/or the system for identifying information facing an express waybill provided in the foregoing embodiments are only illustrated by dividing each functional module, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the modules or steps in the embodiments of the present invention are further decomposed or combined, for example, the modules in the foregoing embodiments may be combined into one module, or may be further split into multiple sub-modules, so as to complete all or part of the above described functions. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not to be construed as unduly limiting the present invention.
A storage device according to a seventh embodiment of the present invention stores therein a plurality of programs, which are adapted to be loaded by a processor and to implement the above-described method for automatically identifying a mobile phone number of a recipient for an express waybill and/or the above-described method for automatically identifying a waybill number for an express waybill and/or the above-described method for identifying information for an express waybill.
A processing apparatus according to an eighth embodiment of the present invention includes a processor, a storage device; a processor adapted to execute various programs; a storage device adapted to store a plurality of programs; the program is suitable for being loaded and executed by a processor to realize the automatic identification method of the mobile phone number of the recipient facing the express bill and/or the automatic identification method of the waybill number facing the express bill and/or the information identification method facing the express bill.
It is clear to those skilled in the art that, for convenience and brevity, the specific working processes and descriptions of the storage device and the processing device described above may refer to the corresponding processes in the example of the signing method, and are not described herein again.
Those of skill in the art would appreciate that the various illustrative modules, method steps, and modules described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that programs corresponding to the software modules, method steps may be located in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. To clearly illustrate this interchangeability of electronic hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as electronic hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The terms "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing or implying a particular order or sequence.
The terms "comprises," "comprising," or any other similar term are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (14)

1. An automatic identification method for a recipient mobile phone number facing an express bill is characterized by comprising the following steps:
s100, acquiring an express bill image to be identified as a first image;
step S200, carrying out gray level processing on the first image, and extracting each straight line in a foreground area of the first image;
step S300, selecting one of the straight lines as a straight line to be processed based on a preset condition, calculating the slope of the straight line to be processed, and acquiring the inclination angle of the first image based on the slope; rotating the first image according to the inclination angle, and taking the rotated image as a second image;
step S400, acquiring the text information in the second image, and extracting each mobile phone number in the text information; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result of the mobile phone number of the receiver;
and S500, matching and correcting the preliminary screening result through a pre-constructed mobile phone number database, and outputting the number of the receiver mobile phone.
2. The method for automatically identifying the mobile phone number of the recipient facing the express waybill according to claim 1, wherein in step S200, "extracting each straight line in the foreground area of the input image" includes: and performing edge detection on the input image after the gray processing, and extracting each straight line in a foreground region of the image through Hough transform after the detection is completed.
3. The method for automatically identifying the mobile phone number of the recipient facing the express waybill according to claim 1, wherein in step S300, "one of the straight lines is selected as a straight line to be processed based on a preset condition", and the method comprises: acquiring a rectangular contour line of a foreground area of the first image, taking the length of the rectangular contour line as a straight line to be processed or acquiring the length of each straight line and sequencing, and randomly selecting one straight line from the first N straight lines as the straight line to be processed or randomly selecting one straight line from each straight line as the straight line to be processed; and N is the number of straight lines with the length of each straight line being greater than a preset length threshold value.
4. The method for automatically identifying the mobile phone number of the recipient facing the express waybill according to claim 1, wherein in step S300, "obtaining the inclination angle of the input image based on the slope" includes:
θ=DEGREES(A)
A=atan(S)
where θ is the tilt angle, A is the camber value, S is the slope, tana (. cndot.) is the arctangent function, and DEGRES (. cndot.) is the calculation function.
5. The method for automatically identifying the mobile phone number of the recipient facing the express waybill according to claim 1, wherein in step S400, "extracting each mobile phone number in the text message" includes: and screening the characters of the set type in the text information through a preset first strategy, and extracting each mobile phone number in the text information through a regular expression after screening.
6. The method for automatically identifying the mobile phone number of the recipient facing the express bill as claimed in claim 5, wherein the method for screening the characters of the set type in the text message by a preset first strategy comprises:
removing the spaces and punctuations in the character information to obtain preliminarily screened character information;
and removing the telephone numbers and the numbers of the non-mobile phone numbers in the preliminarily screened character information through a regular expression to obtain the finally screened character information.
7. An automatic identification method of an waybill number facing an express waybill is characterized by comprising the following steps:
step A100, acquiring a rotated express bill image as a second image based on the method from step S100 to step S300 in the method for automatically identifying the mobile phone number of the recipient facing the express bill according to any one of claims 1 to 6;
and A200, acquiring the waybill number in the second image by a one-dimensional code identification method.
8. The method for automatically identifying the waybill number oriented to the express waybill of claim 7, wherein the step A200 is followed by a matching correction step:
and C, matching and correcting the freight order number obtained in the step A200 with the unfinished order stored in the pre-constructed freight order number database, and outputting the freight order number.
9. An information identification method facing an express waybill is characterized in that a mobile phone number of a recipient is acquired based on the automatic identification method facing the mobile phone number of the recipient of the express waybill of any one of claims 1 to 6, an invoice number is acquired based on the automatic identification method facing the invoice number of the express waybill of any one of claims 7 to 8, and the mobile phone number of the recipient and the invoice number are output as identification information.
10. An automatic identification system for a recipient mobile phone number of an express bill is characterized by comprising an acquisition module, an extraction module, a rotation module, an identification module and a matching output module;
the acquisition module is configured to acquire an express waybill image to be identified as a first image;
the extraction module is configured to perform gray processing on the first image and extract each straight line in a foreground region of the first image;
the rotation module is configured to randomly select one of the straight lines as a straight line to be processed, calculate the slope of the straight line to be processed, and obtain the inclination angle of the first image based on the slope; rotating the first image according to the inclination angle, and taking the rotated image as a second image;
the identification module is configured to acquire text information in the second image and extract each mobile phone number in the text information; taking the mobile phone number with the word spacing from the receiver information smaller than the set distance as a preliminary screening result of the mobile phone number of the receiver;
and the matching output module is configured to match and correct the preliminary screening result through a pre-constructed mobile phone number database and output the mobile phone number of the receiver.
11. An automatic identification system for an invoice number of an express waybill is characterized by comprising an acquisition module and an identification module;
the acquisition module is configured to be an acquisition module-a rotation module of the automatic identification system of the recipient mobile phone number facing the express waybill, and acquire a rotated express waybill image as a second image;
the identification module is configured to acquire the waybill number in the second image through a one-dimensional code identification method.
12. An information identification system facing an express waybill is characterized by comprising an output module;
the output module is configured to acquire the phone number of the recipient based on the automatic identification system of the phone number of the recipient facing the express bill, acquire the invoice number based on the automatic identification system of the invoice number facing the express bill, and output the phone number of the recipient and the invoice number as identification information.
13. A storage device in which a plurality of programs are stored, wherein the program applications are loaded and executed by a processor to implement the method for automatically identifying a recipient's mobile phone number of a courier bill according to any one of claims 1 to 6 and/or the method for automatically identifying a waybill number of a courier bill according to any one of claims 7 to 8 and/or the method for identifying information of a courier bill according to claim 9.
14. A processing device comprising a processor, a storage device; a processor adapted to execute various programs; a storage device adapted to store a plurality of programs; the program is suitable for being loaded and executed by a processor to realize the method for automatically identifying the mobile phone number of the addressee facing the express waybill according to any one of claims 1-6 and/or the method for automatically identifying the waybill number facing the express waybill according to any one of claims 7-8 and/or the method for identifying the information facing the express waybill according to claim 9.
CN201911390819.2A 2019-12-30 2019-12-30 Automatic identification method for mobile phone number and invoice number of addressee facing to express bill Pending CN111144336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390819.2A CN111144336A (en) 2019-12-30 2019-12-30 Automatic identification method for mobile phone number and invoice number of addressee facing to express bill

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390819.2A CN111144336A (en) 2019-12-30 2019-12-30 Automatic identification method for mobile phone number and invoice number of addressee facing to express bill

Publications (1)

Publication Number Publication Date
CN111144336A true CN111144336A (en) 2020-05-12

Family

ID=70521627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390819.2A Pending CN111144336A (en) 2019-12-30 2019-12-30 Automatic identification method for mobile phone number and invoice number of addressee facing to express bill

Country Status (1)

Country Link
CN (1) CN111144336A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610078A (en) * 2021-07-27 2021-11-05 递易(上海)智能科技有限公司 Method and equipment for calibrating mobile phone number recognition result
CN114118885A (en) * 2020-08-25 2022-03-01 顺丰科技有限公司 Method and device for identifying bill exception, electronic equipment and storage medium
CN114898386A (en) * 2022-05-09 2022-08-12 深圳前海百递网络有限公司 Electronic bill internal number extraction and category judgment method and related components
CN115240219A (en) * 2022-07-29 2022-10-25 中国银行股份有限公司 A method and device for processing cross-border remittance data based on image and text recognition
CN116012865A (en) * 2023-01-10 2023-04-25 上海中通吉网络技术有限公司 A method, system, storage medium and equipment for automatic labeling of express bills
CN116129451A (en) * 2023-01-03 2023-05-16 上海中通吉网络技术有限公司 Cross-bill judging method, system, medium and device for express warehouse-in data
CN116431854A (en) * 2023-04-18 2023-07-14 上海中通吉网络技术有限公司 A method, device and equipment for obtaining a complete mobile phone number of an encrypted face sheet

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3902047A (en) * 1973-08-31 1975-08-26 Ferranti Packard Ltd Label reader with rotatable television scan
CN102509383A (en) * 2011-11-28 2012-06-20 哈尔滨工业大学深圳研究生院 Feature detection and template matching-based mixed number identification method
JP2014137713A (en) * 2013-01-17 2014-07-28 Hidetoshi Konishi Data identification system
CN105279512A (en) * 2015-10-22 2016-01-27 东方网力科技股份有限公司 Tilt vehicle license plate recognition method and device
CN105512835A (en) * 2014-09-26 2016-04-20 深圳前海百递网络有限公司 Method and device for extracting waybill number
CN105589846A (en) * 2015-12-22 2016-05-18 北京奇虎科技有限公司 Number semantics recognition method, short message class detection method and device
JP5950317B1 (en) * 2016-02-25 2016-07-13 有限会社Ics Sakabe Code recognition system, code recognition method, code recognition program, and package sorting system
CN106446881A (en) * 2016-07-29 2017-02-22 北京交通大学 Method for extracting lab test result from medical lab sheet image
CN109344826A (en) * 2018-09-28 2019-02-15 李阳 A kind of character identifying method and system
CN109509362A (en) * 2017-09-15 2019-03-22 株式会社东芝 Signal recognition device, signal recognition method and driving assistance system
CN109633620A (en) * 2018-12-13 2019-04-16 广州极飞科技有限公司 The recognition methods of target object and device, operating equipment
CN110210488A (en) * 2019-06-14 2019-09-06 上海中通吉网络技术有限公司 The recognition methods of bar code and cell-phone number and device on a kind of express waybill
CN110363457A (en) * 2018-04-11 2019-10-22 苏宁易购集团股份有限公司 Method and system based on express delivery odd numbers matching express company's title
CN110401779A (en) * 2018-04-24 2019-11-01 中国移动通信集团有限公司 A method, device and computer-readable storage medium for identifying telephone numbers

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3902047A (en) * 1973-08-31 1975-08-26 Ferranti Packard Ltd Label reader with rotatable television scan
CN102509383A (en) * 2011-11-28 2012-06-20 哈尔滨工业大学深圳研究生院 Feature detection and template matching-based mixed number identification method
JP2014137713A (en) * 2013-01-17 2014-07-28 Hidetoshi Konishi Data identification system
CN105512835A (en) * 2014-09-26 2016-04-20 深圳前海百递网络有限公司 Method and device for extracting waybill number
CN105279512A (en) * 2015-10-22 2016-01-27 东方网力科技股份有限公司 Tilt vehicle license plate recognition method and device
CN105589846A (en) * 2015-12-22 2016-05-18 北京奇虎科技有限公司 Number semantics recognition method, short message class detection method and device
JP5950317B1 (en) * 2016-02-25 2016-07-13 有限会社Ics Sakabe Code recognition system, code recognition method, code recognition program, and package sorting system
CN106446881A (en) * 2016-07-29 2017-02-22 北京交通大学 Method for extracting lab test result from medical lab sheet image
CN109509362A (en) * 2017-09-15 2019-03-22 株式会社东芝 Signal recognition device, signal recognition method and driving assistance system
CN110363457A (en) * 2018-04-11 2019-10-22 苏宁易购集团股份有限公司 Method and system based on express delivery odd numbers matching express company's title
CN110401779A (en) * 2018-04-24 2019-11-01 中国移动通信集团有限公司 A method, device and computer-readable storage medium for identifying telephone numbers
CN109344826A (en) * 2018-09-28 2019-02-15 李阳 A kind of character identifying method and system
CN109633620A (en) * 2018-12-13 2019-04-16 广州极飞科技有限公司 The recognition methods of target object and device, operating equipment
CN110210488A (en) * 2019-06-14 2019-09-06 上海中通吉网络技术有限公司 The recognition methods of bar code and cell-phone number and device on a kind of express waybill

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李毅荣等: "基于Tesseract-OCR的快递单中手机号码识别应用的实现", 《电子测试》 *
李毅荣等: "基于Tesseract-OCR的快递单中手机号码识别应用的实现", 《电子测试》, 15 November 2018 (2018-11-15) *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114118885A (en) * 2020-08-25 2022-03-01 顺丰科技有限公司 Method and device for identifying bill exception, electronic equipment and storage medium
CN114118885B (en) * 2020-08-25 2025-05-13 顺丰科技有限公司 Abnormal identification method, device, electronic device and storage medium
CN113610078A (en) * 2021-07-27 2021-11-05 递易(上海)智能科技有限公司 Method and equipment for calibrating mobile phone number recognition result
CN113610078B (en) * 2021-07-27 2024-03-12 递易(上海)智能科技有限公司 A method and equipment for calibrating mobile phone number recognition results
CN114898386A (en) * 2022-05-09 2022-08-12 深圳前海百递网络有限公司 Electronic bill internal number extraction and category judgment method and related components
CN115240219A (en) * 2022-07-29 2022-10-25 中国银行股份有限公司 A method and device for processing cross-border remittance data based on image and text recognition
CN116129451A (en) * 2023-01-03 2023-05-16 上海中通吉网络技术有限公司 Cross-bill judging method, system, medium and device for express warehouse-in data
CN116012865A (en) * 2023-01-10 2023-04-25 上海中通吉网络技术有限公司 A method, system, storage medium and equipment for automatic labeling of express bills
CN116431854A (en) * 2023-04-18 2023-07-14 上海中通吉网络技术有限公司 A method, device and equipment for obtaining a complete mobile phone number of an encrypted face sheet

Similar Documents

Publication Publication Date Title
CN111144336A (en) Automatic identification method for mobile phone number and invoice number of addressee facing to express bill
CN110619333B (en) Text line segmentation method, text line segmentation device and electronic equipment
CN111340023B (en) Text recognition method and device, electronic equipment and storage medium
CN107609489B (en) Handwriting writing path evaluation device and method and electronic equipment
CN110210488A (en) The recognition methods of bar code and cell-phone number and device on a kind of express waybill
CN102902945A (en) Distortion correction method of outer contour based on quick response matrix code
CN111582000B (en) Bar code positioning method, bar code positioning device and related equipment
CN115273108B (en) Automatic collection method and system for artificial intelligent identification
CN114241463A (en) Signature verification method and device, computer equipment and storage medium
CN111462388A (en) Bill inspection method and device, terminal equipment and storage medium
CN109214229B (en) Bar code scanning method and device and electronic equipment
CN113743360B (en) Intelligent seal analysis method and device
CN109635729B (en) A form identification method and terminal
CN110490190A (en) A kind of structured image character recognition method and system
CN111598076B (en) Method and device for detecting and processing date in label image
CN110263239B (en) Invoice identification method and device, storage medium and computer equipment
CN114004799B (en) A tire barcode recognition method, system and device based on machine vision
CN106569946B (en) Mobile terminal performance test method and system
CN110363457A (en) Method and system based on express delivery odd numbers matching express company's title
CN118334670A (en) Seal content identification method, system and medium
CN109359497A (en) A kind of positioning and recognition methods in VAT invoice two-dimensional image code region
CN117746410A (en) Automatic book cataloging method, equipment and medium for cataloging robot
CN112633275B (en) Multi-bill mixed shooting image correction method and system based on deep learning
CN113409347B (en) Method and device for extracting point cloud boundary, storage medium and electronic equipment
CN115221910A (en) Two-dimensional code identification method, device, device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200512

RJ01 Rejection of invention patent application after publication