Express sheet data processing method and device, electronic equipment and computer readable medium
Through the facebook data processing method, attribute judgment and conversion processing are performed for the diversified facebook information in the warehousing logistics, which solves the problem of frequent printer switching, improves production efficiency and accuracy of facebook information, and reduces costs.
Patent Information
- Application Number
- CN202310804012.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
AI Technical Summary
In warehousing logistics, customers who only use pure warehouse services have diverse information on the noodle sheet, resulting in frequent switching between different printers and noodle sheets, seriously affecting production efficiency.
Through the face sheet data processing method, the face sheet image is received to determine whether it meets the preset attributes. If it does not meet, the conversion process is carried out to convert it into the target face sheet image with a unified attribute, and its encoded information is identified and printed to ensure the accuracy of the information. and usability.
It improves the production efficiency of orders in warehouses, reduces the number of replacements of printers and dot papers, reduces production costs, and ensures the accuracy and production continuity of dot paper information.
Smart Images

Figure CN119228280A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of warehousing and logistics technology, and specifically to a method, device, electronic device and computer-readable medium for processing waybill data. Background Art
[0002] With the rapid development of warehousing and logistics technology, more and more customers choose to use warehousing services. However, some customers only use pure warehouse (i.e. warehouse storage) services, and do not use the distribution services provided by the warehouse. Usually, when placing an order, the customer will send the attached delivery order information in the form of a picture to the warehouse's order system. After receiving the customer's order information, the warehouse will carry out in-warehouse production. After that, different printers and delivery order papers will be switched according to the customer's delivery order specifications, so as to print out the customer's delivery order and paste it on the corresponding package.
[0003] However, the inventors found that the customers who only use the warehouse-only service have a variety of information pictures on their waybills. This requires constantly switching between different printers and different specifications of waybill papers during production in the warehouse to print the waybills. Frequent switching will seriously affect the production efficiency in the warehouse.
[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0006] Some embodiments of the present disclosure propose a method, device, electronic device, computer-readable medium and computer program product for processing manifest data to solve one or more of the technical problems mentioned in the above background technology section.
[0007] In a first aspect, some embodiments of the present disclosure provide a method for processing face sheet data, including: in response to receiving a face sheet image, determining whether the face sheet image meets preset face sheet attributes; in response to determining that it does not meet the preset face sheet attributes, converting the face sheet image to obtain a target face sheet image with preset face sheet attributes; identifying the encoded information in the target face sheet image, and printing the face sheet based on the identification result.
[0008] In some embodiments, face sheet printing is performed based on the recognition result, including: in response to identifying the coded information in the target face sheet image, determining whether the identified coded information matches the original coded information in the face sheet image; in response to determining that the identified coded information matches the original coded information, printing the target face sheet image.
[0009] In some embodiments, the preset face sheet attributes include at least two face sheet specifications; and printing the face sheet based on the recognition result also includes: in response to failure to recognize the coding information, converting the face sheet image into a candidate face sheet image of other face sheet specifications, wherein the other face sheet specifications are face sheet specifications other than the face sheet specifications of the target face sheet image among at least two face sheet specifications; identifying the coding information of the candidate face sheet image to determine whether the identified coding information matches the original coding information.
[0010] In some embodiments, converting the face order image into candidate face order images of other face order specifications includes: converting the face order image into candidate face order images of other face order specifications in order from small to large, wherein the face order specification of the target face order image is the smallest face order specification among at least two face order specifications.
[0011] In some embodiments, printing the face sheet based on the recognition result further includes: in response to the encoding information of the candidate face sheet images of other face sheet specifications failing to be recognized, printing the face sheet image.
[0012] In some embodiments, determining whether the waybill image conforms to preset waybill attributes includes: determining whether the target shipper indicated by the waybill image is a preset object; in response to determining that the target shipper is the preset object, determining that the waybill image does not conform to the preset waybill attributes.
[0013] In some embodiments, the preset face sheet attributes also include image attributes; and conversion processing of the face sheet image includes: according to the original image format and original resolution of the face sheet image, using a chain of responsibility model to convert the face sheet image into a preset image format and a preset resolution, wherein the image attributes include a preset image format and a preset resolution.
[0014] In some embodiments, the method further includes: in response to determining that the conversion process of the single-sided image fails, printing the single-sided image.
[0015] In a second aspect, some embodiments of the present disclosure provide a face sheet data processing device, comprising: an attribute determination unit, configured to determine whether the face sheet image meets preset face sheet attributes in response to receiving a face sheet image; a conversion processing unit, configured to convert the face sheet image in response to determining that it does not meet the preset face sheet attributes, so as to obtain a target face sheet image with preset face sheet attributes; a code recognition unit, configured to recognize the code information in the target face sheet image, and print the face sheet based on the recognition result.
[0016] In some embodiments, the code recognition unit includes a code matching subunit, which is configured to determine whether the recognized code information matches the original code information in the target face sheet image in response to recognizing the code information in the target face sheet image; in response to determining that the recognized code information matches the original code information, print the target face sheet image.
[0017] In some embodiments, the preset face sheet attributes include at least two face sheet specifications; and the coding recognition unit also includes a conversion subunit, which is configured to convert the face sheet image into a candidate face sheet image of other face sheet specifications in response to failure to recognize the coding information, wherein the other face sheet specifications are face sheet specifications other than the face sheet specifications of the target face sheet image among at least two face sheet specifications; and identify the coding information of the candidate face sheet image to determine whether the recognized coding information matches the original coding information.
[0018] In some embodiments, the conversion subunit is further configured to convert the face order image into candidate face order images of other face order specifications in order from small to large, wherein the face order specification of the target face order image is the smallest face order specification of at least two face order specifications.
[0019] In some embodiments, the code recognition unit further includes a face sheet printing subunit, which is configured to print the face sheet image in response to the failure to recognize the code information of the candidate face sheet images of other face sheet specifications.
[0020] In some embodiments, the attribute determination unit is further configured to determine whether the target shipper indicated by the waybill image is a preset object; in response to determining that the target shipper is the preset object, determine that the waybill image does not conform to the preset waybill attributes.
[0021] In some embodiments, the preset face sheet attributes also include image attributes; and the conversion processing unit is further configured to convert the face sheet image into a preset image format and a preset resolution using a chain of responsibility model based on the original image format and original resolution of the face sheet image, wherein the image attributes include a preset image format and a preset resolution.
[0022] In some embodiments, the conversion processing unit is further configured to print the single face image in response to determining that the conversion processing of the single face image has failed.
[0023] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation method in the above-mentioned first aspect.
[0024] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the implementations in the first aspect above is implemented.
[0025] In a fifth aspect, some embodiments of the present disclosure provide a computer program product, including a computer program, which implements the method described in any implementation manner in the above-mentioned first aspect when executed by a processor.
[0026] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the delivery bill data processing method of some embodiments of the present disclosure can improve the production efficiency of the overall order. Specifically, under normal circumstances, when the warehouse receives a customer order, it will generally carry out in-warehouse production according to the order information. And different printers and delivery bill papers will be switched according to the customer's delivery bill specifications, so as to print out the customer's delivery bill and paste it on the corresponding package. In other words, in the production process in the warehouse, it is often necessary to frequently switch between different printers and delivery bill papers of different specifications. This will seriously affect the production efficiency in the warehouse.
[0027] Based on this, the face order data processing method of some embodiments of the present disclosure can first determine whether the face order image meets the preset face order attributes after receiving it. That is, the face order type is judged to determine whether it is a standard face order type. If it does not meet the preset face order attributes, the face order image can be converted. In other words, for face order images that are not of the standard face order type, they can be converted into face order images with unified attributes. In this way, the attributes of face orders with different attributes for different customers can be unified, thereby avoiding or reducing the need to replace printers and face order paper. This can further help improve production efficiency in the warehouse. And after the conversion is successful, the coded information in the converted face order image will also be identified to ensure that the converted face order image is available and the information is accurate. In this way, it can be ensured that the converted face order image can still be produced normally, avoiding affecting subsequent production in the warehouse. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0029] Figure 1 is a flow chart of some embodiments of the method for processing bill data disclosed in the present invention;
[0030] Figure 2 are flow charts of other embodiments of the method for processing bill data disclosed herein;
[0031] Figure 3 It is a schematic diagram of an application scenario of the method for processing bill data in some embodiments of the present disclosure;
[0032] Figure 4 It is a structural schematic diagram of some embodiments of the bill data processing device disclosed in the present invention;
[0033] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0034] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0035] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0037] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0038] Figure 1 The process 100 of some embodiments of the method for processing the bill data according to the present disclosure is shown. The method comprises the following steps:
[0039] Step 101, in response to receiving a waybill image, determining whether the waybill image meets preset waybill attributes.
[0040] In some embodiments, the execution subject of the method for processing the waybill data (such as a warehouse management server) can communicate with other devices via a wired connection or a wireless connection. Here, when the execution subject receives the waybill image, it can determine whether the waybill image meets the preset waybill attributes. Among them, the waybill image can be an image containing the waybill information. The waybill is usually a piece of paper pasted on the express package, which generally contains part of the order information. The courier can clearly know the relevant information of the express package, such as the shipper information, the recipient information, etc. with the information on the waybill.
[0041] Here, the attributes of the waybill image (such as color, format, size) are not limited, as long as it can be recognized and read by the execution subject. In addition, the method of generating the waybill image is also not limited here. For example, when the shipper places an order in the warehouse's order system, the order system generates the waybill image based on the order information and the specified waybill style. Then, the order system can send the order information and the waybill image to the execution subject.
[0042] It is understandable that the execution entity can determine whether the received face order image meets the preset face order attributes in a variety of ways. Among them, the preset face order attributes can be attribute information that characterizes the required or used face order, and can also be set according to actual conditions. For example, the preset face order attributes can be the attributes of the standard (commonly used) face order in the warehouse. As an example, the execution entity can convert the received face order image into a binary byte stream and identify the image attributes of the face order image, such as format, specifications (size), etc. Then, the execution entity can compare the identified image attributes with the preset face order attributes. If the two attributes match (the same or similar), it can be determined that the face order image meets the preset face order attributes. Conversely, it can be determined that the face order image does not meet the preset face order attributes.
[0043] In some embodiments, the execution entity can determine whether the target shipper indicated by the waybill image is a preset object. The preset object here can also be set according to the actual situation, for example, it can be a customer who uses a pure warehouse service. Since such customers only use warehousing services and do not use the warehouse's distribution services, the waybills they use are generally diverse and often different from the standard waybills in the warehouse. If it is determined that the target shipper is the preset object, it can be determined that the waybill image does not meet the preset waybill attributes. On the contrary, if it indicates that the warehouse's distribution service is used, it can be determined that the waybill image meets the preset waybill attributes.
[0044] Step 102, in response to determining that the preset face order attribute is not met, converting the face order image to obtain a target face order image with the preset face order attribute.
[0045] In some embodiments, if it is determined based on step 101 that the face order image does not conform to the preset face order attributes, the face order image may be converted to obtain a target face order image with the preset face order attributes.
[0046] In some embodiments, the preset face order attributes may include image attributes of a preset image format. At this time, the execution entity may convert the face order image into a target face order image of a preset image format. Further, the preset face order attributes may also include image attributes of a preset resolution. In this case, the execution entity may use algorithms such as LZMA2, LZSS, etc. to compress or amplify the resolution of the face order image, thereby converting it into a target face order image of a preset resolution. Optionally, the preset face order attributes may also include preset face order specifications. At this time, the execution entity may convert the face order image into a target face order image of a preset face order specification. It is understandable that when adjusting the image specifications, the resolution of the general image will also change accordingly.
[0047] In some embodiments, the execution subject can identify the original image format and original resolution of the face sheet image. Then, according to the original image format and original resolution of the face sheet image, the responsibility chain pattern can be used to convert the face sheet image into a preset image format and preset resolution. Among them, the responsibility chain pattern (also called the responsibility chain pattern) usually includes some command objects and some processing objects. Each processing object determines which command objects it can handle. It also knows that it should hand over the command objects that it cannot handle to the next processing object. In addition, the pattern generally describes a method for adding new processing objects to the chain. Here, different processing codes can be written according to different image attributes (such as format). These codes can then be connected in series to form a responsibility chain pattern. In the responsibility chain pattern, different code blocks generally process images of different attributes. That is, the responsibility chain pattern can be used to convert face sheet images of different formats into a unified format.
[0048] Step 103, identifying the coded information in the target face sheet image, and printing the face sheet based on the identification result.
[0049] In some embodiments, the execution entity can identify the coded information in the target face order image obtained in step 102. And the face order can be printed based on the recognition result. As an example, the execution entity can identify the coded information in the target face order image through a component such as Yolo-fastest (ultra-lightweight general target detection algorithm). If the recognition is successful, that is, the coded information is recognized, indicating that the face order image conversion is successful, then the target face order image can be printed. In other words, the target face order image can be used instead of the face order image. This can avoid the replacement of printers and face order paper, thereby improving the production efficiency of orders.
[0050] In some embodiments, in response to identifying the coded information in the target face order image, the execution entity may further determine whether the identified coded information matches the original coded information in the face order image. If it is determined that the identified coded information matches the original coded information, the target face order image may be printed. In this way, it can be ensured that the converted target face order image is usable and the accuracy of the information in the target face order image can be ensured. This avoids affecting the production of subsequent orders.
[0051] Optionally, if the encoding information is not identified, or the identified encoding information does not match the original encoding information, the single image can be converted again. Figure 2 The relevant description in the embodiments will not be repeated here.
[0052] It should be noted that during the conversion process, there may be a small probability of conversion abnormality. If it is determined that the conversion process of the face order image has failed, the face order image can be printed. That is, after the abnormality occurs, the original image (the received face order image) is used for production.
[0053] Through the above description, the face order data processing method of some embodiments of the present disclosure can first determine whether the face order image meets the preset face order attributes after receiving it. That is, the face order type is judged to determine whether it is a standard face order type. If it does not meet the preset face order attributes, the face order image can be converted. In other words, for face order images that are not of the standard face order type, they can be converted into face order images with unified attributes. In this way, the attributes of face orders with different attributes for different customers can be unified, thereby avoiding or reducing the need to replace printers and face order paper. This can further help improve production efficiency in the warehouse. And after the conversion is successful, the encoded information in the converted face order image will also be identified to ensure that the converted face order image is available and the information is accurate. In this way, it can be ensured that the converted face order image can still be produced normally, avoiding affecting subsequent production in the warehouse.
[0054] Continue to see Figure 2, which shows a process 200 of another embodiment of the method for processing bill data according to the present disclosure. The method comprises the following steps:
[0055] Step 201: In response to failure to identify the encoding information, convert the face sheet image into a candidate face sheet image of other face sheet specifications.
[0056] In some embodiments, the preset face order attributes may include at least two face order specifications. If the execution entity fails to recognize the coded information in the target face order image, the face order image may be converted into a candidate face order image of other face order specifications. Among them, the other face order specifications may be face order specifications other than the face order specifications of the target face order image among at least two face order specifications. In other words, when the converted target face order image is not available, the execution entity may convert the face order image into a candidate face order image to continue to perform the following steps.
[0057] In some embodiments, the execution entity may convert the face order image into candidate face order images of other face order specifications in the order of face order specifications from small to large. The face order specification of the target face order image is the smallest face order specification among at least two face order specifications. For example, the preset face order attributes may include three face order specifications of 100×150, 100×70, and 100×60. The execution entity may first convert the face order image into a target face order image with a face order specification of 100×60. If the target face order image is not available, the face order image may be converted into a candidate face order image of 100×70. And so on.
[0058] It is understandable that the smaller the paper size, the lower the production cost. Here, the image of the face sheet is preferably reduced. Try to use small-sized face sheet paper. In this way, while ensuring that the face sheet code can be recognized normally, the printing cost of the face sheet is reduced. Thus, the production cost can be reduced.
[0059] It should be noted that if the identified coding information does not match the original coding information, it also means that the target single image is unavailable. In this case, the execution subject can also perform the above step 201.
[0060] Step 202: Identify the encoding information of the candidate single image to determine whether the identified encoding information matches the original encoding information.
[0061] In some embodiments, for the candidate face sheet image converted in step 201, the execution subject may identify the encoding information in the candidate face sheet image again to determine whether the encoding information identified this time matches the original encoding information. Figure 1 The relevant description in step 103 of the embodiment will not be repeated here.
[0062] Here, if it is determined that the two coding information match, step 203 can be executed. If the recognition fails, or the two coding information do not match, step 201 can be executed again until all the bill specifications in the preset bill attributes are converted.
[0063] Step 203, in response to determining that the identified coding information matches the original coding information, printing the candidate sheet image of the identified coding information.
[0064] In some embodiments, if it is determined that the coded information identified in step 202 matches the original coded information, it means that the candidate bill image obtained by this conversion is available. At this time, the candidate bill image with the coded information identified can be printed, that is, the candidate bill image is used to replace the received bill image for order production.
[0065] Step 204: in response to the failure to recognize the encoding information of the candidate bill images of other bill specifications, printing the bill image.
[0066] In some embodiments, if the encoding information of candidate face sheet images of other face sheet specifications fails to be recognized, or the recognized encoding information does not match, it means that all converted face sheet images are unusable. In other words, it is impossible to unify the attributes of the received face sheet images. At this time, the execution entity can print the face sheet images, that is, use the received face sheet images for order production.
[0067] The method for processing bill data in the disclosed embodiment further enriches and improves the processing flow of the target bill image being unavailable. While reducing the replacement of printers and bill papers and improving production efficiency, the bill specifications can be reduced as much as possible, thereby reducing production costs.
[0068] As an example, in Figure 3 In the application scenario shown, if the warehouse receives order information from a customer (i.e., a user using warehousing services) through the logistics gateway, it can first determine whether the current customer is a customer of a custom delivery order type based on the customer's order information and the configuration information of the basic attribute information interface. In other words, it can determine whether the order belongs to a custom delivery order. If it is not a custom delivery order, the standard delivery order information can be obtained through the distribution information of the third-party distribution system, and the original warehouse order production process can be executed.
[0069] from Figure 3As can be seen, if it is a custom waybill, the barcode contained in the current waybill image can be pre-identified and the identified value can be temporarily stored. At the same time, the format, resolution, size, etc. of the waybill image can be identified. Then, the responsibility chain mode can be used to convert waybill images of different formats for different customers into a unified format. And it can be verified whether the unified format is successful. If the conversion fails or an exception occurs, the original image can be used for order production. If the conversion is successful, the resolution of the waybill image can be compressed or enlarged, and the waybill image can be adjusted to a unified specification. That is, the waybill image is converted into the default unified attributes (format, specification, etc.) configured in the system.
[0070] After that, the barcode in the converted delivery note image can be automatically extracted and recognized. It can also be compared with the previously recognized barcode value (i.e. the barcode in the delivery note image) to determine whether they are consistent. If the two barcode values are consistent, the converted delivery note image can be saved to cloud storage, and the order production process can be executed in the warehouse. After production is completed, the delivery note with unified attributes can be automatically printed without switching printers or delivery note paper.
[0071] Here, if the barcode recognition fails, or the two barcode values are inconsistent, the above-mentioned conversion process of unified attributes can be repeated. If all conversion processes fail, the original image can be used for production.
[0072] It is understandable that in the past, the production staff in the warehouse had to print different specifications and sizes of face sheets by switching different printers and replacing the printing paper, which resulted in low production efficiency. Through the face sheet data processing method disclosed in the present invention, face sheet images of different specifications and sizes uploaded by customers can be reduced or enlarged after being standardized. And it can automatically identify and correct errors to ensure that the face sheets can be used normally. After unifying the specifications and sizes of face sheets, the same specifications of printers and face sheet paper can be used to print face sheets for different customers. In this way, a lot of work of replacing printers and face sheet paper is saved, thereby improving work efficiency.
[0073] Further references Figure 4 , as a response to the above Figure 1 to Figure 2 In order to realize the method shown in the figure, the present disclosure provides some embodiments of a device for processing the data of a shipping form. Figure 1 to Figure 2 The device can be specifically applied to various electronic devices.
[0074] like Figure 4As shown, the face sheet data processing device 400 of some embodiments may include: an attribute determination unit 401, configured to determine whether the face sheet image meets preset face sheet attributes in response to receiving the face sheet image; a conversion processing unit 402, configured to convert the face sheet image in response to determining that it does not meet the preset face sheet attributes, so as to obtain a target face sheet image with preset face sheet attributes; a code recognition unit 403, configured to recognize the code information in the target face sheet image, and print the face sheet based on the recognition result.
[0075] In some embodiments, the code recognition unit 403 may include a code matching subunit (not shown in the figure), which is configured to determine whether the recognized code information matches the original code information in the target face sheet image in response to recognizing the code information in the target face sheet image; in response to determining that the recognized code information matches the original code information, print the target face sheet image.
[0076] In some embodiments, the preset face sheet attributes may include at least two face sheet specifications; and the coding identification unit 403 may also include a conversion subunit (not shown in the figure), which is configured to convert the face sheet image into a candidate face sheet image of other face sheet specifications in response to failure to identify the coding information, wherein the other face sheet specifications are face sheet specifications other than the face sheet specifications of the target face sheet image among at least two face sheet specifications; identify the coding information of the candidate face sheet image to determine whether the identified coding information matches the original coding information.
[0077] In some embodiments, the conversion subunit can be further configured to convert the face order image into candidate face order images of other face order specifications in order from small to large, wherein the face order specification of the target face order image is the smallest face order specification of at least two face order specifications.
[0078] In some embodiments, the code recognition unit 403 may further include a face sheet printing subunit (not shown in the figure), which is configured to print the face sheet image in response to the failure to recognize the code information of the candidate face sheet images of other face sheet specifications.
[0079] In some embodiments, the attribute determination unit 401 can be further configured to determine whether the target shipper indicated by the waybill image is a preset object; in response to determining that the target shipper is the preset object, determine that the waybill image does not conform to the preset waybill attributes.
[0080] In some embodiments, the preset face sheet attributes may also include image attributes; and the conversion processing unit 402 may be further configured to convert the face sheet image into a preset image format and a preset resolution using a chain of responsibility model based on the original image format and original resolution of the face sheet image, wherein the image attributes include a preset image format and a preset resolution.
[0081] In some embodiments, the conversion processing unit 402 may be further configured to print the single face image in response to determining that the conversion process of the single face image fails.
[0082] It is understandable that the units recorded in the bill data processing device 400 are similar to those in the reference Figure 1 to Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the bill data processing device 400 and the units contained therein, and will not be described in detail here.
[0083] Reference below Figure 5 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing some embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0084] like Figure 5 As shown, the electronic device 500 may include a processing device 501 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0085] Typically, the following devices may be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a speaker, a vibrator, etc.; storage devices 508 including, for example, a hard disk, a magnetic disk, etc.; and communication devices 509. The communication devices 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0086] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0087] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0088] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0089] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to receiving the face sheet image, determines whether the face sheet image meets the preset face sheet attributes; in response to determining that it does not meet the preset face sheet attributes, converts the face sheet image to obtain a target face sheet image with the preset face sheet attributes; identifies the coded information in the target face sheet image, and prints the face sheet based on the identification result.
[0090] In addition, computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0091] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0092] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, may be described as: a processor includes an attribute determination unit, a conversion processing unit, and a coding recognition unit. Among them, the names of these units do not constitute a limitation on the units themselves in some cases. For example, the attribute determination unit may also be described as "a unit for determining whether the face sheet image meets the preset face sheet attributes".
[0093] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0094] Some embodiments of the present disclosure also provide a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for processing invoice data.
[0095] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for processing bill data, comprising: In response to receiving the face sheet image, determining whether the face sheet image meets preset face sheet attributes; In response to determining that the preset face order attribute is not met, converting the face order image to obtain a target face order image with the preset face order attribute; The coded information in the target face sheet image is identified, and the face sheet is printed based on the identification result.
2. The method according to claim 1, wherein: Printing the label based on the recognition result includes: In response to identifying the coded information in the target face sheet image, determining whether the identified coded information matches the original coded information in the face sheet image; In response to determining that the identified encoding information matches the original encoding information, the target single image is printed.
3. The method according to claim 2, wherein: The preset bill attributes include at least two bill specifications; as well as The printing of the label based on the recognition result also includes: In response to failure to identify the coded information, converting the face order image into a candidate face order image of another face order specification, wherein the another face order specification is a face order specification other than the face order specification of the target face order image among the at least two face order specifications; Identify the encoding information of the candidate single face image to determine whether the identified encoding information matches the original encoding information.
4. The method according to claim 3, wherein: The converting the face order image into a candidate face order image of another face order specification includes: The face order image is converted into candidate face order images of other face order specifications in the order from small to large, wherein the face order specification of the target face order image is the smallest face order specification among the at least two face order specifications.
5. The method according to claim 4, wherein: The printing of the label based on the recognition result also includes: In response to the failure to recognize the encoding information of the candidate bill images of other bill specifications, the bill images are printed.
6. The method according to claim 1, wherein: The determining whether the waybill image meets the preset waybill attributes includes: Determine whether the target consignor indicated by the shipping order image is a preset object; In response to determining that the target consignor is a preset object, it is determined that the waybill image does not conform to a preset waybill attribute.
7. The method according to claim 1, wherein: The preset face sheet attributes also include image attributes; and The converting process of the face sheet image comprises: According to the original image format and original resolution of the face sheet image, the face sheet image is converted into a preset image format and a preset resolution using a chain of responsibility model, wherein the image attributes include the preset image format and the preset resolution.
8. The method according to any one of claims 1 to 7, wherein: The method further comprises: In response to determining that the conversion process of the face sheet image has failed, the face sheet image is printed.
9. A bill data processing device, comprising: an attribute determination unit, configured to determine, in response to receiving the face sheet image, whether the face sheet image meets a preset face sheet attribute; A conversion processing unit is configured to, in response to determining that the face order image does not conform to the preset face order attribute, perform conversion processing on the face order image to obtain a target face order image with the preset face order attribute; The code recognition unit is configured to recognize the code information in the target face sheet image and print the face sheet based on the recognition result.
10. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.