Image data processing method and device
By responding to users' image scanning commands in the logistics field, acquiring and automatically filtering out target processing codes, the problem of business personnel having to filter from multiple identification codes is solved, and efficient business processing is achieved.
Patent Information
- Application Number
- CN202310519512.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-09
- Publication Date
- 2024-11-12
AI Technical Summary
In the logistics sector, business personnel need to manually sift through multiple QR codes or barcodes to extract the identification codes relevant to their business, leading to increased processing costs and extended processing time.
By responding to the user's image scanning command, image data is acquired, the code to be processed is identified, and the target processing code is automatically selected according to the pre-configured business strategy for direct business processing.
It enables automatic filtering of pending codes, saving business processing costs, saving users' processing time, and improving business processing efficiency.
Smart Images

Figure CN118940781A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of logistics technology, and in particular to an image data processing method and device. Background Art
[0002] In the logistics field, business personnel need to scan the identification code (such as a QR code or a barcode, etc.) on the waybill to perform business processing (such as entering shipping information or querying logistics information, etc.).
[0003] However, there are often multiple different QR codes or barcodes on the waybill, such as QR codes or barcodes used for logistics information query, collection, display of product information or promotional activities. This requires business personnel to manually filter out business-related identification codes from the multiple identification codes obtained after scanning, and select identification codes related to the business to be processed from the filtered identification codes for subsequent business processing.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:
[0005] The manual screening process of business personnel consumes energy and increases processing costs. In addition, due to the limited display screen, accidental touches may occur when selecting an identification code related to the business to be processed from multiple identification codes, resulting in the need to scan again, which in turn prolongs the business processing time and reduces business processing efficiency. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides an image data processing method and device, which obtains scanned image data by responding to the user's image scanning instruction; identifies one or more codes to be processed (such as a QR code or a barcode) from the image data; selects a target processing code that complies with the business policy from one or more codes to be processed according to a preconfigured business policy; performs business processing according to the target processing code, and sends the business processing result to the user. In this way, the codes to be processed are automatically screened, and business processing can be directly performed according to the target processing code related to the business policy without the user manually screening the codes to be processed, thereby saving business processing costs and user processing time, while improving business processing efficiency.
[0007] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing image data is provided.
[0008] An image data processing method according to an embodiment of the present invention includes: acquiring image data in response to an image scanning instruction of a user; identifying one or more codes to be processed from the image data; screening the one or more codes to be processed according to a preconfigured business policy to obtain a target processing code that complies with the business policy; performing business processing according to the target processing code, and sending the business processing result to the user.
[0009] Optionally, the business policy includes at least one of the following: a logistics carrier identifier and a business type identifier, and the one or more pending codes are screened according to the preconfigured business policy to obtain a target processing code, including: judging whether each pending code contains at least one of the logistics carrier identifier and the business type identifier according to the business policy; and according to the judgment result, using the pending code containing at least one of the logistics carrier identifier and the business type identifier as the target processing code.
[0010] Optionally, in the case that the target processing code includes the business type identifier, performing business processing according to the target processing code includes: determining whether the target processing code containing the business type identifier in the image data is unique; if so, performing business processing according to the unique target processing code; if not, sending a plurality of the target processing codes to the user so that the user inputs a selection instruction according to the plurality of the target processing codes; determining, according to the selection instruction, the target processing code selected by the user from the plurality of the target processing codes, and performing business processing according to the target processing code selected by the user.
[0011] Optionally, in the case that the target processing code includes the business type identifier, performing business processing according to the target processing code includes: determining the business authority corresponding to the terminal identifier according to the terminal identifier corresponding to the image scanning instruction; determining the target processing code including the business type identifier corresponding to the business authority; and performing business processing according to the determined target processing code.
[0012] Optionally, identifying one or more codes to be processed from the image data includes: determining, based on the time when the code to be processed is identified, an interval between the current time and the time when the code to be processed is last identified; when the interval is greater than a preset time, stopping image data acquisition and identifying new codes to be processed, and obtaining the one or more codes to be processed based on the identified codes to be processed.
[0013] Optionally, the method provided by the embodiment of the present invention further includes: acquiring the service policy from a remote configuration server.
[0014] Optionally, the method provided by the embodiment of the present invention further includes: receiving an update message sent by the remote configuration server, or polling the remote configuration server to obtain the update message, wherein the update message indicates an update of the service policy. According to the update message, the latest service policy is obtained from the remote configuration server.
[0015] To achieve the above objective, according to another aspect of an embodiment of the present invention, an image data processing device is provided.
[0016] An image data processing device according to an embodiment of the present invention includes: an image scanning module, which is used to obtain image data in response to a user's image scanning instruction; an image recognition module, which is used to identify one or more codes to be processed from the image data; a data screening module, which is used to screen the one or more codes to be processed according to a preconfigured business policy to obtain a target processing code that complies with the business policy; a processing module: which is used to perform business processing according to the target processing code and send the business processing result to the user.
[0017] To achieve the above objective, according to another aspect of an embodiment of the present invention, a server is provided.
[0018] A server according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement an image data processing method according to an embodiment of the present invention.
[0019] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.
[0020] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, an image data processing method according to an embodiment of the present invention is implemented.
[0021] One embodiment of the above invention has the following advantages or beneficial effects: by responding to the user's image scanning instruction, the scanned image data is obtained; one or more codes to be processed (such as a QR code or a barcode) are identified from the image data; according to the preconfigured business policy, a target processing code that meets the business policy is screened out from one or more codes to be processed; business processing is performed according to the target processing code, and the business processing result is sent to the user. In this way, the automatic screening of the codes to be processed is realized, and business processing can be directly performed according to the target processing code related to the business policy without the user manually screening the codes to be processed, thereby saving business processing costs and user processing time, while improving business processing efficiency.
[0022] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0024] Figure 1 is a schematic diagram of main steps of an image data processing method according to an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of main steps of an image data processing method according to an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of main modules of an image data processing device according to an embodiment of the present invention;
[0027] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0028] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0030] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0031] Figure 1 is a schematic diagram of main steps of an image data processing method according to an embodiment of the present invention.
[0032] like Figure 1 As shown, the image data processing method of the embodiment of the present invention mainly includes the following steps:
[0033] Step S101: Responding to an image scanning instruction from a user, acquiring image data.
[0034] In the logistics field, when handling express packages, business personnel use scanning terminals, such as handheld terminals, to scan the QR code or barcode on the package label to obtain image data of the QR code or barcode. The system responsible for image data processing receives the image scanning instruction sent by the handheld terminal, and obtains image data from the scanned QR code or barcode according to the image scanning instruction.
[0035] Step S102: identifying one or more codes to be processed from the image data.
[0036] In actual applications, there are often multiple QR codes or barcodes for different purposes on the package label, such as QR codes and / or barcodes for logistics information query, collection, display of product information and / or display of promotional activities. Therefore, business personnel can obtain image data of multiple QR codes or barcodes by scanning a terminal, such as a handheld terminal, in one scan. The system parses the acquired image data to obtain the data information of the QR code or barcode, that is, one or more codes to be processed.
[0037] In one embodiment of the present invention, identifying one or more codes to be processed from the image data includes: determining, based on the time when the code to be processed is identified, the interval between the current time and the time when the code to be processed is last identified; when the interval is greater than a preset time, stopping image data acquisition and identifying new codes to be processed, and obtaining the one or more codes to be processed based on the identified codes to be processed.
[0038] When business personnel use a scanning terminal, such as a handheld terminal, to scan multiple QR codes or barcodes on a package label, the system records the time point when the code to be processed is identified from the image data of each QR code or barcode. When the business personnel perform the scanning operation, the system calculates the interval between the current time and the time when the code to be processed was last identified. When the interval is greater than a preset time, such as 0.5 seconds, the system stops receiving image data and stops identifying new codes to be processed, and uses the currently identified code to be processed as one or more codes to be processed identified from the image data.
[0039] Step S103: According to the preconfigured business policy, the one or more to-be-processed codes are screened to obtain a target processing code that complies with the business policy.
[0040] In one embodiment of the present invention, the method provided by the present invention further includes: acquiring the service policy from a remote configuration server.
[0041] Business policy is the system's screening rule for QR codes or barcodes, which is used to match the data information of the parsed QR code or barcode, that is, the pending code. The purpose is to exclude the pending codes that do not match the business policy from multiple pending codes, that is, to exclude non-business-related pending codes, such as pending codes used to display product information, and at the same time filter out pending codes that match the business policy, that is, business-related pending codes, such as pending codes used for logistics information query and for mailing.
[0042] The business policy can be configured as a string, which can be composed of pure numbers or pure letters. It is understandable that it can also be a combination of letters and numbers, such as a combination of 2 letters and 13 digits, where the first 2 letters can represent the logistics carrier, and the 13 digits can be divided into several fields, which are used to represent the business type, serial number, place of shipment or destination, etc. For example, AB1239876543210, where AB represents the logistics carrier ID, 123 represents the business type ID (such as mailing business, logistics information query business or parcel delivery business), 987 represents the place of shipment or destination, and 6543210 represents the serial number. It is understandable that the order of all fields can be changed, and the number of digits in each field can also be increased or decreased.
[0043] The business policy is configured in the remote configuration server by the development or maintenance personnel. During the data processing, the system screens one or more pending codes according to the business policy obtained from the remote configuration server, that is, excludes non-business-related pending codes from multiple pending codes, and determines business-related pending codes.
[0044] In one embodiment of the present invention, the method provided by the present invention also includes: receiving an update message sent by the remote configuration server, or polling the remote configuration server to obtain the update message, wherein the update message indicates an update of the business policy; and obtaining the latest business policy from the remote configuration server according to the update message.
[0045] The business policy is configured on the remote configuration server and can be updated according to business needs or periodically, such as once a week. In the event of a business policy update event, the remote configuration server can send a business policy update message to the data processing server, and the data processing server can also obtain the business policy update message from the remote configuration server through regular polling. The update message indicates the change of the business policy, that is, the change of the QR code or barcode screening rules. The data processing server obtains the latest business policy from the remote configuration server based on the obtained business policy update message.
[0046] In one embodiment of the present invention, the business policy includes at least one of the following: a logistics carrier identifier and a business type identifier, and the one or more pending codes are screened according to the preconfigured business policy to obtain a target processing code, including: judging whether each pending code contains at least one of the logistics carrier identifier and the business type identifier according to the business policy; and according to the judgment result, using the pending code containing at least one of the logistics carrier identifier and the business type identifier as the target processing code.
[0047] When one or more pending codes are identified, in order to pre-exclude pending codes that are not related to the business, the identified pending codes are compared with the business policy. For example, the length of the pending code is first compared with the length of the character string representing the business policy. If the lengths are inconsistent, the pending code is directly excluded; if the lengths are consistent, the characters are then compared bit by bit to confirm whether the processing code contains the logistics carrier identifier included in the business policy, or whether the processing code contains the business type identifier included in the business policy, or whether the processing code contains the logistics carrier identifier and the business type identifier included in the business policy. In the case where the processing code contains the logistics carrier identifier or the processing code contains the business type identifier, or both the processing code contains the logistics carrier identifier and the business type identifier, the pending code is determined to be a target processing code that complies with the business policy, that is, a target processing code related to the business.
[0048] According to business needs, when only parcels belonging to logistics carrier AB need to be identified, it is only necessary to compare the code to be processed with the business policy, that is, the logistics carrier identification AB in the QR code or barcode screening rules, such as only comparing the logistics carrier field AB in AB1239876543210; when only the business type to which the current business processing belongs needs to be identified, it is only necessary to compare the code to be processed with the business policy, that is, the business type identification in the QR code or barcode screening rules, such as only comparing the business type identification field 123 in AB1239876543210; it can be understood that when it is necessary to identify the logistics carrier and the business type at the same time, it is necessary to compare the code to be processed with the logistics carrier identification and the business type identification of the business policy at the same time, such as comparing the logistics carrier field AB and the business type identification field 123 in AB1239876543210 at the same time. At this time, the business policy can be used to screen and obtain the QR code or barcode of the logistics carrier AB's mailing business, logistics information query business or parcel delivery business.
[0049] After the to-be-processed codes are screened according to the business policy, if no target processing code that meets the business policy is obtained, an error code is generated according to the screening result and sent to the scanning terminal.
[0050] Step S104: Perform business processing according to the target processing code and send the business processing result to the user
[0051] In one embodiment of the present invention, when the target processing code includes the business type identifier, the business processing according to the target processing code includes: determining whether the target processing code containing the business type identifier in the image data is unique; if so, performing business processing according to the unique target processing code; if not, sending a plurality of the target processing codes to the user so that the user inputs a selection instruction according to the plurality of the target processing codes; according to the selection instruction, determining the target processing code selected by the user from the plurality of the target processing codes, and performing business processing according to the target processing code selected by the user.
[0052] After screening the processing code according to the business policy, if the target processing code obtained is a target processing code containing a business type identifier, the number of target processing codes is counted and it is determined whether the target processing code is unique; if there is only one target processing code, relevant business processing is performed according to the business type indicated by the target processing code. For example, if there is only one target processing code, such as AB1239876543210, and the business type included is a mailing business, the mailing business processing is performed according to the target processing code, and page data for filling in the mailing information is generated, and the page data is sent to a scanning terminal, such as a handheld terminal of a business person.
[0053] It can be understood that after screening according to the business policy, the target processing code obtained is a target processing code containing a logistics carrier identifier, and if there is only one target processing code containing a logistics carrier identifier, the same operation as above can be performed on the target processing code containing the logistics carrier identifier.
[0054] In the case where there are multiple target processing codes containing business type identifiers, the multiple target processing codes are sent to the scanning terminal for display to the business personnel; after browsing the multiple target processing codes, the business personnel input a selection instruction through the scanning terminal according to business needs, such as clicking on one of the target processing codes. For example, the business personnel selects the target processing code for the logistics information query business from the two target processing codes for the mailing and logistics information query business, that is, clicks on the target processing code for the logistics information query business; the system receives the input selection instruction, determines the target processing code selected by the business personnel according to the input selection instruction, such as AB1239876543211, and processes the logistics information query business according to the business type indicated by the target processing code, such as the logistics information query business, generates logistics information corresponding to the target processing code, and sends it to the scanning terminal.
[0055] It can be understood that after screening according to the business policy, the target processing code obtained is a target processing code including a logistics carrier identifier, and if there are multiple target processing codes including a logistics carrier identifier, the same operation as above can be performed on the target processing code including the logistics carrier identifier.
[0056] In one embodiment of the present invention, when the target processing code includes the business type identifier, the business processing according to the target processing code includes: determining the business authority corresponding to the terminal identifier according to the terminal identifier corresponding to the image scanning instruction; determining the target processing code including the business type identifier corresponding to the business authority; and performing business processing according to the determined target processing code.
[0057] The scanning terminal used by the business personnel, such as a handheld terminal, can be configured with a terminal identifier, wherein the terminal identifier can be used to indicate the type of business processing that the scanning terminal can perform, such as terminal identifier C for logistics information query business, and terminal identifier J for mailing business. Therefore, after the scanning terminal scans the QR code or barcode, the system can receive an image scanning instruction containing the terminal identifier, and can determine what type of business processing the terminal performs based on the terminal identifier in the image scanning instruction.
[0058] Based on the configuration of the above terminal identification, when there are multiple target processing codes containing business type identifications, multiple target codes to be processed can also be screened according to the business type identification contained in the target processing code and the terminal identification contained in the image scanning instruction. For example, when multiple target processing codes include mailing services and logistics information query services, the target processing codes are screened according to the terminal identification C contained in the image scanning instruction. Since the terminal identification C identifies that the terminal is used for logistics information query services, the target processing codes for non-logistics information query services are excluded, and the target processing code for logistics information query services is obtained at the same time. The logistics information query service is directly processed according to the target processing code, and the logistics information corresponding to the target processing code is generated and sent to the scanning terminal, thereby minimizing the situation where business personnel have to choose from target processing codes containing multiple other business types, thereby further improving business processing efficiency.
[0059] It can be understood that when the target processing code includes a logistics carrier identifier, the terminal identifier can indicate a logistics carrier, and therefore the business processing according to the target processing code includes: determining the logistics carrier corresponding to the terminal identifier according to the terminal identifier corresponding to the image scanning instruction; determining the target processing code including the logistics carrier identifier corresponding to the logistics carrier; and performing business processing according to the determined target processing code.
[0060] Figure 2is a schematic diagram of main steps of an image data processing method according to an embodiment of the present invention.
[0061] The following still takes the express parcel number scanning process in the logistics field as an example to describe in detail the image data processing method provided by the embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0062] Step S201: Acquire image data.
[0063] The system responsible for image data processing receives an image scanning instruction sent by the scanning terminal, and obtains image data from the scanned QR code or barcode according to the image scanning instruction.
[0064] Step S202: identifying one or more codes to be processed from the image data.
[0065] Business personnel use scanning terminals to scan multiple QR codes or barcodes for different purposes on the package label, such as for logistics information query, for delivery and / or for displaying product information, and obtain image data of multiple QR codes or barcodes. The system parses the obtained image data to obtain data information of the QR code or barcode, that is, one or more codes to be processed.
[0066] Step S203: Determine whether to stop acquiring image data, if yes, execute step S204; if no, execute step S201.
[0067] The system records the time point when each pending code is obtained. When the business personnel perform the scanning operation, the system calculates the interval between the current time and the time when the pending code was last recognized. If the interval is greater than the preset time, such as 0.5 seconds, the system stops obtaining image data and stops recognizing new pending codes.
[0068] Step S204: Obtain the service policy update message and the latest service policy.
[0069] The business policy is a screening rule for the system to be processed codes, which is used to match the codes to be processed, and the purpose is to screen out the codes to be processed that match the business policy from multiple codes to be processed. The business policy is configured in the remote configuration server. Receive the update message sent by the remote configuration server, or poll the remote configuration server to obtain the update message. The update message indicates the update of the business policy; according to the update message, obtain the latest business policy from the remote configuration server.
[0070] Step S205: Screening the one or more to-be-processed codes to obtain a target processing code.
[0071] According to the latest business strategy, determine whether each pending code contains at least one of the logistics carrier identifier and the business type identifier; based on the judgment result, use the pending code containing at least one of the logistics carrier identifier and the business type identifier as the target processing code.
[0072] Step S206: Determine whether the number of target processing codes is zero, if yes, execute step S207; if no, execute step S208.
[0073] After the codes to be processed are screened according to the business policy, it is determined whether the number of target processing codes that meet the business policy is zero.
[0074] Step S207: Generate an error code according to the judgment result.
[0075] When the target processing code that complies with the business policy is zero, an error code is generated and used as the business processing result.
[0076] Step S208: Determine whether the target processing code including the business type identifier is unique. If yes, execute step S209; if not, execute step S210.
[0077] Through screening, when the target processing code that complies with the business policy is not zero, it is determined whether the target processing code containing the business type identifier is unique.
[0078] Step S209: Perform business processing according to the target processing code that uniquely contains the business type identifier.
[0079] For example, when the unique target processing code is a mailing service QR code, the business processing is directly performed according to the mailing service, page data for filling in the mailing information is generated and the generated page data is used as the business processing result.
[0080] Step S210: Determine the target processing code according to the terminal identification.
[0081] In the case where the terminal identifier indicates business authority, the business authority corresponding to the terminal identifier is determined according to the terminal identifier corresponding to the image scanning instruction; a target processing code including a business type identifier corresponding to the business authority is determined; and business processing is performed according to the determined target processing code.
[0082] Step S211: Determine whether the target processing code determined by the terminal identifier is unique. If yes, execute step S212; if not, execute step S213.
[0083] The system determines whether the target processing code that matches the terminal identifier and is screened out from the target processing codes that comply with the business policy is unique according to the terminal identifier in the image scanning instruction.
[0084] Step S212: performing a service process corresponding to the service authority indicated by the terminal identifier according to the target processing code matched with the terminal identifier.
[0085] When there is only one target processing code matching the terminal identification selected from the target processing codes according to the terminal identification in the image scanning instruction, the business processing corresponding to the business authority indicated by the terminal identification is directly performed according to the target processing code matching the terminal identification.
[0086] Step S213: sending multiple target processing codes matching the terminal identifier to the user so that the user can make a selection, and performing service processing according to the processing code selected by the user.
[0087] A plurality of target processing codes matching the terminal identifier are sent to the user, so that the user inputs a selection instruction according to the plurality of target processing codes; according to the selection instruction, the target processing code selected by the user is determined from the plurality of target processing codes, and corresponding business processing is performed according to the target processing code selected by the user.
[0088] Step S214: Send the business processing result to the user.
[0089] It can be seen from the above embodiments that, according to the business policy, non-business-related pending codes can be excluded from the initially identified pending codes, and the target processing codes related to the business can be screened out; then, through the terminal identification, the target processing codes that do not match the terminal identification can be excluded from the target processing codes, and the target processing codes that match the terminal identification can be screened out; when there are two or more target processing codes that match the terminal identification, the target processing code selected by the user is determined by the user inputting a selection instruction, thereby omitting the manual operation process of selecting business-related and authorized pending codes from the pending codes that are non-business-related and non-authorized, reducing the user's operating burden, saving time costs, and improving processing efficiency.
[0090] It can be seen from the image data processing method according to the embodiment of the present invention that the scanned image data is obtained by responding to the user's image scanning instruction; one or more codes to be processed (such as a QR code or a barcode) are identified from the image data; according to the preconfigured business policy, a target processing code that complies with the business policy is screened out from one or more codes to be processed; business processing is performed according to the target processing code, and the business processing result is sent to the user. In this way, the automatic screening of the codes to be processed is realized, and business processing can be performed directly according to the target processing code related to the business policy without the user manually screening the codes to be processed, thereby saving business processing costs and user processing time, while improving business processing efficiency.
[0091] Figure 3 is a schematic diagram of main modules of an image data processing device according to an embodiment of the present invention.
[0092] like Figure 3 As shown, the image data processing device 300 according to the embodiment of the present invention includes: an image scanning module 301 , an image recognition module 302 , a data screening module 303 and a processing module 304 .
[0093] Among them, the image scanning module 301 is used to obtain image data in response to the user's image scanning instruction; the image recognition module 302 is used to identify one or more codes to be processed from the image data; the data screening module 303 is used to screen the one or more codes to be processed according to the preconfigured business policy to obtain the target processing code that complies with the business policy; the processing module 304: is used to perform business processing according to the target processing code and send the business processing result to the user.
[0094] In one embodiment of the present invention, the business policy includes at least one of the following: a logistics carrier identifier and a business type identifier, and the one or more pending codes are screened according to the preconfigured business policy to obtain a target processing code, including: the data screening module 303 is also used to determine whether each pending code contains at least one of the logistics carrier identifier and the business type identifier according to the business policy; based on the judgment result, the pending code containing at least one of the logistics carrier identifier and the business type identifier is used as the target processing code.
[0095] In one embodiment of the present invention, when the target processing code includes the business type identifier, the business processing according to the target processing code includes: the processing module 304 is also used to determine whether the target processing code containing the business type identifier in the image data is unique; if so, the business processing is performed according to the unique target processing code; if not, a plurality of the target processing codes are sent to the user so that the user inputs a selection instruction according to the plurality of the target processing codes; according to the selection instruction, the target processing code selected by the user is determined from the plurality of the target processing codes, and the business processing is performed according to the target processing code selected by the user.
[0096] In one embodiment of the present invention, when the target processing code includes the business type identifier, performing business processing according to the target processing code includes: the processing module 304 is also used to determine the business authority corresponding to the terminal identifier according to the terminal identifier corresponding to the image scanning instruction; determine the target processing code including the business type identifier corresponding to the business authority; and perform business processing according to the determined target processing code.
[0097] In one embodiment of the present invention, the identifying of one or more codes to be processed from the image data includes: the image recognition module 302 is also used to determine the interval between the current time and the time when the code to be processed was last identified according to the time when the code to be processed was identified; when the interval is longer than a preset time, stop acquiring image data, stop identifying new codes to be processed, and obtain the one or more codes to be processed according to the identified codes to be processed.
[0098] In one embodiment of the present invention, the data screening module 303 is further configured to obtain the service policy from a remote configuration server.
[0099] In one embodiment of the present invention, the data screening module 303 is also used to receive an update message sent by the remote configuration server, wherein the update message indicates an update of the business policy; obtain the latest business policy from the remote configuration server according to the update message; or poll the remote configuration server to obtain the update message.
[0100] According to the image data processing device of the embodiment of the present invention, it can be seen that the image scanning module responds to the user's image scanning instruction to obtain the scanned image data; the image recognition module identifies one or more codes to be processed, such as a QR code or a barcode, from the image data; the data screening module screens out the target processing code that meets the business policy from one or more codes to be processed according to the preconfigured business policy; the processing module performs business processing according to the target processing code and sends the business processing result to the user. In this way, the automatic screening of the codes to be processed is realized, and business processing can be directly performed according to the target processing code related to the business policy without the user manually screening the codes to be processed, thereby saving business processing costs and user processing time, while improving business processing efficiency.
[0101] Figure 4 An exemplary system architecture 400 is shown to which the image data processing method or the image data processing apparatus according to the embodiment of the present invention can be applied.
[0102] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0103] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as business processing applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0104] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting business processing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0105] The server 405 may be a server that provides various services, such as a background management server that provides support for business processing performed by users using the terminal devices 401, 402, and 403. The background management server may analyze the received image data and feed back the processing results (such as page data for filling in shipping information and logistics information) to the terminal device.
[0106] It should be noted that the image data processing method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the image data processing device is generally disposed in the server 405 .
[0107] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0108] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal 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 invention.
[0109] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, 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 part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 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.
[0110] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0111] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention 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 such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0112] It should be noted that the computer-readable medium shown in the present invention 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 the present invention, 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 the present invention, 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, 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 appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0113] 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 invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flow chart, and the combination of the boxes in the block diagram 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.
[0114] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes an image scanning module, an image recognition module, a data screening module, and a processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the processing module may also be described as a "module for sending business processing results to a terminal."
[0115] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining scanned image data by responding to the user's image scanning instruction; identifying one or more to-be-processed codes, such as a QR code or a barcode, from the image data; excluding to-be-processed codes that do not comply with the business policy from the one or more to-be-processed codes according to the preconfigured business policy, and obtaining a target processed code that complies with the business policy; processing the target processed code and sending the processing result to the user.
[0116] According to the technical solution of the embodiment of the present invention, by responding to the user's image scanning instruction, the scanned image data is obtained; one or more codes to be processed, such as a QR code or a barcode, are identified from the image data; according to the pre-configured business policy, a target processing code that complies with the business policy is screened out from the one or more codes to be processed; business processing is performed according to the target processing code, and the business processing result is sent to the user. In this way, the automatic screening of the codes to be processed is realized, and business processing can be performed directly according to the target processing code related to the business policy without the user manually screening the codes to be processed, thereby saving business processing costs and user processing time, while improving business processing efficiency.
[0117] 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 may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing image data, characterized in that: include: Responding to an image scanning instruction from a user, acquiring image data; identifying one or more codes to be processed from the image data; According to the preconfigured business policy, the one or more to-be-processed codes are screened to obtain a target processing code that complies with the business policy; Business processing is performed according to the target processing code, and the business processing result is sent to the user.
2. The method according to claim 1, characterized in that The business policy includes at least one of the following: a logistics carrier identifier and a business type identifier. The one or more to-be-processed codes are screened according to the preconfigured business policy to obtain a target processing code, including: According to the business policy, determining whether each to-be-processed code contains at least one of the logistics carrier identifier and the business type identifier; According to the judgment result, the to-be-processed code including at least one of the logistics carrier identifier and the business type identifier is used as the target processing code.
3. The method according to claim 2, characterized in that In the case where the target processing code includes the service type identifier, performing service processing according to the target processing code includes: Determining whether the target processing code containing the business type identifier in the image data is unique; If yes, business processing is performed according to the unique target processing code; If not, sending the plurality of target processing codes to the user, so that the user inputs a selection instruction according to the plurality of target processing codes; According to the selection instruction, the target processing code selected by the user is determined from the plurality of target processing codes, and business processing is performed according to the target processing code selected by the user.
4. The method according to claim 2, characterized in that: In the case where the target processing code includes the service type identifier, performing service processing according to the target processing code includes: Determining the service authority corresponding to the terminal identifier according to the terminal identifier corresponding to the image scanning instruction; Determine a target processing code including a business type identifier corresponding to the business authority; Business processing is performed according to the determined target processing code.
5. The method according to claim 1, characterized in that The step of identifying one or more codes to be processed from the image data comprises: Determine the interval between the current time and the time when the code to be processed was last recognized according to the time when the code to be processed was recognized; When the interval time is longer than the preset time, the image data acquisition is stopped, the identification of new codes to be processed is stopped, and the one or more codes to be processed are obtained according to the identified codes to be processed.
6. The method according to claim 1, characterized in that Also includes: The business policy is obtained from a remote configuration server.
7. The method according to claim 6, characterized in that Receiving an update message sent by the remote configuration server, wherein the update message indicates an update of a service policy; and obtaining the latest service policy from the remote configuration server according to the update message; or, The remote configuration server is polled to obtain the update message.
8. An image data processing device, characterized in that: include: An image scanning module, used to acquire image data in response to an image scanning instruction from a user; An image recognition module, used for identifying one or more codes to be processed from the image data; A data screening module, used to screen the one or more to-be-processed codes according to a pre-configured business policy to obtain a target processing code that complies with the business policy; Processing module: used to perform business processing according to the target processing code and send the business processing result to the user.
9. An electronic device for processing image data, characterized in that: include: one or more processors; a storage device 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 the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
