Method, device and equipment for recording bills traveling along with goods and medium
If the initial recognition rate of the client's identification of the accompanying order pictures is lower than the threshold, the order recording template is updated, which solves the problem of low update efficiency of the order recording template in the existing technology and improves the efficiency of order recording processing.
Patent Information
- Application Number
- CN202411385716.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, the update efficiency of single-recording templates with the goods is low, resulting in low order processing efficiency.
Obtain the picture of follow -up with the cargo through the client, identify the recognition rate of the initial single template. If it is lower than the threshold, send the picture to the server, update the initial single template, generate the target single template, and send it to the client.
A single template for automated update is achieved, which improves the update efficiency of single templates and the efficiency of recording single processing.
Smart Images

Figure CN119358526A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a method, device, equipment and medium for recording an order accompanying goods. Background Art
[0002] The supplier of goods will provide a shipping order when sending goods (such as medical goods) to the recipient of the goods. The recipient of the goods needs to enter data based on the shipping order for subsequent applications. In the prior art, the shipping order relies on the order template to identify key information. Every time the order template is changed, it is necessary to make the order template offline, upload it to the client application, and then deploy it to the warehouse machine for use. There is a low efficiency in updating the order template, which leads to low efficiency in order processing. Summary of the invention
[0003] The present invention provides a method, device, equipment and medium for recording orders along with goods, so as to realize automatic updating of order recording templates, improve the updating efficiency of order recording templates, and further improve the efficiency of order recording processing.
[0004] According to one aspect of the present invention, a method for recording an order accompanying goods is provided, comprising:
[0005] Obtaining the current accompanying order picture through the current client, and recognizing the current accompanying order picture according to the initial order recording template to obtain an initial recognition rate;
[0006] If the initial recognition rate is less than the current recognition threshold, the current accompanying order picture is sent to the server through the current client;
[0007] The server updates the initial order recording template according to the current accompanying order picture to obtain a target order recording template, sends the target order recording template to the current client, and publishes global template update information to the message middleware;
[0008] The current client identifies the current accompanying order picture according to the target order recording template to obtain a target recognition rate, and when the target recognition rate is greater than or equal to a current recognition threshold, the data in the current accompanying order picture is recorded according to the target order recording template.
[0009] According to another aspect of the present invention, there is provided a device for recording an order accompanying goods, comprising:
[0010] An initial recognition rate determination module is used to obtain the current accompanying order picture through the current client, and recognize the current accompanying order picture according to the initial order recording template to obtain an initial recognition rate;
[0011] An identification and judgment module, configured to send the current accompanying order picture to a server via the current client if the initial identification rate is less than a current identification threshold;
[0012] The template update module is used to update the initial order recording template according to the current accompanying order picture through the server to obtain the target order recording template, send the target order recording template to the current client, and publish the global template update information to the message middleware;
[0013] The current order recording processing module is used to identify the current accompanying order picture according to the target order recording template through the current client to obtain the target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, perform order recording processing on the data in the current accompanying order picture according to the target order recording template.
[0014] According to another aspect of the present invention, there is provided an electronic device, comprising:
[0015] one or more processors;
[0016] A memory for storing one or more programs;
[0017] When one or more programs are executed by one or more processors, the one or more processors can execute any one of the methods for recording orders accompanying the goods provided in the embodiments of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement any one of the methods for recording an order accompanying the goods provided in the embodiments of the present invention when the instructions are executed.
[0019] An embodiment of the present invention provides a solution for recording orders accompanying goods, wherein a current order picture accompanying goods is obtained through a current client, and the current order picture accompanying goods is recognized according to an initial order recording template to obtain an initial recognition rate; if the initial recognition rate is less than a current recognition threshold, the current order picture accompanying goods is sent to a server through the current client; the initial order recording template is updated by the server according to the current order picture accompanying goods to obtain a target order recording template, and the target order recording template is sent to the current client, and global template update information is published to a message middleware; the current order picture accompanying goods is recognized according to the target order recording template by the current client to obtain a target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, the data in the current order picture accompanying goods is recorded according to the target order recording template. The above scheme automatically determines whether the initial order recording template needs to be updated based on the initial recognition rate. If necessary, the server updates the initial order recording template based on the current order picture accompanying the goods to obtain the target order recording template, and directly sends the target order recording template to the current client. The current client can directly process the order based on the target order recording template, thereby realizing automatic updating of the order recording template, improving the updating efficiency of the order recording template, and improving the efficiency of order recording processing.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flow chart of a method for recording a bill accompanying goods provided in Embodiment 1 of the present invention;
[0023] Figure 2A This is a flow chart of a method for recording a bill accompanying goods provided in Embodiment 2 of the present invention;
[0024] Figure 2B This is a structural diagram of a system for recording an order accompanying a shipment provided by Embodiment 2 of the present invention;
[0025] Figure 3 This is a schematic diagram of the structure of a device for recording an order accompanying a shipment provided by Embodiment 3 of the present invention;
[0026] Figure 4 It is a structural schematic diagram of an electronic device for implementing a method for recording an order accompanying goods provided in a fourth embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0028] In the prior art, each time the order template is changed, the template needs to be made offline, then packaged into the client application, and then deployed to the warehouse machine for use. This results in long production time, low packaging efficiency, long update delays, and cumbersome rollback operations when encountering new order templates (need to uninstall the new version of the order template, then install the old version of the order template, and the server needs to cooperate with the client version authentication before it can be used).
[0029] As the number of goods suppliers increases, changes in order entry templates have become normalized, and existing technical solutions have already affected the progress of warehouse automation management.
[0030] Embodiment 1
[0031] Figure 1 It is a flow chart of a method for recording an order accompanying goods provided in Example 1 of the present invention. This embodiment is applicable to the situation of recording and processing data in an order accompanying goods. The method can be executed by an order recording device for an order accompanying goods. The device can be implemented in software and / or hardware and can be configured in an electronic device that carries the function of recording an order accompanying goods.
[0032] See also Figure 1 The method of recording the accompanying document shown includes:
[0033] S110, obtaining the current accompanying bill of lading picture through the current client, and recognizing the current accompanying bill of lading picture according to the initial bill recording template to obtain an initial recognition rate.
[0034] Among them, the current client refers to the client that is currently recording the order. The embodiment of the present invention does not impose any limitation on the type of client, which can be set by a technician based on experience or needs. The current accompanying bill of lading picture refers to the picture of the accompanying bill of lading that needs to be recorded by the goods recipient using the current client. The accompanying bill of lading refers to a document used to record the relevant attribute data of the goods sent by the goods supplier to the goods recipient. Exemplarily, the accompanying bill of lading in the medical field may include the goods number, goods name, goods specifications, goods quantity and goods production date, etc. The embodiment of the present invention does not impose any limitation on the identification method, which can be set by a technician based on experience. Exemplarily, an OCR (Optical Character Recognition) document recognition method can be used.
[0035] Among them, the initial order recording template refers to the candidate order recording template of the same category that was used last time and stored locally by the current client. The order recording template can be used to process the data in the accompanying order. It should be noted that the candidate order recording templates corresponding to different categories of accompanying orders in the current client will be locally partitioned and stored; for the current accompanying order picture under a certain category, the candidate order recording template that was used last time under this category will be used as the initial order recording template, that is, the candidate order recording template that is ranked first in the order under this category will be used as the initial order recording template.
[0036] The same type of accompanying documents in the embodiment of the present invention can be understood as the same type of accompanying documents provided by the same goods supplier.
[0037] Among them, the initial recognition rate can be used to quantify the accuracy of identifying the current accompanying order image based on the initial order recording template.
[0038] Specifically, the current accompanying order picture is obtained through the current client; the current accompanying order picture is recognized based on the initial order recording template to obtain an initial recognition rate.
[0039] S120: If the initial recognition rate is less than the current recognition threshold, the current accompanying document image is sent to the server via the current client.
[0040] The embodiment of the present invention may also introduce a preset first recognition floating interval. If the initial recognition rate is less than the current recognition threshold, and the difference between the initial recognition rate and the current recognition threshold is not within the preset first recognition floating interval, the current accompanying document image is sent to the server through the current client.
[0041] The preset first recognition floating interval can be understood as a range in which the recognition rate of the current client is allowed to fluctuate based on the current recognition threshold. The embodiment of the present invention does not impose any limitation on the size of the preset first recognition floating interval, which can be set by technicians based on experience.
[0042] In an optional embodiment, the current recognition threshold can be determined based on the preset first recognition threshold and the first historical recognition mean corresponding to the current client. Exemplarily, the preset first recognition threshold and the first historical recognition mean are compared. If the preset first recognition threshold is greater than or equal to the first historical recognition mean, the preset first recognition threshold is used as the current recognition threshold; if the preset first recognition threshold is less than the first historical recognition mean, the first historical recognition mean is used as the current recognition threshold.
[0043] Among them, the preset first recognition threshold can be the default recognition threshold of the current client. The embodiment of the present invention does not impose any limitation on the size of the preset first recognition threshold, which can be set by a technician based on experience, or determined repeatedly through a large number of experiments. The first historical recognition mean can be understood as the mean of the historical recognition rates corresponding to the same category of historical accompanying order pictures in the current client. Historical accompanying order pictures refer to pictures of accompanying orders that have been recorded in the past. The historical recognition rate can be used to quantify the accuracy of identifying historical accompanying order pictures.
[0044] It can be understood that the embodiment of the present invention improves the accuracy of the determined current recognition threshold by determining the current recognition threshold according to the preset first recognition threshold and the first historical recognition mean.
[0045] In order to further improve the accuracy of the first historical recognition mean in the embodiment of the present invention, a preset first screening threshold can be introduced to screen the historical recognition rate, further improve the accuracy of the first historical recognition mean, and avoid the influence of the extreme historical recognition rate on the first historical recognition mean. The embodiment of the present invention does not impose any restrictions on the size of the preset first screening threshold, which can be set by technicians based on experience or needs. Exemplarily, the preset screening threshold can be 60%.
[0046] Specifically, when the initial recognition rate obtained by the current server is less than the current recognition threshold, the current accompanying order picture is sent to the server through the current client.
[0047] Exemplarily, if the initial recognition rate is greater than or equal to the current recognition threshold, or if the initial recognition rate is less than the current recognition threshold, but the difference between the initial recognition rate and the current recognition threshold is within the preset first recognition floating range, the current client will perform order recording on the data in the current accompanying order image according to the initial order recording template.
[0048] S130. The server updates the initial order recording template according to the current accompanying order picture to obtain a target order recording template, sends the target order recording template to the current client, and publishes the global template update information to the message middleware.
[0049] Among them, the target order recording template refers to the order recording template after the server updates the initial order recording template according to the current accompanying order picture. The global template update information refers to the information of the target order recording template obtained by the server updating the initial order recording template. Exemplarily, the global template update information may include the generation date of the target order recording template, the identifier of the target order recording template, and the remark field of the target order recording template. The identifier of the target order recording template can be used to characterize the identity of the target order recording template. The remark field of the target order recording template can be used to record the relevant data of the updated order recording template. Exemplarily, the remark field of the target order recording template may include the identifier of the goods recipient of the updated order recording template and the category of the target order recording template. The identifier of the goods recipient can be used to characterize the identity of the goods recipient.
[0050] Specifically, the global template update information may be information generated by the server when sending the target order recording template to the current server and candidate clients, and used to inform the current server and candidate clients that the target order recording template has been updated.
[0051] Among them, the message middleware can be used to record the template change information of the server and the client, such as global template update information and local template replacement information. For example, the message middleware can be a message queue. Exemplarily, the message middleware includes front-end message middleware and back-end message middleware. The front-end message middleware refers to the message middleware set on the client. The back-end message middleware refers to the message middleware set on the server.
[0052] It can be understood that by setting up the front-end message middleware and the back-end message middleware, it is possible to avoid the inability to record template change information in a timely manner in the event of a network interruption, thereby improving the applicability of the message middleware; at the same time, the front-end message middleware and the back-end message middleware can transmit information between the client and the server, decouple the direct connection between multiple terminals, increase the system's scalability, robustness, and message review processing, etc.
[0053] Specifically, the server updates the initial order recording template according to the current order picture accompanying the goods to obtain the target order recording template; the server sends the target order recording template to the current client, and publishes the global template update information to the message middleware.
[0054] In an optional embodiment, after obtaining the target order recording template, the method also includes: sending the target order recording template to each candidate client while sending the target order recording template to the current client through the server, and globally updating the template correspondence between the stored template and the client according to the global template update information.
[0055] Among them, candidate clients refer to other clients other than the current client that establish communication connection with the server. The template correspondence between the template and the client can be used to characterize the order recording template that any client preferentially uses under a certain category, that is, the template correspondence between the template and the client can be used to characterize the correspondence between the client identifier and the order recording template identifier under a certain category. The client identifier can be used to characterize the identity of the client. The order recording template identifier can be used to characterize the identity of the order recording template.
[0056] Specifically, the target order recording template is sent to the current client and each candidate client at the same time through the server; the template correspondence between the template stored locally on the server and the client is globally updated by the server according to the global template update information.
[0057] It can be understood that when the server sends the target order recording template to the current client, it also sends the target order recording template to each candidate client, so as to achieve the sharing of the latest template among the clients communicating with the server, thereby improving the efficiency of template updating; at the same time, the server globally updates the template correspondence between the stored template and the client according to the global template update information, thereby improving the accuracy of the template correspondence between the template stored on the server and the client.
[0058] S140. Identify the current accompanying order picture according to the target order recording template through the current client to obtain a target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, perform order recording processing on the data in the current accompanying order picture according to the target order recording template.
[0059] Among them, the target recognition rate can be used to quantify the accuracy of identifying the current accompanying order image based on the target order recording template.
[0060] In the embodiment of the present invention, recording the data in the current accompanying order picture according to the target recording template means classifying the data in the current accompanying order picture according to the target recording template, and storing the classified data in a database.
[0061] An embodiment of the present invention provides a solution for recording orders accompanying goods, wherein a current order picture accompanying goods is obtained through a current client, and the current order picture accompanying goods is recognized according to an initial order recording template to obtain an initial recognition rate; if the initial recognition rate is less than a current recognition threshold, the current order picture accompanying goods is sent to a server through the current client; the initial order recording template is updated by the server according to the current order picture accompanying goods to obtain a target order recording template, and the target order recording template is sent to the current client, and global template update information is published to a message middleware; the current order picture accompanying goods is recognized according to the target order recording template by the current client to obtain a target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, the data in the current order picture accompanying goods is recorded according to the target order recording template. The above scheme automatically determines whether the initial order recording template needs to be updated based on the initial recognition rate. If necessary, the server updates the initial order recording template based on the current order picture accompanying the goods to obtain the target order recording template, and directly sends the target order recording template to the current client. The current client can directly process the order based on the target order recording template, thereby realizing automatic updating of the order recording template, improving the updating efficiency of the order recording template, and improving the efficiency of order recording processing.
[0062] Embodiment 2
[0063] Figure 2A It is a flow chart of a method for recording an order accompanying goods provided in the second embodiment of the present invention. Based on the above embodiments, this embodiment further adds the operation of "obtaining candidate accompanying goods order pictures through the candidate client, and identifying the candidate accompanying goods order pictures according to the target order recording template issued by the server to obtain the candidate recognition rate; if the candidate recognition rate is less than the candidate recognition threshold, selecting the corresponding new target order recording template from the candidate order recording templates stored locally through the candidate client, and recording the data in the candidate accompanying goods order pictures according to the new target order recording template" to improve the order recording processing mechanism. It should be noted that for the parts not described in detail in the embodiments of the present invention, please refer to the description of other embodiments.
[0064] See also Figure 2A The method of recording the accompanying document shown includes:
[0065] S210, obtaining the current accompanying bill of lading picture through the current client, and recognizing the current accompanying bill of lading picture according to the initial bill recording template to obtain an initial recognition rate.
[0066] S220: If the initial recognition rate is less than the current recognition threshold, the current accompanying document image is sent to the server via the current client.
[0067] S230. The server updates the initial order recording template according to the current accompanying order picture to obtain the target order recording template, sends the target order recording template to the current client, and publishes the global template update information to the message middleware.
[0068] S240. Identify the current accompanying order picture according to the target order recording template through the current client to obtain a target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, perform order recording processing on the data in the current accompanying order picture according to the target order recording template.
[0069] S250, obtaining a candidate accompanying bill of lading picture through the candidate client, and identifying the candidate accompanying bill of lading picture according to the target bill of lading template issued by the server, to obtain a candidate recognition rate.
[0070] Among them, the candidate client refers to other clients other than the current client that have established a communication connection with the server. The candidate accompanying bill picture refers to the picture of the accompanying bill that needs to be recorded by the cargo recipient using the candidate client. The candidate recognition rate can be used to quantify the accuracy of identifying the candidate accompanying bill picture based on the candidate recording template.
[0071] Specifically, a candidate accompanying bill of lading picture is obtained through a candidate client; the candidate accompanying bill of lading picture is recognized by the candidate client according to a target bill of lading template issued by a server, and a candidate recognition rate is obtained.
[0072] S260. If the candidate recognition rate is less than the candidate recognition threshold, the candidate client selects a corresponding new target order recording template from the candidate order recording templates stored locally, and performs order recording processing on the data in the candidate accompanying order picture according to the new target order recording template.
[0073] The candidate order recording template refers to the order recording template used in the past and stored locally on the candidate server. The new target order recording template refers to the candidate order recording template selected locally by the candidate client for recording the candidate accompanying order image.
[0074] It should be noted that if the candidate recognition rate is less than the candidate recognition threshold, it means that the target order recording template sent by the server is not suitable for recording the data in the candidate accompanying order image. Therefore, the candidate client needs to select a new target order recording template to be used this time from the candidate order recording templates stored locally on the candidate client.
[0075] In an optional embodiment, a corresponding new target order template is selected by a candidate client based on each candidate order template stored locally, including: a first reference order template is selected by the candidate client from candidate category order templates of the same category as the target order template based on template association data of each candidate order template, and candidate accompanying order images are identified based on the first reference order template to obtain a first reference recognition rate; if the first reference recognition rate is less than the candidate recognition threshold, a second reference order template is selected by the candidate client from candidate general order templates based on template association data of each candidate order template, and candidate accompanying order images are identified based on the second reference order template to obtain a second reference rate; if the second reference rate is greater than or equal to the candidate recognition threshold, the second reference order template is used by the candidate client as the corresponding new target order template.
[0076] Among them, template-associated data refers to data associated with a candidate order template. Exemplarily, the template-associated data may include a note field of the candidate order template, a generation date of the candidate order template, and an identifier of the candidate order template. Exemplarily, the note field of the candidate order template may include a category of the candidate order template. The category of the candidate order template can be understood as the goods supplier corresponding to the candidate order template, and the style of a certain accompanying order provided by the goods supplier. The identifier of the candidate order template can be used to characterize the identity of the candidate order template.
[0077] The first reference order template refers to the candidate order template used by the candidate client when it last recorded a historical order of the same category as the candidate order. The historical order of the same category refers to the previous order of the same category as the candidate order of the same category.
[0078] The first reference recognition rate can be used to quantify the accuracy of identifying the candidate accompanying bill image based on the first reference bill template. The embodiment of the present invention does not impose any limitation on the size of the candidate recognition threshold, which can be set by technicians based on experience or repeatedly determined through a large number of experiments.
[0079] The second reference order recording template refers to a general order recording template of the same category as the candidate accompanying order. The general order recording template refers to a basic template that can be used to record and process various accompanying orders from a certain goods supplier.
[0080] Among them, the second reference recognition rate can be used to quantify the accuracy of identifying the candidate accompanying order images based on the second reference order recording template.
[0081] Exemplarily, if the first reference recognition rate is greater than or equal to the candidate recognition threshold, the first reference order template is used as the corresponding new target order template through the candidate client.
[0082] It can be understood that by introducing the first reference order recording template and the second reference order recording template, the situation where the target order recording template does not match the candidate accompanying order when there is a delay in the goods received by the goods recipient where the candidate client is located is avoided, and the real-time rollback of the order recording template is achieved, thereby improving the accuracy and efficiency of the order recording processing.
[0083] In an optional embodiment, if the candidate recognition rate is greater than or equal to the candidate recognition threshold, the candidate client performs order recording processing on the data in the candidate accompanying order picture according to the target order recording template.
[0084] It should be noted that if the candidate recognition rate is greater than or equal to the candidate recognition threshold, it indicates that the target order recording template issued by the server is applicable to the order recording process for the data in the candidate accompanying order.
[0085] The embodiment of the present invention can also introduce a preset second identification floating interval. If the candidate recognition rate is less than the candidate recognition threshold, and the difference between the candidate recognition rate and the candidate recognition threshold is not within the preset second identification floating interval, the candidate client needs to determine a new target recording template; if the candidate recognition rate is less than the candidate recognition threshold, but the difference between the candidate recognition rate and the candidate recognition threshold is within the preset second identification floating interval, the candidate client will perform recording processing on the data in the candidate accompanying order picture according to the target recording template.
[0086] The preset second identification floating interval can be understood as a range in which the identification rate of the candidate client is allowed to fluctuate based on the candidate identification threshold. The embodiment of the present invention does not impose any limitation on the size of the preset second identification floating interval, which can be set by technicians based on experience.
[0087] It should be noted that the method for determining the candidate recognition threshold in the embodiment of the present invention may be the same as the method for determining the current recognition threshold. That is, the candidate recognition threshold may be determined based on the preset second recognition threshold and the second historical recognition mean corresponding to the candidate client. Exemplarily, the preset second recognition threshold and the second historical recognition mean are compared. If the preset second recognition threshold is greater than or equal to the second historical recognition mean, the preset second recognition threshold is used as the candidate recognition threshold; if the preset second recognition threshold is less than the second historical recognition mean, the second historical recognition mean is used as the candidate recognition threshold.
[0088] The preset second recognition threshold may be a default recognition threshold of the candidate client. The embodiment of the present invention does not impose any limitation on the value of the preset second recognition threshold, which may be set by a technician based on experience or determined repeatedly through a large number of experiments. The second historical recognition mean may be understood as the mean of the historical recognition rates corresponding to the same category of historical accompanying order pictures in the candidate client.
[0089] In the embodiment of the present invention, the historical recognition rates of the candidate clients may also be screened according to a preset second screening threshold.
[0090] It should be noted that the preset first identification floating interval and the preset second identification floating interval may be the same or different, and the embodiment of the present invention does not impose any limitation on this. The preset first identification threshold and the preset second identification threshold may be the same or different, and the embodiment of the present invention does not impose any limitation on this. The preset first screening threshold and the preset second screening threshold may be the same or different, and the embodiment of the present invention does not impose any limitation on this. In an optional embodiment, the method also includes: publishing local template replacement information of replacing the local target recording template with the new target recording template to the message middleware through the candidate client; obtaining the local template replacement information from the message middleware through the server, and locally updating the template correspondence between the stored template and the client according to the template replacement information.
[0091] Among them, the local template replacement information refers to the information that the candidate client replaces the target recording template. Exemplarily, the local template replacement information may include the candidate client identifier, the target recording template identifier, the identifier of the new target recording template, the remark field of the new target recording template, and the generation date of the new target recording template. The candidate client identifier can be used to characterize the identity of the candidate client. The identifier of the new target recording template can be used to characterize the identity of the new target recording template. The remark field of the new target recording template may include the category of the new target recording template.
[0092] Specifically, a new target order recording template is generated by the candidate client to replace the local template replacement information of the target order recording template of the candidate client, and the local template replacement information is published to the message middleware; the local template replacement information is obtained from the message middleware through the server, and the template correspondence between the locally stored template of the server and the client is locally updated according to the local template replacement information.
[0093] It can be understood that by introducing local template replacement information, the template correspondence between the locally stored template of the server and the client is partially updated, thereby improving the accuracy of the template correspondence between the locally stored template of the server and the client.
[0094] It should be noted that, for any candidate client, if the recognition rates corresponding to the target recording template, the first reference recording template and the second reference recording template of the candidate client are all less than the candidate recognition threshold, the recording template corresponding to the larger recognition rate will be used as the new target recording template.
[0095] The embodiment of the present invention provides a scheme for recording orders for accompanying goods, by adding a candidate client to obtain candidate accompanying order pictures, and identifying the candidate accompanying order pictures according to the target order recording template issued by the server to obtain a candidate recognition rate; if the candidate recognition rate is less than the candidate recognition threshold, the candidate client selects a corresponding new target order recording template from each candidate order recording template stored locally, and performs order recording processing operations on the data in the candidate accompanying order pictures according to the new target order recording template, thereby improving the order recording processing mechanism. In the above scheme, after the candidate client identifies the candidate accompanying order pictures according to the target order recording template issued by the server, if the candidate recognition rate is less than the candidate recognition threshold, the new target order recording template of the candidate client is determined, thereby improving the accuracy and applicability of order recording template selection, and further improving the accuracy of order recording processing.
[0096] On the basis of the above technical solution, an embodiment of the present invention further provides a system for recording orders accompanying the goods.
[0097] The order recording templates in the prior art are only stored locally, and each client cannot unify them. Each client uses its own order recording template, which makes management complicated. Since different warehouses may receive the goods from the same supplier at different times, the order recording templates used by each client are different, and it is troublesome to package and publish the order recording templates. The order recording system that sends orders along with the goods provided in the embodiment of the present invention supports online updating and online rollback of different versions of order recording templates, which solves the differences between different clients, saves publishing time, and improves the warehousing efficiency of each warehouse.
[0098] For example, see Figure 2B The structural diagram of the order recording system for the same order as the goods is shown. The order recording system for the same order as the goods includes a client, a server, a front-end message middleware, a back-end message middleware and a server.
[0099] The message middleware in the embodiment of the present invention decouples the client and the server, allowing them to develop independently. The server can be maintained or expanded without affecting the client, and vice versa. At the same time, the scalability of the order recording system that accompanies the goods is improved, that is, when the number of requests increases, the server can dynamically adjust the consumption speed through the message middleware, and there is no need to process all requests instantaneously, thereby ensuring the stability of the system under high concurrency; and asynchronous processing is implemented, and the client can send messages to the message middleware without waiting for the server to respond immediately, thereby improving the response speed and user experience of the order recording system that accompanies the goods; it has a failure retry mechanism, that is, if the server is temporarily unavailable, the message middleware can ensure the reliable delivery of the message, and supports a retry mechanism to reduce the risk of data loss; load balancing is implemented, that is, the message middleware can distribute messages to multiple servers, achieve load balancing on the server, and ensure the stability and high availability of the order recording system that accompanies the goods.
[0100] Embodiment 3
[0101] Figure 3 This is a schematic diagram of the structure of a device for recording an accompanying order provided in the third embodiment of the present invention. This embodiment is applicable to the case of recording data in an accompanying order, and the method can be executed by a device for recording an accompanying order, which can be implemented in software and / or hardware, and can be configured in an electronic device that carries the function of recording an accompanying order.
[0102] like Figure 3 As shown, the device includes: an initial recognition rate determination module 310, a recognition judgment module 320, a template update module 330 and a current order processing module 340.
[0103] The initial recognition rate determination module 310 is used to obtain the current accompanying order picture through the current client, and recognize the current accompanying order picture according to the initial order recording template to obtain the initial recognition rate;
[0104] The recognition judgment module 320 is used to send the current accompanying order picture to the server through the current client if the initial recognition rate is less than the current recognition threshold;
[0105] The template update module 330 is used to update the initial order recording template according to the current accompanying order picture through the server to obtain a target order recording template, send the target order recording template to the current client, and publish the global template update information to the message middleware;
[0106] The current order recording processing module 340 is used to identify the current accompanying order picture according to the target order recording template through the current client to obtain a target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, perform order recording processing on the data in the current accompanying order picture according to the target order recording template.
[0107] An embodiment of the present invention provides a solution for recording orders accompanying goods, wherein a current order picture accompanying goods is obtained through a current client, and the current order picture accompanying goods is recognized according to an initial order recording template to obtain an initial recognition rate; if the initial recognition rate is less than a current recognition threshold, the current order picture accompanying goods is sent to a server through the current client; the initial order recording template is updated by the server according to the current order picture accompanying goods to obtain a target order recording template, and the target order recording template is sent to the current client, and global template update information is published to a message middleware; the current order picture accompanying goods is recognized according to the target order recording template by the current client to obtain a target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, the data in the current order picture accompanying goods is recorded according to the target order recording template. The above scheme automatically determines whether the initial order recording template needs to be updated based on the initial recognition rate. If necessary, the server updates the initial order recording template based on the current order picture accompanying the goods to obtain the target order recording template, and directly sends the target order recording template to the current client. The current client can directly process the order based on the target order recording template, thereby realizing automatic updating of the order recording template, improving the updating efficiency of the order recording template, and improving the efficiency of order recording processing.
[0108] Optionally, the device further comprises:
[0109] A candidate recognition rate determination module is used to obtain a candidate accompanying bill picture through a candidate client, and recognize the candidate accompanying bill picture according to the target bill recording template issued by the server to obtain a candidate recognition rate;
[0110] The candidate order processing module is used to select a corresponding new target order template from the candidate order templates stored locally through the candidate client if the candidate recognition rate is less than the candidate recognition threshold, and perform order processing on the data in the candidate accompanying order picture according to the new target order template.
[0111] Optionally, the candidate order processing module includes:
[0112] A first recognition rate determining unit is configured to select a first reference order template from candidate category order templates of the same category as the target order template through the candidate client according to the template association data of each candidate order template, and recognize the candidate accompanying order image according to the first reference order template to obtain a first reference recognition rate;
[0113] A second recognition rate determination unit is configured to select a second reference order template from the candidate general order templates through the candidate client according to the template association data of each of the candidate order templates if the first reference recognition rate is less than the candidate recognition threshold, and recognize the candidate accompanying order picture according to the second reference order template to obtain a second reference rate;
[0114] A new template determination unit is used to use the second reference order template as the corresponding new target order template through the candidate client if the second reference rate is greater than or equal to the candidate identification threshold.
[0115] Optionally, the device further comprises:
[0116] A replacement message publishing module, used for publishing local template replacement information of replacing the local target order template with the new target order template to the message middleware through the candidate client;
[0117] The local update module is used to obtain local template replacement information from the message middleware through the server, and locally update the template correspondence between the stored template and the client according to the template replacement information.
[0118] Optionally, the message middleware includes front-end message middleware and back-end message middleware.
[0119] Optionally, after obtaining the target order template, the device further includes:
[0120] The global update module is used to send the target order recording template to each candidate client at the same time as sending the target order recording template to the current client through the server, and globally update the template correspondence between the stored template and the client according to the global template update information.
[0121] The device for recording an order accompanying goods provided in an embodiment of the present invention can execute the method for recording an order accompanying goods provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to executing each method for recording an order accompanying goods.
[0122] In the technical solution of the present invention, the collection, storage, use, processing, transmission, provision and disclosure of the current accompanying cargo order pictures and candidate accompanying cargo order pictures etc. are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0123] Embodiment 4
[0124] Figure 4 4 is a schematic diagram of the structure of an electronic device for implementing a method for recording an order accompanying goods provided by Embodiment 4 of the present invention. Electronic device 410 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0125] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0126] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0127] Processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 411 executes the various methods and processes described above, such as a method for recording orders along with the goods.
[0128] In some embodiments, the method for recording an order accompanying the goods may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the method for recording an order accompanying the goods described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to execute the method for recording an order accompanying the goods by any other appropriate means (e.g., by means of firmware).
[0129] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0130] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0131] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0132] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0133] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0134] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for recording a bill accompanying a shipment, characterized in that: include: Obtaining the current accompanying order picture through the current client, and recognizing the current accompanying order picture according to the initial order recording template to obtain an initial recognition rate; If the initial recognition rate is less than the current recognition threshold, the current accompanying order picture is sent to the server through the current client; The server updates the initial order recording template according to the current accompanying order picture to obtain a target order recording template, sends the target order recording template to the current client, and publishes global template update information to the message middleware; The current client identifies the current accompanying order picture according to the target order recording template to obtain a target recognition rate, and when the target recognition rate is greater than or equal to a current recognition threshold, the data in the current accompanying order picture is recorded according to the target order recording template.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a candidate accompanying bill image through a candidate client, and identifying the candidate accompanying bill image according to the target bill recording template issued by the server to obtain a candidate recognition rate; If the candidate recognition rate is less than the candidate recognition threshold, the candidate client selects a corresponding new target order template from the candidate order templates stored locally, and performs order processing on the data in the candidate accompanying order picture according to the new target order template.
3. The method according to claim 2, characterized in that The selecting, by the candidate client, a corresponding new target order template from each candidate order template stored locally includes: The candidate client selects a first reference order template from candidate category order templates of the same category as the target order template according to the template association data of each candidate order template, and recognizes the candidate accompanying order image according to the first reference order template to obtain a first reference recognition rate; If the first reference recognition rate is less than the candidate recognition threshold, the candidate client selects a second reference order template from the candidate general order templates according to the template association data of each candidate order template, and recognizes the candidate accompanying order picture according to the second reference order template to obtain a second reference rate; If the second reference rate is greater than or equal to the candidate identification threshold, the second reference order template is used as the corresponding new target order template through the candidate client.
4. The method according to claim 2, characterized in that: The method further comprises: The candidate client publishes the local template replacement information of replacing the local target order template with the new target order template to the message middleware; The server obtains local template replacement information from the message middleware, and locally updates the template correspondence between the stored template and the client according to the template replacement information.
5. The method according to any one of claims 1 to 4, characterized in that The message middleware includes front-end message middleware and back-end message middleware.
6. The method according to any one of claims 1 to 4, characterized in that After obtaining the target order template, the method further includes: The server sends the target order recording template to each candidate client at the same time as sending the target order recording template to the current client, and globally updates the template correspondence between the stored template and the client according to the global template update information.
7. A device for recording a bill accompanying a shipment, characterized in that: include: An initial recognition rate determination module is used to obtain the current accompanying order picture through the current client, and recognize the current accompanying order picture according to the initial order recording template to obtain an initial recognition rate; An identification and judgment module, configured to send the current accompanying order picture to a server via the current client if the initial identification rate is less than a current identification threshold; The template update module is used to update the initial order recording template according to the current accompanying order picture through the server to obtain the target order recording template, send the target order recording template to the current client, and publish the global template update information to the message middleware; The current order recording processing module is used to identify the current accompanying order picture according to the target order recording template through the current client to obtain the target recognition rate, and when the target recognition rate is greater than or equal to the current recognition threshold, perform order recording processing on the data in the current accompanying order picture according to the target order recording template.
8. The device according to claim 7, characterized in that The device also includes: A candidate recognition rate determination module is used to obtain a candidate accompanying bill picture through a candidate client, and recognize the candidate accompanying bill picture according to the target bill recording template issued by the server to obtain a candidate recognition rate; The candidate order processing module is used to select a corresponding new target order template from the candidate order templates stored locally through the candidate client if the candidate recognition rate is less than the candidate recognition threshold, and perform order processing on the data in the candidate accompanying order picture according to the new target order template.
9. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a method for recording an order accompanying the goods as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a method for recording an order accompanying goods as described in any one of claims 1 to 6 is implemented.