A method and system for quality inspection of a delivery signature photograph picture

By collecting image sequences and motion data from the signing process, and combining object detection and OCR recognition, a comprehensive quality inspection score for express delivery signing images is calculated. This solves the problems of low efficiency and misjudgment in the quality inspection of express delivery signing images in existing technologies, and realizes efficient and accurate automated evaluation of the integrity of the package, the readability of the waybill, and the authenticity of the shooting behavior.

CN123141284APending Publication Date: 2026-11-20SHANGHAI YUANQING INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610987167.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-03
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The current quality inspection of express delivery signature photos relies on manual review, with a single evaluation dimension. It is difficult to simultaneously judge the integrity of the package, the readability of the waybill, and the authenticity of the shooting behavior, resulting in low quality inspection efficiency and easy misjudgment.

Method used

By collecting image sequences, GPS positioning data, and IMU motion data from the signing process, a unique valid evidence frame is selected. Combined with target detection, perspective correction, and OCR recognition, scores are calculated for the integrity of the package, readability of the waybill, and authenticity of the behavior, ultimately generating a comprehensive quality inspection score.

Benefits of technology

It improves the accuracy and automation of quality inspection of signed receipt images, reduces the cost of manual review and the risk of misjudgment, and effectively identifies abnormal situations such as missing subject, blurry waybill, and off-site shooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123141284A_ABST
    Figure CN123141284A_ABST
Patent Text Reader

Abstract

The application discloses a kind of express receipt photograph picture quality inspection method and system, it is related to intelligent logistics and image recognition technical field, including, acquisition receipt process image sequence and multi-source sensing data, and from it screening only effective evidence frame;Evidence frame is carried out target detection, obtain express main body and face single area, calculate main body integrity and face single readability feature;Based on OCR confidence, image gradient and local contrast construct face single quality score;Fusion GPS information calculates behavior authenticity score;Finally, multidimensional feature fusion calculation comprehensive quality inspection score, realize to the pass of receipt picture, review or rejection determination.The application realizes from image quality, spatial position, behavior feature to the multi-level joint determination of source authenticity, improves receipt photograph anti-forgery capability and automatic quality inspection precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent logistics and image recognition technology, and in particular to a method and system for quality inspection of express delivery receipt photos. Background Technology

[0002] With the development of e-commerce and logistics, photos of express delivery receipts have become crucial evidence for proving delivery status, handling customer complaints, and assigning responsibility. Current quality inspection methods for these photos rely heavily on manual sampling or single-image clarity checks, typically only determining if the image is blurry, too dark, or overexposed. They struggle to simultaneously assess the integrity of the package, the clarity of the waybill, and the authenticity of the photographic act. In actual delivery, factors such as shooting angle, hand tremors, lighting variations, and obstructions can easily lead to issues like cropped subjects, glare on the waybill, and blurry text. Uploading photos from albums, supplementing historical images, or taking photos off-site can also result in discrepancies between the signed receipt evidence and the actual delivery. Existing technologies lack collaborative analysis of image sequences, location information, and motion data, making it difficult to generate a unified and reliable comprehensive judgment, easily leading to misjudgments, omissions, and increased manual review costs. Therefore, there is an urgent need for a quality inspection method and system for express delivery receipt photos that can jointly evaluate image quality, subject integrity, waybill readability, and the authenticity of the act. Summary of the Invention

[0003] In view of the aforementioned existing problems, the present invention is proposed.

[0004] Therefore, this invention provides a method and system for quality inspection of express delivery receipt photos, which solves the problems of low quality inspection efficiency caused by the reliance on manual review and the single evaluation dimension of existing express delivery receipt photo quality inspection, which makes it difficult to simultaneously judge the integrity of the package, the readability of the waybill, and the authenticity of the shooting behavior.

[0005] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a method for quality inspection of express delivery receipt photos, which includes, Collect data from the signing process and identify a unique, valid evidence frame from the image sequence; Based on the filtered detection result set output from the data frame, select the main frame and the label frame, and calculate the integrity score of the main body of the express shipment. The shipping label image is obtained from the shipping label frame, and the corresponding evaluation value is calculated. OCR is performed on the corrected shipping label image to obtain the character confidence set, and the shipping label readability score is further calculated. A behavioral consistency score is calculated based on continuous GPS positioning results, and a behavioral authenticity score is further calculated. Calculate the integrity score of the package and quantitatively evaluate the overall quality of the package receipt photos.

[0006] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: the step of collecting data of the receipt process and determining the unique valid evidence frame from the image sequence refers to collecting the image sequence of the receipt process. Location data Environmental WiFi data Sports data and system timestamp; Calculate the first Frame Image gradient energy And based on gradient energy Calculate the fuzzy index ; Calculate the first Effective exposure ratio of frame image ; The shooting stability is calculated based on the IMU angular velocity near the corresponding time of the image frame. ; Based on the Gradient energy of a frame Effective exposure ratio Fuzzy Index Shooting stability Calculate evidence frame scores ; Select evidence frame scoring The highest frame is the only valid evidence frame. .

[0007] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: the set of detection results after filtering based on the data frame refers to the set of evidence frames. Image preprocessing is performed to meet the input requirements of the YOLO model, resulting in preprocessed evidence frames. ; Preprocessed evidence frames Input lightweight YOLO object detection model The candidate detection result set is obtained. ; For the candidate detection result set Non-maximum suppression is performed to obtain the filtered set of detection results. .

[0008] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: the selection of the main body frame and the label frame, and the calculation of the integrity score of the express delivery body refer to... Select the bounding box with the highest confidence level that is categorized as "Main Body of Package" as the final "Main Body of Package" bounding box. ; from Select the detection box with the highest detection confidence score that is categorized as "shipping label" as the final shipping label box. ; Calculate the area ratio of the main body of the package in the evidence frame. According to the proportion of the main body area of ​​the express package Calculate the body size score ; Calculate the truncation ratio of the main body of the express shipment The proportion of the waybill relative to the main body of the package ; Scoring based on body size Edge cutoff ratio The proportion included in the shipping label and subject detection confidence Calculate the integrity score of the main body of the express shipment. .

[0009] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: obtaining the waybill image based on the waybill frame and calculating the corresponding evaluation value refers to first obtaining the waybill image based on the waybill frame. From evidence frames Cutting out the image of the form ; right Perform perspective correction to obtain a corrected frontal single image. ; For corrected frontal single image Calculate local text gradient energy ; Calculate the local contrast of a single area .

[0010] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: performing OCR on the corrected front-facing receipt image to obtain a character confidence set refers to first performing grayscale conversion and size normalization processing on the corrected front-facing receipt image to obtain a standardized image. ; The standardized image is then input into the text detection module to locate the text regions in the image and output a set of candidate text regions. ; For each text region Text sub-images are obtained by cropping from the standardized image according to the corresponding bounding boxes. ; Normalize the size of the text sub-image. ; The normalized text sub-image is input into a character recognition network, which uses a convolutional neural network to extract visual features, then uses a bidirectional long short-term memory network to extract contextual features of the character sequence, and finally outputs the character probability. ; For each character position, the character with the highest probability is selected as the recognition result. At the same time, the highest probability is used as the confidence level for character recognition. ; After traversing the entire text region, the character confidence set is obtained. .

[0011] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: the calculation of the label readability score refers to the calculation of the label readability score based on the character confidence set. Calculate the average confidence level of OCR ; Gradient of face sheet Local contrast and OCR average confidence Calculate the readability score of the form .

[0012] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: the step of calculating the behavior consistency score based on continuous GPS positioning results and further calculating the behavior authenticity score refers to first calculating the average movement speed before and after taking the receipt photo based on continuous GPS positioning results. ; The cumulative motion intensity within the shooting window is calculated based on the triaxial acceleration data collected by the IMU. ; GPS average speed and IMU exercise intensity Perform normalization processing; Based on normalized GPS speed and IMU exercise intensity Calculate behavioral consistency score ; Calculate the stability score at the moment of shooting ; Based on behavioral consistency score And shooting stability score Calculate the authenticity score of behavior .

[0013] As a preferred embodiment of the express delivery receipt photo quality inspection method of the present invention, wherein: calculating the integrity score of the express delivery body and quantitatively evaluating the overall quality of the express delivery receipt photo refers to... The proportion of the cut-off edge of the main body of the express package Label readability score and authenticity score Calculate the overall quality inspection score of the package delivery receipt photos. ; Based on the comprehensive quality inspection score Combined with the proportion of the main body of the express shipment cut off and confidence level of the main body of the express package Output deterministic decision result .

[0014] Secondly, this invention provides a quality inspection system for express delivery receipt photos, including, The data acquisition module is used to collect image sequences, GPS positioning data, environmental WiFi data, IMU motion data and system timestamps during the signing process. It calculates the gradient energy, effective exposure ratio, blur index and shooting stability of the image frames, and determines the unique valid evidence frame based on the evidence frame score. The target detection module is used to preprocess the valid evidence frame, input the preprocessed valid evidence frame into the target detection model, and perform non-maximum suppression on the candidate detection results to obtain the main body frame and the label frame of the express mail. The main body integrity analysis module is used to calculate the main body area ratio, main body size score, edge truncation ratio and waybill inclusion ratio based on the main body frame of the express shipment, and calculate the main body integrity score of the express shipment by combining the main body detection confidence. The waybill quality analysis module is used to crop the waybill image according to the waybill frame and perform perspective correction, calculate the local text gradient energy and local contrast of the waybill image, perform OCR recognition to obtain the character confidence set, and calculate the waybill readability score. The behavior authenticity analysis module is used to calculate the average moving speed based on continuous GPS positioning results, calculate the motion intensity and shooting stability based on IMU data, and calculate the behavior authenticity score based on the average moving speed, motion intensity and shooting stability. The comprehensive quality inspection module is used to integrate the integrity score of the main body of the express shipment, the edge truncation ratio, the readability score of the waybill, and the authenticity score of the behavior to calculate the comprehensive quality inspection score, and output the judgment result of quality inspection pass, manual review or re-photographing based on the comprehensive quality inspection score and preset judgment conditions.

[0015] The beneficial effects of this invention are as follows: By collecting image sequences, GPS positioning data, and IMU motion data during the signing process, and combining image clarity, exposure level, and shooting stability, this invention filters out the only valid evidence frame, reducing the interference of blurry, overexposed, and shaky images on the quality inspection results. Furthermore, by utilizing target detection, perspective correction, and OCR recognition, it quantitatively evaluates the integrity of the package's main body, the inclusion relationship of the waybill, and the readability of the waybill. It also verifies the authenticity of the shooting behavior by combining GPS movement speed and IMU motion intensity, effectively identifying anomalies such as missing main body, blurry waybill, off-site shooting, and historical image re-upload. Finally, it integrates multi-dimensional indicators to generate a comprehensive quality inspection score, outputting a pass, review, or reshoot result, thereby improving the accuracy, automation level, and anti-counterfeiting capabilities of the signing image quality inspection, and reducing the cost of manual review and the risk of misjudgment. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart of a method for quality inspection of express delivery receipt photos in Example 1.

[0018] Figure 2 This is a structural diagram of a quality inspection system for express delivery receipt photo taking in Example 1. Detailed Implementation

[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0020] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0021] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0022] Example 1, referring to Figure 1 and Figure 2This is the first embodiment of the present invention, which provides a method for quality inspection of express delivery receipt photos, including the following steps: S1. Collect data from the signing process and determine the unique valid evidence frame from the image sequence; S1.1, Collect data from the receipt and signing process; When the courier triggers the signature and photo capture operation on the mobile terminal, the mobile terminal collects a sequence of images of the signature process. Location data Environmental WiFi data Sports data and system timestamp; Specifically, collecting image sequences of the signing process. :

[0023] in, Indicates the first Original image frame This indicates the number of image frames, with a preferred value of 20, which can cover the entire process of the user raising their phone, aiming at the package, pressing the shutter button, and pausing briefly. Collect raw GPS positioning data :

[0024] in, Indicates GPS latitude value, Indicates GPS longitude value, Indicates GPS timestamp, This represents the GPS positioning accuracy radius, in meters. GPS positioning was considered effective at the time; Acquiring IMU inertial sensor data :

[0025] in, Indicates the first The triaxial acceleration at each sampling point Indicates the first The triaxial angular velocity of each sampling point Indicates the IMU sampling time. Indicates the number of IMU sampling points, with a preferred value. This value can capture hand tremors without causing significant power consumption pressure; S1.2 Determine the unique valid evidence frame from the image sequence; Calculate the first Frame Image gradient energy :

[0026] in, Indicates the total number of pixels in the image. Represents the first in the image 1 pixel Indicates the first Frame image at pixels The horizontal Sobel gradient value at that point. Indicates the first Frame image at pixels The vertical Sobel gradient value at a given point is obtained by converting the acquired image into a grayscale image, and then calculating it using a 3×3 Sobel convolution operator centered on each pixel in the grayscale image. Based on gradient energy Calculate the fuzzy index :

[0027] in, To prevent division by zero, the preferred value is [value missing]. ; Calculate the first Effective exposure ratio of frame image :

[0028] in, Indicates the first Pixels in a frame image grayscale brightness value, This indicates an indicator function that takes the value 1 when the condition inside the parentheses is true, and 0 otherwise. This indicates the lower limit of effective brightness, with a preferred value of 35. This indicates the upper limit of effective brightness, with a preferred value of 230, which will not mistake obviously underexposed areas for effective areas, nor will it mistake overexposed white spots for effective areas. Furthermore, the shooting stability is calculated based on the IMU angular velocity near the corresponding time of the image frame. :

[0029] in, Indicates the relationship with the first A set of IMU sampling points whose frame timestamps differ by no more than 50ms. Indicates the number of sampling points in the set. The L2 norm represents the three-axis angular velocity vector; Based on the Gradient energy of a frame Effective exposure ratio Fuzzy Index Shooting stability Calculate evidence frame scores :

[0030] in, This represents the gradient normalization constant, preferably 20, which allows for... The image was significantly downgraded in sharpness score, while The images can gradually achieve higher scores; This represents the fuzzy normalization threshold, with a preferred value of 0.05. This allows images to be identified as fuzzy risk images when the average gradient energy is below 20, while gradually obtaining higher sharpness evaluations when the average gradient energy is above 20. This represents the normalization threshold for angular velocity, with a preferred value of [value to be filled in]. It can tolerate slight hand-held shaking while effectively suppressing noticeably shaky frames; The weights for sharpness, exposure, blur suppression, and stability are respectively set as follows, with the preferred settings being: It can ensure the recognizability of signed delivery evidence images while taking into account the fluctuations of handheld shooting in actual delivery scenarios; Select evidence frame scoring The highest frame is the only valid evidence frame. :

[0031] in, Indicates the sequence number of the highest-rated frame; S2. Output the filtered detection result set based on the data frame; select the main frame and the label frame, and calculate the integrity score of the main body of the package; For evidence frames Image preprocessing is performed to meet the input requirements of the YOLO model, resulting in preprocessed evidence frames. :

[0032] in, This indicates image resizing processing; and These represent the input width and input height of the YOLO model, respectively. This indicates pixel normalization, used to convert image pixel values ​​into a numerical range that the YOLO model can process. Subsequently, the preprocessed evidence frames Input lightweight YOLO object detection model The candidate detection result set is obtained. :

[0033] in, This represents the set of candidate detection results output by the YOLO model, specifically as follows:

[0034] in, Indicates the first Candidate target boxes, This represents the coordinates of the top-left corner of the candidate target bounding box. These represent the width and height of the candidate bounding box, respectively. Indicates the first The target categories of the candidate target boxes (including the main category of the express shipment) and shipping label categories ); Indicates the first Detection confidence of each candidate bounding box; This indicates the number of candidate bounding boxes.

[0035] For the candidate detection result set Non-maximum suppression is performed to remove duplicate bounding boxes, retaining only the more accurate and confident detection boxes, resulting in a filtered set of detection results. :

[0036] in, This indicates non-maximum suppression, used to retain the candidate box with the highest confidence among multiple overlapping candidate boxes; After obtaining the filtered set of test results Then, the results are selected according to the target category; for the main category of the express shipment, from... Select the bounding box with the highest confidence level that is categorized as "Main Body of Package" as the final "Main Body of Package" bounding box. :

[0037] in, Represents the main frame of the package; Indicates the confidence level of the main body detection of the express package; Indicates the first The target category of each candidate detection box is the main category of the express shipment; For the waybill category, from Select the detection box with the highest detection confidence score that is categorized as "shipping label" as the final shipping label box. :

[0038] in, Represents a single-sided frame; Indicates the confidence level of the waybill detection; Indicates the first The category of each candidate target box is the form category; Furthermore, the area ratio of the main body of the package in the evidence frame is calculated. :

[0039] in, and Representing evidence frames respectively Image width and image height; Based on the proportion of the main body area of ​​the express package Calculate the body size score :

[0040] Among them, the central value of the reasonable area ratio of the main body of the express package The preferred value is It can balance the integrity of the package and the visibility of details; Calculate the truncation ratio of the main body of the express shipment :

[0041] in, Represents the main body of the package With image boundary (including images) The distance between the upper, lower, left, and right boundaries is less than the boundary distance. The sum of the side lengths, that is, if the distance between a certain side and the corresponding image boundary is less than the preset boundary distance. Then the length of that side is included in the calculation. Boundary distance The preferred value is Pixels, when the distance between the main frame of the package and the image boundary is insufficient When the resolution is low, there is usually a risk that the edges of the package may not be fully visible in the frame. Indicates the perimeter of the main frame of the package; Calculate the proportion of the waybill relative to the main body of the package. :

[0042] in, Representation of single-sided frame With the main frame of the express delivery The area of ​​their intersection; Indicates the area of ​​a single frame; Scoring based on body size Edge cutoff ratio The proportion included in the shipping label and subject detection confidence Calculate the integrity score of the main body of the express shipment. :

[0043] in, These represent the weights corresponding to the main body size, edge integrity, label inclusion relationship, and main body detection confidence, respectively, and are preferably set as follows: Among the signed receipt evidence images, the most unacceptable is when the main body of the package is not fully visible in the frame, therefore edge integrity has the highest weight; the size of the main body directly affects the recognizability of the package information, therefore it has the second highest weight; the waybill inclusion relationship is used to determine the positional consistency between the waybill area and the main body of the package; the main body detection confidence serves as a supplementary factor to the reliability of the target detection model; Based on the score of the integrity of the package and the proportion of the cut-off edge of the main body of the package The results generate corresponding information; specifically, when the package's integrity score is... Or the proportion of the cut-off edge of the main body of the package. When the output body is incomplete, the tag is displayed. It also generates a reshoot prompt message: "The package is not fully in the frame. Please back up and make the package appear fully in the center of the frame."

[0044] S3. Obtain the form image based on the form frame and calculate the corresponding evaluation value; perform OCR on the corrected form image to obtain the character confidence set; further calculate the form readability score; First, based on the form frame From evidence frames Cutting out the image of the form :

[0045] in, From the original evidence frame According to the specified shipping label area frame Accurately extract the image region of the shipping label; To reduce the impact of shooting tilt, Perform perspective correction to obtain a corrected frontal single image. :

[0046] in, This indicates that the four corner points of a single-sided area are used as control points for perspective transformation. Functions from libraries such as OpenCV are used to calculate... The 3×3 transformation matrix; Indicates perspective transformation operation, based on Establish the correspondence between the target image coordinates and the original image coordinates, and perform pixel resampling at the corresponding positions to generate a perspective-corrected label image; For corrected frontal single image Calculate local text gradient energy :

[0047] in, This indicates the number of pixels in a corrected single-image image. Represents the pixels in the shipping label image. and These represent the pixel points of the shipping label image. Horizontal and vertical Sobel gradient values; Calculate the local contrast of a single area :

[0048] in, This indicates the average gray level of the foreground area of ​​the text on the waybill. This represents the average gray level of the background area of ​​the shipping label. This represents the standard deviation of grayscale in the foreground area of ​​the text. This represents the standard deviation of gray levels in the background area. To prevent division by zero constant; OCR is performed on the corrected frontal single image. Specifically, the corrected frontal single image is first converted to grayscale and its size is normalized to obtain a standardized image. :

[0049] in, This indicates grayscale normalization and size adjustment operations; The standardized image is then input into the text detection module to locate the text regions in the image and output a set of candidate text regions. :

[0050] in, Indicates the first One detected text region; For each text region Text sub-images are obtained by cropping from the standardized image according to the corresponding bounding boxes. :

[0051] Then, the text sub-image is sized and normalized. :

[0052] The normalized text sub-image is then input into the character recognition network, where a convolutional neural network is used to extract visual features, followed by a bidirectional long short-term memory network to extract contextual features of the character sequence. Finally, the character probability is output. :

[0053]

[0054]

[0055] The recognition network calculates the character category probability distribution based on the feature vectors. ,and , Indicates the number of character categories. Indicates that the text region belongs to the first... The probability of a character class; For each character position, the character with the highest probability is selected as the recognition result. At the same time, the highest probability is used as the confidence level for character recognition. :

[0056]

[0057] After traversing the entire text region, the character confidence set is obtained. :

[0058] in, Indicates the first OCR confidence of each recognized character This indicates the total number of characters identified; Based on character confidence set Calculate the average confidence level of OCR :

[0059] Gradient of face sheet Local contrast and OCR average confidence Calculate the readability score of the form :

[0060] in, This represents the gradient normalization constant for the surface, with a preferred value of 18, which enables clear and blurry samples to be effectively distinguished in the intermediate region. This represents the contrast normalization constant, with a preferred value of 1.2, which can effectively suppress the impact of local abnormally high contrast on the overall evaluation results. These represent the weights of text edges, local contrast, and OCR confidence, respectively, and are preferably set to... It can take into account both the objective quality of the image and the machine recognition effect, so that the readability score of the waybill can reflect the actual recognition ability and avoid the error of a single OCR model from having too much impact on the final judgment result. Based on the readability score of the shipping label Generate corresponding information; specifically, when When the issue occurs, a prompt will be generated stating, "The label area is not clear. Please move closer to the label and avoid reflections before reshooting."

[0061] S4. Calculate the behavioral consistency score based on the continuous GPS positioning results, and further calculate the behavioral authenticity score; First, calculate the average speed of movement before and after taking the signing photo based on the continuous GPS positioning results. :

[0062] in, This indicates the GPS location at the moment before the photo was taken. Indicates the GPS location at the moment the photo was taken. A distance function representing the distance between two geographical locations. Indicates the time interval between two positioning operations; Subsequently, the cumulative motion intensity within the shooting window was calculated based on the triaxial acceleration data collected by the IMU. :

[0063] in, This refers to the number of IMU samples within the sampling window. Indicates the first The triaxial acceleration modulus of each sampling point; Represents gravitational acceleration; To eliminate the influence of different units of measurement, the average GPS moving speed was analyzed separately. and IMU exercise intensity Normalization is performed:

[0064] in, Indicates normalized GPS speed. This represents the normalized IMU motion intensity; Represents the velocity normalization coefficient, preferably, ,when When the GPS signal is small, even a slight drift can produce a large normalization result. When the value is too high, the contribution of normal walking behavior to the score is weakened; Represents the acceleration normalization coefficient, preferably, ,when When the hand tremor is too small, normal hand tremors will be amplified excessively. If it is too large, it will reduce the sensitivity to actual changes in motion; Based on normalized GPS speed and IMU exercise intensity Calculate behavioral consistency score :

[0065] in, The tolerance coefficient for motion differences is preferably represented by the coefficient of performance. It can tolerate slight GPS positioning drift in indoor environments while retaining the ability to identify abnormal behavior. Further calculation of the stability score at the moment of shooting :

[0066] Among them, the stability score coefficient Preferred It can distinguish between slight shaking caused by normal shutter pressing and abnormal situations such as rapid shaking and violent tremors; This represents the average angular velocity within a short time window before and after the evidence frame. Specifically, the average angular velocity is calculated. :

[0067] in, This represents the set of IMU samples within a 100ms range before and after the timestamp of the evidence frame; Indicates the first The triaxial angular velocity of each sampling point; This represents its Euclidean norm.

[0068] Ultimately, based on behavioral consistency scores And shooting stability score Calculate the authenticity score of behavior :

[0069] in, Represents the motion consistency weight. The shooting stability weight is preferably set as follows: , It will not misjudge slight shaking in real-world scenarios as abnormal behavior, and effectively identifies abnormal situations such as album uploads, historical image re-uploads, or off-site shooting.

[0070] S5. Calculate the integrity score of the package and quantitatively evaluate the overall quality of the package signing photos; Based on the score of the integrity of the package The proportion of the cut-off edge of the main body of the express package Label readability score and authenticity score Calculate the overall quality inspection score of the package delivery receipt photos. :

[0071] in, , , , These represent parameters for the integrity of the package body, the degree of edge preservation, the readability of the shipping label, and the authenticity verification result, respectively. Preferably, This allows the overall score to highlight the core quality inspection objective of whether the package is complete, while also taking into account the readability of the waybill, edge truncation, and authenticity verification, thus avoiding the misjudgment of images with obvious defects as passing due to an excessively high score for a single indicator. Further based on the comprehensive quality inspection score Combined with the proportion of the main body of the express shipment cut off and confidence level of the main body of the express package Output deterministic decision result :

[0072] in, This indicates that the quality inspection has passed. This indicates that the process has entered manual review. This indicates that the quality inspection failed and a reshoot is required; This indicates the confidence level of the detection frame for the main body of the package. This indicates the distance between the shooting location and the delivery address; it should be noted that in this judgment rule, the truncated proportion of the main body of the package... Or confidence level of the main body of the express package This falls under the category of mandatory failure because such images are insufficient to prove the true and intact condition of the package at the time of signing; when If there are obvious defects in the integrity of the package, the readability of the waybill, or its authenticity, it will be directly deemed unacceptable and a re-photographing will be required; If the shooting location deviates from the delivery address, it will be subject to manual review to avoid misjudgment. When the overall score reaches the passing threshold and all mandatory thresholds are met, the quality inspection result will be output as passed.

[0073] This embodiment also provides a quality inspection system for express delivery receipt photos, including: The data acquisition module is used to collect image sequences, GPS positioning data, environmental WiFi data, IMU motion data and system timestamps during the signing process. It calculates the gradient energy, effective exposure ratio, blur index and shooting stability of the image frames, and determines the unique valid evidence frame based on the evidence frame score. The target detection module is used to preprocess the valid evidence frame, input the preprocessed valid evidence frame into the target detection model, and perform non-maximum suppression on the candidate detection results to obtain the main body frame and the label frame of the express mail. The main body integrity analysis module is used to calculate the main body area ratio, main body size score, edge truncation ratio and waybill inclusion ratio based on the main body frame of the express shipment, and calculate the main body integrity score of the express shipment by combining the main body detection confidence. The waybill quality analysis module is used to crop the waybill image according to the waybill frame and perform perspective correction, calculate the local text gradient energy and local contrast of the waybill image, perform OCR recognition to obtain the character confidence set, and calculate the waybill readability score. The behavior authenticity analysis module is used to calculate the average moving speed based on continuous GPS positioning results, calculate the motion intensity and shooting stability based on IMU data, and calculate the behavior authenticity score based on the average moving speed, motion intensity and shooting stability. The comprehensive quality inspection module is used to integrate the integrity score of the main body of the express shipment, the edge truncation ratio, the readability score of the waybill, and the authenticity score of the behavior to calculate the comprehensive quality inspection score, and output the judgment result of quality inspection pass, manual review or re-photographing based on the comprehensive quality inspection score and preset judgment conditions.

[0074] In summary, this invention collects image sequences, GPS positioning data, and IMU motion data during the signing process, and combines image clarity, exposure level, and shooting stability to screen for unique and valid evidence frames, reducing the interference of blurry, overexposed, and shaky images on the quality inspection results. Furthermore, it utilizes target detection, perspective correction, and OCR recognition to quantitatively evaluate the integrity of the package's main body, the inclusion relationship of the waybill, and the readability of the waybill. It also combines GPS movement speed and IMU motion intensity to verify the authenticity of the shooting behavior, effectively identifying anomalies such as missing main body, blurry waybill, off-site shooting, and historical image re-upload. Finally, it integrates multi-dimensional indicators to generate a comprehensive quality inspection score, outputting a pass, review, or reshoot result, improving the accuracy, automation level, and anti-counterfeiting capabilities of signing image quality inspection, while reducing manual review costs and the risk of misjudgment.

[0075] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for quality inspection of express delivery receipt photos, characterized in that, include: Collect data from the signing process and identify a unique, valid evidence frame from the image sequence; Based on the filtered detection result set output from the data frame, select the main frame and the label frame, and calculate the integrity score of the main body of the express shipment. The shipping label image is obtained from the shipping label frame, and the corresponding evaluation value is calculated. OCR is performed on the corrected shipping label image to obtain the character confidence set, and the shipping label readability score is further calculated. A behavioral consistency score is calculated based on continuous GPS positioning results, and a behavioral authenticity score is further calculated. Calculate the integrity score of the package and quantitatively evaluate the overall quality of the package receipt photos.

2. The method for quality inspection of express delivery receipt photos as described in claim 1, characterized in that: The process of collecting and signing data and identifying the unique valid evidence frame from the image sequence refers to collecting the image sequence of the signing process. Location data Environmental WiFi data Sports data and system timestamp; Calculate the first Frame Image gradient energy And based on gradient energy Calculate the fuzzy index ; Calculate the first Effective exposure ratio of frame image ; The shooting stability is calculated based on the IMU angular velocity near the corresponding time of the image frame. ; Based on the Gradient energy of a frame Effective exposure ratio Fuzzy Index Shooting stability Calculate evidence frame scores ; Select evidence frame scoring The highest frame is the only valid evidence frame. .

3. The method for quality inspection of express delivery receipt photos as described in claim 2, characterized in that: The set of detection results after filtering based on the data frame refers to the evidence frame. Image preprocessing is performed to meet the input requirements of the YOLO model, resulting in preprocessed evidence frames. ; Preprocessed evidence frames Input lightweight YOLO object detection model The candidate detection result set is obtained. ; For the candidate detection result set Non-maximum suppression is performed to obtain the filtered set of detection results. .

4. The method for quality inspection of express delivery receipt photos as described in claim 3, characterized in that: The selection of the main frame and the face sheet frame, and the calculation of the package's main integrity score, refer to... Select the bounding box with the highest confidence level that is categorized as "Main Body of Package" as the final "Main Body of Package" bounding box. ; from Select the detection box with the highest detection confidence level that is classified as "shipping label" as the final shipping label box. ; Calculate the area ratio of the main body of the package in the evidence frame. According to the proportion of the main body area of ​​the express package Calculate the body size score ; Calculate the truncation ratio of the main body of the express shipment The proportion of the waybill relative to the main body of the package ; Scoring based on body size Edge cutoff ratio The proportion included in the shipping label and subject detection confidence Calculate the integrity score of the main body of the express shipment. .

5. The method for quality inspection of express delivery receipt photos as described in claim 4, characterized in that: The step of obtaining the form image from the form frame and calculating the corresponding evaluation value refers to first obtaining the form image from the form frame. From evidence frames Cutting out the image of the form ; right Perform perspective correction to obtain a corrected frontal single image. ; For corrected frontal single image Calculate local text gradient energy ; Calculate the local contrast of a single area .

6. The method for quality inspection of express delivery receipt photos as described in claim 5, characterized in that: The process of performing OCR on the corrected frontal single image to obtain a character confidence set involves first performing grayscale conversion and size normalization on the corrected frontal single image to obtain a standardized image. ; The standardized image is then input into the text detection module to locate the text regions in the image and output a set of candidate text regions. ; For each text region Text sub-images are obtained by cropping from the standardized image according to the corresponding bounding boxes. ; Normalize the size of the text sub-image. ; The normalized text sub-image is input into a character recognition network, which uses a convolutional neural network to extract visual features, then uses a bidirectional long short-term memory network to extract contextual features of the character sequence, and finally outputs the character probability. ; For each character position, the character with the highest probability is selected as the recognition result. At the same time, the highest probability is used as the confidence level for character recognition. ; After traversing the entire text region, we obtain the character confidence set. .

7. The method for quality inspection of express delivery receipt photos as described in claim 6, characterized in that: The calculation of the label readability score refers to the score based on the character confidence set. Calculate the average confidence level of OCR ; Gradient of face sheet Local contrast and OCR average confidence level Calculate the readability score of the form .

8. The method for quality inspection of express delivery receipt photos as described in claim 7, characterized in that: The calculation of behavioral consistency score based on continuous GPS positioning results, and further calculation of behavioral authenticity score, refers to first calculating the average movement speed before and after taking the signing photo based on continuous GPS positioning results. ; The cumulative motion intensity within the shooting window is calculated based on the triaxial acceleration data collected by the IMU. ; GPS average speed and IMU exercise intensity Perform normalization processing; Based on normalized GPS speed and IMU exercise intensity Calculate behavioral consistency score ; Calculate the stability score at the moment of shooting ; Based on behavioral consistency score And shooting stability score Calculate the authenticity score of behavior .

9. The method for quality inspection of express delivery receipt photos as described in claim 8, characterized in that: The calculation of the package's main body integrity score and the quantitative evaluation of the overall quality of the package delivery receipt images refer to the process of using the package's main body integrity score as a basis for evaluation. The proportion of the cut-off edge of the main body of the express package Label readability score and authenticity score Calculate the overall quality inspection score of the package delivery receipt photos. ; Based on the comprehensive quality inspection score Combined with the proportion of the main body of the express shipment cut off and confidence level of the main body of the express package Output deterministic decision result .

10. A quality inspection system for express delivery receipt photos, based on the express delivery receipt photo quality inspection method according to any one of claims 1 to 9, characterized in that, include: The data acquisition module is used to collect image sequences, GPS positioning data, environmental WiFi data, IMU motion data and system timestamps during the signing process. It calculates the gradient energy, effective exposure ratio, blur index and shooting stability of the image frames, and determines the unique valid evidence frame based on the evidence frame score. The target detection module is used to preprocess the valid evidence frame, input the preprocessed valid evidence frame into the target detection model, and perform non-maximum suppression on the candidate detection results to obtain the main body frame and the label frame of the express mail. The main body integrity analysis module is used to calculate the main body area ratio, main body size score, edge truncation ratio and waybill inclusion ratio based on the main body frame of the express shipment, and calculate the main body integrity score of the express shipment by combining the main body detection confidence. The waybill quality analysis module is used to crop the waybill image according to the waybill frame and perform perspective correction, calculate the local text gradient energy and local contrast of the waybill image, perform OCR recognition to obtain the character confidence set, and calculate the waybill readability score. The behavior authenticity analysis module is used to calculate the average moving speed based on continuous GPS positioning results, calculate the motion intensity and shooting stability based on IMU data, and calculate the behavior authenticity score based on the average moving speed, motion intensity and shooting stability. The comprehensive quality inspection module is used to integrate the integrity score of the main body of the express shipment, the edge truncation ratio, the readability score of the waybill, and the authenticity score of the behavior to calculate the comprehensive quality inspection score, and output the judgment result of quality inspection pass, manual review or re-photographing based on the comprehensive quality inspection score and preset judgment conditions.