CN116402074A - Code scanning equipment and working mode identification method, device and equipment thereof - Google Patents

Code scanning equipment and working mode identification method, device and equipment thereof Download PDF

Info

Publication number
CN116402074A
CN116402074A CN202310281777.9A CN202310281777A CN116402074A CN 116402074 A CN116402074 A CN 116402074A CN 202310281777 A CN202310281777 A CN 202310281777A CN 116402074 A CN116402074 A CN 116402074A
Authority
CN
China
Prior art keywords
code scanning
working mode
code
image information
equipment
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.)
Pending
Application number
CN202310281777.9A
Other languages
Chinese (zh)
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 CN202310281777.9A priority Critical patent/CN116402074A/en
Publication of CN116402074A publication Critical patent/CN116402074A/en
Pending legal-status Critical Current

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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • G06K7/10732Light sources
    • 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10881Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners
    • G06K7/109Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners adaptations to make the hand-held scanner useable as a fixed scanner
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0036Checkout procedures
    • G07G1/0045Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader

Landscapes

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

Abstract

The specification provides code scanning equipment and a working mode identification method, device and equipment of the code scanning equipment, wherein a working mode identification capable of representing the working mode of the code scanning equipment is arranged on the code scanning equipment in advance, when the code scanning equipment is started, first frame image information acquired by a camera is automatically acquired, whether the working mode identification exists or not is judged, if yes, the working mode is determined to be a base machine working mode, otherwise, the working mode of the code scanning equipment is judged rapidly based on image identification, the hardware structure of the code scanning equipment is not required to be changed, the cost of the working mode identification is reduced, and meanwhile, the accuracy and the stability of the working mode identification of the code scanning equipment are ensured without being influenced by external environment. Meanwhile, based on the identified working mode of the code scanning equipment, the working parameters of the code scanning equipment can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning equipment are improved.

Description

Code scanning equipment and working mode identification method, device and equipment thereof
The application is for the application day 2020, 12 months and 31 days, the application number is: 202011636529.4, a divisional application of a patent application entitled "code scanning device, working mode identification method of code scanning device, device and equipment".
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a code scanning device, and a method, an apparatus, and a device for identifying a working mode of the code scanning device.
Background
With the development of computer technology, the goods information can be identified by collecting money through code scanning or by scanning the graphic code of the goods, so that the quick transaction is realized. The code scanning device needs to be used, some code scanning devices may have multiple working modes, and different working modes may need to be provided by the code scanning device, for example: adjusting the brightness of the light supplement lamp, the positioning lamp or entering different transaction programs, etc. For the code scanning equipment with various working modes, if the working modes of the code scanning equipment can be accurately and rapidly identified during code scanning, the code scanning transaction can be rapidly completed.
Disclosure of Invention
An aim of the embodiment of the specification is to provide code scanning equipment, and a method, a device and equipment for identifying the working mode of the code scanning equipment, so that the cost for identifying the working mode of the code scanning equipment is reduced, and the code scanning efficiency of the code scanning equipment is improved.
In a first aspect, an embodiment of the present disclosure provides a method for identifying an operation mode of a code scanning device, where an operation mode identifier is provided in the code scanning device, and the operation mode identifier is set in a view angle range of a camera of the code scanning device when the code scanning device is in a base station operation mode, where the method includes:
When the code scanning equipment starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning equipment;
identifying whether the first frame of image information comprises the working mode identification;
if the first frame of image information is identified to comprise the working mode identification, determining that the code scanning equipment is in the base machine working mode, otherwise, determining that the code scanning equipment is in the off-machine working mode;
and adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode.
In a second aspect, the present specification provides a code scanning apparatus, comprising: the device comprises a base and a code scanning component, wherein a camera for acquiring image information is arranged on the code scanning component;
the code scanning component is detachably attached to the base, so that the code scanning component has a base machine working mode attached to the base and an off-machine working mode separated from the base;
the base is provided with a code scanning window, and when the code scanning component is in the base machine working mode, the camera corresponds to the code scanning window and scans graphic codes through the code scanning window;
a working mode identifier is arranged in the code scanning window; the working mode identifier is in the visual angle range of the camera when the code scanning component is in the base machine working mode, and is out of the visual angle range of the camera when the code scanning component is in the off-machine working mode;
The code scanning device further comprises a control chip for: when the code scanning device starts a code scanning function, first frame image information acquired by the camera is acquired, whether the first frame image information comprises the working mode identification is identified, if yes, the code scanning device is determined to be in a fixed-line working mode, otherwise, the code scanning component is determined to be in an off-line working mode, and code scanning working parameters of the code scanning device are adjusted based on the determined working mode.
In a third aspect, the present specification provides an apparatus for identifying an operation mode of a code scanning device, including:
the device comprises a camera, a base station and a code scanning device, wherein the code scanning device is characterized in that an operating mode identifier is arranged in the code scanning device, and the operating mode identifier is arranged in a visual angle range of the camera of the code scanning device when the code scanning device is in a base station operating mode, and the device comprises:
the image acquisition module is used for acquiring first frame image information acquired by a camera of the code scanning equipment when the code scanning equipment starts a code scanning function;
the identification identifying module is used for identifying whether the first frame of image information comprises the working mode identification or not;
the working mode determining module is used for determining that the code scanning device is in the base machine working mode if the first frame of image information comprises the working mode identification, otherwise, determining that the code scanning device is in the off-machine working mode;
And the working parameter adjusting module is used for adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode.
In a fourth aspect, an embodiment of the present disclosure provides an operation mode identifying device of a code scanning device, including at least one processor and a memory for storing instructions executable by the processor, where the processor implements the operation mode identifying method of the code scanning device according to the first aspect when executing the instructions.
According to the code scanning equipment, the working mode identification method, the device and the equipment for the code scanning equipment, the working mode identification capable of representing the working mode of the code scanning equipment is arranged on the code scanning equipment in advance, when the code scanning equipment is started, the first frame of image information collected by the camera is automatically obtained, whether the working mode identification exists or not is judged, if yes, the base machine working mode is determined, otherwise, the base machine working mode is determined, the function of rapidly judging the working mode of the code scanning equipment based on image identification is achieved, the hardware structure of the code scanning equipment is not required to be changed, the cost of the working mode identification is reduced, meanwhile, the influence of external environment is avoided, and the accuracy and the stability of the working mode identification of the code scanning equipment are ensured. Meanwhile, based on the identified working mode of the code scanning equipment, the working parameters of the code scanning equipment can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning equipment are improved.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an embodiment of a method for identifying an operation mode of a code scanning device according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a code scanning device according to an embodiment of the present disclosure;
fig. 3 is a schematic block diagram of an embodiment of an operation mode identifying device of the code scanning apparatus provided in the present specification;
fig. 4 is a block diagram of a hardware structure of an operation mode identification server of the code scanning device in one embodiment of the present specification.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, 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 some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
Code scanning devices are becoming common products for merchants, and generally, the code scanning devices are fixed or movable, but may need to be used in different modes of operation for different scenarios. Such as: to receipts silver-colored, sweep a yard equipment and directly fix on the desktop, the user places the two-dimensional code and sweeps a yard window of sweeping a yard equipment and can realize sweeping the sign indicating number, but some scenes need sweep the figure code of sign indicating number commodity and acquire the information of commodity like: commodity price and the like, because the shape and the size of the commodity are not certain, the code scanning device window is inconvenient to scan the code, and the code scanning device can be moved to realize code scanning. Moreover, generally, different code scanning modes may have different requirements on the working parameters of the code scanning device, such as: the brightness of the light supplement lamp, the positioning lamp, the starting time, the flashing frequency and the like.
The embodiment of the specification provides a working mode identification method of a code scanning device, which can be used for acquiring first frame image information acquired by a camera of the code scanning device when the code scanning device starts a code scanning function by setting a working mode identifier on the code scanning device, judging whether the acquired first frame image information comprises the set working mode identifier, if so, considering that the code scanning device is in a base phone working mode, and if not, considering that the code scanning device is in an immediate working mode. Furthermore, the working parameters of the code scanning equipment can be adjusted based on the determined working mode, and the code scanning work can be rapidly completed.
Fig. 1 is a flowchart of an embodiment of a method for identifying an operation mode of a code scanning device according to an embodiment of the present disclosure. Although the description provides methods and apparatus structures as shown in the examples or figures described below, more or fewer steps or modular units may be included in the methods or apparatus, whether conventionally or without inventive effort. In the steps or the structures where there is no necessary causal relationship logically, 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 embodiments or the drawings of the present specification. The described methods or module structures may be implemented in a device, server or end product in practice, in a sequential or parallel fashion (e.g., parallel processor or multi-threaded processing environments, or even distributed processing, server cluster implementations) as shown in the embodiments or figures.
In a specific embodiment, as shown in fig. 1, in one embodiment of the method for identifying a working mode of a code scanning device provided in the present disclosure, the method may be applied to a code scanning device or other terminals capable of receiving data of the code scanning device, where the terminals may be terminals such as a computer, a tablet computer, a smart phone, a server, and the like, and the terminals may interact with the code scanning device.
As shown in fig. 1, the method for identifying the working mode of the code scanning device provided in the embodiment of the present disclosure may include the following steps:
step 102, when the code scanning device starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning device.
In a specific implementation process, the code scanning device in the embodiment of the present specification may be provided with a working mode identifier, where the working mode identifier may be some special marks that are easy to identify, and the specific form of the working mode identifier is not specifically limited in the embodiment of the present specification. The working mode identifier can be stuck on the code scanning device, can be printed or carved on the code scanning device in a spray painting mode and the like, and can be specifically determined according to actual use requirements, and the embodiment of the specification is not particularly limited. The position of the working mode identification is within the visual angle range of a camera in the code scanning equipment when the code scanning equipment is in the base phone working mode. Here, it should be noted that the code scanning device in the embodiment of the present disclosure may have two working modes: the base machine working mode can be understood as a working mode that a code scanning part of the code scanning equipment is combined with a base part, and the base machine working mode can be understood as a working mode that the code scanning part of the code scanning equipment is separated from the base part, and the code scanning equipment is separated from the base to scan codes.
Fig. 2 is a schematic structural view of a code scanning device in one embodiment of the present disclosure, as shown in fig. 2, in some embodiments of the present disclosure, the code scanning device includes a base 1 and a code scanning component 2, the camera 3 is disposed on the code scanning component 2, and the code scanning component 2 is detachably attached to the base 1, so that the code scanning component 2 has a base unit operation mode attached to the base 1 and an off-machine operation mode separated from the base 1;
the base 1 is provided with a code scanning window 4, and when the code scanning component 2 is in the base phone working mode, the camera 3 corresponds to the code scanning window 4 and scans graphic codes through the code scanning window 4;
a working mode identifier 5 is arranged in the code scanning window 4; the working mode identifier 5 is located in the visual angle range of the camera 3 when the code scanning component 2 is in the base phone working mode, and is located outside the visual angle range of the camera 3 when the code scanning component 2 is in the off-phone working mode.
As shown in fig. 2, the code scanning device in the embodiment of the present disclosure includes two parts, namely, a base 1 and a code scanning component 2, where the base 1 can be generally placed on a table top or similar plane, the code scanning component 2 can be placed on the base 1 to perform code scanning operation, and a user can also take the code scanning component 2 from the base 1 to scan codes, that is, the code scanning component 2 can also be separated from the base 1 to perform code scanning operation separately. The base 1 is provided with a code scanning window 4, and when the code scanning component 2 is fixedly arranged on the base 1, the camera 3 on the code scanning component 2 is positioned at the code scanning window 4 so as to scan the graphic code through the code scanning window to scan the code. In addition, as shown in fig. 2, the base 1 in the embodiment of the present disclosure is further provided with an operation mode identifier 5, where the operation mode identifier 5 is disposed in the code scanning window 4 of the base 1 and is disposed in a viewing angle θ range of the camera 3 when the code scanning unit 2 is fixedly disposed on the base 1, so that when the code scanning device is in the base-phone operation mode, the camera 3 can collect image information of the operation mode identifier, but when the code scanning unit 2 is separated from the base 1 and is in the off-phone operation mode, the operation mode identifier 5 is not in the viewing angle θ range of the camera 3, and the camera 3 cannot collect image information of the operation mode identifier.
In this description embodiment, when the code scanning function of the code scanning equipment is started, the camera of the code scanning equipment is started to acquire images, so that first frame image information acquired by the camera can be acquired, and then the identification of the working mode is performed based on the image information acquired by the camera, so that the working state of the code scanning equipment can be rapidly determined, and further the working parameters of the code scanning equipment can be rapidly adjusted, and the function of rapidly and accurately scanning codes can be realized. For example: if the camera of the code scanning device can acquire 60 frames of images in 1 second, a first frame of image in the images acquired after the camera is opened can be acquired, and then the working state of the code scanning device is identified based on the acquired first frame of image information, so that the purpose of determining the working state of the code scanning device in 1/60 second is achieved.
In some embodiments of the present disclosure, after obtaining the first frame of image information collected by the camera of the code scanning device, the method further includes:
judging whether the first frame image information is an effective image or not, if not, acquiring next frame image information of the first frame image information as the first frame image information, judging whether the newly acquired first frame image information is an effective image or not, and if not, continuously acquiring the next frame image information as the first frame image information until the acquired first frame image information is an effective image.
In a specific implementation process, after the first frame of image information acquired by the camera of the code scanning device is acquired, whether the acquired first frame of image information is a valid image can be judged, for example: the validity judgment can be carried out through the definition of the image and the content of the image, if the definition of the image meets the requirement, or if the image has specific identifiable content instead of blank image, the image can be considered as a valid image, otherwise, the acquired first frame image information is considered as not being a valid image, when the acquired first frame image is determined not to be a valid image, the next frame image of the first frame image can be acquired backwards to serve as the first frame image information, whether the newly acquired first frame image information is a valid image is continuously judged, if not, the next frame image is continuously acquired backwards to serve as the new first frame image information, and the acquired first frame image information is the valid image. The obtained images are effectively identified, so that the content collected by the camera is ensured to be effective, and the problem that the working mode of the code scanning equipment is wrongly judged due to the fact that the collected images are invalid is avoided.
Furthermore, in some embodiments of the present description, the method further comprises:
And when the acquired first frame image information is judged not to be the effective image, returning prompt information for adjusting the posture of the code scanning equipment.
In a specific implementation process, if the acquired first frame of image information is not an effective image, the situation that the code scanning device is not aligned with a graphic code or a camera of the code scanning device is blocked and the like can be judged, at this time, prompt information for adjusting the posture of the code scanning device can be returned, and the prompt information can be broadcasted through voice or displayed in a display screen of the code scanning device so as to remind a user to adjust the posture of the code scanning device in time and ensure that effective contents can be scanned.
Step 104, identifying whether the first frame of image information includes the working mode identifier.
In a specific implementation process, after the first frame of image information acquired by the camera of the code scanning device is acquired, the acquired first frame of image information can be subjected to image recognition, for example: the acquired first frame image information can be matched with the image information of the working mode identifier preset on the code scanning device, and whether the first frame image information comprises the image information of the preset working mode identifier or not is inquired.
In addition, in some embodiments of the present disclosure, a fixed dim light compensation may be performed on a location where the operation mode identifier is set, for example: the light compensation lamp can be used for carrying out weak light compensation on the working mode identification, so that the camera of the code scanning device can accurately and clearly acquire the image information of the working mode identification under different weak light and strong light scenes, and further the identification of the working mode of the code scanning device and the adjustment of the working parameters can be rapidly and accurately carried out.
And step 106, if the first frame of image information is identified to comprise the working mode identification, determining that the code scanning equipment is in the base machine working mode, otherwise, determining that the code scanning equipment is in the off-machine working mode.
In a specific implementation process, the working mode identifier is arranged on the base of the code scanning device, and the arranged position is a position which can be acquired when the code scanning device is in the base machine working mode. Therefore, if the first frame of image information is identified to include the working mode identifier preset on the code scanning device, it can be determined that the code scanning component of the code scanning device is on the base, that is, the code scanning device can be considered to be in the working mode of the base at present, and if the first frame of image information is identified to not include the working mode identifier preset on the code scanning device, it can be determined that the code scanning component of the code scanning device is not on the base, that is, the code scanning device can be considered to be in the working mode of the off-machine at present.
And step 108, adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode.
In a specific implementation process, after the working mode of the code scanning device is determined, code scanning working parameters of the code scanning device can be adjusted based on the determined working mode, for example: the code scanning working parameters of the code scanning equipment in the base machine working mode and the code scanning working parameters in the off-machine working mode can be preconfigured, and the code scanning working parameters can be configured according to actual requirements as follows: the brightness, flicker frequency, on or off time, or parameters of the camera, etc. of the positioning lamp, the light supplement lamp are not particularly limited in the embodiments of the present disclosure.
In the embodiment of the specification, the working mode equipment of the code scanning equipment can be determined to be a terminal which is externally connected with the code scanning equipment and can perform data processing, after the working mode of the code scanning equipment is determined, the terminal can send the obtained working mode of the code scanning equipment to a main control chip of the code scanning equipment, and the main control chip automatically starts corresponding code scanning working parameters based on the received working mode.
In some embodiments of the present disclosure, the code scanning device further includes a light supplementing lamp and a positioning lamp, and the code scanning working parameters include: working parameters of a light supplementing lamp and a positioning lamp of the code scanning equipment in a fixed-line working mode and an off-line working mode;
based on the determined working mode, adjusting the code scanning working parameters of the code scanning equipment, including:
and adjusting working parameters of the light supplementing lamp and the positioning lamp of the code scanning device according to the determined working mode.
In a specific implementation process, the code scanning device can further comprise a positioning lamp and a light supplementing lamp, wherein the positioning lamp is used for positioning the position of the graphic code mainly for the convenience of a user, so that the code scanning device can completely collect images of the graphic code area; the light filling lamp can provide a light source for the camera when the code scanning equipment scans codes so as to be capable of shooting graphic codes. Of course, according to actual use needs, the code scanning device may further include other components such as: the positioning lamp control chip, the light supplementing lamp control chip, the main control chip and the like are not particularly limited in the embodiment of the specification. The code scanning working parameters in the embodiment of the specification can include working parameters of a light supplementing lamp and a positioning lamp of the code scanning device in a base phone working mode and a leaving working mode, and can be respectively configured in advance in the base phone working mode, and the working parameters of the light supplementing lamp and the positioning lamp of the code scanning device in the leaving working mode are as follows: the brightness of the positioning lamp and the light supplementing lamp, etc. For example: in general, in a base phone working mode, in order to enable a user to scan a graphic code by using a code scanning device, the user can get the graphic code of the user as close as possible to a camera of the code scanning device, so that the camera is close to the graphic code to be scanned. At this time, the brightness of the light supplement lamp cannot be too bright, and the positioning lamp needs to flash so as to prompt the user where to place the graphic code. For the off-machine working mode, generally, the code scanning component of the code scanning device is held by a user to directly align the graphic code to be scanned, and generally, the distance between the user and the graphic code to be scanned can be adjusted as required without too close distance, and at the moment, the light supplementing lamp is required to provide enough light sources so as to be capable of clearly scanning the graphic code.
After working parameters such as brightness, starting time and flicker frequency of a light supplementing lamp and a positioning lamp of the code scanning device when the base phone working mode and the off-phone working mode are pre-configured based on actual use requirements, when the code scanning device starts a code scanning function, first frame image information acquired by a camera is automatically acquired, and whether the first frame image information comprises a working mode identifier pre-set on the code scanning device is judged. If yes, the working mode of the base unit is determined, and at the moment, working parameters of the light supplementing lamp and the positioning lamp under the pre-configured working mode of the base unit can be started. If the working mode identification preset on the code scanning device is not determined in the first frame of image information, determining that the first frame of image information is in an off-machine working mode, and at the moment, starting working parameters of a light supplementing lamp and a positioning lamp in the pre-configured off-machine working mode. Automatic and rapid adjustment of working parameters of the code scanning equipment in different working modes is realized, and code scanning speed and accuracy are further improved.
In other embodiments of the present disclosure, the code scanning operation parameters include: a decoding flow of the code scanning equipment in a fixed telephone working mode and an off-telephone working mode;
based on the determined working mode, adjusting the code scanning working parameters of the code scanning equipment, including:
And starting a corresponding decoding flow according to the determined working mode.
In a specific implementation process, the code scanning working parameters may further include: the decoding flow of the code scanning device in the base phone working mode and the off-phone working mode can be preconfigured according to actual needs. The decoding process may be understood as a process of decoding the scanned graphic code to obtain corresponding information. For example: the code scanning device in the general fixed-line working mode is only used for scanning two-dimension codes to collect money, and the code scanning device in the off-line working mode can scan the two-dimension codes and also can scan the bar codes of commodities to acquire commodity information. Different graphic codes are decoded in different modes, based on the different graphic codes, the base station working mode can be preconfigured into a two-dimensional code decoding flow, and the off-station working mode needs to judge the type of the graphic codes and then starts the corresponding decoding flow.
When the code scanning device starts the code scanning function, first frame image information acquired by the camera is automatically acquired, and whether the first frame image information comprises a working mode identifier preset on the code scanning device is judged. If yes, the two-dimensional code decoding process under the pre-configured base phone working mode can be automatically started, and the two-dimensional code image recognition can be automatically performed. If the working mode identification preset on the code scanning equipment is not determined in the first frame of image information, determining that the first frame of image information is in an off-machine working mode, at the moment, starting a decoding process under the pre-configured off-machine working mode, judging the type of the graphic code first, and then performing a corresponding decoding algorithm.
By pre-configuring the decoding processes under different working modes, the decoding can be quickly performed after the working modes of the code scanning equipment are quickly identified, and especially under the condition that one working mode has only one decoding process, the base machine working mode in the embodiment can automatically enter the decoding process of the two-dimensional code, so that the decoding speed of the code scanning equipment is improved.
According to the working mode identification method of the code scanning equipment, the working mode identification capable of representing the working mode of the code scanning equipment is arranged on the code scanning equipment in advance, when the code scanning equipment is started, the first frame of image information collected by the camera is automatically obtained, whether the working mode identification exists or not is judged, if yes, the base station working mode is determined, otherwise, the base station working mode is determined to be the off-machine working mode, the function of rapidly judging the working mode of the code scanning equipment based on image identification is achieved, the hardware structure of the code scanning equipment is not required to be changed, the cost of the working mode identification is reduced, meanwhile, the influence of the external environment is avoided, and the accuracy and the stability of the working mode identification of the code scanning equipment are ensured. Meanwhile, based on the identified working mode of the code scanning equipment, the working parameters of the code scanning equipment can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning equipment are improved.
In some embodiments of the present disclosure, as shown in fig. 2, the code scanning device in the embodiments of the present disclosure includes a base 1 and a code scanning component 2, where the base 1 may be generally placed on a table top or similar plane, the code scanning component 2 may be placed on the base 1 to perform code scanning, and a user may also take the code scanning component 2 from the base 1 to scan a code, that is, the code scanning component 2 may also separate from the base 1 to perform code scanning separately. The base 1 is provided with a code scanning window 4, and when the code scanning component 2 is fixedly arranged on the base 1, the camera on the code scanning component 2 is positioned at the code scanning window 4 so as to scan the graphic code through the code scanning window to scan the code. In addition, as shown in fig. 2, the base 1 in the embodiment of the present disclosure is further provided with an operation mode identifier 5, where the operation mode identifier 5 is disposed in the code scanning window 4 of the base 1 and is disposed in a viewing angle θ range of the camera 3 when the code scanning unit 2 is fixedly disposed on the base 1, so that when the code scanning device is in the base-phone operation mode, the camera 3 can collect image information of the operation mode identifier, but when the code scanning unit 2 is separated from the base 1 and is in the off-phone operation mode, the operation mode identifier 5 is not in the viewing angle θ range of the camera 3, and the camera 3 cannot collect image information of the operation mode identifier.
In addition, in some embodiments of the present disclosure, the code scanning device may further include: the control chip is used for:
when the code scanning equipment starts a code scanning function, first frame image information acquired by the camera is acquired, whether the first frame image information comprises the working mode identification is identified, if yes, the code scanning component is determined to be placed on the base, the code scanning equipment is in a base machine working mode, otherwise, the code scanning component is determined to be separated from the base, the code scanning equipment is in an off-machine working mode, and the code scanning working parameters of the code scanning equipment are adjusted based on the determined working mode.
In a specific implementation process, the code scanning device can further comprise a control chip, and the control chip can control the code scanning device to scan codes. When the code scanning function of the code scanning equipment is started, the control chip can control the camera of the code scanning equipment to be opened, the image acquisition is started, and the first frame of image information acquired by the camera is acquired. The method for acquiring the first frame image information may refer to the description of the above embodiment, and will not be repeated here. After the first frame of image information acquired by the camera is acquired, the control chip can perform image recognition on the acquired first frame of image information, and inquire whether the first frame of image information comprises the image information of the preset working mode identification or not. If the first frame image information is identified to comprise the working mode identifier preset on the code scanning device, the code scanning component of the code scanning device can be determined to be on the base, namely the code scanning device can be considered to be in the base working mode at present, and if the first frame image information is identified to not comprise the working mode identifier preset on the code scanning device, the code scanning component of the code scanning device can be determined to be not on the base, namely the code scanning device can be considered to be in the off-machine working mode at present. After the main control chip determines the working mode, the corresponding code scanning working parameters can be automatically started, and specific contents of the code scanning working parameters can be described by referring to the embodiment, so that details are not repeated here.
According to the code scanning device, the working mode identification is set in the code scanning window of the base, so that when the code scanning component of the code scanning device works on the base, the working mode identification can be scanned, and if the code scanning component and the base are separated to work independently, the working mode identification cannot be scanned. And then realized sweeping the recognition of yard equipment self to sweeping the recognition of yard equipment operating condition through image recognition technology, compared with the mode through mechanical structure recognition equipment operating condition, sweeping yard equipment among the embodiment of this specification need not change hardware structure, has reduced the cost of operating mode discernment, avoids the hardware maintenance and the damage that lead to because of long-term use. And the structure of the code scanning equipment is not required, the working environment is not required, the influence of the working environment on the working state identification is avoided, and the accuracy and the stability of the code scanning equipment working mode identification are ensured. Meanwhile, based on the identified working mode of the code scanning equipment, the working parameters of the code scanning equipment can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning equipment are improved.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts of each embodiment are referred to each other, and each embodiment mainly describes differences from other embodiments. Reference is made to the description of parts of the method embodiments where relevant.
Based on the above-mentioned method for identifying the working mode of the code scanning device, one or more embodiments of the present disclosure further provide an apparatus for identifying the working mode of the code scanning device. The apparatus may include apparatus (including distributed systems), software (applications), modules, components, servers, clients, etc. that employ the methods described in the embodiments of the present specification in combination with the necessary apparatus to implement the hardware. Based on the same innovative concepts, the embodiments of the present description provide means in one or more embodiments as described in the following embodiments. Because the implementation schemes and methods of the device for solving the problems are similar, the implementation of the device in the embodiments of the present disclosure may refer to the implementation of the foregoing method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Specifically, fig. 3 is a schematic block diagram of an embodiment of an operation mode identifying device of a code scanning device provided in the present specification, where the device may perform data communication with the code scanning device, and the code scanning device is provided with an operation mode identifier, where the operation mode identifier is set in a view angle range of a camera of the code scanning device when the code scanning device is in a base station operation mode, as shown in fig. 3, and the operation mode identifying device of the code scanning device provided in the present specification may include:
The image acquisition module 31 is configured to acquire first frame image information acquired by a camera of the code scanning device when the code scanning device starts a code scanning function;
an identification identifying module 32, configured to identify whether the first frame image information includes the operation mode identification;
the working mode determining module 33 is configured to determine that the code scanning device is in the base station working mode if the first frame image information includes the working mode identifier, and determine that the code scanning device is in the off-machine working mode if the first frame image information includes the working mode identifier;
and the working parameter adjusting module 34 is used for adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode.
According to the working mode identification device of the code scanning equipment, the working mode identification capable of representing the working mode of the code scanning equipment is arranged on the code scanning equipment in advance, when the code scanning equipment is started, the first frame of image information collected by the camera is automatically obtained, whether the working mode identification exists or not is judged, if yes, the base station working mode is determined, otherwise, the base station working mode is determined to be the off-machine working mode, the function of rapidly judging the working mode of the code scanning equipment based on image identification is achieved, the hardware structure of the code scanning equipment is not required to be changed, the cost of the working mode identification is reduced, meanwhile, the influence of the external environment is avoided, and the accuracy and the stability of the working mode identification of the code scanning equipment are ensured. Meanwhile, based on the identified working mode of the code scanning equipment, the working parameters of the code scanning equipment can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning equipment are improved.
It should be noted that the above-mentioned device according to the description of the corresponding method embodiment may also include other embodiments. Specific implementation manner may refer to the description of the corresponding method embodiments, which is not described herein in detail.
The embodiment of the specification also provides a working mode identification device of the code scanning device, which comprises: at least one processor and a memory for storing instructions executable by the processor, the processor implementing the method for identifying an operation mode of the code scanning device according to the foregoing embodiment when executing the instructions, where:
the code scanning device is provided with a working mode identifier, the working mode identifier is arranged in a visual angle range of a camera of the code scanning device when the code scanning device is in a fixed-telephone working mode, and the method comprises the following steps:
when the code scanning equipment starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning equipment;
identifying whether the first frame of image information comprises the working mode identification;
if the first frame of image information is identified to comprise the working mode identification, determining that the code scanning equipment is in the base machine working mode, otherwise, determining that the code scanning equipment is in the off-machine working mode;
And adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode.
It should be noted that the above description of the apparatus according to the method embodiment may also include other implementations. Specific implementation may refer to descriptions of related method embodiments, which are not described herein in detail.
The working mode identification device of the code scanning equipment provided by the specification can also be applied to various data analysis processing systems. The system or server or terminal or device may be a separate server or may include a server cluster, a system (including a distributed system), software (applications), an actual operating device, a logic gate device, a quantum computer, etc. using one or more of the methods or one or more embodiments of the present description in combination with necessary hardware implementation. The detection system for reconciling discrepancy data may comprise at least one processor and a memory storing computer executable instructions that when executed by the processor perform the steps of the method described in any one or more of the embodiments described above.
The method embodiments provided in the embodiments of the present specification may be performed in a mobile terminal, a computer terminal, a server, or similar computing device. Taking the operation on the server as an example, fig. 4 is a block diagram of a hardware structure of the operation mode identification server of the code scanning device in one embodiment of the present disclosure, and the computer terminal may be the operation mode identification server of the code scanning device or the operation mode identification apparatus of the code scanning device in the above embodiment. The server 10 as shown in fig. 4 may include one or more (only one is shown in the figure) processors 100 (the processor 100 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA), a nonvolatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 4 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, server 10 may also include more or fewer components than shown in FIG. 4, for example, may also include other processing hardware such as a database or multi-level cache, a GPU, or have a different configuration than that shown in FIG. 4.
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 operation mode identification method of the code scanning device in the embodiment of the present disclosure, and the processor 100 executes the software programs and modules stored in the non-volatile memory 200, thereby executing various functional applications and resource data updates. The 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 the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, office and networks, mobile communication networks, and combinations thereof.
The transmission module 300 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission module 300 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can 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 are also possible or may be advantageous.
The method or apparatus according to the foregoing embodiments provided in the present specification may implement service logic through a computer program and be recorded on a storage medium, where the storage medium may be read and executed by a computer, to implement effects of the solutions described in the embodiments of the present specification, for example:
the code scanning device is provided with a working mode identifier, the working mode identifier is arranged in a visual angle range of a camera of the code scanning device when the code scanning device is in a fixed-telephone working mode, and the method comprises the following steps:
when the code scanning equipment starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning equipment;
Identifying whether the first frame of image information comprises the working mode identification;
if the first frame of image information is identified to comprise the working mode identification, determining that the code scanning equipment is in the base machine working mode, otherwise, determining that the code scanning equipment is in the off-machine working mode;
and adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode.
The storage medium may include physical means for storing information, typically by digitizing the information before storing it in an electronic, magnetic, or optical medium. The storage medium may include: means for storing information using electrical energy such as various memories, e.g., RAM, ROM, etc.; devices for storing information using magnetic energy such as hard disk, floppy disk, magnetic tape, magnetic core memory, bubble memory, and USB flash disk; devices for optically storing information, such as CDs or DVDs. Of course, there are other ways of readable storage medium, such as quantum memory, graphene memory, etc.
The method and the device for identifying the working mode of the code scanning device provided in the embodiments of the present disclosure may be implemented in a computer by executing corresponding program instructions by a processor, for example, implemented on a PC side using the c++ language of a windows operating system, implemented on a linux system, or implemented on an intelligent terminal using, for example, android and iOS system programming languages, implemented on a processing logic based on a quantum computer, and the like.
It should be noted that, the descriptions of the apparatus, the computer storage medium, and the system according to the related method embodiments described in the foregoing description may further include other implementations, and specific implementation manners may refer to descriptions of corresponding method embodiments, which are not described herein in detail.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described in a different manner from other embodiments. In particular, for a hardware + program class embodiment, the description is relatively simple as it is substantially similar to the method embodiment, and reference is made to the partial description of the method embodiment where relevant.
Embodiments of the present description are not limited to situations in which industry communication standards, standard computer resource data updates, and data storage rules must be met or described in one or more embodiments of the present description. Some industry standards or embodiments modified slightly based on the implementation described by the custom manner or examples can also realize the same, equivalent or similar or predictable implementation effect after modification of the above examples. Examples of data acquisition, storage, judgment, processing, etc., using these modifications or variations may still fall within the scope of alternative implementations of the examples of this specification.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
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 storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, 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 a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a car-mounted human-computer 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 operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. In actual implementation of the apparatus or the terminal product, the methods illustrated in the embodiments or the drawings may be performed sequentially or in parallel (e.g., in a parallel processor or a multi-threaded processing environment, or even in a distributed resource data update environment). 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, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. The terms first, second, etc. are used to denote a name, but not any particular order.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when one or more of the present description is implemented, the functions of each module may be implemented in the same piece or pieces of software and/or hardware, or a module that implements the same function may be implemented by a plurality of sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The present invention is 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 updating 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 updating 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement 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 storage media for a computer 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, read only 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
One skilled in the relevant art will recognize that 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. Moreover, one or more embodiments of the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
One or more embodiments of the present 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 present 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.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described in a different manner from other embodiments. In particular, for system embodiments, the description is relatively simple as it is substantially similar to method embodiments, and reference is made to the section of the method embodiments where relevant. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," 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 present specification. In this specification, schematic representations of the above terms are not necessarily directed 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, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The foregoing is merely an example of one or more embodiments of the present specification and is not intended to limit the one or more embodiments of the present specification. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of the present specification, should be included in the scope of the claims.

Claims (14)

1. The utility model provides a sweep a yard equipment's operating mode identification method, sweep and be provided with the operating mode sign in the yard equipment, the operating mode sign sets up in sweep the yard equipment and be in the range of view angle of the camera of yard equipment when the machine operating mode of seat, the method includes:
when the code scanning equipment starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning equipment;
identifying whether the first frame of image information comprises the working mode identification;
if the first frame of image information is identified to comprise the working mode identification, determining that the code scanning equipment is in the base machine working mode, otherwise, determining that the code scanning equipment is in the off-machine working mode;
based on the determined working mode, adjusting the code scanning working parameters of the code scanning equipment; wherein, include: determining the type of the scanned graphic code; and adjusting the code scanning working parameters of the code scanning equipment based on the type of the graphic code.
2. The method of claim 1, after acquiring the first frame of image information acquired by the camera of the code scanning device, the method further comprises:
judging whether the first frame image information is an effective image or not, if not, acquiring next frame image information of the first frame image information as the first frame image information, judging whether the newly acquired first frame image information is an effective image or not, and if not, continuously acquiring the next frame image information as the first frame image information until the acquired first frame image information is an effective image.
3. The method of claim 2, the method further comprising:
and when the acquired first frame image information is judged not to be the effective image, returning prompt information for adjusting the posture of the code scanning equipment.
4. The method of claim 1, the code scanning device further comprising a light supplement lamp and a positioning lamp, the code scanning operating parameters comprising: working parameters of a light supplementing lamp and a positioning lamp of the code scanning equipment in a fixed-line working mode and an off-line working mode;
based on the determined working mode, adjusting the code scanning working parameters of the code scanning equipment, including:
and adjusting working parameters of the light supplementing lamp and the positioning lamp of the code scanning device according to the determined working mode.
5. The method of claim 1, wherein the code scanning operation parameters include: and the decoding flow of the code scanning equipment is carried out in a fixed telephone working mode and an off-telephone working mode.
6. The method of claim 1, wherein the types of the graphic code include a two-dimensional code type and a bar code type.
7. The method of claim 6, wherein adjusting the code scanning operation parameter of the code scanning device based on the type of the graphic code comprises:
and in the off-machine working mode, the collection operation is executed according to the two-dimensional code type.
8. The method of claim 6, wherein adjusting the code scanning operation parameter of the code scanning device based on the type of the graphic code comprises:
and under the off-machine working mode, acquiring corresponding commodity information according to the bar code type.
9. The method of claim 6, wherein adjusting the code scanning operation parameter of the code scanning device based on the type of the graphic code comprises:
and in the working mode of the seat, identifying the two-dimensional code scanned in the image based on a pre-configured two-dimensional code decoding flow.
10. The method of claim 1, the method further comprising:
when the code scanning equipment starts the code scanning function, the weak light compensation is carried out on the position where the working mode identifier is located.
11. The method of any of claims 1-10, the code scanning device comprising a base and a code scanning component, the camera being disposed on the code scanning component, the code scanning component being detachably attached to the base such that the code scanning component has a base machine mode of operation attached to the base and an off-machine mode of operation detached from the base;
the base is provided with a code scanning window, and when the code scanning component is in the base machine working mode, the camera corresponds to the code scanning window and scans graphic codes through the code scanning window;
a working mode identifier is arranged in the code scanning window; the working mode identifier is in the visual angle range of the camera when the code scanning component is in the base phone working mode, and is out of the visual angle range of the camera when the code scanning component is in the off-phone working mode.
12. A code scanning device comprising: the device comprises a base and a code scanning component, wherein a camera for acquiring image information is arranged on the code scanning component;
the code scanning component is detachably attached to the base, so that the code scanning component has a base machine working mode attached to the base and an off-machine working mode separated from the base;
The base is provided with a code scanning window, and when the code scanning component is in the base machine working mode, the camera corresponds to the code scanning window and scans graphic codes through the code scanning window;
a working mode identifier is arranged in the code scanning window; the working mode identifier is in the visual angle range of the camera when the code scanning component is in the base machine working mode, and is out of the visual angle range of the camera when the code scanning component is in the off-machine working mode;
the code scanning device further comprises a control chip for: when the code scanning device starts a code scanning function, acquiring first frame image information acquired by the camera, identifying whether the first frame image information comprises the working mode identification, if so, determining that the code scanning device is in a fixed-telephone working mode, otherwise, determining that the code scanning component is in an off-machine working mode, and adjusting code scanning working parameters of the code scanning device based on the determined working mode; wherein, include: determining the type of the scanned graphic code; and adjusting the code scanning working parameters of the code scanning equipment based on the type of the graphic code.
13. An operating mode identification device of a code scanning device, wherein an operating mode identifier is arranged in the code scanning device, and the operating mode identifier is arranged in a view angle range of a camera of the code scanning device when the code scanning device is in a base phone operating mode, and the device comprises:
The image acquisition module is used for acquiring first frame image information acquired by a camera of the code scanning equipment when the code scanning equipment starts a code scanning function;
the identification identifying module is used for identifying whether the first frame of image information comprises the working mode identification or not;
the working mode determining module is used for determining that the code scanning device is in the base machine working mode if the first frame of image information comprises the working mode identification, otherwise, determining that the code scanning device is in the off-machine working mode;
the working parameter adjusting module is used for adjusting the code scanning working parameters of the code scanning equipment based on the determined working mode; wherein, include: determining the type of the scanned graphic code; and adjusting the code scanning working parameters of the code scanning equipment based on the type of the graphic code.
14. An operation mode identification device of a code scanning device, comprising: at least one processor and a memory for storing processor-executable instructions which, when executed, implement the method of any one of claims 1-11.
CN202310281777.9A 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment thereof Pending CN116402074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310281777.9A CN116402074A (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310281777.9A CN116402074A (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment thereof
CN202011636529.4A CN112749575B (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment of code scanning equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011636529.4A Division CN112749575B (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment of code scanning equipment

Publications (1)

Publication Number Publication Date
CN116402074A true CN116402074A (en) 2023-07-07

Family

ID=75651073

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310281777.9A Pending CN116402074A (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment thereof
CN202011636529.4A Active CN112749575B (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment of code scanning equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011636529.4A Active CN112749575B (en) 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment of code scanning equipment

Country Status (1)

Country Link
CN (2) CN116402074A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114330385A (en) * 2021-12-28 2022-04-12 福建新大陆支付技术有限公司 Test method of missing one-dimensional bar code and computer readable medium
CN114444527B (en) * 2022-01-30 2024-02-02 支付宝(杭州)信息技术有限公司 Code scanning identification method, device, equipment and medium
CN116739014A (en) * 2022-09-15 2023-09-12 荣耀终端有限公司 Code scanning method and electronic equipment
CN116341581B (en) * 2023-05-30 2023-08-08 北京智麟科技有限公司 Integrated management method and system for Internet of things code scanning equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205910704U (en) * 2016-07-11 2017-01-25 深圳市兴通物联科技有限公司 Disconnect -type laser bar code scanning platform organism structure
CN109426747A (en) * 2017-08-23 2019-03-05 上海商米科技有限公司 Barcode scanning terminal and its barcode scanning mode switching method
CN108038405A (en) * 2017-12-22 2018-05-15 努比亚技术有限公司 Barcode scanning light compensation method, mobile terminal and computer-readable recording medium
CN207780907U (en) * 2018-01-11 2018-08-28 百富计算机技术(深圳)有限公司 Barcode scanning payment mechanism
CN108833786B (en) * 2018-06-29 2022-04-22 联想(北京)有限公司 Mode control method and electronic equipment
CN109784113A (en) * 2018-12-17 2019-05-21 深圳盈达信息科技有限公司 Scanning means and its barcode scanning method
CN111913555A (en) * 2019-05-09 2020-11-10 北京小米移动软件有限公司 Control method and control device for application program and computer readable storage medium
CN211699107U (en) * 2020-04-16 2020-10-16 支付宝(杭州)信息技术有限公司 Settlement machine

Also Published As

Publication number Publication date
CN112749575B (en) 2023-02-17
CN112749575A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN116402074A (en) Code scanning equipment and working mode identification method, device and equipment thereof
CN109614983B (en) Training data generation method, device and system
US9967444B2 (en) Apparatus and method for capturing image in electronic device
WO2019179233A1 (en) Qr code identifying and reading method and apparatus, and device
CN108830266B (en) Image identification method, device and equipment
CN108681667A (en) A kind of unit type recognition methods, device and processing equipment
CN107832041B (en) Method, device and equipment for making thematic page and readable storage medium
KR20160100018A (en) Apparatus and method for focusing of carmea device or an electronic device having a camera module
CN111238450A (en) Visual positioning method and device
CN110929664B (en) Image recognition method and device
CN111694660A (en) Cloud mobile phone data sending method, computer device and storage medium
CN110991520A (en) Method and device for generating training sample
US10491884B2 (en) Image processing method and electronic device supporting the same
CN112784857A (en) Model training and image processing method and device
CN211699107U (en) Settlement machine
WO2017112131A1 (en) Determining values of angular gauges
CN109815766B (en) Bar code scanning method and device, mobile terminal and readable storage medium
CN112487835B (en) Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment
US11495021B2 (en) Picture annotation method, apparatus, processing device, and system
CN117152302A (en) Method, device, equipment and storage medium for generating display image of target object
US10440283B2 (en) Electronic device and method for controlling the same
CN113486775A (en) Target tracking method, system, electronic equipment and storage medium
CN116728436A (en) Control method and control device of playing robot
CN108345812B (en) Scanning positioning method, device, equipment and system
CN111124903A (en) Element coordinate automatic testing method based on visual system and storage medium

Legal Events

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