CN112749575B - Code scanning equipment and working mode identification method, device and equipment of code scanning equipment - Google Patents

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

Info

Publication number
CN112749575B
CN112749575B CN202011636529.4A CN202011636529A CN112749575B CN 112749575 B CN112749575 B CN 112749575B CN 202011636529 A CN202011636529 A CN 202011636529A CN 112749575 B CN112749575 B CN 112749575B
Authority
CN
China
Prior art keywords
code scanning
working mode
scanning device
image information
code
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
CN202011636529.4A
Other languages
Chinese (zh)
Other versions
CN112749575A (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 CN202310281777.9A priority Critical patent/CN116402074A/en
Priority to CN202011636529.4A priority patent/CN112749575B/en
Publication of CN112749575A publication Critical patent/CN112749575A/en
Application granted granted Critical
Publication of CN112749575B publication Critical patent/CN112749575B/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/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

Abstract

The specification provides a code scanning device and a working mode identification method, device and equipment of the code scanning device, wherein a working mode identification capable of representing the working mode of the code scanning device is arranged on the code scanning device in advance, when the code scanning device is started, first frame image information collected by a camera is automatically acquired, whether the working mode identification exists is judged, if the working mode identification exists, a fixed-line working mode is determined, otherwise, an off-line working mode is adopted, the function of quickly judging the working mode of the code scanning device based on image identification is realized, the hardware structure of the code scanning device is not required to be changed, the cost of 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 device are ensured. Meanwhile, based on the identified working mode of the code scanning device, the working parameters of the code scanning device can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning device are improved.

Description

Code scanning equipment and working mode identification method, device and equipment of code scanning equipment
Technical Field
The specification belongs to the technical field of computers, and particularly relates to a code scanning device and a method, a device and equipment for identifying a working mode of the code scanning device.
Background
With the development of computer technology, collection of money can be carried out by scanning codes, or commodity information can be identified by scanning graphic codes of commodities, so that rapid transaction is realized. Code scanning needs to use code scanning equipment, some code scanning equipment may have multiple working modes, and different working modes may need code scanning equipment to provide different working modes such as: adjusting the brightness of the light supplement lamp and the positioning lamp or entering different transaction programs and the like. To the yard equipment of sweeping that has multiple mode, if can sweep the mode of yard equipment of accurate quick discernment when the yard, can quick completion sweep yard transaction.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a code scanning device and a method, an apparatus, and a device for identifying a working mode of the code scanning device, so that a cost of identifying the working mode of the code scanning device is reduced, and a code scanning efficiency of the code scanning device is improved.
In a first aspect, an embodiment of the present specification provides a method for identifying a working mode of a code scanning device, where a working mode identifier is set in the code scanning device, and the working mode identifier is set in a viewing angle range of a camera of the code scanning device when the code scanning device is in a base-line working mode, where the method includes:
when the code scanning device starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning device;
identifying whether the first frame image information comprises the working mode identification;
if the first frame of image information is identified to include the working mode identification, determining that the code scanning equipment is in the fixed-line working mode, otherwise, determining that the code scanning equipment is in an off-line 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 code scanning component is provided with a camera used for collecting image information;
the code-scanning member is detachably attachable to the base such that the code-scanning member has an on-board mode of operation attached to the base and an off-board mode of operation detached from the base;
a code scanning window is arranged on the base, and when the code scanning component is in the fixed-line 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 identification is within the visual angle range of the camera when the code scanning component is in the fixed-line working mode, and is outside the visual angle range of the camera when the code scanning component is in the off-line working mode;
sweep a yard equipment still includes 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-line working mode, otherwise, determining that the code scanning component is in an off-line working mode, and adjusting code scanning working parameters of the code scanning device based on the determined working mode.
In a third aspect, the present specification provides an apparatus for identifying an operating mode of a code scanning device, including:
sweep and be provided with the mode identification in the yard equipment, the mode identification setting is in sweep yard equipment when being in fixed telephone mode the visual angle scope of sweeping the camera of yard equipment, the device includes:
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 module is used for identifying whether the first frame of image information comprises the working mode identification or not;
a working mode determining module, configured to determine that the code scanning device is in the landline working mode if it is recognized that the first frame of image information includes the working mode identifier, and otherwise, determine that the code scanning device is in an offline 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 specification provides an operation mode identification device for 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 operation mode identification method for the code scanning device according to the first aspect.
According to the code scanning device and the method, the device and the equipment for identifying the working mode of the code scanning device, the working mode identification capable of representing the working mode of the code scanning device is arranged on the code scanning device in advance, when the code scanning device is started, the first frame of image information collected by the camera is automatically acquired, whether the working mode identification exists or not is judged, if the working mode identification exists, the working mode is determined to be a fixed-line working mode, otherwise, the working mode is an off-line working mode, the function of quickly judging the working mode of the code scanning device based on image identification is realized, the hardware structure of the code scanning device does not need to be changed, the cost of 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 device are ensured. Meanwhile, based on the identified working mode of the code scanning device, the working parameters of the code scanning device can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning device are improved.
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 flowchart of an embodiment of a method for identifying an operating mode of a code scanning device provided in an embodiment of the present specification;
FIG. 2 is a schematic structural diagram of a code scanning device in an embodiment of the present disclosure;
fig. 3 is a schematic block diagram of an embodiment of an operation mode identification device of a code scanning apparatus provided in the present specification;
fig. 4 is a block diagram of a hardware configuration of an operation mode identification server of the code scanning device in an 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.
The code scanning device is gradually a product commonly used by merchants, and generally, the code scanning device is fixed or movable, but when the code scanning device is applied to different scenes, the code scanning device may need to adopt different working modes. Such as: to receive silver-colored, sweep a yard equipment direct fixation 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, nevertheless, some scenes need sweep the graphic code acquisition commodity of a yard commodity information like: due to the fact that the shape and the size of the commodity are not constant, the code scanning device window is inconvenient to scan the codes, and the code scanning can be achieved only by moving the code scanning device. Moreover, different code scanning modes may have different requirements on the operating parameters of the code scanning device, such as: the brightness, the starting time, the flashing frequency and the like of the light supplementing lamp and the positioning lamp.
The embodiment of the specification provides a method for identifying a working mode of a code scanning device, which includes setting a working mode identifier on the code scanning device, acquiring first frame image information acquired by a camera of the code scanning device when the code scanning device starts a code scanning function, and judging whether the acquired first frame image information includes the set working mode identifier, wherein if the acquired first frame image information includes the set working mode identifier, the code scanning device is considered to be in a fixed-line working mode, and otherwise, the code scanning device is considered to be in an immediate working mode. And then, can be based on the mode of operation that determines, adjust the working parameter of sweeping a yard equipment, accomplish fast and sweep a yard work.
Fig. 1 is a schematic flowchart of an embodiment of a method for identifying an operating mode of a code scanning device provided in an embodiment of the present specification. 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 block structure of the apparatus is not limited to the execution order or the block structure shown in the embodiments or the drawings of the present 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).
Fig. 1 shows a specific embodiment of the method for identifying an operating mode of a code scanning device, which may be applied to a code scanning device or other terminals capable of receiving data of the code scanning device, where the terminal may be a computer, a tablet, a smart phone, a server, and the like, and the terminal may interact with the code scanning device.
As shown in fig. 1, the method for identifying an operating mode of a code scanning device provided in the embodiment of the present specification may include the following steps:
and 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, a code scanning device in this specification embodiment may be provided with a working mode identifier, where the working mode identifier may be some special and easily-recognized marks, and a specific form of the working mode identifier is not specifically limited in this specification embodiment. The working mode identifier may be attached to the code scanning device, or may be printed or engraved on the code scanning device in the form of inkjet or the like, which may be specifically determined according to actual use needs, and embodiments of the present specification are not specifically limited. The position set by the working mode identification is in the visual angle range of a camera in the code scanning equipment when the code scanning equipment is in the fixed-line working mode. Here, it should be noted that the code scanning device in the embodiment of the present specification may have two operation modes: the base machine working mode can be understood as a working mode that a code scanning part of the code scanning device is connected with the base part, and the off-machine working mode can be understood as a working mode that the code scanning part of the code scanning device is separated from the base part and the code scanning device is separated from the base to scan codes.
Fig. 2 is a schematic structural diagram of a code scanning device in an 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 member 2, the camera 3 is disposed on the code scanning member 2, and the code scanning member 2 is detachably attached to the base 1, so that the code scanning member 2 has an on-board operation mode attached to the base 1 and an off-board operation mode detached from the base 1;
a code scanning window 4 is arranged on the base 1, and when the code scanning component 2 is in the fixed-line 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 mark 5 is arranged in the code scanning window 4; the working mode identifier 5 is located within the view angle range of the camera 3 when the code scanning component 2 is in the base-line working mode, and is located outside the view angle range of the camera 3 when the code scanning component 2 is in the off-line 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, the base 1 can be generally placed on a desktop or the like, the code scanning component 2 can be placed on the base 1 to perform code scanning, and a user can also take the code scanning component 2 up from the base 1 to perform code scanning, that is, the code scanning component 2 can be separated from the base 1 to perform code scanning alone. A code scanning window 4 is arranged on the base 1, and when the code scanning component 2 is fixedly placed on the base 1, the camera 3 on the code scanning component 2 is located at the code scanning window 4 so as to scan a graphic code through the code scanning window to perform code scanning. In addition, as shown in fig. 2, the base 1 in the embodiment of the present specification is further provided with an operation mode indicator 5, the operation mode indicator 5 is disposed in the code scanning window 4 of the base 1, and is disposed within a range of the viewing angle θ of the camera 3 when the code scanning component 2 is fixedly placed on the base 1, so that when the code scanning device is in the base-mounted operation mode, the camera 3 can collect image information of the operation mode indicator, but when the code scanning component 2 is separated from the base 1 and is in the off-mounted operation mode, the operation mode indicator 5 is not within the range of the viewing angle θ of the camera 3, and the camera 3 cannot collect image information of the operation mode indicator.
In this specification embodiment, when the yard function of sweeping yard equipment is opened, sweep yard equipment's camera and open, begin to gather the image, can acquire the first frame image information that the camera was gathered, carry out the discernment of mode based on the image information that the camera was gathered again, can realize confirming fast and sweep yard equipment operating condition, and then can quick adjustment sweep yard equipment's working parameter, realize the function of sweeping the yard fast accuracy. For example: if the camera of the code scanning device can collect 60 frames of images within 1 second, the first frame of images in the images collected after the camera is opened can be obtained, then the identification of the working state of the code scanning device is carried out based on the obtained first frame of image information, and the purpose that the working state of the code scanning device can be determined within 1/60 second is achieved.
In some embodiments of this specification, after obtaining first frame image information acquired by a camera of the code scanning device, the method further includes:
and 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 the 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 the effective image.
In a specific implementation process, after first frame image information acquired by a camera of the code scanning device is acquired, whether the acquired first frame image information is an effective image can be determined, for example: the effectiveness 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 the image has specific identifiable content instead of a blank image, the image can be considered as an effective image, otherwise, the acquired first frame image information is not considered as an effective image, when the acquired first frame image is determined not to be an effective 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 an effective image is continuously judged, and if not, the next frame image is continuously acquired backwards to serve as the new first frame image information until the acquired first frame image information is an effective image. The effectiveness identification is carried out on the obtained image, 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 judged by mistake due to the fact that the collected image is invalid is avoided.
In some embodiments of the present description, the method further comprises:
and returning prompt information for adjusting the posture of the code scanning equipment when the acquired first frame image information is judged not to be the effective image.
In a specific implementation process, if the acquired first frame image information is judged not to be an effective image, the code scanning device is not aligned to a graphic code or a camera of the code scanning device is shielded, and the like.
And 104, identifying whether the first frame image information comprises the working mode identification.
In a specific implementation process, after first frame image information acquired by a camera of the code scanning device is acquired, image recognition may be performed on the acquired first frame image information, for example: the acquired first frame of 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 of image information comprises the image information of the preset working mode identifier or not can be inquired.
In addition, in some embodiments of the present specification, fixed weak light compensation may also be performed on a position where an operation mode identifier is set, for example: the light supplementing lamp can be used for performing weak light compensation on the working mode identification, so that the camera of the code scanning device can accurately and clearly acquire image information of the working mode identification under different scenes of weak light and strong light, and then the identification of the working mode of the code scanning device and the adjustment of working parameters can be performed quickly and accurately.
And 106, if the first frame of image information is identified to include the working mode identification, determining that the code scanning device is in the fixed-line working mode, otherwise, determining that the code scanning device is in an off-line working mode.
In a specific implementation process, the working mode identifier is arranged on a base of the code scanning device, and the arranged position is a position which can be acquired only when the code scanning device is in the base machine working mode. Therefore, if the first frame of image information includes the working mode identifier preset on the code scanning device, it may be determined that the code scanning component of the code scanning device is on the base, that is, the code scanning device may be considered to be in the on-line working mode currently, and if the first frame of image information does not include the working mode identifier preset on the code scanning device, it may be determined that the code scanning component of the code scanning device is not on the base, that is, the code scanning device may be considered to be in the off-line working mode currently.
And 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, the code scanning working parameters of the code scanning device may be adjusted based on the determined working mode, for example: code scanning working parameters of the code scanning equipment in a fixed-line working mode and code scanning working parameters of the code scanning equipment in an off-line working mode can be configured in advance, and the code scanning working parameters can be configured according to actual needs as follows: the brightness, the flashing frequency, the on or off time of the positioning lamp and the fill-in lamp, or the parameters of the camera, etc., and the embodiments of the present specification are not particularly limited.
In this embodiment of the present description, the device that determines the working mode of the code scanning device may be a terminal that is externally connected to the code scanning device and is capable of performing data processing, and after determining the working mode of the code scanning device, the terminal may send the obtained working mode of the code scanning device to a main control chip of the code scanning device, and the main control chip automatically starts corresponding code scanning working parameters based on the received working mode.
In some embodiments of this specification, the code scanning device further includes a fill-in light and a positioning light, and the code scanning operating parameters include: working parameters of a light supplement 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 device, including:
and adjusting working parameters of a light supplement lamp and a 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 supplement lamp, wherein the positioning lamp is mainly used for a user to conveniently position the position of the graphic code, so that the code scanning device can completely acquire an image of a graphic code area; the light filling lamp can provide the light source for the camera when sweeping the sign indicating number equipment and sweeping the sign indicating number to can shoot graphic code. Of course, the code scanning device may further include other components such as: a positioning lamp control chip, a fill light control chip, a main control chip, etc., and the embodiments of this specification are not particularly limited. Sweep a yard working parameter in this description embodiment can include that the landline phone mode is in the time of working mode and leaving the aircraft the working parameter of sweeping a light filling lamp, the pilot lamp of a yard equipment, can dispose the working parameter of sweeping a light filling lamp, the pilot lamp of a yard equipment under the landline phone mode respectively in advance, and sweep a light filling lamp, the working parameter of pilot lamp of a yard equipment when leaving the aircraft working mode, if: the brightness of the positioning lamp and the light supplement lamp and the like. For example: in general, in a working mode of a landline phone, in order to enable a code scanning device to scan a graphic code, a user may bring his or her graphic code close to a camera of the code scanning device as much as possible, so that the camera is close to the graphic code to be scanned. At this moment, the luminance of light filling lamp can not be too bright, and the position lamp then needs the scintillation to the suggestion user needs place the graphic code where. For the off-line working mode, generally, a user holds a code scanning component of the code scanning device to directly align the graphic code to be scanned, generally, under the condition, the user can adjust the distance between the user and the graphic code to be scanned according to the requirement, the distance is not too short, and at the moment, a light supplement lamp is required to provide an enough light source so as to clearly scan the graphic code.
Based on actual use needs, after working parameters such as brightness, starting time and flashing frequency of a light supplement lamp and a positioning lamp of the code scanning device in the fixed-line working mode and the off-line working mode are configured in advance, when the code scanning device starts a code scanning function, first frame image information collected by a camera is automatically acquired, and whether the first frame image information comprises a working mode identifier preset on the code scanning device or not is judged. If yes, the working mode is determined as the base unit working mode, and at the moment, the working parameters of the light supplement lamp and the positioning lamp in the base unit working mode which are configured in advance can be started. And if the working mode identifier preset on the code scanning device is not determined in the first frame of image information, determining the first frame of image information to be an off-line working mode, and starting working parameters of the light supplement lamp and the positioning lamp in the off-line working mode which are configured in advance. The automatic quick adjustment of working parameters of the code scanning device under different working modes is realized, and the code scanning speed and accuracy are further improved.
In some other embodiments of the present disclosure, the code scanning operation parameters include: decoding process of the code scanning device 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 device, including:
and starting the corresponding decoding process according to the determined working mode.
In a specific implementation process, the code scanning operation parameters may further include: the decoding process of the code scanning device in the fixed-line working mode and the off-line working mode can be preset according to actual needs. The decoding process can be understood as a process of decoding the scanned graphic code to obtain corresponding information. For example: the code scanning device in the general landline operating mode is usually only used for scanning the two-dimensional code to collect money, while the code scanning device in the off-line operating mode may scan the two-dimensional code or scan the barcode of the commodity to acquire the information of the commodity. Different graphic codes have different decoding modes, and based on the decoding mode, a decoding flow of the two-dimensional code with a fixed-line working mode can be configured in advance, and the type of the graphic code needs to be judged in an off-line working mode, and then the corresponding decoding flow is started.
When the code scanning device starts a code scanning function, first frame image information collected by the camera is automatically acquired, and whether the first frame image information comprises a working mode identifier preset on the code scanning device or not is judged. If yes, the two-dimension code is determined to be in the base machine working mode, at the moment, a two-dimension code decoding flow under the base machine working mode which is configured in advance can be started automatically, and two-dimension code image recognition can be carried out automatically. If the working mode identifier preset on the code scanning device is not determined in the first frame of image information, the first frame of image information is determined to be an off-line working mode, at this time, a decoding process under the off-line working mode configured in advance can be started, the type of the graphic code is judged first, and then a corresponding decoding algorithm is carried out.
The decoding processes in different working modes are configured in advance, so that the decoding can be performed quickly after the working mode of the code scanning device is identified quickly, and particularly under the condition that one working mode is only one decoding process, the fixed-line 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 device is improved.
According to the working mode identification method of the code scanning device, the working mode identification capable of representing the working mode of the code scanning device is arranged on the code scanning device in advance, when the code scanning device is started, the first frame of image information collected by the camera is automatically acquired, whether the working mode identification exists is judged, if the working mode identification exists, the working mode is determined to be a fixed-line working mode, otherwise, the working mode is an off-line working mode, the function of quickly judging the working mode of the code scanning device based on image identification is achieved, the hardware structure of the code scanning device does not need to be changed, the cost of 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 device are ensured. Simultaneously, based on the mode of sweeping a yard equipment that discerns, can automatic adjustment sweep a yard equipment's operating parameter, improved sweep yard equipment sweep yard work efficiency and accuracy.
Some embodiments of this description also provide a yard scanning device, as shown in fig. 2, the yard scanning device in this description embodiment includes two parts, namely a base 1 and a yard scanning component 2, the base 1 can be generally placed on a desktop or the like, the yard scanning component 2 can be placed on the base 1 to perform yard scanning, and a user can also take up the yard scanning component 2 from the base 1 to perform yard scanning, that is, the yard scanning component 2 can also be separated from the base 1 to perform yard scanning alone. A code scanning window 4 is arranged on the base 1, and when the code scanning component 2 is fixedly placed on the base 1, a camera on the code scanning component 2 is located at the code scanning window 4 so as to scan a graphic code through the code scanning window. In addition, as shown in fig. 2, the base 1 in the embodiment of the present specification is further provided with an operation mode indicator 5, the operation mode indicator 5 is disposed in the code scanning window 4 of the base 1, and is disposed within a range of the viewing angle θ of the camera 3 when the code scanning component 2 is fixedly placed on the base 1, so that when the code scanning device is in the base-mounted operation mode, the camera 3 can collect image information of the operation mode indicator, but when the code scanning component 2 is separated from the base 1 and is in the off-mounted operation mode, the operation mode indicator 5 is not within the range of the viewing angle θ of the camera 3, and the camera 3 cannot collect image information of the operation mode indicator.
In addition, in some embodiments of the present specification, the code scanning apparatus may further include: a control chip, the control chip to:
when the code scanning device starts a code scanning function, acquiring first frame image information collected by the camera, identifying whether the first frame image information comprises the working mode identification, if so, determining that the code scanning component is placed on the base, wherein the code scanning device is in a fixed-line working mode, otherwise, determining that the code scanning component is separated from the base, and the code scanning device is in an off-line working mode, and adjusting code scanning working parameters of the code scanning device based on the determined working mode.
In a specific implementation process, the code scanning device may further include a control chip, and the control chip may control the code scanning device to perform code scanning operation. When the code scanning function of the code scanning device is started, the control chip can control the camera of the code scanning device to be opened, start to collect images and acquire first frame image information collected by the camera. The manner of acquiring the first frame image information may refer to the description of the above embodiments, which is not described herein again. 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 identifier. 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 is currently in the base machine working mode, and 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 not on the base, that is, the code scanning device is currently in the off-machine working mode. After determining the working mode, the main control chip may automatically start the corresponding code scanning working parameter, and the specific content of the code scanning working parameter may refer to the description of the above embodiment, which is not described herein again.
According to the code scanning device provided by the embodiment of the specification, the working mode identifier is arranged in the code scanning window of the base, so that the working mode identifier can be scanned when a code scanning component of the code scanning device works on the base, and the working mode identifier cannot be scanned when the code scanning component and the base are separated and work independently. And then realized sweeping yard equipment self through the discernment of image recognition technology to sweeping yard equipment operating condition, compare in the mode through mechanical structure discernment equipment operating condition, sweep yard equipment in this description embodiment and need not change hardware structure, reduced the cost of working pattern discernment, avoided hardware maintenance and damage because of using for a long time and leading to. And no requirement is made on the structure of the code scanning equipment, no requirement is made on the working environment, the influence of the working environment on the identification of the working state is avoided, and the accuracy and the stability of the identification of the working mode of the code scanning equipment are ensured. Simultaneously, based on the mode of sweeping a yard equipment that discerns, can automatic adjustment sweep a yard equipment's operating parameter, improved sweep yard equipment sweep yard work efficiency and accuracy.
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 above method for identifying the operating mode of the code scanning device, one or more embodiments of the present specification further provide a device for identifying the operating mode 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 conception, embodiments of the present specification provide an apparatus as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, reference may be made to the implementation of the foregoing method for the specific apparatus in the embodiment of the present specification, and repeated descriptions are omitted. 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. 3 is a schematic block structure diagram of an embodiment of an operation mode identification device of a code scanning apparatus provided in this specification, where the device may perform data communication with the code scanning apparatus, the code scanning apparatus is provided with an operation mode identifier, and the operation mode identifier is set within a view angle range of a camera of the code scanning apparatus when the code scanning apparatus is in a base unit operation mode, as shown in fig. 3, the operation mode identification device of the code scanning apparatus provided in this 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 identifier identifying module 32, configured to identify whether the first frame of image information includes the working mode identifier;
a working mode determining module 33, configured to determine that the code scanning device is in the landline working mode if it is recognized that the first frame of image information includes the working mode identifier, and otherwise, determine that the code scanning device is in an offline working mode;
and the working parameter adjusting module 34 is configured to adjust a code scanning working parameter of the code scanning device based on the determined working mode.
The working mode identification device for the code scanning equipment, provided by the embodiment of the specification, is characterized in that a working mode identifier 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 acquired, whether the working mode identifier exists or not is judged, if the working mode identifier exists, the working mode is determined to be a fixed-line working mode, otherwise, the working mode is an off-line working mode, the function of quickly judging the working mode of the code scanning equipment based on image identification is realized, the hardware structure of the code scanning equipment does not need to be changed, the cost of working mode identification is reduced, meanwhile, the device is not influenced by the external environment, 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 device, the working parameters of the code scanning device can be automatically adjusted, and the code scanning working efficiency and accuracy of the code scanning device are improved.
It should be noted that the above-mentioned apparatus 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.
An embodiment of the present specification further provides a device for identifying a working mode of a code scanning device, including: at least one processor and a memory for storing processor-executable instructions, wherein the processor implements the method for identifying the operating mode of the code scanning device of the above embodiment when executing the instructions, such as:
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-line working mode, and the method comprises the following steps:
when the code scanning device starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning device;
identifying whether the first frame image information comprises the working mode identification;
if the first frame of image information is identified to include the working mode identification, determining that the code scanning equipment is in the fixed-line working mode, otherwise, determining that the code scanning equipment is in an off-line 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 embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The working mode recognition device 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 detection system for collating difference data may comprise at least one processor and a memory storing computer executable instructions which 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 by the embodiments of the present specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking the example of the operation on the server, fig. 4 is a hardware structure block diagram of the operation mode identification server of the code scanning device in an embodiment of the present specification, and the computer terminal may be the operation mode identification server of the code scanning device or the operation mode identification device of the code scanning device in the above embodiment. The server 10 as shown in fig. 4 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. 4 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. 4, 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. 4, 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 operation mode identification method of the code scanning device in the embodiment of the present specification, and the processor 100 executes various functional applications and resource data updates by executing 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 through 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:
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-line working mode, and the method comprises the following steps:
when the code scanning device starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning device;
identifying whether the first frame image information comprises the working mode identification;
if the first frame of image information is identified to include the working mode identification, determining that the code scanning equipment is in the fixed-line working mode, otherwise, determining that the code scanning equipment is in an off-line 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 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 method or apparatus for identifying the operating mode 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 in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in 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 the 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 modules. 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 manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development, but the original code before compiling is also written in a specific Programming Language, which is called Hardware Description Language (HDL), and the HDL is not only one kind but many kinds, such as abll (Advanced boot Expression Language), AHDL (alternate hard Description Language), traffic, CUPL (computer universal Programming Language), HDCal (Java hard Description Language), lava, lola, HDL, PALASM, software, rhydl (Hardware Description Language), and vhul-Language (vhyg-Language), which is currently used in the field. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using 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, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, 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 for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, 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 considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure 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, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or 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-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 approaches. 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 the device or the end product in practice 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, 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 any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and 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 a module implementing the same function may be implemented by a combination of multiple 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 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 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 present description 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 can 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 merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present 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 (10)

1. A working mode identification method of code scanning equipment is characterized in that the code scanning equipment is provided with a working mode identification, the working mode identification is arranged in a visual angle range of a camera of the code scanning equipment when the code scanning equipment is in a fixed-line working mode, and the code scanning equipment further comprises a positioning lamp and a light supplementing lamp; the positioning lamp is used for prompting a user to position the graphic code; the light supplement lamp is used for providing a light source for the camera; the method comprises the following steps:
when the code scanning device starts a code scanning function, acquiring first frame image information acquired by a camera of the code scanning device;
identifying whether the first frame image information comprises the working mode identification;
if the first frame of image information is identified to include the working mode identification, determining that the code scanning equipment is in the fixed-line working mode, otherwise, determining that the code scanning equipment is in an off-line working mode;
adjusting code scanning working parameters of the code scanning equipment based on the determined working mode; the code scanning working parameters comprise: working parameters of a light supplement lamp and a positioning lamp of the code scanning equipment in a fixed-line working mode and an off-line working mode; the positioning lamp flickers in the base machine working mode, and the light supplement lamp has different brightness in different working modes.
2. The method according to claim 1, after acquiring the first frame of image information collected by the camera of the code scanning device, the method further comprises:
and 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 the 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 the effective image.
3. The method of claim 2, further comprising:
and returning prompt information for adjusting the posture of the code scanning equipment when the acquired first frame image information is judged not to be the effective image.
4. The method of claim 1, wherein the first and second light sources are selected from the group consisting of a red light source, a green light source, and a blue light source,
based on the determined working mode, adjusting the code scanning working parameters of the code scanning device, including:
and adjusting working parameters of a light supplement lamp and a positioning lamp of the code scanning device according to the determined working mode.
5. The method of claim 1, the code scanning operational parameters comprising: decoding process of the code scanning device 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 device, including:
and starting the corresponding decoding process according to the determined working mode.
6. The method of claim 1, further comprising:
and when the code scanning device starts a code scanning function, performing weak light compensation on the position of the working mode identifier.
7. The method of any one of claims 1-6, the code scanning device comprising a base and a code scanning member, the camera disposed on the code scanning member, the code scanning member detachably attachable to the base, such that the code scanning member has an on-board mode of operation attached to the base and an off-board mode of operation detached from the base;
a code scanning window is arranged on the base, and when the code scanning component is in the fixed-line telephone working mode, the camera corresponds to the code scanning window and scans the graphic code through the code scanning window;
a working mode identifier is arranged in the code scanning window; the working mode identification is located within the visual angle range of the camera when the code scanning component is in the fixed-line working mode, and is located outside the visual angle range of the camera when the code scanning component is in the off-line working mode.
8. A code scanning apparatus comprising: the device comprises a base, a code scanning component, a positioning lamp and a light supplementing lamp, wherein a camera for collecting image information is arranged on the code scanning component; the positioning lamp is used for prompting a user to position the graphic code; the light supplement lamp is used for providing a light source for the camera;
the code-scanning member is detachably attached to the base such that the code-scanning member has an on-board mode of operation attached to the base and an off-board mode of operation detached from the base;
a code scanning window is arranged on the base, and when the code scanning component is in the fixed-line telephone working mode, the camera corresponds to the code scanning window and scans the graphic code through the code scanning window;
a working mode identifier is arranged in the code scanning window; the working mode identification is within the visual angle range of the camera when the code scanning component is in the fixed-line working mode, and is outside the visual angle range of the camera when the code scanning component is in the off-line working mode;
sweep a yard equipment still includes 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-line working mode, otherwise, determining that the code scanning component is in an off-line working mode, and adjusting code scanning working parameters of the code scanning device based on the determined working mode; the code scanning working parameters comprise: working parameters of a light supplement lamp and a positioning lamp of the code scanning equipment in a fixed-line working mode and an off-line working mode; the positioning lamp flickers in the base machine working mode, and the light supplement lamp has different brightness in different working modes.
9. A working mode identification device of code scanning equipment is provided, wherein a working mode identifier is arranged in the code scanning equipment, the working mode identifier is arranged in a visual angle range of a camera of the code scanning equipment when the code scanning equipment is in a fixed-line working mode, and the code scanning equipment further comprises a positioning lamp and a light supplementing lamp; the positioning lamp is used for prompting a user to position the graphic code; the light supplement lamp is used for providing a light source for the camera; 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 module is used for identifying whether the first frame of image information comprises the working mode identification;
a working mode determining module, configured to determine that the code scanning device is in the landline working mode if it is recognized that the first frame of image information includes the working mode identifier, and otherwise, determine that the code scanning device is in an offline 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; the code scanning working parameters comprise: working parameters of a light supplement lamp and a positioning lamp of the code scanning equipment in a fixed-line working mode and an off-line working mode; the positioning lamp flickers in the base machine working mode, and the light supplement lamp has different brightness in different working modes.
10. An operation mode recognition device of a code scanning device, comprising: at least one processor and a memory for storing processor-executable instructions, the processor implementing the method of any one of claims 1-7 when executing the instructions.
CN202011636529.4A 2020-12-31 2020-12-31 Code scanning equipment and working mode identification method, device and equipment of code scanning equipment Active CN112749575B (en)

Priority Applications (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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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 Child Applications (1)

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

Publications (2)

Publication Number Publication Date
CN112749575A CN112749575A (en) 2021-05-04
CN112749575B true CN112749575B (en) 2023-02-17

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 Before (1)

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

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

Citations (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
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
CN108833786A (en) * 2018-06-29 2018-11-16 联想(北京)有限公司 One mode control method and electronic equipment
CN109426747A (en) * 2017-08-23 2019-03-05 上海商米科技有限公司 Barcode scanning terminal and its barcode scanning mode switching method
CN109784113A (en) * 2018-12-17 2019-05-21 深圳盈达信息科技有限公司 Scanning means and its barcode scanning method
CN211699107U (en) * 2020-04-16 2020-10-16 支付宝(杭州)信息技术有限公司 Settlement machine
CN111913555A (en) * 2019-05-09 2020-11-10 北京小米移动软件有限公司 Control method and control device for application program and computer readable storage medium

Patent Citations (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
CN108833786A (en) * 2018-06-29 2018-11-16 联想(北京)有限公司 One 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
CN116402074A (en) 2023-07-07
CN112749575A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN112749575B (en) Code scanning equipment and working mode identification method, device and equipment of code scanning equipment
CN109614983B (en) Training data generation method, device and system
CN103201769A (en) Image processing device, image processing method, program, integrated circuit
CN112801229A (en) Training method and device for recognition model
EP3579146A1 (en) Imaging processing method and device
CN110956100A (en) High-precision map generation method and device, electronic equipment and storage medium
CN111238450A (en) Visual positioning method and device
CN105121620A (en) Image processing device, image processing method, program, and storage medium
CN113642620B (en) Obstacle detection model training and obstacle detection method and device
CN104966300A (en) Bearing roller image detection system, method and image detection device
CN111832579B (en) Map interest point data processing method and device, electronic equipment and readable medium
CN110633620A (en) Pointer instrument scale identification method and electronic equipment
CN115470109A (en) Automatic testing method and device for automobile instrument
US11495021B2 (en) Picture annotation method, apparatus, processing device, and system
CN112487835A (en) Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment
CN113780201A (en) Hand image processing method and device, equipment and medium
CN113486775A (en) Target tracking method, system, electronic equipment and storage medium
CN116728436A (en) Control method and control device of playing robot
CN112362084A (en) Data calibration method, device and system
CN116843665A (en) Camera module gluing condition judging method, device, equipment and storage medium
CN114519739A (en) Direction positioning method and device based on recognition device and storage medium
CN115661240A (en) Position information determining method and device, electronic equipment and storage medium
CN111426299B (en) Method and device for ranging based on depth of field of target object
CN114332189A (en) High-precision map construction method and device, storage medium and electronic equipment
CN110602378B (en) Processing method, device and equipment for images shot by camera

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