Thickness sensor detection method, device, computer equipment and storage medium

By obtaining the current background value and preset threshold set of the thickness sensor, judging the collection value and background value of thick and thin certificates of deposit, and calculating the difference value, the problem that the thickness sensor cannot detect in all directions is solved, the detection accuracy is improved, and the bank's losses are avoided.

CN113034423BActive Publication Date: 2025-09-05SHENZHEN YIHUA COMP +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911342025.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-24
Publication Date
2025-09-05
Estimated Expiration
2039-12-24

AI Technical Summary

Technical Problem

Existing technologies are unable to effectively detect whether the thickness sensor is working properly in multiple directions, which may result in multiple bills being separated and causing financial losses to the bank.

Method used

By obtaining the current background value and preset threshold set of the thickness sensor to be detected, it is determined whether the current background value meets the background requirements, the collection value and background value of the thick deposit certificate and the thin deposit certificate are obtained, the difference value is calculated, and compared with the preset difference threshold to determine whether the sensor is abnormal.

Benefits of technology

The qualification of thickness sensors can be detected from all directions, which improves the detection accuracy and avoids bank losses caused by unqualified sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113034423B_ABST
    Figure CN113034423B_ABST
Patent Text Reader

Abstract

The present application relates to a method for detecting a thickness sensor, the method comprising: determining whether the current background value meets the background requirements according to a preset background threshold; when the current background value meets the background requirements, determining the thick certificate collection value according to the preset thick certificate threshold, determining the thin certificate collection value according to the preset thin certificate threshold, and determining whether the first background value and the second background value meet the thick certificate collection requirements, the thin certificate collection requirements, and the background requirements, respectively, according to the preset background threshold; when all of the above values ​​meet the requirements, calculating a difference value based on the thick certificate collection value and the thin certificate collection value; and determining whether the thickness sensor to be detected is abnormal based on the difference value and the preset difference threshold. Through the above method, it is possible to effectively detect whether the thickness sensor is qualified from multiple angles, thereby improving the detection accuracy and avoiding bank losses due to unqualified thickness sensors. In addition, a thickness sensor detection device, computer equipment, and storage medium are also proposed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic testing technology, and in particular to a detection method, device, computer equipment and storage medium for a thickness sensor. Background Art

[0002] Because there are different types of bills, including certificates of deposit, checks, business power of attorney, etc., the different papers used directly lead to different bill thicknesses. Structurally, the bills need to be separated individually each time for printing through the bill separation mechanism. However, with the use of the equipment and the wear of the separation module, there will definitely be a time when multiple overlapping bills are separated. If they are not discovered in time and are taken away by customers for illegal gains, it may directly lead to huge economic losses for the bank. Therefore, existing solutions generally add a sensor that can detect the thickness of the bill to promptly detect the problem of bill separation and duplication.

[0003] However, after the thickness sensor is installed at the factory or after being used for a period of time, it is impossible to detect whether it is working normally in all directions. The existing technical solutions do not have an effective means to perform self-inspection and evaluation on the thickness sensor. Summary of the Invention

[0004] Based on this, the present invention proposes a thickness sensor detection method, device, computer equipment and storage medium that can effectively detect whether the thickness sensor is qualified from multiple angles, thereby improving the detection accuracy and avoiding bank losses due to unqualified thickness sensors.

[0005] A method for detecting a thickness sensor, the method comprising:

[0006] Obtaining a current background value of the thickness sensor to be detected, and obtaining a preset threshold value set, wherein the preset threshold value set includes: a preset background threshold value, a preset thick deposit threshold value, a preset thin deposit threshold value, and a preset difference threshold value;

[0007] Determining whether the current background value meets the background requirement according to the current background value and the preset background threshold;

[0008] When the current background value meets the background requirement, obtaining the thick deposit certificate collection value and the corresponding first background value when the thick deposit certificate is placed, and obtaining the thin deposit certificate collection value and the corresponding second background value when the thin deposit certificate is placed;

[0009] determining whether the thick certificate collection value meets the thick certificate collection requirement based on the thick certificate collection value and the preset thick certificate threshold, determining whether the thin certificate collection value meets the thin certificate collection requirement based on the thin certificate collection value and the preset thin certificate threshold, and determining whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold;

[0010] When the thick deposit certificate collected value meets the thick deposit certificate collection requirement, the thin deposit certificate collected value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement, calculating a difference value based on the thick deposit certificate collected value and the thin deposit certificate collected value;

[0011] Whether the thickness sensor to be detected is abnormal is determined according to the difference value and the preset difference threshold.

[0012] In a second aspect, an embodiment of the present invention provides a detection device for a thickness sensor, the device comprising:

[0013] A first acquisition module is configured to acquire a current background value of the thickness sensor to be detected and acquire a preset threshold value set, wherein the preset threshold value set includes: a preset background threshold value, a preset thick deposit threshold value, a preset thin deposit threshold value, and a preset difference threshold value;

[0014] A first determining module, configured to determine whether the current background value meets the background requirement according to the current background value and the preset background threshold;

[0015] a second acquisition module configured to, when the current background value meets the background requirement, acquire a thick deposit slip acquisition value and a corresponding first background value acquired when the thick deposit slip is placed, and acquire a thin deposit slip acquisition value and a corresponding second background value acquired when the thin deposit slip is placed;

[0016] a second determining module, configured to determine whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirement based on the thick certificate of deposit collection value and the preset thick certificate of deposit threshold, determine whether the thin certificate of deposit collection value meets the thin certificate of deposit collection requirement based on the thin certificate of deposit collection value and the preset thin certificate of deposit threshold, and determine whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold;

[0017] a calculation module configured to calculate a difference value based on the thick deposit certificate collection value and the thin deposit certificate collection value when the thick deposit certificate collection value meets the thick deposit certificate collection requirement, the thin deposit certificate collection value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement;

[0018] The detection module is used to determine whether the thickness sensor to be detected is abnormal according to the difference value and the preset difference threshold.

[0019] In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the above-mentioned thickness sensor detection method steps.

[0020] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned detection method of the thickness sensor.

[0021] The above-mentioned thickness sensor detection method, device, computer equipment and storage medium obtain a preset threshold set by obtaining the current background value of the thickness sensor to be detected, wherein the preset threshold set includes: a preset background threshold, a preset thick deposit certificate threshold, a preset thin deposit certificate threshold and a preset difference threshold; then, according to the preset background threshold, it is determined whether the current background value meets the background requirement; when the current background value meets the background requirement, a thick deposit certificate acquisition value and a first background value are obtained, and a thin deposit certificate acquisition value and a second background value are obtained, respectively, by using the preset thick deposit certificate threshold and thick deposit certificate acquisition value, and the preset thin deposit certificate threshold and thin deposit certificate acquisition value. The first background value, the second background value, and the preset background threshold are used to determine whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirements, whether the thin certificate of deposit collection value meets the thin certificate of deposit collection requirements, and whether the first background value and the second background value meet the background requirements. When the thick certificate of deposit collection value meets the thick certificate of deposit collection requirements, the thin certificate of deposit collection value meets the thin certificate of deposit collection requirements, and the first background value and the second background value meet the background requirements, a difference value is calculated based on the thick certificate of deposit collection value and the thin certificate of deposit collection value. Finally, based on the difference value and the preset difference threshold, it is determined whether the thickness sensor to be tested is abnormal. The above method can effectively detect the quality of the thickness sensor from multiple angles, thereby improving detection accuracy and avoiding bank losses caused by unqualified thickness sensors. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0023] Figure 1 is a flow chart of a detection method of a thickness sensor in one embodiment;

[0024] Figure 2 A flowchart for determining whether a thickness sensor to be detected is abnormal in one embodiment;

[0025] Figure 3 A flowchart for determining whether a current background value meets background requirements in one embodiment;

[0026] Figure 4 A flowchart of obtaining a thick deposit certificate collection value and a corresponding first background value, and obtaining a thin deposit certificate collection value and a corresponding second background value in one embodiment;

[0027] Figure 5 is a structural block diagram of a detection device of a thickness sensor in one embodiment;

[0028] Figure 6 FIG. 1 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0030] like Figure 1 As shown, a thickness sensor detection method is proposed. The thickness sensor detection method can be applied to a terminal. This embodiment is described by applying it to a terminal as an example. The thickness sensor detection method specifically includes the following steps:

[0031] Step 102 , obtaining the current background value of the thickness sensor to be detected, and obtaining a preset threshold value set, wherein the preset threshold value set includes: a preset background threshold value, a preset thick deposit threshold value, a preset thin deposit threshold value, and a preset difference threshold value.

[0032] The "to-be-detected thickness sensor" refers to the thickness sensor to be detected. The current background value of the thickness sensor to be detected refers to the data collected by the thickness sensor when no bill media passes through the thickness sensor to be detected. The current background value may include a static background value and a dynamic background value. The static background value refers to the data collected when the thickness sensor to be detected is inactive, and the dynamic background value refers to the data collected when the thickness sensor to be detected is inactive but no bill media passes through the thickness sensor to be detected. The preset threshold set refers to a set of preset reference thresholds corresponding to each collected value. Each preset threshold in the preset threshold set may be a reference threshold for each collected data. The preset threshold set may include a preset background threshold, a preset thick deposit threshold, a preset thin deposit threshold, and a preset difference threshold. The preset background threshold refers to the preset threshold value of each background value. The preset thick deposit threshold refers to the preset threshold value of the thick deposit value collected, the preset thin deposit threshold refers to the preset threshold value of the thin deposit value collected, and the preset difference threshold refers to the preset threshold value of the difference value. Since different thickness sensors correspond to different current background values, the current background value of the thickness sensor to be detected may be obtained to detect the thickness sensor to be detected. Multiple preset thresholds in the preset threshold set may be set according to requirements.

[0033] In one embodiment, the static background value and the dynamic background value of the thickness sensor to be detected may be obtained to obtain the current background value of the thickness sensor to be detected; and each threshold value in the preset threshold value set may be set according to each collected data. For example, when the collected data are thick certificate of deposit collection values ​​and thin certificate of deposit collection values, the critical value corresponding to the thick certificate of deposit collection value may be set as the preset thick certificate of deposit threshold value, and the critical value corresponding to the thin certificate of deposit collection value may be set as the preset thin certificate of deposit threshold value. The set consisting of the obtained preset thick certificate of deposit threshold value and the obtained preset thin certificate of deposit threshold value is the preset threshold value set.

[0034] Step 104 : Determine whether the current background value meets the background requirement based on the current background value and the preset background threshold.

[0035] The background requirement refers to a specific condition used to determine whether the thickness sensor to be tested is stable. When testing the thickness sensor to be tested, the stability of the thickness sensor to be tested can be determined first. Once the thickness sensor to be tested is stable, the thickness sensor to be tested is then tested for abnormalities. The stability of the thickness sensor to be tested can be determined based on the current background value. That is, the current background value can be compared with a preset background threshold to determine whether it meets the background requirement, thereby determining whether the thickness sensor to be tested is stable. In one embodiment, the current background value can be determined to meet the background requirement by determining whether it is within a preset background threshold range. For example, if the current background value is within the preset background threshold range, the current background value can be determined to meet the background requirement; if the current background value is not within the preset background threshold range, the current background value can be determined to not meet the background requirement. The stability of the thickness sensor to be tested can be determined based on the background requirement, and testing of the thickness sensor to be tested can be continued only if the current background value meets the background requirement, i.e., only if the thickness sensor to be tested is stable.

[0036] Step 106 , when the current background value meets the background requirement, obtain the thick deposit certificate collection value and the corresponding first background value collected when the thick deposit certificate is placed, and obtain the thin deposit certificate collection value and the corresponding second background value collected when the thin deposit certificate is placed.

[0037] The thick deposit certificate acquisition value refers to the data collected by the thickness sensor to be detected when a thick deposit certificate is placed in the thickness sensor to be detected; the first background value refers to the background value corresponding to the thickness sensor to be detected when the thick deposit certificate acquisition value is collected, and the first background value can be a dynamic background value; the thin deposit certificate acquisition value refers to the data collected by the thickness sensor to be detected when a thin deposit certificate is placed in the thickness sensor to be detected; the second background value refers to the background value corresponding to the thickness sensor to be detected when the thin deposit certificate acquisition value is collected, and the second background value can be a dynamic background value. In one embodiment, the thick deposit certificate can refer to the thickest deposit certificate supported by the thickness sensor to be detected, and the thin deposit certificate can refer to the thinnest deposit certificate supported by the thickness sensor to be detected. The thickest deposit certificate and the thinnest deposit certificate can be placed in the thickness sensor to be detected, and the required data can be collected by the thickness sensor to be detected to obtain the thick deposit certificate acquisition value and the corresponding first background value, and the thin deposit certificate acquisition value and the corresponding second background value, respectively.

[0038] Step 108: Determine whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirements based on the thick certificate of deposit collection value and the preset thick certificate of deposit threshold; determine whether the thin certificate of deposit collection value meets the thin certificate of deposit collection requirements based on the thin certificate of deposit collection value and the preset thin certificate of deposit threshold; and determine whether the first background value and the second background value meet the background requirements based on the first background value, the second background value and the preset background threshold.

[0039] Among them, the thick deposit certificate collection requirements refer to the specific conditions used to determine whether the thick deposit certificate collection value is qualified; the thin deposit certificate collection requirements refer to the specific conditions used to determine whether the thin deposit certificate collection value is qualified. Setting the thick deposit certificate collection requirements can determine whether the collected thick deposit certificate collection value is qualified, and setting the thin deposit certificate collection requirements can determine whether the collected thin deposit certificate collection value is qualified. Then, the corresponding first background value and second background value can be determined to be qualified based on the background requirements. In one embodiment, it can be determined whether the thick deposit certificate collection value meets the thick deposit certificate collection requirements based on a preset thick deposit certificate threshold, whether the thin deposit certificate collection value meets the thin deposit certificate collection value based on a preset thin deposit certificate threshold, and whether the first background value and the second background value meet the background requirements based on a preset background threshold. For example, it is possible to determine whether the thick deposit certificate collection value exceeds a preset thick deposit certificate threshold range. If the thick deposit certificate collection value does not exceed the range, it can be determined that the thick deposit certificate collection value meets the thick deposit certificate collection requirements. It is possible to determine whether the thin deposit certificate collection value exceeds a preset thin deposit certificate threshold range. If the thin deposit certificate collection value does not exceed the range, it can be determined that the thin deposit certificate collection value meets the thin deposit certificate collection requirements. It is possible to determine whether the first background value and the second background value exceed the preset background threshold range. If the first background value and the second background value do not exceed the range, it can be determined that both the first background value and the second background value meet the background requirements. Only when the thick deposit certificate collection value, the thin deposit certificate collection value, the first background value and the second background value all meet the corresponding requirements, that is, when the above values ​​are all qualified, will the thickness sensor to be detected be tested.

[0040] Step 110: When the thick certificate of deposit collection value meets the thick certificate of deposit collection requirement, the thin certificate of deposit collection value meets the thin certificate of deposit collection requirement, and the first background value and the second background value meet the background requirement, a difference value is calculated based on the thick certificate of deposit collection value and the thin certificate of deposit collection value.

[0041] The difference value refers to a numerical value representing the difference between a thick certificate of deposit and a thin certificate of deposit. Since there are often significant differences between different types of thick and thin certificates of deposit, to represent the difference, a difference value between the thick certificate of deposit and the thin certificate of deposit can be calculated based on the collected values. The obtained difference value can then be used to identify the difference. In one embodiment, when the collected values ​​of the thick certificate of deposit meet the collection requirements for thick certificates of deposit, the collected values ​​of the thin certificate of deposit meet the collection requirements for thin certificates of deposit, and the first background value and the second background value meet the background requirements, a difference value can be calculated based on the collected values ​​of the thick certificate of deposit and the thin certificate of deposit, and the thickness sensor to be tested can be tested based on the obtained difference value. For example, the collected value of the thick certificate of deposit can be the collected value of the thickest certificate of deposit, and the collected value of the thin certificate of deposit can be the collected value of the thinnest certificate of deposit. The ratio between the collected value of the thickest certificate of deposit and the collected value of the thinnest certificate of deposit can be calculated, and the obtained ratio can be used as the difference value. The obtained difference value can then be used to detect whether the thickness sensor to be tested is abnormal.

[0042] Step 112: Determine whether the thickness sensor to be detected is abnormal based on the difference value and the preset difference threshold.

[0043] Among them, determining whether the thickness sensor to be detected is abnormal refers to determining whether there is abnormal data in the data collected by the thickness sensor to be detected. When there is no abnormal data in the data collected by the thickness sensor to be detected, it can be determined that the thickness sensor to be detected is normal; when there is abnormal data in the data collected by the thickness sensor to be detected, it can be determined that the thickness sensor to be detected is abnormal. The data collected by the thickness sensor to be detected can be multiple data collected by the thickness sensor to be detected in various detection stages, for example, it can be the current background value, the thick deposit certificate collection value, the thin deposit certificate collection value or the difference value. Because the aforementioned steps have already tested other data collected by the thickness sensor to be detected, when other data are normal data, it can be determined whether the thickness sensor to be detected is abnormal based on the difference value. It can be determined whether the above difference value is abnormal data based on a preset difference threshold, so as to determine whether the thickness sensor to be detected is abnormal.

[0044] In one embodiment, it can be determined whether the difference value exceeds the range of a preset difference threshold. When the difference value does not exceed the range, it can be determined that the difference value is normal data. At this time, there is no abnormal data in the data collected by the thickness sensor to be detected, so it can be determined that the thickness sensor to be detected is normal; when the difference value exceeds the range, it can be determined that the difference value is abnormal data. There is abnormal data in the data collected by the thickness sensor to be detected, so it can be determined that the thickness sensor to be detected is abnormal.

[0045] The above-mentioned thickness sensor detection method determines whether the values ​​collected at each detection stage meet the corresponding requirements based on the preset thresholds corresponding to the values ​​collected by the thickness sensor to be detected at each detection stage, thereby determining whether the thickness sensor to be detected is abnormal and effectively detecting whether the thickness sensor is qualified from multiple angles, thereby improving detection accuracy and avoiding bank losses due to unqualified thickness sensors.

[0046] like Figure 2 As shown, in one embodiment, determining whether the thickness sensor to be detected is abnormal based on the difference value and the preset difference threshold includes:

[0047] Step 202: Determine whether the difference value is not greater than the preset difference threshold. If the difference value is not greater than the preset difference threshold, proceed to step 204; if the difference value is greater than the preset difference threshold, proceed to step 206.

[0048] Determining whether the difference value is not greater than the preset difference threshold refers to determining whether the difference value exceeds the range of the preset difference threshold. The preset difference threshold can serve as a reference threshold range for the difference value. When the difference value does not exceed the range of the preset difference threshold, the process proceeds to determination step 204; when the difference value exceeds the range of the preset difference threshold, the process proceeds to determination step 206.

[0049] Step 204: Determine whether the thickness sensor to be detected is normal.

[0050] Among them, the thickness sensor to be detected is normal, which means that there is no abnormal data in the data collected by the thickness sensor to be detected. It can be determined whether the difference value is abnormal data, thereby determining whether there is abnormal data in the data collected by the thickness sensor to be detected. In one embodiment, when the difference value does not exceed the range of the preset difference threshold, it can be determined that the difference value is normal data. Because the collected difference value is normal data, it can be determined that there is no abnormal data in the data collected by the thickness sensor to be detected, and then it can be determined that the thickness sensor to be detected is normal. For example, assuming that the calculated difference value is 0.994, and assuming that the preset difference threshold is 1.000, the difference value does not exceed the range of the preset difference threshold, and the above-mentioned difference value 0.994 is normal data, so it can be determined that the thickness sensor to be detected is normal.

[0051] Step 206 , determining that the thickness sensor to be detected is abnormal, and proceeding to step 208 .

[0052] Among them, the abnormality of the thickness sensor to be detected means that abnormal data exists in the data collected by the thickness sensor to be detected. It can be determined whether the difference value is abnormal data, thereby determining whether there is abnormal data in the data collected by the thickness sensor to be detected. In one embodiment, when the difference value exceeds the range of a preset difference threshold, the difference value can be determined to be abnormal data. Because the collected difference value is abnormal data, it can be determined that there is abnormal data in the data collected by the thickness sensor to be detected, and then it can be determined that the thickness sensor to be detected is abnormal. For example, assuming that the calculated difference value is 1.112, and assuming that the preset difference threshold is 1.000, the difference value exceeds the range of the preset difference threshold, and the above-mentioned difference value 1.112 is abnormal data, so it can be determined that the thickness sensor to be detected is abnormal. When the thickness sensor to be detected is abnormal, the adjustment step 208 can be entered to adjust the abnormal thickness sensor to be detected accordingly.

[0053] Step 208 : Adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected based on the adjusted thickness sensor to be detected.

[0054] Adjusting the abnormal thickness sensor to be tested refers to adjusting the initial physical position of the thickness sensor to be tested. Because the thickness sensor to be tested is abnormal, it can be determined that the thickness sensor to be tested is not within the linear change curve set by the hardware. Therefore, the initial physical position of the thickness sensor to be tested can be readjusted. Based on the adjusted thickness sensor to be tested, the thickness sensor to be tested can be retested until the thickness sensor to be tested is found to be normal. By determining whether the difference value is within the range of a preset difference threshold, it is determined whether the difference value is abnormal data. Based on whether the difference value is abnormal data, it can be determined whether the thickness sensor to be tested has abnormal data. When the difference value is normal data, it can be determined that the thickness sensor to be tested is normal; when the difference value is abnormal data, it can be determined that the thickness sensor to be tested is abnormal. The abnormal thickness sensor to be tested can be adjusted until the thickness sensor to be tested is found to be normal. Through the above steps, it is possible to detect whether the thickness sensor to be tested is qualified.

[0055] like Figure 3 As shown, in one embodiment, determining whether the current background value meets the background requirement based on the current background value and the preset background threshold includes:

[0056] Step 302: Determine whether the current background value is not greater than the preset background threshold. If the current background value is not greater than the preset background threshold, proceed to step 304; if the current background value is greater than the preset background threshold, proceed to step 306.

[0057] Determining whether the current background value is not greater than the preset background threshold value refers to determining whether the current background value exceeds the range of the preset background threshold value. The preset background threshold value can serve as a reference threshold range for the current background value. When the current background value does not exceed the range of the preset background threshold value, the process proceeds to determination step 304; when the current background value exceeds the range of the preset background threshold value, the process proceeds to determination step 306.

[0058] Step 304: Determine whether the current background value meets the background requirement.

[0059] The current background value meeting the background requirement means that the stability of the thickness sensor to be detected can be determined based on the current background value. Whether the thickness sensor to be detected is stable can be determined based on a preset background threshold and the current background value. When the current background value does not exceed the range of the preset background threshold, it can be determined that the current background value meets the background requirement. In one embodiment, it can be assumed that the current background value is 331 and the preset background threshold is 551. Therefore, the current background value does not exceed the range of the preset background threshold, and thus the current background value of 331 can be determined to meet the background requirement.

[0060] Step 306 , determining that the current background value does not meet the background requirement, and proceeding to step 308 .

[0061] Among them, the current background value does not meet the background requirements, which means that the thickness sensor to be detected is unstable according to the current background value. Whether the thickness sensor to be detected is stable can be determined based on the preset background threshold and the current background value. When the current background value exceeds the range of the preset background threshold, it can be determined that the current background value does not meet the background requirements. In one embodiment, it can be assumed that the current background value is 606, and the preset background threshold is 551, then the current background value does not exceed the range of the preset background threshold, so that the current background value of 606 does not meet the background requirements. When the current background value does not meet the background requirements, it can be determined that the current background value is abnormal data, so that it can be determined that the thickness sensor to be detected is abnormal, and the adjustment step 308 can be entered.

[0062] Step 308 : determining that the thickness sensor to be detected is abnormal based on the current background value that does not meet the background requirement, adjusting the abnormal thickness sensor to be detected, and re-entering the step of obtaining the current background value of the thickness sensor to be detected based on the adjusted thickness sensor to be detected.

[0063] Determining that the thickness sensor to be tested is abnormal based on a current background value that does not meet background requirements means that when the current background value exceeds a preset background threshold, the current background value can be determined to be abnormal data. Therefore, abnormal data exists in the thickness sensor to be tested, and thus the thickness sensor to be tested is determined to be abnormal. Because the thickness sensor to be tested is abnormal, it can be determined that the thickness sensor to be tested is not within the linear change curve set by the hardware. Therefore, the initial physical position of the thickness sensor to be tested can be readjusted. The thickness sensor to be tested can be retested based on the adjusted thickness sensor to be tested until the thickness sensor to be tested is found to be normal. By determining whether the current background value exceeds the preset background threshold, it can be determined whether the current background value meets background requirements. A current background value that meets background requirements is normal data, while a current background value that does not meet background requirements is abnormal data. If the current background value is abnormal data, it can be determined that abnormal data exists in the data collected by the thickness sensor to be tested, thus confirming that the thickness sensor to be tested is abnormal. Adjustment of the abnormal thickness sensor to be tested can be performed until the thickness sensor to be tested is found to be normal. Through the above steps, it is possible to detect the thickness sensor to be detected in the first detection stage to detect whether the thickness sensor to be detected is qualified; it is also possible to adjust the unqualified thickness sensor to be detected in time, and detect the thickness sensor to be detected from multiple directions and angles, thereby eliminating the influence of hardware differences and environmental differences on the thickness sensor to be detected, and improving the detection accuracy and reliability.

[0064] like Figure 4 As shown, in one embodiment, when the current background value meets the background requirement, obtaining the thick deposit certificate collection value and the corresponding first background value when the thick deposit certificate is placed, and obtaining the thin deposit certificate collection value and the corresponding second background value when the thin deposit certificate is placed, includes:

[0065] Step 402: Acquire in real time the current thick deposit certificate acquisition value and the corresponding current thick deposit certificate background value when the thick deposit certificate is placed, and acquire in real time the current thin deposit certificate acquisition value and the corresponding current thin deposit certificate background value when the thin deposit certificate is placed.

[0066] The current thick deposit note acquisition value refers to each thick deposit note acquisition value acquired in real time by the thickness sensor to be detected; the current thick deposit note background value refers to each background value corresponding to each thick deposit note acquisition value; the current thick deposit note acquisition value refers to each thick deposit note acquisition value acquired in real time by the thickness sensor to be detected; the current thin deposit note acquisition value refers to each thin deposit note acquisition value acquired in real time by the thickness sensor to be detected; and the current thin deposit note background value refers to each background value corresponding to each thin deposit note acquisition value. Since the thickness sensor to be detected acquires corresponding data in real time when a thick deposit note and a thin deposit note are inserted into the thickness sensor to be detected, the current thick deposit note acquisition value and the current thin deposit note acquisition value acquired in real time by the thickness sensor to be detected can be obtained, as well as the corresponding current thick deposit note acquisition value and current thin deposit note acquisition value. In one embodiment, the current thick deposit certificate collection values ​​collected can be 2130, 2130, 2130, 2129, and 2128 respectively; the current thin deposit certificate collection values ​​collected can be 2142, 2142, 2142, 2141, and 2140 respectively; the current thick deposit certificate background values ​​collected can be 1, 56, 111, 166, and 211 respectively; the current thin deposit certificate background values ​​collected can be 1, 56, 111, 166, and 211 respectively; and the above-mentioned current thick deposit certificate collection values, current thin deposit certificate collection values, current thick deposit certificate background values, and current thin deposit certificate background values ​​are obtained respectively.

[0067] Step 404, calculate the average of the current thick deposit certificate collection values ​​obtained in real time, and use the average of the current thick deposit certificate collection values ​​as the thick deposit certificate collection value; calculate the average of the current thin deposit certificate collection values ​​obtained in real time, and use the average of the current thin deposit certificate collection values ​​as the thin deposit certificate collection value.

[0068] The average value of the current thick deposit certificate collection value refers to the average value of all current thick deposit certificate collection values ​​obtained in real time; the average value of the current thin deposit certificate collection value refers to the average value of all current thin deposit certificate collection values ​​obtained in real time. Since there can be multiple current thick deposit certificate collection values, to more accurately obtain the thick deposit certificate collection value, the average of multiple current thick deposit certificate collection values ​​can be calculated and used as the thick deposit certificate collection value; since there can be multiple current thin deposit certificate collection values, to more accurately obtain the thin deposit certificate collection value, the average of multiple current thin deposit certificate collection values ​​can be calculated and used as the thin deposit certificate collection value. In one embodiment, assuming that the current thick deposit certificate collection values ​​collected may be 2130, 2130, 2130, 2129, and 2128, respectively, and the average is calculated based on the above current thick deposit certificate collection values, the obtained average is 2149.4, and the obtained 2149.4 can be used as the thick deposit certificate collection value; the current thin deposit certificate collection values ​​collected may be 2142, 2142, 2142, 2141, and 2140, respectively, and the average is calculated based on the above current thin deposit certificate collection values, the obtained average is 2141.4, and the obtained 2141.4 can be used as the thin deposit certificate collection value.

[0069] Step 406, calculate the mean of the current thick deposit certificate background values ​​obtained in real time, and use the mean of the current thick deposit certificate background values ​​as the first background value; calculate the mean of the current thin deposit certificate background values ​​obtained in real time, and use the mean of the current thin deposit certificate background values ​​as the second background value.

[0070] The mean of the current thick certificate background value refers to the average of all current thick certificate background values ​​acquired in real time; the mean of the current thin certificate background value refers to the average of all current thin certificate background values ​​acquired in real time. Since there can be multiple current thick certificate background values, to more accurately obtain the first background value, the mean of the multiple current thick certificate background values ​​can be calculated and used as the first background value; since there can be multiple current thin certificate background values, to more accurately obtain the second background value, the mean of the multiple current thin certificate background values ​​can be calculated and used as the second background value. In one embodiment, assuming that the current thick deposit certificate background values ​​collected are 1, 56, 111, 166, and 211, and the average is calculated based on the current thick deposit certificate background values, the obtained average is 109, which can be used as the thick deposit certificate background value; the current thin deposit certificate background values ​​collected are 1, 56, 111, 166, and 211, and the average is calculated based on the current thin deposit certificate background values, the obtained average is 109, which can be used as the thin deposit certificate background value. By acquiring the current thick deposit certificate collection value and the corresponding current thick deposit certificate background value, the current thin deposit certificate and the corresponding current thin deposit certificate background value in real time, and calculating their averages respectively, to obtain the thick deposit certificate collection value and the corresponding first background value, and the thin deposit certificate collection value and the corresponding second background value, the impact of data fluctuations on the detection results can be reduced, making the detection results more accurate.

[0071] In one embodiment, determining whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirement based on the thick certificate of deposit collection value and the preset thick certificate of deposit threshold, determining whether the thin certificate of deposit collection value meets the thin certificate of deposit collection requirement based on the thin certificate of deposit collection value and the preset thin certificate of deposit threshold, and determining whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold include:

[0072] Step 1: Determine whether the value collected for the thick certificate of deposit is not greater than the thick certificate of deposit threshold, determine whether the value collected for the thin certificate of deposit is not greater than the thin certificate of deposit threshold, and respectively determine whether the first background value and the second background value are not greater than the preset background threshold. If the value collected for the thick certificate of deposit is not greater than the preset thick certificate of deposit threshold, if the value collected for the thin certificate of deposit is not greater than the preset thin certificate of deposit threshold, and if both the first background value and the second background value are not greater than the preset background threshold, proceed to Step 2. If the value collected for the thick certificate of deposit is greater than the thick certificate of deposit threshold, if the value collected for the thin certificate of deposit is greater than the thin certificate of deposit threshold, and if both the first background value and the second background value are greater than the preset background threshold, proceed to Step 3.

[0073] Determining whether the thick certificate of deposit collection value is not greater than a preset thick certificate of deposit threshold refers to determining whether the thick certificate of deposit collection value exceeds the preset thick certificate of deposit threshold; determining whether the thin certificate of deposit collection value is not greater than the thin certificate of deposit threshold refers to determining whether the thin certificate of deposit collection value exceeds the preset thin certificate of deposit threshold; and determining whether the first background value and the second background value are not greater than the preset background threshold refers to determining whether the first background value and the second background value exceed the preset background threshold. In one embodiment, whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirements can be determined based on the preset thick certificate of deposit threshold, whether the thin certificate of deposit collection value meets the thin certificate of deposit collection value can be determined based on the preset thin certificate of deposit threshold, and whether the first background value and the second background value meet the background requirements can be determined based on the preset background threshold. When the thick deposit certificate collection value does not exceed the preset thick deposit certificate threshold, when the thin deposit certificate collection value does not exceed the preset thin deposit certificate threshold, and when the first background value and the second background value do not exceed the preset background threshold, proceed to determination step 2; when the thick deposit certificate collection value exceeds the thick deposit certificate threshold, when the thin deposit certificate collection value exceeds the thin deposit certificate threshold, and when the first background value and the second background value exceed the preset background threshold, proceed to determination step 3.

[0074] Step 2: Determine whether the thick deposit certificate collection value meets the thick deposit certificate collection requirement, determine whether the thin deposit certificate collection value meets the thin deposit certificate collection requirement, and determine whether the first background value and the second background value meet the background requirement.

[0075] In one embodiment, when the thick deposit certificate collection value does not exceed a preset thick deposit certificate threshold, it can be determined that the thick deposit certificate collection value meets the thick deposit certificate collection requirements. For example, assuming the thick deposit certificate collection value is 2128 and the preset thick deposit certificate threshold is 2130, the thick deposit certificate collection value does not exceed the preset thick deposit certificate threshold, and it can be determined that the thick deposit certificate collection value meets the thick deposit certificate collection requirements. When the thin deposit certificate collection value does not exceed the preset thin deposit certificate threshold, it can be determined that the thin deposit certificate collection value meets the thin deposit certificate collection requirements. For example, assuming that the thin deposit certificate collection value is 2142, and assuming that the preset thin deposit certificate threshold is 2143, the thin deposit certificate collection value at this time does not exceed the preset thin deposit certificate threshold, and it can be determined that the thin deposit certificate collection value meets the thin deposit certificate collection requirements; when the first background value and the second background value do not exceed the preset background threshold respectively, it can be determined that the first background value and the second background value meet the background requirements respectively. For example, assuming that the first background value is 574, assuming that the second background value is 551, and assuming that the preset background threshold is 606, then the first background value at this time does not exceed the range of the preset background threshold, and the second background value does not exceed the range of the preset background threshold, and it can be determined that the first background value and the second background value meet the background requirements respectively.

[0076] Step 3: Determine that the thick deposit certificate collection value does not meet the thick deposit certificate collection requirements, determine that the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements, determine that the first background value and the second background value do not meet the background requirements, and proceed to step 4.

[0077] In one embodiment, when the thick deposit certificate collection value exceeds the preset thick deposit certificate threshold, it can be determined that the thick deposit certificate collection value does not meet the thick deposit certificate collection requirements. For example, assuming that the thick deposit certificate collection value is 2129 and the preset thick deposit certificate threshold is 2128, the thick deposit certificate collection value at this time exceeds the preset thick deposit certificate threshold, and it can be determined that the thick deposit certificate collection value does not meet the thick deposit certificate collection requirements; when the thin deposit certificate collection value exceeds the preset thin deposit certificate threshold, it can be determined that the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements. For example, assuming that the thin deposit certificate collection value is 2143 and the preset thin deposit certificate threshold is 2141, the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements. When the thin deposit certificate collection value exceeds the preset thin deposit certificate threshold, it can be determined that the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements; when the first background value and the second background value respectively exceed the preset background threshold, it can be determined that the first background value and the second background value respectively do not meet the background requirements. For example, assuming that the first background value is 606, assuming that the second background value is 551, and assuming that the preset background threshold is 496, then the first background value at this time exceeds the range of the preset background threshold and the second background value exceeds the range of the preset background threshold. It can be determined that the first background value and the second background value respectively do not meet the background requirements.

[0078] Step 4, based on the thick deposit certificate collection value that does not meet the thick deposit certificate collection requirements, the thin deposit certificate collection value that does not meet the thin deposit certificate collection requirements, and the first background value and the second background value that do not meet the preset background threshold, determine that the thickness sensor to be detected is abnormal, adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected based on the adjusted thickness sensor to be detected.

[0079] The determination of an abnormality in the thickness sensor to be detected based on a thick deposit certificate collection value that does not meet the thick deposit certificate collection requirements, a thin deposit certificate collection value that does not meet the thin deposit certificate collection requirements, and a first background value and a second background value that do not meet the preset background threshold value indicates that when the thick deposit certificate collection value exceeds the preset thick deposit certificate threshold value, the thick deposit certificate collection value, the thin deposit certificate collection value, and the first background value and the second background value are determined to be abnormal data. This indicates that abnormal data exists in the thickness sensor to be detected, and thus, an abnormality in the thickness sensor to be detected can be determined. Because the thickness sensor to be detected is abnormal, it can be determined that the thickness sensor to be detected is not within the linear change curve set by the hardware. Therefore, the initial physical position of the thickness sensor to be detected can be readjusted, and the thickness sensor to be detected can be retested based on the adjusted thickness sensor to be detected until the thickness sensor to be detected is normal. By determining whether the thick deposit certificate collection value exceeds a preset thick deposit certificate threshold range, determining whether the thin deposit certificate collection value exceeds a preset thin deposit certificate threshold range, and determining whether the first background value and the second background value exceed a preset background threshold range, it is possible to determine whether the thick deposit certificate collection value meets the thick deposit certificate collection requirements. A thick deposit certificate collection value that meets the thick deposit certificate collection requirements is normal data, while a thick deposit certificate collection value that does not meet the thick deposit certificate collection requirements is abnormal data; a thin deposit certificate collection value that meets the thin deposit certificate collection requirements is normal data, while a thin deposit certificate collection value that does not meet the thin deposit certificate collection requirements is abnormal data; the first background value and the second background value that meet the background requirements are normal data, while the first background value and the second background value that do not meet the background requirements are abnormal data. When the thick deposit certificate collection value, the thin deposit certificate collection value, the first background value, or the second background value is abnormal data, it can be determined that abnormal data exists in the data collected by the thickness sensor to be detected, thereby determining that the thickness sensor to be detected is abnormal. The abnormal thickness sensor to be detected can be adjusted until the thickness sensor to be detected is normal. Through the above steps, it is possible to detect the thickness sensor to be detected at each detection stage to detect whether the thickness sensor to be detected is qualified; it is also possible to adjust the unqualified thickness sensor to be detected in time, and detect the thickness sensor to be detected from multiple directions and angles, thereby eliminating the influence of hardware differences and environmental differences on the thickness sensor to be detected and improving the detection accuracy.

[0080] In one embodiment, when the thick deposit certificate collected value meets the thick deposit certificate collection requirement, the thin deposit certificate collected value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement, after calculating the difference value based on the thick deposit certificate collected value and the thin deposit certificate collected value, the method further includes:

[0081] Step 1: When the thick deposit certificate collection value does not meet the thick deposit certificate collection requirement and the first background value does not meet the background requirement, it is determined that the thickness sensor to be detected is abnormal.

[0082] In one embodiment, when the thick deposit certificate collection value does not meet the thick deposit certificate collection requirements and the corresponding first background value does not meet the background requirements, the thick deposit certificate collection value or the first background value can be determined to be abnormal data, thereby determining that abnormal data exists in the thickness sensor to be tested, that is, determining that the thickness sensor to be tested is abnormal. For example, assume that the thick deposit certificate collection value is 2128 and the preset thick deposit certificate threshold is 2130; assume that the first background value is 574 and the preset background threshold is 551. At this time, the thick deposit certificate collection value meets the thick deposit certificate collection requirements and can be determined to be normal data; however, at this time, the first background value does not meet the requirements and can be determined to be abnormal data. If the thick deposit certificate collection value and the first background value cannot both be normal data, it can be determined that the thickness sensor to be tested is abnormal.

[0083] Step 2: When the thin deposit receipt collection value does not meet the thin deposit receipt collection requirement and the second background value does not meet the background requirement, it is determined that the thickness sensor to be detected is abnormal.

[0084] In one embodiment, when the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements and the corresponding second background value does not meet the background requirements, the thin deposit certificate collection value or the second background value can be determined to be abnormal data, thereby determining that abnormal data exists in the thickness sensor to be tested, that is, determining that the thickness sensor to be tested is abnormal. For example, suppose the thin deposit certificate collection value is 2143, and the preset thin deposit certificate threshold is 2141; suppose the first background value is 574, and the preset background threshold is 606. At this time, the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements, and the thin deposit certificate collection value can be determined to be abnormal data; at this time, the first background value meets the requirements, and it can be determined that both the first and background values ​​are normal data. When the thin deposit certificate collection value and the first background value cannot both be normal data, it can be determined that the thickness sensor to be tested is abnormal.

[0085] Step 3: Adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected based on the adjusted thickness sensor to be detected.

[0086] Because the thickness sensor to be tested contains abnormal data, it can be determined that the thickness sensor to be tested is abnormal. Because the thickness sensor to be tested is abnormal, it can be determined that the thickness sensor to be tested is not within the linear change curve set by the hardware. Therefore, the initial physical position of the thickness sensor to be tested can be readjusted. Based on the adjusted thickness sensor to be tested, the thickness sensor to be tested can be retested until the thickness sensor to be tested is found to be normal. Whether the thickness sensor to be tested is abnormal can be determined by determining whether the thick deposit certificate collected value and the corresponding first background value simultaneously meet corresponding requirements, and determining whether the thin deposit certificate collected value and the corresponding second background value simultaneously meet corresponding requirements. When the thick deposit certificate collected value and the first background value simultaneously meet corresponding requirements, the thickness sensor to be tested is normal; when the thin deposit certificate collected value and the second background value simultaneously meet corresponding requirements, the thickness sensor to be tested is normal; when the thick deposit certificate collected value and the first background value do not simultaneously meet corresponding requirements, the thickness sensor to be tested is abnormal; when the thin deposit certificate collected value and the second background value do not simultaneously meet corresponding requirements, the thickness sensor to be tested is abnormal. When the thickness sensor to be detected is abnormal, the abnormal thickness sensor to be detected can be adjusted until the thickness sensor to be detected is within the linear change curve set by the hardware, so that the overlap situation can be accurately detected.

[0087] In one embodiment, when the thick deposit certificate collection value meets the thick deposit certificate collection requirement, the thin deposit certificate collection value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement, calculating the difference value based on the thick deposit certificate collection value and the thin deposit certificate collection value includes:

[0088] Step 1: Calculate the ratio between the thick deposit certificate collection value and the thin deposit certificate collection value.

[0089] The ratio between the thick deposit certificate collection value and the thin deposit certificate collection value refers to the ratio of the thick deposit certificate collection value to the thin deposit certificate collection value. Due to the differences between thick and thin deposit certificates, the corresponding thick deposit certificate collection values ​​differ significantly from the thin deposit certificate collection values. Therefore, a ratio between the thick deposit certificate collection value and the thin deposit certificate collection value can be calculated, and the resulting ratio can be used to represent the difference between the two. In one embodiment, assuming the thick deposit certificate collection value is 2128 and the thin deposit certificate collection value is 2141, the ratio between the thick deposit certificate collection value and the thin deposit certificate collection value can be calculated as: 2128 / 2141 = 0.994, thus obtaining the ratio between the thick deposit certificate collection value and the thin deposit certificate collection value.

[0090] Step 2: taking the ratio as the difference value.

[0091] In one embodiment, the ratio between the thick and thin document values ​​can be used as the difference between the thick and thin document values. Since the ratio between the thick and thin document values ​​can be used to represent the difference between them, and the difference can also represent the difference between the thick and thin document values, the ratio can be used as the difference between the thick and thin document values ​​to represent the difference between them. In one embodiment, assuming the ratio between the thick and thin document values ​​is 0.994, 0.994 can be used as the difference, and the resulting difference can be used to represent the difference between the thick and thin document values. By calculating the ratio between the thick and thin document values, an accurate difference can be obtained. Based on the obtained difference, whether the thickness sensor to be tested is abnormal can be determined, thereby reliably detecting duplicated bills of varying thicknesses and avoiding losses to banks caused by thickness sensor anomalies.

[0092] like Figure 5 As shown, an embodiment of the present invention provides a detection device for a thickness sensor, the device comprising:

[0093] A first acquisition module 502 is configured to acquire a current background value of the thickness sensor to be detected and acquire a preset threshold value set, wherein the preset threshold value set includes: a preset background threshold value, a preset thick deposit threshold value, a preset thin deposit threshold value, and a preset difference threshold value;

[0094] A first determining module 504 is configured to determine whether the current background value meets the background requirement based on the current background value and the preset background threshold;

[0095] The second acquisition module 506 is configured to, when the current background value meets the background requirement, acquire the thick deposit certificate acquisition value and the corresponding first background value acquired when the thick deposit certificate is placed, and acquire the thin deposit certificate acquisition value and the corresponding second background value acquired when the thin deposit certificate is placed;

[0096] a second determining module 508, configured to determine whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirement based on the thick certificate of deposit collection value and the preset thick certificate of deposit threshold, determine whether the thin certificate of deposit collection value meets the thin certificate of deposit collection requirement based on the thin certificate of deposit collection value and the preset thin certificate of deposit threshold, and determine whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold;

[0097] a calculation module 510 configured to calculate a difference value based on the thick deposit certificate collection value and the thin deposit certificate collection value when the thick deposit certificate collection value meets the thick deposit certificate collection requirement, the thin deposit certificate collection value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement;

[0098] The detection module 512 is configured to determine whether the thickness sensor to be detected is abnormal according to the difference value and the preset difference threshold.

[0099] In one embodiment, the determining whether the thickness sensor to be detected is abnormal based on the difference value and the preset difference threshold includes: the first determination module 504 is also used to determine whether the difference value is not greater than the preset difference threshold; the first determination module 504 is also used to determine that the thickness sensor to be detected is normal when the difference value is not greater than the preset difference threshold; the first determination module 504 is also used to determine that the thickness sensor to be detected is abnormal when the difference value is greater than the preset difference threshold; the detection module 512 is also used to adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected according to the adjusted thickness sensor to be detected.

[0100] In one embodiment, the determining whether the current background value meets the background requirements based on the current background value and the preset background threshold includes: the first determination module 504 is also used to determine whether the current background value is not greater than the preset background threshold; the first determination module 504 is also used to determine that the current background value meets the background requirements when the current background value is not greater than the preset background threshold; the first determination module 504 is also used to determine that the current background value does not meet the background requirements when the current background value is greater than the preset background threshold; the detection module 512 is also used to determine that the thickness sensor to be detected is abnormal based on the current background value that does not meet the background requirements, adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected based on the adjusted thickness sensor to be detected.

[0101] In one embodiment, when the current background value meets the background requirement, the thick deposit certificate collection value and the corresponding first background value collected when the thick deposit certificate is placed are obtained, and the thin deposit certificate collection value and the corresponding second background value collected when the thin deposit certificate is placed are obtained, including: the first obtaining module 502 is further configured to obtain, in real time, the current thick deposit certificate collection value and the corresponding current thick deposit certificate background value collected when the thick deposit certificate is placed, and obtain, in real time, the current thin deposit certificate collection value and the corresponding current thin deposit certificate background value collected when the thin deposit certificate is placed; the calculating module 510 is further configured to calculate the average of the current thick deposit certificate collection values ​​obtained in real time, use the average of the current thick deposit certificate collection values ​​as the thick deposit certificate collection value, calculate the average of the current thin deposit certificate collection values ​​obtained in real time, and use the average of the current thin deposit certificate collection values ​​as the thin deposit certificate collection value; the calculating module 510 is further configured to calculate the average of the current thick deposit certificate background values ​​obtained in real time, use the average of the current thick deposit certificate background values ​​as the first background value, calculate the average of the current thin deposit certificate background values ​​obtained in real time, and use the average of the current thin deposit certificate background values ​​as the second background value.

[0102] In one embodiment, determining whether the thick deposit certificate collection value meets the thick deposit certificate collection requirement based on the thick deposit certificate collection value and the preset thick deposit certificate threshold, determining whether the thin deposit certificate collection value meets the thin deposit certificate collection requirement based on the thin deposit certificate collection value and the preset thin deposit certificate threshold, and determining whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold include: a second determining module 508 determining whether the thick deposit certificate collection value is not greater than the preset thick deposit certificate threshold, determining whether the thin deposit certificate collection value is not greater than the preset thin deposit certificate threshold, and determining whether the first background value and the second background value are not greater than the preset background threshold respectively; the second determining module 508 is further configured to determine that the thick deposit certificate collection value meets the thick deposit certificate collection requirement when the thick deposit certificate collection value is not greater than the preset thick deposit certificate threshold, and determine that the thin deposit certificate collection value meets the thin deposit certificate collection requirement when the thin deposit certificate collection value is not greater than the preset thin deposit certificate threshold. When the first background value and the second background value are not greater than the preset background threshold, it is determined that the first background value and the second background value meet the background requirements; the second determination module 508 is also used to determine that the thick deposit certificate collection value does not meet the thick deposit certificate collection requirements when the thick deposit certificate collection value is greater than the thick deposit certificate threshold, and determine that the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements when the thin deposit certificate collection value is greater than the thin deposit certificate threshold; when the first background value and the second background value are greater than the preset background threshold, it is determined that the first background value and the second background value do not meet the background requirements; the second determination module 508 is also used to determine that the thickness sensor to be detected is abnormal based on the thick deposit certificate collection value that does not meet the thick deposit certificate collection requirements, the thin deposit certificate collection value that does not meet the thin deposit certificate collection requirements, and the first background value and the second background value that do not meet the preset background threshold, adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected based on the adjusted thickness sensor to be detected.

[0103] In one embodiment, when the thick deposit certificate collection value meets the thick deposit certificate collection requirements, the thin deposit certificate collection value meets the thin deposit certificate collection requirements, and the first background value and the second background value meet the background requirements, after the difference value is calculated based on the thick deposit certificate collection value and the thin deposit certificate collection value, it also includes: the first determination module 504 is also used to determine that the thickness sensor to be detected is abnormal when the thick deposit certificate collection value does not meet the thick deposit certificate collection requirements and the first background value does not meet the background requirements; the second determination module 508 is also used to determine that the thickness sensor to be detected is abnormal when the thin deposit certificate collection value does not meet the thin deposit certificate collection requirements and the second background value does not meet the background requirements; the detection module 512 is also used to adjust the abnormal thickness sensor to be detected, and re-enter the step of obtaining the current background value of the thickness sensor to be detected according to the adjusted thickness sensor to be detected.

[0104] In one embodiment, when the thick certificate of deposit collection value meets the thick certificate of deposit collection requirements, the thin certificate of deposit collection value meets the thin certificate of deposit collection requirements, and the first background value and the second background value meet the background requirements, a difference value is calculated based on the thick certificate of deposit collection value and the thin certificate of deposit collection value, including: the calculation module 510 is also used to calculate the ratio between the thick certificate of deposit collection value and the thin certificate of deposit collection value; and use the ratio as the difference value.

[0105] Figure 6 FIG1 shows an internal structure diagram of a computer device in one embodiment. The computer device may be a terminal. Figure 6 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the detection method of the thickness sensor. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the detection method of the thickness sensor. The network interface is used to communicate with the outside world. Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0106] In one embodiment, the thickness sensor detection method provided by the present application can be implemented in the form of a computer program. The computer program can be used in Figure 6The computer device shown in FIG. 1 is executed. The memory of the computer device may store various program templates constituting the detection device of the thickness sensor, such as a first acquisition module 502, a first determination module 504, a second acquisition module 506, a second determination module 508, a calculation module 510, and a detection module 512.

[0107] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of each embodiment of the above-mentioned thickness sensor detection method are implemented.

[0108] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of each embodiment of the above-mentioned thickness sensor detection method.

[0109] In the embodiments of the computer device and computer-readable storage medium of the present invention, all technical features of the above-mentioned embodiments of the thickness sensor detection method are included. The expanded and explained contents of the specification are basically the same as those of the above-mentioned embodiments of the thickness sensor detection method and are not repeated here.

[0110] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0111] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0112] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A method for detecting a thickness sensor, characterized in that: The method comprises: Obtaining a current background value of the thickness sensor to be detected, and obtaining a preset threshold value set, wherein the preset threshold value set includes: a preset background threshold value, a preset thick deposit threshold value, a preset thin deposit threshold value, and a preset difference threshold value; Determining whether the current background value meets the background requirement according to the current background value and the preset background threshold; When the current background value meets the background requirement, a thick deposit certificate collection value and a corresponding first background value collected when the thick deposit certificate is placed are obtained, and a thin deposit certificate collection value and a corresponding second background value collected when the thin deposit certificate is placed are obtained, wherein the first background value is an average of the current thick deposit certificate background values ​​obtained in real time, and the second background value is an average of the current thin deposit certificate background values ​​obtained in real time; determining whether the thick certificate collection value meets the thick certificate collection requirement based on the thick certificate collection value and the preset thick certificate threshold, determining whether the thin certificate collection value meets the thin certificate collection requirement based on the thin certificate collection value and the preset thin certificate threshold, and determining whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold; When the thick deposit certificate collected value meets the thick deposit certificate collection requirement, the thin deposit certificate collected value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement, calculating a difference value based on the thick deposit certificate collected value and the thin deposit certificate collected value; Whether the thickness sensor to be detected is abnormal is determined according to the difference value and the preset difference threshold.

2. The method according to claim 1, characterized in that The determining whether the thickness sensor to be detected is abnormal according to the difference value and the preset difference threshold includes: Determining whether the difference value is not greater than the preset difference threshold; When the difference value is not greater than the preset difference threshold, it is determined that the thickness sensor to be detected is normal; When the difference value is greater than the preset difference threshold, determining that the thickness sensor to be detected is abnormal; The abnormal thickness sensor to be detected is adjusted, and the step of obtaining the current background value of the thickness sensor to be detected is re-entered based on the adjusted thickness sensor to be detected.

3. The method according to claim 1, characterized in that The determining, according to the current background value and the preset background threshold, whether the current background value meets the background requirement includes: Determining whether the current background value is not greater than the preset background threshold; When the current background value is not greater than the preset background threshold, determining that the current background value meets the background requirement; When the current background value is greater than the preset background threshold, determining that the current background value does not meet the background requirement; According to the current background value that does not meet the background requirement, it is determined that the thickness sensor to be detected is abnormal, the abnormal thickness sensor to be detected is adjusted, and the step of obtaining the current background value of the thickness sensor to be detected is re-entered according to the adjusted thickness sensor to be detected.

4. The method according to claim 1, wherein When the current background value meets the background requirement, obtaining a thick deposit certificate collection value and a corresponding first background value obtained when a thick deposit certificate is placed, and obtaining a thin deposit certificate collection value and a corresponding second background value obtained when a thin deposit certificate is placed, includes: Real-time acquisition of the current thick deposit order acquisition value and the corresponding current thick deposit order background value collected when thick deposit orders are placed, and real-time acquisition of the current thin deposit order acquisition value and the corresponding current thin deposit order background value collected when thin deposit orders are placed; Calculating the mean of the current thick deposit certificate collection values ​​obtained in real time, and using the mean of the current thick deposit certificate collection values ​​as the thick deposit certificate collection value; calculating the mean of the current thin deposit certificate collection values ​​obtained in real time, and using the mean of the current thin deposit certificate collection values ​​as the thin deposit certificate collection value; Calculate the mean of the current thick certificate of deposit background values ​​obtained in real time, and use the mean of the current thick certificate of deposit background values ​​as the first background value; calculate the mean of the current thin certificate of deposit background values ​​obtained in real time, and use the mean of the current thin certificate of deposit background values ​​as the second background value.

5. The method according to claim 1, characterized in that The determining, based on the thick certificate of deposit collection value and the preset thick certificate of deposit threshold, whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirement, based on the thin certificate of deposit collection value and the preset thin certificate of deposit threshold, determining, based on the first background value, the second background value, and the preset background threshold, whether the first background value and the second background value meet the background requirement, includes: Determining whether the thick deposit certificate collection value is not greater than the preset thick deposit certificate threshold, determining whether the thin deposit certificate collection value is not greater than the preset thin deposit certificate threshold, and respectively determining whether the first background value and the second background value are not greater than the preset background threshold; When the thick deposit certificate collection value is not greater than the preset thick deposit certificate threshold, it is determined that the thick deposit certificate collection value meets the thick deposit certificate collection requirement; when the thin deposit certificate collection value is not greater than the preset thin deposit certificate threshold, it is determined that the thin deposit certificate collection value meets the thin deposit certificate collection requirement; when the first background value and the second background value are not greater than the preset background threshold, it is determined that the first background value and the second background value meet the background requirement; When the thick deposit certificate collection value is greater than the thick deposit certificate threshold, it is determined that the thick deposit certificate collection value does not meet the thick deposit certificate collection requirement; when the thin deposit certificate collection value is greater than the thin deposit certificate threshold, it is determined that the thin deposit certificate collection value does not meet the thin deposit certificate collection requirement; when the first background value and the second background value are greater than the preset background threshold, it is determined that the first background value and the second background value do not meet the background requirement; Based on the thick deposit certificate collection value that does not meet the thick deposit certificate collection requirements, the thin deposit certificate collection value that does not meet the thin deposit certificate collection requirements, and the first background value and the second background value that do not meet the preset background threshold, it is determined that the thickness sensor to be detected is abnormal, the abnormal thickness sensor to be detected is adjusted, and based on the adjusted thickness sensor to be detected, the step of obtaining the current background value of the thickness sensor to be detected is re-entered.

6. The method according to claim 1, characterized in that When the thick certificate of deposit collected value meets the thick certificate of deposit collection requirement, the thin certificate of deposit collected value meets the thin certificate of deposit collection requirement, and the first background value and the second background value meet the background requirement, after calculating the difference value based on the thick certificate of deposit collected value and the thin certificate of deposit collected value, the method further includes: When the thick deposit order collection value does not meet the thick deposit order collection requirement and the first background value does not meet the background requirement, determining that the thickness sensor to be detected is abnormal; When the thin deposit receipt collection value does not meet the thin deposit receipt collection requirement, and the second background value does not meet the background requirement, determining that the thickness sensor to be detected is abnormal; The abnormal thickness sensor to be detected is adjusted, and the step of obtaining the current background value of the thickness sensor to be detected is re-entered based on the adjusted thickness sensor to be detected.

7. The method according to claim 1, characterized in that When the thick deposit certificate collection value meets the thick deposit certificate collection requirement, the thin deposit certificate collection value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement, calculating a difference value based on the thick deposit certificate collection value and the thin deposit certificate collection value, including: Calculating a ratio between the thick deposit certificate collection value and the thin deposit certificate collection value; The ratio was taken as the difference value.

8. A detection device for a thickness sensor, characterized in that: The device comprises: A first acquisition module is configured to acquire a current background value of the thickness sensor to be detected and acquire a preset threshold value set, wherein the preset threshold value set includes: a preset background threshold value, a preset thick deposit threshold value, a preset thin deposit threshold value, and a preset difference threshold value; A first determining module, configured to determine whether the current background value meets the background requirement according to the current background value and the preset background threshold; a second acquisition module configured to, when the current background value meets the background requirement, acquire a thick deposit certificate acquisition value and a corresponding first background value acquired when the thick deposit certificate is placed, and acquire a thin deposit certificate acquisition value and a corresponding second background value acquired when the thin deposit certificate is placed, wherein the first background value is an average of the current thick deposit certificate background values ​​acquired in real time, and the second background value is an average of the current thin deposit certificate background values ​​acquired in real time; a second determining module, configured to determine whether the thick certificate of deposit collection value meets the thick certificate of deposit collection requirement based on the thick certificate of deposit collection value and the preset thick certificate of deposit threshold, determine whether the thin certificate of deposit collection value meets the thin certificate of deposit collection requirement based on the thin certificate of deposit collection value and the preset thin certificate of deposit threshold, and determine whether the first background value and the second background value meet the background requirement based on the first background value, the second background value, and the preset background threshold; a calculation module configured to calculate a difference value based on the thick deposit certificate collection value and the thin deposit certificate collection value when the thick deposit certificate collection value meets the thick deposit certificate collection requirement, the thin deposit certificate collection value meets the thin deposit certificate collection requirement, and the first background value and the second background value meet the background requirement; The detection module is used to determine whether the thickness sensor to be detected is abnormal according to the difference value and the preset difference threshold.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Sheet type medium thickness identifying device and identifying method thereof

    CN103106729A

  • Sensor detection method and device and computer readable storage medium

    CN107576346A