CN115860025A - Two-dimensional code image processing method, device, equipment, storage medium and program product - Google Patents
Two-dimensional code image processing method, device, equipment, storage medium and program product Download PDFInfo
- Publication number
- CN115860025A CN115860025A CN202211683420.5A CN202211683420A CN115860025A CN 115860025 A CN115860025 A CN 115860025A CN 202211683420 A CN202211683420 A CN 202211683420A CN 115860025 A CN115860025 A CN 115860025A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- code image
- target
- value
- analyzed
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000006243 chemical reaction Methods 0.000 claims abstract description 83
- 238000012545 processing Methods 0.000 claims abstract description 78
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000013507 mapping Methods 0.000 claims abstract description 32
- 238000005070 sampling Methods 0.000 claims abstract description 30
- 238000004590 computer program Methods 0.000 claims description 28
- 230000008569 process Effects 0.000 claims description 13
- 238000013519 translation Methods 0.000 claims description 8
- 238000004458 analytical method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 238000012952 Resampling Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000009966 trimming Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本申请涉及图像处理技术领域,特别是涉及一种二维码图像处理方法、装置、设备、存储介质和程序产品。The present application relates to the technical field of image processing, in particular to a two-dimensional code image processing method, device, equipment, storage medium and program product.
背景技术Background technique
近年来,已有多种嵌入式产品,选择将二维码作为传递WiFi账号密码和其他验证信息的媒介。其中,无线网络摄像机(即WiFi摄像机)便是嵌入式产品中的一种,由于该类型产品具备一定的操作局限性,只能通过解析外部传递的无线网络连接信息的方式,来接入无线网络。通常无线网络摄像机会通过扫描并解析外部终端设备生成的包含无线网络连接信息的二维码的方式,来进行相关网络参数的配置。In recent years, a variety of embedded products have chosen to use QR codes as the medium for transmitting WiFi account passwords and other verification information. Among them, the wireless network camera (i.e. WiFi camera) is one of the embedded products. Due to the limited operation of this type of product, it can only access the wireless network by analyzing the wireless network connection information transmitted externally. . Usually, the wireless network camera will configure the relevant network parameters by scanning and analyzing the QR code containing the wireless network connection information generated by the external terminal device.
然而,由于无线网络摄像机中的图像信号处理单元,会基于外部光照条件,针对获取到的图像亮度进行一些适应性变化,而在用于展示二维码的终端设备屏幕亮度过高,且外部光照条件不佳的情况下,经图像信号处理单元处理后的二维码图像往往会呈现过度曝光的状态,该状态会直接影响二维码图像的识别成功率。因此,基于现有技术,难以在无线网络摄像机中,实现针对二维码图像的准确识别。However, since the image signal processing unit in the wireless network camera will make some adaptive changes to the brightness of the acquired image based on the external lighting conditions, the screen brightness of the terminal device used to display the QR code is too high, and the external lighting Under unfavorable conditions, the two-dimensional code image processed by the image signal processing unit tends to be in an over-exposed state, which will directly affect the recognition success rate of the two-dimensional code image. Therefore, based on the prior art, it is difficult to realize accurate recognition of the two-dimensional code image in the wireless network camera.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种二维码图像处理方法、装置、设备、存储介质和程序产品。Based on this, it is necessary to provide a two-dimensional code image processing method, device, equipment, storage medium and program product for the above technical problems.
第一方面,本申请提供了一种二维码图像处理方法,应用于无线网络摄像机,所述方法包括:In a first aspect, the present application provides a two-dimensional code image processing method, which is applied to a wireless network camera, and the method includes:
对裁剪后的原始二维码图像进行采样,得到待分析二维码图像;Sampling the cropped original QR code image to obtain the QR code image to be analyzed;
基于所述待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理所述待分析二维码图像,得到目标二维码图像;Based on the mapping relationship between the actual grayscale value of the two-dimensional code image to be analyzed and the target grayscale value, process the two-dimensional code image to be analyzed to obtain the target two-dimensional code image;
对所述目标二维码图像进行灰度直方图统计,基于灰度直方图统计结果,确定所述目标二维码图像对应的转换阈值所在的取值范围;Perform grayscale histogram statistics on the target two-dimensional code image, and determine the value range of the conversion threshold corresponding to the target two-dimensional code image based on the grayscale histogram statistical result;
基于所述取值范围的中间值,确定所述目标二维码图像对应的中间转换阈值;Determine an intermediate conversion threshold corresponding to the target two-dimensional code image based on an intermediate value of the value range;
根据所述取值范围和所述中间转换阈值,对所述目标二维码图像进行二值化转换处理,得到所述目标二维码图像对应的处理结果。Perform binarization conversion processing on the target two-dimensional code image according to the value range and the intermediate conversion threshold to obtain a processing result corresponding to the target two-dimensional code image.
在其中一个实施例中,所述对裁剪后的原始二维码图像进行采样,得到待分析二维码图像,包括:In one of the embodiments, the sampling of the cropped original two-dimensional code image to obtain the two-dimensional code image to be analyzed includes:
基于预设图像尺寸,对原始二维码图像进行边缘裁剪,得到裁剪后的原始二维码图像;对裁剪后的原始二维码图像进行隔行隔列采样,得到所述待分析二维码图像。Based on the preset image size, edge cutting is performed on the original two-dimensional code image to obtain the original two-dimensional code image after cutting; the original two-dimensional code image after cutting is sampled every row and every column to obtain the two-dimensional code image to be analyzed .
在其中一个实施例中,所述基于所述待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理所述待分析二维码图像,得到目标二维码图像,包括:In one of the embodiments, the two-dimensional code image to be analyzed is processed based on the mapping relationship between the actual gray value of the two-dimensional code image to be analyzed and the target gray value to obtain the target two-dimensional code image ,include:
基于图像亮度增益信息,确定所述待分析二维码图像的各个像素点的实际灰度值所在的取值区间;根据所述取值区间和预设灰度映射规则,确定每一实际灰度值对应的目标灰度值;基于所述目标灰度值,处理所述待分析二维码图像,得到所述目标二维码图像。Based on the image brightness gain information, determine the value interval where the actual grayscale value of each pixel of the two-dimensional code image to be analyzed is located; according to the value interval and the preset grayscale mapping rule, determine each actual grayscale value corresponding to the target grayscale value; based on the target grayscale value, process the two-dimensional code image to be analyzed to obtain the target two-dimensional code image.
在其中一个实施例中,所述基于灰度直方图统计结果,确定所述目标二维码图像对应的转换阈值所在的取值范围,包括:In one of the embodiments, the determination of the value range of the conversion threshold corresponding to the target two-dimensional code image based on the statistical results of the grayscale histogram includes:
采用预配置的滑动窗口,遍历所述灰度直方图统计结果,确定所述灰度直方图统计结果的波峰所在位置;在所述灰度直方图统计结果中靠近原点的一侧,基于所述波峰所在位置到平衡位置的最短距离,确定所述取值范围的起点位置;根据所述取值范围的起点位置和预设平移步长,得到所述取值范围的终点位置。Using a pre-configured sliding window, traverse the statistical results of the gray histogram to determine the position of the peak of the statistical result of the gray histogram; on the side close to the origin of the statistical results of the gray histogram, based on the The shortest distance from the position of the peak to the equilibrium position determines the starting position of the value range; according to the starting position of the value range and the preset translation step, the end position of the value range is obtained.
在其中一个实施例中,所述滑动窗口的采样范围为基于所述滑动窗口的宽度值进行确定;所述滑动窗口的采样阈值为基于所述滑动窗口的高度值进行确定。In one of the embodiments, the sampling range of the sliding window is determined based on the width value of the sliding window; the sampling threshold of the sliding window is determined based on the height value of the sliding window.
在其中一个实施例中,所述根据所述取值范围和所述中间转换阈值,对所述目标二维码图像进行二值化转换处理,得到所述目标二维码图像对应的处理结果,包括:In one of the embodiments, according to the value range and the intermediate conversion threshold, the target two-dimensional code image is subjected to binarization conversion processing to obtain a processing result corresponding to the target two-dimensional code image, include:
根据所述取值范围的起点位置、所述取值范围的终点位置以及所述中间转换阈值,对所述目标二维码图像进行二值化转换处理,得到所述目标二维码图像对应的处理结果;基于所述目标二维码图像对应的处理结果,识别所述目标二维码图像。According to the start position of the value range, the end position of the value range, and the intermediate conversion threshold, perform binarization conversion processing on the target two-dimensional code image to obtain a corresponding value of the target two-dimensional code image Processing result: identifying the target two-dimensional code image based on the processing result corresponding to the target two-dimensional code image.
第二方面,本申请还提供了一种二维码图像处理装置,应用于无线网络摄像机,所述装置包括:In the second aspect, the present application also provides a two-dimensional code image processing device, which is applied to a wireless network camera, and the device includes:
图像采样模块,用于对裁剪后的原始二维码图像进行采样,得到待分析二维码图像;The image sampling module is used to sample the cropped original two-dimensional code image to obtain the two-dimensional code image to be analyzed;
灰度映射模块,用于基于所述待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理所述待分析二维码图像,得到目标二维码图像;A grayscale mapping module, configured to process the two-dimensional code image to be analyzed based on the mapping relationship between the actual grayscale value of the two-dimensional code image to be analyzed and the target grayscale value, to obtain the target two-dimensional code image;
阈值范围确定模块,用于对所述目标二维码图像进行灰度直方图统计,基于灰度直方图统计结果,确定所述目标二维码图像对应的转换阈值所在的取值范围;A threshold range determination module, configured to perform grayscale histogram statistics on the target two-dimensional code image, and determine the value range of the conversion threshold corresponding to the target two-dimensional code image based on the grayscale histogram statistical results;
中间阈值确定模块,用于基于所述取值范围的中间值,确定所述目标二维码图像对应的中间转换阈值;An intermediate threshold determination module, configured to determine an intermediate conversion threshold corresponding to the target two-dimensional code image based on the intermediate value of the value range;
处理结果获取模块,用于根据所述取值范围和所述中间转换阈值,对所述目标二维码图像进行二值化转换处理,得到所述目标二维码图像对应的处理结果。The processing result acquisition module is configured to perform binarization conversion processing on the target two-dimensional code image according to the value range and the intermediate conversion threshold to obtain a processing result corresponding to the target two-dimensional code image.
第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述方法的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the above method are realized.
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the above method are realized.
上述二维码图像处理方法、装置、设备、存储介质和程序产品,首先,对裁剪后的原始二维码图像进行采样,得到待分析二维码图像。然后,基于待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理待分析二维码图像,得到目标二维码图像。接着,对目标二维码图像进行灰度直方图统计,基于灰度直方图统计结果,确定目标二维码图像对应的转换阈值所在的取值范围。之后,基于取值范围的中间值,确定目标二维码图像对应的中间转换阈值。最后,根据取值范围和中间转换阈值,对目标二维码图像进行二值化转换处理,得到目标二维码图像对应的处理结果。本申请先是针对裁剪后的原始二维码图像进行重采样,再基于重采样后的二维码图像的实际灰度值与目标灰度值之间的映射关系,将二维码图像中的各个像素点对应的灰度值纳入目标灰度值范围,最后采用动态选取的转换阈值取值范围对二维码图像进行二值化转换,不仅在实现了针对二值化处理后的二维码图像质量的有效提升的基础上,提高了针对二维码图像进行识别的准确率,还能够通过减少针对二维码图像进行识别中的冗余数据量,有效提升针对二维码图像进行识别的效率。The above-mentioned two-dimensional code image processing method, device, equipment, storage medium and program product, firstly, sample the cut original two-dimensional code image to obtain the two-dimensional code image to be analyzed. Then, based on the mapping relationship between the actual gray value of the two-dimensional code image to be analyzed and the target gray value, the two-dimensional code image to be analyzed is processed to obtain the target two-dimensional code image. Next, perform grayscale histogram statistics on the target two-dimensional code image, and determine the value range of the conversion threshold corresponding to the target two-dimensional code image based on the statistical results of the grayscale histogram. Afterwards, based on the intermediate value of the value range, an intermediate conversion threshold corresponding to the target two-dimensional code image is determined. Finally, according to the range of values and the intermediate conversion threshold, the target two-dimensional code image is binarized and converted to obtain the corresponding processing result of the target two-dimensional code image. This application first resamples the original two-dimensional code image after cropping, and then based on the mapping relationship between the actual gray value and the target gray value of the resampled two-dimensional code image, each of the two-dimensional code image The gray value corresponding to the pixel is included in the target gray value range, and finally the two-dimensional code image is binarized using the dynamically selected conversion threshold value range, which not only realizes the two-dimensional code image after binarization On the basis of the effective improvement of the quality, the accuracy of the recognition of the two-dimensional code image is improved, and the efficiency of the recognition of the two-dimensional code image can be effectively improved by reducing the amount of redundant data in the recognition of the two-dimensional code image .
附图说明Description of drawings
图1为一个实施例中二维码图像处理方法的流程示意图;Fig. 1 is a schematic flow chart of a two-dimensional code image processing method in an embodiment;
图2为一个实施例中获取待分析二维码图像的具体方式的流程示意图;Fig. 2 is a schematic flow chart of a specific way of obtaining a two-dimensional code image to be analyzed in an embodiment;
图3为一个实施例中获取目标二维码图像的具体方式的流程示意图;Fig. 3 is a schematic flow chart of a specific way of acquiring a target two-dimensional code image in an embodiment;
图4为一个实施例中确定转换阈值所在的取值范围的具体方式的流程示意图;FIG. 4 is a schematic flowchart of a specific manner of determining the value range of the conversion threshold in an embodiment;
图5为一个实施例中获取目标二维码图像对应的处理结果的具体方式的流程示意图;FIG. 5 is a schematic flow diagram of a specific manner of obtaining a processing result corresponding to a target two-dimensional code image in an embodiment;
图6为一个实施例中二维码图像处理装置的结构框图;Fig. 6 is a structural block diagram of a two-dimensional code image processing device in an embodiment;
图7为一个实施例中计算机设备的内部结构图。Figure 7 is an internal block diagram of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在此使用时,单数形式的“一”、“一个”和“所述/该”也可以包括复数形式,除非上下文清楚指出另外的方式。还应当理解的是,术语“包括/包含”或“具有”等指定所陈述的特征、整体、步骤、操作、组件、部分或它们的组合的存在,但是不排除存在或添加一个或更多个其他特征、整体、步骤、操作、组件、部分或它们的组合的可能性。同时,在本说明书中使用的术语“和/或”包括相关所列项目的任何及所有组合。When used herein, the singular forms "a", "an" and "the/the" may also include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprising/comprising" or "having" etc. specify the presence of stated features, integers, steps, operations, components, parts or combinations thereof, but do not exclude the presence or addition of one or more The possibility of other features, integers, steps, operations, components, parts or combinations thereof. Meanwhile, the term "and/or" used in this specification includes any and all combinations of the related listed items.
近年来,已有多种嵌入式产品,选择将二维码作为传递WiFi账号密码和其他验证信息的媒介。其中,无线网络摄像机(即WiFi摄像机)便是嵌入式产品中的一种,由于该类型产品具备一定的操作局限性,只能通过解析外部传递的无线网络连接信息的方式,来接入无线网络。通常无线网络摄像机会通过扫描外部终端设备生成的包含无线网络连接信息的二维码,并在无线网络摄像机的内部,将获取得到的二维码图像传输至二维码图像识别库中,例如,zbar库,进行识别与解析,并基于解析结果,进行相关网络参数的配置。In recent years, a variety of embedded products have chosen to use QR codes as the medium for transmitting WiFi account passwords and other verification information. Among them, the wireless network camera (i.e. WiFi camera) is one of the embedded products. Due to the limited operation of this type of product, it can only access the wireless network by analyzing the wireless network connection information transmitted externally. . Usually, the wireless network camera will scan the two-dimensional code containing the wireless network connection information generated by the external terminal device, and transmit the obtained two-dimensional code image to the two-dimensional code image recognition library inside the wireless network camera, for example, The zbar library is used to identify and analyze, and configure related network parameters based on the analysis results.
然而,由于无线网络摄像机中的图像信号处理单元(ISP,Image SignalProcessor),会基于外部光照条件,针对获取到的图像亮度进行一些适应性变化,而在用于展示二维码的终端设备屏幕亮度过高,且外部光照条件不佳的情况下,经图像信号处理单元处理后的二维码图像往往会呈现过度曝光的状态,该状态会直接影响二维码图像的识别成功率。However, since the image signal processing unit (ISP, Image Signal Processor) in the wireless network camera will perform some adaptive changes to the brightness of the acquired image based on the external lighting conditions, the screen brightness of the terminal device used to display the two-dimensional code If the temperature is too high and the external lighting conditions are not good, the two-dimensional code image processed by the image signal processing unit will often show an over-exposed state, which will directly affect the recognition success rate of the two-dimensional code image.
此外,由于无线网络摄像机采用的是具备专用性的嵌入式系统,其可用内存的使用方式存在诸多限制,且二维码识别库对二维码的解析时间,会随着图像大小的增加而递增,而基于现有技术获取的二维码图像,仍然存在一些冗余的数据量,这不仅为无线网络摄像机的内存容量带来了额外的负担,还降低了在无线网络摄像机中进行二维码图像识别的效率。In addition, because the wireless network camera uses a dedicated embedded system, there are many restrictions on the use of its available memory, and the analysis time of the two-dimensional code recognition library for the two-dimensional code will increase with the increase of the image size , and based on the two-dimensional code image obtained by the existing technology, there are still some redundant data volumes, which not only brings an additional burden to the memory capacity of the wireless network camera, but also reduces the quality of the two-dimensional code in the wireless network camera The efficiency of image recognition.
由此可见,基于现有技术,不仅难以在无线网络摄像机中,实现针对二维码图像的准确识别,且存在针对二维码图像进行识别时效率较低的问题。It can be seen that based on the prior art, not only is it difficult to realize accurate recognition of two-dimensional code images in wireless network cameras, but also there is a problem of low efficiency when recognizing two-dimensional code images.
本申请实施例提供的二维码图像处理方法,可以应用于服务器执行。其中,数据存储系统可以存储服务器需要处理的数据;数据存储系统可以集成在服务器上,也可以放在云上或其他网络服务器上;服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The two-dimensional code image processing method provided in the embodiment of the present application can be applied to a server for execution. Among them, the data storage system can store the data that the server needs to process; the data storage system can be integrated on the server, and can also be placed on the cloud or other network servers; the server can be an independent server or a server cluster composed of multiple servers. accomplish.
在一个实施例中,如图1所示,提供了一种二维码图像处理方法,应用于无线网络摄像机,包括以下步骤:In one embodiment, as shown in FIG. 1 , a method for processing a two-dimensional code image is provided, which is applied to a wireless network camera and includes the following steps:
步骤S110,对裁剪后的原始二维码图像进行采样,得到待分析二维码图像。Step S110, sampling the cropped original two-dimensional code image to obtain the two-dimensional code image to be analyzed.
本步骤中,原始二维码图像,是指通过摄像头拍摄等方式采集得到的原始二维码图像;对裁剪后的原始二维码图像进行采样,是指首先基于预设尺寸对采集得到的原始二维码图像进行裁剪,然后再对裁剪后的原始二维码图像进行重新采样;待分析二维码图像,是指首先基于预设尺寸对采集得到的原始二维码图像进行裁剪,然后再对裁剪后的原始二维码图像进行重新采样,从而获取得到的待分析二维码图像。In this step, the original two-dimensional code image refers to the original two-dimensional code image collected by camera shooting or other methods; sampling the original two-dimensional code image after cropping refers to firstly sampling the original two-dimensional code image obtained based on the preset size. The QR code image is cropped, and then the cropped original QR code image is re-sampled; the QR code image to be analyzed means that the collected original QR code image is first cropped based on the preset size, and then The clipped original two-dimensional code image is re-sampled to obtain the obtained two-dimensional code image to be analyzed.
在实际应用中,上述原始二维码图像,可以是通过无线网络摄像机的前端摄像头采集得到的、具备较高分辨率的原始二维码图像,例如,无线网络摄像机的前端摄像头采集得到的、分辨率为1080P的原始二维码图像。In practical applications, the above-mentioned original two-dimensional code image may be an original two-dimensional code image with a relatively high resolution collected by the front-end camera of the wireless network camera, for example, the image collected by the front-end camera of the wireless network camera, resolution The original QR code image with a rate of 1080P.
步骤S120,基于待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理待分析二维码图像,得到目标二维码图像。Step S120, based on the mapping relationship between the actual gray value of the image to be analyzed and the target gray value, the image of the two-dimensional code to be analyzed is processed to obtain the image of the target two-dimensional code.
本步骤中,待分析二维码图像,是指首先基于预设尺寸对采集得到的原始二维码图像进行裁剪,然后再对裁剪后的原始二维码图像进行重新采样,从而获取得到的待分析二维码图像;待分析二维码图像的实际灰度值,是指待分析二维码图像中的每一像素点对应的实际灰度值;目标灰度值,是指待分析二维码图像中的每一像素点对应的目标灰度值;待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,是指待分析二维码图像中的每一像素点对应的实际灰度值,与待分析二维码图像中的每一像素点对应的目标灰度值之间的映射关系;目标二维码图像,是指基于待分析二维码图像中的每一像素点对应的实际灰度值,与待分析二维码图像中的每一像素点对应的目标灰度值之间的映射关系,对待分析二维码图像进行处理,从而获取得到的目标二维码图像。In this step, the to-be-analyzed QR code image refers to cutting the collected original QR code image based on a preset size, and then resampling the cropped original QR code image to obtain the obtained QR code image to be analyzed. Analyze the two-dimensional code image; the actual gray value of the two-dimensional code image to be analyzed refers to the actual gray value corresponding to each pixel in the two-dimensional code image to be analyzed; the target gray value refers to the two-dimensional code image to be analyzed The target gray value corresponding to each pixel in the code image; the mapping relationship between the actual gray value of the two-dimensional code image to be analyzed and the target gray value refers to the gray value of each pixel in the two-dimensional code image to be analyzed The mapping relationship between the actual gray value corresponding to the point and the target gray value corresponding to each pixel in the two-dimensional code image to be analyzed; the target two-dimensional code image refers to the The mapping relationship between the actual gray value corresponding to each pixel and the target gray value corresponding to each pixel in the two-dimensional code image to be analyzed is processed to obtain the target QR code image.
在实际应用中,基于待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理待分析二维码图像的具体方式,可以是采用待分析二维码图像中的每一像素点对应的目标灰度值,替换该像素点对应的实际灰度值,进而使得待分析二维码图像的每一像素点对应的灰度值区间,均落入目标灰度值区间。In practical applications, based on the mapping relationship between the actual gray value of the two-dimensional code image to be analyzed and the target gray value, the specific method of processing the two-dimensional code image to be analyzed can be to use the The target gray value corresponding to each pixel is replaced with the actual gray value corresponding to the pixel, so that the gray value interval corresponding to each pixel of the QR code image to be analyzed falls into the target gray value interval .
步骤S130,对目标二维码图像进行灰度直方图统计,基于灰度直方图统计结果,确定目标二维码图像对应的转换阈值所在的取值范围。Step S130, performing gray histogram statistics on the target two-dimensional code image, and determining the value range of the conversion threshold corresponding to the target two-dimensional code image based on the statistical results of the gray histogram.
本步骤中,目标二维码图像,是指基于待分析二维码图像中的每一像素点对应的实际灰度值,与待分析二维码图像中的每一像素点对应的目标灰度值之间的映射关系,对待分析二维码图像进行处理,从而获取得到的目标二维码图像;灰度直方图统计结果,是指对前述目标二维码图像进行灰度直方图统计,得到的灰度直方图统计结果;基于灰度直方图统计结果,确定目标二维码图像对应的转换阈值所在的取值范围,是指在前述灰度直方图统计结果中,确定出前述目标二维码图像对应的转换阈值所在的取值范围。In this step, the target two-dimensional code image refers to the target gray level corresponding to each pixel in the two-dimensional code image to be analyzed based on the actual gray value corresponding to each pixel in the two-dimensional code image to be analyzed The mapping relationship between values is to process the two-dimensional code image to be analyzed, so as to obtain the target two-dimensional code image; the gray histogram statistical result refers to the gray histogram statistics of the aforementioned target two-dimensional code image, and obtains The statistical results of the gray histogram; based on the statistical results of the gray histogram, determining the value range of the conversion threshold corresponding to the target two-dimensional code image refers to determining the aforementioned target two-dimensional code in the statistical results of the gray histogram. The value range of the conversion threshold corresponding to the code image.
步骤S140,基于取值范围的中间值,确定目标二维码图像对应的中间转换阈值。Step S140, based on the intermediate value of the value range, determine the intermediate conversion threshold corresponding to the target two-dimensional code image.
本步骤中,取值范围,是指目标二维码图像对应的转换阈值所在的取值范围;取值范围的中间值,是指目标二维码图像对应的转换阈值所在的取值范围的中间值;目标二维码图像,是指基于待分析二维码图像中的每一像素点对应的实际灰度值,与待分析二维码图像中的每一像素点对应的目标灰度值之间的映射关系,对待分析二维码图像进行处理,从而获取得到的目标二维码图像;基于取值范围的中间值,确定目标二维码图像对应的中间转换阈值,是指将目标二维码图像对应的转换阈值所在的取值范围的中间值,作为目标二维码图像对应的中间转换阈值。In this step, the value range refers to the value range where the conversion threshold corresponding to the target two-dimensional code image is located; the middle value of the value range refers to the middle of the value range where the conversion threshold corresponding to the target two-dimensional code image is located value; the target two-dimensional code image refers to the difference between the actual gray value corresponding to each pixel in the two-dimensional code image to be analyzed and the target gray value corresponding to each pixel in the two-dimensional code image to be analyzed The mapping relationship between the two-dimensional code image to be analyzed is processed to obtain the target two-dimensional code image; based on the intermediate value of the value range, the intermediate conversion threshold corresponding to the target two-dimensional code image is determined, which refers to the target two-dimensional code image The intermediate value of the value range where the conversion threshold corresponding to the code image is located is used as the intermediate conversion threshold corresponding to the target two-dimensional code image.
步骤S150,根据取值范围和中间转换阈值,对目标二维码图像进行二值化转换处理,得到目标二维码图像对应的处理结果。Step S150, according to the value range and the intermediate conversion threshold, perform binarization conversion processing on the target two-dimensional code image, and obtain a processing result corresponding to the target two-dimensional code image.
本步骤中,取值范围,是指目标二维码图像对应的转换阈值所在的取值范围;中间转换阈值,是指基于取值范围的中间值,确定的目标二维码图像对应的中间转换阈值;目标二维码图像,是指基于待分析二维码图像中的每一像素点对应的实际灰度值,与待分析二维码图像中的每一像素点对应的目标灰度值之间的映射关系,对待分析二维码图像进行处理,从而获取得到的目标二维码图像;根据取值范围和中间转换阈值,对目标二维码图像进行二值化转换处理,是指分别基于前述取值范围和前述中间转换阈值,对目标二维码图像进行二值化转换处理;目标二维码图像对应的处理结果,是指分别基于前述取值范围和前述中间转换阈值,对目标二维码图像进行二值化转换处理,从而得到的目标二维码图像对应的处理结果。In this step, the value range refers to the value range where the conversion threshold corresponding to the target two-dimensional code image is located; the intermediate conversion threshold refers to the determined intermediate conversion corresponding to the target two-dimensional code image based on the intermediate value of the value range Threshold; the target two-dimensional code image refers to the difference between the actual gray value corresponding to each pixel in the two-dimensional code image to be analyzed and the target gray value corresponding to each pixel in the two-dimensional code image to be analyzed. The mapping relationship between the two-dimensional code image to be analyzed is processed to obtain the target two-dimensional code image; according to the value range and the intermediate conversion threshold, the target two-dimensional code image is binarized and converted, which refers to the target two-dimensional code image based on The aforementioned value range and the aforementioned intermediate conversion threshold are used to perform binarization conversion processing on the target two-dimensional code image; the corresponding processing results of the target two-dimensional code image refer to the target two-dimensional The two-dimensional code image is subjected to binarization conversion processing, so as to obtain the processing result corresponding to the target two-dimensional code image.
上述二维码图像处理方法,首先,对裁剪后的原始二维码图像进行采样,得到待分析二维码图像。然后,基于待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理待分析二维码图像,得到目标二维码图像。接着,对目标二维码图像进行灰度直方图统计,基于灰度直方图统计结果,确定目标二维码图像对应的转换阈值所在的取值范围。之后,基于取值范围的中间值,确定目标二维码图像对应的中间转换阈值。最后,根据取值范围和中间转换阈值,对目标二维码图像进行二值化转换处理,得到目标二维码图像对应的处理结果。本申请先是针对裁剪后的原始二维码图像进行重采样,再基于重采样后的二维码图像的实际灰度值与目标灰度值之间的映射关系,将二维码图像中的各个像素点对应的灰度值纳入目标灰度值范围,最后采用动态选取的转换阈值取值范围对二维码图像进行二值化转换,不仅在实现了针对二值化处理后的二维码图像质量的有效提升的基础上,提高了针对二维码图像进行识别的准确率,还能够通过减少针对二维码图像进行识别中的冗余数据量,有效提升针对二维码图像进行识别的效率。In the above two-dimensional code image processing method, firstly, the clipped original two-dimensional code image is sampled to obtain the two-dimensional code image to be analyzed. Then, based on the mapping relationship between the actual gray value of the two-dimensional code image to be analyzed and the target gray value, the two-dimensional code image to be analyzed is processed to obtain the target two-dimensional code image. Next, perform grayscale histogram statistics on the target two-dimensional code image, and determine the value range of the conversion threshold corresponding to the target two-dimensional code image based on the statistical results of the grayscale histogram. Afterwards, based on the intermediate value of the value range, an intermediate conversion threshold corresponding to the target two-dimensional code image is determined. Finally, according to the range of values and the intermediate conversion threshold, the target two-dimensional code image is binarized and converted to obtain the corresponding processing result of the target two-dimensional code image. This application first resamples the original two-dimensional code image after cropping, and then based on the mapping relationship between the actual gray value and the target gray value of the resampled two-dimensional code image, each of the two-dimensional code image The gray value corresponding to the pixel is included in the target gray value range, and finally the two-dimensional code image is binarized using the dynamically selected conversion threshold value range, which not only realizes the two-dimensional code image after binarization On the basis of the effective improvement of the quality, the accuracy of the recognition of the two-dimensional code image is improved, and the efficiency of the recognition of the two-dimensional code image can be effectively improved by reducing the amount of redundant data in the recognition of the two-dimensional code image .
对于获取待分析二维码图像的具体方式,在一个实施例中,如图2所示,上述步骤S110具体包括:Regarding the specific manner of obtaining the two-dimensional code image to be analyzed, in one embodiment, as shown in FIG. 2, the above step S110 specifically includes:
步骤S210,基于预设图像尺寸,对原始二维码图像进行边缘裁剪,得到裁剪后的原始二维码图像。Step S210, based on the preset image size, edge cropping is performed on the original two-dimensional code image to obtain a cropped original two-dimensional code image.
本步骤中,原始二维码图像,是指通过摄像头拍摄等方式采集得到的原始二维码图像;裁剪后的原始二维码图像,是指基于预设图像尺寸,对原始二维码图像进行边缘裁剪,得到的裁剪后的原始二维码图像。In this step, the original two-dimensional code image refers to the original two-dimensional code image collected by the camera; the original two-dimensional code image after cropping refers to the original two-dimensional code image based on the preset image size. Edge cropping to obtain the cropped original QR code image.
在实际应用中,假设通过无线网络摄像机的前端摄像头采集得到的是,分辨率为1080P的原始二维码图像,且预设图像尺寸为1600*800(宽*高),则基于预设图像尺寸,对原始二维码图像进行边缘裁剪,得到裁剪后的原始二维码In practical applications, assuming that the original QR code image with a resolution of 1080P is captured by the front-end camera of the wireless network camera, and the preset image size is 1600*800 (width*height), then based on the preset image size , crop the edge of the original QR code image to get the original QR code after cropping
图像,是指基于预设图像尺寸1600*800,对分辨率为1080P的原始二维码图像5进行边缘裁剪,得到裁剪后的、图像尺寸为1600*800的原始二维码图像;基于预设图像尺寸,对原始二维码图像进行边缘裁剪的具体原因,可以是由于在实际的二维码扫描操作中,用户将二维码图像摆放至摄像头的边缘位置的概率较低(即图像边缘位置的使用率较低),且采集得到的图像边缘位置往往存在影Image refers to cutting the edge of the original QR code image 5 with a resolution of 1080P based on a preset image size of 1600*800 to obtain a cropped original QR code image with an image size of 1600*800; based on the preset Image size, the specific reason for cutting the edge of the original two-dimensional code image may be that in the actual two-dimensional code scanning operation, the user has a low probability of placing the two-dimensional code image on the edge of the camera (that is, the image edge The utilization rate of the position is low), and the edge position of the collected image often has influence
响其识别准确率的畸变(即可用率较低),故通过对原始二维码图像进行边缘0裁剪的方式,即可保留原始二维码图像中绝大部分的有用信息,且进行边缘裁剪后的图像尺寸能够有效降低,进而能够解决采用具备专用性的嵌入式系统的无线网络摄像机的可用内存较为有限的问题。Distortion (i.e. low usability rate) that affects its recognition accuracy, so by cutting the edge of the original two-dimensional code image, most of the useful information in the original two-dimensional code image can be retained, and edge cutting The final image size can be effectively reduced, thereby solving the problem of limited available memory of wireless network cameras using dedicated embedded systems.
步骤S220,对裁剪后的原始二维码图像进行隔行隔列采样,得到待分析二维码图像。Step S220, sampling the cropped original two-dimensional code image alternately by row and by column to obtain the two-dimensional code image to be analyzed.
5本步骤中,裁剪后的原始二维码图像,是指基于基于预设图像尺寸,对原始二维码图像进行边缘裁剪,从而得到的裁剪后的原始二维码图像;对裁剪后的原始二维码图像进行隔行隔列采样,是指对裁剪后的原始二维码图像,采用隔一行抽取一行数据、隔一列抽取一列数据的方式,进行重新采样,以使得重5 In this step, the cropped original two-dimensional code image refers to the original two-dimensional code image after trimming based on the preset image size, so as to obtain the original two-dimensional code image after cropping; the original two-dimensional code image after cropping Sampling the two-dimensional code image by row and column means resampling the cropped original two-dimensional code image by extracting one row of data every other row and one column of data every other column, so that the resampled
新采样后的图像尺寸为原图像尺寸的一半;待分析二维码图像,是指对裁剪后0的原始二维码图像,采用隔一行抽取一行数据、隔一列抽取一列数据的方式,The size of the newly sampled image is half of the size of the original image; the QR code image to be analyzed refers to the original QR code image after cropping 0, using the method of extracting a row of data every other row and a column of data every other column.
进行重新采样,从而得到的待分析二维码图像。Perform re-sampling to obtain the image of the QR code to be analyzed.
在实际应用中,假设裁剪后的原始二维码图像,是经分辨率为1080P的原始图像裁剪而来的,且其图像尺寸为1600*800,则采用隔一行抽取一行数据、隔一列抽取一列数据的方式,对该裁剪后的原始二维码图像进行重新采样,可5以得到图像尺寸为800*400(宽*高)的待分析二维码图像。相较于在无线网络摄像机中,通过直接设定采集图像的目标分辨率或目标图像尺寸的方式,对二维码图像尺寸进行调整,采用前述方式对二维码图像进行重新采样,能够有效提升处理后的二维码图像的清晰度,进而在处理后的二维码图像中保留更多的有用信息。In practical applications, assuming that the cropped original QR code image is cropped from the original image with a resolution of 1080P, and its image size is 1600*800, then extract a row of data every other row and a column every other column In the way of data, the cut original two-dimensional code image is re-sampled to obtain the two-dimensional code image to be analyzed with an image size of 800*400 (width*height). Compared with wireless network cameras, by directly setting the target resolution or target image size of the captured image to adjust the size of the two-dimensional code image, using the aforementioned method to re-sample the two-dimensional code image can effectively improve The clarity of the processed two-dimensional code image, and then retain more useful information in the processed two-dimensional code image.
上述实施例通过裁剪后的原始二维码图像进行隔行隔列采样,以获取得到待分析二维码图像的方式,在成功实现了针对二维码图像尺寸的有效控制的同时,提高了图像尺寸调整后的二维码图像清晰度,不仅提高了二维码图像的处理效率,还保障了针对二维码图像的识别准确率。In the above-mentioned embodiment, the cropped original two-dimensional code image is sampled every row and every column to obtain the two-dimensional code image to be analyzed. While successfully realizing the effective control of the image size of the two-dimensional code, the image size is improved. The adjusted two-dimensional code image clarity not only improves the processing efficiency of the two-dimensional code image, but also ensures the recognition accuracy for the two-dimensional code image.
对于获取目标二维码图像的具体方式,在一个实施例中,如图3所示,上述步骤S120具体包括:Regarding the specific manner of acquiring the target two-dimensional code image, in one embodiment, as shown in FIG. 3 , the above step S120 specifically includes:
步骤S310,基于图像亮度增益信息,确定待分析二维码图像的各个像素点的实际灰度值所在的取值区间。Step S310, based on the image brightness gain information, determine the value interval where the actual gray value of each pixel of the two-dimensional code image to be analyzed is located.
本步骤中,图像亮度增益信息,可以具体表现为用户在无线网络摄像机中的图像信号处理单元中设置的、用于对拍摄得到的图像进行亮度增益的亮度相关参数,用户通过对该亮度相关参数进行调整,可以缩小图像灰度值的取值区间;基于图像亮度增益信息,确定待分析二维码图像的各个像素点的实际灰度值所在的取值区间,是指基于图像亮度增益信息,确定了待分析二维码图像的各个像素点的实际灰度值之后,进而确定的待分析二维码图像的各个像素点的实际灰度值所在的取值区间。In this step, the image brightness gain information can be embodied as the brightness related parameters set by the user in the image signal processing unit in the wireless network camera for performing brightness gain on the captured image, and the user passes the brightness related parameters Adjustment can reduce the value interval of the image grayscale value; based on the image brightness gain information, determining the value interval where the actual grayscale value of each pixel of the two-dimensional code image to be analyzed is located means that based on the image brightness gain information, After the actual grayscale value of each pixel of the two-dimensional code image to be analyzed is determined, the value interval in which the actual grayscale value of each pixel of the two-dimensional code image to be analyzed is determined.
步骤S320,根据取值区间和预设灰度映射规则,确定每一实际灰度值对应的目标灰度值。Step S320, according to the value range and preset grayscale mapping rules, determine the target grayscale value corresponding to each actual grayscale value.
本步骤中,取值区间,是指待分析二维码图像的各个像素点的实际灰度值所在的取值区间;预设灰度映射规则,是指将待分析二维码图像的各个像素点的实际灰度值所在的取值区间,映射至目标灰度值所在的取值区间的预设灰度映射规则;每一实际灰度值对应的目标灰度值,是指待分析二维码图像的每一像素点的实际灰度值对应的目标灰度值。In this step, the value interval refers to the value interval in which the actual grayscale value of each pixel of the two-dimensional code image to be analyzed is located; the preset grayscale mapping rule refers to the value interval of each pixel of the two-dimensional code image to be analyzed The value interval where the actual gray value of the point is mapped to the default gray mapping rule of the value interval where the target gray value is located; the target gray value corresponding to each actual gray value refers to the two-dimensional gray value to be analyzed The target gray value corresponding to the actual gray value of each pixel of the code image.
在实际应用中,上述预设灰度映射规则,可以是将上述取值区间的最小值映射为0,将上述取值区间的最大值映射为255(即将实际灰度值的取值区间,向目标灰度值区间[0,255]进行映射),进而将经图像亮度增益信息调整后的二维码图像的灰度值区间,恢复至正常的灰度值区间。In practical applications, the above-mentioned preset grayscale mapping rule may be to map the minimum value of the above-mentioned value range to 0, and map the maximum value of the above-mentioned value range to 255 (that is, the value range of the actual gray-scale value, to The target gray value interval [0, 255] is mapped), and then the gray value interval of the two-dimensional code image adjusted by the image brightness gain information is restored to the normal gray value interval.
步骤S330,基于目标灰度值,处理待分析二维码图像,得到目标二维码图像。Step S330, based on the target gray value, process the two-dimensional code image to be analyzed to obtain the target two-dimensional code image.
本步骤中,目标灰度值,即每一实际灰度值对应的目标灰度值,是指待分析二维码图像的每一像素点的实际灰度值对应的目标灰度值;目标二维码图像,是指通过将待分析二维码图像的每一像素点对应的实际灰度值,替换为该像素点对应的目标灰度值的方式,获取得到的目标二维码图像。In this step, the target gray value, that is, the target gray value corresponding to each actual gray value, refers to the target gray value corresponding to the actual gray value of each pixel of the two-dimensional code image to be analyzed; target two The two-dimensional code image refers to the target two-dimensional code image obtained by replacing the actual gray value corresponding to each pixel of the two-dimensional code image to be analyzed with the target gray value corresponding to the pixel.
上述实施例通过基于图像亮度增益信息,确定二维码图像中每一像素点对应的实际灰度值,并根据每一灰度值与目标灰度值之间的映射关系,得到目标二维码图像的方式,将二维码图像对应的灰度值范围恢复至正常的灰度值范围内,不仅有效避免了因采用预先设置的图像亮度增益信息,对采集得到的二维码图像进行自动调整,而导致二维码图像的识别准确率降低的问题,还提高了针对二维码图像进行识别的效率。The above embodiments determine the actual grayscale value corresponding to each pixel in the two-dimensional code image based on the image brightness gain information, and obtain the target two-dimensional code according to the mapping relationship between each grayscale value and the target grayscale value The image method restores the gray value range corresponding to the two-dimensional code image to the normal gray value range, which not only effectively avoids the automatic adjustment of the collected two-dimensional code image due to the use of pre-set image brightness gain information , resulting in a reduction in the recognition accuracy of the two-dimensional code image, and also improves the recognition efficiency for the two-dimensional code image.
对于确定转换阈值所在的取值范围的具体方式,在一个实施例中,如图4所示,上述步骤S130具体包括:Regarding the specific manner of determining the value range where the conversion threshold is located, in one embodiment, as shown in FIG. 4 , the above step S130 specifically includes:
步骤S410,采用预配置的滑动窗口,遍历灰度直方图统计结果,确定灰度直方图统计结果的波峰所在位置。Step S410, using a pre-configured sliding window, traversing the statistical results of the gray histogram, and determining the position of the peak of the statistical result of the gray histogram.
本步骤中,预配置的滑动窗口,是指预先进行了采样范围、采样阈值、连续采样区间等参数配置的滑动窗口;灰度直方图统计结果,是指对目标二维码图像进行灰度直方图统计,得到的灰度直方图统计结果;灰度直方图统计结果的波峰所在位置,是指采用前述预配置的滑动窗口,遍历前述灰度直方图统计结果之后,确定的灰度直方图统计结果的波峰所在位置。In this step, the pre-configured sliding window refers to the sliding window that has been pre-configured with parameters such as sampling range, sampling threshold, and continuous sampling interval; the grayscale histogram statistical result refers to the grayscale histogram of the target two-dimensional code image. Graph statistics, the obtained grayscale histogram statistical results; the position of the peak of the grayscale histogram statistical results refers to the grayscale histogram statistics determined after traversing the aforementioned grayscale histogram statistical results using the aforementioned pre-configured sliding window The position of the peak of the result.
在实际应用中,可以将上述连续采样区间设置为,从像素灰度值的最小值0开始,而后滑动至像素灰度值的最大值255结束,以遍历上述灰度直方图统计结果,进而找出灰度直方图统计结果中的波峰所在位置。In practical applications, the above continuous sampling interval can be set to start from the minimum value of the pixel gray value 0, and then slide to the end of the maximum value of the pixel gray value 255, so as to traverse the statistical results of the above gray histogram, and then find Find the position of the peak in the statistical result of the grayscale histogram.
步骤S420,在灰度直方图统计结果中靠近原点的一侧,基于波峰所在位置到平衡位置的最短距离,确定取值范围的起点位置。Step S420, on the side close to the origin in the statistical results of the gray histogram, determine the starting position of the value range based on the shortest distance from the position of the peak to the equilibrium position.
本步骤中,灰度直方图统计结果,是指对目标二维码图像进行灰度直方图统计,从而得到的灰度直方图统计结果;在灰度直方图统计结果中靠近原点的一侧,是指前述灰度直方图统计结果中靠近0值(即直角坐标系的原点)的一侧;波峰所在位置,即灰度直方图统计结果的波峰所在位置,是指采用上述预配置的滑动窗口,遍历灰度直方图统计结果之后,确定的灰度直方图统计结果的波峰所在位置;波峰所在位置到平衡位置的最短距离,是指从波峰所在位置到平衡位置(即平均值变化斜率相对较小的平缓位置)的最短距离;取值范围,是指目标二维码图像对应的转换阈值所在的取值范围;取值范围的起点位置,是指在前述灰度直方图统计结果中靠近原点的一侧,基于波峰所在位置到平衡位置的最短距离,确定的目标二维码图像对应的转换阈值所在的取值范围的起点位置。In this step, the grayscale histogram statistical result refers to the grayscale histogram statistical result obtained by performing grayscale histogram statistics on the target two-dimensional code image; in the grayscale histogram statistical result, the side close to the origin, It refers to the side close to 0 (ie, the origin of the Cartesian coordinate system) in the statistical results of the gray histogram; , after traversing the statistical results of the gray histogram, determine the position of the peak of the statistical result of the gray histogram; the shortest distance from the position of the peak to the equilibrium position refers to the position from the peak to the equilibrium position (that is, the slope of the average change is relatively small The shortest distance of the small gentle position); the value range refers to the value range where the conversion threshold corresponding to the target two-dimensional code image is located; the starting point position of the value range refers to the value close to the origin in the aforementioned grayscale histogram statistical results On one side of , based on the shortest distance from the position of the wave peak to the equilibrium position, determine the starting position of the value range where the conversion threshold corresponding to the target two-dimensional code image is located.
步骤S430,根据取值范围的起点位置和预设平移步长,得到取值范围的终点位置。In step S430, the end position of the value range is obtained according to the start position of the value range and the preset translation step.
本步骤中,取值范围,是指目标二维码图像对应的转换阈值所在的取值范围;取值范围的起点位置,是指在前述灰度直方图统计结果中靠近原点的一侧,基于波峰所在位置到平衡位置的最短距离,确定的目标二维码图像对应的转换阈值所在的取值范围的起点位置;预设平移步长,是指从取值范围的起点位置开始,表征向灰度直方图统计结果中的直角坐标系的X轴数值增大方向,进行平移的具体距离的预设平移步长;取值范围的终点位置,是指根据前述取值范围的起点位置和前述预设平移步长,从取值范围的起点位置开始,向灰度直方图统计结果中的直角坐标系的X轴数值增大方向平移的相应距离后,获取得到的取值范围的终点位置。In this step, the value range refers to the value range where the conversion threshold corresponding to the target two-dimensional code image is located; the starting point of the value range refers to the side close to the origin in the aforementioned grayscale histogram statistical results, based on The shortest distance from the position of the peak to the equilibrium position, the starting position of the value range where the conversion threshold corresponding to the determined target two-dimensional code image is located; The X-axis value of the Cartesian coordinate system in the statistical results of the degree histogram increases, and the preset translation step length of the specific distance for translation; the end position of the value range refers to the starting position of the aforementioned value range and the aforementioned preset Set the translation step, starting from the starting position of the value range, and after the corresponding distance in the direction of increasing the X-axis value of the Cartesian coordinate system in the gray histogram statistical result, obtain the end position of the obtained value range.
上述实施例通过动态选取针对二维码图像进行二值化转换的转换阈值所在的取值范围的方式,在成功避免了可能因图像过度曝光,而导致的二维码图像中黑色点不明显的问题的基础上,提升了二值化处理后的二维码图像的图像质量,进而有效提高了针对二维码图像进行识别的准确率。The above embodiment successfully avoids the inconspicuous black dots in the two-dimensional code image that may be caused by overexposure of the image by dynamically selecting the value range of the conversion threshold for binary conversion of the two-dimensional code image. On the basis of the problem, the image quality of the two-dimensional code image after binarization processing is improved, and the accuracy of recognition for the two-dimensional code image is effectively improved.
对于设置用于采样的滑动窗口的具体方式,在一个实施例中,上述滑动窗口的采样范围为基于上述滑动窗口的宽度值进行确定;上述滑动窗口的采样阈值为基于上述滑动窗口的高度值进行确定。Regarding the specific way of setting the sliding window for sampling, in one embodiment, the sampling range of the sliding window is determined based on the width value of the sliding window; the sampling threshold of the sliding window is determined based on the height value of the sliding window Sure.
对于获取目标二维码图像对应的处理结果的具体方式,在一个实施例中,如图5所示,上述步骤S150具体包括:Regarding the specific manner of obtaining the processing result corresponding to the target two-dimensional code image, in one embodiment, as shown in FIG. 5, the above step S150 specifically includes:
步骤S510,根据取值范围的起点位置、取值范围的终点位置以及中间转换阈值,对目标二维码图像进行二值化转换处理,得到目标二维码图像对应的处理结果。Step S510, according to the start position of the value range, the end position of the value range and the intermediate conversion threshold, perform binarization conversion processing on the target two-dimensional code image, and obtain a processing result corresponding to the target two-dimensional code image.
本步骤中,取值范围,是指目标二维码图像对应的转换阈值所在的取值范围;取值范围的起点位置,是指在前述灰度直方图统计结果中靠近原点的一侧,基于波峰所在位置到平衡位置的最短距离,确定的目标二维码图像对应的转换阈值所在的取值范围的起点位置;取值范围的终点位置,是指根据前述取值范围的起点位置和前述预设平移步长,从取值范围的起点位置开始,向灰度直方图统计结果中的直角坐标系的X轴数值增大方向平移的相应距离后,获取得到的取值范围的终点位置;中间转换阈值,是指基于取值范围的中间值,确定的目标二维码图像对应的中间转换阈值;目标二维码图像对应的处理结果,是指分别基于前述取值范围的起点位置、前述取值范围的终点位置以及前述中间转换阈值,对目标二维码图像进行二值化转换处理,进而得到的目标二维码图像对应的三种处理结果(即基于前述取值范围的起点位置,对目标二维码图像进行二值化转换处理后,得到的目标二维码图像对应的第一种处理结果;基于前述取值范围的终点位置,对目标二维码图像进行二值化转换处理后,得到的目标二维码图像对应的第二种处理结果;基于前述中间转换阈值,对目标二维码图像进行二值化转换处理后,得到的目标二维码图像对应的第三种处理结果)。In this step, the value range refers to the value range where the conversion threshold corresponding to the target two-dimensional code image is located; the starting point of the value range refers to the side close to the origin in the aforementioned grayscale histogram statistical results, based on The shortest distance from the position of the wave peak to the equilibrium position, the starting position of the value range where the conversion threshold corresponding to the determined target two-dimensional code image is located; Set the translation step length, starting from the starting position of the value range, and after moving the corresponding distance in the direction of increasing the X-axis value of the Cartesian coordinate system in the gray histogram statistical results, obtain the end position of the obtained value range; the middle The conversion threshold refers to the intermediate conversion threshold corresponding to the target two-dimensional code image determined based on the intermediate value of the value range; the processing result corresponding to the target two-dimensional code image refers to the starting position, the above-mentioned The target two-dimensional code image is subjected to binarization conversion processing based on the end position of the value range and the aforementioned intermediate conversion threshold, and then the three processing results corresponding to the target two-dimensional code image are obtained (that is, based on the starting point position of the aforementioned value range, for After the target two-dimensional code image is binarized and converted, the first processing result corresponding to the target two-dimensional code image is obtained; based on the end position of the aforementioned value range, after the target two-dimensional code image is binarized and converted , the second processing result corresponding to the target two-dimensional code image obtained; based on the aforementioned intermediate conversion threshold, after the target two-dimensional code image is binarized and converted, the third processing result corresponding to the target two-dimensional code image is obtained ).
步骤S520,基于目标二维码图像对应的处理结果,识别目标二维码图像。Step S520, based on the processing result corresponding to the target two-dimensional code image, identify the target two-dimensional code image.
本步骤中,目标二维码图像对应的处理结果,是指分别基于前述取值范围的起点位置、前述取值范围的终点位置以及前述中间转换阈值,对目标二维码图像进行二值化转换处理,进而得到的目标二维码图像对应的三种处理结果;基于目标二维码图像对应的处理结果,识别目标二维码图像,是指依次针对前述目标二维码图像对应的三种处理结果,进行识别与解析。In this step, the processing result corresponding to the target two-dimensional code image refers to performing binary conversion on the target two-dimensional code image based on the starting position of the aforementioned value range, the end position of the aforementioned value range, and the aforementioned intermediate conversion threshold. Processing, and then obtained three processing results corresponding to the target two-dimensional code image; based on the processing results corresponding to the target two-dimensional code image, identifying the target two-dimensional code image refers to the three types of processing corresponding to the aforementioned target two-dimensional code image in turn As a result, recognition and analysis are performed.
在实际应用中,依次针对上述目标二维码图像对应的三种处理结果,进行识别与解析的具体方式,可以是将上述目标二维码图像对应的三种处理结果,依次送入无线网络摄像机内置的二维码识别库中,进行二维码图像的识别与解析。In practical applications, the specific way of identifying and analyzing the three processing results corresponding to the above-mentioned target two-dimensional code image in turn may be to send the three processing results corresponding to the above-mentioned target two-dimensional code image to the wireless network camera in sequence In the built-in two-dimensional code recognition library, the recognition and analysis of two-dimensional code images are carried out.
上述实施例通过分别基于转换阈值所在的取值范围的起点位置、终点位置以及中间转换阈值,获取目标二维码图像对应的处理结果的方式,提高了二值化处理后的二维码图像的图像质量,保留了更多二维码图像中存在的有用信息,进而有效提升了针对二维码图像进行识别的准确率。The above embodiment improves the accuracy of the binarized two-dimensional code image by obtaining the processing result corresponding to the target two-dimensional code image based on the starting position, end position and intermediate conversion threshold of the value range where the conversion threshold is located. The image quality keeps more useful information in the two-dimensional code image, thereby effectively improving the recognition accuracy of the two-dimensional code image.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的X二维码图像处理方法的二维码图像处理装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个二维码图像处理装置实施例中的具体限定可以参见上文中对于二维码图像处理方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a two-dimensional code image processing device for implementing the above-mentioned X two-dimensional code image processing method. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more embodiments of the two-dimensional code image processing device provided below can be referred to above for the two-dimensional code The limitation of the image processing method will not be repeated here.
在一个实施例中,如图6所示,提供了一种二维码图像处理装置,应用于无线网络摄像机,该装置600包括:In one embodiment, as shown in FIG. 6, a two-dimensional code image processing device is provided, which is applied to a wireless network camera, and the device 600 includes:
图像采样模块610,用于对裁剪后的原始二维码图像进行采样,得到待分析二维码图像;An
灰度映射模块620,用于基于所述待分析二维码图像的实际灰度值与目标灰度值之间的映射关系,处理所述待分析二维码图像,得到目标二维码图像;The
阈值范围确定模块630,用于对所述目标二维码图像进行灰度直方图统计,基于灰度直方图统计结果,确定所述目标二维码图像对应的转换阈值所在的取值范围;The threshold
中间阈值确定模块640,用于基于所述取值范围的中间值,确定所述目标二维码图像对应的中间转换阈值;An intermediate
处理结果获取模块650,用于根据所述取值范围和所述中间转换阈值,对所述目标二维码图像进行二值化转换处理,得到所述目标二维码图像对应的处理结果。The processing
在其中一个实施例中,图像采样模块610,具体用于基于预设图像尺寸,对原始二维码图像进行边缘裁剪,得到裁剪后的原始二维码图像;对裁剪后的原始二维码图像进行隔行隔列采样,得到所述待分析二维码图像。In one of the embodiments, the
在其中一个实施例中,灰度映射模块620,具体用于基于图像亮度增益信息,确定所述待分析二维码图像的各个像素点的实际灰度值所在的取值区间;根据所述取值区间和预设灰度映射规则,确定每一实际灰度值对应的目标灰度值;基于所述目标灰度值,处理所述待分析二维码图像,得到所述目标二维码图像。In one of the embodiments, the
在其中一个实施例中,阈值范围确定模块630,具体用于采用预配置的滑动窗口,遍历所述灰度直方图统计结果,确定所述灰度直方图统计结果的波峰所在位置;在所述灰度直方图统计结果中靠近原点的一侧,基于所述波峰所在位置到平衡位置的最短距离,确定所述取值范围的起点位置;根据所述取值范围的起点位置和预设平移步长,得到所述取值范围的终点位置。In one of the embodiments, the threshold
在其中一个实施例中,在阈值范围确定模块630中,所述滑动窗口的采样范围为基于所述滑动窗口的宽度值进行确定;所述滑动窗口的采样阈值为基于所述滑动窗口的高度值进行确定。In one of the embodiments, in the threshold
在其中一个实施例中,处理结果获取模块650,具体用于根据所述取值范围的起点位置、所述取值范围的终点位置以及所述中间转换阈值,对所述目标二维码图像进行二值化转换处理,得到所述目标二维码图像对应的处理结果;基于所述目标二维码图像对应的处理结果,识别所述目标二维码图像。In one of the embodiments, the processing
上述二维码图像处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned two-dimensional code image processing device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储二维码图像处理相关数据等数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种二维码图像处理方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure may be as shown in FIG. 7 . The computer device includes a processor, a memory, an input/output interface (Input/Output, I/O for short), and a communication interface. Wherein, the processor, the memory and the input/output interface are connected through the system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data related to two-dimensional code image processing and the like. The input/output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a two-dimensional code image processing method is realized.
本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 7 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is provided, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when executing the computer program.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration and not a limitation, the RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211683420.5A CN115860025A (en) | 2022-12-27 | 2022-12-27 | Two-dimensional code image processing method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211683420.5A CN115860025A (en) | 2022-12-27 | 2022-12-27 | Two-dimensional code image processing method, device, equipment, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115860025A true CN115860025A (en) | 2023-03-28 |
Family
ID=85653430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211683420.5A Pending CN115860025A (en) | 2022-12-27 | 2022-12-27 | Two-dimensional code image processing method, device, equipment, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115860025A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013055069A1 (en) * | 2011-10-10 | 2013-04-18 | 주식회사 예원커뮤니케이션 | Device and method for automatically identifying a qr code |
CN103839031A (en) * | 2014-02-27 | 2014-06-04 | 杭州晟元芯片技术有限公司 | Special embedded type two-dimensional code recognition method |
CN106960427A (en) * | 2016-01-11 | 2017-07-18 | 中兴通讯股份有限公司 | The method and apparatus of image in 2 D code processing |
CN107561240A (en) * | 2017-08-23 | 2018-01-09 | 湖南城市学院 | A kind of evaluation method using turfgrass microbial association cadmium pollution soil repair |
CN110348264A (en) * | 2019-07-04 | 2019-10-18 | 北京电子工程总体研究所 | A kind of QR image in 2 D code bearing calibration and system |
CN112991204A (en) * | 2021-03-09 | 2021-06-18 | 吴统明 | Deep learning network processing device and method and image processing unit |
-
2022
- 2022-12-27 CN CN202211683420.5A patent/CN115860025A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013055069A1 (en) * | 2011-10-10 | 2013-04-18 | 주식회사 예원커뮤니케이션 | Device and method for automatically identifying a qr code |
CN103839031A (en) * | 2014-02-27 | 2014-06-04 | 杭州晟元芯片技术有限公司 | Special embedded type two-dimensional code recognition method |
CN106960427A (en) * | 2016-01-11 | 2017-07-18 | 中兴通讯股份有限公司 | The method and apparatus of image in 2 D code processing |
CN107561240A (en) * | 2017-08-23 | 2018-01-09 | 湖南城市学院 | A kind of evaluation method using turfgrass microbial association cadmium pollution soil repair |
CN110348264A (en) * | 2019-07-04 | 2019-10-18 | 北京电子工程总体研究所 | A kind of QR image in 2 D code bearing calibration and system |
CN112991204A (en) * | 2021-03-09 | 2021-06-18 | 吴统明 | Deep learning network processing device and method and image processing unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108564551B (en) | Fisheye image processing method and fisheye image processing device | |
JP6554253B2 (en) | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM | |
CN109726195B (en) | A data enhancement method and device | |
WO2020062494A1 (en) | Image processing method and apparatus | |
CN110796624B (en) | Image generation method and device and electronic equipment | |
CN111970518B (en) | An image frame loss processing method, system, device and computer storage medium | |
US11244426B2 (en) | Method for image super resolution imitating optical zoom implemented on a resource-constrained mobile device, and a mobile device implementing the same | |
US8594446B2 (en) | Method for enhancing a digitized document | |
WO2020000877A1 (en) | Method and device for generating image | |
CN114419086B (en) | Edge extraction method, device, electronic device and storage medium | |
JP2007198912A (en) | Image inspection device, image inspection method, program for allowing computer to function as image inspection device and recording medium | |
CN111080665B (en) | Image frame recognition method, device, equipment and computer storage medium | |
CN112017113B (en) | Image processing method and device, model training method and device, equipment and medium | |
US11663184B2 (en) | Information processing method of grouping data, information processing system for grouping data, and non-transitory computer readable storage medium | |
CN111738272A (en) | Target feature extraction method and device and electronic equipment | |
CN115860025A (en) | Two-dimensional code image processing method, device, equipment, storage medium and program product | |
CN101930593B (en) | Single object image extracting system and method | |
CN118072350A (en) | Pedestrian detection method, device and electronic equipment | |
US20230196729A1 (en) | Image recognition device and image recognition method | |
US20140214781A1 (en) | Data compression device, data compression method, and computer program product | |
CN111971951A (en) | Arithmetic device, arithmetic method, program, and authentication system | |
CN114626994A (en) | An image processing method, a video processing method, a computer device, and a storage medium | |
US20040156551A1 (en) | Image compression method and image compression apparatus | |
CN118505573B (en) | Spectral data recovery method, device and storage medium | |
CN114185630B (en) | Screen recording method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |