A method, system and device for automatically selecting recognition channels in the field of image recognition

By setting initial weights and dynamic adjustment algorithms, combined with heartbeat trial processing, the problem of slow response time and inability to monitor in real time in bank OCR recognition channel selection is solved, automatic recognition channel selection is realized, and banking business efficiency and cost control are improved.

CN115170314BActive Publication Date: 2024-08-23JIANGSU SUNING BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210816474.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2024-08-23
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

In banking scenarios, existing OCR recognition channel selection methods have problems such as slow response time, inability to monitor recognition channels in real time, manual configuration of switching weights, and insufficient sampling data making it difficult to adjust channel availability, which affects banking business efficiency.

Method used

By setting the initial weight, executing the weight dynamic adjustment algorithm and heartbeat trial processing, the recognition channel weight is adjusted in real time to automatically select the best recognition channel, avoid manual intervention, and improve response speed and system stability.

Benefits of technology

It realizes quick switching when the identification channel service response is poor, improves user experience, ensures that the system selects the best channel, reduces costs, and improves identification efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115170314B
    Figure CN115170314B
Patent Text Reader

Abstract

The present invention relates to the technical field of computer software application, and discloses a method, system and device for automatically selecting a recognition channel in the field of image recognition. The key points of the technical solution include: a weight setting module, which is used to set an initial weight for each recognition channel; a weight adjustment module: when a recognition transaction request is received after a first time period, a weight dynamic adjustment algorithm is executed for all recognition channels; a selection execution module, which is used to run a channel selection algorithm to select a recognition channel according to the initial weight of each recognition channel when a recognition transaction request is received for the first time; and run a channel selection algorithm to select a recognition channel according to the status and weight of all recognition channels updated after the execution of the weight dynamic adjustment algorithm, so as to achieve the effect of real-time adjustment according to the operation status of each recognition channel, and ensure that the system can select the best recognition channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer software application technology, and more specifically, to a method, system and device for automatically selecting a recognition channel in the field of image recognition. Background Art

[0002] In the banking scenario, as the scale of banking business and customers continues to expand, when reviewing customer qualifications or employee reimbursement, customers are required to upload invoice images (airline tickets, special VAT invoices, general VAT invoices, train tickets, taxi tickets, fixed-amount invoices), and then the back-end business staff manually enter the ticket information. The office efficiency will be very low. Therefore, the bank will introduce an OCR recognition system. By transmitting the invoice image to the OCR recognition channel manufacturer, the OCR recognition channel manufacturer will recognize and parse it and return the text information on the invoice image to the bank.

[0003] Taking into account factors such as system operation stability, operating costs, and response time, banks generally connect to multiple OCR recognition channel manufacturers. The acceptance weight of each recognition channel manufacturer can be configured in the background to distribute the transaction volume to each manufacturer in proportion.

[0004] Through post-production data analysis and the processing of problems and solutions during operation, the problems and shortcomings of the current identification channel selection method are summarized as follows:

[0005] (1) The number of online users carried by each manufacturer is different. Especially at the end of the month, the response time becomes slower, which seriously affects the banking experience.

[0006] (2) When a problem occurs with a manufacturer, it is impossible to monitor it in real time and thus it is difficult to detect the problem in time.

[0007] (3) When the manufacturer's route needs to be switched, the switching weight needs to be manually configured.

[0008] (4) Due to insufficient sampling data or no sampling data at all, it is difficult to continue to monitor the availability of identification channels and adjust the weights of identification channels of various manufacturers. Summary of the invention

[0009] The purpose of the present invention is to provide a method, system and device for automatically selecting recognition channels in the field of image recognition, so as to achieve real-time adjustment according to the operating status of each recognition channel, thereby ensuring that the system can select the best recognition channel.

[0010] The above technical objective of the present invention is achieved through the following technical solution: A method for automatically selecting a recognition channel in the field of image recognition, comprising the following steps:

[0011] Set initial weights for each recognition channel;

[0012] When receiving the identification transaction request for the first time, the channel selection algorithm is run to select the identification channel according to the initial weights of each identification channel;

[0013] When an identification transaction request is received after the first time period, a weight dynamic adjustment algorithm is executed on all identification channels;

[0014] According to the states and weights of all recognition channels updated after executing the weight dynamic adjustment algorithm, the channel selection algorithm is run to select the recognition channel.

[0015] As a preferred technical solution of the present invention, an initial weight is set for each recognition channel according to recognition channel cost data, and the principle for setting the initial weight is: the weight of the recognition channel with low cost > the weight of the recognition channel with high cost.

[0016] As a preferred technical solution of the present invention, the content of the weight dynamic adjustment algorithm includes asynchronous execution of:

[0017] Weight adjustment calculation of normal state recognition channel;

[0018] Heartbeat detection processing of abnormal state identification channels and some normal state identification channels:

[0019] The weight restoration process of the recognition channel whose weight has been reduced.

[0020] As a preferred technical solution of the present invention, the weight adjustment calculation of the normal state recognition channel includes:

[0021] For the identification channel in a normal state, the number of transactions in the current cycle, the identification success rate of the current cycle, and the average response time of the current cycle in the identification channel are obtained and calculated every first time period;

[0022] If the current cycle transaction quantity of the identification channel is greater than the minimum sampling quantity, an identification channel weight adjustment instruction is issued; if the current cycle identification success rate of the identification channel is less than the first identification success rate, a heartbeat test process is initiated for the identification channel; if the current cycle identification success rate is greater than the first identification success rate or the current cycle transaction quantity is zero, the identification channel weight is not adjusted;

[0023] According to the recognition channel weight adjustment instruction, the real-time operation data of the recognition channel is obtained. If the recognition success rate of the current cycle is zero, a heartbeat test process is initiated. If the recognition success rate of the current cycle is not zero, it is determined whether the current cycle recognition success rate ≥ the second recognition success rate and the current cycle average response time ≤ the first response time are satisfied at the same time. If not, the current weight of the recognition channel is reduced; if so, the current weight of the recognition channel is increased;

[0024] For the adjusted weight data, the weight range limitation algorithm is executed to obtain the operational weight of the identification channel and update the configuration.

[0025] As a preferred technical solution of the present invention, the weight range limiting algorithm includes:

[0026] When the recognition success rate in the current cycle is less than the second recognition success rate, and / or the average response time in the current cycle is greater than the first response time, and the current weight of the recognition channel is reduced: if the reduced recognition channel weight is greater than or equal to the weight threshold, the reduced weight is updated to the cache; if the reduced recognition channel weight is less than the weight threshold, the operation status of the recognition channel is updated to abnormal;

[0027] When the recognition success rate in the current cycle is ≥ the second recognition success rate, and the average response time in the current cycle is ≤ the first response time, when the current weight of the recognition channel is increased: if the increased recognition channel weight is ≤ the maximum weight, the increased weight is updated to the cache; if the increased recognition channel weight is > the maximum weight, the maximum weight is updated to the cache.

[0028] As a preferred technical solution of the present invention, the process of heartbeat trial processing is:

[0029] Acquire a first amount of sampled data in the identification channel, wherein the first amount of sampled data in the identification channel is derived from historical transaction data or manually preset sampled data before a first time period;

[0030] A heartbeat test transaction is performed on the identification channel in sequence by using the first number of sampled data in the identification channel, and the success rate and average response time of the test transaction are counted.

[0031] The objects of the heartbeat test processing include: initiating a heartbeat test processing for an abnormal state identification channel; initiating a heartbeat test processing for a normal state identification channel that does not meet the minimum sampling quantity within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate condition; initiating a heartbeat test processing for a normal state identification channel that meets the current cycle identification success rate of zero within the first identification cycle and the current cycle transaction quantity of the identification channel is greater than the minimum sampling quantity;

[0032] When a heartbeat test is initiated for a normal state identification channel that does not meet the minimum sampling quantity within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate condition, it is determined whether all heartbeat test transactions have failed. If so, the operation state of the identification channel is updated to abnormal. If not, the identification channel weight is not adjusted.

[0033] When a heartbeat test is initiated for a normal identification channel in the first identification cycle, where the current cycle transaction number of the identification channel is greater than the minimum sampling number and the current cycle identification success rate is zero: if all heartbeat test transactions are successful, the identification channel weight is not adjusted; if the heartbeat test transactions are not completely successful, the identification channel weight is reduced; if all heartbeat tests fail, the status of the identification channel is determined by the availability algorithm;

[0034] When initiating a heartbeat test for an abnormal identification channel, determine whether the number of successful heartbeat test transactions reaches the heartbeat test transaction success threshold, and the average response time is less than the maximum response time. If so, update the identification channel operation status to normal, and set the identification channel weight to the first proportion of the identification channel's original weight; if not, execute an independent timed task for it.

[0035] The availability algorithm is as follows: the sum of the total number of successful transactions and the number of successful heartbeat trial transactions, multiplied by the product of the minimum number of transactions, minus the total number of failed transactions, is recorded as W, and it is determined whether W is greater than 0. If so, it is determined that the identification channel status is normal, otherwise, it is determined that the identification channel status is abnormal.

[0036] As a preferred technical solution of the present invention, the weight recovery processing includes executing independent timing tasks, wherein the independent timing tasks include: for a normal state identification channel with a reduced weight, if at least M transaction processing is executed and all are successful within N cycles after the cycle in which the weight reduction is executed, the weight is restored; for an abnormal channel that fails the heartbeat trial processing, if at least M heartbeat trial transactions are executed and all are successful within N cycles after the heartbeat trial processing fails, its state is changed to normal and the weight is restored.

[0037] As a preferred technical solution of the present invention, running the channel selection algorithm includes:

[0038] Select all identification channels whose operating status is normal;

[0039] Generate a value range set according to all recognition channel weights and the sum of all recognition channel weights, in which the weight of each recognition channel has a continuous value range subset that does not intersect with each other;

[0040] Generate a random number in a set of value ranges;

[0041] An identification channel corresponding to a subset of the continuous value range containing the random number is selected for trading.

[0042] A system for automatically selecting a recognition channel in the field of image recognition, comprising:

[0043] A weight setting module is used to set the initial weight for each recognition channel;

[0044] Weight adjustment module: When receiving an identification transaction request after the first time period, the weight dynamic adjustment algorithm is executed on all identification channels;

[0045] The selection execution module is used to run the channel selection algorithm to select the identification channel according to the initial weights of each identification channel when receiving the identification transaction request for the first time; and run the channel selection algorithm to select the identification channel according to the status and weights of all identification channels updated after the execution weight dynamic adjustment algorithm.

[0046] A device for automatically selecting a recognition channel in the field of image recognition comprises: a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor implements the above method when executing the computer program.

[0047] In summary, the present invention has the following beneficial effects: 1. When a vendor identification channel service response is poor, it can quickly switch to other identification channels without manual parameter configuration modification, thereby improving user experience.

[0048] It can make real-time dynamic adjustments based on the operating status of each recognition channel to ensure that the system can select the best recognition channel.

[0049] When the initial weight of the recognition channel is set, the recognition channel can be set according to the actual emphasis factors. For example, by setting the cost, the weight of the low-cost recognition channel can be emphasized to ensure that the recognition work runs efficiently while continuing to control costs when actually selecting the recognition channel, thereby saving the recognition cost to the greatest extent.

[0050] It has a complete recognition channel weight adjustment scheme, and the system is responsible for executing the adjustment and recognition channel selection. The adjustment and selection are fast and more accurate, ensuring the efficient operation of actual recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flow chart of the method of the present invention.

[0052] Figure 2 It is a schematic diagram of weight adjustment calculation of the present invention. DETAILED DESCRIPTION

[0053] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0054] like Figure 1 and 2 As shown, the present invention provides a method for automatically selecting a recognition channel in the field of image recognition, and executes the method steps through corresponding system modules. The specific steps are as follows:

[0055] S1. Set initial weights for each recognition channel through a weight setting module; specifically, set initial weights for each recognition channel according to recognition channel cost data, and the principle for setting initial weights is: low-cost recognition channel weights > high-cost recognition channel weights. Since subsequent weight adjustments are all adjusted based on recognition efficiency, the present invention sets the weight of the tendency based on cost from the beginning, so that both cost and efficiency can be taken into account in subsequent selection and use.

[0056] S2. When the identification transaction request is received for the first time by selecting the execution module, the channel selection algorithm is run to select the identification channel according to the initial weight of each identification channel; since there is no actual operation data, at the initial operation, it is assumed that the status of all identification channels is normal, and all identification channels are selected.

[0057] S3, a weight adjustment module, when receiving an identification transaction request after the first time period, executes a weight dynamic adjustment algorithm for all identification channels;

[0058] The content of the dynamic weight adjustment algorithm includes asynchronous execution of: A. weight adjustment calculation of normal state recognition channel; B. heartbeat trial processing of abnormal state recognition channel and some normal state recognition channels; C. weight recovery processing of recognition channels with reduced weight.

[0059] A. The weight adjustment calculation of the normal state recognition channel includes:

[0060] A1. For the identification channel in normal state, every first time period, the transaction data in the identification channel is obtained and calculated, that is, the request time, response end time, and response code of each transaction; the response code includes success and failure, which is used to indicate the success or failure of the transaction, so as to calculate the number of transactions in the current period, the identification success rate of the current period, and the average response time of the current period;

[0061] For example: The acquired transaction data model is shown in Table 1 below:

[0062] Table 1

[0063]

[0064] A2. If the current cycle transaction number of the identification channel is greater than the minimum sampling number, an identification channel weight adjustment instruction is issued; if the current cycle identification success rate of the identification channel is less than the first identification success rate, a heartbeat test is initiated for the identification channel; if the current cycle identification success rate is greater than the first identification success rate or the current cycle transaction number is zero, the identification channel weight is not adjusted. If the transaction number in the cycle is 0, it means that the current period is a low-peak period, and no heartbeat test is required. The default channel is available, and since the sampling number is insufficient, no weight adjustment is required;

[0065] A3. According to the recognition channel weight adjustment instruction, the real-time operation data of the recognition channel is obtained. If the recognition success rate of the current cycle is zero, a heartbeat test process is initiated. If the recognition success rate of the current cycle is not zero, it is determined whether the conditions of the recognition success rate of the current cycle ≥ the second recognition success rate and the average response time of the current cycle ≤ the first response time are met at the same time. If not, the current weight of the recognition channel is reduced; if so, the current weight of the recognition channel is increased;

[0066] A4. Execute the weight range limiting algorithm for the adjusted weight data to obtain the operational weight of the identification channel and update the configuration.

[0067] Among them, the weight range limiting algorithm includes:

[0068] When the recognition success rate in the current cycle is less than the second recognition success rate, and / or the average response time in the current cycle is greater than the first response time, and the current weight of the recognition channel is reduced: if the reduced recognition channel weight is greater than or equal to the weight threshold, the reduced weight is updated to the cache; if the reduced recognition channel weight is less than the weight threshold, the operation status of the recognition channel is updated to abnormal;

[0069] When the recognition success rate in the current cycle is ≥ the second recognition success rate, and the average response time in the current cycle is ≤ the first response time, when the current weight of the recognition channel is increased: if the increased recognition channel weight is ≤ the maximum weight, the increased weight is updated to the cache; if the increased recognition channel weight is > the maximum weight, the maximum weight is updated to the cache.

[0070] Specifically, when the weight of the recognition channel is increased, the adjusted weight F 后 =F 前 +b, when the weight of the recognition channel is reduced, the adjusted weight F 后 =F 前 -b, where F 前 is the recognition channel weight of the previous cycle, and b is the weight adjustment base. For example, if b is set to 5, then each time the channel weight is increased, F 后 =F 前 +5, each time you reduce the channel weight, F 后=F 前 -5.

[0071] B. Heartbeat detection processing of abnormal state identification channels and some normal state identification channels:

[0072] Specifically, the process of heartbeat trial processing is as follows:

[0073] Acquire a first amount of sampled data in the identification channel, wherein the first amount of sampled data in the identification channel is derived from historical transaction data or manually preset sampled data before a first time period;

[0074] For example: collect sampling data on a daily basis, and store any three sampling data that were successfully identified yesterday, including image data and recognition return results. It should be noted that each channel needs to store three successfully identified data.

[0075] Specifically, the heartbeat sampling data is updated through a separate daily scheduled task at 00:00 every day;

[0076] The sampling data acquisition rules are:

[0077] When going online for the first time, all channel sampling data can be manually preset, that is, developing background sampling;

[0078] If there is no requested data for the channel yesterday, sample data is taken from the identified channel with the largest transaction volume;

[0079] If all channels have no requested data yesterday, then one week’s data will be taken from the channel with the largest transaction volume as the collected data;

[0080] If there is no request data in all channels for a week, an email or SMS warning will be sent, requiring manual intervention.

[0081] After the sampling data is obtained, a heartbeat test transaction is performed on the identification channel in turn through the first number of sampling data in the identification channel, and the success rate and average response time of the test transaction are counted.

[0082] The objects of the heartbeat test processing include: initiating a heartbeat test processing for an abnormal state identification channel; initiating a heartbeat test processing for a normal state identification channel that does not meet the minimum sampling quantity within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate condition; initiating a heartbeat test processing for a normal state identification channel that meets the current cycle identification success rate of zero within the first identification cycle and the current cycle transaction quantity of the identification channel is greater than the minimum sampling quantity;

[0083] When a heartbeat test is initiated for a normal state identification channel that does not meet the minimum sampling quantity within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate condition, it is determined whether all heartbeat test transactions have failed. If so, the operation state of the identification channel is updated to abnormal. If not, the identification channel weight is not adjusted.

[0084] When a heartbeat test is initiated for a normal identification channel in the first identification cycle, where the current cycle transaction number of the identification channel is greater than the minimum sampling number and the current cycle identification success rate is zero: if all heartbeat test transactions are successful, the identification channel weight is not adjusted; if the heartbeat test transactions are not completely successful, the identification channel weight is reduced; if all heartbeat tests fail, the status of the identification channel is determined by the availability algorithm;

[0085] When initiating a heartbeat test for an abnormal identification channel, determine whether the number of successful heartbeat test transactions reaches the heartbeat test transaction success threshold, and the average response time is less than the maximum response time. If so, update the identification channel operation status to normal, and set the identification channel weight to the first proportion of the identification channel's original weight; if not, execute an independent timed task for it. The first proportion can be one-half.

[0086] The availability algorithm is: the sum of the total number of successful transactions and the number of successful heartbeat trial transactions, multiplied by the minimum number of transactions, minus the total number of failed transactions, and the result is recorded as W. It is determined whether W is greater than 0. If so, the identification channel state is normal. If not, the identification channel state is abnormal. It should be noted that before the dynamic adjustment of the weight, there is also a determination of the identification channel state. If the state of the identification channel is unclear or the time point for the state update is reached, the availability algorithm is used to update the state of the identification channel.

[0087] Specific examples:

[0088] Taking the image recognition channel ID A as an example, construct the request time period data:

[0089] 1) Starts from 00:00:00 every day and ends at 24:00:00 every day;

[0090] 2) 00:00:00-00:05:00, recorded as the first 5-minute period;

[0091] 3) Record: image recognition channel identification A, total number of transaction recognitions within the time period, total number of transaction failures within the time period, total number of transaction successes within the time period;

[0092] 4) Similarly, re-record the next 5-minute data;

[0093] 5) The business data in this scenario are recorded as follows:

[0094] Channel A1, 10 requests, 1 success, 9 failures;

[0095] Channel A1, 10 requests, all failed (different identification types);

[0096] Channel A1, 1 request, all failed (different identification types);

[0097] Its data model is shown in Table 2 below:

[0098] Table 2

[0099]

[0100] C. Weight recovery processing of the recognition channel with reduced weight.

[0101] The weight recovery process includes executing independent timed tasks, wherein the independent timed tasks include: for a normal state identification channel with a reduced weight, if at least M transaction processes are executed and all are successful within N cycles after the cycle in which the weight reduction is executed, the weight is restored; for example, if the first time period is five minutes, then six first time periods are selected for statistics. If there are three transactions within 30 minutes and all are successful, it means that the identification channel can perform normal and efficient transactions, and then the weight of the identification channel is restored.

[0102] For abnormal channels that fail the heartbeat test, if at least M heartbeat test transactions are executed and all are successful within N cycles after the heartbeat test fails, its status will be changed to normal and the weight will be restored. Since abnormal channels cannot perform actual transactions, heartbeat transaction tests are also used here. When the above conditions are met, it means that the channel can trade normally and the efficiency is up to standard, so the weight can be restored.

[0103] S4. By selecting an execution module, according to the states and weights of all recognition channels updated after executing the weight dynamic adjustment algorithm, a channel selection algorithm is run to select a recognition channel.

[0104] Running the channel selection algorithm includes:

[0105] Select all identification channels whose operating status is normal;

[0106] Generate a value range set according to all recognition channel weights and the sum of all recognition channel weights, in which the weight of each recognition channel has a continuous value range subset that does not intersect with each other;

[0107] Generate a random number in a set of value ranges;

[0108] Select an identification channel corresponding to a subset of a continuous numerical range containing random numbers for trading.

[0109] For example: Suppose there are three channels, A, B, and C, and the configured weight ratios are x:y:z respectively.

[0110] When a trading request is received, generate a random number rand(x + y + z) between 0 and x + y + z.

[0111] When rand(x + y + z) < x, use channel A.

[0112] When x ≤ rand(x + y + z) < x + y, use channel B.

[0113] When x + y ≤ rand(x + y + z) < x + y + z, use channel C.

[0114] Corresponding to the above method and system, the present invention also provides a device for automatically selecting an identification channel in the field of image recognition, including: a processor and a memory, the memory stores a computer program executable by the processor, and when the processor executes the computer program, the above method is implemented.

[0115] The advantages of the present invention are as follows: It can quickly switch to other channels without manual parameter configuration modification in the case of poor service response of a manufacturer channel, improving the user experience. It can dynamically adjust in real time according to the operating status of each channel to ensure that the system can select the best channel. When initially setting the weights of the channels, it can set the channels according to actual emphasis factors, such as cost setting. By emphasizing the weights of low-cost channels, when actually selecting channels, while ensuring the efficient operation of the recognition work, cost control can still be continued, saving the recognition cost to the greatest extent. It has a complete channel weight adjustment scheme, and the adjustment and channel selection are completely executed by the system, with fast adjustment and selection speed and higher accuracy, ensuring the efficient operation of actual recognition.

[0116] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the idea of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, several improvements and refinements made without departing from the principle of the present invention should also be regarded as within the protection scope of the present invention.

Claims

1. A method for automatically selecting a recognition channel in the field of image recognition, characterized in that: The steps include: Setting initial weights for each recognition channel, where the recognition channel is an OCR manufacturer recognition channel; When receiving the identification transaction request for the first time, the channel selection algorithm is run to select the identification channel according to the initial weights of each identification channel; When an identification transaction request is received after the first time period, a weight dynamic adjustment algorithm is executed on all identification channels; According to the states and weights of all recognition channels updated after executing the weight dynamic adjustment algorithm, the states of the recognition channels include normal states and abnormal states, and the channel selection algorithm is run to select the recognition channel; The content of the weight dynamic adjustment algorithm includes asynchronous execution of: Weight adjustment calculation of normal state recognition channel; Heartbeat detection processing of abnormal state identification channels and some normal state identification channels; Weight recovery processing of the recognition channel with reduced weight; The weight adjustment calculation of the normal state identification channel includes: for the normal state identification channel, every first time period, obtaining and calculating the current cycle transaction number, the current cycle identification success rate, and the current cycle average response time in the identification channel; if the current cycle transaction number of the identification channel is greater than the minimum sampling number, issuing an identification channel weight adjustment instruction; if the current cycle identification success rate of the identification channel is less than the first identification success rate, initiating a heartbeat trial process for the identification channel; if the current cycle identification success rate is greater than the first identification success rate or the current cycle transaction number is zero, the weight of the identification channel is not adjusted; according to the identification channel weight adjustment instruction, obtaining the real-time operation data of the identification channel, if the current cycle identification success rate is zero, initiating a heartbeat trial process, if the current cycle identification success rate is not zero, determining whether the current cycle identification success rate ≥ the second identification success rate, and the current cycle average response time ≤ the first response time, are simultaneously satisfied. , if not, then reduce the current weight of the identification channel; if so, then increase the current weight of the identification channel; for the adjusted weight data, execute the weight range limitation algorithm to obtain the operational weight of the identification channel and update the configuration; the weight range limitation algorithm includes: when the recognition success rate of the current cycle is less than the second recognition success rate, and / or the average response time of the current cycle is greater than the first response time, when reducing the current weight of the identification channel, if the reduced weight of the identification channel is ≥ the weight threshold, then update the reduced weight to the cache; if the reduced weight of the identification channel is less than the weight threshold, then update the operating status of the identification channel to abnormal; when the recognition success rate of the current cycle is greater than the second recognition success rate, and the average response time of the current cycle is less than the first response time, when increasing the current weight of the identification channel, if the increased weight of the identification channel is ≤ the maximum weight, then update the increased weight to the cache; if the increased weight of the identification channel is greater than the maximum weight, then update the maximum weight to the cache; The process of the heartbeat test processing is: obtaining a first number of sampling data in the identification channel, wherein the first number of sampling data in the identification channel is derived from historical transaction data or manually preset sampling data before the first time period; performing heartbeat test transactions on the identification channel in turn through the first number of sampling data in the identification channel, and counting the success rate and average response time of the test transactions; the objects of the heartbeat test processing include: initiating a heartbeat test processing on an abnormal state identification channel; initiating a heartbeat test processing on a normal state identification channel that does not meet the minimum sampling number within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate; initiating a heartbeat test processing on a normal state identification channel that meets the current cycle identification success rate of zero within the first identification period, and the current cycle transaction number of the identification channel is greater than the minimum sampling number; when initiating a heartbeat test processing on a normal state identification channel that does not meet the minimum sampling number within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate, it is determined whether all heartbeat test transactions have failed, and if so, the running state of the identification channel will be updated. is abnormal, if not, the identification channel weight is not adjusted; when the heartbeat test processing is initiated for the normal state identification channel in the first identification cycle, the number of transactions in the current cycle of the identification channel is greater than the minimum sampling number, and the current cycle identification success rate meets the condition of zero: if the heartbeat test transactions are all successful, the identification channel weight is not adjusted; if the heartbeat test transactions are not completely successful, the identification channel weight is reduced; if the heartbeat test fails, the state of the identification channel is judged by the availability algorithm; when the heartbeat test processing is initiated for the identification channel in the abnormal state, it is judged whether the number of successful heartbeat test transactions reaches the heartbeat test transaction success threshold, and the average response time is less than the maximum response time. If so, the identification channel operation state is updated to normal, and the weight of the identification channel is set to the first proportion of the original weight of the identification channel; if not, an independent timing task is performed on it; the availability algorithm is: the sum of the total number of successful transactions and the number of successful heartbeat test transactions, the product of the minimum number of transactions, minus the total number of failed transactions is recorded as W, and it is judged whether W is greater than 0. If so, the identification channel state is judged to be normal, if not, the identification channel state is judged to be abnormal; The weight recovery process includes executing an independent timed task, wherein the independent timed task includes: for a normal state identification channel with a reduced weight, if at least M transaction processes are executed and all are successful within N cycles after the cycle in which the weight reduction is executed, the weight is restored; for an abnormal channel that fails in the heartbeat test process, if at least M heartbeat test transactions are executed and all are successful within N cycles after the heartbeat test process fails, the state is changed to normal and the weight is restored; The channel selection algorithm includes: selecting all identification channels with normal operating status; generating a value range set based on the weights of all identification channels and the sum of the weights of all identification channels, in which the weight of each identification channel in the value range set has a continuous value range subset that has no intersection with each other; generating a random number in the value range set; and selecting the identification channel corresponding to the continuous value range subset containing the random number for trading.

2. The method for automatically selecting a recognition channel in the field of image recognition according to claim 1, characterized in that: According to the recognition channel cost data, an initial weight is set for each recognition channel. The principle for setting the initial weight is: the weight of the recognition channel with low cost > the weight of the recognition channel with high cost.

3. A system for automatically selecting a recognition channel in the field of image recognition, characterized in that: include: A weight setting module, used to set an initial weight for each recognition channel, wherein the recognition channel is an OCR manufacturer recognition channel; Weight adjustment module: when receiving the identification transaction request after the first time period, execute the weight dynamic adjustment algorithm for all identification channels; wherein the weight dynamic adjustment algorithm includes asynchronous execution of: weight adjustment calculation of normal state identification channels; Heartbeat detection processing of abnormal state identification channels and some normal state identification channels; Weight recovery processing of the recognition channel with reduced weight; The weight adjustment calculation of the normal state identification channel includes: for the normal state identification channel, every first time period, obtaining and calculating the current cycle transaction number, the current cycle identification success rate, and the current cycle average response time in the identification channel; if the current cycle transaction number of the identification channel is greater than the minimum sampling number, issuing an identification channel weight adjustment instruction; if the current cycle identification success rate of the identification channel is less than the first identification success rate, initiating a heartbeat trial process for the identification channel; if the current cycle identification success rate is greater than the first identification success rate or the current cycle transaction number is zero, the weight of the identification channel is not adjusted; according to the identification channel weight adjustment instruction, obtaining the real-time operation data of the identification channel, if the current cycle identification success rate is zero, initiating a heartbeat trial process, if the current cycle identification success rate is not zero, determining whether the current cycle identification success rate ≥ the second identification success rate, and the current cycle average response time ≤ the first response time, are simultaneously satisfied. , if not, then reduce the current weight of the identification channel; if so, then increase the current weight of the identification channel; for the adjusted weight data, execute the weight range limitation algorithm to obtain the operational weight of the identification channel and update the configuration; the weight range limitation algorithm includes: when the recognition success rate of the current cycle is less than the second recognition success rate, and / or the average response time of the current cycle is greater than the first response time, when reducing the current weight of the identification channel, if the reduced weight of the identification channel is ≥ the weight threshold, then update the reduced weight to the cache; if the reduced weight of the identification channel is less than the weight threshold, then update the operating status of the identification channel to abnormal; when the recognition success rate of the current cycle is greater than the second recognition success rate, and the average response time of the current cycle is less than the first response time, when increasing the current weight of the identification channel, if the increased weight of the identification channel is ≤ the maximum weight, then update the increased weight to the cache; if the increased weight of the identification channel is greater than the maximum weight, then update the maximum weight to the cache; The process of the heartbeat test processing is: obtaining a first number of sampling data in the identification channel, wherein the first number of sampling data in the identification channel is derived from historical transaction data or manually preset sampling data before the first time period; performing heartbeat test transactions on the identification channel in turn through the first number of sampling data in the identification channel, and counting the success rate and average response time of the test transactions; the objects of the heartbeat test processing include: initiating a heartbeat test processing on an abnormal state identification channel; initiating a heartbeat test processing on a normal state identification channel that does not meet the minimum sampling number within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate; initiating a heartbeat test processing on a normal state identification channel that meets the current cycle identification success rate of zero within the first identification period, and the current cycle transaction number of the identification channel is greater than the minimum sampling number; when initiating a heartbeat test processing on a normal state identification channel that does not meet the minimum sampling number within the first time period and the current cycle identification success rate of the identification channel is greater than the first identification success rate, it is determined whether all heartbeat test transactions have failed, and if so, the running state of the identification channel will be updated. is abnormal, if not, the identification channel weight is not adjusted; when the heartbeat test processing is initiated for the normal state identification channel in the first identification cycle, the number of transactions in the current cycle of the identification channel is greater than the minimum sampling number, and the current cycle identification success rate meets the condition of zero: if the heartbeat test transactions are all successful, the identification channel weight is not adjusted; if the heartbeat test transactions are not completely successful, the identification channel weight is reduced; if the heartbeat test fails, the state of the identification channel is judged by the availability algorithm; when the heartbeat test processing is initiated for the identification channel in the abnormal state, it is judged whether the number of successful heartbeat test transactions reaches the heartbeat test transaction success threshold, and the average response time is less than the maximum response time. If so, the identification channel operation state is updated to normal, and the weight of the identification channel is set to the first proportion of the original weight of the identification channel; if not, an independent timing task is performed on it; the availability algorithm is: the sum of the total number of successful transactions and the number of successful heartbeat test transactions, the product of the minimum number of transactions, minus the total number of failed transactions is recorded as W, and it is judged whether W is greater than 0. If so, the identification channel state is judged to be normal, if not, the identification channel state is judged to be abnormal; The weight recovery process includes executing an independent timed task, wherein the independent timed task includes: for a normal state identification channel with a reduced weight, if at least M transaction processes are executed and all are successful within N cycles after the cycle in which the weight reduction is executed, the weight is restored; for an abnormal channel that fails in the heartbeat test process, if at least M heartbeat test transactions are executed and all are successful within N cycles after the heartbeat test process fails, the state is changed to normal and the weight is restored; A selection execution module is used to run a channel selection algorithm to select an identification channel when an identification transaction request is received for the first time according to the initial weights of each identification channel; according to the status and weights of all identification channels updated after the execution of the weight dynamic adjustment algorithm, the status of the identification channel includes a normal state and an abnormal state, and run the channel selection algorithm to select the identification channel; wherein the channel selection algorithm includes: selecting all identification channels with a normal operating state; generating a value range set according to the weights of all identification channels and the sum of the weights of all identification channels, in which the weight of each identification channel in the value range set has a continuous value range subset that has no intersection with each other; generating a random number in the value range set; and selecting an identification channel corresponding to the continuous value range subset containing the random number for transaction.

4. A device for automatically selecting a recognition channel in the field of image recognition, characterized in that: include: A processor and a memory, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.