CN112233410A - Automatic gain level selection method and device, computer equipment and storage medium - Google Patents

Automatic gain level selection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112233410A
CN112233410A CN202011098834.2A CN202011098834A CN112233410A CN 112233410 A CN112233410 A CN 112233410A CN 202011098834 A CN202011098834 A CN 202011098834A CN 112233410 A CN112233410 A CN 112233410A
Authority
CN
China
Prior art keywords
value
infrared
optimal
analog
emission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011098834.2A
Other languages
Chinese (zh)
Other versions
CN112233410B (en
Inventor
谌开元
李旭东
廖科华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen KTC Commercial Technology Co Ltd
Original Assignee
Shenzhen KTC Commercial Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen KTC Commercial Technology Co Ltd filed Critical Shenzhen KTC Commercial Technology Co Ltd
Priority to CN202011098834.2A priority Critical patent/CN112233410B/en
Publication of CN112233410A publication Critical patent/CN112233410A/en
Application granted granted Critical
Publication of CN112233410B publication Critical patent/CN112233410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses an automatic gain level selection method, an automatic gain level selection device, computer equipment and a storage medium. The method comprises the steps of controlling an infrared emission lamp to emit an infrared signal with a preset emission gain level; controlling the corresponding infrared receiving lamp set to receive the infrared signals by using different receiving gain levels to obtain a first analog-digital value set corresponding to each receiving gain level, and calculating the optimal receiving gain level of the infrared receiving lamp set according to the plurality of first analog-digital value sets; then controlling the infrared emission lamp to emit infrared signals with different emission gain levels; controlling the infrared receiving lamp set to receive infrared signals of different emission gain levels by using the optimal receiving gain level to obtain a second analog-digital value set corresponding to each emission gain level; the optimal emission gain level of the infrared emission lamp is determined according to the two analog-digital value sets, and the invention realizes the advantage of self-adaptive gain adjustment of the emission signal power of the infrared emission lamp and the receiving signal power of the infrared receiving lamp set.

Description

Automatic gain level selection method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of infrared data processing, and in particular, to an automatic gain level selection method, apparatus, computer device, and storage medium.
Background
An infrared touch screen is an electronic system that is mounted on the surface of a display device and used in conjunction with the display device to detect the presence or absence of a touch within the display area and to determine the location of the touch, which greatly simplifies man-machine interaction. Compared with the traditional human-computer interaction interface, the infrared touch screen realizes the product characteristics of space saving, diversified user interface modes, more attractive design, product difference and the like. The infrared touch display product is widely applied to industries such as retail industry, finance, public information inquiry, multimedia information systems, transportation, medical instruments, industrial automatic control, entertainment and catering industry, automatic ticketing system, simulation and training system, education system, aviation, military and the like.
In the current touch technology, infrared touch is generally adopted for large-size liquid crystal display; with the rapid development of the infrared touch technology, the performance requirements of users on the infrared touch screen are higher and higher, and the problems of point precision, point identification number, multipoint identification accuracy, output display resolution, interference resistance and the like become important indexes for measuring the performance of the infrared touch screen. The infrared touch screen has the working principle that an infrared light path is shielded to position a touch point, but the light transmission is easily influenced by media, environment and a display device structure, and the performance of an infrared lamp is reduced to a certain extent as the service life is longer. This has prompted the need for mechanisms that can determine signal changes and adjust signal amplitude to accommodate changes.
Disclosure of Invention
The invention aims to provide an automatic gain level selection method, an automatic gain level selection device, computer equipment and a storage medium, and aims to solve the problem that the self-adaptive power adjustment of the existing infrared touch screen on signals still needs to be improved.
In a first aspect, an embodiment of the present invention provides an automatic gain level selection method, including:
controlling an infrared emission lamp to emit an infrared signal with a preset emission gain level;
controlling an infrared receiving lamp group corresponding to the infrared transmitting lamp to receive the infrared signal by using a plurality of different receiving gain levels, and obtaining a first analog-digital value group corresponding to each receiving gain level, wherein the first analog-digital value group comprises analog values of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp group;
calculating the average value of each first modulus value group, comparing the average value of each first modulus value group with a preset gain threshold value to obtain a comparison result, selecting an optimal average value according to the comparison result, and taking a receiving gain level corresponding to the optimal average value as an optimal receiving gain level of the infrared receiving lamp group;
controlling the infrared emission lamp to emit infrared signals with a plurality of different emission gain levels;
controlling the infrared receiving lamp group to receive the infrared signals with different emission gain levels emitted by the infrared emission lamps by using the optimal receiving gain level to obtain a second analog-digital value group corresponding to each emission gain level; the second analog-digital value group comprises analog values of infrared signals received by each infrared receiving lamp in the infrared receiving lamp group;
and calculating the average value of each second analog-digital value group, comparing the average value of each second analog-digital value group with the optimal average value, comparing the minimum analog value in each second analog-digital value group with a preset minimum value, selecting the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
In a second aspect, an embodiment of the present invention provides an automatic gain level selecting apparatus, including:
the first transmitting unit is used for controlling the infrared transmitting lamp to transmit an infrared signal with a preset transmitting gain level;
a first receiving unit, configured to control an infrared receiving lamp set corresponding to the infrared emitting lamp to receive the infrared signal using a plurality of different receiving gain levels, and obtain a first analog-to-digital value set corresponding to each receiving gain level, where the first analog-to-digital value set includes a analog value of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp set;
the first comparison unit is used for calculating the average value of each first modulus value group, comparing the average value of each first modulus value group with a preset gain threshold value to obtain a comparison result, selecting an optimal average value according to the comparison result, and taking a receiving gain level corresponding to the optimal average value as the optimal receiving gain level of the infrared receiving lamp group;
the second emission unit is used for controlling the infrared emission lamp to emit infrared signals with a plurality of different emission gain levels;
the second receiving unit is used for controlling the infrared receiving lamp set to receive the infrared signals with different emission gain levels emitted by the infrared emission lamp by using the optimal receiving gain level so as to obtain a second analog-digital value set corresponding to each emission gain level; the second analog-digital value group comprises analog values of infrared signals received by each infrared receiving lamp in the infrared receiving lamp group;
and the second comparison unit is used for calculating the average value of each second analog-digital value group, comparing the average value of each second analog-digital value group with the optimal average value, comparing the minimum analog value in each second analog-digital value group with a preset minimum value, selecting the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor, when executing the computer program, implements the automatic gain level selection method according to the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the automatic gain level selection method according to the first aspect.
The embodiment of the invention discloses an automatic gain level selection method, an automatic gain level selection device, computer equipment and a storage medium. The method comprises the steps of controlling an infrared emission lamp to emit an infrared signal with a preset emission gain level; controlling the corresponding infrared receiving lamp set to receive the infrared signals by using different receiving gain levels to obtain a first analog-digital value set corresponding to each receiving gain level, and calculating the optimal receiving gain level of the infrared receiving lamp set according to the plurality of first analog-digital value sets; then controlling the infrared emission lamp to emit infrared signals with different emission gain levels; controlling the infrared receiving lamp set to receive infrared signals of different emission gain levels by using the optimal receiving gain level to obtain a second analog-digital value set corresponding to each emission gain level; and the optimal emission gain level of the infrared emission lamp is determined according to the plurality of two-module value sets.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an infrared signal lamp of an infrared touch screen according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an automatic gain level selection method according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of an automatic gain level selection method according to an embodiment of the present invention;
fig. 4 is a schematic view of another sub-flow of an automatic gain level selection method according to an embodiment of the present invention;
fig. 5 is a schematic view of another sub-flow of an automatic gain level selection method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an automatic gain level selection apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an automatic gain level selection method according to an embodiment of the present invention;
as shown in fig. 2, the method includes steps S201 to S206.
S201, controlling the infrared emission lamp to emit an infrared signal with a preset emission gain level.
In this embodiment, the emission gain level of the infrared emission lamp may be set to a plurality of levels, the higher the level is, the larger the emitted infrared signal is, the larger the infrared signal is, the infrared signal is received by the infrared receiving lamp and is amplified to obtain a received signal, in order to obtain a received signal with a higher signal-to-noise ratio, which is more stable, stronger and better in consistency, the emission gain level of the infrared emission lamp needs to be selected from a relatively high emission gain level, for example, the emission gain level of the infrared emission lamp is set to 1 to 9 levels, the higher the level is, the higher the emission gain is, the preset emission gain level may be set to 6 levels or higher levels, this embodiment describes by setting to 6 levels, that is, the infrared emission lamp is controlled to select the emission gain level 6 to emit.
S202, controlling an infrared receiving lamp group corresponding to the infrared transmitting lamp to receive the infrared signal by using a plurality of different receiving gain levels, and obtaining a first analog-digital value group corresponding to each receiving gain level, wherein the first analog-digital value group comprises analog values of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp group.
As shown in fig. 1, in this embodiment, the infrared emission lamps are arranged side by side on one lateral side and one vertical side of the infrared touch screen, the infrared receiving lamps are arranged side by side on the other lateral side and the other vertical side of the infrared touch screen, the infrared receiving lamp set includes a plurality of infrared receiving lamps, that is, 1 infrared emission lamp emits infrared signals, the plurality of infrared receiving lamps receive the infrared signals, for example, the infrared emission lamp T9 in fig. 1 corresponds to the infrared receiving lamp set R6-R12, g1-g7The infrared signals transmitted by the infrared transmitting lamp T9 and received by each infrared receiving lamp in the infrared receiving lamp groups R6-R12 are respectively, only a single infrared transmitting lamp is controlled to transmit the infrared signals each time, so that the problem that the infrared receiving lamp group cannot judge which infrared transmitting lamp transmits the infrared signals is solved; the infrared receiving lamp groups R6-R12 are controlled to receive the infrared signals emitted by the infrared emitting lamp T9 using the emission gain level 6 using a plurality of different receiving gain levels, wherein the receiving gain levels of the infrared receiving lamp groups R6-R12 may be set to 1 to 7 levels, i.e., the infrared receiving lamp groups R6-R12 are controlled to receive the infrared emitting lamp T9 using the emission gain level 6 using the receiving gain levels 1 to 7, respectivelyThe infrared signal of (2) can obtain a first modulus value group corresponding to each of the receiving gain levels 1 to 7 of the infrared receiving lamp groups R6-R12, namely 7 first modulus value groups are obtained; each of the first set of analog-to-digital values includes analog-to-digital values of the infrared signals received by each of the infrared receiving lamps in the infrared receiving lamp sets R6-R12.
In one embodiment, as shown in fig. 3, the step S202 includes:
s301, controlling each infrared receiving lamp in the infrared receiving lamp group to receive an infrared signal by using the current receiving gain level, performing digital-to-analog conversion on the infrared signal received by each infrared receiving lamp to obtain a modulus value, combining all the modulus values to obtain a first modulus value group corresponding to the current receiving gain level, and recording the first modulus value group as (a)1,a2,a3,a4,…,ak) Wherein k is the number of the infrared receiving lamps in the infrared receiving lamp group, akThe modulus value of the kth infrared receiving lamp in the infrared receiving lamp group is obtained;
s302, each infrared receiving lamp in the infrared receiving lamp group is controlled to receive the corresponding infrared signal by using the next receiving gain level, and a first modulus value corresponding to the next receiving gain level is obtained.
In this embodiment, the infrared receiving lamp groups R6-R12 include 7 infrared receiving lamps, and may also include other numbers of infrared receiving lamps, it should be noted that, each infrared receiving lamp in the infrared receiving lamp groups R6-R12 uses the same receiving gain level each time, for example, the current receiving gain level is 1 level, each infrared receiving lamp in the infrared receiving lamp groups R6-R12 uses the receiving gain level 1 to receive the infrared signal with the transmitting gain level 6, and obtains a first analog-to-digital value group corresponding to the current receiving gain level 1, where the first analog-to-digital value group includes a digital value of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp groups R6-R12, that is, the infrared signal g1-g7The digital-to-analog value of (a) is obtained by performing digital-to-analog conversion on the received analog voltage to obtain a value from 0 to 255, and is recorded as (a)1,a2,a3,a4,…,ak) Wherein k is 7.
After the first analog-digital value group of the receiving gain level 1 is obtained, the first analog-digital value group of the next receiving gain level can be continuously obtained according to the ascending order of the levels, that is, each infrared receiving lamp in the infrared receiving lamp groups R6-R12 uses the receiving gain level 2 to receive the infrared signal of the transmitting gain level 6, and the first analog-digital value group corresponding to the receiving gain level 2 is obtained, so that all the first analog-digital value groups of the infrared receiving lamp groups R6-R12 which use the receiving gain levels 1 to 7 to respectively receive the infrared signal of the transmitting gain level 6 can be obtained according to the order of the levels.
S203, calculating the average value of each first modulus value group, comparing the average value of each first modulus value group with a preset gain threshold value to obtain a comparison result, selecting an optimal average value according to the comparison result, and taking the receiving gain level corresponding to the optimal average value as the optimal receiving gain level of the infrared receiving lamp group.
In this embodiment, an average value of each first module value group is calculated and obtained through an average value calculation manner, the size of the average value of each first module value group indicates a gain effect of a corresponding receiving gain level, the larger the average value is, the higher the gain is, the average value of each first module value group is compared with a preset gain threshold to obtain a comparison result, then the average value exceeding the gain threshold is selected from the comparison result, an optimal average value is selected from the average values exceeding the gain threshold, and finally the receiving gain level corresponding to the optimal average value is used as the optimal receiving gain level of the infrared receiving lamp group.
In one embodiment, the step S203 includes:
calculating a mean value m for each of said first set of modulus values as follows:
Figure BDA0002724664950000061
in this embodiment, the digital-to-analog values in each of the first analog-to-digital value sets are substituted into the above formula, and a mean value of each of the first analog-to-digital value sets is calculated and obtained, and for the infrared emitting lamp T9 and the corresponding infrared receiving lamp sets R6-R12, 7 first analog-to-digital value sets corresponding to the obtained receiving gain levels 1 to 7, respectively, are substituted into the formula, so that 7 mean values corresponding to the receiving gain levels 1 to 7, respectively, can be obtained.
In one embodiment, as shown in fig. 4, the step S203 includes:
s401, comparing the average value of each first modulus value group with the gain threshold value one by one, and selecting the average value which exceeds and is closest to the gain threshold value from all the average values as an optimal average value;
s402, taking the receiving gain level corresponding to the optimal mean value as the optimal receiving gain level of the corresponding infrared receiving lamp group.
In this embodiment, for the infrared emission lamp T9 and the corresponding infrared receiving lamp group R6-R12 exemplified above, 7 mean values are obtained and compared with the gain threshold value one by one, and a mean value exceeding and closest to the gain threshold value is selected from all the mean values as an optimal mean value, specifically, the gain threshold value may be set to 100, where the mean value exceeding 100 is that the receiving gain requirement is satisfied, for example, in ascending order of level, the 7 mean values corresponding to the receiving gain levels 1 to 7 are 40, 70, 90, 110, 150, 190, 250, respectively, the optimal mean value is selected 110, that is, the receiving gain level 4 is selected as the optimal receiving gain level of the infrared receiving lamp groups R6-R12, where the reason why the mean value exceeding and closest to the gain threshold value is selected as the optimal mean value is that: on one hand, the requirement of receiving gain is met, and on the other hand, the problems of performance waste and service life reduction caused by selecting an excessively high receiving gain level are avoided.
And S204, controlling the infrared emission lamp to emit infrared signals with a plurality of different emission gain levels.
In this embodiment, the infrared emission lamp T9 is controlled to emit infrared signals with emission gain levels of 1 to 9 levels, and the infrared signals may be emitted in ascending order of gain level, and the infrared signals with the preset emission gain level of 6 are skipped.
S205, controlling the infrared receiving lamp set to receive the infrared signals with different emission gain levels emitted by the infrared emission lamps by using the optimal receiving gain level to obtain a second modulus value set corresponding to each emission gain level; the second module value group comprises module values of infrared signals received by each infrared receiving lamp in the infrared receiving lamp group.
In this embodiment, the ir receiving lamp sets R6-R12 are controlled to receive the ir signals with the transmission gain levels 1 to 9 transmitted by the ir transmitting lamp T9 by using the reception gain level 4, so as to obtain 9 second analog-digital value sets respectively corresponding to the transmission gain levels 1 to 9, where each of the second analog-digital value sets includes the analog value of the ir signal with the same transmission gain level received by each of the ir receiving lamps of the ir receiving lamp sets R6-R12 by using the reception gain level 4.
S206, calculating the average value of each second analog-digital value group, comparing the average value of each second analog-digital value group with the optimal average value, comparing the minimum analog value in each second analog-digital value group with a preset minimum value, selecting the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
In this embodiment, the mean value of each second modulus value group is calculated and obtained by means of mean value calculation, the average value of the second modulus value groups represents the gain effect of the corresponding emission gain level, the larger the average value is, the higher the gain is, the average value of each second modulus value group is compared with the optimal average value, and comparing the minimum modulus value in each of the second modulus value sets with a preset minimum value, and selecting an optimal second module value set, wherein the emission gain level corresponding to the optimal second module value set is the level meeting the emission gain requirement, and finally, the emission gain level corresponding to the optimal second module value set is used as the optimal emission level of the infrared emission lamp T9, the selection of the optimal emitting grade of the infrared emitting lamp T9 and the selection of the optimal receiving grade of the infrared receiving lamp group R6-R12 can be completed.
In one embodiment, as shown in fig. 5, the step S206 includes:
s501, comparing the average value of each second modulus value group with the optimal average value, and comparing the minimum modulus value in each second modulus value group with a preset minimum value;
s502, selecting a second analog-digital value group which simultaneously meets the condition that the average value is larger than the optimal average value and the minimum analog value is larger than a preset minimum value, taking the second analog-digital value group as an optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
In this embodiment, the average value of each second analog-digital value group is compared with the optimal average value (taking 110 obtained as an example above) and the minimum analog value in each second analog-digital value group is compared with a preset minimum value, where the minimum analog value is the minimum analog value received by the infrared receiving lamps in the infrared receiving lamp group, the preset minimum value may be set to 80, the minimum value 80 is also considered to meet the basic requirement for normal operation of the infrared touch screen, and the specific minimum value may be adjusted according to the specific use environment; and selecting the second modulus value group which simultaneously satisfies that the average value of the second modulus value groups is larger than the optimal average value 110 and the minimum modulus value is larger than the minimum value 80, and taking the second modulus value group as the optimal second modulus value group, and taking the emission gain level corresponding to the optimal second modulus value group as the optimal emission level of the infrared emission lamp T9.
Specifically, for example, in the ascending order of the emission gain levels 1 to 9 used by the ir emission lamp T9, if the obtained average value of each of the second modulus value sets is 30, 55, 70, 90, 105, 115, 130, 175, 250; and the smallest modulus value of each of said second set of modulus values is 35, 45, 50, 55, 65, 75, 85, 95, 120; then there are three sets of second sets of modulus values that simultaneously satisfy the condition that the average of the second sets of modulus values is greater than the optimal average 110 and the minimum modulus value is greater than the minimum value 80, i.e., the infrared emitting lamp T9 satisfies the condition that the emission gain level 7-9 is used, and the optimal emission level for the infrared emitting lamp T9 may be selected from the emission gain levels 7-9.
In one embodiment, the step S502 includes:
and if a plurality of second analog-digital value groups with the mean values larger than the optimal mean value and the minimum analog value larger than the preset minimum value exist, selecting the second analog-digital value group with the mean value larger than and closest to the optimal mean value and the minimum analog value larger than the preset minimum value from the second analog-digital value groups as the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
In this embodiment, continuing with the above example, if there are a plurality of second modulus value sets that simultaneously satisfy that the average value is greater than the optimal average value and the minimum modulus value is greater than the preset minimum value, that is, three second modulus value sets corresponding to the transmission gain levels 7-9, a second modulus value set whose average value is greater than and closest to the optimal average value 110 and the minimum modulus value is greater than the preset minimum value 80 can be selected from the three second modulus value sets and used as the optimal second modulus value set, that is, in the three second modulus value sets corresponding to the transmission gain levels 7-9, the transmission gain level 7 is that the corresponding second modulus value set satisfies that the average value is greater than and closest to the optimal average value 110 and the minimum modulus value is greater than the preset minimum value 80; namely, the emission gain level 7 is the optimal emission level of the infrared emission lamp T9; the reason for selecting the second modulus value set having a mean value greater than and closest to the optimal mean value and a minimum modulus value greater than a preset minimum value is: on one hand, the requirement of the transmission gain is met, and on the other hand, the problems of performance waste and service life reduction caused by selecting an excessively high transmission gain level are avoided.
In an embodiment, the step S206 further includes:
and if all the second modulus value groups do not meet the condition that the minimum modulus value is larger than the preset minimum value and the average value is larger than the optimal average value at the same time, taking the highest grade in the emission gain grades as the optimal emission grade of the infrared emission lamp.
In this embodiment, if the infrared receiving lamp groups R6-R12 use the receiving gain level 4 to receive the infrared signals with the transmission gain levels 1 to 9 transmitted by the infrared transmitting lamp T9, so as to obtain 9 second analog-to-digital value groups corresponding to the transmission gain levels 1 to 9, if none of the second analog-to-digital value groups can simultaneously satisfy that the minimum analog value is greater than the preset minimum value and the average value is greater than the optimal average value, it is indicated that the infrared signal transmitted by the infrared transmitting lamp T9 cannot well satisfy the transmission gain requirement, and at this time, the highest transmission gain level 9 is directly selected as the optimal transmission level of the infrared transmitting lamp T9, so that the maximum approach transmission gain requirement can be met.
An embodiment of the present invention further provides an automatic gain level selection apparatus, where the automatic gain level selection apparatus is configured to execute any of the embodiments of the automatic gain level selection method. Specifically, referring to fig. 6, fig. 6 is a schematic block diagram of an automatic gain level selection apparatus according to an embodiment of the present invention.
As shown in fig. 6, an automatic gain level selection apparatus 600 includes: a first transmitting unit 601, a first receiving unit 602, a first comparing unit 603, a second transmitting unit 604, a second receiving unit 605, and a second comparing unit 606.
A first transmitting unit 601, configured to control an infrared transmitting lamp to transmit an infrared signal at a preset transmission gain level;
a first receiving unit 602, configured to control an infrared receiving lamp set corresponding to the infrared emitting lamp to receive the infrared signal using a plurality of different receiving gain levels, and obtain a first analog-to-digital value set corresponding to each receiving gain level, where the first analog-to-digital value set includes a analog value of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp set;
a first comparing unit 603, configured to calculate a mean value of each first modulus value group, compare the mean value of each first modulus value group with a preset gain threshold to obtain a comparison result, select an optimal mean value according to the comparison result, and use a receiving gain level corresponding to the optimal mean value as an optimal receiving gain level of the infrared receiving lamp group;
a second emitting unit 604, configured to control the infrared emitting lamp to emit infrared signals at a plurality of different emission gain levels;
a second receiving unit 605, configured to control the infrared receiving lamp set to receive the infrared signals with different emission gain levels emitted by the infrared emitting lamps by using the optimal reception gain level, so as to obtain a second analog-to-digital value set corresponding to each emission gain level; the second analog-digital value group comprises analog values of infrared signals received by each infrared receiving lamp in the infrared receiving lamp group;
a second comparing unit 606, configured to calculate a mean value of each of the second analog-to-digital value sets, compare the mean value of each of the second analog-to-digital value sets with the optimal mean value, compare a minimum analog value in each of the second analog-to-digital value sets with a preset minimum value, select an optimal second analog-to-digital value set, and use an emission gain level corresponding to the optimal second analog-to-digital value set as an optimal emission level of the infrared emitting lamp.
The device designs a mechanism for adjusting signal amplitude emphatically, and can prompt the touch screen to automatically complete the process of adjusting the infrared signal before the initialization work of starting up each time; the device is suitable for a 1-sending multi-receiving infrared circuit touch screen based on a signal generating, transmitting and receiving principle mechanism, and has the advantage of realizing the self-adaptive gain adjustment of the transmitting signal power of an infrared transmitting lamp and the receiving signal power of an infrared receiving lamp group.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The automatic gain level selection means may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 700 is a server, which may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 7, the computer device 700 includes a processor 702, memory, and a network interface 705 coupled via a system bus 701, where the memory may include a non-volatile storage medium 703 and an internal memory 704.
The non-volatile storage medium 703 may store an operating system 7031 and a computer program 7032. The computer program 7032, when executed, may cause the processor 702 to perform an automatic gain level selection method.
The processor 702 is configured to provide computing and control capabilities to support the operation of the overall computing device 700.
The internal memory 704 provides an environment for the operation of a computer program 7032 on the non-volatile storage medium 703, which computer program 7032, when executed by the processor 702, causes the processor 702 to perform an automatic gain level selection method.
The network interface 705 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 700 to which aspects of the present invention may be applied, and that a particular computing device 700 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 7 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 7, and are not described herein again.
It should be appreciated that, in embodiments of the present invention, the Processor 702 may be a Central Processing Unit (CPU), and the Processor 702 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the automatic gain level selection method of an embodiment of the invention.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a magnetic disk, or an optical disk.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for automatic gain level selection, comprising:
controlling an infrared emission lamp to emit an infrared signal with a preset emission gain level;
controlling an infrared receiving lamp group corresponding to the infrared transmitting lamp to receive the infrared signal by using a plurality of different receiving gain levels, and obtaining a first analog-digital value group corresponding to each receiving gain level, wherein the first analog-digital value group comprises analog values of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp group;
calculating the average value of each first modulus value group, comparing the average value of each first modulus value group with a preset gain threshold value to obtain a comparison result, selecting an optimal average value according to the comparison result, and taking a receiving gain level corresponding to the optimal average value as an optimal receiving gain level of the infrared receiving lamp group;
controlling the infrared emission lamp to emit infrared signals with a plurality of different emission gain levels;
controlling the infrared receiving lamp group to receive the infrared signals with different emission gain levels emitted by the infrared emission lamps by using the optimal receiving gain level to obtain a second analog-digital value group corresponding to each emission gain level; the second analog-digital value group comprises analog values of infrared signals received by each infrared receiving lamp in the infrared receiving lamp group;
and calculating the average value of each second analog-digital value group, comparing the average value of each second analog-digital value group with the optimal average value, comparing the minimum analog value in each second analog-digital value group with a preset minimum value, selecting the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
2. The automatic gain level selection method of claim 1, wherein said controlling the set of ir receiving lamps corresponding to said ir emitting lamp to receive said ir signal using a plurality of different receiving gain levels and obtaining a first set of analog-to-digital values corresponding to each receiving gain level, said first set of analog-to-digital values including the analog-to-digital values of the ir signal received by each ir receiving lamp in said set of ir receiving lamps comprises:
controlling each infrared receiving lamp in the infrared receiving lamp group to receive the infrared signal by using the current receiving gain level and carrying out digital-to-analog conversion on the infrared signal received by each infrared receiving lampAnd (b) obtaining a modulus value, combining all modulus values to obtain a first modulus value group corresponding to the current receiving gain level, and recording as (a)1,a2,a3,a4,…,ak) Wherein k is the number of the infrared receiving lamps in the infrared receiving lamp group, akThe modulus value of the kth infrared receiving lamp in the infrared receiving lamp group is obtained;
and controlling each infrared receiving lamp in the infrared receiving lamp group to receive the corresponding infrared signal by using the next receiving gain level, and obtaining a first modulus value corresponding to the next receiving gain level.
3. The automatic gain level selection method of claim 2, wherein said calculating a mean value for each of said first set of modulus values comprises:
calculating a mean value m for each of said first set of modulus values as follows:
Figure FDA0002724664940000021
4. the automatic gain level selection method according to claim 1, wherein the comparing the average value of each first module value group with a preset gain threshold to obtain a comparison result, selecting an optimal average value according to the comparison result, and using the receiving gain level corresponding to the optimal average value as the optimal receiving gain level of the corresponding infrared receiving lamp group comprises:
comparing the average value of each first modulus value group with the gain threshold value one by one, and selecting the average value which exceeds and is closest to the gain threshold value from all the average values as the optimal average value;
and taking the receiving gain level corresponding to the optimal mean value as the optimal receiving gain level of the corresponding infrared receiving lamp group.
5. The automatic gain level selection method of claim 1, wherein comparing the average value of each of the second analog-to-digital value sets with the optimal average value, comparing the minimum analog value in each of the second analog-to-digital value sets with a preset minimum value, and selecting the optimal second analog-to-digital value set, and using the emission gain level corresponding to the optimal second analog-to-digital value set as the optimal emission level of the infrared emission lamp comprises:
comparing the average value of each second modulus value group with the optimal average value, and comparing the minimum modulus value in each second modulus value group with a preset minimum value;
and selecting a second modulus value group which simultaneously meets the condition that the mean value is larger than the optimal mean value and the minimum modulus value is larger than a preset minimum value, taking the second modulus value group as the optimal second modulus value group, and taking the emission gain level corresponding to the optimal second modulus value group as the optimal emission level of the infrared emission lamp.
6. The automatic gain level selection method of claim 5, wherein the comparing the average value of each of the second module value sets with the optimal average value, and comparing the minimum module value in each of the second module value sets with a preset minimum value, and selecting the optimal second module value set, and using the emission gain level corresponding to the optimal second module value set as the optimal emission level of the infrared emission lamp, further comprises:
and if all the second modulus value groups do not meet the condition that the minimum modulus value is larger than the preset minimum value and the average value is larger than the optimal average value at the same time, taking the highest grade in the emission gain grades as the optimal emission grade of the infrared emission lamp.
7. The automatic gain level selection method of claim 1, wherein the selecting a second module value set satisfying both a mean value greater than the optimal mean value and a minimum module value greater than a preset minimum value as an optimal second module value set, and using the emission gain level corresponding to the optimal second module value set as the optimal emission level of the infrared emission lamp comprises:
and if a plurality of second analog-digital value groups with the mean values larger than the optimal mean value and the minimum analog value larger than the preset minimum value exist, selecting the second analog-digital value group with the mean value larger than and closest to the optimal mean value and the minimum analog value larger than the preset minimum value from the second analog-digital value groups as the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
8. An automatic gain level selection apparatus, comprising:
the first transmitting unit is used for controlling the infrared transmitting lamp to transmit an infrared signal with a preset transmitting gain level;
a first receiving unit, configured to control an infrared receiving lamp set corresponding to the infrared emitting lamp to receive the infrared signal using a plurality of different receiving gain levels, and obtain a first analog-to-digital value set corresponding to each receiving gain level, where the first analog-to-digital value set includes a analog value of the infrared signal received by each infrared receiving lamp in the infrared receiving lamp set;
the first comparison unit is used for calculating the average value of each first modulus value group, comparing the average value of each first modulus value group with a preset gain threshold value to obtain a comparison result, selecting an optimal average value according to the comparison result, and taking a receiving gain level corresponding to the optimal average value as the optimal receiving gain level of the infrared receiving lamp group;
the second emission unit is used for controlling the infrared emission lamp to emit infrared signals with a plurality of different emission gain levels;
the second receiving unit is used for controlling the infrared receiving lamp set to receive the infrared signals with different emission gain levels emitted by the infrared emission lamp by using the optimal receiving gain level so as to obtain a second analog-digital value set corresponding to each emission gain level; the second analog-digital value group comprises analog values of infrared signals received by each infrared receiving lamp in the infrared receiving lamp group;
and the second comparison unit is used for calculating the average value of each second analog-digital value group, comparing the average value of each second analog-digital value group with the optimal average value, comparing the minimum analog value in each second analog-digital value group with a preset minimum value, selecting the optimal second analog-digital value group, and taking the emission gain level corresponding to the optimal second analog-digital value group as the optimal emission level of the infrared emission lamp.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the automatic gain level selection method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the automatic gain level selection method according to any one of claims 1 to 7.
CN202011098834.2A 2020-10-14 2020-10-14 Automatic gain level selection method and device, computer equipment and storage medium Active CN112233410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011098834.2A CN112233410B (en) 2020-10-14 2020-10-14 Automatic gain level selection method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011098834.2A CN112233410B (en) 2020-10-14 2020-10-14 Automatic gain level selection method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112233410A true CN112233410A (en) 2021-01-15
CN112233410B CN112233410B (en) 2021-04-13

Family

ID=74112939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011098834.2A Active CN112233410B (en) 2020-10-14 2020-10-14 Automatic gain level selection method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112233410B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510163A (en) * 2022-02-15 2022-05-17 深圳市康冠商用科技有限公司 Gain adjustment method, device and equipment of infrared touch screen and storage medium
CN116939926A (en) * 2023-07-19 2023-10-24 广州众远智慧科技有限公司 Method and device for adjusting effective power range of receiving lamp tube and infrared touch equipment
WO2024082396A1 (en) * 2022-10-21 2024-04-25 深圳市鸿合创新信息技术有限责任公司 Method and apparatus for determining transmitting gain, device, medium and product
CN116939926B (en) * 2023-07-19 2024-05-17 广州众远智慧科技有限公司 Method and device for adjusting effective power range of receiving lamp tube and infrared touch equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245205A (en) * 2000-02-29 2001-09-07 Matsushita Electric Ind Co Ltd Image pickup device
CN102096115A (en) * 2010-12-08 2011-06-15 顺德职业技术学院 Electronic sensor
CN102117154A (en) * 2010-12-16 2011-07-06 合肥天鹅电子技术有限公司 Signal processing method of interactive infrared whiteboard
CN102878926A (en) * 2012-09-17 2013-01-16 武汉理工大学 High-sensitivity strip drift detection device based on array infrared technology
CN204613918U (en) * 2015-02-13 2015-09-02 深圳市康冠商用科技有限公司 A kind of touch frame and touch display terminal
CN105913049A (en) * 2016-03-31 2016-08-31 深圳市奔凯安全技术股份有限公司 Fingerprint collection device
CN110275640A (en) * 2019-06-27 2019-09-24 深圳市康冠商用科技有限公司 The clearing method and system of infrared touch panel and its pulsimeter position device of touching box

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245205A (en) * 2000-02-29 2001-09-07 Matsushita Electric Ind Co Ltd Image pickup device
CN102096115A (en) * 2010-12-08 2011-06-15 顺德职业技术学院 Electronic sensor
CN102117154A (en) * 2010-12-16 2011-07-06 合肥天鹅电子技术有限公司 Signal processing method of interactive infrared whiteboard
CN102878926A (en) * 2012-09-17 2013-01-16 武汉理工大学 High-sensitivity strip drift detection device based on array infrared technology
CN204613918U (en) * 2015-02-13 2015-09-02 深圳市康冠商用科技有限公司 A kind of touch frame and touch display terminal
CN105913049A (en) * 2016-03-31 2016-08-31 深圳市奔凯安全技术股份有限公司 Fingerprint collection device
CN110275640A (en) * 2019-06-27 2019-09-24 深圳市康冠商用科技有限公司 The clearing method and system of infrared touch panel and its pulsimeter position device of touching box

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510163A (en) * 2022-02-15 2022-05-17 深圳市康冠商用科技有限公司 Gain adjustment method, device and equipment of infrared touch screen and storage medium
CN114510163B (en) * 2022-02-15 2022-08-30 深圳市康冠商用科技有限公司 Gain adjustment method, device and equipment of infrared touch screen and storage medium
WO2024082396A1 (en) * 2022-10-21 2024-04-25 深圳市鸿合创新信息技术有限责任公司 Method and apparatus for determining transmitting gain, device, medium and product
CN116939926A (en) * 2023-07-19 2023-10-24 广州众远智慧科技有限公司 Method and device for adjusting effective power range of receiving lamp tube and infrared touch equipment
CN116939926B (en) * 2023-07-19 2024-05-17 广州众远智慧科技有限公司 Method and device for adjusting effective power range of receiving lamp tube and infrared touch equipment

Also Published As

Publication number Publication date
CN112233410B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN112233410B (en) Automatic gain level selection method and device, computer equipment and storage medium
KR102557613B1 (en) Query method, apparatus, electronic device and storage medium
US9575544B2 (en) Ultrasound based mobile receivers in idle mode
US11327652B2 (en) Keyboard automatic language identification and reconfiguration
US20180150443A1 (en) Application program interface for managing complication data
US20140033134A1 (en) Various gesture controls for interactions in between devices
US9430146B1 (en) Density-based filtering of gesture events associated with a user interface of a computing device
US20130321305A1 (en) Touch Unlocking Method and Apparatus, and Electronic Device
JP2023509572A (en) Method, apparatus, electronics, storage medium and computer program for detecting vehicles
US10402541B2 (en) Collaborative electronic nose management in personal devices
US10817316B1 (en) Virtual assistant mood tracking and adaptive responses
KR20160085776A (en) Remote control for displaying application data on dissimilar screens
US8260738B2 (en) Forecasting by blending algorithms to optimize near term and long term predictions
KR20170062483A (en) Interactive text preview
CN111563593A (en) Training method and device of neural network model
CN113656698A (en) Training method and device of interest feature extraction model and electronic equipment
US20130198390A1 (en) Computer product, terminal, server, data sharing method, and data distribution method
US20110298734A1 (en) Threshold compensation method on touch device
JP7241122B2 (en) Smart response method and device, electronic device, storage medium and computer program
US20150026626A1 (en) Software keyboard input device, input method and electronic apparatus
US10282037B1 (en) Adjusting method of a virtual keyboard and touch device
US20150338900A1 (en) Method and system for detecting an object or body based on changes in signal phases
US20140145983A1 (en) Touch sensing system and operation method thereof
CN115270941A (en) Method, device and equipment for training data classification model and storage medium
CN115061762A (en) Page display method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant