CN112487843B - Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment - Google Patents

Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment Download PDF

Info

Publication number
CN112487843B
CN112487843B CN202011284862.3A CN202011284862A CN112487843B CN 112487843 B CN112487843 B CN 112487843B CN 202011284862 A CN202011284862 A CN 202011284862A CN 112487843 B CN112487843 B CN 112487843B
Authority
CN
China
Prior art keywords
code scanning
level
positioning lamp
level signal
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
CN202011284862.3A
Other languages
Chinese (zh)
Other versions
CN112487843A (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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202011284862.3A priority Critical patent/CN112487843B/en
Publication of CN112487843A publication Critical patent/CN112487843A/en
Application granted granted Critical
Publication of CN112487843B publication Critical patent/CN112487843B/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/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/146Methods for optical code recognition the method including quality enhancement steps
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)

Abstract

The present specification provides a control method, an apparatus, a device and a code scanning device for a positioning lamp of a code scanning device, the method can monitor a level signal of a strobe pulse pin of an image pickup device in the code scanning device, and when the strobe pulse pin reaches a high level, the positioning lamp is turned off, so that the energy consumption brought by the positioning lamp is reduced on the premise that the image pickup device completes the positioning function, and meanwhile, the scanning effect of a graphic code image cannot be influenced by a light spot of the positioning lamp when the code scanning device scans the graphic code.

Description

Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment
Technical Field
The specification belongs to the technical field of computers, and particularly relates to a control method, device and equipment for a positioning lamp of a code scanning device and the code scanning device.
Background
With the popularization of graphic code technology and mobile payment, graphic code identification such as one-dimensional codes and two-dimensional codes is gradually applied to various industries of the society, and code scanning equipment is widely used. At present, the mainstream technology of graphic code identification is to perform optical imaging by a cmos (complementary Metal Oxide semiconductor) camera module, and then perform decoding by an integrated Circuit chip (ic).
Generally, a code scanning device comprises a positioning lamp, and the positioning lamp is mainly used for positioning a graphic code, so that the code scanning device can completely acquire an image of a graphic code area and then decode and output the image. Generally, the positioning lamp has a high brightness, requires a high current, high power consumption and high heat dissipation requirements, and may cause bright light spots in a graphic code area, which affects the graphic code recognition speed, or even causes failure in decoding of the graphic code.
Disclosure of Invention
An object of an embodiment of the present specification is to provide a method, an apparatus, and a device for controlling a positioning lamp of a code scanning device, so as to reduce energy consumption of the code scanning device and improve quality of a graphic code scanned by the code scanning device.
In one aspect, an embodiment of the present specification provides a method for controlling a positioning lamp of a code scanning device, where the method includes:
after a code scanning program is started by code scanning equipment, monitoring a level signal of a gating pulse pin of image pickup equipment in the code scanning equipment; the level signal of the strobe pulse pin is a first level and a second level which are alternated, and the first level is greater than the second level;
and when the level signal is monitored to reach the first level, a positioning lamp of the code scanning device is turned off.
In another aspect, the present specification provides a control device for a positioning lamp of a code scanning device, including:
the level signal monitoring module is used for monitoring a level signal of a gating pulse pin of an image pickup device in the code scanning device after the code scanning device starts a code scanning program; the level signal of the strobe pulse pin is a first level and a second level which are alternated; the first level is greater than the second level;
and the positioning lamp closing module is used for closing the positioning lamp of the code scanning device when the level signal is monitored to reach the first level.
In another aspect, an embodiment of the present specification provides a control device for a positioning lamp of a code scanning device, including at least one processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the control method for the positioning lamp of the code scanning device.
In yet another aspect, an embodiment of the present specification provides a control system for a positioning lamp of a code scanning device, including: the device comprises a positioning lamp control chip, a main control chip, a positioning lamp and a camera device, wherein a gating pulse pin is arranged in the camera device, a level signal of the gating pulse pin is a first level and a second level which are alternated, and the first level is greater than the second level;
The main control chip comprises at least one processor and a memory used for storing executable instructions of the processor, the processor executes the instructions, the control method of the code scanning device positioning lamp is achieved and used for monitoring level signals of gating pulse pins of the camera device, and when the level signals are monitored to reach the first level, the positioning lamp control chip is set to close the positioning lamp.
The control method, device, and equipment for the positioning lamp of the code scanning equipment and the code scanning equipment provided in the specification can monitor the level signal of the Strobe pin (namely, the Strobe pulse pin) of the image pickup equipment in the code scanning equipment, and turn off the positioning lamp when the Strobe pin reaches a high level, so that the energy consumption brought by the positioning lamp is reduced on the premise that the image pickup equipment completes the positioning function, and meanwhile, the scanning effect of the graphic code image cannot be influenced by the light spot of the positioning lamp when the code scanning equipment scans the graphic code.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic structural diagram of a code scanning device in one embodiment of the present disclosure;
FIG. 2 is a schematic image of a positioning lamp spot interference code in one embodiment of the present disclosure;
FIG. 3 is a schematic flowchart of an embodiment of a method for controlling a positioning lamp of a code scanning device according to an embodiment of the present disclosure;
FIG. 4 is a timing diagram of level signals in one embodiment of the present description;
FIG. 5 is a timing diagram of a position light control signal and a level signal of a Strobe pin in one embodiment of the present disclosure;
FIG. 6 is a flow chart illustrating a method for controlling a positioning light of a code scanning device according to still another embodiment of the present disclosure;
FIG. 7 is a block diagram of an embodiment of a control device for a positioning light of a code scanning apparatus provided in the present specification;
fig. 8 is a block diagram of a hardware configuration of a control server of a positioning lamp of a code scanning device in one embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Fig. 1 is a schematic structural diagram of a code scanning device in an embodiment of the present description, and as shown in fig. 1, the code scanning device in the embodiment of the present description may include a positioning light control chip (i.e., a positioning light IC (integrated Circuit chip)), a main control chip (i.e., a main control IC), a positioning light, and a camera device (i.e., a camera). Wherein, camera equipment can be used for scanning the pattern code, and the pilot lamp control chip can be used for controlling the pilot lamp, and the main control chip can be used for calculating and control other equipment in the code equipment of sweeping like: the code scanning program can be started to control the image pickup equipment to scan graphic codes and the like. The positioning lamp is mainly used for facilitating positioning of the position of the graphic code by a user, so that the code scanning device can completely acquire the image of the graphic code area and then decode the image by the main control chip. Generally, the positioning lamp uses red light or laser with stronger brightness, and when the positioning lamp is set to have higher intensity, on the one hand, the positioning lamp needs higher current, higher power consumption and heat dissipation requirements. Fig. 2 is a schematic image diagram of a positioning lamp light spot interfering code scanning in an embodiment of the present disclosure, as shown in fig. 2, the positioning lamp may also cause a brighter light spot, i.e., a cross light spot in fig. 2, in a graphic code region, which may affect the speed of the code scanning device for identifying the graphic code, or even cause a failure in decoding the graphic code.
Of course, as shown in fig. 1, other devices such as: light filling lamp, light filling lamp control chip are light filling lamp IC promptly, and the light filling lamp can provide the light source for camera equipment when sweeping the sign indicating number equipment and sweeping the sign indicating number to can shoot graphic code.
Fig. 3 is a schematic flowchart of an embodiment of a method for controlling a positioning lamp of a code scanning device according to an embodiment of the present disclosure. Although the present specification provides the method steps or apparatus structures as shown in the following examples or figures, more or less steps or modules may be included in the method or apparatus structures based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause-and-effect relationship, the execution order of the steps or the module structure of the apparatus is not limited to the execution order or the module structure shown in the embodiment or the drawings of this specification. When the described method or module structure is applied to a device, a server or an end product in practice, the method or module structure according to the embodiment or the figures may be executed sequentially or in parallel (for example, in a parallel processor or multi-thread processing environment, or even in an implementation environment including distributed processing and server clustering).
In a specific embodiment, as shown in fig. 3, in an embodiment of the method for controlling a positioning light of a code scanning device provided in this specification, the method may be applied to a code scanning device, where the code scanning device may be a terminal such as a computer, a tablet, a smart phone, and the method may include the following steps:
step 302, after a code scanning program is started by code scanning equipment, monitoring a level signal of a gating pulse pin of image pickup equipment in the code scanning equipment; the level signal of the strobe pulse pin is a first level and a second level which are alternated, and the first level is higher than the second level.
In a specific implementation process, the main control IC in the code scanning device may start a code scanning program, and at this time, the image pickup device in the code scanning device may be turned on to start exposure, data transmission, and the like. After a code scanning program of the code scanning device is started, a level signal, namely a voltage signal, of a Strobe pin, namely a Strobe pin, of the image pickup device in the code scanning device can be monitored. CMOS (Complementary Metal-Oxide-Semiconductor) of camera equipmentOxide semiconductor, which is an important chip in computer systems) chip design, there are typically Strobe pins. Fig. 4 is a timing diagram of level signals in an embodiment of the present disclosure, and as shown in fig. 4, the level signal of the Strobe pin is a first level and a second level, the first level is greater than the second level, that is, the Strobe pin alternates between a high level and a low level, the first level is a high level, and the second level is a low level. Typically, during a CMOS exposure (with time t) 1) The level signal of the Strobe pin is high level, and when the data is transmitted and the blanking period is not exposed (the time is set as t)2) The level signal at the Strobe pin is low.
And step 304, turning off a positioning lamp of the code scanning device when the level signal is monitored to reach the first level.
In a specific implementation process, when it is monitored that a level signal of the Strobe pin reaches a first level, namely a high level, a positioning lamp of the code scanning device can be turned off. According to the embodiment of the specification, the level signal of the Strobe pin can be monitored, and when the Strobe pin reaches the high level, the positioning lamp is turned off, so that the energy consumption caused by the positioning lamp is reduced on the premise that the positioning function of the image pickup device is completed, and meanwhile, the scanning effect of the graphic code image cannot be influenced by the light spot of the positioning lamp when the graphic code is scanned by the code scanning device.
Fig. 5 is a timing diagram of a level signal of a Strobe control signal and a Strobe pin in an embodiment of the present disclosure, and as shown in fig. 5, in some embodiments of the present disclosure, turning off the position light of the code scanning device when the level signal is monitored to reach the first level includes:
When the level signal is monitored to be the second level, starting a timer, and when the timer reaches the specified time, determining that the level signal reaches the first level, and turning off a positioning lamp of the code scanning device;
wherein the specified time is less than a non-exposure time of the image pickup apparatus.
In a specific implementation process, the turn-on and turn-off of the positioning lamp generally have a delay, and in the embodiment of the present specification, the turn-off and start-up of the positioning lamp are timed by setting a timer. And when the second level, namely the low level, of the level signal bit of the Strobe pin is monitored, starting a timer, and when the timer reaches the specified time, considering that the level signal reaches the first level, and turning off a positioning lamp of the code scanning equipment. Wherein the specified time may be set according to a non-exposure time of the image pickup apparatus of the code scanning apparatus, such as: the specified time may be set to be slightly shorter than the non-exposure time of the image pickup apparatus of the code scanning apparatus. As shown in FIG. 5, t1Exposure time, t, of the image pickup apparatus2T is a designated time set in a timer, T being a non-exposure time of the image pickup apparatus, T being shown in FIG. 5<t2And after the positioning lamp is turned off, even if the positioning lamp is turned off and the time delay exists, the positioning lamp can be turned off in time when the level signal of the Strobe pin is at a high level, so that the energy consumption caused by the positioning lamp is reduced on the premise that the camera device completes the positioning function, and meanwhile, the scanning effect of the graphic code image cannot be influenced by the light spot of the positioning lamp when the graphic code scanning device scans the graphic code. Wherein the exposure time t of the image pickup apparatus 1And a non-exposure time t2Can be obtained from the parameters of the code scanning device, and the user of the code scanning device can set the length of the exposure time and the non-exposure time according to the actual requirement, for example, the exposure time t is set to make the image brighter1And (5) increasing.
In one embodiment of the present specification, the specified time is not greater than a difference between a non-exposure time of the image pickup apparatus and a delay time of turning off of a position light.
In a specific implementation process, the delay time t for turning off the positioning lamp can be obtained according to expert experience or through experimentsmGeneral delay time tmThe specified time of the timer may be 1-2ms, which is determined based on the difference between the non-exposure time of the image pickup apparatus and the delay time of turning off the position light. As shown in FIG. 5, typically, the specified time is less than or equal toEqual to the difference between the non-exposure time of the image pickup apparatus and the delay time of turning off the position light, i.e. T<=t2-tmAfter the positioning lamp is ensured to be turned off, even if the positioning lamp is turned off, the positioning lamp can be turned off in time when the level signal of the Strobe pin is at a high level due to time delay, so that energy consumption caused by the positioning lamp is reduced, and meanwhile, the scanning effect of the graphic code image cannot be influenced by the light spot of the positioning lamp when the graphic code scanning device scans the graphic code.
In addition, after the timer reaches the designated time and the positioning lamp of the code scanning device is turned off, the timer can be turned off, so that the timer stops timing, and the timing can be started again after the next code scanning.
In one embodiment of the present specification, the method further comprises:
and when the level signal is monitored to be the second level and the timer is started, starting a positioning lamp of the code scanning equipment.
In a specific implementation process, when the level signal of the Strobe pin is monitored to be the second level, namely the low level, the camera device of the code scanning device is in the non-exposure time, at this time, the timer can be started, and meanwhile, the positioning lamp of the code scanning device is turned on, so that the positioning lamp can help the code scanning device to position the graphic code. And when the level signal of the Strobe pin is monitored to be low level every time, the positioning lamp can be started and the timer can be started, so that the positioning lamp can be turned off when the camera equipment is in exposure time, and can be turned on when the camera equipment is in non-exposure time, the energy consumption brought by the positioning lamp is reduced on the premise that the camera equipment completes the positioning function, and meanwhile, the scanning effect of the graphic code image can not be influenced by the light spot of the positioning lamp when the graphic code scanning equipment scans the graphic code.
Certainly, in some embodiments of this specification, the positioning lamp of the code scanning device may also be turned on after the positioning lamp of the code scanning device is turned off for a preset time, and the preset time may be according to the exposure time t of the image pickup device of the code scanning device1Setting, such as: the preset time may be less than or equal to the exposure time, or the preset time may be the exposure time t1And positioningTime delay t of the lampmIs slightly less than the difference, so that the positioning lamp can be ensured to be turned on in time when the level signal of the Strobe pin is low.
In some embodiments of the present description, the method further comprises:
after the positioning lamp of the code scanning device is turned off, whether the code scanning device exits a code scanning program or not is judged, and if not, the level signal of the gating pulse pin of the camera shooting device is continuously monitored.
In a specific implementation process, after the positioning lamp is turned off, whether the code scanning device exits from the code scanning program is judged, if yes, the process is ended directly, the code scanning device is turned off, and if not, the level signal of a Strobe pin, namely a Strobe pin, of the camera device needs to be monitored continuously. When the level signal of the Strobe pin is monitored to be at a high level, the positioning lamp is turned off, and when the level signal of the Strobe pin is monitored to be at a low level, the positioning lamp is turned on, so that the positioning lamp is automatically controlled, and the specific turning-off and turning-on method can refer to the records of the above embodiment.
Fig. 6 is a schematic flow chart of a method for controlling a positioning light of a code scanning device in another embodiment of the present specification, and the following describes a control process of the positioning light of the code scanning device in the embodiment of the present specification with reference to fig. 6:
step1, the master IC starts the code scanning program. The camera is turned on, and exposure and data transfer are initiated. Assuming that the camera frame rate configured at this time is f frames/s, f is 1/(t)1+t2)。
Step2, starting the Strobe pin of the CMOS of the camera to be low level to trigger an interrupt program. The control system of the code scanning device waits for the triggering of the interrupt, namely when the Strobe pin is in a low level, the control system triggers a callback interrupt program to perform corresponding processing.
Step3, if the Strobe pin is triggered to be the low level interrupt, then the interrupt processing of Step4 is called, otherwise the sleep wait is continued.
Step4, setting a positioning lamp control IC to start the positioning lamp, starting a Timer and an interrupt overtime process through a main control ICAnd closing the Strobe pin low-level interrupt program. If the timeout duration set by the Timer is T, then T is required<t2-tm,tmIt is understood that the delay time for turning off the positioning lamp can be 1-2ms, and t can be determined based on the actual use of the positioning pin mOf (c) is used.
Step5, wait Timer times out to trigger the interrupt process. If a timeout interrupt is triggered, then the interrupt processing at Step6 is invoked, otherwise the sleep wait continues.
Step6, setting a positioning lamp control IC to turn off the positioning lamp through a main control IC, and turning off a Timer.
And Step7, finally judging whether the master control exits the code scanning program, if so, ending the exit, otherwise, entering Step 2.
In the control method for the positioning lamp of the code scanning device provided by the embodiment of the specification, the positioning lamp is turned off during CMOS exposure, and the positioning lamp is turned on during non-exposure, so that the turn-on time of the positioning lamp is shortened, and the power consumption is reduced to t2/(t1+t2) At the same time, the positioning lamp interference to the image is eliminated. The power consumption of the positioning lamp can be effectively reduced, the interference to the image is avoided, and the decoding of the code scanning equipment is facilitated. And the process is simple, the load of the processor is basically not occupied, and the code scanning performance is not influenced.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The relevant points can be obtained by referring to the partial description of the method embodiment.
Based on the control method for the positioning lamp of the code scanning device, one or more embodiments of the present specification further provide a device for controlling the positioning lamp of the code scanning device. The apparatus may include apparatus (including distributed systems), software (applications), modules, components, servers, clients, etc. that use the methods described in embodiments of the present specification in conjunction with hardware where necessary to implement the methods. Based on the same innovative concept, the embodiments of the present specification provide one or more embodiments with devices as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present specification may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Specifically, fig. 7 is a schematic block diagram of an embodiment of a control device for a positioning lamp of a code scanning device, which is applied to a code scanning device, and as shown in fig. 7, the control device for a positioning lamp of a code scanning device provided in this specification may include:
The level signal monitoring module 71 is configured to monitor a level signal of a strobe pulse pin of an image pickup device in the code scanning device after the code scanning device starts a code scanning program; the level signal of the strobe pulse pin is a first level and a second level which are alternated; the first level is greater than the second level;
and a positioning lamp turning-off module 72, configured to turn off the positioning lamp of the code scanning device when it is monitored that the level signal reaches the first level.
The control device of sweeping yard equipment locating light that this description embodiment provided can be when the Strobe pin reaches the high level, closes the locating light, has realized that under the prerequisite that camera equipment accomplished the locate function, the energy consumption that the locating light brought has been reduced, simultaneously, also can not make the facula of locating light influence the scanning effect of graphic code image when sweeping yard equipment scanning graphic code.
In some embodiments of this specification, the positioning light turning-off module is specifically configured to:
when the level signal is monitored to be the second level, starting a timer, and when the timer reaches the specified time, determining that the level signal reaches the first level, and turning off a positioning lamp of the code scanning device;
Wherein the specified time is less than a non-exposure time of the image pickup apparatus.
The embodiment of the specification provides a control device for scanning a positioning lamp of code equipment, through setting a timer, the starting time of the positioning lamp is timed, after the positioning lamp is ensured to be closed, even if the positioning lamp is closed, the positioning lamp can be closed in time when a level signal of a Strobe pin is in a high level due to time delay, on the premise that the camera equipment completes the positioning function, the energy consumption brought by the positioning lamp is reduced, and meanwhile, the scanning effect of a graphic code image cannot be influenced by a light spot of the positioning lamp when the graphic code is scanned by the code scanning equipment.
In some embodiments of the present specification, the specified time is not greater than a difference between a non-exposure time of the image pickup apparatus and a delay time of turning off of a position light.
In some embodiments of the present description, the apparatus further comprises a positioning opening module for:
and when the level signal is monitored to be the second level and the timer is started, starting a positioning lamp of the code scanning equipment.
In some embodiments of the present specification, the apparatus further comprises a scanning program monitoring module for:
and after the positioning lamp of the code scanning device is turned off, judging whether the code scanning device exits a code scanning program, and if not, continuously monitoring the level signal of the gating pulse pin of the camera shooting device.
It should be noted that the apparatus described above may also include other embodiments according to the description of the corresponding method embodiment. The specific implementation manner may refer to the description of the above corresponding method embodiment, and details are not described herein.
This specification embodiment still provides a control apparatus who sweeps yard equipment locating light, includes: at least one processor and a memory for storing processor executable instructions, when the processor executes the instructions, the method for controlling a positioning lamp of a code scanning device according to the above embodiment is implemented, for example:
after a code scanning program is started by code scanning equipment, monitoring a level signal of a gating pulse pin of image pickup equipment in the code scanning equipment; the level signal of the strobe pulse pin is a first level and a second level which are alternated, and the first level is greater than the second level;
and when the level signal is monitored to reach the first level, a positioning lamp of the code scanning device is turned off.
As shown in fig. 1, an embodiment of the present specification further provides a code scanning device, including: the device comprises a positioning lamp control chip, a main control chip, a positioning lamp and a camera device, wherein a gating pulse pin is arranged in the camera device, a level signal of the gating pulse pin is a first level and a second level which are alternated, and the first level is greater than the second level;
The main control chip comprises at least one processor and a memory used for storing executable instructions of the processor, and the processor executes the instructions to realize the control method of the positioning lamp of the code scanning device, is used for monitoring level signals of gating pulse pins of the camera device, and sets the positioning lamp control chip to turn off the positioning lamp when monitoring that the level signals reach the first level.
Of course, as shown in fig. 1, other devices such as: the light supplement lamp and the light supplement lamp control chip are the light supplement lamp IC and the like.
It should be noted that the description of the control device and the code scanning device according to the embodiment of the method may also include other embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The control device of the positioning lamp of the code scanning device provided by the specification can also be applied to various data analysis and processing systems. The system or server or terminal or device may be a single server, or may include a server cluster, a system (including a distributed system), software (applications), actual operating devices, logical gate devices, quantum computers, etc. using one or more of the methods described herein or one or more embodiments of the system or server or terminal or device, in combination with necessary end devices implementing hardware. The system for checking for discrepancies may comprise at least one processor and a memory storing computer-executable instructions that, when executed by the processor, implement the steps of the method of any one or more of the embodiments described above.
The method embodiments provided in the embodiments of the present specification may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device. Taking the example of the control device running on a server, fig. 8 is a block diagram of a hardware structure of a control server of a positioning lamp of a code scanning device in an embodiment of the present specification, and the computer terminal may be the control server of the positioning lamp of the code scanning device or a control device of the positioning lamp of the code scanning device in the above embodiment. As shown in fig. 8, the server 10 may include one or more (only one shown) processors 100 (the processors 100 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration and is not intended to limit the structure of the electronic device. For example, the server 10 may also include more or fewer components than shown in FIG. 8, and may also include other processing hardware, such as a database or multi-level cache, a GPU, or have a different configuration than shown in FIG. 8, for example.
The non-volatile memory 200 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the control method of the code scanning device positioning lamp in the embodiment of the present specification, and the processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the non-volatile memory 200. Non-volatile memory 200 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, office-to-network, mobile communication networks, and combinations thereof.
The transmission module 300 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission module 300 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The method or apparatus provided in this specification and described in the foregoing embodiments may implement service logic through a computer program and record the service logic on a storage medium, where the storage medium may be read and executed by a computer, and implement the effects of the solutions described in the embodiments of this specification, such as:
After a code scanning program is started by code scanning equipment, monitoring a level signal of a gating pulse pin of image pickup equipment in the code scanning equipment; the level signal of the strobe pulse pin is a first level and a second level which are alternated, and the first level is higher than the second level;
and when the level signal is monitored to reach the first level, a positioning lamp of the code scanning device is turned off.
The storage medium may include a physical device for storing information, and typically, the information is digitized and then stored using an electrical, magnetic, or optical media. The storage medium may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
The control method or apparatus for the positioning lamp of the code scanning device provided in the embodiment of the present specification may be implemented in a computer by a processor executing corresponding program instructions, for example, implemented in a PC end using a c + + language of a windows operating system, implemented in a linux system, or implemented in an intelligent terminal using android, iOS system programming languages, implemented in processing logic based on a quantum computer, or the like.
It should be noted that descriptions of the apparatus, the computer storage medium, and the system described above according to the related method embodiments may also include other embodiments, and specific implementations may refer to descriptions of corresponding method embodiments, which are not described in detail herein.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to only the partial description of the method embodiment.
The embodiments of the present description are not limited to what must be consistent with industry communications standards, standard computer resource data updating and data storage rules, or what is described in one or more embodiments of the present description. Certain industry standards, or implementations modified slightly from those described using custom modes or examples, may also achieve the same, equivalent, or similar, or other, contemplated implementations of the above-described examples. The embodiments using the modified or transformed data acquisition, storage, judgment, processing and the like can still fall within the scope of the alternative embodiments of the embodiments in this specification.
In the 90's of the 20 th century, improvements to a technology could clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements to process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain a corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical blocks. For example, a Programmable Logic Device (PLD) (e.g., a Field Programmable Gate Array (FPGA)) is an integrated circuit whose Logic functions are determined by a user programming the Device. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry for implementing the logical method flows can be readily obtained by a mere need to program the method flows with some of the hardware description languages described above and into an integrated circuit.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium that stores computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in purely computer readable program code means, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be regarded as a hardware component and the means for performing the various functions included therein may also be regarded as structures within the hardware component. Or even means for performing the functions may be conceived to be both a software module implementing the method and a structure within a hardware component.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a vehicle human interaction device, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Although one or more embodiments of the present description provide method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of sequences, and does not represent a unique order of performance. When an actual device or end product executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures (for example, in the environment of parallel processors or multi-thread processing, or even in the environment of distributed resource data update). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in processes, methods, articles, or apparatus that include the recited elements is not excluded. The terms first, second, etc. are used to denote names, but not to denote any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or the modules implementing the same functions may be implemented by a combination of a plurality of sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of 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, devices or units, and may be in an electrical, mechanical or other form.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable resource data updating apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource data updating apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable resource data update apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable resource data update apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and the relevant points can be referred to only part of the description of the method embodiments. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is intended to be illustrative of one or more embodiments of the disclosure, and is not intended to limit the scope of one or more embodiments of the disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement made within the spirit and principle of the present specification shall be included in the scope of the claims.

Claims (12)

1. A method of controlling a positioning light of a code scanning device, the method comprising:
after a code scanning program is started by code scanning equipment, monitoring a level signal of a gating pulse pin of image pickup equipment in the code scanning equipment; the level signal of the strobe pulse pin is a first level and a second level which are alternated, and the first level is higher than the second level;
when the level signal is monitored to reach the first level, a positioning lamp of the code scanning device is turned off;
when the level signal is monitored to reach the first level, turning off a positioning lamp of the code scanning device comprises:
when the level signal is monitored to be the second level, starting a timer, and when the timer reaches the specified time, determining that the level signal reaches the first level, and turning off a positioning lamp of the code scanning device;
Wherein the specified time is less than a non-exposure time of the image pickup apparatus.
2. The method according to claim 1, wherein the specified time is not greater than a difference between a non-exposure time of the image pickup apparatus and a delay time of turning off a position light.
3. The method of claim 1, further comprising:
and after the positioning lamp of the code scanning device is turned off, turning off the timer.
4. The method of claim 1, further comprising:
and when the level signal is monitored to be the second level and the timer is started, starting a positioning lamp of the code scanning equipment.
5. The method of claim 1, further comprising:
and after the positioning lamp of the code scanning equipment is turned off for a preset time, the positioning lamp of the code scanning equipment is turned on.
6. The method of any one of claims 1-5, further comprising:
after the positioning lamp of the code scanning device is turned off, whether the code scanning device exits a code scanning program or not is judged, and if not, the level signal of the gating pulse pin of the camera shooting device is continuously monitored.
7. A control device of a positioning lamp of a code scanning device comprises:
the level signal monitoring module is used for monitoring a level signal of a gating pulse pin of an image pickup device in the code scanning device after the code scanning device starts a code scanning program; the level signal of the strobe pulse pin is a first level and a second level which are alternated; the first level is greater than the second level;
The positioning lamp closing module is used for closing the positioning lamp of the code scanning equipment when the level signal is monitored to reach the first level;
the positioning lamp turning-off module is specifically configured to:
when the level signal is monitored to be the second level, starting a timer, and when the timer reaches the specified time, determining that the level signal reaches the first level, and turning off a positioning lamp of the code scanning equipment;
wherein the specified time is less than a non-exposure time of the image pickup apparatus.
8. The apparatus according to claim 7, wherein the specified time is not greater than a difference between a non-exposure time of the image pickup device and a delay time of turning off a position light.
9. The apparatus of claim 7, further comprising a positioning opening module to:
and when the level signal is monitored to be the second level and the timer is started, starting a positioning lamp of the code scanning equipment.
10. The apparatus of any of claims 7-9, further comprising a scanning procedure monitoring module to:
after the positioning lamp of the code scanning device is turned off, whether the code scanning device exits a code scanning program or not is judged, and if not, the level signal of the gating pulse pin of the camera shooting device is continuously monitored.
11. A control device for a code scanning device positioning light, comprising: at least one processor and a memory for storing processor-executable instructions, the processor implementing the method of any one of claims 1-6 when executing the instructions.
12. A code scanning apparatus comprising: the device comprises a positioning lamp control chip, a main control chip, a positioning lamp and a camera device, wherein a gating pulse pin is arranged in the camera device, a level signal of the gating pulse pin is a first level and a second level which are alternated, and the first level is greater than the second level;
the main control chip comprises at least one processor and a memory for storing processor executable instructions, and when the processor executes the instructions, the processor implements the method of any one of claims 1 to 6, and is used for monitoring a level signal of a strobe pin of the image pickup device, and when the level signal is monitored to reach the first level, the positioning lamp control chip is set to turn off the positioning lamp.
CN202011284862.3A 2020-11-17 2020-11-17 Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment Active CN112487843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011284862.3A CN112487843B (en) 2020-11-17 2020-11-17 Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011284862.3A CN112487843B (en) 2020-11-17 2020-11-17 Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment

Publications (2)

Publication Number Publication Date
CN112487843A CN112487843A (en) 2021-03-12
CN112487843B true CN112487843B (en) 2022-07-19

Family

ID=74931345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011284862.3A Active CN112487843B (en) 2020-11-17 2020-11-17 Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment

Country Status (1)

Country Link
CN (1) CN112487843B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220286B (en) * 2022-07-18 2024-02-27 上海商米科技集团股份有限公司 Code scanning engine scanning method and system, code scanning equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103776376A (en) * 2014-02-07 2014-05-07 深圳市医诺智能科技发展有限公司 Laser positioning lamp cross curve image detection method and device
CN105425661A (en) * 2015-11-06 2016-03-23 厦门市智联信通物联网科技有限公司 Intelligent drive control method and device for laser positioning lamp, and light supplement lamp controller
CN105590080B (en) * 2015-12-24 2018-09-07 江苏智联天地科技有限公司 It is a kind of to be accurately positioned scanning system and scan method for mobile telephone bar code scanning
CN108171095A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of scan method, device and terminal
CN111259879A (en) * 2020-01-09 2020-06-09 福州符号信息科技有限公司 Method and system for improving first reading rate of bar code reading equipment

Also Published As

Publication number Publication date
CN112487843A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN108717393B (en) Application program testing method and mobile terminal
CN109189682B (en) Script recording method and device
TWI630610B (en) Systems and methods for dynamically adjusting memory state transition timers
WO2019034039A1 (en) Target image code recognition method and device
CN104125418A (en) Power efficient image sensing apparatus, method of operating the same and eye/gaze tracking system
CN112487843B (en) Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment
WO2019218464A1 (en) Application program testing method and apparatus, and mobile terminal and medium
CN108830266B (en) Image identification method, device and equipment
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
KR101408021B1 (en) Method and playing device for realizing fast response in multimedia file control process
CN116402074A (en) Code scanning equipment and working mode identification method, device and equipment thereof
CN110780955B (en) Method and equipment for processing expression message
CN111738161A (en) Living body detection method and device and electronic equipment
CN114547874A (en) Method and device for reproducing operation process of equipment
CN112487835B (en) Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment
CN110109718B (en) Application program interface calling method and device
CN111311267A (en) Multi-account risk prevention and control method, system and equipment
CN108520188A (en) A kind of method, apparatus and equipment of identification bar code
US7536485B2 (en) Processor having inactive state of operation and method thereof
CN110175450A (en) A kind of processing method of information, device and equipment
CN112416444B (en) Board switching control method, device, equipment and medium
CN111192063A (en) Online customer service queuing processing method and device and electronic equipment
CN112286572A (en) Configuration method and device of business process
CN105706051A (en) App operation method and system
CN111539961A (en) Target segmentation method, device and equipment

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