CN117332798A - Bar code scanning method, module, storage medium and bar code scanner - Google Patents
Bar code scanning method, module, storage medium and bar code scanner Download PDFInfo
- Publication number
- CN117332798A CN117332798A CN202311391677.8A CN202311391677A CN117332798A CN 117332798 A CN117332798 A CN 117332798A CN 202311391677 A CN202311391677 A CN 202311391677A CN 117332798 A CN117332798 A CN 117332798A
- Authority
- CN
- China
- Prior art keywords
- target object
- barcode
- distance
- bar code
- scanning
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods 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/10792—Special measures in relation to the object to be scanned
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10198—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves setting parameters for the interrogator, e.g. programming parameters and operating modes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Optical Radar Systems And Details Thereof (AREA)
Abstract
本发明涉及条码扫描技术领域,尤指一种条码扫描方法、模块、存储介质及扫码器,包括以下步骤:通过激光束对仓库中的目标物进行扫描,并捕捉目标物的条码图像;对所述条码图像进行处理和分析,以识别条码中的编码信息;计算扫码器和目标物之间的相对位置,并得到扫码器与目标物之间的距离;根据目标物的大小和所述扫码器与目标物之间的距离,自适应调整扫描范围和参数。本发明所述条码扫描方法结合了激光扫描、图像处理和分析,能够高效准确地扫描、识别目标物的条码信息,并且具备自适应调整功能,能够适应不同目标物的大小和距离,提高扫描效果和识别的准确性。
The invention relates to the field of barcode scanning technology, and in particular refers to a barcode scanning method, module, storage medium and barcode scanner. The invention includes the following steps: scanning a target object in a warehouse with a laser beam and capturing a barcode image of the target object; The barcode image is processed and analyzed to identify the encoded information in the barcode; the relative position between the scanner and the target object is calculated, and the distance between the scanner and the target object is obtained; according to the size of the target object and the According to the distance between the scanner and the target, the scanning range and parameters are adaptively adjusted. The barcode scanning method of the present invention combines laser scanning, image processing and analysis, can efficiently and accurately scan and identify the barcode information of the target object, and has an adaptive adjustment function, which can adapt to the size and distance of different target objects and improve the scanning effect. and identification accuracy.
Description
技术领域Technical field
本发明涉及条码扫描技术领域,尤指一种条码扫描方法、模块、存储介质及扫码器。The invention relates to the field of barcode scanning technology, and in particular, to a barcode scanning method, module, storage medium and barcode scanner.
背景技术Background technique
传统的仓库管理,虽然使用了计算机,但数据还是采用先纸张记录、再手工输入计算机的方式进行采集和统计整理。这不仅造成大量的人力资源浪费,而且由于人为的因素,数据录入速度慢、准确率低。Although computers are used in traditional warehouse management, data are still recorded on paper and then manually entered into the computer for collection and statistical organization. This not only causes a lot of waste of human resources, but also results in slow data entry and low accuracy due to human factors.
随着企业规模的不断发展,仓库管理的物资种类及数量在不断增加、出入库频率剧增,仓库管理作业也已十分复杂和多样化,传统的人工仓库作业模式和数据采集方式劳动力成本高,工作效率低且准确率低,已难以满足仓库管理的快速、准确要求,企业不能及时准确连接库存数据,严重影响了企业的运转效率。With the continuous development of enterprise scale, the types and quantities of materials managed by warehouses are increasing, and the frequency of incoming and outgoing warehouses has increased dramatically. Warehouse management operations have also become very complex and diversified. The traditional manual warehouse operation mode and data collection method have high labor costs. Low work efficiency and low accuracy have made it difficult to meet the fast and accurate requirements of warehouse management. Enterprises cannot accurately connect inventory data in a timely manner, which seriously affects the operational efficiency of the enterprise.
在大型仓库中使用条码扫描器对货物进行扫描是一种重要的手段,而现有的条码扫描器不能判断条码扫描器与条码之间的距离是否在有效距离及景深范围内,并进行相应的调节,扫描效率低。Using a barcode scanner to scan goods is an important means in large warehouses, but the existing barcode scanner cannot determine whether the distance between the barcode scanner and the barcode is within the effective distance and depth of field range, and perform corresponding Adjustment, scanning efficiency is low.
发明内容Contents of the invention
为解决上述问题,本发明的主要目的在于提供一种条码扫描方法、模块、存储介质及扫码器,其结合了激光扫描、图像处理和分析,能够高效准确地扫描、识别目标物的条码信息,并且具备自适应调整功能,能够适应不同目标物的大小和距离,提高扫描效果和识别的准确性。In order to solve the above problems, the main purpose of the present invention is to provide a barcode scanning method, module, storage medium and barcode scanner, which combines laser scanning, image processing and analysis, and can efficiently and accurately scan and identify the barcode information of the target object. , and has an adaptive adjustment function that can adapt to the size and distance of different targets, improving the scanning effect and recognition accuracy.
为实现上述目的,本发明采用的技术方案是:In order to achieve the above objects, the technical solution adopted by the present invention is:
一种条码扫描方法,包括以下步骤:A barcode scanning method includes the following steps:
通过激光束对仓库中的目标物进行扫描,并捕捉目标物的条码图像;Scan the target objects in the warehouse with a laser beam and capture the barcode image of the target object;
对所述条码图像进行处理和分析,以识别条码中的编码信息;Process and analyze the barcode image to identify the encoded information in the barcode;
计算扫码器和目标物之间的相对位置,并得到扫码器与目标物之间的距离;Calculate the relative position between the scanner and the target object, and obtain the distance between the scanner and the target object;
根据目标物的大小和所述扫码器与目标物之间的距离,自适应调整扫描范围和参数。The scanning range and parameters are adaptively adjusted according to the size of the target and the distance between the scanner and the target.
进一步,所述对所述条码图像进行处理和分析,具体包括以下步骤:Further, processing and analyzing the barcode image specifically includes the following steps:
对所述条码图像进行预处理,包括噪声去除和图像增强;Preprocess the barcode image, including noise removal and image enhancement;
通过条码识别算法对预处理后的条码图像进行解码,提取出条码中的编码信息。The preprocessed barcode image is decoded through the barcode recognition algorithm and the encoded information in the barcode is extracted.
进一步,所述计算扫码器和目标物之间的相对位置,并得到扫码器与目标物之间的距离,具体包括:Further, the calculation of the relative position between the code scanner and the target object, and obtaining the distance between the code scanner and the target object specifically includes:
在激光束发射器和激光束接收器之间通过测距器建立一条测距光路,当激光束照射到目标物上后,激光束接收器接收反射回来的激光信号,通过测距器计算出扫码器与目标物之间的距离。A ranging optical path is established between the laser beam emitter and the laser beam receiver through a range finder. When the laser beam irradiates the target, the laser beam receiver receives the reflected laser signal and calculates the scan value through the range finder. The distance between the encoder and the target.
进一步,所述根据目标物的大小和所述扫码器与目标物之间的距离,自适应调整扫描范围和参数,具体包括:Further, the scanning range and parameters are adaptively adjusted according to the size of the target and the distance between the scanner and the target, specifically including:
如果目标物的面积大于预设面积值和/或与扫码器的距离小于预设距离值,则增加扫描范围;If the area of the target is greater than the preset area value and/or the distance from the scanner is less than the preset distance value, increase the scanning range;
如果目标物的面积小于预设面积值和/或与扫码器的距离大于预设距离值,则减小扫描范围。If the area of the target is less than the preset area value and/or the distance from the scanner is greater than the preset distance value, the scanning range is reduced.
进一步,所述激光束中的激光采用可见光波段或近红外波段的激光。Further, the laser in the laser beam adopts laser in the visible light band or near-infrared band.
进一步,所述条码包括一维条码和二维条码。Further, the barcode includes one-dimensional barcode and two-dimensional barcode.
一种条码扫描模块,包括:程序,所述程序包括用于执行如以上所述的条码扫描方法。A barcode scanning module includes: a program, the program is configured to execute the barcode scanning method as described above.
进一步,所述条码扫描模块包括:处理器和存储器,其中所述程序被存储在所述存储器中,并且被配置成由处理器执行。Further, the barcode scanning module includes: a processor and a memory, wherein the program is stored in the memory and configured to be executed by the processor.
一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行如以上所述的条码扫描方法。A storage medium has a computer program stored thereon, and the computer program is used by a processor to execute the barcode scanning method as described above.
一种扫码器,所述扫码器用于执行如以上所述的条码扫描方法。A code scanner is used to perform the barcode scanning method as described above.
本发明的有益效果在于:The beneficial effects of the present invention are:
本发明通过激光束对目标物进行扫描,可以快速捕捉目标物的条码图像,提高扫描效率,并且对条码图像进行处理和分析,能够准确地识别条码中的编码信息。通过计算扫码器和目标物之间的相对位置,可以确定扫码器与目标物之间的距离。这一步骤可以帮助调整扫码范围和参数,从而更好地适应不同大小的目标物。根据目标物的大小和扫码器与目标物之间的距离,可以自动调整扫描范围和参数。这样可以确保在不同情况下能够得到清晰、准确的条码图像,提高识别的成功率。总之,本发明所述条码扫描方法结合了激光扫描、图像处理和分析,能够高效准确地扫描、识别目标物的条码信息,并且具备自适应调整功能,能够适应不同目标物的大小和距离,提高扫描效果和识别的准确性。The invention scans the target object with a laser beam, can quickly capture the barcode image of the target object, improves the scanning efficiency, processes and analyzes the barcode image, and can accurately identify the encoding information in the barcode. By calculating the relative position between the scanner and the target, the distance between the scanner and the target can be determined. This step can help adjust the scanning range and parameters to better adapt to targets of different sizes. The scanning range and parameters can be automatically adjusted according to the size of the target and the distance between the scanner and the target. This ensures that clear and accurate barcode images can be obtained under different circumstances and improves the success rate of recognition. In short, the barcode scanning method of the present invention combines laser scanning, image processing and analysis, can efficiently and accurately scan and identify the barcode information of the target object, and has an adaptive adjustment function, which can adapt to the size and distance of different target objects, improve Scanning effect and recognition accuracy.
附图说明Description of drawings
图1是本发明所述条码扫描方法的流程图。Figure 1 is a flow chart of the barcode scanning method of the present invention.
具体实施方式Detailed ways
下面,结合附图以及具体实施方式,对本发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。Below, the present invention will be further described with reference to the accompanying drawings and specific embodiments. It should be noted that, on the premise that there is no conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments. .
请参阅图1所示,本发明的主要目的在于提供一种条码扫描方法、模块、存储介质及扫码器,其能够适应不同目标物的大小和距离,提高扫描效果和识别的准确性。Please refer to Figure 1. The main purpose of the present invention is to provide a barcode scanning method, module, storage medium and barcode scanner that can adapt to the size and distance of different targets and improve the scanning effect and recognition accuracy.
需要说明的是,扫码器,又称为条码阅读器、条码扫描枪、条形码扫描器、条形码扫描枪及条形码阅读器。它是用于读取条码所包含信息的阅读设备,利用光学原理,把条形码的内容解码后通过数据线或者无线的方式传输到电脑或者别的设备。扫码器广泛应用于商业POS收银系统、快递、仓储、物流、图书、医药等多个领域的需求。It should be noted that a barcode scanner is also called a barcode reader, a barcode scanner, a barcode scanner, a barcode scanner and a barcode reader. It is a reading device used to read the information contained in barcodes. It uses optical principles to decode the content of the barcode and then transmit it to a computer or other device through a data cable or wirelessly. QR code scanners are widely used in commercial POS cashier systems, express delivery, warehousing, logistics, books, medicine and other fields.
本发明实施例1提供一种条码扫描方法,包括以下步骤:Embodiment 1 of the present invention provides a barcode scanning method, which includes the following steps:
通过激光束对仓库中的目标物进行扫描,并捕捉目标物的条码图像;具体为:首先,将激光束发射器安装在扫描器上,并确保激光束具有足够的功率和合适的波长。然后,使用激光束对目标物进行扫描,当激光束照射到目标物上时,利用光散射原理将散射光聚焦到光电二极管上,生成条码图像。Scan the target object in the warehouse through the laser beam and capture the barcode image of the target object; specifically: first, install the laser beam emitter on the scanner, and ensure that the laser beam has sufficient power and a suitable wavelength. Then, the laser beam is used to scan the target object. When the laser beam irradiates the target object, the principle of light scattering is used to focus the scattered light onto the photodiode to generate a barcode image.
其中,所述激光束中的激光采用可见光波段(400-700纳米)或近红外波段(700-1500纳米)的激光。需要强调的是,通过使用激光束扫描目标物,可以实现高精度的条码图像捕捉。激光束可以提供较高的分辨率和清晰度,从而减少解码错误的可能性。采用可见光波段或近红外波段的激光可以根据不同的目标物属性和工作环境选择合适的波段进行扫描。可见光波段适用于大多数物体,而近红外波段适用于具有特殊表面属性或受光干扰较大的物体。采用激光束扫描目标物可以减少光线环境对扫描的影响。激光束的狭窄和聚焦性质可以减少背景光的干扰,提高图像质量和解码准确性。这种条码扫描方法具有高精度、多波段选择、快速扫描和抗干扰能力强等优点;可应用于仓库管理及条码识别等领域,提高工作效率和准确性。Wherein, the laser in the laser beam adopts laser in the visible light band (400-700 nanometers) or near-infrared band (700-1500 nanometers). It should be emphasized that by using a laser beam to scan the target, high-precision barcode image capture can be achieved. Laser beams provide higher resolution and clarity, reducing the chance of decoding errors. Using lasers in the visible light band or near-infrared band, the appropriate waveband can be selected for scanning according to different target object properties and working environment. The visible light band is suitable for most objects, while the near-infrared band is suitable for objects with special surface properties or greater light interference. Using a laser beam to scan the target can reduce the impact of the light environment on scanning. The narrow and focused nature of the laser beam reduces interference from background light, improving image quality and decoding accuracy. This barcode scanning method has the advantages of high precision, multi-band selection, fast scanning and strong anti-interference ability; it can be used in warehouse management and barcode recognition and other fields to improve work efficiency and accuracy.
其中,所述条码包括一维条码和二维条码。Wherein, the barcode includes one-dimensional barcode and two-dimensional barcode.
对所述条码图像进行处理和分析,以识别条码中的编码信息;具体为:对于捕捉到的条码图像,可以使用图像处理算法来进行处理和分析。首先,需要对图像进行预处理,包括噪声去除、图像增强等步骤。然后,通过条码识别算法,对处理后的图像进行解码,提取出条码中的编码信息。The barcode image is processed and analyzed to identify the encoded information in the barcode; specifically: the captured barcode image can be processed and analyzed using an image processing algorithm. First, the image needs to be preprocessed, including noise removal, image enhancement and other steps. Then, the processed image is decoded through the barcode recognition algorithm and the encoded information in the barcode is extracted.
计算扫码器和目标物之间的相对位置,并得到扫码器与目标物之间的距离;具体为:通过使用激光束的测距功能,可以确定扫描器与目标物之间的距离。激光束发射器和接收器之间通过测距器建立起了一条测距光路,当激光束照射到目标物上时,接收器接收到反射回来的激光信号,通过测距器可以计算出扫描器与目标物之间的距离。Calculate the relative position between the scanner and the target object, and obtain the distance between the scanner and the target object; specifically: by using the ranging function of the laser beam, the distance between the scanner and the target object can be determined. A ranging optical path is established between the laser beam transmitter and the receiver through a range finder. When the laser beam irradiates the target, the receiver receives the reflected laser signal, and the range finder can calculate the scanner The distance to the target.
根据目标物的大小和所述扫码器与目标物之间的距离,自适应调整扫描范围和参数,具体为:根据目标物的大小和与扫描器的距离,可以根据需要进行自适应调整扫描范围和参数。例如,如果目标物较大且与扫描器的距离较近,则可以增加扫描范围,以保证完整捕捉到目标物的条码图像。相反,如果目标物较小或与扫描器的距离较远,则可以减小扫描范围,以提高扫描的准确性和效率。According to the size of the target and the distance between the scanner and the target, the scanning range and parameters are adaptively adjusted. Specifically: according to the size of the target and the distance from the scanner, the scanning can be adaptively adjusted as needed. scope and parameters. For example, if the target is larger and closer to the scanner, the scanning range can be increased to ensure that the barcode image of the target is completely captured. Conversely, if the target is smaller or farther away from the scanner, the scanning range can be reduced to improve scanning accuracy and efficiency.
在上述方案中,通过激光束扫描、图像处理和测距功能,可以实现对仓库中目标物的远距离扫描,并通过识别条码中的编码信息进行自适应调整扫描范围和参数,以满足不同目标物的需求。具体技术效果如下:In the above solution, through laser beam scanning, image processing and ranging functions, long-distance scanning of targets in the warehouse can be achieved, and the scanning range and parameters can be adaptively adjusted by identifying the encoded information in the barcode to meet different goals. material needs. The specific technical effects are as follows:
1.高效准确的扫描:通过激光束对目标物进行扫描,可以快速捕捉目标物的条码图像,提高扫描效率,并且对条码图像进行处理和分析,能够准确地识别条码中的编码信息。1. Efficient and accurate scanning: Scanning the target object with a laser beam can quickly capture the barcode image of the target object, improve scanning efficiency, and process and analyze the barcode image to accurately identify the encoded information in the barcode.
2.相对位置计算:通过计算扫码器和目标物之间的相对位置,可以确定扫码器与目标物之间的距离。这一步骤可以帮助调整扫码范围和参数,从而更好地适应不同大小的目标物。2. Relative position calculation: By calculating the relative position between the scanner and the target, the distance between the scanner and the target can be determined. This step can help adjust the scanning range and parameters to better adapt to targets of different sizes.
3.自适应调整扫描范围和参数:根据目标物的大小和扫码器与目标物之间的距离,可以自动调整扫描范围和参数。这样可以确保在不同情况下能够得到清晰、准确的条码图像,提高识别的成功率。3. Adaptive adjustment of scanning range and parameters: The scanning range and parameters can be automatically adjusted according to the size of the target and the distance between the scanner and the target. This ensures that clear and accurate barcode images can be obtained under different circumstances and improves the success rate of recognition.
总之,本申请所述条码扫描方法结合了激光扫描、图像处理和分析,能够高效准确地扫描、识别目标物的条码信息,并且具备自适应调整功能,能够适应不同目标物的大小和距离,提高扫描效果和识别的准确性。In short, the barcode scanning method described in this application combines laser scanning, image processing and analysis, can efficiently and accurately scan and identify the barcode information of the target object, and has an adaptive adjustment function, which can adapt to the size and distance of different targets, improve Scanning effect and recognition accuracy.
本实施例所述对所述条码图像进行处理和分析,具体包括以下步骤:The processing and analysis of the barcode image described in this embodiment specifically includes the following steps:
对所述条码图像进行预处理,包括噪声去除和图像增强;Preprocess the barcode image, including noise removal and image enhancement;
通过条码识别算法对预处理后的条码图像进行解码,提取出条码中的编码信息。The preprocessed barcode image is decoded through the barcode recognition algorithm and the encoded information in the barcode is extracted.
在上述步骤中,通过对条码图像进行噪声去除和图像增强处理,可以提高条码识别算法的准确性和鲁棒性。噪声去除可以消除图像中的干扰点或者其他不相关的像素,从而减少识别误差的可能性。图像增强可以改善图像的对比度、亮度、清晰度等方面,使得条码更加清晰可辨,有利于后续解码过程的进行。经过预处理后的条码图像被输入到条码识别算法中,通过解码的过程可以提取出条码中的编码信息。条码识别算法是一种模式识别技术,通过匹配图像中的特征与已知的条码编码规则进行匹配,从而确定条码的编码信息。具有解码准确性高和速度快的优点。总体而言,通过图像预处理和条码解码两个步骤,实现了对条码图像中编码信息的提取。通过噪声去除和图像增强等预处理方法,可以提高识别算法的准确性和鲁棒性;而条码解码算法则可以实现对条码图像中的编码信息的有效提取。适合于大仓库的大物品、超远距离(10-20米)的扫码。In the above steps, by performing noise removal and image enhancement processing on the barcode image, the accuracy and robustness of the barcode recognition algorithm can be improved. Noise removal can eliminate interference points or other irrelevant pixels in the image, thereby reducing the possibility of recognition errors. Image enhancement can improve the contrast, brightness, clarity and other aspects of the image, making the barcode more clear and legible, which is beneficial to the subsequent decoding process. The preprocessed barcode image is input into the barcode recognition algorithm, and the encoded information in the barcode can be extracted through the decoding process. The barcode recognition algorithm is a pattern recognition technology that determines the encoding information of the barcode by matching features in the image with known barcode encoding rules. It has the advantages of high decoding accuracy and fast speed. In general, through the two steps of image preprocessing and barcode decoding, the encoding information in the barcode image is extracted. The accuracy and robustness of the recognition algorithm can be improved through pre-processing methods such as noise removal and image enhancement; while the barcode decoding algorithm can effectively extract the encoding information in the barcode image. Suitable for scanning large items in large warehouses and ultra-long distance (10-20 meters).
本实施例所述计算扫码器和目标物之间的相对位置,并得到扫码器与目标物之间的距离,具体包括:In this embodiment, calculating the relative position between the code scanner and the target object, and obtaining the distance between the code scanner and the target object specifically includes:
在激光束发射器和激光束接收器之间通过测距器建立一条测距光路,当激光束照射到目标物上后,激光束接收器接收反射回来的激光信号,通过测距器计算出扫码器与目标物之间的距离。A ranging optical path is established between the laser beam emitter and the laser beam receiver through a range finder. When the laser beam irradiates the target, the laser beam receiver receives the reflected laser signal and calculates the scan value through the range finder. The distance between the encoder and the target.
需要说明的是,该实施例可以通过测量激光束从扫码器射出到目标物反射回来的时间来计算出扫码器与目标物之间的距离,从而实现相对位置的定位。该技术能够在激光束照射到目标物上后即时接收并计算出距离,实现实时性要求。It should be noted that this embodiment can calculate the distance between the code scanner and the target object by measuring the time from when the laser beam is emitted from the code scanner to when it is reflected back from the target object, thereby achieving relative position positioning. This technology can receive and calculate the distance immediately after the laser beam is irradiated on the target, achieving real-time requirements.
本实施例所述根据目标物的大小和所述扫码器与目标物之间的距离,自适应调整扫描范围和参数,具体包括:In this embodiment, the scanning range and parameters are adaptively adjusted according to the size of the target and the distance between the scanner and the target, specifically including:
如果目标物的面积大于预设面积值和/或与扫码器的距离小于预设距离值,则增加扫描范围;此处限定的目的在于,当目标物较大或者距离较近时,系统会自动扩大扫描范围,以确保能够完整扫描到目标物的条码;If the area of the target is greater than the preset area value and/or the distance from the scanner is less than the preset distance value, the scanning range will be increased; the purpose of this limitation is that when the target is larger or the distance is closer, the system will Automatically expand the scanning range to ensure that the barcode of the target object can be completely scanned;
如果目标物的面积小于预设面积值和/或与扫码器的距离大于预设距离值,则减小扫描范围;此处限定的目的在于,当目标物较小或者距离较远时,系统会自动缩小扫描范围,以提高扫描的准确性和效率。If the area of the target is less than the preset area value and/or the distance from the scanner is greater than the preset distance value, the scanning range is reduced; the purpose of this limitation is that when the target is small or far away, the system The scanning range is automatically narrowed to improve scanning accuracy and efficiency.
通过以上自适应调整的方式,该条码扫描方法可以在不同的场景下适应不同的目标物大小和距离,从而有效提升扫描效果、提高扫描的成功率,减少错误识别的可能性,并且可以更好地满足用户需求。Through the above adaptive adjustment method, this barcode scanning method can adapt to different target sizes and distances in different scenarios, thereby effectively improving the scanning effect, increasing the success rate of scanning, reducing the possibility of misidentification, and making it better to meet user needs.
本发明实施例2提供一种条码扫描模块,包括:程序,所述程序包括用于执行如实施例1所述的条码扫描方法。Embodiment 2 of the present invention provides a barcode scanning module, which includes a program for executing the barcode scanning method described in Embodiment 1.
本实施例所述条码扫描模块包括:处理器和存储器,其中所述程序被存储在所述存储器中,并且被配置成由处理器执行。The barcode scanning module in this embodiment includes: a processor and a memory, wherein the program is stored in the memory and configured to be executed by the processor.
本发明实施例3提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行如实施例1所述的条码扫描方法。Embodiment 3 of the present invention provides a storage medium on which a computer program is stored, and the computer program is executed by a processor as described in the barcode scanning method in Embodiment 1.
本发明实施例4提供一种扫码器,所述扫码器用于执行如实施例1所述的条码扫描方法。Embodiment 4 of the present invention provides a code scanner, which is used to perform the barcode scanning method as described in Embodiment 1.
与现有技术相比,本发明的有益效果至少如下所述:Compared with the prior art, the beneficial effects of the present invention are at least as follows:
本发明通过激光束对目标物进行扫描,可以快速捕捉目标物的条码图像,提高扫描效率,并且对条码图像进行处理和分析,能够准确地识别条码中的编码信息。通过计算扫码器和目标物之间的相对位置,可以确定扫码器与目标物之间的距离。这一步骤可以帮助调整扫码范围和参数,从而更好地适应不同大小的目标物。根据目标物的大小和扫码器与目标物之间的距离,可以自动调整扫描范围和参数。这样可以确保在不同情况下能够得到清晰、准确的条码图像,提高识别的成功率。总之,本发明所述条码扫描方法结合了激光扫描、图像处理和分析,能够高效准确地扫描、识别目标物的条码信息,并且具备自适应调整功能,能够适应不同目标物的大小和距离,提高扫描效果和识别的准确性。The invention scans the target object with a laser beam, can quickly capture the barcode image of the target object, improves the scanning efficiency, processes and analyzes the barcode image, and can accurately identify the encoding information in the barcode. By calculating the relative position between the scanner and the target, the distance between the scanner and the target can be determined. This step can help adjust the scanning range and parameters to better adapt to targets of different sizes. The scanning range and parameters can be automatically adjusted according to the size of the target and the distance between the scanner and the target. This ensures that clear and accurate barcode images can be obtained under different circumstances and improves the success rate of recognition. In short, the barcode scanning method of the present invention combines laser scanning, image processing and analysis, can efficiently and accurately scan and identify the barcode information of the target object, and has an adaptive adjustment function, which can adapt to the size and distance of different target objects, improve Scanning effect and recognition accuracy.
以上,仅为本发明的较佳实施例而已,并非对本发明作任何形式上的限制;凡本行业的普通技术人员均可按说明书附图所示和以上而顺畅地实施本发明;但是,凡熟悉本专业的技术人员在不脱离本发明技术方案范围内,利用以上所揭示的技术内容而做出的些许更动、修饰与演变的等同变化,均为本发明的等效实施例;同时,凡依据本发明的实质技术对以上实施例所作的任何等同变化的更动、修饰与演变等,均仍属于本发明的技术方案的保护范围之内。The above are only preferred embodiments of the present invention, and do not limit the present invention in any form; any person of ordinary skill in the industry can smoothly implement the present invention according to the description and drawings shown in the description and above; however, any Those skilled in the art who are familiar with the art can make slight changes, modifications and equivalent changes using the technical content disclosed above without departing from the scope of the technical solution of the present invention; at the same time, Any equivalent changes, modifications and evolutions made to the above embodiments based on the essential technology of the present invention still fall within the protection scope of the technical solution of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311391677.8A CN117332798A (en) | 2023-10-25 | 2023-10-25 | Bar code scanning method, module, storage medium and bar code scanner |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311391677.8A CN117332798A (en) | 2023-10-25 | 2023-10-25 | Bar code scanning method, module, storage medium and bar code scanner |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117332798A true CN117332798A (en) | 2024-01-02 |
Family
ID=89279171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311391677.8A Pending CN117332798A (en) | 2023-10-25 | 2023-10-25 | Bar code scanning method, module, storage medium and bar code scanner |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117332798A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1079833A (en) * | 1992-06-12 | 1993-12-22 | 欧林巴斯光学工业股份有限公司 | Adaptive bar code scanner |
CN1674033A (en) * | 2004-04-16 | 2005-09-28 | 广州市瀚迪科技开发有限公司 | A 1D bar code decoding method |
CN101470799A (en) * | 2007-12-28 | 2009-07-01 | 茂森科技股份有限公司 | Laser bar code scanner and execution method thereof |
JP2009193447A (en) * | 2008-02-15 | 2009-08-27 | Marson Technology Co Ltd | Laser bar code scanner and scanning method thereof |
CN102289652A (en) * | 2011-08-15 | 2011-12-21 | 广州市旭龙条码设备有限公司 | Infrared bar code scanner |
CN103106413A (en) * | 2013-02-07 | 2013-05-15 | 华中科技大学 | Autograph two-dimension code representing and authentication method |
CN103150539A (en) * | 2013-03-18 | 2013-06-12 | 苏州斯普锐智能系统有限公司 | Bar-code scanner and bar-code scanning method thereof |
CN103294980A (en) * | 2013-06-18 | 2013-09-11 | 四川大学 | Micro-QR (Quick Response) code recognition method based on picture processing |
CN104395911A (en) * | 2012-06-20 | 2015-03-04 | 计量仪器公司 | Laser scanning code symbol reading system providing control over length of laser scan line projected onto a scanned object using dynamic range-dependent scan angle control |
CN106778406A (en) * | 2015-11-19 | 2017-05-31 | 天津利融科技有限公司 | A kind of bar code scanner |
CN107918748A (en) * | 2017-10-27 | 2018-04-17 | 南京理工大学 | A kind of multispectral two-dimension code recognition device and method |
CN109033912A (en) * | 2018-07-25 | 2018-12-18 | 维沃移动通信有限公司 | An identification code identification method and mobile terminal |
-
2023
- 2023-10-25 CN CN202311391677.8A patent/CN117332798A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1079833A (en) * | 1992-06-12 | 1993-12-22 | 欧林巴斯光学工业股份有限公司 | Adaptive bar code scanner |
CN1674033A (en) * | 2004-04-16 | 2005-09-28 | 广州市瀚迪科技开发有限公司 | A 1D bar code decoding method |
CN101470799A (en) * | 2007-12-28 | 2009-07-01 | 茂森科技股份有限公司 | Laser bar code scanner and execution method thereof |
JP2009193447A (en) * | 2008-02-15 | 2009-08-27 | Marson Technology Co Ltd | Laser bar code scanner and scanning method thereof |
CN102289652A (en) * | 2011-08-15 | 2011-12-21 | 广州市旭龙条码设备有限公司 | Infrared bar code scanner |
CN104395911A (en) * | 2012-06-20 | 2015-03-04 | 计量仪器公司 | Laser scanning code symbol reading system providing control over length of laser scan line projected onto a scanned object using dynamic range-dependent scan angle control |
CN103106413A (en) * | 2013-02-07 | 2013-05-15 | 华中科技大学 | Autograph two-dimension code representing and authentication method |
CN103150539A (en) * | 2013-03-18 | 2013-06-12 | 苏州斯普锐智能系统有限公司 | Bar-code scanner and bar-code scanning method thereof |
CN103294980A (en) * | 2013-06-18 | 2013-09-11 | 四川大学 | Micro-QR (Quick Response) code recognition method based on picture processing |
CN106778406A (en) * | 2015-11-19 | 2017-05-31 | 天津利融科技有限公司 | A kind of bar code scanner |
CN107918748A (en) * | 2017-10-27 | 2018-04-17 | 南京理工大学 | A kind of multispectral two-dimension code recognition device and method |
CN109033912A (en) * | 2018-07-25 | 2018-12-18 | 维沃移动通信有限公司 | An identification code identification method and mobile terminal |
Non-Patent Citations (1)
Title |
---|
张铎,柯新生: "《现代物流信息系统建设》", 31 March 2004, 北京:首都经济贸易大学出版社, pages: 109 - 111 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10540532B2 (en) | System and method for detecting optical codes with damaged or incomplete finder patterns | |
US9147095B2 (en) | Optical code scanner optimized for reading 2D optical codes | |
US8523075B2 (en) | Barcode recognition using data-driven classifier | |
CN101916357A (en) | Laser barcode reading device and barcode reading method | |
CN102682267B (en) | Method for quickly positioning and extracting one-dimensional and two-dimensional code graphics aiming at digital images | |
CN101874250B (en) | Enhanced virtual scan line processing | |
US20020044689A1 (en) | Apparatus and method for global and local feature extraction from digital images | |
CN111767754B (en) | Identification code identification method and device, electronic equipment and storage medium | |
WO2013003086A1 (en) | Object identification using barcode reader | |
CN108573184B (en) | Two-dimensional code positioning method, module and computer readable storage medium | |
CN112446225A (en) | Determination of module size for optical codes | |
CN114299137A (en) | Laser spot center positioning method and testing system | |
Yun et al. | Vision-based 1D barcode localization method for scale and rotation invariant | |
Zolotarev et al. | Modelling internal knot distribution using external log features | |
US20090057409A1 (en) | Automatic raster height and speed adjustment in programmable electeo-optical readers for reading two-dimensional symbols of different heights | |
CN117332798A (en) | Bar code scanning method, module, storage medium and bar code scanner | |
US20240242045A1 (en) | Code reader and code reading method | |
CN117521694A (en) | Commodity bar code detecting system | |
KR101871379B1 (en) | Apparatus for barcode recognition | |
CN114781413A (en) | Mobile two-dimensional code identification system and identification method for production line | |
Rahman et al. | An approach to facilitate business system by multiple barcode detection using faster rcnn | |
CN118917335A (en) | Method and system for collecting data for training a Machine Learning (ML) model | |
JPH11184961A (en) | Image recognition device | |
US20250308275A1 (en) | Method to Use Edge Computing to Detect Non-Payload Encoding Visual Features for Optical Character Recognition | |
CN118470436B (en) | Method for improving contraband detection capability of millimeter wave security inspection instrument |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20240102 |
|
RJ01 | Rejection of invention patent application after publication |