CN110363036B - Code scanning method and device based on wire controller and code scanning system - Google Patents

Code scanning method and device based on wire controller and code scanning system Download PDF

Info

Publication number
CN110363036B
CN110363036B CN201910646385.1A CN201910646385A CN110363036B CN 110363036 B CN110363036 B CN 110363036B CN 201910646385 A CN201910646385 A CN 201910646385A CN 110363036 B CN110363036 B CN 110363036B
Authority
CN
China
Prior art keywords
code scanning
distance
controller
code
scanning device
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.)
Active
Application number
CN201910646385.1A
Other languages
Chinese (zh)
Other versions
CN110363036A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910646385.1A priority Critical patent/CN110363036B/en
Publication of CN110363036A publication Critical patent/CN110363036A/en
Application granted granted Critical
Publication of CN110363036B publication Critical patent/CN110363036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a code scanning method and device based on a wire controller and a code scanning system. Wherein, the method comprises the following steps: acquiring the current detection state of a wire controller, wherein the wire controller is used for displaying a two-dimensional code; under the condition that the current detection state is determined to be the display adjustment state, adjusting the display brightness of the display screen of the line controller to obtain the adjusted display brightness; and under the adjusted display brightness, triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the online controller. The invention solves the technical problem that the display brightness of the display screen of the line controller cannot be automatically adjusted in the related art, and the code scanning success rate is low.

Description

Code scanning method and device based on wire controller and code scanning system
Technical Field
The invention relates to the technical field of electronic control, in particular to a code scanning method and device based on a wire controller and a code scanning system.
Background
Two-dimensional code is a super-popular coding mode on mobile equipment in recent years, and data information is recorded by using specific black and white two-dimensional patterns, so that information transmission between equipment is rapid and convenient. In the use of multi-split air conditioners, users usually need to obtain real-time operation information of the air conditioner units, or air conditioner operators provide specific services for the users according to the information of the air conditioner units. However, in the multi-split application, the unit combination is complex and various, and changes in real time, and the requirement for transmitting unit information cannot be met by using a static paper two-dimensional code. Therefore, the wired controller is an effective solution for acquiring real-time unit information in the multi-split system and generating the two-dimensional code to be displayed on a screen. Although the most interactive with the user is the wire controller in the multi-online application, displaying the two-dimensional code on the wire controller can make the user more convenient to scan the code. However, the line controller is in a screen-off state most of the time due to reasons such as power consumption requirements and incapability of causing light pollution at night, so that when a user needs to scan a two-dimensional code, the screen of the line controller needs to be manually awakened every time, and certain inconvenience is caused. And after the on-line controller is awakened up, the display brightness of the display screen is fixed, and under the condition of low light intensity, the code scanning success rate is low, so that the user experience is influenced.
Aiming at the problem that the display brightness of the display screen of the line controller cannot be automatically adjusted in the related technology, the code scanning success rate is low easily, and an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a code scanning method and device based on a wire controller and a code scanning system, which at least solve the technical problem that the display brightness of a display screen of the wire controller cannot be automatically adjusted in the related art, so that the code scanning success rate is low easily.
According to an aspect of the embodiments of the present invention, there is provided a code scanning method based on a wired controller, including: acquiring the current detection state of a wire controller, wherein the wire controller is used for displaying a two-dimensional code; under the condition that the current detection state is determined to be a display adjustment state, adjusting the display brightness of a display screen of the wire controller to obtain the adjusted display brightness; and under the adjusted display brightness, triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the wire controller.
Optionally, determining that the current detection state is the display adjustment state includes: determining a first distance of a user of the code scanning device relative to the code scanning device; and under the condition that the first distance is within a first preset distance range, determining that the current detection state of the wire controller is a display adjustment state, wherein the first preset distance range is a distance range between a code scanning device and a user when the user scans a two-dimensional code by using the code scanning device.
Optionally, determining a first distance of a user of the code scanning device relative to the code scanning device comprises: determining that the line controller enters a first detection state; a first distance sensor controlling the line controller detects a second distance between the user and the line controller; acquiring a third distance between the code scanning device and the wired controller; and taking the difference value between the second distance and the third distance as the first distance of the user of the code scanning device relative to the code scanning device.
Optionally, determining that the line controller enters the first detection state comprises: a second distance sensor for controlling the wire controller detects a third distance between the wire controller and the code scanning device; and under the condition that the third distance is in a second preset range, determining that the line controller enters a first detection state, wherein the second preset range is the distance range between a code scanning device and the line controller when a user scans a two-dimensional code by using the code scanning device.
Optionally, adjusting the display brightness of the display screen of the wire controller includes: acquiring ambient illumination intensity by using a light sensor of the line controller; acquiring preset illumination intensity required by the code scanning equipment when scanning a two-dimensional code, wherein the preset illumination intensity is the illumination intensity when the code scanning equipment scans the two-dimensional code and the code scanning success rate exceeds a preset numerical value; and adjusting the display brightness of the display screen of the wire controller based on the environment illumination intensity and the preset illumination intensity.
Optionally, adjusting the display brightness of the display screen of the line controller based on the ambient light intensity and the predetermined light intensity comprises: on the basis of the ambient light intensity and the preset light intensity, adjusting the display brightness of the display screen of the wire controller through a preset formula, wherein the preset formula is as follows: o isL=OS+OdWherein O isLFor the adjusted display brightness, OSFor the intensity of the ambient light, OdIs the difference between the predetermined illumination intensity and the ambient illumination intensity.
Optionally, there is a predetermined relationship between the difference and the ambient light intensity, wherein the predetermined relationship is a second formula:
Figure BDA0002133715730000021
a. n and b are illumination intensity adjustment values.
Optionally, triggering the code scanning device to perform a code scanning operation on the two-dimensional code displayed in the display screen of the wire controller includes: detecting the code scanning operation to obtain a detection result, and counting the duration of the code scanning operation; and determining that the duration exceeds a preset duration, and continuing to adjust the adjusted display brightness until the detection result shows that the code scanning operation is finished.
According to another aspect of the embodiments of the present invention, there is provided a code scanning apparatus based on a wired controller, including: the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring the current detection state of a wire controller, and the wire controller is used for displaying a two-dimensional code; the adjusting unit is used for adjusting the display brightness of the display screen of the wire controller under the condition that the current detection state is determined to be the display adjusting state, so that the adjusted display brightness is obtained; and the code scanning unit is used for triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the wire controller under the adjusted display brightness.
Optionally, the adjusting unit includes: a first determining subunit, configured to determine a first distance of a user of the code scanning device with respect to the code scanning device; and the second determining subunit is configured to determine, when the first distance is within a first predetermined distance range, that the current detection state of the line controller is a display adjustment state, where the first predetermined distance range is a distance range between a user and a code scanning device when the user scans a two-dimensional code by using the code scanning device.
Optionally, the first determining subunit includes: the first determining module is used for determining that the wire controller enters a first detection state; the first control module is used for controlling a first distance sensor of the wire controller to detect a second distance between the user and the wire controller; the first acquisition module is used for acquiring a third distance between the code scanning equipment and the wired controller; a second determining module, configured to use a difference between the second distance and the third distance as a first distance of a user of the code scanning device relative to the code scanning device.
Optionally, the first determining module includes: the control submodule is used for controlling a second distance sensor of the wire controller to detect a third distance between the wire controller and the code scanning device; and the determining submodule is used for determining that the line controller enters a first detection state under the condition that the third distance is in a second preset range, wherein the second preset range is the distance range between the code scanning equipment and the line controller when a user scans the two-dimensional code by using the code scanning equipment.
Optionally, the adjusting unit includes: the first acquisition subunit is used for acquiring the ambient illumination intensity by utilizing the light sensor of the line controller; the second acquiring subunit is configured to acquire a predetermined illumination intensity required by the code scanning device when scanning a two-dimensional code, where the predetermined illumination intensity is an illumination intensity when a code scanning success rate exceeds a predetermined value when the code scanning device scans the two-dimensional code; and the adjusting subunit is used for adjusting the display brightness of the display screen of the wire controller based on the ambient illumination intensity and the preset illumination intensity.
Optionally, the adjusting subunit includes: an adjusting module, configured to adjust, on the basis of the ambient illumination intensity and the predetermined illumination intensity, display brightness of a display screen of the line controller through a predetermined formula, where the predetermined formula is: o isL=OS+OdWherein O isLFor the adjusted display brightness, OSFor the intensity of the ambient light, OdIs the difference between the predetermined illumination intensity and the ambient illumination intensity.
Optionally, there is a difference between the ambient light intensity and the differenceA predetermined relationship, wherein the predetermined relationship is a second formula:
Figure BDA0002133715730000031
a. n and b are illumination intensity adjustment values.
Optionally, the code scanning unit includes: the detection subunit is used for detecting the code scanning operation to obtain a detection result and counting the duration of the code scanning operation; and the third determining subunit is configured to determine that the duration exceeds a predetermined duration, and continue to adjust the adjusted display brightness until the detection result indicates that the code scanning operation is ended.
According to another aspect of the embodiment of the present invention, there is provided a code scanning system, where the code scanning system uses any one of the above code scanning methods based on the hypervisor.
According to another aspect of the embodiment of the present invention, there is also provided a storage medium including a stored program, where the program executes any one of the above-mentioned code scanning method based on a hypervisor.
According to another aspect of the embodiment of the present invention, there is provided a processor, where the processor is configured to execute a program, where the program executes the code scanning method based on a hypervisor described in any one of the above.
In the embodiment of the invention, the current detection state of the wire controller is obtained, wherein the wire controller is used for displaying the two-dimensional code; under the condition that the current detection state is determined to be the display adjustment state, adjusting the display brightness of the display screen of the line controller to obtain the adjusted display brightness; the code scanning device based on the wire controller can achieve the purpose of adjusting the display brightness of the display screen of the wire controller in real time, achieve the technical effect of improving the code scanning success rate, and further solve the technical problem that the code scanning success rate is low easily because the display brightness of the display screen of the wire controller cannot be automatically adjusted in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a code scanning method based on a hypervisor according to an embodiment of the present invention;
FIG. 2 is an alternative flow diagram of a code scanning method based on a hypervisor in accordance with an embodiment of the present invention;
FIG. 3 is a diagram of a code scanner based on a hypervisor according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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 should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a hypervisor-based code scan method, it is noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a code scanning method based on a hypervisor according to an embodiment of the present invention, where the code scanning method based on a hypervisor includes the following steps:
step S102, acquiring the current detection state of the wire controller, wherein the wire controller is used for displaying the two-dimensional code.
The wire controller can be used for acquiring real-time information of each unit in the air-conditioning multi-split system, generating a two-dimensional code based on the acquired real-time information of each unit, and displaying the generated two-dimensional code on a display screen of the wire controller. In the embodiment, the real-time information of each unit in the multi-split system can be conveniently acquired by a user or an air conditioner operator in real time, and the real-time performance of the acquired information is improved as the two-dimensional code is generated based on the real-time dynamic state of each unit.
And step S104, under the condition that the current detection state is determined to be the display adjustment state, adjusting the display brightness of the display screen of the line controller to obtain the adjusted display brightness.
Because the scanning success rate of two-dimensional code is relevant with the formation of image quality of two-dimensional code image on scanning the sign indicating number equipment, and outside light intensity change is bigger again in one day, and the formation of image quality of two-dimensional code is closely correlated with the difference of the display luminance of two-dimensional code and external light intensity again, so fixed luminance shows that the success rate that the two-dimensional code can make the user scan the two-dimensional code becomes unstable, influences user experience. Therefore, in this embodiment, the display brightness of the display screen can be adjusted to improve the code scanning success rate of the two-dimensional code.
And S106, under the adjusted display brightness, triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the online controller.
Through the steps, the current detection state of the wire controller can be obtained, wherein the wire controller is used for displaying the two-dimensional code; under the condition that the current detection state is determined to be the display adjustment state, adjusting the display brightness of the display screen of the line controller to obtain the adjusted display brightness; and under the adjusted display brightness, triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the online controller. Compared with the prior art that the line controller needs to be awakened manually when the two-dimensional code needs to be scanned, the display brightness of the two-dimensional code is fixed, and cannot be adjusted, so that the defect that the code scanning success rate is low is easily caused.
In an alternative embodiment, determining that the current detection state is the display adjustment state may include: determining a first distance of a user of the code scanning device relative to the code scanning device; and under the condition that the first distance is within a first preset distance range, determining that the current detection state of the wire controller is a display adjustment state, wherein the first preset distance range is the distance range between the code scanning device and a user when the user scans the two-dimensional code by using the code scanning device.
Specifically, determining a first distance of a user of the code scanning device relative to the code scanning device comprises: determining that the line controller enters a first detection state; a first distance sensor for controlling the line controller detects a second distance between the user and the line controller; acquiring a third distance between the code scanning equipment and the line controller; and taking the difference value between the second distance and the third distance as the first distance of the user of the code scanning device relative to the code scanning device.
It should be noted that, in the wired controller in the embodiment of the present invention, two sets of distance sensors are integrated, and the two sets of distance sensors can be used to detect a code scanning action of a user, where, in the embodiment of the present invention, the types of the distance sensors are not specifically limited and may include, but are not limited to: infrared inductor, ultrasonic sensor.
The code scanning device may include, but is not limited to: cell-phone, iPad, bar code scanner. In the embodiment of the present invention, a code scanning device is taken as an example of a mobile phone. For example, the distance L of the user from the line controller may be detected using one of two sets of distance sensors (i.e., the first distance sensor)u(i.e., the second distance) and obtaining the distance L between the mobile phone and the wire controllerp(i.e., the third distance), the first distance may be determined by the following equation: l isd=Lu+Lp,LdI.e. the first distance. When the first distance L isdAt L3And L4(i.e., the first predetermined distance range) when the current detection state of the line controller is within the two-dimensional code display adjustment state, that is, the current detection state of the line controller is determined to be the display adjustment state. In addition, L is3When the user scans the two-dimensional code, the distance between the mobile phone and the body of the user is the closest; l is4The distance between the mobile phone and the body of the user is farthest when the user scans the two-dimensional code. L is3、L4Values can be obtained experimentally.
In an alternative embodiment, determining that the wireless device enters the first detection state may include: a second distance sensor of the control wire controller detects a third distance between the wire controller and the code scanning device; and under the condition that the third distance is in a second preset range, determining that the line controller enters a first detection state, wherein the second preset range is the distance range between the code scanning equipment and the line controller when a user scans the two-dimensional code by using the code scanning equipment.
For example, the distance L of the user from the line controller may be detected using the other one of the two sets of distance sensors (i.e., the second distance sensor)p(i.e., the third distance) when the distance sensor of the other set detects the distance L between the mobile phone and the line controllerpAt L1And L2(i.e., the first predetermined distance range) when the current sensor is in the first detection state, wherein L is1When the two-dimensional code is scanned for a user, the distance between the mobile phone and the wire controller is the nearest distance; l is2And when the user scans the two-dimensional code, the mobile phone is farthest from the line controller. L is1And L2The numerical value of (A) can be obtained by experiment. It should be noted that the another distance sensor set is disposed near the display screen of the line controller, and may be used to detect the approach of the mobile phone above the line controller.
In the above embodiment, not only can the code scanning action of the user be effectively detected by using the two groups of distance sensors, but also the probability that the display screen of the line controller is mistakenly awakened is reduced, and the user experience is improved.
In an alternative embodiment, in step S104, adjusting the display brightness of the display screen of the line controller may include: acquiring the ambient illumination intensity by using a light sensor of the line controller; the method comprises the steps of obtaining preset illumination intensity required by code scanning equipment when the code scanning equipment scans a two-dimensional code, wherein the preset illumination intensity is the illumination intensity when the code scanning success rate exceeds a preset numerical value when the code scanning equipment scans the two-dimensional code; the display brightness of the display screen of the line controller is adjusted based on the ambient light intensity and the predetermined light intensity.
Specifically, adjusting the display brightness of the display screen of the line controller based on the ambient light intensity and the predetermined light intensity includes: on the basis of the ambient illumination intensity and the preset illumination intensity, the display brightness of the display screen of the line controller is adjusted through a preset formula, wherein the preset formula is as follows: o isL=OS+OdWherein O isLFor adjusted display brightness, OSTo the intensity of ambient light, OdIs the difference between the predetermined illumination intensity and the ambient illumination intensity.
Wherein, there is a predetermined relationship between the difference and the ambient light intensity, wherein the predetermined relationship is a second formula:
Figure BDA0002133715730000071
a. n and b are illumination intensity adjustment values.
For example,activating the light sensor to obtain the environmental illumination intensity O when entering the wire controller of the two-dimensional code display regulation stateS. The wire controller adjusts the display brightness O of the display screenL,OL=OS+Od。OdWhen the user scans the two-dimensional code most easily, the difference value between the brightness of the display screen and the ambient light intensity has the following relationship with the ambient light intensity:
Figure BDA0002133715730000072
the values of a, n, and b can be obtained from experimental data. Finally, the available formula of the wire controller for controlling the display brightness of the display screen is as follows:
Figure BDA0002133715730000073
meanwhile, the imaging quality of the two-dimensional code is related to the display brightness of the two-dimensional code and the capability of a camera of a mobile phone of a user for acquiring images, so that different mobile phones can have different O valuesdValue, O of the above formuladThe values are those that satisfy most users. Aiming at a user in a special condition, the wire controller can continuously detect the code scanning action of the user when entering a display adjustment state, if the code scanning action lasts for a time T, the code scanning action of the user is not successful, the display brightness needs to be adjusted, and at the moment, the wire controller can gradually adjust the display brightness from small to large according to the value b in the formula until the scanning action is finished.
That is, in step S104, triggering the code scanning device to perform the code scanning operation on the two-dimensional code displayed in the display screen of the line controller may include: detecting the code scanning operation to obtain a detection result, and counting the duration of the code scanning operation; and determining that the duration exceeds the preset duration, and continuously adjusting the adjusted display brightness until the detection result shows that the code scanning operation is finished.
And continuously adjusting the adjusted display brightness by adjusting b in the illumination intensity adjustment value.
An alternative embodiment of the present invention will now be described in detail with reference to the accompanying drawings.
FIG. 2 is an alternative code scanning method based on a hypervisor according to an embodiment of the present inventionA flowchart, as shown in fig. 2, determining that the line controller is in the detection state 1, i.e., the initial detection state of the line controller, and detecting the distance L from the mobile phone to the line controller by using the distance sensor a (i.e., the second distance sensor)pAnd determining LpWhether or not at L1And L2Within the range, in the case of yes, the line controller enters the detection state 2 (i.e. the first detection state), otherwise, the detection returns to continue to detect the distance L of the mobile phone from the line controllerp(ii) a After the line controller enters the detection state 2, a distance L of the mobile phone from the line controller is detected by using a distance sensor b (i.e., a first distance sensor)uAnd determining L of the distance of the user relative to the mobile phoned(i.e., first distance), determine LdWhether or not at L3And L4If so, adjusting the display brightness of the line controller, otherwise, returning to continuously detect the distance L of the mobile phone from the line controllerp. In the embodiment, the time when the line controller needs to enter the brightness adjustment is accurately determined, and the code scanning success rate is improved.
The code scanning method based on the wire controller can realize automatic display of the two-dimensional code, a user does not need to manually awaken a display screen of the wire controller, and the convenience of code scanning is improved; in addition, the display brightness of the two-dimensional code can be automatically adjusted, the success rate of code scanning amount of a user is improved, and the user experience is improved.
Example 2
According to another aspect of the embodiments of the present invention, there is also provided an embodiment of an apparatus for executing a code scanning method based on a hypervisor, and fig. 3 is a schematic diagram of a code scanning apparatus based on a hypervisor according to an embodiment of the present invention, as shown in fig. 3, the code scanning apparatus based on a hypervisor includes: the device comprises an acquisition unit 31, an adjusting unit 33 and a code scanning unit 35. The code scanning device based on the wire controller will be explained in detail below.
And the obtaining unit 31 is configured to obtain a current detection state of the wire controller, where the wire controller is configured to display the two-dimensional code.
And the adjusting unit 33 is configured to adjust the display brightness of the display screen of the line controller to obtain the adjusted display brightness when it is determined that the current detection state is the display adjustment state.
And the code scanning unit 35 is used for triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the line controller under the adjusted display brightness.
It should be noted that the acquiring unit 31, the adjusting unit 33, and the code scanning unit 35 correspond to steps S102 to S106 in embodiment 1, and the modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above as part of an apparatus may be implemented in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the embodiment of the present invention, the current detection state of the line controller may be obtained by using the obtaining unit, where the line controller is configured to display the two-dimensional code; adjusting the display brightness of the display screen of the line controller by using an adjusting unit under the condition that the current detection state is determined to be the display adjusting state to obtain the adjusted display brightness; and triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the online controller by utilizing the code scanning unit under the adjusted display brightness. Compared with the prior art that the line controller needs to be awakened manually when the two-dimensional code needs to be scanned, the display brightness of the two-dimensional code is fixed, and cannot be adjusted, so that the defect that the code scanning success rate is low is easily caused.
In an optional embodiment, the adjusting unit includes: the first determining subunit is used for determining a first distance of a user of the code scanning device relative to the code scanning device; and the second determining subunit is used for determining that the current detection state of the line controller is a display adjustment state under the condition that the first distance is within a first preset distance range, wherein the first preset distance range is a distance range between the code scanning device and a user when the user scans the two-dimensional code by using the code scanning device.
In an alternative embodiment, the first determining subunit includes: the first determining module is used for determining that the wire controller enters a first detection state; the first control module is used for controlling a first distance sensor of the wire controller to detect a second distance between a user and the wire controller; the first acquisition module is used for acquiring a third distance between the code scanning equipment and the line controller; and the second determining module is used for taking the difference value between the second distance and the third distance as the first distance of the user of the code scanning device relative to the code scanning device.
In an optional embodiment, the first determining module includes: the control submodule is used for controlling a second distance sensor of the linear controller to detect a third distance between the linear controller and the code scanning equipment; and the determining submodule is used for determining that the line controller enters the first detection state under the condition that the third distance is in a second preset range, wherein the second preset range is the distance range between the code scanning device and the line controller when a user scans the two-dimensional code by using the code scanning device.
In an optional embodiment, the adjusting unit includes: the first acquisition subunit is used for acquiring the ambient illumination intensity by utilizing a light sensor of the line controller; the second acquiring subunit is used for acquiring preset illumination intensity required by the code scanning equipment for scanning the code, wherein the preset illumination intensity is the illumination intensity when the code scanning equipment scans the two-dimensional code and the code scanning success rate exceeds a preset numerical value; and the adjusting subunit is used for adjusting the display brightness of the display screen of the line controller based on the ambient illumination intensity and the preset illumination intensity.
In an alternative embodiment, the adjusting subunit includes: the adjusting module is used for adjusting the display brightness of the display screen of the line controller through a preset formula on the basis of the ambient illumination intensity and the preset illumination intensity, wherein the preset formula is as follows: o isL=OS+OdWherein O isLFor adjusted display brightness, OSIs a ringAmbient light intensity, OdIs the difference between the predetermined illumination intensity and the ambient illumination intensity.
In an alternative embodiment, there is a predetermined relationship between the difference and the ambient light intensity, wherein the predetermined relationship is a second formula:
Figure BDA0002133715730000101
a. n and b are illumination intensity adjustment values.
In an optional embodiment, the code scanning unit includes: the detection subunit is used for detecting the code scanning operation to obtain a detection result and counting the duration of the code scanning operation; and the third determining subunit is used for determining that the duration exceeds the preset duration, and continuing to adjust the adjusted display brightness until the detection result shows that the code scanning operation is finished.
Example 3
According to another aspect of the embodiment of the invention, a code scanning system is further provided, and the code scanning system uses any one of the above code scanning methods based on the wired controller. The code scanning system can achieve the purpose of adjusting the display brightness of the display screen of the line controller in real time through the code scanning device based on the line controller, achieves the technical effect of improving the code scanning success rate, and further solves the technical problem that the code scanning success rate is low easily because the display brightness of the display screen of the line controller cannot be automatically adjusted in the related technology.
Example 4
According to another aspect of the embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program executes any one of the above-mentioned code scanning method based on a hypervisor.
Example 5
According to another aspect of the embodiment of the present invention, there is provided a processor, where the processor is configured to execute a program, where the program executes a code scanning method based on a hypervisor in any one of the above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A code scanning method based on a wire controller is characterized by comprising the following steps:
acquiring the current detection state of a wire controller, wherein the wire controller is used for displaying a two-dimensional code;
under the condition that the current detection state is determined to be a display adjustment state, adjusting the display brightness of a display screen of the wire controller to obtain the adjusted display brightness;
under the adjusted display brightness, triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the wire controller;
wherein, adjusting the display brightness of the display screen of the line controller comprises:
acquiring ambient illumination intensity by using a light sensor of the line controller;
acquiring preset illumination intensity required by the code scanning equipment when scanning a two-dimensional code, wherein the preset illumination intensity is the illumination intensity when the code scanning equipment scans the two-dimensional code and the code scanning success rate exceeds a preset numerical value;
adjusting the display brightness of the display screen of the line controller based on the ambient illumination intensity and the preset illumination intensity;
wherein determining that the current detection state is the display adjustment state comprises:
determining a first distance of a user of the code scanning device relative to the code scanning device;
and under the condition that the first distance is within a first preset distance range, determining that the current detection state of the wire controller is a display adjustment state, wherein the first preset distance range is a distance range between a code scanning device and a user when the user scans a two-dimensional code by using the code scanning device.
2. The method of claim 1, wherein determining a first distance of a user of the code scanning device relative to the code scanning device comprises:
determining that the line controller enters a first detection state;
a first distance sensor controlling the line controller detects a second distance between the user and the line controller;
acquiring a third distance between the code scanning device and the wired controller;
and taking the difference value between the second distance and the third distance as the first distance of the user of the code scanning device relative to the code scanning device.
3. The method of claim 2, wherein determining that the line director enters the first detection state comprises:
a second distance sensor for controlling the wire controller detects a third distance between the wire controller and the code scanning device;
and under the condition that the third distance is in a second preset range, determining that the line controller enters a first detection state, wherein the second preset range is the distance range between a code scanning device and the line controller when a user scans a two-dimensional code by using the code scanning device.
4. The method of claim 1, wherein adjusting the display brightness of the display screen of the line controller based on the ambient lighting intensity and the predetermined lighting intensity comprises:
on the basis of the ambient light intensity and the preset light intensity, adjusting the display brightness of the display screen of the wire controller through a preset formula, wherein the preset formula is as follows: o isL=OS+OdWherein O isLFor the adjusted display brightness, OSFor the intensity of the ambient light, OdIs the difference between the predetermined illumination intensity and the ambient illumination intensity.
5. The method of claim 4, wherein there is a predetermined relationship between the difference and the ambient light intensity, wherein the predetermined relationship is a second formula:
Figure FDA0002871560990000021
a. n and b are illumination intensity adjustment values.
6. The method of claim 5, wherein triggering the code scanning device to perform a code scanning operation on the two-dimensional code displayed in the display screen of the wireway controller comprises:
detecting the code scanning operation to obtain a detection result, and counting the duration of the code scanning operation;
and determining that the duration exceeds a preset duration, and continuing to adjust the adjusted display brightness until the detection result shows that the code scanning operation is finished.
7. A sweep a yard device based on drive-by-wire ware, its characterized in that includes:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring the current detection state of a wire controller, and the wire controller is used for displaying a two-dimensional code;
the adjusting unit is used for adjusting the display brightness of the display screen of the wire controller under the condition that the current detection state is determined to be the display adjusting state, so that the adjusted display brightness is obtained;
the code scanning unit is used for triggering code scanning equipment to execute code scanning operation on the two-dimensional code displayed in the display screen of the wire controller under the adjusted display brightness;
wherein the adjusting unit includes: the first acquisition subunit is used for acquiring the ambient illumination intensity by utilizing the light sensor of the line controller; the second acquiring subunit is configured to acquire a predetermined illumination intensity required by the code scanning device when scanning a two-dimensional code, where the predetermined illumination intensity is an illumination intensity when a code scanning success rate exceeds a predetermined value when the code scanning device scans the two-dimensional code; the adjusting subunit is used for adjusting the display brightness of the display screen of the wire controller based on the environment illumination intensity and the preset illumination intensity;
wherein the adjusting unit includes: a first determining subunit, configured to determine a first distance of a user of the code scanning device with respect to the code scanning device; and the second determining subunit is configured to determine, when the first distance is within a first predetermined distance range, that the current detection state of the line controller is a display adjustment state, where the first predetermined distance range is a distance range between a user and a code scanning device when the user scans a two-dimensional code by using the code scanning device.
8. A code scanning system, characterized in that the code scanning system uses the code scanning method based on the drive-by-wire of any one of claims 1 to 6.
9. A storage medium comprising a stored program, wherein the program performs the hypervisor-based code scanning method of any of claims 1-6.
10. A processor, wherein the processor is configured to run a program, and wherein the program is configured to execute the hypervisor-based code scanning method of any of claims 1 to 6 when the program is run.
CN201910646385.1A 2019-07-17 2019-07-17 Code scanning method and device based on wire controller and code scanning system Active CN110363036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910646385.1A CN110363036B (en) 2019-07-17 2019-07-17 Code scanning method and device based on wire controller and code scanning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910646385.1A CN110363036B (en) 2019-07-17 2019-07-17 Code scanning method and device based on wire controller and code scanning system

Publications (2)

Publication Number Publication Date
CN110363036A CN110363036A (en) 2019-10-22
CN110363036B true CN110363036B (en) 2021-02-26

Family

ID=68220989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910646385.1A Active CN110363036B (en) 2019-07-17 2019-07-17 Code scanning method and device based on wire controller and code scanning system

Country Status (1)

Country Link
CN (1) CN110363036B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825284A (en) * 2019-10-25 2020-02-21 珠海格力电器股份有限公司 Interaction method of terminal equipment, terminal equipment and air conditioning system
CN113436576B (en) * 2021-05-28 2022-05-06 荣耀终端有限公司 OLED display screen dimming method and device applied to two-dimensional code scanning
CN116739014A (en) * 2022-09-15 2023-09-12 荣耀终端有限公司 Code scanning method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205957394U (en) * 2016-07-11 2017-02-15 合肥美的暖通设备有限公司 Drive -by -wire ware and air conditioner
CN206523876U (en) * 2017-01-22 2017-09-26 深圳市理邦精密仪器股份有限公司 Barcode scanning equipment and medical monitoring systems
CN109067995A (en) * 2018-08-28 2018-12-21 努比亚技术有限公司 A kind of brightness adjusting method, mobile terminal and computer readable storage medium
CN109059174A (en) * 2018-07-25 2018-12-21 广东美的暖通设备有限公司 Air conditioning managing method, system and computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6661393B2 (en) * 1999-08-05 2003-12-09 Microvision, Inc. Scanned display with variation compensation
CN101377918B (en) * 2008-09-19 2013-02-27 李鑫 Electronic display screen system, method and system for correcting electronic display screen brightness
WO2017023217A1 (en) * 2015-07-31 2017-02-09 Akar Betül Yasemin Detection of pesticide residues in agricultural plants
CN106855934A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 The display methods and device of the barcode scanning page
CN105574457A (en) * 2015-12-15 2016-05-11 东软集团股份有限公司 Light supplementing method and device for scanning terminal
CN205883676U (en) * 2016-07-11 2017-01-11 合肥美的暖通设备有限公司 Drive -by -wire ware and air conditioner
CN109040414A (en) * 2017-06-12 2018-12-18 上海耕岩智能科技有限公司 A kind of method that terminal and terminal display brightness are adjusted
CN107704182B (en) * 2017-09-29 2020-03-31 维沃移动通信有限公司 Code scanning method and mobile terminal
CN109348067B (en) * 2018-11-30 2021-01-01 努比亚技术有限公司 Method for adjusting screen display brightness, mobile terminal and computer readable storage medium
CN109637498A (en) * 2018-12-23 2019-04-16 湖南文理学院 A kind of control system and control method that computer screen brightness is intelligently adjusted

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205957394U (en) * 2016-07-11 2017-02-15 合肥美的暖通设备有限公司 Drive -by -wire ware and air conditioner
CN206523876U (en) * 2017-01-22 2017-09-26 深圳市理邦精密仪器股份有限公司 Barcode scanning equipment and medical monitoring systems
CN109059174A (en) * 2018-07-25 2018-12-21 广东美的暖通设备有限公司 Air conditioning managing method, system and computer readable storage medium
CN109067995A (en) * 2018-08-28 2018-12-21 努比亚技术有限公司 A kind of brightness adjusting method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110363036A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN109361865B (en) Shooting method and terminal
CN110363036B (en) Code scanning method and device based on wire controller and code scanning system
CN107635101B (en) Shooting method, shooting device, storage medium and electronic equipment
KR102566998B1 (en) Apparatus and method for determining image sharpness
CN105225647B (en) Luminance regulating method and device
WO2016112704A1 (en) Method and device for adjusting focal length of projector, and computer storage medium
WO2017016030A1 (en) Image processing method and terminal
US8934667B2 (en) System and method for confidence-based marker adjustment
CN107743224A (en) The dirty based reminding method of camera lens, system, readable storage medium storing program for executing and mobile terminal
JP2010004118A (en) Digital photograph frame, information processing system, control method, program, and information storage medium
EP2811735A1 (en) Image sensor system, information processing device, information processing method and program
US10104309B2 (en) Imaging apparatus, flicker detection method, and flicker detection program
CN108513067B (en) Shooting control method and mobile terminal
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
CN107493407A (en) Camera arrangement and photographic method
CN111080665B (en) Image frame recognition method, device, equipment and computer storage medium
CN113727083B (en) Projector brightness adjusting method, projector brightness adjusting device and computer readable storage medium
US20130308829A1 (en) Still image extraction apparatus
JP2017130794A (en) Information processing apparatus, evaluation chart, evaluation system, and performance evaluation method
CN109639981B (en) Image shooting method and mobile terminal
EP4093015A1 (en) Photographing method and apparatus, storage medium, and electronic device
KR102349376B1 (en) Electronic apparatus and image correction method thereof
CN105654470A (en) Image selection method, device and system
CN113225550A (en) Offset detection method and device, camera module, terminal equipment and storage medium
CN106782432A (en) The method of adjustment and device of display screen acutance

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